Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 30 Jun 2011 00:02:12 GMT
From:      svn-freebsd-gecko@chruetertee.ch
To:        freebsd-gecko@freebsd.org
Subject:   [SVN-Commit] r583 - branches/experimental/mail/thunderbird-i18n trunk/mail/thunderbird-i18n
Message-ID:  <201106300002.p5U02CLc014307@trillian.chruetertee.ch>

next in thread | raw e-mail | index | archive | help
Author: flo
Date: Thu Jun 30 00:02:12 2011
New Revision: 583

Log:
- make this acutally work

Modified:
   branches/experimental/mail/thunderbird-i18n/Makefile
   trunk/mail/thunderbird-i18n/Makefile

Modified: branches/experimental/mail/thunderbird-i18n/Makefile
==============================================================================
--- branches/experimental/mail/thunderbird-i18n/Makefile	Thu Jun 30 00:01:01 2011	(r582)
+++ branches/experimental/mail/thunderbird-i18n/Makefile	Thu Jun 30 00:02:12 2011	(r583)
@@ -16,6 +16,8 @@
 MAINTAINER=	gecko@FreeBSD.org
 COMMENT=	Localized interface for Thunderbird
 
+EXTRACT_DEPENDS=	zip:${PORTSDIR}/archivers/zip
+
 .ifndef WITHOUT_SWITCHER
 RUN_DEPENDS+=	xpi-quick-locale-switcher>=0:${PORTSDIR}/www/xpi-quick-locale-switcher
 .endif
@@ -45,8 +47,8 @@
 XPI_DISTNAMES=	${THUNDERBIRD_I18N_}
 .for dist in ${XPI_DISTNAMES}
 XPI_ID_${dist}=		langpack-${dist}@thunderbird.mozilla.org
-XPI_FILES_${dist}=	chrome.manifest install.rdf chrome/${dist}.jar defaults/pref/all-l10n.js
-XPI_DIRS_${dist}=	chrome defaults/pref defaults
+XPI_FILES_${dist}=	chrome.manifest install.rdf chrome/${dist}.jar
+XPI_DIRS_${dist}=	chrome
 .endfor
 
 do-extract:
@@ -56,7 +58,9 @@
 		if ! (${EXTRACT_CMD} ${_DISTDIR}/$$lang.xpi -d ${WRKSRC}/langpack-$$lang@thunderbird.mozilla.org);\
 		then \
 			exit 1; \
-		fi \
+		fi; \
+		cd ${WRKSRC}/langpack-$$lang@thunderbird.mozilla.org/chrome; \
+		${LOCALBASE}/bin/zip -r $$lang.jar $$lang; \
 	done
 
 do-install:
@@ -68,8 +72,8 @@
 	@${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} ; { ${RM} -f $$_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} -fR $$_dir/${WDIR} ; }' ${_A}
+	@${ECHO_CMD} '@unexec ${RMDIR} ${XPI_DIRS_TRY:S,^,%D/,} ${_Q}' ${_A}
 
 post-patch:
 	${FIND} ${WRKSRC} -name install.rdf -print0 | \

Modified: trunk/mail/thunderbird-i18n/Makefile
==============================================================================
--- trunk/mail/thunderbird-i18n/Makefile	Thu Jun 30 00:01:01 2011	(r582)
+++ trunk/mail/thunderbird-i18n/Makefile	Thu Jun 30 00:02:12 2011	(r583)
@@ -16,6 +16,8 @@
 MAINTAINER=	gecko@FreeBSD.org
 COMMENT=	Localized interface for Thunderbird
 
+EXTRACT_DEPENDS=	zip:${PORTSDIR}/archivers/zip
+
 .ifndef WITHOUT_SWITCHER
 RUN_DEPENDS+=	xpi-quick-locale-switcher>=0:${PORTSDIR}/www/xpi-quick-locale-switcher
 .endif
@@ -45,8 +47,8 @@
 XPI_DISTNAMES=	${THUNDERBIRD_I18N_}
 .for dist in ${XPI_DISTNAMES}
 XPI_ID_${dist}=		langpack-${dist}@thunderbird.mozilla.org
-XPI_FILES_${dist}=	chrome.manifest install.rdf chrome/${dist}.jar defaults/pref/all-l10n.js
-XPI_DIRS_${dist}=	chrome defaults/pref defaults
+XPI_FILES_${dist}=	chrome.manifest install.rdf chrome/${dist}.jar
+XPI_DIRS_${dist}=	chrome
 .endfor
 
 do-extract:
@@ -56,7 +58,9 @@
 		if ! (${EXTRACT_CMD} ${_DISTDIR}/$$lang.xpi -d ${WRKSRC}/langpack-$$lang@thunderbird.mozilla.org);\
 		then \
 			exit 1; \
-		fi \
+		fi; \
+		cd ${WRKSRC}/langpack-$$lang@thunderbird.mozilla.org/chrome; \
+		${LOCALBASE}/bin/zip -r $$lang.jar $$lang; \
 	done
 
 do-install:
@@ -68,8 +72,8 @@
 	@${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} ; { ${RM} -f $$_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} -fR $$_dir/${WDIR} ; }' ${_A}
+	@${ECHO_CMD} '@unexec ${RMDIR} ${XPI_DIRS_TRY:S,^,%D/,} ${_Q}' ${_A}
 
 post-patch:
 	${FIND} ${WRKSRC} -name install.rdf -print0 | \



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