1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00

- Update to new pear channel infrastructure

PR:		158799
Submitted by:	mm@
This commit is contained in:
Martin Wilke 2011-08-26 04:48:59 +00:00
parent 2763e557ee
commit 8a4f5737a6
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=280484
3 changed files with 8 additions and 63 deletions

View File

@ -9,29 +9,20 @@ PORTNAME= PHPUnit
PORTVERSION= 1.3.3
CATEGORIES= devel www pear
MASTER_SITES= http://pear.phpunit.de/get/
PKGNAMEPREFIX= pear-
MAINTAINER= gerrit.beine@gmx.de
COMMENT= PEAR regression testing framework for unit tests
BUILD_DEPENDS= ${PEARDIR}/PEAR.php:${PORTSDIR}/devel/pear
RUN_DEPENDS= ${BUILD_DEPENDS}
BUILD_DEPENDS= ${PEARDIR}/PEAR.php:${PORTSDIR}/devel/pear \
${PEARDIR}/.channels/pear.phpunit.de.reg:${PORTSDIR}/devel/pear-channel-phpunit
RUN_DEPENDS= ${PEARDIR}/PEAR.php:${PORTSDIR}/devel/pear \
${PEARDIR}/.channels/pear.phpunit.de.reg:${PORTSDIR}/devel/pear-channel-phpunit
MANUAL_PACKAGE_BUILD= attempts to contact pear.phpunit.de during install phase
CONFLICTS= pear-PHPUnit-[23]*
CHANNEL= pear.phpunit.de
SUB_FILES= pear-deinstall pear-install
SUB_LIST+= CHANNEL=${CHANNEL}
PKGINSTALL= ${WRKDIR}/pear-install
PKGDEINSTALL= ${WRKDIR}/pear-deinstall
NO_LATEST_LINK= yes
FILES= PHPUnit.php PHPUnit/GUI/Gtk.php PHPUnit/GUI/HTML.php \
PHPUnit/GUI/HTML.tpl PHPUnit/GUI/SetupDecorator.php \
PHPUnit/Assert.php PHPUnit/RepeatedTest.php PHPUnit/Skeleton.php \
PHPUnit/TestCase.php PHPUnit/TestDecorator.php \
PHPUnit/TestFailure.php PHPUnit/TestListener.php \
PHPUnit/TestResult.php PHPUnit/TestSuite.php
PEAR_CHANNEL= phpunit
PEAR_AUTOINSTALL= yes
.include <bsd.port.pre.mk>
.include "${PORTSDIR}/devel/pear/bsd.pear.mk"

View File

@ -1,27 +0,0 @@
#!/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

View File

@ -1,19 +0,0 @@
#!/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