summaryrefslogtreecommitdiff
path: root/www
diff options
context:
space:
mode:
authortaca <taca>2012-10-01 15:38:32 +0000
committertaca <taca>2012-10-01 15:38:32 +0000
commit6c511fa22021e3e570f2af7665dbd36be23b99b5 (patch)
tree1067722427548139e938c1262fb49ab39f4a85c2 /www
parentd577ec2653dc9aa39f32e352148ed276ede06fd4 (diff)
downloadpkgsrc-6c511fa22021e3e570f2af7665dbd36be23b99b5.tar.gz
Move some code fragment from contao to contao211-translations since
translation files will be included in Contao core from next major release (Contao 3.0).
Diffstat (limited to 'www')
-rw-r--r--www/contao/Makefile.translations37
-rw-r--r--www/contao/options.translations.mk21
-rw-r--r--www/contao211-translations/INSTALL (renamed from www/contao/INSTALL.translations)2
-rw-r--r--www/contao211-translations/Makefile34
-rw-r--r--www/contao211-translations/options.mk21
5 files changed, 51 insertions, 64 deletions
diff --git a/www/contao/Makefile.translations b/www/contao/Makefile.translations
deleted file mode 100644
index df8291a08ed..00000000000
--- a/www/contao/Makefile.translations
+++ /dev/null
@@ -1,37 +0,0 @@
-# $NetBSD: Makefile.translations,v 1.3 2012/06/16 13:20:01 taca Exp $
-#
-#used by www/contao211-translations/Makefile
-#
-
-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
-
-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
-
-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}
diff --git a/www/contao/options.translations.mk b/www/contao/options.translations.mk
deleted file mode 100644
index fef4360ad4e..00000000000
--- a/www/contao/options.translations.mk
+++ /dev/null
@@ -1,21 +0,0 @@
-# $NetBSD: options.translations.mk,v 1.3 2012/08/12 08:55:54 taca Exp $
-
-PKG_OPTIONS_VAR= PKG_OPTIONS.contao${CT_VERS}-translations
-
-.for l in ${CT_SUPPORTED_LANGUAGES}
-PKG_SUPPORTED_OPTIONS+= lang-${l}
-PKG_SUGGESTED_OPTIONS+= lang-${l}
-.endfor
-
-.include "../../mk/bsd.options.mk"
-
-.for l in ${PKG_OPTIONS:Mlang-*}
-CT_LANGUAGES+= ${l:S/^lang-//1}
-.endfor
-
-.for l in ${CT_LANGUAGES}
-CT_DISTFILES+= ${CT_TRANSLATIONS.${l}}
-SITES.${CT_TRANSLATIONS.${l}}= \
- http://www.contao.org/en/download.html?iso=${l}&file=files/languages/${l}/
-PLIST_SRC+= PLIST.${l}
-.endfor
diff --git a/www/contao/INSTALL.translations b/www/contao211-translations/INSTALL
index a52a11e33eb..254675963e6 100644
--- a/www/contao/INSTALL.translations
+++ b/www/contao211-translations/INSTALL
@@ -1,4 +1,4 @@
-# $NetBSD: INSTALL.translations,v 1.1 2011/08/12 12:46:42 taca Exp $
+# $NetBSD: INSTALL,v 1.1 2012/10/01 15:38:32 taca Exp $
CT_WEBDIR="@PREFIX@/@CT_WEBDIR@"
CT_OWN="@WWWOWN@"
diff --git a/www/contao211-translations/Makefile b/www/contao211-translations/Makefile
index c149d585e91..82a0b89cadb 100644
--- a/www/contao211-translations/Makefile
+++ b/www/contao211-translations/Makefile
@@ -1,15 +1,43 @@
-# $NetBSD: Makefile,v 1.20 2012/09/27 13:47:14 taca Exp $
+# $NetBSD: Makefile,v 1.21 2012/10/01 15:38:32 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
+
+DEPENDS+= contao${CT_VER}>=${CT_PKGVER}:../../www/contao${CT_VER}
+
# Use time stamp of latest translation.
VERS= 201209250
CT_VERS= 211
-PKG_DESTDIR_SUPPORT= user-destdir
+USE_TOOLS= pax
+NO_BUILD= yes
+NO_CONFIGURE= yes
+PLIST_SRC= ${WRKDIR}/PLIST
.include "options.mk"
-.include "../../www/contao/Makefile.translations"
+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.common"
.include "../../lang/php/phpversion.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/www/contao211-translations/options.mk b/www/contao211-translations/options.mk
index 3099baf2db9..f0f40dd981c 100644
--- a/www/contao211-translations/options.mk
+++ b/www/contao211-translations/options.mk
@@ -1,4 +1,4 @@
-# $NetBSD: options.mk,v 1.20 2012/09/27 13:47:14 taca Exp $
+# $NetBSD: options.mk,v 1.21 2012/10/01 15:38:32 taca Exp $
# Not yet ready for Contao 2.11:
# af ar bs ca da gl gn hr id is ku
@@ -47,4 +47,21 @@ CT_TRANSLATIONS.tr= Contao-Turkish-v14.zip # 2011/03/24
CT_TRANSLATIONS.uk= Contao-Ukrainian-v17.zip # 2011/07/25
CT_TRANSLATIONS.zh= Contao-Chinese-v21.zip # 2012/09/25
-.include "../../www/contao/options.translations.mk"
+PKG_OPTIONS_VAR= PKG_OPTIONS.contao${CT_VERS}-translations
+
+.for l in ${CT_SUPPORTED_LANGUAGES}
+PKG_SUPPORTED_OPTIONS+= lang-${l}
+PKG_SUGGESTED_OPTIONS+= lang-${l}
+.endfor
+
+.include "../../mk/bsd.options.mk"
+
+.for l in ${PKG_OPTIONS:Mlang-*}
+CT_LANGUAGES+= ${l:S/^lang-//1}
+.endfor
+
+.for l in ${CT_LANGUAGES}
+CT_DISTFILES+= ${CT_TRANSLATIONS.${l}}
+SITES.${CT_TRANSLATIONS.${l}}= \
+ http://www.contao.org/en/download.html?iso=${l}&file=files/languages/${l}/
+.endfor