From owner-freebsd-ports Wed Mar 27 12: 0:25 2002 Delivered-To: freebsd-ports@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 32FE837B41B for ; Wed, 27 Mar 2002 12:00:03 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g2RK03K17250; Wed, 27 Mar 2002 12:00:03 -0800 (PST) (envelope-from gnats) Received: from vaio.alexdupre.com (212-41-211-209.adsl.galactica.it [212.41.211.209]) by hub.freebsd.org (Postfix) with ESMTP id 6064737B417 for ; Wed, 27 Mar 2002 11:59:44 -0800 (PST) Received: (from alex@localhost) by vaio.alexdupre.com (8.11.6/8.11.6) id g2RK47c20324; Wed, 27 Mar 2002 21:04:07 +0100 (CET) (envelope-from alex) Message-Id: <200203272004.g2RK47c20324@vaio.alexdupre.com> Date: Wed, 27 Mar 2002 21:04:07 +0100 (CET) From: Alex Dupre Reply-To: Alex Dupre To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: ports/36382: [Patch] www/php-templates (various fixes) Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 36382 >Category: ports >Synopsis: [Patch] www/php-templates (various fixes) >Confidential: no >Severity: critical >Priority: medium >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: maintainer-update >Submitter-Id: current-users >Arrival-Date: Wed Mar 27 12:00:03 PST 2002 >Closed-Date: >Last-Modified: >Originator: Alex Dupre >Release: FreeBSD 4.5-ALEXDUPRE i386 >Organization: >Environment: System: FreeBSD vaio.alexdupre.com 4.5-ALEXDUPRE FreeBSD 4.5-ALEXDUPRE #0: Sun Mar 10 23:48:11 CET 2002 alex@vaio.alexdupre.com:/usr/obj/usr/src/sys/VAIO i386 >Description: The port now respects prefix/localbase Package can be built (Bento fix) Take maintainership >How-To-Repeat: >Fix: --- php-templates.diff begins here --- diff -ruN php-templates.orig/Makefile php-templates/Makefile --- php-templates.orig/Makefile Wed Mar 27 19:42:53 2002 +++ php-templates/Makefile Wed Mar 27 19:49:25 2002 @@ -12,7 +12,7 @@ MASTER_SITE_SUBDIR= ${PORTNAME} DISTNAME= php_templates-${PORTVERSION} -MAINTAINER= ports@FreeBSD.org +MAINTAINER= sysadmin@alexdupre.com BUILD_DEPENDS= aclocal:${PORTSDIR}/devel/automake \ autoconf:${PORTSDIR}/devel/autoconf \ @@ -33,10 +33,12 @@ @cd ${WRKSRC} && ${LOCALBASE}/bin/phpize do-install: - @${INSTALL} ${WRKSRC}/modules/templates.so \ - ${LOCALBASE}/lib/php/20010901 + @${MKDIR} ${PREFIX}/lib/php/20010901 + @${INSTALL_DATA} ${WRKSRC}/modules/templates.so \ + ${PREFIX}/lib/php/20010901 post-install: - @${SED} s!%%LOCALBASE%%!${LOCALBASE}!g ${PKGMESSAGE} + @${SED} "s!%%LOCALBASE%%!${LOCALBASE}!g;s!%%PREFIX%%!${PREFIX}!g" \ + ${PKGMESSAGE} .include diff -ruN php-templates.orig/pkg-descr php-templates/pkg-descr --- php-templates.orig/pkg-descr Wed Mar 27 19:42:53 2002 +++ php-templates/pkg-descr Wed Mar 27 19:57:53 2002 @@ -1 +1,9 @@ -A template framework for PHP +php_templates is an extension to PHP language which provides +easier and faster work with templates files. +This engine works much faster than any existing template library +written in PHP. + +WWW: http://sourceforge.net/projects/php-templates/ + +- Alex Dupre +sysadmin@alexdupre.com diff -ruN php-templates.orig/pkg-message php-templates/pkg-message --- php-templates.orig/pkg-message Wed Mar 27 19:42:53 2002 +++ php-templates/pkg-message Wed Mar 27 19:59:45 2002 @@ -1,6 +1,9 @@ +***************************************************************************** You have installed the php-templates package. Edit %%LOCALBASE%%/etc/php.ini and add: -extension="%%LOCALBASE%%/lib/php/20010901/templates.so" +extension="%%PREFIX%%/lib/php/20010901/templates.so" + +***************************************************************************** diff -ruN php-templates.orig/pkg-plist php-templates/pkg-plist --- php-templates.orig/pkg-plist Wed Mar 27 19:42:53 2002 +++ php-templates/pkg-plist Wed Mar 27 19:52:58 2002 @@ -1 +1,2 @@ lib/php/20010901/templates.so +@unexec rmdir %D/lib/php/20010901 --- php-templates.diff ends here --- >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message