diff options
author | bapt <bapt@FreeBSD.org> | 2014-04-09 20:39:38 +0800 |
---|---|---|
committer | bapt <bapt@FreeBSD.org> | 2014-04-09 20:39:38 +0800 |
commit | 947635f2c34239c207e03e36fe310dac0b1d09a3 (patch) | |
tree | 0d9bfdcc60e2fdfa96f7b3ee751774e9864f5eeb /mail/thunderbird-i18n | |
parent | ec3bc96aa8ae93f3afd4be9803e08234d7d29bf9 (diff) | |
download | freebsd-ports-gnome-947635f2c34239c207e03e36fe310dac0b1d09a3.tar.gz freebsd-ports-gnome-947635f2c34239c207e03e36fe310dac0b1d09a3.tar.zst freebsd-ports-gnome-947635f2c34239c207e03e36fe310dac0b1d09a3.zip |
Support stage
Diffstat (limited to 'mail/thunderbird-i18n')
-rw-r--r-- | mail/thunderbird-i18n/Makefile | 40 |
1 files changed, 22 insertions, 18 deletions
diff --git a/mail/thunderbird-i18n/Makefile b/mail/thunderbird-i18n/Makefile index 47b2f3b0cbef..32d573d80398 100644 --- a/mail/thunderbird-i18n/Makefile +++ b/mail/thunderbird-i18n/Makefile @@ -14,18 +14,21 @@ COMMENT= Localized interface for Thunderbird EXTRACT_DEPENDS= zip:${PORTSDIR}/archivers/zip -PLIST?= ${WRKDIR}/plist -PLISTD?= ${WRKDIR}/plist_dirs -PLISTF?= ${WRKDIR}/plist_files +USES= zip:infozip gecko:thunderbird +USE_XPI= firefox linux-firefox NO_BUILD= yes NO_ARCH= yes -USES= zip:infozip -USE_THUNDERBIRD= yes -USE_XPI= thunderbird linux-thunderbird USE_SUBMAKE= yes -NO_STAGE= yes +WDIR= langpack-*@thunderbird.mozilla.org + +XPI_DISTNAMES= ${THUNDERBIRD_I18N_} + +PLIST?= ${WRKDIR}/plist +PLISTD?= ${WRKDIR}/plist_dirs +PLISTF?= ${WRKDIR}/plist_files + .include "${.CURDIR}/Makefile.option" .include <bsd.port.pre.mk> @@ -37,9 +40,6 @@ RUN_DEPENDS+= xpi-quick-locale-switcher>=0:${PORTSDIR}/www/xpi-quick-locale-swit THUNDERBIRD_I18N_?= ${THUNDERBIRD_I18N} -WDIR= langpack-*@thunderbird.mozilla.org - -XPI_DISTNAMES= ${THUNDERBIRD_I18N_} .for dist in ${XPI_DISTNAMES} XPI_ID_${dist}= langpack-${dist}@thunderbird.mozilla.org .endfor @@ -61,21 +61,24 @@ do-extract: ${CAT} ${PLISTF} | ${SORT} >> ${PLIST} ${CAT} ${PLISTD} | ${SORT} -r >> ${PLIST} + do-install: - @${INSTALL} -d ${XPI_LIBDIR} ${XPI_SLDIRS_ALL} - @${CP} -R ${WRKSRC}/ ${XPI_LIBDIR}/ - @${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${XPI_LIBDIR}/${WDIR}/ - @${CHMOD} -R a+rX,go-w ${XPI_LIBDIR}/${WDIR}/ - @for _dir in ${XPI_LINKFARMS} ; { ${LN} -sf ${XPI_LIBDIR}/${WDIR} $$_dir/ ${_Q} ; } + @${MKDIR} ${STAGEDIR}${XPI_LIBDIR} ${STAGEDIR}${XPI_SLDIRS_ALL} + cd ${WRKSRC}; ${PAX} -rw . ${STAGEDIR}${XPI_LIBDIR} + ${CHMOD} -R a+rX,go-w ${STAGEDIR}${XPI_LIBDIR}/${WDIR}/ + @for e in ${STAGEDIR}${XPI_LIBDIR}/${WDIR}; do \ + for _dir in ${XPI_LINKFARMS} ; do \ + ${LN} -sf $${_e##*/} ${STAGEDIR}$$_dir/ ${_Q} ; \ + done \ + done @${ECHO_CMD} '@exec ${INSTALL} -d ${XPI_SLDIRS_ALL:S,^${PREFIX},%D,}' ${_A} @${ECHO_CMD} '@exec for _dir in ${XPI_LINKFARMS} ; { \ ${LN} -sf ${XPI_LIBDIR}/${WDIR} $$_dir/ ${_Q}; }' ${_A} - @${ECHO_CMD} '@unexec for _dir in ${XPI_LINKFARMS} ${XPI_LIBDIR}; { ${RM} -fR $$_dir/${WDIR} ; }' ${_A} - @${ECHO_CMD} '@unexec ${RMDIR} ${XPI_DIRS_TRY:S,^,%D/,} ${_Q}' ${_A} + @${ECHO_CMD} '@unexec for _dir in ${XPI_LINKFARMS} ${XPI_LIBDIR}; { ${RM} -f $$_dir/${WDIR} ; }' ${_A} post-patch: ${FIND} ${WRKSRC} -name install.rdf -print0 | \ - ${XARGS} -0L1 ${REINPLACE_CMD} -i '' '/<?xml/,$$!d' + ${XARGS} -0L1 ${REINPLACE_CMD} -i '' -e '/<?xml/,$$!d' list-langs: @fetch -qo- "https://ftp.mozilla.org/pub/mozilla.org/${PORTNAME:S|-i18n||}/releases/${PORTVERSION}/linux-i686/xpi"|\ @@ -83,4 +86,5 @@ list-langs: ${AWK} 'BEGIN{ORS=" "}{print $$1}END{printf "\nNumber of languages: %d\n",NR}' .include "${.CURDIR}/../../www/xpi-adblock/Makefile.xpi" + .include <bsd.port.post.mk> |