aboutsummaryrefslogtreecommitdiff
path: root/www/firefox-esr-i18n
diff options
context:
space:
mode:
authorBeat Gaetzi <beat@FreeBSD.org>2012-03-22 07:30:27 +0000
committerBeat Gaetzi <beat@FreeBSD.org>2012-03-22 07:30:27 +0000
commitf2ccbedbceef6335d26b5fabb9542f2ff4a56c29 (patch)
tree3de99f371f25feab95a3b8736a90fcdbf00b461b /www/firefox-esr-i18n
parent5bab085034513f7997cdc1f2a272c4d4b2745d54 (diff)
downloadports-f2ccbedbceef6335d26b5fabb9542f2ff4a56c29.tar.gz
ports-f2ccbedbceef6335d26b5fabb9542f2ff4a56c29.zip
Notes
Diffstat (limited to 'www/firefox-esr-i18n')
-rw-r--r--www/firefox-esr-i18n/Makefile18
1 files changed, 12 insertions, 6 deletions
diff --git a/www/firefox-esr-i18n/Makefile b/www/firefox-esr-i18n/Makefile
index b188a837e787..0beeebda31f4 100644
--- a/www/firefox-esr-i18n/Makefile
+++ b/www/firefox-esr-i18n/Makefile
@@ -7,6 +7,7 @@
PORTNAME= firefox-i18n
PORTVERSION= 10.0.3
+PORTREVISION= 1
CATEGORIES= www
MASTER_SITE_SUBDIR= firefox/releases/${PORTVERSION}esr/linux-i686/xpi
PKGNAMEPREFIX=
@@ -27,6 +28,10 @@ WDIR= langpack-*@firefox.mozilla.org
XPI_DISTNAMES= ${FIREFOX_I18N_}
+PLIST?= ${WRKDIR}/plist
+PLISTD?= ${WRKDIR}/plist_dirs
+PLISTF?= ${WRKDIR}/plist_files
+
.include "${.CURDIR}/Makefile.option"
.include <bsd.port.pre.mk>
@@ -40,8 +45,6 @@ FIREFOX_I18N_?= ${FIREFOX_I18N}
.for dist in ${XPI_DISTNAMES}
XPI_ID_${dist}= langpack-${dist}@firefox.mozilla.org
-XPI_FILES_${dist}= chrome.manifest install.rdf chrome/${dist}.jar
-XPI_DIRS_${dist}= chrome
.endfor
pre-everything::
@@ -56,11 +59,14 @@ do-extract:
then \
exit 1; \
fi; \
- cd ${WRKSRC}/langpack-$$lang@firefox.mozilla.org/chrome/$$lang; \
- ${LOCALBASE}/bin/zip -r ../$$lang.jar locale; \
- cd ..; ${RM} -rf $$lang; cd ..; \
- ${REINPLACE_CMD} -i "" "s,chrome/$$lang,jar:chrome/$$lang.jar!," chrome.manifest; \
+ cd ${WRKSRC}/langpack-$$lang@firefox.mozilla.org/; \
+ ${FIND} -H -s * ! -type d | \
+ ${SED} -e "s|^|lib/xpi/langpack-$$lang@firefox.mozilla.org/|" >> ${PLISTF} && \
+ ${FIND} -d * -type d | \
+ ${SED} -e "s|^|@dirrm lib/xpi/langpack-$$lang@firefox.mozilla.org/|" >> ${PLISTD}; \
done
+ ${CAT} ${PLISTF} | ${SORT} >> ${PLIST}
+ ${CAT} ${PLISTD} | ${SORT} -r >> ${PLIST}
.if !exists(${OPTIONSFILE}) && !defined(PACKAGE_BUILDING)
pre-configure: config