aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoman Bogorodskiy <novel@FreeBSD.org>2005-04-19 16:33:08 +0000
committerRoman Bogorodskiy <novel@FreeBSD.org>2005-04-19 16:33:08 +0000
commit3347ca85e7a82232e62ba7187c5219dc893e4f3a (patch)
tree53e3867709537631e351765490ffb94184610268
parentadac06ed07596372e384a90323141d71a1a673eb (diff)
Notes
-rw-r--r--net/pear-Net_UserAgent_Detect/Makefile24
-rw-r--r--net/pear-Net_UserAgent_Detect/distinfo4
2 files changed, 14 insertions, 14 deletions
diff --git a/net/pear-Net_UserAgent_Detect/Makefile b/net/pear-Net_UserAgent_Detect/Makefile
index 0b4999f5c412..05d263dc5808 100644
--- a/net/pear-Net_UserAgent_Detect/Makefile
+++ b/net/pear-Net_UserAgent_Detect/Makefile
@@ -6,8 +6,8 @@
#
PORTNAME= Net_UserAgent_Detect
-PORTVERSION= 2.0.1
-CATEGORIES= net pear
+PORTVERSION= 2.1.0
+CATEGORIES= net www pear
MAINTAINER= antonio@php.net
COMMENT= PEAR class that detects web browser, version and platform
@@ -15,18 +15,18 @@ COMMENT= PEAR class that detects web browser, version and platform
BUILD_DEPENDS= ${PEARDIR}/PEAR.php:${PORTSDIR}/devel/pear-PEAR
RUN_DEPENDS= ${BUILD_DEPENDS}
-USE_PHP= yes
+USE_REINPLACE= yes
-CATEGORY= Net/UserAgent
-FILES= Detect.php
+CATEGORY= Net
+FILES= UserAgent/Detect.php
+TESTS= example.php
-.include <bsd.port.pre.mk>
-
-PHP_VERS= ${PHP_VERSION:S/.//g}
-
-.if defined(PHP_VERS) && ${PHP_VERS} < 410
-IGNORE= "You need PHP 4.1.0 or later to install PEAR::Net_UserAgent_Detect"
-.endif
+post-extract:
+ @${MKDIR} ${WRKSRC}/UserAgent
+ @${MV} ${WRKSRC}/Detect.php ${WRKSRC}/UserAgent
+ @${REINPLACE_CMD} -e "s|../Detect.php|${CATEGORY}/${FILES}|" \
+ ${WRKSRC}/tests/${TESTS}
+.include <bsd.port.pre.mk>
.include "${PORTSDIR}/devel/pear-PEAR/Makefile.common"
.include <bsd.port.post.mk>
diff --git a/net/pear-Net_UserAgent_Detect/distinfo b/net/pear-Net_UserAgent_Detect/distinfo
index a828c9b8796b..102a34d8982d 100644
--- a/net/pear-Net_UserAgent_Detect/distinfo
+++ b/net/pear-Net_UserAgent_Detect/distinfo
@@ -1,2 +1,2 @@
-MD5 (PEAR/Net_UserAgent_Detect-2.0.1.tgz) = b49c6a19b220d674db4355bdab3498e5
-SIZE (PEAR/Net_UserAgent_Detect-2.0.1.tgz) = 8230
+MD5 (PEAR/Net_UserAgent_Detect-2.1.0.tgz) = fcee7d4da95a31ef9d935edcddbd9687
+SIZE (PEAR/Net_UserAgent_Detect-2.1.0.tgz) = 9595