Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 9 Apr 2014 12:39:38 +0000 (UTC)
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r350692 - head/mail/thunderbird-i18n
Message-ID:  <201404091239.s39CdcoR024777@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bapt
Date: Wed Apr  9 12:39:38 2014
New Revision: 350692
URL: http://svnweb.freebsd.org/changeset/ports/350692
QAT: https://qat.redports.org/buildarchive/r350692/

Log:
  Support stage

Modified:
  head/mail/thunderbird-i18n/Makefile

Modified: head/mail/thunderbird-i18n/Makefile
==============================================================================
--- head/mail/thunderbird-i18n/Makefile	Wed Apr  9 12:39:25 2014	(r350691)
+++ head/mail/thunderbird-i18n/Makefile	Wed Apr  9 12:39:38 2014	(r350692)
@@ -14,18 +14,21 @@ COMMENT=	Localized interface for Thunder
 
 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>
 
 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>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201404091239.s39CdcoR024777>