aboutsummaryrefslogtreecommitdiff
path: root/devel/pear-Date
diff options
context:
space:
mode:
authorNorikatsu Shigemura <nork@FreeBSD.org>2003-06-07 23:00:46 +0000
committerNorikatsu Shigemura <nork@FreeBSD.org>2003-06-07 23:00:46 +0000
commit077b4b53b0d0814df73a850dfa8625101c7b8404 (patch)
tree1635d75a5b1ebd11d644c2d01607580c9063de35 /devel/pear-Date
parent95cfdcc8b6a9c07b40477662aa446e3bdd99525b (diff)
downloadports-077b4b53b0d0814df73a850dfa8625101c7b8404.tar.gz
ports-077b4b53b0d0814df73a850dfa8625101c7b8404.zip
Notes
Diffstat (limited to 'devel/pear-Date')
-rw-r--r--devel/pear-Date/Makefile23
-rw-r--r--devel/pear-Date/pkg-deinstall13
-rw-r--r--devel/pear-Date/pkg-descr2
-rw-r--r--devel/pear-Date/pkg-plist2
4 files changed, 6 insertions, 34 deletions
diff --git a/devel/pear-Date/Makefile b/devel/pear-Date/Makefile
index e404ff8c069a..e0d485fe916a 100644
--- a/devel/pear-Date/Makefile
+++ b/devel/pear-Date/Makefile
@@ -7,32 +7,19 @@
PORTNAME= Date
PORTVERSION= 1.3
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= devel www
-MASTER_SITES= http://pear.php.net/get/
-PKGNAMEPREFIX= pear-
-EXTRACT_SUFX= .tgz
-DIST_SUBDIR= PEAR
MAINTAINER= ports@FreeBSD.org
COMMENT= PEAR Date and Time Zone Classes
-BUILD_DEPENDS= ${PEARDIR}.DIST_PHP:${PORTSDIR}/devel/pear-install
+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"
MANIFEST= Date Date.php
@@ -42,8 +29,4 @@ do-install:
@${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${PEARDIR}/${FILE}
.endfor
-post-install:
-# Register a new package
- @${PEAR} install -r -f ${WRKDIR}/package.xml
-
.include <bsd.port.post.mk>
diff --git a/devel/pear-Date/pkg-deinstall b/devel/pear-Date/pkg-deinstall
deleted file mode 100644
index c17e9d19ced0..000000000000
--- a/devel/pear-Date/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/devel/pear-Date/pkg-descr b/devel/pear-Date/pkg-descr
index 79031a72fe82..632938198296 100644
--- a/devel/pear-Date/pkg-descr
+++ b/devel/pear-Date/pkg-descr
@@ -7,4 +7,4 @@ It does not rely on 32-bit system date stamps, so you can display calendars
and compare dates that date pre 1970 and post 2038. This package also provides
a class to convert date strings between Gregorian and Human calendar formats.
-WWW: http://pear.php.net/package-info.php?pacid=57
+WWW: http://pear.php.net/package-info.php?package=Date
diff --git a/devel/pear-Date/pkg-plist b/devel/pear-Date/pkg-plist
index 36dbf6d688da..604bc8430393 100644
--- a/devel/pear-Date/pkg-plist
+++ b/devel/pear-Date/pkg-plist
@@ -2,4 +2,6 @@
%%PEARDIR%%/Date/Human.php
%%PEARDIR%%/Date/TimeZone.php
%%PEARDIR%%/Date.php
+%%PKGREGDIR%%/package.xml
@dirrm %%PEARDIR%%/Date
+@dirrm %%PKGREGDIR%%