diff options
author | taca <taca@pkgsrc.org> | 2011-08-12 12:46:42 +0000 |
---|---|---|
committer | taca <taca@pkgsrc.org> | 2011-08-12 12:46:42 +0000 |
commit | 2e4b5169a649fa331917e2d740b8243681b43536 (patch) | |
tree | 35ffa4aeb6e8ae66bc810dad3c0e1f6ecd693772 /www | |
parent | 488c7e96957088adf5f8d48527574af86e115837 (diff) | |
download | pkgsrc-2e4b5169a649fa331917e2d740b8243681b43536.tar.gz |
Add common files contains sharable code.
Diffstat (limited to 'www')
-rw-r--r-- | www/contao/INSTALL.translations | 15 | ||||
-rw-r--r-- | www/contao/Makefile.translations | 36 | ||||
-rw-r--r-- | www/contao/options.translations.mk | 21 |
3 files changed, 72 insertions, 0 deletions
diff --git a/www/contao/INSTALL.translations b/www/contao/INSTALL.translations new file mode 100644 index 00000000000..a52a11e33eb --- /dev/null +++ b/www/contao/INSTALL.translations @@ -0,0 +1,15 @@ +# $NetBSD: INSTALL.translations,v 1.1 2011/08/12 12:46:42 taca Exp $ + +CT_WEBDIR="@PREFIX@/@CT_WEBDIR@" +CT_OWN="@WWWOWN@" +CT_GRP="@WWWGRP@" + +case ${STAGE} in +POST-INSTALL) + cd ${CT_WEBDIR}/system/modules && \ + for i in */languages; do + ${CHGRP} -R ${CT_GRP} $i + ${CHOWN} -R ${CT_OWN} $i + done + ;; +esac diff --git a/www/contao/Makefile.translations b/www/contao/Makefile.translations new file mode 100644 index 00000000000..bcba039a007 --- /dev/null +++ b/www/contao/Makefile.translations @@ -0,0 +1,36 @@ +# $NetBSD: Makefile.translations,v 1.1 2011/08/12 12:46:42 taca Exp $ +# +# used by www/contao29-translations/Makefile +# used by www/contao210-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 + +INSTALL_TEMPLATES?= ${.CURDIR}/../../www/contao/INSTALL.translations +SEPARATED_MODULES?= development dfGallery glossary memberlist pun_bridge + +pre-install: + ${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} diff --git a/www/contao/options.translations.mk b/www/contao/options.translations.mk new file mode 100644 index 00000000000..3e8846ac3d1 --- /dev/null +++ b/www/contao/options.translations.mk @@ -0,0 +1,21 @@ +# $NetBSD: options.translations.mk,v 1.1 2011/08/12 12:46:42 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/download.html?iso=${l}&file=tl_files/languages/${l}/ +PLIST_SRC+= PLIST.${l} +.endfor |