diff options
-rw-r--r-- | archivers/Makefile | 1 | ||||
-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 |
5 files changed, 65 insertions, 0 deletions
diff --git a/archivers/Makefile b/archivers/Makefile index 3afc9b2ca3c8..757d9341bfbc 100644 --- a/archivers/Makefile +++ b/archivers/Makefile @@ -36,6 +36,7 @@ SUBDIR += p5-IO-Zlib SUBDIR += p5-Mac-Macbinary SUBDIR += parchive + SUBDIR += pear-Archive_Tar SUBDIR += pkzip SUBDIR += ppunpack SUBDIR += py-bzip2 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 |