Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 11 Jan 2009 21:19:37 GMT
From:      Gerrit Beine <gerrit.beine@gmx.de>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/130388: Update port: devel/pear-PHPUnit
Message-ID:  <200901112119.n0BLJb8L018295@www.freebsd.org>
Resent-Message-ID: <200901112120.n0BLK3xE018991@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         130388
>Category:       ports
>Synopsis:       Update port: devel/pear-PHPUnit
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jan 11 21:20:03 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     Gerrit Beine
>Release:        FreeBSD 7.0-RELEASE
>Organization:
sapat GmbH
>Environment:
FreeBSD tb.genesez.de 7.0-RELEASE FreeBSD 7.0-RELEASE #0: Sun Feb 24 19:59:52 UTC 2008     root@logan.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386

>Description:
Update to version 1.3.3.
This version is available via pear.phpunit.de, so there are two additional scripts in this patch
>How-To-Repeat:

>Fix:
diff -Nur /usr/ports/devel/pear-PHPUnit/Makefile pear-PHPUnit/Makefile
--- /usr/ports/devel/pear-PHPUnit/Makefile	2006-04-15 13:47:40.000000000 +0200
+++ pear-PHPUnit/Makefile	2009-01-11 22:01:39.000000000 +0100
@@ -6,8 +6,9 @@
 #
 
 PORTNAME=	PHPUnit
-PORTVERSION=	1.3.2
+PORTVERSION=	1.3.3
 CATEGORIES=	devel www pear
+MASTER_SITES=	http://pear.phpunit.de/get/
 
 MAINTAINER=	gerrit.beine@gmx.de
 COMMENT=	PEAR regression testing framework for unit tests
@@ -15,6 +16,14 @@
 BUILD_DEPENDS=	${PEARDIR}/PEAR.php:${PORTSDIR}/devel/pear
 RUN_DEPENDS=	${BUILD_DEPENDS}
 
+MANUAL_PACKAGE_BUILD=	attempts to contact pear.phpunit.de during install phase
+
+CHANNEL=	pear.phpunit.de
+SUB_FILES=	pear-deinstall pear-install
+SUB_LIST+=	CHANNEL=${CHANNEL}
+PKGINSTALL=	${WRKDIR}/pear-install
+PKGDEINSTALL=	${WRKDIR}/pear-deinstall
+
 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 \
diff -Nur /usr/ports/devel/pear-PHPUnit/distinfo pear-PHPUnit/distinfo
--- /usr/ports/devel/pear-PHPUnit/distinfo	2005-11-15 17:50:35.000000000 +0100
+++ pear-PHPUnit/distinfo	2009-01-11 21:43:14.000000000 +0100
@@ -1,3 +1,3 @@
-MD5 (PEAR/PHPUnit-1.3.2.tgz) = 4b9dd2158e4035318481c93bbd59aaa5
-SHA256 (PEAR/PHPUnit-1.3.2.tgz) = 3bc720e7acb574712e4c51f676fc258f4425acc2652a540d6c73b53422b8bed9
-SIZE (PEAR/PHPUnit-1.3.2.tgz) = 20786
+MD5 (PEAR/PHPUnit-1.3.3.tgz) = 09ad4c28570cb67067b7f0dc1aea3a34
+SHA256 (PEAR/PHPUnit-1.3.3.tgz) = d309ce39a6c23158e923fcf458ff15df701d3a1278e490f159dc6f08f2f1f80f
+SIZE (PEAR/PHPUnit-1.3.3.tgz) = 20553
diff -Nur /usr/ports/devel/pear-PHPUnit/files/pear-deinstall.in pear-PHPUnit/files/pear-deinstall.in
--- /usr/ports/devel/pear-PHPUnit/files/pear-deinstall.in	1970-01-01 01:00:00.000000000 +0100
+++ pear-PHPUnit/files/pear-deinstall.in	2009-01-11 22:02:08.000000000 +0100
@@ -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 -Nur /usr/ports/devel/pear-PHPUnit/files/pear-install.in pear-PHPUnit/files/pear-install.in
--- /usr/ports/devel/pear-PHPUnit/files/pear-install.in	1970-01-01 01:00:00.000000000 +0100
+++ pear-PHPUnit/files/pear-install.in	2009-01-11 22:02:16.000000000 +0100
@@ -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


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200901112119.n0BLJb8L018295>