ports/51071: New port: net/pear-Net_URL - Easy parsing of Urls

Roman Neuhauser neuhauser at bellavista.cz
Wed Apr 16 21:50:17 UTC 2003


>Number:         51071
>Category:       ports
>Synopsis:       New port: net/pear-Net_URL - Easy parsing of Urls
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Apr 16 14:50:15 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator:     Thierry Thomas
>Release:        FreeBSD 4.8-RC i386
>Organization:
>Environment:
System: FreeBSD graf.pompo.net 4.8-RC FreeBSD 4.8-RC #0: Sat Mar 29 02:08:33 CET 2003 thierry at graf.pompo.net:/usr/obj/mntsrc/src/sys/GRAF020727 i386


	
>Description:
	PEAR class providing easy parsing of URLs and their constituent parts.

>How-To-Repeat:
	N/A.

>Fix:
	Pre-requisite: PR ports/50737 must be committed.

	Please execute the following shar file:


# 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:
#
#	net/pear-Net_URL/
#	net/pear-Net_URL/Makefile
#	net/pear-Net_URL/distinfo
#	net/pear-Net_URL/pkg-descr
#	net/pear-Net_URL/pkg-plist
#	net/pear-Net_URL/pkg-deinstall
#	net/pear-Net_URL/pkg-install
#
echo c - net/pear-Net_URL/
mkdir -p net/pear-Net_URL/ > /dev/null 2>&1
echo x - net/pear-Net_URL/Makefile
sed 's/^X//' >net/pear-Net_URL/Makefile << 'END-of-net/pear-Net_URL/Makefile'
X# Ports collection makefile for:  pear-Net_URL
X# Date created:			  2003-04-04
X# Whom:				  Roman Neuhauser (<neuhauser at bellavista.cz>)
X#
X# $FreeBSD$
X#
X
XPORTNAME=	Net_URL
XPORTVERSION=	1.0.10
XCATEGORIES=	net www
XMASTER_SITES=	http://pear.php.net/get/
XPKGNAMEPREFIX=	pear-
XEXTRACT_SUFX=	.tgz
XDIST_SUBDIR=	PEAR
X
XMAINTAINER=	neuhauser at bellavista.cz
XCOMMENT=	Easy parsing of Urls
X
XBUILD_DEPENDS=	${PEARDIR}.DIST_PHP:${PORTSDIR}/devel/pear-install
XRUN_DEPENDS=	${BUILD_DEPENDS}
X
XNO_BUILD=	yes
X
X.include <bsd.port.pre.mk>
X
X.if exists(${LOCALBASE}/bin/php-config)
XPHP_BASE!=	${LOCALBASE}/bin/php-config --prefix
X.endif
XPEAR=		${LOCALBASE}/bin/pear
XLPHP_LIB=	lib/php
XPEARDIR=	${PHP_BASE}/${LPHP_LIB}
XLPKGREGDIR=	.PEAR.pkg/${PKGNAME}
XPKGREGDIR=	${PREFIX}/${LPKGREGDIR}
XPLIST_SUB=	PEARDIR=${LPHP_LIB} PKGREGDIR=${LPKGREGDIR}
X
Xdo-install:
X	@${MKDIR} ${PKGREGDIR}
X	@${INSTALL_DATA} ${WRKDIR}/package.xml ${PKGREGDIR}
X	@${INSTALL_DATA} ${WRKSRC}/URL.php ${PEARDIR}/Net
X
Xpost-install:
X	@${SETENV} PKG_PREFIX=${PREFIX} \
X	${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
X
X.include <bsd.port.post.mk>
END-of-net/pear-Net_URL/Makefile
echo x - net/pear-Net_URL/distinfo
sed 's/^X//' >net/pear-Net_URL/distinfo << 'END-of-net/pear-Net_URL/distinfo'
XMD5 (PEAR/Net_URL-1.0.10.tgz) = 92db5fef86bb64da7c5edae6c63edb21
END-of-net/pear-Net_URL/distinfo
echo x - net/pear-Net_URL/pkg-descr
sed 's/^X//' >net/pear-Net_URL/pkg-descr << 'END-of-net/pear-Net_URL/pkg-descr'
XProvides easy parsing of URLs and their constituent parts.
X
XWWW: http://pear.php.net/package-info.php?pacid=34
END-of-net/pear-Net_URL/pkg-descr
echo x - net/pear-Net_URL/pkg-plist
sed 's/^X//' >net/pear-Net_URL/pkg-plist << 'END-of-net/pear-Net_URL/pkg-plist'
X%%PEARDIR%%/Net/URL.php
X%%PKGREGDIR%%/package.xml
X at dirrm %%PKGREGDIR%%
END-of-net/pear-Net_URL/pkg-plist
echo x - net/pear-Net_URL/pkg-deinstall
sed 's/^X//' >net/pear-Net_URL/pkg-deinstall << 'END-of-net/pear-Net_URL/pkg-deinstall'
X#!/bin/sh
X#
X# $FreeBSD$
X#
X# Unegister the package $1 from the PEAR registry
X
X[ "x${1}" = "x" ] && exit 1;
X
XPREFIX=${PKG_PREFIX:-/usr/local}
XPEAR=${PREFIX}/bin/pear
XPKGREGDIR=${PREFIX}/.PEAR.pkg/${1}
XPKGNAME=${1}
XPKGNAME=${PKGNAME#pear-}
XPKGNAME=${PKGNAME%%-*}
X
Xif [ "x${2}" = "xPOST-DEINSTALL" ]; then
X    ${PEAR} uninstall -rn ${PKGNAME}
Xfi
X
END-of-net/pear-Net_URL/pkg-deinstall
echo x - net/pear-Net_URL/pkg-install
sed 's/^X//' >net/pear-Net_URL/pkg-install << 'END-of-net/pear-Net_URL/pkg-install'
X#!/bin/sh
X#
X# $FreeBSD$
X#
X# Register the package $1 in the port registry
X
X[ "x$1" = "x" ] && exit 1
X
XPREFIX=${PKG_PREFIX:-/usr/local}
XPEAR=${PREFIX}/bin/pear
XPKGREGDIR=${PREFIX}/.PEAR.pkg/$1
X
Xif [ "x$2" = "xPOST-INSTALL" ]; then
X    ${PEAR} install -rf ${PKGREGDIR}/package.xml
Xfi
X
END-of-net/pear-Net_URL/pkg-install
exit

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



More information about the freebsd-ports-bugs mailing list