freebsd-ports/databases/pear-Doctrine12/files/pear-deinstall.in
Greg Larkin d93cab3b17 Doctrine is an object relational mapper (ORM) for PHP 5.2.3+ that
sits on top of a powerful database abstraction layer (DBAL).

One of its key features is the option to write database queries in a
proprietary object oriented SQL dialect called Doctrine Query
Language (DQL), inspired by Hibernate's HQL. This provides developers
with a powerful alternative to SQL that maintains flexibility without
requiring unnecessary code duplication.

WWW:    http://www.doctrine-project.org/

Feature safe:	yes
2009-09-28 20:12:44 +00:00

27 lines
574 B
Bash

#!/bin/sh
#
# $FreeBSD$
#
# Remove package declaration from PEAR's registry and optionally delete
# a non-standard channel.
if [ x$2 != xDEINSTALL -a x$2 != xPOST-DEINSTALL ]; then
exit
fi
PKG_NAME=${1%%-[0-9._]*}
PACKAGE=$(echo $PKG_NAME | sed 's/pear-//')
PEAR=${PKG_PREFIX}/bin/pear
CHANNEL=%%CHANNEL%%
if [ "$2" = "DEINSTALL" ]; then
if [ "x${CHANNEL}" != "x" ]; then
${PEAR} uninstall -r -n ${CHANNEL}/${PACKAGE} || true
else
${PEAR} uninstall -r -n ${PACKAGE} || true
fi
else
if [ "x${CHANNEL}" != "x" ]; then
${PEAR} channel-delete ${CHANNEL}
fi
fi