freebsd-ports/databases/pear-Doctrine12/files/pear-install.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

19 lines
448 B
Bash

#!/bin/sh
#
# $FreeBSD$
#
# Register the package $1 in the port registry and optionally add a
# non-standard channel.
PREFIX=${PKG_PREFIX:=%%PREFIX%%}
PEAR=${PREFIX}/bin/pear
PKGREGDIR=${PREFIX}/share/pear/packages/$1
CHANNEL=%%CHANNEL%%
[ "x$1" = "x" ] && exit 1
if [ "x$2" = "xPOST-INSTALL" ]; then
if [ "x${CHANNEL}" != "x" ]; then
${PEAR} channel-add http://${CHANNEL}/channel.xml
fi
${PEAR} install -r -n -f ${PKGREGDIR}/package.xml
fi