aboutsummaryrefslogtreecommitdiffstats
path: root/devel/pear-PEAR/pkg-deinstall
diff options
context:
space:
mode:
authorthierry <thierry@FreeBSD.org>2004-11-23 00:45:26 +0800
committerthierry <thierry@FreeBSD.org>2004-11-23 00:45:26 +0800
commit5e474e8e840549af2a65a8f7fc1dbf3d527adb4a (patch)
treea4df2e0f73d13dc33e4f9297c6a140de49cd3b52 /devel/pear-PEAR/pkg-deinstall
parent3d05ec36397fb7f4da29c0bed0a9e30a038e238e (diff)
downloadfreebsd-ports-gnome-5e474e8e840549af2a65a8f7fc1dbf3d527adb4a.tar.gz
freebsd-ports-gnome-5e474e8e840549af2a65a8f7fc1dbf3d527adb4a.tar.zst
freebsd-ports-gnome-5e474e8e840549af2a65a8f7fc1dbf3d527adb4a.zip
- update devel/pear-PEAR to 1.3.3.1;
- install pear script as pear2. PR: ports/73995 Submitted by: maintainer.
Diffstat (limited to 'devel/pear-PEAR/pkg-deinstall')
-rw-r--r--devel/pear-PEAR/pkg-deinstall11
1 files changed, 10 insertions, 1 deletions
diff --git a/devel/pear-PEAR/pkg-deinstall b/devel/pear-PEAR/pkg-deinstall
index 79df94e800f9..c0cbc6c195fc 100644
--- a/devel/pear-PEAR/pkg-deinstall
+++ b/devel/pear-PEAR/pkg-deinstall
@@ -10,4 +10,13 @@ fi
PKG_NAME=${1%%-[0-9._]*}
PACKAGE=$(echo $PKG_NAME | sed 's/pear-//')
-${PKG_PREFIX}/bin/pear uninstall -r -n ${PACKAGE} || true
+PEAR=${PKG_PREFIX}/bin/pear
+PEAR2=${PKG_PREFIX}/bin/pear2
+
+if [ ${PKG_NAME} = "pear-PEAR" ]; then
+ PEAR_INSTALLER=${PEAR}
+else
+ PEAR_INSTALLER=${PEAR2}
+fi
+
+${PEAR_INSTALLER} uninstall -r -n ${PACKAGE} || true