aboutsummaryrefslogtreecommitdiffstats
path: root/www/gallery/Makefile
diff options
context:
space:
mode:
authorale <ale@FreeBSD.org>2004-01-13 20:53:54 +0800
committerale <ale@FreeBSD.org>2004-01-13 20:53:54 +0800
commit3ac6216738bbf315da1ea010e40db73342966962 (patch)
tree64282b553258d9496bc66f366230a26af8ccd30d /www/gallery/Makefile
parent5c56fa7d50f1884396a4410ff6359970c0c99dc9 (diff)
downloadfreebsd-ports-gnome-3ac6216738bbf315da1ea010e40db73342966962.tar.gz
freebsd-ports-gnome-3ac6216738bbf315da1ea010e40db73342966962.tar.zst
freebsd-ports-gnome-3ac6216738bbf315da1ea010e40db73342966962.zip
- Update to 1.4.1 release and add language packs [1]
- Set submitter as new maintainer [1] - Make portlint happy PR: ports/61285 [1] Submitted by: Alex Varju <varju@webct.com> [1] Approved by: nork (mentor)
Diffstat (limited to 'www/gallery/Makefile')
-rw-r--r--www/gallery/Makefile53
1 files changed, 48 insertions, 5 deletions
diff --git a/www/gallery/Makefile b/www/gallery/Makefile
index ff9720a90cee..10ab0ea1a67d 100644
--- a/www/gallery/Makefile
+++ b/www/gallery/Makefile
@@ -6,25 +6,58 @@
#
PORTNAME= gallery
-PORTVERSION= 1.4.0.2
+PORTVERSION= 1.4.1
CATEGORIES= www
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
-DISTNAME= ${PORTNAME}-${PORTVERSION:C/\.[0-9]\.([0-9]+)$/-pl\1/}
+DISTFILES= ${DISTNAME}${EXTRACT_SUFX} ${LANGPACKS}
+DIST_SUBDIR= gallery
-MAINTAINER= ports@FreeBSD.org
+MAINTAINER= varju@webct.com
COMMENT= Gallery is a slick web based photo album written using PHP
RUN_DEPENDS= giftopnm:${PORTSDIR}/graphics/netpbm \
jhead:${PORTSDIR}/graphics/jhead \
unzip:${PORTSDIR}/archivers/unzip
+LANGPACKS= af_ZA-pack-${PORTVERSION}-u1${EXTRACT_SUFX} \
+ bg_BG-pack-${PORTVERSION}-u1${EXTRACT_SUFX} \
+ cs_CZ.cp1250-pack-${PORTVERSION}-u1${EXTRACT_SUFX} \
+ da_DK-pack-${PORTVERSION}${EXTRACT_SUFX} \
+ de_DE-pack-${PORTVERSION}-u2${EXTRACT_SUFX} \
+ de_DE.du-pack-${PORTVERSION}-u1${EXTRACT_SUFX} \
+ en_GB-pack-${PORTVERSION}${EXTRACT_SUFX} \
+ es_ES-pack-${PORTVERSION}-u2${EXTRACT_SUFX} \
+ fi_FI-pack-${PORTVERSION}-u1${EXTRACT_SUFX} \
+ fr_FR-pack-${PORTVERSION}-u1${EXTRACT_SUFX} \
+ he_IL-pack-${PORTVERSION}-u1${EXTRACT_SUFX} \
+ hu_HU-pack-${PORTVERSION}-u1${EXTRACT_SUFX} \
+ is_IS-pack-${PORTVERSION}-u1${EXTRACT_SUFX} \
+ it_IT-pack-${PORTVERSION}${EXTRACT_SUFX} \
+ ja_JP-pack-${PORTVERSION}-u1${EXTRACT_SUFX} \
+ ko_KR-pack-${PORTVERSION}-u1${EXTRACT_SUFX} \
+ lt_LT-pack-${PORTVERSION}-u1${EXTRACT_SUFX} \
+ nl_NL-pack-${PORTVERSION}-u1${EXTRACT_SUFX} \
+ no_NO-pack-${PORTVERSION}${EXTRACT_SUFX} \
+ pl_PL-pack-${PORTVERSION}-u1${EXTRACT_SUFX} \
+ pt_BR-pack-${PORTVERSION}-u1${EXTRACT_SUFX} \
+ pt_PT-pack-${PORTVERSION}-u1${EXTRACT_SUFX} \
+ ru_RU.koi8r-pack-${PORTVERSION}${EXTRACT_SUFX} \
+ sl_SI-pack-${PORTVERSION}${EXTRACT_SUFX} \
+ sv_SE-pack-${PORTVERSION}-u2${EXTRACT_SUFX} \
+ tr_TR-pack-${PORTVERSION}${EXTRACT_SUFX} \
+ uk_UA-pack-${PORTVERSION}${EXTRACT_SUFX} \
+ vi_VN-pack-${PORTVERSION}-u2${EXTRACT_SUFX} \
+ zh_CN-pack-${PORTVERSION}${EXTRACT_SUFX} \
+ zh_TW-pack-${PORTVERSION}-u1${EXTRACT_SUFX} \
+ zh_TW.utf8-pack-${PORTVERSION}${EXTRACT_SUFX}
+
WANT_PHP_WEB= yes
WRKSRC= ${WRKDIR}/${PORTNAME}
NO_BUILD= yes
PKGMESSAGE= ${WRKDIR}/pkg-message
-DOCFILES= AUTHORS ChangeLog README UPGRADING
+DOCFILES= AUTHORS ChangeLog README RELEASE_NOTES
EXCEPTFILES= ${DOCFILES} LICENSE.txt
CPIO= cpio --quiet -pdum -R
PLIST_SUB= GALLERYDIR=${GALLERYDIR}
@@ -47,9 +80,19 @@ post-configure:
@ ${SED} -e 's#%%PREFIX%%#${PREFIX}#g' \
-e 's#%%GALLERYDIR%%#${GALLERYDIR}#g' pkg-message > ${PKGMESSAGE}
+do-extract:
+ @ ${MKDIR} ${WRKDIR}
+ @ cd ${WRKDIR} && ${EXTRACT_CMD} ${EXTRACT_BEFORE_ARGS} ${_DISTDIR}/${DISTNAME}${EXTRACT_SUFX} ${EXTRACT_AFTER_ARGS}
+ @ for file in ${LANGPACKS}; do \
+ if ! (cd ${WRKDIR}/gallery/locale && ${EXTRACT_CMD} ${EXTRACT_BEFORE_ARGS} ${_DISTDIR}/$$file ${EXTRACT_AFTER_ARGS});\
+ then \
+ exit 1; \
+ fi \
+ done
+
do-install:
@ ${MKDIR} -m 0755 ${PREFIX}/${GALLERYDIR}
- @ cd ${WRKSRC} && ${FIND} * -name \*.bat ${EXCEPTFILES:S/^/-o -name /} \
+ @ cd ${WRKSRC} && ${FIND} * -name \*.bat -o -name \*.orig -o -name \*Changelog ${EXCEPTFILES:S/^/-o -name /} \
-o -print | ${CPIO} ${WWWOWN}:${WWWGRP} ${PREFIX}/${GALLERYDIR}
post-install: