ports/65511: [PATCH] FILES-ify www/pear-HTTP_Header

Roman Neuhauser neuhauser at chello.cz
Tue Apr 13 23:00:36 UTC 2004


>Number:         65511
>Category:       ports
>Synopsis:       [PATCH] FILES-ify www/pear-HTTP_Header
>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:   Tue Apr 13 16:00:35 PDT 2004
>Closed-Date:
>Last-Modified:
>Originator:     Roman Neuhauser
>Release:        FreeBSD 4.9-RELEASE-p2 i386
>Organization:
>Environment:
System: FreeBSD isis.wad.cz 4.9-RELEASE-p2 FreeBSD 4.9-RELEASE-p2 #3: Sun Mar 7 02:11:16 CET 2004 root at isis.wad.cz:/usr/obj/usr/src/sys/FREEPUPPY2_6 i386


	
>Description:
	Same two changes as in ports/65510:

    * the library is installed under $PEARDIR/HTTP instead of $PEARDIR
    * examples are installed in $EXAMPLESDIR
    * removes the assumption that the last thing in pear-PEAR/Makefile.common
      is the post-install target (slight reorganization, and the docs-intalling
      chunk in pear-HTTP_Header/Makefile will turn into "unassociated shell
      command" error.

    I'm ccing Alex Miller, original author of the port just like in the
    above mentioned PR. Alex, do you object the fixes? (They are independent
    of the use of FILES).
>How-To-Repeat:
	Don't forget to remove the empty pkg-plist.
>Fix:

	

--- www-pear-HTTP_Header.FILES.patch begins here ---
Index: www/pear-HTTP_Header/Makefile
===================================================================
RCS file: /home/ncvs/ports/www/pear-HTTP_Header/Makefile,v
retrieving revision 1.2
diff -u -r1.2 Makefile
--- www/pear-HTTP_Header/Makefile	28 Dec 2003 09:11:27 -0000	1.2
+++ www/pear-HTTP_Header/Makefile	13 Apr 2004 21:43:17 -0000
@@ -7,6 +7,7 @@
 
 PORTNAME=	HTTP_Header
 PORTVERSION=	0.1.5
+PORTREVISION=	1
 CATEGORIES=	www devel pear
 
 MAINTAINER=	ports at FreeBSD.org
@@ -16,20 +17,11 @@
 RUN_DEPENDS=	${BUILD_DEPENDS} \
 		${PEARDIR}/HTTP.php:${PORTSDIR}/www/pear-HTTP
 
+CATEGORY=	HTTP
+FILES=		Header.php Header/Cache.php
+EXAMPLES=	Header_Cache.php
+_EXAMPLESDIR=	docs
+
 .include <bsd.port.pre.mk>
 .include "${PORTSDIR}/devel/pear-PEAR/Makefile.common"
-
-.if !defined(NOPORTDOCS)
-	@${MKDIR} ${DOCSDIR}
-	@${INSTALL_DATA} ${WRKSRC}/docs/Header_Cache.php ${DOCSDIR}
-	@${ECHO_MSG} "===> Documentation installed in ${DOCSDIR}."
-.endif
-
-do-install:
-	@${MKDIR} ${PEARDIR}/Header
-	@${CP} ${WRKSRC}/Header/Cache.php ${PEARDIR}/Header
-	@${CP} ${WRKSRC}/Header.php ${PEARDIR}
-	@${CHOWN} ${SHAREOWN}:${SHAREGRP} ${PEARDIR}/Header.php
-	@${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${PEARDIR}/Header
-
 .include <bsd.port.post.mk>
Index: www/pear-HTTP_Header/pkg-plist
===================================================================
RCS file: /home/ncvs/ports/www/pear-HTTP_Header/pkg-plist,v
retrieving revision 1.1
diff -u -r1.1 pkg-plist
--- www/pear-HTTP_Header/pkg-plist	28 Dec 2003 08:52:55 -0000	1.1
+++ www/pear-HTTP_Header/pkg-plist	13 Apr 2004 21:42:25 -0000
@@ -1,7 +0,0 @@
-%%PEARDIR%%/Header.php
-%%PEARDIR%%/Header/Cache.php
-%%PKGREGDIR%%/package.xml
-%%PORTDOCS%%%%DOCSDIR%%/Header_Cache.php
- at dirrm %%PEARDIR%%/Header
- at dirrm %%PKGREGDIR%%
-%%PORTDOCS%%@dirrm %%DOCSDIR%%
--- www-pear-HTTP_Header.FILES.patch ends here ---


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



More information about the freebsd-ports-bugs mailing list