Sat Aug 31 22:15:10 2013 UTC ()
Fixed a pkglint warning.


(rillig)
diff -r1.1 -r1.2 pkgsrc/www/firefox/xpi.mk

cvs diff -r1.1 -r1.2 pkgsrc/www/firefox/Attic/xpi.mk (expand / switch to unified diff)

--- pkgsrc/www/firefox/Attic/xpi.mk 2013/05/23 13:12:13 1.1
+++ pkgsrc/www/firefox/Attic/xpi.mk 2013/08/31 22:15:10 1.2
@@ -1,25 +1,25 @@ @@ -1,25 +1,25 @@
1# $NetBSD: xpi.mk,v 1.1 2013/05/23 13:12:13 ryoon Exp $ 1# $NetBSD: xpi.mk,v 1.2 2013/08/31 22:15:10 rillig Exp $
2# 2#
3# common logic for repackaging mozilla extensions (.xpi files) 3# common logic for repackaging mozilla extensions (.xpi files)
4# Used by the {firefox,seamonkey,thunderbird}-l10n packages. 4# Used by the {firefox,seamonkey,thunderbird}-l10n packages.
5 5
6USE_TOOLS+= unzip pax 6USE_TOOLS+= unzip pax
7 7
8post-extract: extract-xpi 8post-extract: extract-xpi
9 9
10.PHONY: extract-xpi 10.PHONY: extract-xpi
11extract-xpi: 11extract-xpi:
12.for f in ${XPI_FILES} 12.for f in ${XPI_FILES}
13 @${MKDIR} ${WRKDIR}/${f:S/.xpi//} && cd ${WRKDIR}/${f:S/.xpi//} && ${UNZIP_CMD} -aqo "${WRKDIR}/${f}" 13 ${RUN} ${MKDIR} ${WRKDIR}/${f:S/.xpi//} && cd ${WRKDIR}/${f:S/.xpi//} && ${UNZIP_CMD} -aqo "${WRKDIR}/${f}"
14.endfor 14.endfor
15 15
16do-install: install-xpi 16do-install: install-xpi
17 17
18.PHONY: install-xpi 18.PHONY: install-xpi
19install-xpi: 19install-xpi:
20.for f in ${XPI_FILES} 20.for f in ${XPI_FILES}
21 id=$$(${AWK} '/em:id=/ {sub("^.*em:id=\"", "");sub("\".*$$","");print $$0}' < ${WRKDIR}/${f:S/.xpi//}/install.rdf); \ 21 id=$$(${AWK} '/em:id=/ {sub("^.*em:id=\"", "");sub("\".*$$","");print $$0}' < ${WRKDIR}/${f:S/.xpi//}/install.rdf); \
22 ${MKDIR} ${DESTDIR}${EXTENSIONS_DIR}/$${id} && \ 22 ${MKDIR} ${DESTDIR}${EXTENSIONS_DIR}/$${id} && \
23 cd ${WRKDIR}/${f:S/.xpi//} && \ 23 cd ${WRKDIR}/${f:S/.xpi//} && \
24 pax -rw . ${DESTDIR}${EXTENSIONS_DIR}/$${id} 24 pax -rw . ${DESTDIR}${EXTENSIONS_DIR}/$${id}
25.endfor 25.endfor