Bug 74511 - [patch] update of www/p5-Apache-Gallery to 0.9.1
Summary: [patch] update of www/p5-Apache-Gallery to 0.9.1
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-29 12:30 UTC by Kenneth Vestergaard Schmidt
Modified: 2004-12-01 07:58 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kenneth Vestergaard Schmidt 2004-11-29 12:30:21 UTC
	Update of www/p5-Apache-Gallery to latest version.

--- update-0.9.1.diff begins here ---
diff -ur /usr/ports/www/p5-Apache-Gallery/Makefile p5-Apache-Gallery/Makefile
--- /usr/ports/www/p5-Apache-Gallery/Makefile	Wed Sep 24 10:45:08 2003
+++ p5-Apache-Gallery/Makefile	Mon Nov 29 11:26:58 2004
@@ -6,26 +6,39 @@
 #
 
 PORTNAME=	Apache-Gallery
-PORTVERSION=	0.7
+PORTVERSION=	0.9.1
 CATEGORIES=	www perl5
 MASTER_SITES=	http://apachegallery.dk/download/ \
 		${MASTER_SITE_PERL_CPAN}
 MASTER_SITE_SUBDIR=	Apache
 PKGNAMEPREFIX=	p5-
 
+PERL_CONFIGURE=	yes
+
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	Apache::Gallery - mod_perl handler to create an image gallery
 
-BUILD_DEPENDS=	${SITE_PERL}/${PERL_ARCH}/Apache/Request.pm:${PORTSDIR}/www/p5-libapreq \
+BUILD_DEPENDS=	${APXS}:${PORTSDIR}/${APACHE_PORT} \
 		${SITE_PERL}/URI/Escape.pm:${PORTSDIR}/net/p5-URI \
+		${SITE_PERL}/Text/Template.pm:${PORTSDIR}/textproc/p5-Text-Template \
 		${SITE_PERL}/Image/Info.pm:${PORTSDIR}/graphics/p5-Image-Info \
-		${SITE_PERL}/CGI/FastTemplate.pm:${PORTSDIR}/www/p5-CGI-FastTemplate \
 		${SITE_PERL}/Image/Size.pm:${PORTSDIR}/graphics/p5-Image-Size \
 		${SITE_PERL}/${PERL_ARCH}/Image/Imlib2.pm:${PORTSDIR}/graphics/p5-Image-Imlib2 \
 		${SITE_PERL}/CGI.pm:${PORTSDIR}/www/p5-CGI.pm
+
 RUN_DEPENDS=	${BUILD_DEPENDS}
 
-PKGMESSAGE=	${WRKDIR}/pkg-message
+.if defined(WITH_APACHE2)
+BUILD_DEPENDS+=	${LOCALBASE}/libexec/apache2/mod_perl.so:${PORTSDIR}/www/mod_perl2
+DEPENDS_ARGS+=	WITHOUT_MODPERL=yes
+DEPENDS_ARGS+=	WITH_MODPERL2=yes
+.else
+# XXX - probe for static mod_perl using `httpd -l | grep perl`
+BUILD_DEPENDS+=	${LOCALBASE}/libexec/apache/libperl.so:${PORTSDIR}/www/mod_perl \
+		${SITE_PERL}/${PERL_ARCH}/Apache/Request.pm:${PORTSDIR}/www/p5-libapreq
+.endif
+.endif
+
 PERL_CONFIGURE=	yes
 
 MAN3=		Apache::Gallery.3
@@ -42,9 +55,6 @@
 		video-mov.png video-mpeg.png video-mpg.png video-wmv.png \
 		video-asf.png agfolder.png
 
-post-configure:
-	@ ${SED} -e 's#%%PREFIX%%#${PREFIX}#g' pkg-message > ${PKGMESSAGE}
-
 post-install:
 .if !defined(NOPORTDOCS)
 	${MKDIR} ${PREFIX}/share/Apache-Gallery/templates
@@ -61,7 +71,7 @@
 		${PREFIX}/share/Apache-Gallery/css/
 .endif
 .if !defined(BATCH)
-	@ ${CAT} ${PKGMESSAGE}
+	@${SED} s!%%PREFIX%%!${PREFIX}!g ${PKGMESSAGE}
 .endif
 
 .include <bsd.port.pre.mk>
diff -ur /usr/ports/www/p5-Apache-Gallery/distinfo p5-Apache-Gallery/distinfo
--- /usr/ports/www/p5-Apache-Gallery/distinfo	Tue Mar  2 15:15:35 2004
+++ p5-Apache-Gallery/distinfo	Mon Nov 29 11:11:27 2004
@@ -1,2 +1,2 @@
-MD5 (Apache-Gallery-0.7.tar.gz) = ff79dedab956105456e6c70d495f6a72
-SIZE (Apache-Gallery-0.7.tar.gz) = 73532
+MD5 (Apache-Gallery-0.9.1.tar.gz) = 882e650e6fc3f059e84eca1564b5f32f
+SIZE (Apache-Gallery-0.7.tar.gz) = 82230
Only in p5-Apache-Gallery/files: patch-Server.pm
diff -ur /usr/ports/www/p5-Apache-Gallery/pkg-plist p5-Apache-Gallery/pkg-plist
--- /usr/ports/www/p5-Apache-Gallery/pkg-plist	Wed Sep 24 10:45:08 2003
+++ p5-Apache-Gallery/pkg-plist	Mon Nov 29 11:28:34 2004
@@ -24,11 +24,11 @@
 share/Apache-Gallery/css/gallery.css
 www/icons/agfolder.png
 www/icons/application-doc.png
-www/icons/application-mp3.png
-www/icons/application-ogg.png
 www/icons/application-pdf.png
 www/icons/application-rtf.png
-www/icons/application-wav.png
+www/icons/sound-mp3.png
+www/icons/sound-ogg.png
+www/icons/sound-wav.png
 www/icons/video-asf.png
 www/icons/video-avi.png
 www/icons/video-mov.png
--- update-0.9.1.diff ends here ---
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2004-12-01 07:58:06 UTC
State Changed
From-To: open->closed

Next time please run portlint. 
Committed, thanks!