From: Lars Wendler Date: Wed, 21 Dec 2011 16:16:34 +0000 (+0000) Subject: Removed old X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=062aa3f8b933ac62149771c6e0ac90340b04cbfe;p=gentoo.git Removed old Package-Manager: portage-2.2.0_alpha81/cvs/Linux x86_64 --- diff --git a/net-libs/xulrunner/ChangeLog b/net-libs/xulrunner/ChangeLog index 3a331cf1787d..6220d1c845dd 100644 --- a/net-libs/xulrunner/ChangeLog +++ b/net-libs/xulrunner/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for net-libs/xulrunner # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-libs/xulrunner/ChangeLog,v 1.441 2011/12/11 14:31:32 armin76 Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-libs/xulrunner/ChangeLog,v 1.442 2011/12/21 16:16:34 polynomial-c Exp $ + + 21 Dec 2011; Lars Wendler + -xulrunner-1.9.2.12.ebuild, -xulrunner-1.9.2.21.ebuild: + Removed old. 11 Dec 2011; Raúl Porcel xulrunner-1.9.2.22.ebuild: sparc stable diff --git a/net-libs/xulrunner/Manifest b/net-libs/xulrunner/Manifest index 07f8c36e0aaf..be39463b45a0 100644 --- a/net-libs/xulrunner/Manifest +++ b/net-libs/xulrunner/Manifest @@ -1,5 +1,5 @@ -----BEGIN PGP SIGNED MESSAGE----- -Hash: SHA1 +Hash: SHA512 AUX arm-bug-644136.patch 472 RMD160 bda46fa7a4ca306ebfa3455d90c6e54a3f0d97e1 SHA1 f2eb5ab3ce793fc7d8c30d9f9db6be3a714f5c16 SHA256 3152f9c5b3f9cd75caf522e71d4105be8fbcc4def3e2f4162663799d78e03511 AUX bug-606109.patch 1243 RMD160 ec262eed0480d8a13c914c4781329e3ea1c23b0f SHA1 0c0cc40ee0a663422b107cc3ae5d1412b8c45ac7 SHA256 266d9c7218cc04c3badadc54f8f31b1238326b9c3052aed057ffce40c69541dc @@ -10,27 +10,32 @@ AUX mozilla-2.0_arm_respect_cflags.patch 3333 RMD160 d5f8b428a5a9cb0938e99666ac6 AUX mozilla-2.0_support_64bit_big_endian.patch 1668 RMD160 1013dbd09d7956162351f5209eb77f08d83d9a12 SHA1 83423a47c016bdefdac562c8d606868eb81d9e62 SHA256 041ffa768a680293f97b325573a91a2c63841cd25648294e7989fcfcaedc70f2 AUX xulrunner-1.9.2-gtk+-2.21.patch 663 RMD160 20e2465da0e6c884527fd7cfebd3bdb2f8f015a9 SHA1 f2b9c26ed255bde672ccc8cb7ae4ae014f52d6f5 SHA256 79c11dc4304d748f3c2d6e451aa6d44dd1bb450d1db671e7fa4a83420c6f2c05 AUX xulrunner-default-prefs.js 677 RMD160 73ec130da332c1d6517a6f838d5fab0cc134289a SHA1 b9efc3ef5e95ad3081f6b68d771e32e848b4b9ac SHA256 53493080276f221f1619153c114caf268206a6fa107972b33a4eb7f1c1cf6fe8 -DIST firefox-3.6.12.source.tar.bz2 51423668 RMD160 196e32a4cd9c6725e115aabcf320d7d8df5bca6e SHA1 1cc3885687dd5ad21167d9d45f76eb1458f46bdd SHA256 dd478c653070f451b76befc798cfa1d6b61745d8badf831a3bae453c32e68c2d DIST firefox-3.6.17.source.tar.bz2 51522989 RMD160 af7320c7447dea4b1722b937bb77b20943e9e68d SHA1 1ae71e8e2838d438de2f6f860fe77d067f3629ee SHA256 a07abc8faba26fb613d69c3cff810542dd2da11d8892f8b57602486f7e8d6457 DIST firefox-3.6.20.source.tar.bz2 51564376 RMD160 b2314d50020815ab432ce91931266884410bedec SHA1 d25d892b3214f92f0799ecdaf6ea6414a8950eb2 SHA256 0e8e3110c8cd1f4ad913c3c7424952b1aeebf6b375e8f6b5ccfe3e0b6d8abb18 -DIST firefox-3.6.21.source.tar.bz2 51556131 RMD160 b883221eca22ddb4a9f2ce2c966d4bf406051c34 SHA1 3c1f001ad22d93b48e191999f548b4382db3d36c SHA256 1abaa7d44033601ffccdfef8f02e684d83d8a08c6c4ddb8ae862683da87b89b7 DIST firefox-3.6.22.source.tar.bz2 51675082 RMD160 7b5cd6bb9264b97b0059bb254c383d9237982e4c SHA1 db7953b20568126a3ffe7c5a89ab0cecac4b0a53 SHA256 788e5a64f8bdb07183405c568fda70d8cb7759d3a8d75c404f3589fe8a039229 DIST firefox-4.0.1.source.tar.bz2 65980273 RMD160 63faaae78b56db407a34454986361212382c838e SHA1 c89bc5106266aa0097a7be15be84555bd2649f03 SHA256 cf3a39877facc229a67760915341fe95095cca647faab3a7adcb70046105199c -DIST xulrunner-1.9.2-patches-0.7.tar.bz2 16366 RMD160 2bfa5f56d58d5bb4508512190cf07454814fb0b5 SHA1 2c6e2cfb0c50a5595795561126de26941dbed576 SHA256 3e25e9b8d5fe9109f03889bca9240f92acd502fd68efe0e7eda304f5487b6bf0 DIST xulrunner-1.9.2-patches-0.9.tar.bz2 15320 RMD160 2dfb86650c0a9a1f0c5bf86df7434c7c286658d6 SHA1 a2276c708eec2e92611ac1e7a2eaf25c39263d30 SHA256 5cca685442f1ab920eb1ba86719a38a437ae05bd5cefc42ababc2556425ebf5a DIST xulrunner-2.0-patches-1.8.tar.bz2 68053 RMD160 58ef5ff8fd037f34232a8acc706a1cb086651940 SHA1 bac72e12bfc1150ed116ba5e930688ec72157671 SHA256 88950bf5bdc34cf96bf79e1e1d2f2a4071e1f9e9d53e52f400c433f2f661b77f -EBUILD xulrunner-1.9.2.12.ebuild 8544 RMD160 b9237eaa83d73bfeae84245453dd5c120f33cbb7 SHA1 74ae00402ecbd1b382aa69a3e43b2b3b9826cd22 SHA256 acb634dcc7bddb968faeea0082d08470d49148c9a3bc70ed23676d99b08cffc0 EBUILD xulrunner-1.9.2.17.ebuild 8521 RMD160 318ad1e4b62e02b05dbf7f05e4490b2fedb62e29 SHA1 3f70f9a35b73250e377a4784d72cf92733009910 SHA256 01a2b5246c95150f61a0ef12f54b9f3b6b95fdf0df2bf0e9ced8a5f61573b63a EBUILD xulrunner-1.9.2.20.ebuild 8520 RMD160 dae458c7b65164917c305114b38733dffd4975a5 SHA1 eeaf844973fb4689b0beb1f84f05556bc6d71db6 SHA256 1d85c052d75f32f108db40deca934c1e77ff877815292f12286460cf57eb7c5b -EBUILD xulrunner-1.9.2.21.ebuild 8527 RMD160 5c69ea1d8929b8130f60536b608a359ff0a63c3a SHA1 d63083061f610c214f437efbe74adb4c48a92340 SHA256 ca0ff1303be22ac2ccf54430986c9a44fdce924340a3367426348e13822ddd7b EBUILD xulrunner-1.9.2.22.ebuild 8530 RMD160 637e2122e9ba71cd1f8cf24380e4ba7da803de94 SHA1 445d8e9d32070433d7d6c6182bc78c506402c9cb SHA256 3fed2088af183f102b012cd9c54cd740b20c96d9c45d3c17c0431a8ac628378b EBUILD xulrunner-2.0.1-r1.ebuild 6546 RMD160 d56e68fbd36391dfca602ea0f32c7bf61a7d5696 SHA1 25e6bffcbdb5a918a56b0a0e8dc4e150640341c9 SHA256 d1ae52e4b916df0f1a1355802e3a775da633ea45f6d32b1cdd91bcb26e3182c0 -MISC ChangeLog 61687 RMD160 36466a5915b9abbddb33859a83fd5f6912ee1564 SHA1 779c32fa7e26d110018b4d396f0e6850659f07c8 SHA256 af32c1bdc0314f8327f6fd2920b70d18e7ca2aaacf35eaa1695e9d4fb00cfe10 +MISC ChangeLog 61820 RMD160 4e2cec1c51c89f19e3675abe33c70beb507129f3 SHA1 5d573f2daa9ec0964a3fa202986f81aeeb2db592 SHA256 ae4da88b66e08e2ebfac60a604c3680319615e10c0caffe362470810985ea849 MISC metadata.xml 737 RMD160 ee298932f419af0c12657a8df62b797e1ae7720b SHA1 8b9e4d04ae106f928b374568a5d3e2ff0eddcc88 SHA256 400effb40ec15054f2a51ce3d9ea5c27359a4a4456c18459c014c58773491be0 -----BEGIN PGP SIGNATURE----- -Version: GnuPG v2.0.17 (GNU/Linux) +Version: GnuPG v2.0.18 (GNU/Linux) -iEYEARECAAYFAk7kvssACgkQuQc30/atMkCZZgCePuRdgQtkGCEQq9MDn7D4J6hB -2msAmwagjDSiNJKcOx+wm7aYGh69DMFg -=La32 +iQIcBAEBCgAGBQJO8gZnAAoJEPiazRVxLXTFKHsP/R7M8O6M6+C6BK610d1AEPy+ +3uUnMGARg1+Ib83iMpwxV5tuUmd9PyXGD2jg3U/usCCofp9ksWQQrvt8nwDiH2Od +MNRrFGzOa/c31qrtBUYvBfoPFgrI4/2Kgh0LaQehRcJEEIGDVd+KgHaTHZ9NXLJ6 +PONmpLB2ok8MPCutt+mNPJ6DCWQAbLWeFx1jxj2YldbAJbzrpVgkyxRJStXCvsNr +y7j4vceFVhSVe9kGB+/7D8qXfrJV0ymsYhX3h5JliNpXqfyCOFigS+cuyR9prnv3 +e3mBEX0puzMd0UhsmDE8OI0KDNs/D5KYcKaidQKVlHM3kchoSWT7KZ9ZDcn9ETPw +64A/0OEtgfJ1ehkqFoH/hYiB+FhqtczpHp4iat59JOsVRe0qzqVbB8QFIaQfb4gL +RY6xvFxp66n8/it2Ehy9QSR8P8UVblm2ZxLPM7qmd6fxe7CO1OkwqPS4RE1DOr9r +inIS/JbpILvZKRJiyHI5A/j71MEO8Mi1RhnUGArb7wA8qvu4l5CEpgJKgwWvCugD +N9Ypp786KxPxI/6d0ZMBkqbjzTipauOmFYWbjq7keRub63GpYVdQ43QHuD+Hxewh +OxLBGYeJNcPQhct8iw3foFiZIMig6BN0I05DH+fhlLT3F8yIxv0d2EXy+8qMEHlf +S0+adP/U4pXp5FFxs+hS +=NZIK -----END PGP SIGNATURE----- diff --git a/net-libs/xulrunner/xulrunner-1.9.2.12.ebuild b/net-libs/xulrunner/xulrunner-1.9.2.12.ebuild deleted file mode 100644 index f306dc59404f..000000000000 --- a/net-libs/xulrunner/xulrunner-1.9.2.12.ebuild +++ /dev/null @@ -1,264 +0,0 @@ -# Copyright 1999-2011 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-libs/xulrunner/xulrunner-1.9.2.12.ebuild,v 1.12 2011/07/26 17:02:29 polynomial-c Exp $ - -EAPI="3" -WANT_AUTOCONF="2.1" - -inherit flag-o-matic toolchain-funcs eutils mozconfig-3 makeedit multilib java-pkg-opt-2 autotools python prefix pax-utils - -MY_PV="${PV/_rc/rc}" # Handle beta -MY_PV="${MY_PV/1.9.2/3.6}" -MAJ_PV="1.9.2" # from mozilla-* branch name -PATCH="${PN}-1.9.2-patches-0.7" - -DESCRIPTION="Mozilla runtime package that can be used to bootstrap XUL+XPCOM applications" -HOMEPAGE="http://developer.mozilla.org/en/docs/XULRunner" -SRC_URI="http://releases.mozilla.org/pub/mozilla.org/firefox/releases/${MY_PV}/source/firefox-${MY_PV}.source.tar.bz2 - http://dev.gentoo.org/~anarchy/mozilla/patchsets/${PATCH}.tar.bz2" - -KEYWORDS="sparc" -SLOT="1.9" -LICENSE="|| ( MPL-1.1 GPL-2 LGPL-2.1 )" -IUSE="+alsa debug gnome +ipc libnotify system-sqlite wifi" - -RDEPEND=" - >=sys-devel/binutils-2.16.1 - >=dev-libs/nss-3.12.8 - >=dev-libs/nspr-4.8.6 - system-sqlite? ( >=dev-db/sqlite-3.7.1[fts3,secure-delete] ) - alsa? ( media-libs/alsa-lib ) - >=app-text/hunspell-1.2 - >=x11-libs/cairo-1.8.8[X] - x11-libs/libXt - x11-libs/pixman - >=dev-libs/libevent-1.4.7 - gnome? ( >=gnome-base/gnome-vfs-2.16.3 - >=gnome-base/libgnomeui-2.16.1 - >=gnome-base/gconf-2.16.0 - >=gnome-base/libgnome-2.16.0 ) - wifi? ( net-wireless/wireless-tools ) - libnotify? ( >=x11-libs/libnotify-0.4 )" - -DEPEND="java? ( >=virtual/jdk-1.4 ) - ${RDEPEND} - =dev-lang/python-2*[threads] - dev-util/pkgconfig" - -# virtual/jre should not be in DEPEND. bug 325981 -RDEPEND="java? ( >=virtual/jre-1.4 ) ${RDEPEND}" - -S="${WORKDIR}/mozilla-${MAJ_PV}" - -pkg_setup() { - # Ensure we always build with C locale. - export LANG="C" - export LC_ALL="C" - export LC_MESSAGES="C" - export LC_CTYPE="C" - - java-pkg-opt-2_pkg_setup - - python_set_active_version 2 -} - -src_prepare() { - # Apply our patches - EPATCH_EXCLUDE="2001_mozilla_ps_pdf_simplify_operators.patch" \ - EPATCH_SUFFIX="patch" \ - EPATCH_FORCE="yes" \ - epatch "${WORKDIR}" - - epatch "${FILESDIR}/bug-606109.patch" - epatch "${FILESDIR}/${PN}-1.9.2-gtk+-2.21.patch" - - eprefixify \ - extensions/java/xpcom/interfaces/org/mozilla/xpcom/Mozilla.java \ - xpcom/build/nsXPCOMPrivate.h \ - xulrunner/installer/Makefile.in \ - xulrunner/app/nsRegisterGREUnix.cpp - - # fix double symbols due to double -ljemalloc - sed -i -e '/^LIBS += $(JEMALLOC_LIBS)/s/^/#/' \ - xulrunner/stub/Makefile.in || die - - #Fix compilation with curl-7.21.7 bug 376027 - sed -e '/#include /d' \ - -i "${S}"/toolkit/crashreporter/google-breakpad/src/common/linux/libcurl_wrapper.cc \ - -i "${S}"/toolkit/crashreporter/google-breakpad/src/common/linux/http_upload.cc \ - || die - sed -e '/curl\/types\.h/d' \ - -i "${S}"/config/system-headers \ - -i "${S}"/js/src/config/system-headers \ - || die - - # Allow user to apply additional patches without modifing ebuild - epatch_user - - # Same as in config/autoconf.mk.in - MOZLIBDIR="/usr/$(get_libdir)/${PN}-${MAJ_PV}" - SDKDIR="/usr/$(get_libdir)/${PN}-devel-${MAJ_PV}/sdk" - - # Gentoo install dirs - sed -i -e "s:@PV@:${MAJ_PV}:" "${S}"/config/autoconf.mk.in \ - || die "${MAJ_PV} sed failed!" - - # Enable gnomebreakpad - if use debug ; then - sed -i -e "s:GNOME_DISABLE_CRASH_DIALOG=1:GNOME_DISABLE_CRASH_DIALOG=0:g" \ - "${S}"/build/unix/run-mozilla.sh || die "sed failed!" - fi - - eautoreconf - - cd js/src - eautoreconf -} - -src_configure() { - #################################### - # - # mozconfig, CFLAGS and CXXFLAGS setup - # - #################################### - - mozconfig_init - mozconfig_config - - MEXTENSIONS="default" - - MOZLIBDIR="/usr/$(get_libdir)/${PN}-${MAJ_PV}" - - # It doesn't compile on alpha without this LDFLAGS - use alpha && append-ldflags "-Wl,--no-relax" - - mozconfig_annotate '' --enable-crypto - mozconfig_annotate '' --with-default-mozilla-five-home="${MOZLIBDIR}" - mozconfig_annotate '' --enable-extensions="${MEXTENSIONS}" - mozconfig_annotate '' --enable-application=xulrunner - mozconfig_annotate '' --disable-mailnews - mozconfig_annotate 'broken' --disable-crashreporter - mozconfig_annotate '' --enable-image-encoder=all - mozconfig_annotate '' --enable-canvas - mozconfig_annotate 'gtk' --enable-default-toolkit=cairo-gtk2 - # Bug 60668: Galeon doesn't build without oji enabled, so enable it - # regardless of java setting. - mozconfig_annotate '' --enable-oji --enable-mathml - mozconfig_annotate 'places' --enable-storage --enable-places - mozconfig_annotate '' --enable-safe-browsing - - # Build mozdevelop permately - mozconfig_annotate '' --enable-jsd --enable-xpctools - - # System-wide install specs - mozconfig_annotate '' --disable-installer - mozconfig_annotate '' --disable-updater - mozconfig_annotate '' --disable-strip - mozconfig_annotate '' --disable-install-strip - - # Use system libraries - mozconfig_annotate '' --enable-system-cairo - mozconfig_annotate '' --enable-system-hunspell - mozconfig_annotate '' --with-system-nspr --with-nspr-prefix="${EPREFIX}"/usr - mozconfig_annotate '' --with-system-nss --with-nss-prefix="${EPREFIX}"/usr - mozconfig_annotate '' --x-includes="${EPREFIX}"/usr/include --x-libraries="${EPREFIX}"/usr/$(get_libdir) - mozconfig_annotate '' --with-system-bz2 - mozconfig_annotate '' --with-system-libevent="${EPREFIX}"/usr - - mozconfig_use_enable gnome gnomevfs - mozconfig_use_enable gnome gnomeui - mozconfig_use_enable ipc # +ipc, upstream default - mozconfig_use_enable libnotify - mozconfig_use_enable java javaxpcom - mozconfig_use_enable wifi necko-wifi - mozconfig_use_enable alsa ogg - mozconfig_use_enable alsa wave - mozconfig_use_enable system-sqlite - - # Debug - if use debug ; then - mozconfig_annotate 'debug' --disable-optimize - mozconfig_annotate 'debug' --enable-debug=-ggdb - mozconfig_annotate 'debug' --enable-debug-modules=all - mozconfig_annotate 'debug' --enable-debugger-info-modules - fi - - # Finalize and report settings - mozconfig_final - - if [[ $(gcc-major-version) -lt 4 ]]; then - append-flags -fno-stack-protector - fi - - #################################### - # - # Configure and build - # - #################################### - - # Disable no-print-directory - MAKEOPTS=${MAKEOPTS/--no-print-directory/} - - # Ensure that are plugins dir is enabled as default - sed -i -e "s:/usr/lib/mozilla/plugins:/usr/$(get_libdir)/nsbrowser/plugins:" \ - "${S}"/xpcom/io/nsAppFileLocationProvider.cpp || die "sed failed to replace plugin path!" - - # hack added to workaround bug 299905 on hosts with libc that doesn't - # support tls, (probably will only hit this condition with Gentoo Prefix) - tc-has-tls -l || export ac_cv_thread_keyword=no - - CC="$(tc-getCC)" CXX="$(tc-getCXX)" LD="$(tc-getLD)" PYTHON="$(PYTHON)" econf -} - -src_install() { - emake DESTDIR="${D}" install || die "emake install failed" - - rm "${ED}"/usr/bin/xulrunner - - MOZLIBDIR="/usr/$(get_libdir)/${PN}-${MAJ_PV}" - SDKDIR="/usr/$(get_libdir)/${PN}-devel-${MAJ_PV}/sdk" - - if has_multilib_profile; then - local config - for config in "${ED}"/etc/gre.d/*.system.conf ; do - mv "${config}" "${config%.conf}.${CHOST}.conf" - done - fi - - dodir /usr/bin - dosym "${MOZLIBDIR}/xulrunner" "/usr/bin/xulrunner-${MAJ_PV}" || die - - # env.d file for ld search path - dodir /etc/env.d - echo "LDPATH=${EPREFIX}/${MOZLIBDIR}" > "${ED}"/etc/env.d/08xulrunner || die "env.d failed" - - # Add our defaults to xulrunner and out of firefox - cp "${FILESDIR}"/xulrunner-default-prefs.js \ - "${ED}/${MOZLIBDIR}/defaults/pref/all-gentoo.js" || \ - die "failed to cp xulrunner-default-prefs.js" - - pax-mark m "${D}"/${MOZLIBDIR}/plugin-container - - if use java ; then - java-pkg_regjar "${ED}/${MOZLIBDIR}/javaxpcom.jar" - java-pkg_regso "${ED}/${MOZLIBDIR}/libjavaxpcomglue.so" - java-pkg_regjar "${ED}/${SDKDIR}/lib/MozillaGlue.jar" - java-pkg_regjar "${ED}/${SDKDIR}/lib/MozillaInterfaces.jar" - fi -} - -pkg_postinst() { - ewarn "If firefox fails to start with \"failed to load xpcom\", run revdep-rebuild" - ewarn "If that does not fix the problem, rebuild dev-libs/nss" - ewarn "Try dev-util/lafilefixer if you get build failures related to .la files" - - einfo - einfo "All prefs can be overridden by the user. The preferences are to make" - einfo "use of xulrunner out of the box on an average system without the user" - einfo "having to go through and enable the basics." - - einfo - ewarn "Any package that requires xulrunner:1.9 slot could and most likely will" - ewarn "have issues. These issues should be reported to maintainer, and mozilla herd" - ewarn "should be cc'd on the bug report. Thank you anarchy@gentoo.org ." -} diff --git a/net-libs/xulrunner/xulrunner-1.9.2.21.ebuild b/net-libs/xulrunner/xulrunner-1.9.2.21.ebuild deleted file mode 100644 index f966592ff385..000000000000 --- a/net-libs/xulrunner/xulrunner-1.9.2.21.ebuild +++ /dev/null @@ -1,262 +0,0 @@ -# Copyright 1999-2011 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-libs/xulrunner/xulrunner-1.9.2.21.ebuild,v 1.2 2011/10/31 00:39:08 jer Exp $ - -EAPI="3" -WANT_AUTOCONF="2.1" - -inherit flag-o-matic toolchain-funcs eutils mozconfig-3 makeedit multilib java-pkg-opt-2 autotools python prefix pax-utils - -MY_PV="${PV/_rc/rc}" # Handle beta -MY_PV="${MY_PV/1.9.2/3.6}" -MAJ_PV="1.9.2" # from mozilla-* branch name -PATCH="${PN}-1.9.2-patches-0.9" - -DESCRIPTION="Mozilla runtime package that can be used to bootstrap XUL+XPCOM applications" -HOMEPAGE="http://developer.mozilla.org/en/docs/XULRunner" -SRC_URI="http://releases.mozilla.org/pub/mozilla.org/firefox/releases/${MY_PV}/source/firefox-${MY_PV}.source.tar.bz2 - http://dev.gentoo.org/~anarchy/mozilla/patchsets/${PATCH}.tar.bz2" - -KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~sparc-solaris ~x64-solaris ~x86-solaris" -SLOT="1.9" -LICENSE="|| ( MPL-1.1 GPL-2 LGPL-2.1 )" -IUSE="+alsa debug gnome +ipc libnotify system-sqlite wifi" - -RDEPEND=" - >=sys-devel/binutils-2.16.1 - >=dev-libs/nss-3.12.8 - >=dev-libs/nspr-4.8.6 - system-sqlite? ( >=dev-db/sqlite-3.7.4[fts3,secure-delete] ) - alsa? ( media-libs/alsa-lib ) - >=app-text/hunspell-1.2 - >=x11-libs/cairo-1.8.8[X] - x11-libs/libXt - x11-libs/pixman - >=dev-libs/libevent-1.4.7 - gnome? ( >=gnome-base/gnome-vfs-2.16.3 - >=gnome-base/libgnomeui-2.16.1 - >=gnome-base/gconf-2.16.0 - >=gnome-base/libgnome-2.16.0 ) - wifi? ( net-wireless/wireless-tools ) - libnotify? ( >=x11-libs/libnotify-0.4 )" - -DEPEND="java? ( >=virtual/jdk-1.4 ) - ${RDEPEND} - =dev-lang/python-2*[threads] - dev-util/pkgconfig" - -# virtual/jre should not be in DEPEND. bug 325981 -RDEPEND="java? ( >=virtual/jre-1.4 ) ${RDEPEND}" - -S="${WORKDIR}/mozilla-${MAJ_PV}" - -pkg_setup() { - # Ensure we always build with C locale. - export LANG="C" - export LC_ALL="C" - export LC_MESSAGES="C" - export LC_CTYPE="C" - - java-pkg-opt-2_pkg_setup - - python_set_active_version 2 -} - -src_prepare() { - # Apply our patches - EPATCH_SUFFIX="patch" \ - EPATCH_FORCE="yes" \ - epatch "${WORKDIR}" - - epatch "${FILESDIR}/bug-606109.patch" - - eprefixify \ - extensions/java/xpcom/interfaces/org/mozilla/xpcom/Mozilla.java \ - xpcom/build/nsXPCOMPrivate.h \ - xulrunner/installer/Makefile.in \ - xulrunner/app/nsRegisterGREUnix.cpp - - # fix double symbols due to double -ljemalloc - sed -i -e '/^LIBS += $(JEMALLOC_LIBS)/s/^/#/' \ - xulrunner/stub/Makefile.in || die - - #Fix compilation with curl-7.21.7 bug 376027 - sed -e '/#include /d' \ - -i "${S}"/toolkit/crashreporter/google-breakpad/src/common/linux/libcurl_wrapper.cc \ - -i "${S}"/toolkit/crashreporter/google-breakpad/src/common/linux/http_upload.cc \ - || die - sed -e '/curl\/types\.h/d' \ - -i "${S}"/config/system-headers \ - -i "${S}"/js/src/config/system-headers \ - || die - - # Allow user to apply additional patches without modifing ebuild - epatch_user - - # Same as in config/autoconf.mk.in - MOZLIBDIR="/usr/$(get_libdir)/${PN}-${MAJ_PV}" - SDKDIR="/usr/$(get_libdir)/${PN}-devel-${MAJ_PV}/sdk" - - # Gentoo install dirs - sed -i -e "s:@PV@:${MAJ_PV}:" "${S}"/config/autoconf.mk.in \ - || die "${MAJ_PV} sed failed!" - - # Enable gnomebreakpad - if use debug ; then - sed -i -e "s:GNOME_DISABLE_CRASH_DIALOG=1:GNOME_DISABLE_CRASH_DIALOG=0:g" \ - "${S}"/build/unix/run-mozilla.sh || die "sed failed!" - fi - - eautoreconf - - cd js/src - eautoreconf -} - -src_configure() { - #################################### - # - # mozconfig, CFLAGS and CXXFLAGS setup - # - #################################### - - mozconfig_init - mozconfig_config - - MEXTENSIONS="default" - - MOZLIBDIR="/usr/$(get_libdir)/${PN}-${MAJ_PV}" - - # It doesn't compile on alpha without this LDFLAGS - use alpha && append-ldflags "-Wl,--no-relax" - - mozconfig_annotate '' --enable-crypto - mozconfig_annotate '' --with-default-mozilla-five-home="${MOZLIBDIR}" - mozconfig_annotate '' --enable-extensions="${MEXTENSIONS}" - mozconfig_annotate '' --enable-application=xulrunner - mozconfig_annotate '' --disable-mailnews - mozconfig_annotate 'broken' --disable-crashreporter - mozconfig_annotate '' --enable-image-encoder=all - mozconfig_annotate '' --enable-canvas - mozconfig_annotate 'gtk' --enable-default-toolkit=cairo-gtk2 - # Bug 60668: Galeon doesn't build without oji enabled, so enable it - # regardless of java setting. - mozconfig_annotate '' --enable-oji --enable-mathml - mozconfig_annotate 'places' --enable-storage --enable-places - mozconfig_annotate '' --enable-safe-browsing - - # Build mozdevelop permately - mozconfig_annotate '' --enable-jsd --enable-xpctools - - # System-wide install specs - mozconfig_annotate '' --disable-installer - mozconfig_annotate '' --disable-updater - mozconfig_annotate '' --disable-strip - mozconfig_annotate '' --disable-install-strip - - # Use system libraries - mozconfig_annotate '' --enable-system-cairo - mozconfig_annotate '' --enable-system-hunspell - mozconfig_annotate '' --with-system-nspr --with-nspr-prefix="${EPREFIX}"/usr - mozconfig_annotate '' --with-system-nss --with-nss-prefix="${EPREFIX}"/usr - mozconfig_annotate '' --x-includes="${EPREFIX}"/usr/include --x-libraries="${EPREFIX}"/usr/$(get_libdir) - mozconfig_annotate '' --with-system-bz2 - mozconfig_annotate '' --with-system-libevent="${EPREFIX}"/usr - - mozconfig_use_enable gnome gnomevfs - mozconfig_use_enable gnome gnomeui - mozconfig_use_enable ipc # +ipc, upstream default - mozconfig_use_enable libnotify - mozconfig_use_enable java javaxpcom - mozconfig_use_enable wifi necko-wifi - mozconfig_use_enable alsa ogg - mozconfig_use_enable alsa wave - mozconfig_use_enable system-sqlite - - # Debug - if use debug ; then - mozconfig_annotate 'debug' --disable-optimize - mozconfig_annotate 'debug' --enable-debug=-ggdb - mozconfig_annotate 'debug' --enable-debug-modules=all - mozconfig_annotate 'debug' --enable-debugger-info-modules - fi - - # Finalize and report settings - mozconfig_final - - if [[ $(gcc-major-version) -lt 4 ]]; then - append-flags -fno-stack-protector - fi - - #################################### - # - # Configure and build - # - #################################### - - # Disable no-print-directory - MAKEOPTS=${MAKEOPTS/--no-print-directory/} - - # Ensure that are plugins dir is enabled as default - sed -i -e "s:/usr/lib/mozilla/plugins:/usr/$(get_libdir)/nsbrowser/plugins:" \ - "${S}"/xpcom/io/nsAppFileLocationProvider.cpp || die "sed failed to replace plugin path!" - - # hack added to workaround bug 299905 on hosts with libc that doesn't - # support tls, (probably will only hit this condition with Gentoo Prefix) - tc-has-tls -l || export ac_cv_thread_keyword=no - - CC="$(tc-getCC)" CXX="$(tc-getCXX)" LD="$(tc-getLD)" PYTHON="$(PYTHON)" econf -} - -src_install() { - emake DESTDIR="${D}" install || die "emake install failed" - - rm "${ED}"/usr/bin/xulrunner - - MOZLIBDIR="/usr/$(get_libdir)/${PN}-${MAJ_PV}" - SDKDIR="/usr/$(get_libdir)/${PN}-devel-${MAJ_PV}/sdk" - - if has_multilib_profile; then - local config - for config in "${ED}"/etc/gre.d/*.system.conf ; do - mv "${config}" "${config%.conf}.${CHOST}.conf" - done - fi - - dodir /usr/bin - dosym "${MOZLIBDIR}/xulrunner" "/usr/bin/xulrunner-${MAJ_PV}" || die - - # env.d file for ld search path - dodir /etc/env.d - echo "LDPATH=${EPREFIX}/${MOZLIBDIR}" > "${ED}"/etc/env.d/08xulrunner || die "env.d failed" - - # Add our defaults to xulrunner and out of firefox - cp "${FILESDIR}"/xulrunner-default-prefs.js \ - "${ED}/${MOZLIBDIR}/defaults/pref/all-gentoo.js" || \ - die "failed to cp xulrunner-default-prefs.js" - - pax-mark m "${D}"/${MOZLIBDIR}/plugin-container - - if use java ; then - java-pkg_regjar "${ED}/${MOZLIBDIR}/javaxpcom.jar" - java-pkg_regso "${ED}/${MOZLIBDIR}/libjavaxpcomglue.so" - java-pkg_regjar "${ED}/${SDKDIR}/lib/MozillaGlue.jar" - java-pkg_regjar "${ED}/${SDKDIR}/lib/MozillaInterfaces.jar" - fi -} - -pkg_postinst() { - ewarn "If firefox fails to start with \"failed to load xpcom\", run revdep-rebuild" - ewarn "If that does not fix the problem, rebuild dev-libs/nss" - ewarn "Try dev-util/lafilefixer if you get build failures related to .la files" - - einfo - einfo "All prefs can be overridden by the user. The preferences are to make" - einfo "use of xulrunner out of the box on an average system without the user" - einfo "having to go through and enable the basics." - - einfo - ewarn "Any package that requires xulrunner:1.9 slot could and most likely will" - ewarn "have issues. These issues should be reported to maintainer, and mozilla herd" - ewarn "should be cc'd on the bug report. Thank you anarchy@gentoo.org ." -}