Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 27 Mar 2002 21:04:07 +0100 (CET)
From:      Alex Dupre <sysadmin@alexdupre.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/36382: [Patch] www/php-templates (various fixes)
Message-ID:  <200203272004.g2RK47c20324@vaio.alexdupre.com>

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

>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 <bsd.port.mk>
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




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