diff options
author | edwin <edwin@FreeBSD.org> | 2003-02-12 14:06:13 +0800 |
---|---|---|
committer | edwin <edwin@FreeBSD.org> | 2003-02-12 14:06:13 +0800 |
commit | 97a58d33be2a41986dccfd29a0b9fc2c919014fd (patch) | |
tree | 957c12a7fb072c282ce6bcc062c134c2d6b91edc /archivers/pear-Archive_Tar | |
parent | dcaf8e695ec3193ed787318b4c8aa8ae617fd7bc (diff) | |
download | freebsd-ports-gnome-97a58d33be2a41986dccfd29a0b9fc2c919014fd.tar.gz freebsd-ports-gnome-97a58d33be2a41986dccfd29a0b9fc2c919014fd.tar.zst freebsd-ports-gnome-97a58d33be2a41986dccfd29a0b9fc2c919014fd.zip |
New port archivers/pear-Archive_Tar: upgrading Archive_Tar from 0.9 to 1.0.
PEAR's Archive_Tar bundled with mod_php4 is v. 0.9.
This port installs v. 1.0 (stable).
PR: ports/47820
Submitted by: Thierry Thomas <thierry@pompo.net>
Diffstat (limited to 'archivers/pear-Archive_Tar')
-rw-r--r-- | archivers/pear-Archive_Tar/Makefile | 49 | ||||
-rw-r--r-- | archivers/pear-Archive_Tar/distinfo | 1 | ||||
-rw-r--r-- | archivers/pear-Archive_Tar/pkg-descr | 6 | ||||
-rw-r--r-- | archivers/pear-Archive_Tar/pkg-plist | 8 |
4 files changed, 64 insertions, 0 deletions
diff --git a/archivers/pear-Archive_Tar/Makefile b/archivers/pear-Archive_Tar/Makefile new file mode 100644 index 000000000000..15666eb539ea --- /dev/null +++ b/archivers/pear-Archive_Tar/Makefile @@ -0,0 +1,49 @@ +# Ports collection makefile for: pear-Archive_Tar +# Date created: 28 November 2002 +# Whom: Thierry Thomas (<thierry@pompo.net>) +# +# $FreeBSD$ +# + +PORTNAME= Archive_Tar +PORTVERSION= 1.0 +CATEGORIES= archivers www +MASTER_SITES= http://pear.php.net/get/ +PKGNAMEPREFIX= pear- +EXTRACT_SUFX= .tgz +DIST_SUBDIR= PEAR + +MAINTAINER= ports@FreeBSD.org +COMMENT= PEAR tar file management class + +BUILD_DEPENDS= ${PEARDIR}/PEAR.php.dist:${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 + +LPHP_LIB= lib/php +PEARDIR= ${PHP_BASE}/${LPHP_LIB} +PLIST_SUB= PEARDIR=${LPHP_LIB} + +DOCSDIR= ${PEARDIR}/docs/Archive_Tar + +do-install: + @${MV} ${PEARDIR}/Archive ${PEARDIR}/Archive.dist + @${CP} -Rp ${WRKSRC}/Archive ${PEARDIR} + @${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${PEARDIR}/Archive +.if !defined(NOPORTDOCS) + @${MV} ${DOCSDIR} ${DOCSDIR}.dist + @${MKDIR} ${DOCSDIR} + @${INSTALL_DATA} ${WRKSRC}/docs/Archive_Tar.txt ${DOCSDIR} + @${ECHO_MSG} "===> Documentation installed in ${DOCSDIR}." +.endif + +.include <bsd.port.post.mk> diff --git a/archivers/pear-Archive_Tar/distinfo b/archivers/pear-Archive_Tar/distinfo new file mode 100644 index 000000000000..7258ae5fedbc --- /dev/null +++ b/archivers/pear-Archive_Tar/distinfo @@ -0,0 +1 @@ +MD5 (PEAR/Archive_Tar-1.0.tgz) = 15e5dd6e46b339136e7d2b68f438249a diff --git a/archivers/pear-Archive_Tar/pkg-descr b/archivers/pear-Archive_Tar/pkg-descr new file mode 100644 index 000000000000..29f95397944d --- /dev/null +++ b/archivers/pear-Archive_Tar/pkg-descr @@ -0,0 +1,6 @@ +This class provides handling of tar files in PHP. + +It supports creating, listing, extracting and adding to tar files. +Gzip support is available if PHP has the zlib extension built-in or loaded. + +WWW: http://pear.php.net/manual/en/packages.file.archive-tar.php diff --git a/archivers/pear-Archive_Tar/pkg-plist b/archivers/pear-Archive_Tar/pkg-plist new file mode 100644 index 000000000000..273ae53d976e --- /dev/null +++ b/archivers/pear-Archive_Tar/pkg-plist @@ -0,0 +1,8 @@ +@exec mv %D/lib/php/Archive %D/lib/php/Archive.dist +%%PORTDOCS%%@exec mv %D/lib/php/docs/Archive_Tar %D/lib/php/docs/Archive_Tar.dist +%%PEARDIR%%/Archive/Tar.php +%%PORTDOCS%%%%PEARDIR%%/docs/Archive_Tar/Archive_Tar.txt +@dirrm %%PEARDIR%%/Archive +%%PORTDOCS%%@dirrm %%PEARDIR%%/docs/Archive_Tar +@unexec mv %D/lib/php/Archive.dist %D/lib/php/Archive || true +%%PORTDOCS%%@unexec mv %D/lib/php/docs/Archive_Tar.dist %D/lib/php/docs/Archive_Tar || true |