Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 3 Jan 2011 12:26:35 GMT
From:      Alex Keda <admin@lissyara.su>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/153646: New port devel/pecl-apd
Message-ID:  <201101031226.p03CQZSx071471@red.freebsd.org>
Resent-Message-ID: <201101031230.p03CUA9t038665@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         153646
>Category:       ports
>Synopsis:       New port devel/pecl-apd
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jan 03 12:30:10 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Alex Keda
>Release:        9.0-CURRENT
>Organization:
USSR
>Environment:
FreeBSD lissyara.moskb.local 9.0-CURRENT FreeBSD 9.0-CURRENT #0 r216903: Mon Jan  3 08:09:58 MSK 2011     root@lissyara.moskb.local:/usr/obj/usr/src/sys/GENERIC  amd64

>Description:
new port http://pear.php.net/package/apd
>How-To-Repeat:

>Fix:
see shar file

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:
#
#	devel/pecl-apd
#	devel/pecl-apd/files
#	devel/pecl-apd/files/pkg-message.in
#	devel/pecl-apd/Makefile
#	devel/pecl-apd/pkg-descr
#	devel/pecl-apd/pkg-plist
#	devel/pecl-apd/distinfo
#
echo c - devel/pecl-apd
mkdir -p devel/pecl-apd > /dev/null 2>&1
echo c - devel/pecl-apd/files
mkdir -p devel/pecl-apd/files > /dev/null 2>&1
echo x - devel/pecl-apd/files/pkg-message.in
sed 's/^X//' >devel/pecl-apd/files/pkg-message.in << '8bbada105a0720b47c58744efa249fb8'
X************************************************************************
X
XDo not forget to configure your %%LOCALBASE%%/etc/php.ini file:
Xadd the line:
X
Xzend_extension = %%LOCALBASE%%/lib/php/%%PHP_EXT_DIR%%/apd.so
Xapd.dumpdir = %%DUMP_DIR%%
X
Xin the section "Dynamic Extensions".
X
X************************************************************************
X
8bbada105a0720b47c58744efa249fb8
echo x - devel/pecl-apd/Makefile
sed 's/^X//' >devel/pecl-apd/Makefile << '5673ae2cef42194dab4edacf0b74c64e'
X# Ports collection makefile for:  pear-apd
X# Date created:			  2011-01-03
X# Whom:				  Alex Keda <admin@lissyara.su>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	apd
XPORTVERSION=	1.0.1
XCATEGORIES=	devel pear
XMASTER_SITES=	http://pecl.php.net/get/
XPKGNAMEPREFIX=	pecl-
XEXTRACT_SUFX=	.tgz
XDIST_SUBDIR=	PECL
X
XMAINTAINER=	admin@lissyara.su
XCOMMENT=	A full-featured engine-level PHP profiler/debugger
X
XUSE_PHP=	yes
XUSE_PHPIZE=	yes
XUSE_PHP_BUILD=	yes
XIGNORE_WITH_PHP=4
X
XCONFIGURE_ARGS=	--enable-apd --with-apd
X
XDUMP_DIR?=	/var/tmp/apd
X
XLICENSE=	PHP301
X
XSUB_FILES=	pkg-message
XPKGMESSAGE=	${WRKDIR}/pkg-message
XSUB_LIST+=	DUMP_DIR=${DUMP_DIR}
X
XPORTDOCS=	README
X
X.include <bsd.port.pre.mk>
X
Xpost-patch:
X.if ${PHP_VER} == 5
X	@${REINPLACE_CMD} -e '396,398 d' ${WRKSRC}/php_apd.c
X.endif
X
Xpost-patch:
X.if ${PHP_VER} == 52
X	@${REINPLACE_CMD} -e '396,398 d' ${WRKSRC}/php_apd.c
X.endif
X
Xdo-install:
X	@${MKDIR} ${PREFIX}/lib/php/${PHP_EXT_DIR}
X	${INSTALL_DATA} ${WRKSRC}/modules/${PORTNAME}.so \
X	${PREFIX}/lib/php/${PHP_EXT_DIR}
X
Xpost-install:
X.if !defined(NOPORTDOCS)
X	@${MKDIR} ${DOCSDIR}
X	${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
X.endif
Xpost-install-script:
X	@${STRIP_CMD} ${PREFIX}/lib/php/${PHP_EXT_DIR}/apd.so
X	@${MKDIR} ${DUMP_DIR}
X	@${CHMOD} a+w ${DUMP_DIR}
X	${INSTALL_SCRIPT} ${WRKSRC}/pprofp ${PREFIX}/bin
X	@${CAT} ${PKGMESSAGE}
X
X.include <bsd.port.post.mk>
X
5673ae2cef42194dab4edacf0b74c64e
echo x - devel/pecl-apd/pkg-descr
sed 's/^X//' >devel/pecl-apd/pkg-descr << '8f2fde3ad5fb4a607417a1b8de7bdafe'
XAPD is a full-featured PHP profiler/debugger that is loaded as a
Xzend_extension.
X
XIt aims to be an analog of C's gprof or Perl's Devel::DProf.
X
XWWW: http://pear.php.net/package/apd
8f2fde3ad5fb4a607417a1b8de7bdafe
echo x - devel/pecl-apd/pkg-plist
sed 's/^X//' >devel/pecl-apd/pkg-plist << '8c23beeb8ef88522d533352f89632b2d'
Xbin/pprofp
Xlib/php/%%PHP_EXT_DIR%%/apd.so
8c23beeb8ef88522d533352f89632b2d
echo x - devel/pecl-apd/distinfo
sed 's/^X//' >devel/pecl-apd/distinfo << 'c9a7d7c87f995b5dfc24040229a72eea'
XSHA256 (PECL/apd-1.0.1.tgz) = 891f04b5b8b0bb1903f84d01389bc76f87710baf8cecdd37a323adf28c3cb21e
XSIZE (PECL/apd-1.0.1.tgz) = 36643
c9a7d7c87f995b5dfc24040229a72eea
exit



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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201101031226.p03CQZSx071471>