summaryrefslogtreecommitdiff
path: root/www
diff options
context:
space:
mode:
authortaca <taca@pkgsrc.org>2012-06-16 13:20:01 +0000
committertaca <taca@pkgsrc.org>2012-06-16 13:20:01 +0000
commitdab655945ed1d994fd619a330f8a0b123ef42537 (patch)
tree57dbc105ac456d755be5b216db82887dfe88bdac /www
parent8de38ae4cba3dd0ff68e719abb7f514cef5b7134 (diff)
downloadpkgsrc-dab655945ed1d994fd619a330f8a0b123ef42537.tar.gz
Move reusable codes from contao211-translations/Makefile to
contao/Makefile.translations.
Diffstat (limited to 'www')
-rw-r--r--www/contao/Makefile.translations14
-rw-r--r--www/contao211-translations/Makefile38
2 files changed, 11 insertions, 41 deletions
diff --git a/www/contao/Makefile.translations b/www/contao/Makefile.translations
index 3a4ccb67bd8..df8291a08ed 100644
--- a/www/contao/Makefile.translations
+++ b/www/contao/Makefile.translations
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile.translations,v 1.2 2012/03/22 14:59:38 taca Exp $
+# $NetBSD: Makefile.translations,v 1.3 2012/06/16 13:20:01 taca Exp $
#
-#used by www/contao210-translations/Makefile
+#used by www/contao211-translations/Makefile
#
DISTNAME= contao${CT_VER}-translations-${VERS}
@@ -19,17 +19,19 @@ DEPENDS+= contao${CT_VER}>=${CT_PKGVER}:../../www/contao${CT_VER}
USE_TOOLS= pax
NO_BUILD= yes
NO_CONFIGURE= yes
+PLIST_SRC= ${WRKDIR}/PLIST
INSTALL_TEMPLATES?= ${.CURDIR}/../../www/contao/INSTALL.translations
-SEPARATED_MODULES?= development dfGallery glossary memberlist pun_bridge
pre-install:
+ ${RM} -f ${WRKSRC}/system/modules/backend/languages/*/tl_task.php
${FIND} ${WRKSRC}/system/modules \
\( -name "*.orig*" -o -name tl_flash.php \) -exec ${RM} -f {} \;
-.for d in ${SEPARATED_MODULES}
- ${RM} -fr ${WRKSRC}/system/modules/${d}
-.endfor
${FIND} ${WRKSRC} -type f -exec ${CHMOD} -x {} \;
do-install:
cd ${WRKSRC}; pax -rw . ${DESTDIR}${PREFIX}/${CT_WEBDIR}
+ ${SED} -e 1q PLIST.master > ${PLIST_SRC}
+ for lang in ${CT_LANGUAGES}; do \
+ ${SED} -e 1d -e "s|@lang@|$${lang}|" PLIST.master; \
+ done | ${SORT} >> ${PLIST_SRC}
diff --git a/www/contao211-translations/Makefile b/www/contao211-translations/Makefile
index e82546eb03b..a5ed5705287 100644
--- a/www/contao211-translations/Makefile
+++ b/www/contao211-translations/Makefile
@@ -1,47 +1,15 @@
-# $NetBSD: Makefile,v 1.14 2012/06/14 15:44:24 taca Exp $
+# $NetBSD: Makefile,v 1.15 2012/06/16 13:20:01 taca Exp $
#
-DISTNAME= contao${CT_VER}-translations-${VERS}
-CATEGORIES= www
-MASTER_SITES= # defined for each distfiles
-DISTFILES= ${CT_DISTFILES}
-EXTRACT_DIR= ${WRKSRC}
-
-MAINTAINER= taca@NetBSD.org
-HOMEPAGE= http://www.contao.org/download.html
-COMMENT= Language files for Contao CMS
-LICENSE= gnu-lgpl-v3
-
-PKG_DESTDIR_SUPPORT= user-destdir
-
-DEPENDS+= contao${CT_VER}>=${CT_PKGVER}:../../www/contao${CT_VER}
-
# Use time stamp of latest translation.
VERS= 201206130
CT_VERS= 211
-USE_TOOLS= pax
-NO_BUILD= yes
-NO_CONFIGURE= yes
-
-INSTALL_TEMPLATES?= ${.CURDIR}/../../www/contao/INSTALL.translations
-PLIST_SRC= ${WRKDIR}/PLIST
+PKG_DESTDIR_SUPPORT= user-destdir
.include "options.mk"
-pre-install:
- ${RM} -f ${WRKSRC}/system/modules/backend/languages/*/tl_task.php
- ${FIND} ${WRKSRC}/system/modules \
- \( -name "*.orig*" -o -name tl_flash.php \) -exec ${RM} -f {} \;
- ${FIND} ${WRKSRC} -type f -exec ${CHMOD} -x {} \;
-
-do-install:
- cd ${WRKSRC}; pax -rw . ${DESTDIR}${PREFIX}/${CT_WEBDIR}
- ${SED} -e 1q PLIST.master > ${PLIST_SRC}
- for lang in ${CT_LANGUAGES}; do \
- ${SED} -e 1d -e "s|@lang@|$${lang}|" PLIST.master; \
- done | ${SORT} >> ${PLIST_SRC}
-
+.include "../../www/contao/Makefile.translations"
.include "../../www/contao/Makefile.common"
.include "../../lang/php/phpversion.mk"
.include "../../mk/bsd.pkg.mk"