unitas/www-client/torbrowser-31.6.0.ebuild.diff

77 lines
3.0 KiB
Diff
Raw Normal View History

--- torbrowser-31.6.0-r1.ebuild.orig 2015-04-17 08:31:28.000000000 +0200
+++ torbrowser-31.6.0-r1.ebuild 2015-04-17 08:44:13.857045554 +0200
@@ -41,12 +41,24 @@
http://dev.gentoo.org/~anarchy/mozilla/patchsets/${PATCH}.tar.xz
http://dev.gentoo.org/~axs/distfiles/${PATCH}.tar.xz
x86? (
- ${BASE_SRC_URI}/tor-browser-linux32-${TOR_PV}_en-US.tar.xz
- ${ARCHIVE_SRC_URI}/tor-browser-linux32-${TOR_PV}_en-US.tar.xz
+ !linguas_de? (
+ ${BASE_SRC_URI}/tor-browser-linux32-${TOR_PV}_en-US.tar.xz
+ ${ARCHIVE_SRC_URI}/tor-browser-linux32-${TOR_PV}_en-US.tar.xz
+ )
+ linguas_de? (
+ ${BASE_SRC_URI}/tor-browser-linux32-${TOR_PV}_de.tar.xz
+ ${ARCHIVE_SRC_URI}/tor-browser-linux32-${TOR_PV}_de.tar.xz
+ )
)
amd64? (
- ${BASE_SRC_URI}/tor-browser-linux64-${TOR_PV}_en-US.tar.xz
- ${ARCHIVE_SRC_URI}/tor-browser-linux64-${TOR_PV}_en-US.tar.xz
+ !linguas_de? (
+ ${BASE_SRC_URI}/tor-browser-linux64-${TOR_PV}_en-US.tar.xz
+ ${ARCHIVE_SRC_URI}/tor-browser-linux64-${TOR_PV}_en-US.tar.xz
+ )
+ linguas_de? (
+ ${BASE_SRC_URI}/tor-browser-linux64-${TOR_PV}_de.tar.xz
+ ${ARCHIVE_SRC_URI}/tor-browser-linux64-${TOR_PV}_de.tar.xz
+ )
)"
ASM_DEPEND=">=dev-lang/yasm-1.1"
@@ -226,9 +238,15 @@
|| die
# see: https://gitweb.torproject.org/builders/tor-browser-bundle.git/tree/gitian/descriptors/linux/gitian-bundle.yml?h=maint-4.0#n148
- echo "pref(\"general.useragent.locale\", \"en-US\");" \
- >> "${S}/${obj_dir}/dist/bin/browser/defaults/preferences/000-tor-browser.js" \
- || die
+ if use linguas_de ; then
+ echo "pref(\"general.useragent.locale\", \"de\");" \
+ >> "${S}/${obj_dir}/dist/bin/browser/defaults/preferences/000-tor-browser.js" \
+ || die
+ else
+ echo "pref(\"general.useragent.locale\", \"en-US\");" \
+ >> "${S}/${obj_dir}/dist/bin/browser/defaults/preferences/000-tor-browser.js" \
+ || die
+ fi
MOZ_MAKE_FLAGS="${MAKEOPTS}" \
emake DESTDIR="${D}" install
@@ -267,7 +285,11 @@
# Profile without the tor-launcher extension
# see: https://trac.torproject.org/projects/tor/ticket/10160
- local profile_dir="${WORKDIR}/tor-browser_en-US/Browser/TorBrowser/Data/Browser/profile.default"
+ if use linguas_de ; then
+ local profile_dir="${WORKDIR}/tor-browser_de/Browser/TorBrowser/Data/Browser/profile.default"
+ else
+ local profile_dir="${WORKDIR}/tor-browser_en-US/Browser/TorBrowser/Data/Browser/profile.default"
+ fi
docompress -x "${EROOT}/usr/share/doc/${PF}/tor-launcher@torproject.org.xpi"
dodoc "${profile_dir}/extensions/tor-launcher@torproject.org.xpi"
@@ -283,7 +305,11 @@
# see: https://gitweb.torproject.org/builders/tor-browser-bundle.git/tree/RelativeLink/RelativeLink.sh?h=maint-4.0#n248
dodoc "${FILESDIR}/README.tor-launcher"
- dodoc "${WORKDIR}/tor-browser_en-US/Browser/TorBrowser/Docs/ChangeLog.txt"
+ if use linguas_de ; then
+ dodoc "${WORKDIR}/tor-browser_de/Browser/TorBrowser/Docs/ChangeLog.txt"
+ else
+ dodoc "${WORKDIR}/tor-browser_en-US/Browser/TorBrowser/Docs/ChangeLog.txt"
+ fi
}
pkg_preinst() {