Date: Mon, 29 Oct 2007 12:17:09 -0400 (EDT) From: Greg Larkin <glarkin@sourcehosting.net> To: FreeBSD-gnats-submit@FreeBSD.org Cc: gerrit.beine@gmx.de, miwi@FreeBSD.org Subject: ports/117632: [PATCH] devel/pear-PHPUnit3: Resurrect from BROKEN state Message-ID: <200710291617.l9TGH9ri001193@ports.entropy.prv> Resent-Message-ID: <200710291730.l9THU1gc012246@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 117632 >Category: ports >Synopsis: [PATCH] devel/pear-PHPUnit3: Resurrect from BROKEN state >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Mon Oct 29 17:30:01 UTC 2007 >Closed-Date: >Last-Modified: >Originator: Greg Larkin >Release: FreeBSD 6.1-SECURITY i386 >Organization: SourceHosting.net, LLC >Environment: System: FreeBSD ports.entropy.prv 6.1-SECURITY FreeBSD 6.1-SECURITY #0: Thu Apr 26 14:24:01 UTC 2007 >Description: Got this port working again after making some minor changes to the devel/pear port to support alternate download locations. Added file(s): - files/pear-deinstall.in - files/pear-install.in Port maintainer (gerrit.beine@gmx.de) is cc'd. Generated with FreeBSD Port Tools 0.77 >How-To-Repeat: >Fix: --- pear-PHPUnit-3.0.6_2.patch begins here --- diff -ruN --exclude=CVS /usr/ports/devel/pear-PHPUnit3.orig/Makefile /usr/ports/devel/pear-PHPUnit3/Makefile --- /usr/ports/devel/pear-PHPUnit3.orig/Makefile Tue Jun 26 04:09:31 2007 +++ /usr/ports/devel/pear-PHPUnit3/Makefile Mon Oct 29 12:12:07 2007 @@ -7,7 +7,7 @@ PORTNAME= PHPUnit PORTVERSION= 3.0.6 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= devel www pear MASTER_SITES= http://pear.phpunit.de/get/ @@ -17,15 +17,17 @@ BUILD_DEPENDS= ${PEARDIR}/PEAR.php:${PORTSDIR}/devel/pear RUN_DEPENDS= ${BUILD_DEPENDS} -BROKEN= Does not fetch - -CONFLICTS= *PHPUnit* +CONFLICTS= pear-PHPUnit-1* pear-PHPUnit2-2* LATEST_LINK= pear-${PORTNAME} OPTIONS= PEAR_LOG "PEAR::Log support" off \ JSON "Enable JSON support" off \ CHANNEL= pear.phpunit.de +SUB_FILES= pear-deinstall pear-install +SUB_LIST+= CHANNEL=${CHANNEL} +PKGINSTALL= ${WRKDIR}/pear-install +PKGDEINSTALL= ${WRKDIR}/pear-deinstall DEFAULT_PHP_VER=5 IGNORE_WITH_PHP=4 diff -ruN --exclude=CVS /usr/ports/devel/pear-PHPUnit3.orig/files/pear-deinstall.in /usr/ports/devel/pear-PHPUnit3/files/pear-deinstall.in --- /usr/ports/devel/pear-PHPUnit3.orig/files/pear-deinstall.in Wed Dec 31 19:00:00 1969 +++ /usr/ports/devel/pear-PHPUnit3/files/pear-deinstall.in Mon Oct 29 12:01:56 2007 @@ -0,0 +1,27 @@ +#!/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 diff -ruN --exclude=CVS /usr/ports/devel/pear-PHPUnit3.orig/files/pear-install.in /usr/ports/devel/pear-PHPUnit3/files/pear-install.in --- /usr/ports/devel/pear-PHPUnit3.orig/files/pear-install.in Wed Dec 31 19:00:00 1969 +++ /usr/ports/devel/pear-PHPUnit3/files/pear-install.in Mon Oct 29 12:01:56 2007 @@ -0,0 +1,19 @@ +#!/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 --- pear-PHPUnit-3.0.6_2.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200710291617.l9TGH9ri001193>