ports/114518: [NEW PORT] add port of pear-File_Fortune

Zhen REN bg1tpt at gmail.com
Thu Jul 12 03:50:05 UTC 2007


>Number:         114518
>Category:       ports
>Synopsis:       [NEW PORT] add port of pear-File_Fortune
>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:   Thu Jul 12 03:50:04 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator:     Zhen REN
>Release:        6.2-RELEASE-p5
>Organization:
>Environment:
FreeBSD razor 6.2-RELEASE-p5 FreeBSD 6.2-RELEASE-p5 #1: Tue Jul 10 10:59:20 CST 2007     root at razor:/usr/obj/usr/src/sys/RAZOR  i386
>Description:
Add port of pear-File_Fortune

The tests php script has been patched, because the file that test script needed is  in _files/orig. But the bsd.pear.mk will only add @dirrm _files/orig, without @dirrm _files.


>How-To-Repeat:
N/A
>Fix:
N/A

Patch attached with submission follows:

# 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-File_Fortune
#	./pear-File_Fortune/Makefile
#	./pear-File_Fortune/distinfo
#	./pear-File_Fortune/pkg-descr
#	./pear-File_Fortune/files
#	./pear-File_Fortune/files/patch-tests__File_FortuneTest.php
#
echo c - ./pear-File_Fortune
mkdir -p ./pear-File_Fortune > /dev/null 2>&1
echo x - ./pear-File_Fortune/Makefile
sed 's/^X//' >./pear-File_Fortune/Makefile << 'END-of-./pear-File_Fortune/Makefile'
X# Ports collection makefile for:  pear-File_Fortune
X# Date created:			  12 July 2007
X# Whom:				  Zhen REN <bg1tpt at gmail.com>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	File_Fortune
XPORTVERSION=	1.0.0r2
XCATEGORIES=	textproc pear
XDISTNAME=	${PORTNAME}-1.0.0RC2
X
XMAINTAINER=	bg1tpt at gmail.com
XCOMMENT=	An interface for reading from and writing to fortune files
X
XBUILD_DEPENDS=	${PEARDIR}/PEAR.php:${PORTSDIR}/devel/pear
XRUN_DEPENDS=	${BUILD_DEPENDS}
X
XCATEGORY=	File
XFILES=		Fortune.php Fortune/Exception.php
X_FILESDIR=	File
XTESTS=		AllTests.php File_FortuneTest.php orig/ftest orig/ftest.dat \
X		orig/ftest2 orig/ftest2.dat
XEXAMPLES=	phpFortune
XDOCS=		File_Fortune.cls
X_DOCSDIR=	tutorials
X
Xpost-extract:
X	${MV} ${WRKSRC}/File/Fortune.php ${WRKSRC}/File/Fortune ${WRKSRC}
X	${MV} ${WRKSRC}/tests/_files/orig ${WRKSRC}/tests/orig
X
X.include <bsd.port.pre.mk>
X.include "${PORTSDIR}/devel/pear/bsd.pear.mk"
X.include <bsd.port.post.mk>
END-of-./pear-File_Fortune/Makefile
echo x - ./pear-File_Fortune/distinfo
sed 's/^X//' >./pear-File_Fortune/distinfo << 'END-of-./pear-File_Fortune/distinfo'
XMD5 (PEAR/File_Fortune-1.0.0RC2.tgz) = 44863a4c46c9dedbdcdb4686ad9cf18c
XSHA256 (PEAR/File_Fortune-1.0.0RC2.tgz) = 2e9e5f788213d11e636465e756a7b1fba89eeab69e2da6db6225e55be3918bf5
XSIZE (PEAR/File_Fortune-1.0.0RC2.tgz) = 14481
END-of-./pear-File_Fortune/distinfo
echo x - ./pear-File_Fortune/pkg-descr
sed 's/^X//' >./pear-File_Fortune/pkg-descr << 'END-of-./pear-File_Fortune/pkg-descr'
XFile_Fortune provides a PHP interface to reading fortune files. With it, you may
Xretrieve a single fortune, a random fortune, or all fortunes in the file.
X
XAdditionally, it offers the ability to access fortune files as if they were a
Xnative array, including updating and deleting items. All write operations will
Xproduce a binary header file to allow compatability with the fortune and
Xfortune-mod programs (as well as other fortune interfaces).
X
XWWW: http://pear.php.net/package/File_Fortune/
END-of-./pear-File_Fortune/pkg-descr
echo c - ./pear-File_Fortune/files
mkdir -p ./pear-File_Fortune/files > /dev/null 2>&1
echo x - ./pear-File_Fortune/files/patch-tests__File_FortuneTest.php
sed 's/^X//' >./pear-File_Fortune/files/patch-tests__File_FortuneTest.php << 'END-of-./pear-File_Fortune/files/patch-tests__File_FortuneTest.php'
X--- ./tests/File_FortuneTest.php.orig	2007-07-12 11:31:59.515214662 +0800
X+++ ./tests/File_FortuneTest.php	2007-07-12 11:32:15.386685251 +0800
X@@ -49,7 +49,7 @@
X      */
X     public function setUp()
X     {
X-        $this->base = $base = dirname(__FILE__) . '/_files/';
X+        $this->base = $base = dirname(__FILE__);
X         $origBase = $base . '/orig/';
X         foreach ($this->fortuneFiles as $file) {
X             copy($origBase . $file, $base . $file);
END-of-./pear-File_Fortune/files/patch-tests__File_FortuneTest.php
exit



>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list