From 947635f2c34239c207e03e36fe310dac0b1d09a3 Mon Sep 17 00:00:00 2001 From: bapt Date: Wed, 9 Apr 2014 12:39:38 +0000 Subject: Support stage --- mail/thunderbird-i18n/Makefile | 40 ++++++++++++++++++++++------------------ 1 file changed, 22 insertions(+), 18 deletions(-) (limited to 'mail/thunderbird-i18n') 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 @@ -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 '' '/ -- cgit