diff options
author | Raúl Porcel <armin76@gentoo.org> | 2007-02-22 21:27:34 +0000 |
---|---|---|
committer | Raúl Porcel <armin76@gentoo.org> | 2007-02-22 21:27:34 +0000 |
commit | cd86931cefdac649d32f94421ae5b20b0d55446d (patch) | |
tree | 3fa1d09fb7bba9bd57e0f31716f8b0f9adcc5bde /app-office | |
parent | blah for \ sign. (diff) | |
download | gentoo-2-cd86931cefdac649d32f94421ae5b20b0d55446d.tar.gz gentoo-2-cd86931cefdac649d32f94421ae5b20b0d55446d.tar.bz2 gentoo-2-cd86931cefdac649d32f94421ae5b20b0d55446d.zip |
Version bump, this also adds mozbranding flag
(Portage version: 2.1.2-r10)
Diffstat (limited to 'app-office')
-rw-r--r-- | app-office/mozilla-sunbird/ChangeLog | 8 | ||||
-rw-r--r-- | app-office/mozilla-sunbird/files/digest-mozilla-sunbird-0.3.1 | 48 | ||||
-rw-r--r-- | app-office/mozilla-sunbird/mozilla-sunbird-0.3.1.ebuild | 207 |
3 files changed, 262 insertions, 1 deletions
diff --git a/app-office/mozilla-sunbird/ChangeLog b/app-office/mozilla-sunbird/ChangeLog index a98c01dc6bfb..28073a7200aa 100644 --- a/app-office/mozilla-sunbird/ChangeLog +++ b/app-office/mozilla-sunbird/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for app-office/mozilla-sunbird # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-office/mozilla-sunbird/ChangeLog,v 1.1 2007/02/15 21:09:16 armin76 Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-office/mozilla-sunbird/ChangeLog,v 1.2 2007/02/22 21:27:34 armin76 Exp $ + +*mozilla-sunbird-0.3.1 (22 Feb 2007) + + 22 Feb 2007; Raúl Porcel <armin76@gentoo.org> + +mozilla-sunbird-0.3.1.ebuild: + Version bump, this also adds mozbranding flag *mozilla-sunbird-0.3 (15 Feb 2007) diff --git a/app-office/mozilla-sunbird/files/digest-mozilla-sunbird-0.3.1 b/app-office/mozilla-sunbird/files/digest-mozilla-sunbird-0.3.1 new file mode 100644 index 000000000000..c80bc01aef1b --- /dev/null +++ b/app-office/mozilla-sunbird/files/digest-mozilla-sunbird-0.3.1 @@ -0,0 +1,48 @@ +MD5 742c4b70cbef579fa99e0409156c0bb3 sunbird-0.3.1.ca.langpack.xpi 97999 +RMD160 6fd1af114e4f07931e6e32d43bc7a9bc330e8ee1 sunbird-0.3.1.ca.langpack.xpi 97999 +SHA256 b84be9cb13e964b5dc1da857df19c78b946f4b4e4b4f8967527582873b9857ae sunbird-0.3.1.ca.langpack.xpi 97999 +MD5 b65d56a36c157e19e53c776b442a9fd6 sunbird-0.3.1.cs.langpack.xpi 98057 +RMD160 e4b31720187548342031f3e29bca0c7b1e7106a8 sunbird-0.3.1.cs.langpack.xpi 98057 +SHA256 96e14ff8ddf254ddef8a997bb682a73d9d0de915dc928ce1e69600fe7d351676 sunbird-0.3.1.cs.langpack.xpi 98057 +MD5 a05b8f7917a95dc040d36733e52c02f8 sunbird-0.3.1.da.langpack.xpi 95991 +RMD160 0d7f94a1ebb7dcd90c12bd3a6f2ade16a68b1cc9 sunbird-0.3.1.da.langpack.xpi 95991 +SHA256 ef39c0f14f05ab74e676282a8c3d4381d335daa9ee46a1950d97ad6c48879696 sunbird-0.3.1.da.langpack.xpi 95991 +MD5 f5ed14c1dd7220ba467a628945a9b466 sunbird-0.3.1.de.langpack.xpi 93380 +RMD160 0a664a2c7e4005b30ee1e277eb1506520950cc85 sunbird-0.3.1.de.langpack.xpi 93380 +SHA256 3f6c95412f4e5bf2b2caaab40f3e0b4522ac8a4ea805153b144e3345fc361ea1 sunbird-0.3.1.de.langpack.xpi 93380 +MD5 6732b5a0836713dbdee322fda6c550dd sunbird-0.3.1.es-ES.langpack.xpi 87186 +RMD160 f5a783fe6974514aab47ecb54d5a3b4cd29c94a9 sunbird-0.3.1.es-ES.langpack.xpi 87186 +SHA256 a999e415b127b2ae1b10b8ab9c9fb8d9ef0872552df32b780184fe9c04c38771 sunbird-0.3.1.es-ES.langpack.xpi 87186 +MD5 b4b2abe6f7fafc0d3de9d8b80fd07f12 sunbird-0.3.1.eu.langpack.xpi 94986 +RMD160 34f8f019948bde94814c3f4e5a5cdcb13e342dcb sunbird-0.3.1.eu.langpack.xpi 94986 +SHA256 e23944d6d725b6bb414041782d3dc077e22d22cb022dda176e584f16c6c7b076 sunbird-0.3.1.eu.langpack.xpi 94986 +MD5 6551686a1bac1ca43779ed30da1c8589 sunbird-0.3.1.fr.langpack.xpi 101532 +RMD160 2435a7fbb7b77b03efcc141a735605509aa8df72 sunbird-0.3.1.fr.langpack.xpi 101532 +SHA256 fadd18f7a95149b3cd39871b8dfcfd8ea219baea73984f34391e2bf7cf08c6cf sunbird-0.3.1.fr.langpack.xpi 101532 +MD5 035ad2bd22b3371231336b0584b9a47e sunbird-0.3.1.hu.langpack.xpi 101148 +RMD160 e9162ff796aeb23f9b9d7c26376541194fbb0244 sunbird-0.3.1.hu.langpack.xpi 101148 +SHA256 ba33aa86580034125e5b7e483b19b80f59fd0642c2f12780146275a8388698c8 sunbird-0.3.1.hu.langpack.xpi 101148 +MD5 b35f367ba863af7933f99c57100771ea sunbird-0.3.1.it.langpack.xpi 86047 +RMD160 9c5e9eabfa67307599e2b53540145e8e42df289f sunbird-0.3.1.it.langpack.xpi 86047 +SHA256 403490ed405aece645831434f4480f59eec1317cd7fad620a00f9d26e166b130 sunbird-0.3.1.it.langpack.xpi 86047 +MD5 ed38d77ce3759cfc4f3f56bb11f168ec sunbird-0.3.1.mn.langpack.xpi 101381 +RMD160 bf962cc2fd9546c146922f926ed25109e4226cea sunbird-0.3.1.mn.langpack.xpi 101381 +SHA256 03df2b25a9086e4c4d1061a672529d845bc4859b85383455f50702a66f4a4952 sunbird-0.3.1.mn.langpack.xpi 101381 +MD5 c31960d984a7eceaede2f0c0449db098 sunbird-0.3.1.nl.langpack.xpi 97731 +RMD160 4f10efab9393cf7475129c92480cbfa7e2d8f63f sunbird-0.3.1.nl.langpack.xpi 97731 +SHA256 530c30a7e80b358258e65e8d0caab28eb2d03b384023196672b14c0ddfa8205b sunbird-0.3.1.nl.langpack.xpi 97731 +MD5 de5d1c761fbd8edf70024e3f558ee3ae sunbird-0.3.1.pl.langpack.xpi 101097 +RMD160 2ea1583e99d23bc9de28b49456b358fea53d5e60 sunbird-0.3.1.pl.langpack.xpi 101097 +SHA256 c25e40afcc3b744e5d20cf7253014ae237717c3d8fc83120f44c1740ecbf078e sunbird-0.3.1.pl.langpack.xpi 101097 +MD5 dfa9f04d478aac36865b387497553269 sunbird-0.3.1.ru.langpack.xpi 106451 +RMD160 9f572d0f0fbd9154d5546d2e7eff24a00bf60aca sunbird-0.3.1.ru.langpack.xpi 106451 +SHA256 1d744af72218dd12367355773bdce8f994141002a651a75e3d02be2ef868bcc1 sunbird-0.3.1.ru.langpack.xpi 106451 +MD5 e62cfa2f9982c21b1df4a33151d6ef7c sunbird-0.3.1.sk.langpack.xpi 102414 +RMD160 fe54e5596d14164daeeb9f8fe89ee26ccedabbdb sunbird-0.3.1.sk.langpack.xpi 102414 +SHA256 19c66831cce0683c1025228f49f461252210fea566e3047c9cab3aa1ea59a01a sunbird-0.3.1.sk.langpack.xpi 102414 +MD5 7fa2a95960fc80854899df65c216dc62 sunbird-0.3.1.sl.langpack.xpi 97817 +RMD160 7c4fc023bb209bbc0aab1725bfe57f2a21a238bd sunbird-0.3.1.sl.langpack.xpi 97817 +SHA256 bab139be5765516c3807f420b56154b6ccba8475eb152247e69e6bcdd13d52c4 sunbird-0.3.1.sl.langpack.xpi 97817 +MD5 65465b6c6c551049c366e6fa8e2303bc sunbird-0.3.1.source.tar.bz2 44088609 +RMD160 b2fe3d03ce20500641e18da07fafda031d7b882e sunbird-0.3.1.source.tar.bz2 44088609 +SHA256 4cf4eb5b26c5199af1332432264f82f920b1728bf150fd8172eec21ca073ff5b sunbird-0.3.1.source.tar.bz2 44088609 diff --git a/app-office/mozilla-sunbird/mozilla-sunbird-0.3.1.ebuild b/app-office/mozilla-sunbird/mozilla-sunbird-0.3.1.ebuild new file mode 100644 index 000000000000..7d743a1a901b --- /dev/null +++ b/app-office/mozilla-sunbird/mozilla-sunbird-0.3.1.ebuild @@ -0,0 +1,207 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-office/mozilla-sunbird/mozilla-sunbird-0.3.1.ebuild,v 1.1 2007/02/22 21:27:34 armin76 Exp $ + +WANT_AUTOCONF="2.1" + +inherit flag-o-matic toolchain-funcs eutils mozconfig-2 mozilla-launcher makeedit multilib fdo-mime mozextension autotools + +LANGS="ca cs da de es-ES eu fr hu it mn nl pl ru sk sl" + +MY_PN="${PN/mozilla-}" +MY_P="${MY_PN}-${PV}" +DESCRIPTION="The Mozilla Sunbird Calendar" +HOMEPAGE="http://www.mozilla.org/projects/calendar/sunbird.html" +IUSE="mozbranding" +SRC_URI="http://releases.mozilla.org/pub/mozilla.org/calendar/${MY_PN}/releases/${PV}/source/${MY_P}.source.tar.bz2" + +# These are in +# +# http://releases.mozilla.org/pub/mozilla.org/calendar/sunbird/releases/${PV}/langpacks/ +# +# for i in $LANGS $SHORTLANGS; do wget $i.xpi -O ${P}-$i.xpi; done +for X in ${LANGS} ; do + SRC_URI="${SRC_URI} + linguas_${X/-/_}? ( http://releases.mozilla.org/pub/mozilla.org/calendar/${MY_PN}/releases/${PV}/langpacks/${MY_PN}-${PV}.${X}.langpack.xpi )" + IUSE="${IUSE} linguas_${X/-/_}" + # english is handled internally +done + +KEYWORDS="-* ~x86 ~amd64" +SLOT="0" +LICENSE="MPL-1.1 GPL-2 LGPL-2.1" + +RDEPEND=">=www-client/mozilla-launcher-1.44 + >=dev-libs/nss-3.10" + +S="${WORKDIR}/mozilla" + +linguas() { + local LANG SLANG + for LANG in ${LINGUAS}; do + if has ${LANG} en en_US; then + has en ${linguas} || linguas="${linguas:+"${linguas} "}en" + continue + elif has ${LANG} ${LANGS//-/_}; then + has ${LANG//_/-} ${linguas} || linguas="${linguas:+"${linguas} "}${LANG//_/-}" + continue + elif [[ " ${LANGS} " == *" ${LANG}-"* ]]; then + for X in ${LANGS}; do + if [[ "${X}" == "${LANG}-"* ]] && != *" ${X} "* ]]; then + has ${X} ${linguas} || linguas="${linguas:+"${linguas} "}${X}" + continue 2 + fi + done + fi + ewarn "Sorry, but ${PN} does not support the ${LANG} LINGUA" + done + einfo "Selected language packs (first will be default): $linguas" +} + +pkg_setup(){ + if ! built_with_use x11-libs/cairo X; then + eerror "Cairo is not built with X useflag." + eerror "Please add 'X' to your USE flags, and re-emerge cairo." + die "Cairo needs X" + fi + + if use mozbranding; then + einfo "You are enabling official branding. You may not redistribute this build" + einfo "to any users on your network or the internet. Doing so puts yourself into" + einfo "a legal problem with mozilla foundation" + fi + + use moznopango && warn_mozilla_launcher_stub +} + +src_unpack() { + unpack ${A%bz2*}bz2 + + linguas + for X in ${linguas}; do + [[ ${X} != "en" ]] && xpi_unpack "${MY_PN}-${PV}.${X}.langpack.xpi" + done + + cd "${S}" + epatch "${FILESDIR}/${P}-add-missing-LDFLAGS.patch" + + eautoreconf +} + +src_compile() { + declare MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}" + + #################################### + # + # mozconfig, CFLAGS and CXXFLAGS setup + # + #################################### + + mozconfig_init + mozconfig_config + + mozconfig_annotate '' --enable-application=calendar + mozconfig_annotate '' --enable-extensions=default + mozconfig_annotate '' --with-default-mozilla-five-home=${MOZILLA_FIVE_HOME} + mozconfig_annotate '' --with-system-nss + mozconfig_annotate '' --with-system-nspr + + if use mozbranding; then + mozconfig_annotate '' --enable-official-branding + fi + + # Add build variables + mozconfig_build_opts + + # Finalize and report settings + mozconfig_final + + # hardened GCC uses -fstack-protector-all by default, which breaks us + gcc-specs-ssp && append-flags -fno-stack-protector-all + replace-flags -fstack-protector-all -fstack-protector + + #################################### + # + # Configure and build + # + #################################### + + CPPFLAGS="${CPPFLAGS} -DARON_WAS_HERE" \ + CC="$(tc-getCC)" CXX="$(tc-getCXX)" LD="$(tc-getLD)" \ + econf || die + + # It would be great if we could pass these in via CPPFLAGS or CFLAGS prior + # to econf, but the quotes cause configure to fail. + 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 + # requirements while compiling + edit_makefiles + + emake -j1 || die +} + +pkg_preinst() { + declare MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}" + + einfo "Removing old installs though some really ugly code. It potentially" + einfo "eliminates any problems during the install, however suggestions to" + einfo "replace this are highly welcome. Send comments and suggestions to" + einfo "mozilla@gentoo.org." + rm -rf "${ROOT}"/"${MOZILLA_FIVE_HOME}" +} + +src_install() { + declare MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}" + + # Most of the installation happens here + dodir "${MOZILLA_FIVE_HOME}" + cp -RL "${S}/dist/bin/"* "${D}${MOZILLA_FIVE_HOME}" || die "Copy of files failed" + + linguas + for X in ${linguas}; do + [[ ${X} != "en" ]] && xpi_install "${WORKDIR}"/"${MY_PN}-${PV}.${X}.langpack" + done + + local LANG=${linguas%% *} + if [[ -n ${LANG} && ${LANG} != "en" ]]; then + einfo "Setting default locale to ${LANG}" + dosed -e "s:general.useragent.locale\", \"en-US\":general.useragent.locale\", \"${LANG}\":" \ + "${MOZILLA_FIVE_HOME}"/defaults/pref/sunbird.js \ + "${MOZILLA_FIVE_HOME}"/defaults/pref/sunbird-l10n.js || \ + die "sed failed to change locale" + fi + + # Create /usr/bin/sunbird + install_mozilla_launcher_stub sunbird "${MOZILLA_FIVE_HOME}" + + # Install icon and .desktop for menu entry + if use mozbranding; then + doicon "${FILESDIR}"/icon/${PN}-icon.png + domenu "${FILESDIR}"/icon/${PN}.desktop + else + doicon "${FILESDIR}"/icon/${PN}-unbranded-icon.png + newmenu "${FILESDIR}"/icon/${PN}-unbranded.desktop \ + ${PN}.desktop + + fi +} + +pkg_postinst() { + declare MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}" + + # This should be called in the postinst and postrm of all the + # mozilla, mozilla-bin, firefox, firefox-bin, thunderbird and + # thunderbird-bin ebuilds. + update_mozilla_launcher_symlinks +} + +pkg_postrm() { + declare MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}" + + update_mozilla_launcher_symlinks +} |