aboutsummaryrefslogtreecommitdiff
path: root/sysutils/pear-File
diff options
context:
space:
mode:
Diffstat (limited to 'sysutils/pear-File')
-rw-r--r--sysutils/pear-File/Makefile24
-rw-r--r--sysutils/pear-File/pkg-deinstall13
-rw-r--r--sysutils/pear-File/pkg-descr2
-rw-r--r--sysutils/pear-File/pkg-plist5
4 files changed, 8 insertions, 36 deletions
diff --git a/sysutils/pear-File/Makefile b/sysutils/pear-File/Makefile
index 7f0e07660c73..21bf85234c0e 100644
--- a/sysutils/pear-File/Makefile
+++ b/sysutils/pear-File/Makefile
@@ -7,39 +7,21 @@
PORTNAME= File
PORTVERSION= 1.0.3
+PORTREVISION= 1
CATEGORIES= sysutils www
-MASTER_SITES= http://pear.php.net/get/
-PKGNAMEPREFIX= pear-
-EXTRACT_SUFX= .tgz
-DIST_SUBDIR= PEAR
MAINTAINER= ports@FreeBSD.org
COMMENT= PEAR common file and directory routines
-BUILD_DEPENDS= ${PEARDIR}/PEAR.php.dist:${PORTSDIR}/devel/pear-PEAR
+BUILD_DEPENDS= ${PEARDIR}/PEAR.php:${PORTSDIR}/devel/pear-PEAR
RUN_DEPENDS= ${BUILD_DEPENDS}
-NO_BUILD= yes
-
.include <bsd.port.pre.mk>
-
-.if exists(${LOCALBASE}/bin/php-config)
-PHP_BASE!= ${LOCALBASE}/bin/php-config --prefix
-.else
-PHP_BASE= ${LOCALBASE}
-.endif
-PEAR= ${LOCALBASE}/bin/pear
-LPHP_LIB= lib/php
-PEARDIR= ${PHP_BASE}/${LPHP_LIB}
-PLIST_SUB= PEARDIR=${LPHP_LIB}
+.include "${.CURDIR}/../../devel/pear-PEAR/Makefile.common"
do-install:
@${CP} -Rp ${WRKSRC}/* ${PEARDIR}
@${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${PEARDIR}/${PORTNAME}*
@${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${PEARDIR}/tests
-post-install:
-# Register a new package
- @${PEAR} install -r -f ${WRKDIR}/package.xml
-
.include <bsd.port.post.mk>
diff --git a/sysutils/pear-File/pkg-deinstall b/sysutils/pear-File/pkg-deinstall
deleted file mode 100644
index c17e9d19ced0..000000000000
--- a/sysutils/pear-File/pkg-deinstall
+++ /dev/null
@@ -1,13 +0,0 @@
-#!/bin/sh
-#
-# $FreeBSD$
-#
-# Remove package declaration from PEAR's registry.
-
-if [ x$2 != xDEINSTALL ]; then
- exit
-fi
-PKG_NAME=${1%%-[0-9._]*}
-PACKAGE=$(echo $PKG_NAME | sed 's/pear-//')
-
-${PKG_PREFIX}/bin/pear uninstall -r ${PACKAGE} || true
diff --git a/sysutils/pear-File/pkg-descr b/sysutils/pear-File/pkg-descr
index 7dbaaff3f463..d3826c5d81e8 100644
--- a/sysutils/pear-File/pkg-descr
+++ b/sysutils/pear-File/pkg-descr
@@ -2,4 +2,4 @@ PEAR classes providing easy access to read/write to files along with
some common routines to deal with paths. Also provides interface for
handling CSV files.
-WWW: http://pear.php.net/manual/en/packages.file.php
+WWW: http://pear.php.net/package-info.php?package=File
diff --git a/sysutils/pear-File/pkg-plist b/sysutils/pear-File/pkg-plist
index 82e769dda347..9d55bdae8898 100644
--- a/sysutils/pear-File/pkg-plist
+++ b/sysutils/pear-File/pkg-plist
@@ -1,5 +1,8 @@
%%PEARDIR%%/File/CSV.php
%%PEARDIR%%/File.php
+%%PKGREGDIR%%/package.xml
%%PEARDIR%%/tests/parser.php
%%PEARDIR%%/tests/test.csv
-@dirrm %%PEARDIR%%/File
+@dirrm %%PKGREGDIR%%
+@unexec rmdir %D/share/pear/tests 2> /dev/null || true
+@unexec rmdir %D/share/pear/File 2> /dev/null || true