Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 105847 Details for
Bug 149664
www-client/seamonkey linguas support
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
seamonkey-1.0.7.ebuild.patch
seamonkey-1.0.7.ebuild.patch (text/plain), 9.73 KB, created by
Florian Steinel
on 2007-01-07 16:40:22 UTC
(
hide
)
Description:
seamonkey-1.0.7.ebuild.patch
Filename:
MIME Type:
Creator:
Florian Steinel
Created:
2007-01-07 16:40:22 UTC
Size:
9.73 KB
patch
obsolete
>--- /usr/portage/www-client/seamonkey/seamonkey-1.0.7.ebuild 2006-12-29 17:06:31.000000000 +0100 >+++ /usr/local/portage/www-client/seamonkey/seamonkey-1.0.7.ebuild 2007-01-07 17:36:06.000000000 +0100 >@@ -3,8 +3,11 @@ > # $Header: /var/cvsroot/gentoo-x86/www-client/seamonkey/seamonkey-1.0.7.ebuild,v 1.4 2006/12/29 15:42:43 dertobi123 Exp $ > > unset ALLOWED_FLAGS # Stupid extra-functions.sh ... bug 49179 >-inherit flag-o-matic toolchain-funcs eutils mozcoreconf mozconfig-2 mozilla-launcher makeedit multilib autotools >+inherit flag-o-matic toolchain-funcs eutils mozcoreconf mozconfig-2 mozilla-launcher makeedit multilib mozextension autotools > >+#LANGS="de it pl" >+#SHORTLANGS="es-ES ga-IE nb-NO sv-SE" >+SHORTLANGS="de-AT it-IT pl-PL" > PATCH="${PN}-1.0.6-patches-0.1" > EMVER="0.94.1" > >@@ -18,7 +21,20 @@ SRC_URI="http://ftp.mozilla.org/pub/mozi > KEYWORDS="~alpha ~amd64 ~arm hppa ~ia64 ppc ~ppc64 x86 ~x86-fbsd" > SLOT="0" > LICENSE="MPL-1.1 NPL-1.1" >-IUSE="java ldap mozcalendar mozdevelop moznocompose moznoirc moznomail moznoroaming postgres crypt" >+IUSE="java ldap mozcalendar mozdevelop moznocompose moznoirc moznomail moznoroaming mozsvg postgres crypt" >+ >+for X in ${LANGS} ; do >+ IUSE="${IUSE} linguas_${X/-/_}" >+ if [[ "${X}" == "de" ]]; then X="de-AT"; fi >+ if [[ "${X}" == "it" ]]; then X="it-IT"; fi >+ if [[ "${X}" == "pl" ]]; then X="pl-PL"; fi >+ SRC_URI="${SRC_URI} linguas_${X/-/_}? ( http://releases.mozilla.org/pub/mozilla.org/${PN}/releases/${PV}/contrib-localized/${PN}-${PV}.${X}.langpack.xpi )" >+done >+ >+for X in ${SHORTLANGS} ; do >+ SRC_URI="${SRC_URI} linguas_${X%%-*}? ( http://releases.mozilla.org/pub/mozilla.org/${PN}/releases/${PV}/contrib-localized/${PN}-${PV}.${X}.langpack.xpi )" >+ IUSE="${IUSE} linguas_${X%%-*}" >+done > > RDEPEND="java? ( virtual/jre ) > >=www-client/mozilla-launcher-1.47 >@@ -35,13 +51,81 @@ DEPEND="${RDEPEND} > > S=${WORKDIR}/mozilla > >+# Needed by src_compile() and src_install(). >+# Would do in pkg_setup but that loses the export attribute, they >+# become pure shell variables. >+export MOZ_CO_PROJECT=suite >+export BUILD_OFFICIAL=1 >+export MOZILLA_OFFICIAL=1 >+ >+linguas() { >+ linguas= >+ local LANG >+ for LANG in ${LINGUAS}; do >+ if hasq ${LANG} en en_US; then >+ hasq en ${linguas} || \ >+ linguas="${linguas:+"${linguas} "}en" >+ continue >+ elif hasq ${LANG} ${LANGS//-/_}; then >+ hasq ${LANG//_/-} ${linguas} || \ >+ linguas="${linguas:+"${linguas} "}${LANG//_/-}" >+ continue >+ else >+ local SLANG >+ for SLANG in ${SHORTLANGS}; do >+ if [[ ${LANG} == ${SLANG%%-*} ]]; then >+ hasq ${SLANG} ${linguas} || \ >+ linguas="${linguas:+"${linguas} "}${SLANG}" >+ continue 2 >+ fi >+ done >+ fi >+ ewarn "Sorry, but ${PN} does not support the ${LANG} LINGUA" >+ done >+} >+ > pkg_setup() { >+ if ! use moznoirc && use moznocompose; then >+ ewarn "" >+ ewarn "It looks like you want to have Chatzilla but don't want to have" >+ ewarn "Composer. This cannot be done, because Chatzilla does not work" >+ ewarn "without Composer. Composer will be build." >+ ewarn "" >+ ewarn "Continuing in 10 seconds.." >+ ewarn "" >+ epause 10 >+ fi >+ if use mozcalendar && use moznomail; then >+ ewarn "" >+ ewarn "It looks like you want to have Calendar but don't want to have" >+ ewarn "Mail. This cannot be done, because Calendar does not work" >+ ewarn "without Mail. Mail will be build." >+ ewarn "" >+ ewarn "Continuing in 10 seconds.." >+ ewarn "" >+ epause 10 >+ fi >+ if ! use moznomail && use moznocompose; then >+ ewarn "" >+ ewarn "It looks like you want to have Mail but don't want to have" >+ ewarn "Composer. This cannot be done, because Mail does not work" >+ ewarn "without Composer. Composer will be build." >+ ewarn "" >+ ewarn "Continuing in 10 seconds.." >+ ewarn "" >+ epause 10 >+ fi > use moznopango && warn_mozilla_launcher_stub > } > > src_unpack() { > unpack ${P}.source.tar.bz2 ${PATCH}.tar.bz2 > >+ linguas >+ for X in ${linguas}; do >+ [[ ${X} != en ]] && xpi_unpack ${PN}-${PV}.${X}.langpack.xpi >+ done >+ > cd ${S} || die "cd failed" > EPATCH_SUFFIX="patch" EPATCH_FORCE="yes" epatch ${WORKDIR}/patch > >@@ -112,12 +196,19 @@ src_compile() { > export MOZ_PGSQL_LIBS=/usr/$(get_libdir) > fi > >+ #local LANG=${linguas%% *} >+ #if [[ ${LANG} != "" && ${LANG} != "en" ]]; then >+ # ebegin "Setting default locale to ${LANG}" >+ # mozconfig_annotate '' --enable-ui-locale=${LANG} >+ #fi > mozconfig_use_enable mozcalendar calendar > mozconfig_use_enable ldap > mozconfig_use_enable ldap ldap-experimental > mozconfig_annotate '' --with-default-mozilla-five-home=${MOZILLA_FIVE_HOME} > mozconfig_annotate '' --with-user-appdir=.mozilla > >+ mozconfig_use_enable mozsvg svg >+ > if use moznomail && ! use mozcalendar; then > mozconfig_annotate "+moznomail -mozcalendar" --disable-mailnews > fi >@@ -152,6 +243,7 @@ src_compile() { > sed -i -e \ > 's|-DARON_WAS_HERE|-DGENTOO_NSPLUGINS_DIR=\\\"/usr/'"$(get_libdir)"'/nsplugins\\\" -DGENTOO_NSBROWSER_PLUGINS_DIR=\\\"/usr/'"$(get_libdir)"'/nsbrowser/plugins\\\"|' \ > ${S}/config/autoconf.mk \ >+ ${S}/nsprpub/config/autoconf.mk \ > ${S}/xpfe/global/buildconfig.html > > # This removes extraneous CFLAGS from the Makefiles to reduce RAM >@@ -178,6 +270,64 @@ src_install() { > dodir ${MOZILLA_FIVE_HOME} > cp -RL ${S}/dist/bin/* ${D}${MOZILLA_FIVE_HOME} > >+ #################################### >+ # >+ # Install Lang Packs >+ # >+ #################################### >+ linguas >+ mychromefile=${D}/usr/lib/seamonkey/chrome/installed-chrome.txt >+ for X in ${linguas}; do >+ #from eclass/mozext:xpi_install >+ emid=${PN}-${PV}.${X}.langpack >+ if [[ ${X} != en ]]; then >+ insinto "${MOZILLA_FIVE_HOME}" >+ doins -r "${WORKDIR}/${emid}"/{chrome,defaults,myspell} || die "failed to copy extension" >+ #assuming "ab-CD" as langcode >+ echo "locale,install,url,jar:resource:/chrome/${X}.jar!/locale/${X}/necko/" >> ${mychromefile} >+ echo "locale,install,url,jar:resource:/chrome/${X}.jar!/locale/${X}/navigator/" >> ${mychromefile} >+ echo "locale,install,url,jar:resource:/chrome/${X:4:2}.jar!/locale/${X:4:2}/navigator-region/" >> ${mychromefile} >+ echo "locale,install,url,jar:resource:/chrome/${X:0:2}-unix.jar!/locale/${X}/navigator-platform/" >> ${mychromefile} >+ echo "locale,install,url,jar:resource:/chrome/${X}.jar!/locale/${X}/messenger/" >> ${mychromefile} >+ echo "locale,install,url,jar:resource:/chrome/${X:4:2}.jar!/locale/${X:4:2}/messenger-region/" >> ${mychromefile} >+ echo "locale,install,url,jar:resource:/chrome/${X}.jar!/locale/${X}/messenger-mapi/" >> ${mychromefile} >+ echo "locale,install,url,jar:resource:/chrome/${X}.jar!/locale/${X}/messenger-smime/" >> ${mychromefile} >+ echo "locale,install,url,jar:resource:/chrome/${X}.jar!/locale/${X}/communicator/" >> ${mychromefile} >+ echo "locale,install,url,jar:resource:/chrome/${X:4:2}.jar!/locale/${X:4:2}/communicator-region/" >> ${mychromefile} >+ echo "locale,install,url,jar:resource:/chrome/${X:0:2}-unix.jar!/locale/${X}/communicator-platform/" >> ${mychromefile} >+ echo "locale,install,url,jar:resource:/chrome/${X}.jar!/locale/${X}/branding/" >> ${mychromefile} >+ echo "locale,install,url,jar:resource:/chrome/${X}.jar!/locale/${X}/global/" >> ${mychromefile} >+ echo "locale,install,url,jar:resource:/chrome/${X:4:2}.jar!/locale/${X:4:2}/global-region/" >> ${mychromefile} >+ echo "locale,install,url,jar:resource:/chrome/${X:0:2}-unix.jar!/locale/${X}/global-platform/" >> ${mychromefile} >+ echo "locale,install,url,jar:resource:/chrome/${X}.jar!/locale/${X}/cookie/" >> ${mychromefile} >+ echo "locale,install,url,jar:resource:/chrome/${X}.jar!/locale/${X}/chatzilla/" >> ${mychromefile} >+ echo "locale,install,url,jar:resource:/chrome/${X}.jar!/locale/${X}/calendar/" >> ${mychromefile} >+ echo "locale,install,url,jar:resource:/chrome/${X}.jar!/locale/${X}/editor/" >> ${mychromefile} >+ echo "locale,install,url,jar:resource:/chrome/${X:4:2}.jar!/locale/${X:4:2}/editor-region/" >> ${mychromefile} >+ echo "locale,install,url,jar:resource:/chrome/${X}.jar!/locale/${X}/pipnss/" >> ${mychromefile} >+ echo "locale,install,url,jar:resource:/chrome/${X}.jar!/locale/${X}/pippki/" >> ${mychromefile} >+ echo "locale,install,url,jar:resource:/chrome/${X}.jar!/locale/${X}/venkman/" >> ${mychromefile} >+ echo "locale,install,url,jar:resource:/chrome/${X}.jar!/locale/${X}/mozldap/" >> ${mychromefile} >+ echo "locale,install,url,jar:resource:/chrome/${X}.jar!/locale/${X}/wallet/" >> ${mychromefile} >+ echo "locale,install,url,jar:resource:/chrome/${X}.jar!/locale/${X}/content-packs/" >> ${mychromefile} >+ echo "locale,install,url,jar:resource:/chrome/${X}.jar!/locale/${X}/help/" >> ${mychromefile} >+ echo "locale,install,url,jar:resource:/chrome/${X}.jar!/locale/${X}/p3p/" >> ${mychromefile} >+ echo "locale,install,url,jar:resource:/chrome/${X}.jar!/locale/${X}/autoconfig/" >> ${mychromefile} >+ echo "locale,install,url,jar:resource:/chrome/${X}.jar!/locale/${X}/inspector/" >> ${mychromefile} >+ echo "locale,install,url,jar:resource:/chrome/${X}.jar!/locale/${X}/sroaming/" >> ${mychromefile} >+ echo "locale,install,url,jar:resource:/chrome/${X}.jar!/locale/${X}/reporter/" >> ${mychromefile} >+ fi >+ done >+ >+ local LANG=${linguas%% *} >+ if [[ ${LANG} != "" && ${LANG} != "en" ]]; then >+ myprefjs=${D}${MOZILLA_FIVE_HOME}/defaults/pref/browser-prefs.js >+ ebegin "Setting default locale to ${LANG}" >+ echo "" >> ${myprefjs} >+ echo "// set by ebuild" >> ${myprefjs} >+ echo "pref(\"general.useragent.locale\", \"${LANG}\");" >> ${myprefjs} >+ fi >+ > # Create directory structure to support portage-installed extensions. > # See update_chrome() in mozilla-launcher > keepdir ${MOZILLA_FIVE_HOME}/chrome.d >@@ -235,6 +385,7 @@ src_install() { > doexe ${FILESDIR}/${PN}-rebuild-databases.pl > dosed -e 's|/lib/|/'"$(get_libdir)"'/|g' \ > ${MOZILLA_FIVE_HOME}/${PN}-rebuild-databases.pl >+ #dosed -e 's|@AB_CD@|de-AT|g' /usr/lib/seamonkey/chrome/chromelist.txt > > # Install docs > dodoc ${S}/{LEGAL,LICENSE}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 149664
:
98476
|
98477
|
105847
|
105851
|
105911
|
105915
|
143771
|
143773