freebsd-ports/mail/pear-mailparse/pkg-deinstall
Edwin Groothuis 3e58e0c900 New port: mail/pear-mailparse
PEAR classes to create and decode MIME messages.

PR:		ports/48121
Submitted by:	Thierry Thomas <thierry@pompo.net>
2003-02-24 05:51:29 +00:00

13 lines
246 B
Bash

#!/bin/sh
#
# $FreeBSD$
#
# Remove package declaration from PEAR's registry.
if [ x$2 != xDEINSTALL ]; then
exit
fi
PKG_NAME=${1%%-[0-9._]*}
PACKAGE=$(echo $PKG_NAME | sed 's/pear-//')
${PKG_PREFIX}/bin/pear uninstall -r ${PACKAGE} || true