ports/81398: New port: devel/pear-PEAR_PackageFileManager PEAR class to maintain PEAR packages

Antonio Carlos Venancio Junior antonio at php.net
Mon May 23 12:40:03 UTC 2005


>Number:         81398
>Category:       ports
>Synopsis:       New port: devel/pear-PEAR_PackageFileManager PEAR class to maintain PEAR packages
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon May 23 12:40:01 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Antonio Carlos Venancio Junior
>Release:        FreeBSD 4.11-STABLE i386
>Organization:
>Environment:
System: FreeBSD antonio.cb.sc.gov.br 4.11-STABLE FreeBSD 4.11-STABLE #7: Tue May 10 10:37:35 BRT 2005     root at antonio.cb.sc.gov.br:/usr/obj/usr/src/sys/ANTONIO  i386
>Description:
New port: devel/pear-PEAR_PackageFileManager PEAR class to maintain PEAR packages

PEAR::PEAR_PackageFileManager revolutionizes the maintenance of PEAR packages.

With a few parameters, the entire package.xml is automatically updated with a
listing of all files in a package.

Features include
  - can detect PHP and extension dependencies using PHP_CompatInfo
  - reads in an existing package.xml file, and only changes the 
    release/changelog
  - a plugin system for retrieving files in a directory. Currently two plugins
    exist, one for standard recursive directory content listing, and one that
    reads the CVS/Entries files and generates a file listing based on the 
    contents of a checked out CVS repository
  - incredibly flexible options for assigning install roles to files/directories
  - ability to ignore any file based on a * ? wildcard-enabled string(s)
  - ability to include only files that match a * ? wildcard-enabled string(s)
  - ability to manage dependencies
  - can output the package.xml in any directory, and read in the package.xml
    file from any directory.
  - can specify a different name for the package.xml file

PEAR_PackageFileManager is fully unit tested.
>How-To-Repeat:
>Fix:
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	pear-PEAR_PackageFileManager
#	pear-PEAR_PackageFileManager/Makefile
#	pear-PEAR_PackageFileManager/distinfo
#	pear-PEAR_PackageFileManager/pkg-descr
#
echo c - pear-PEAR_PackageFileManager
mkdir -p pear-PEAR_PackageFileManager > /dev/null 2>&1
echo x - pear-PEAR_PackageFileManager/Makefile
sed 's/^X//' >pear-PEAR_PackageFileManager/Makefile << 'END-of-pear-PEAR_PackageFileManager/Makefile'
X# Ports collection makefile for:  pear-PEAR_PackageFileManager
X# Date created:			  23 May 2005
X# Whom:				  Antonio Carlos Venancio Junior (<antonio at inf.ufsc.br>)
X#
X# $FreeBSD$
X#
X
XPORTNAME=	PEAR_PackageFileManager
XPORTVERSION=	1.5.2
XCATEGORIES=	devel www pear
X
XMAINTAINER=	antonio at php.net
XCOMMENT=	PEAR class to maintain PEAR packages
X
XBUILD_DEPENDS=	${PEARDIR}/PEAR.php:${PORTSDIR}/devel/pear-PEAR
XRUN_DEPENDS=	${BUILD_DEPENDS}
X
XLATEST_LINK=	pear-${PORTNAME}
XOPTIONS=	PEAR_PHP_COMPATINFO "PEAR::PHP_CompatInfo support" off \
X		PEAR_XML_TREE "PEAR::XML_Tree support" off
X
XCATEGORY=	PEAR
XFILES=		PackageFileManager/Cvs.php PackageFileManager/File.php \
X		PackageFileManager/Perforce.php \
X		PackageFileManager/SimpleGenerator.php \
X		PackageFileManager/Svn.php \
X		PackageFileManager/XMLOutput.php PackageFileManager.php
XEXAMPLES=	createPhpDocumentor_package.xml.php generatePackage.xml.php
XTESTS=		addConfigureOption/test_invalid_nosetoptions.phpt \
X		addConfigureOption/test_valid_add1.phpt \
X		addConfigureOption/test_valid_add2.phpt \
X		addConfigureOption/test_valid_replace.phpt \
X		addDependency/test_invalid_nosetoptions.phpt \
X		addDependency/test_invalid_phppkg.phpt \
X		addDependency/test_valid_add_php.phpt \
X		addDependency/test_valid_add_pkg_explicit.phpt \
X		addDependency/test_valid_add_pkg_implicit.phpt \
X		addDependency/test_valid_replace.phpt \
X		addMaintainer/test_invalid_nosetoptions.phpt \
X		addMaintainer/test_invalid_wrongrole.phpt \
X		addMaintainer/test_valid_add.phpt \
X		addMaintainer/test_valid_replace.phpt \
X		addReplacement/test_invalid_replacement.phpt \
X		addReplacement/test_valid_replacement.phpt \
X		addRole/test_invalid_role.phpt \
X		addRole/test_valid_role.phpt \
X		footest/blarfoo/blartest.txt \
X		footest/subfoo/subsubfoo/boo.txt \
X		footest/subfoo/test11.txt footest/subfoo/test12.txt \
X		footest/testCVS/testEntries \
X		footest/testCVS/testEntries.Extra footest/.test \
X		footest/test1.txt footest/test2.txt \
X		generateNewPackageXML/test_invalid_nodescription.phpt \
X		generateNewPackageXML/test_invalid_nopackage.phpt \
X		generateNewPackageXML/test_invalid_nosummary.phpt \
X		generateNewPackageXML/test_valid_simple.phpt \
X		generateNewPackageXML/test_valid_withdeps.phpt \
X		generateNewPackageXML/test_valid_withdepsfalse.phpt \
X		generateNewPackageXML/test_valid_withmaintainers.phpt \
X		generateNewPackageXML/test_valid_withmaintainersfalse.phpt \
X		getExistingPackageXML/test_invalid_notexists_nopackage.phpt \
X		getExistingPackageXML/test_invalid_wrongdir.phpt \
X		getExistingPackageXML/test_valid_deps.phpt \
X		getExistingPackageXML/test_valid_maintainers.phpt \
X		getExistingPackageXML/test_valid_simple.phpt \
X		importOptions/test_invalid.phpt \
X		importOptions/test_valid.phpt \
X		PEAR_PackageFileManager_CVS/footest/blarfoo/blartest.txt \
X		PEAR_PackageFileManager_CVS/footest/subfoo/subsubfoo/boo.txt \
X		PEAR_PackageFileManager_CVS/footest/subfoo/test11.txt \
X		PEAR_PackageFileManager_CVS/footest/subfoo/test12.txt \
X		PEAR_PackageFileManager_CVS/footest/testCVS/testEntries \
X		PEAR_PackageFileManager_CVS/footest/testCVS/testEntries.Extra \
X		PEAR_PackageFileManager_CVS/footest/.test \
X		PEAR_PackageFileManager_CVS/footest/test1.txt \
X		PEAR_PackageFileManager_CVS/footest/test2.txt \
X		PEAR_PackageFileManager_CVS/setup.php.inc \
X		PEAR_PackageFileManager_CVS/test_dirList_invalid.phpt \
X		PEAR_PackageFileManager_CVS/test_dirList_valid.phpt \
X		PEAR_PackageFileManager_CVS/test_dirList_valid_with_ignore.phpt \
X		PEAR_PackageFileManager_CVS/test_dirList_valid_with_include.phpt \
X		PEAR_PackageFileManager_CVS/test_general_valid1.phpt \
X		PEAR_PackageFileManager_CVS/test_general_valid2.phpt \
X		PEAR_PackageFileManager_File/checkIgnore/test_complex_multiple_no.phpt \
X		PEAR_PackageFileManager_File/checkIgnore/test_complex_multiple_pass.phpt \
X		PEAR_PackageFileManager_File/checkIgnore/test_complex_no.phpt \
X		PEAR_PackageFileManager_File/checkIgnore/test_emptyarray.phpt \
X		PEAR_PackageFileManager_File/checkIgnore/test_nonarray.phpt \
X		PEAR_PackageFileManager_File/checkIgnore/test_simple_dir_no.phpt \
X		PEAR_PackageFileManager_File/checkIgnore/test_simple_dir_pass.phpt \
X		PEAR_PackageFileManager_File/checkIgnore/test_simple_no.phpt \
X		PEAR_PackageFileManager_File/checkIgnore/test_simple_pass.phpt \
X		PEAR_PackageFileManager_File/dirList/test_bug1217/0 \
X		PEAR_PackageFileManager_File/dirList/test_bug1217/firstfile.php \
X		PEAR_PackageFileManager_File/dirList/test_bug1217/fourthfile.php \
X		PEAR_PackageFileManager_File/dirList/test_bug1217/secondfile.php \
X		PEAR_PackageFileManager_File/dirList/test_bug1217.phpt \
X		PEAR_PackageFileManager_File/dirList/test_invalid.phpt \
X		PEAR_PackageFileManager_File/dirList/test_valid.phpt \
X		PEAR_PackageFileManager_File/dirList/test_valid_addhiddenfiles.phpt \
X		PEAR_PackageFileManager_File/dirList/test_valid_with_ignore.phpt \
X		PEAR_PackageFileManager_File/dirList/test_valid_with_include.phpt \
X		PEAR_PackageFileManager_File/getFileList/test_valid.phpt \
X		PEAR_PackageFileManager_File/getRegExpableSearchString/test_1.phpt \
X		PEAR_PackageFileManager_File/getRegExpableSearchString/test_dir_regexp.phpt \
X		PEAR_PackageFileManager_File/getRegExpableSearchString/test_file_regexp.phpt \
X		PEAR_PackageFileManager_File/setDir/test_concept.phpt \
X		PEAR_PackageFileManager_File/setupDirs/test_concept.phpt \
X		PEAR_PackageFileManager_File/setupDirs/test_valid.phpt \
X		PEAR_PackageFileManager_File/setupIgnore/test_complex.phpt \
X		PEAR_PackageFileManager_File/setupIgnore/test_complex_multiple.phpt \
X		PEAR_PackageFileManager_File/setupIgnore/test_emptyarray.phpt \
X		PEAR_PackageFileManager_File/setupIgnore/test_nonarray.phpt \
X		PEAR_PackageFileManager_File/setupIgnore/test_simple.phpt \
X		PEAR_PackageFileManager_File/setupIgnore/test_simple_0.phpt \
X		PEAR_PackageFileManager_File/setupIgnore/test_simple_dir.phpt \
X		PEAR_PackageFileManager_File/setup.php.inc \
X		PEAR_PackageFileManager_XMLOutput/test_valid1.phpt \
X		setOptions/test_invalid_badfilelistgenerator1.phpt \
X		setOptions/test_invalid_badfilelistgenerator2.phpt \
X		setOptions/test_invalid_badfilelistgenerator3.phpt \
X		setOptions/test_invalid_filelistgeneratorcustom.phpt \
X		setOptions/test_invalid_nobaseinstalldir.phpt \
X		setOptions/test_invalid_nopackagedir.phpt \
X		setOptions/test_invalid_nostate.phpt \
X		setOptions/test_invalid_noversion.phpt \
X		setOptions/test_valid_filelistgeneratorcustom.phpt \
X		setOptions/test_valid_filelistgeneratorcvs.phpt \
X		setOptions/test_valid_filelistgeneratorfile.phpt \
X		Bad_file.php phpt_test.php.inc setup.php.inc test1_package.xml \
X		Test_file.php
X
X.include <bsd.port.pre.mk>
X
X.if defined(WITH_PEAR_PHP_COMPATINFO)
XRUN_DEPENDS+=	${PEARDIR}/PHP/CompatInfo.php:${PORTSDIR}/devel/pear-PHP_CompatInfo
X.endif
X
X.if defined(WITH_PEAR_XML_TREE)
XRUN_DEPENDS+=	${PEARDIR}/XML/Tree.php:${PORTSDIR}/devel/pear-XML_Tree
X.endif
X
X.include "${PORTSDIR}/devel/pear-PEAR/Makefile.common"
X.include <bsd.port.post.mk>
END-of-pear-PEAR_PackageFileManager/Makefile
echo x - pear-PEAR_PackageFileManager/distinfo
sed 's/^X//' >pear-PEAR_PackageFileManager/distinfo << 'END-of-pear-PEAR_PackageFileManager/distinfo'
XMD5 (PEAR/PEAR_PackageFileManager-1.5.2.tgz) = 76b2b2f9c3491e451caf11adebf04df6
XSIZE (PEAR/PEAR_PackageFileManager-1.5.2.tgz) = 46832
END-of-pear-PEAR_PackageFileManager/distinfo
echo x - pear-PEAR_PackageFileManager/pkg-descr
sed 's/^X//' >pear-PEAR_PackageFileManager/pkg-descr << 'END-of-pear-PEAR_PackageFileManager/pkg-descr'
XPEAR::PEAR_PackageFileManager revolutionizes the maintenance of PEAR packages.
X
XWith a few parameters, the entire package.xml is automatically updated with a
Xlisting of all files in a package.
X
XFeatures include
X  - can detect PHP and extension dependencies using PHP_CompatInfo
X  - reads in an existing package.xml file, and only changes the 
X    release/changelog
X  - a plugin system for retrieving files in a directory. Currently two plugins
X    exist, one for standard recursive directory content listing, and one that
X    reads the CVS/Entries files and generates a file listing based on the 
X    contents of a checked out CVS repository
X  - incredibly flexible options for assigning install roles to files/directories
X  - ability to ignore any file based on a * ? wildcard-enabled string(s)
X  - ability to include only files that match a * ? wildcard-enabled string(s)
X  - ability to manage dependencies
X  - can output the package.xml in any directory, and read in the package.xml
X    file from any directory.
X  - can specify a different name for the package.xml file
X
XPEAR_PackageFileManager is fully unit tested.
X
XWWW: http://pear.php.net/package/PEAR_PackageFileManager/
END-of-pear-PEAR_PackageFileManager/pkg-descr
exit
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list