1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-02-05 11:35:01 +00:00

- Fix XPI_ID generation when the tag might spam multiple lines [1]

- Do not install meta data (META-INF) since its not needed
  allow for xpi-post-extract to still work in xpi-* ports [2]

PR:             ports/126876 [1], ports/150327 [2]
Submitted by:   Lapo Luchini <lapo@lapo.it> [1], [2] tweaked by me
Approved by:    maintainer timeout (miwi; ~1 yr) [1] [2]
Tested by:      P6 TB Run, RideCharge TB Run
This commit is contained in:
Philip M. Gollucci 2010-09-08 00:44:49 +00:00
parent e206f4f8ed
commit 8cb8ab4e0d
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=260726

View File

@ -188,11 +188,19 @@ relink-all:
${LN} -sf $$_xpi $$_app ${_Q} ; } ; }
.endif
.if !target(xpi-post-extract)
xpi-post-extract:
.endif
post-extract: xpi-post-extract
@${RM} -rf ${WRKSRC}/META-INF
# Maintainer section
xpi-gen: extract
@${ECHO_CMD} -n 'XPI_ID='
@${GREP} -Em1 'em:id|<id>' ${WRKSRC}/install.rdf | ${CUT} -f2- -d\> | \
${CUT} -f1 -d\< | ${CUT} -f2 -d\"
@${SED} -En '/<(RDF:)?Description (RDF:)?about="urn:mozilla:install-manifest"/,/>/p' ${WRKSRC}/install.rdf | \
${GREP} -Em1 'em:id|<id>' | ${CUT} -f2- -d\> | \
${CUT} -f1 -d\< | ${CUT} -f2 -d\"
@${ECHO_CMD} -n 'XPI_FILES='
@cd ${WRKSRC} && ${FIND} -s . -not -type d | cut -f2- -d/ | ${TR} '\n' ' '
@if [ -d ${FILESDIR} -a -f ${FILESDIR}/chrome.manifest ] ; \