Move over the latest revision from the overlay. USE=system-sqlite is used for togglin...
authorNirbheek Chauhan <nirbheek@gentoo.org>
Thu, 4 Mar 2010 14:32:26 +0000 (14:32 +0000)
committerNirbheek Chauhan <nirbheek@gentoo.org>
Thu, 4 Mar 2010 14:32:26 +0000 (14:32 +0000)
Package-Manager: portage-2.1.7.17/cvs/Linux i686

net-libs/xulrunner/ChangeLog
net-libs/xulrunner/Manifest
net-libs/xulrunner/metadata.xml
net-libs/xulrunner/xulrunner-1.9.2-r4.ebuild [new file with mode: 0644]

index 8d950688ee8f242e6c987c98b9dc6bb6a0b11972..34dfbf2914aa268a1870008ca71a9ab625b40ff6 100644 (file)
@@ -1,6 +1,13 @@
 # ChangeLog for net-libs/xulrunner
 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-libs/xulrunner/ChangeLog,v 1.296 2010/03/02 20:19:18 keytoaster Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-libs/xulrunner/ChangeLog,v 1.297 2010/03/04 14:32:26 nirbheek Exp $
+
+*xulrunner-1.9.2-r4 (04 Mar 2010)
+
+  04 Mar 2010; Nirbheek Chauhan <nirbheek@gentoo.org>
+  +xulrunner-1.9.2-r4.ebuild, metadata.xml:
+  Move over the latest revision from the overlay. USE=system-sqlite is used
+  for toggling usage of internal/external sqlite
 
   02 Mar 2010; Tobias Heinlein <keytoaster@gentoo.org>
   xulrunner-1.9.1.8.ebuild:
index 90963ddb8c6caa459f0e5b86952685948af9794c..328195ebeb4d314ca480ec239f8ca4503f89002c 100644 (file)
@@ -1,6 +1,3 @@
------BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA1
-
 AUX 000_flex-configure-LANG.patch 1761 RMD160 638ae47607f582d6d264f7b6f4c3626ff60dbcb6 SHA1 db6d868d034b46b63ad292ab2e1c9b889fbeef75 SHA256 88719f2b3ab2be74a4d27173f7464f6fbc8e7697b84e3c32d19cf6e16170e532
 AUX 066-fix-includedir-mozilla-js.patch 747 RMD160 39c4430f77e42f5f5ad5f8038c036fccac1a7bb0 SHA1 9a1a09ee9bdca8ab9aeec6408baf207da9abe88a SHA256 069f6b1a43662e417e7f0194ceb039941c209409f8fb788914f862595cdf52f4
 AUX 301-xulrunner-xpctools.diff 550 RMD160 12d370d5473de5c54233a70533cd35e37305ef86 SHA1 e3812ce6a4446b0b9d496a9dd4760d03bf0de449 SHA256 6bf510f7df5a41f47501cbdbcffc46d0c04865e3597dc6a575cd4a9cfae1def4
@@ -27,12 +24,6 @@ EBUILD xulrunner-1.9.0.14.ebuild 4938 RMD160 90dab4447b3470cca3da354555665fe4b8b
 EBUILD xulrunner-1.9.1.6.ebuild 7948 RMD160 695e34e5df196b6c419610069f6d0ee9274baa97 SHA1 2dfc7b3426fc14953c220993f53a129376ae54ff SHA256 7bf9dfd7c026c41c4d0d4c261b086c6b79b66076e97439d8a3e39d184f2bf516
 EBUILD xulrunner-1.9.1.8.ebuild 7951 RMD160 235df30f6c383961147c5114ab2bbc39e12aad05 SHA1 5fb4b96ba83ef678ac01faa354d4b67b53149dbd SHA256 d2d1768a7ecf76e310cfec673961605fe9c36c836dc50242541b3a46e3fc2938
 EBUILD xulrunner-1.9.2-r2.ebuild 6738 RMD160 4a6d098f106050565296297af4f35b1933ec607e SHA1 2a6a61568fdcce7401076f5fce929642fff5c5fe SHA256 99bf8fb24f7ceae9bacf046f84c6b7ac207bc074ba60286a40a82e0b24c44528
-MISC ChangeLog 39840 RMD160 cc696b587de8bcc3f37a137beff048af27bf7e3d SHA1 634b26fbdb3f7d23ca26db65f1e6d6fea82668d3 SHA256 858a4643b011f05c1b04658999bcabdcbbe7b735b082c94c9c05ce164bcd76a0
-MISC metadata.xml 263 RMD160 9ed9d79d17d0a991e88c31ae6342996519ffef5b SHA1 0de183203298ce0f1c2ecc3fc8149842c4a0ec60 SHA256 64bfc93c4ab02ef2fe9b61b8157eb722d6cca5d552eecc18eaaf8e95980d2550
------BEGIN PGP SIGNATURE-----
-Version: GnuPG v2.0.14 (GNU/Linux)
-
-iEYEARECAAYFAkuNctUACgkQt3UOBHx+2m+l0gCfeih5c+41EefuLi7MGBFImrd0
-9+QAn2RfpjodwmyUOqEg0lBUvi4rjKDb
-=h6zL
------END PGP SIGNATURE-----
+EBUILD xulrunner-1.9.2-r4.ebuild 6756 RMD160 1ca5973990667d0ed4ff6526299bf464d8ef2934 SHA1 76a1804e16762778689664b7745245fa7ebbfa27 SHA256 bf0570c5d952a522d5b3545cd6afd68232a77f4c0e8378374be8225dbef2c048
+MISC ChangeLog 40097 RMD160 996a1d5ea4237587d67d33a23483e2946bafddd1 SHA1 d36c36b0bbfd524647d9e354ae63bde36ea6c3bf SHA256 9d85fb35bb7489c1e294f9218fa9d31096710b9ca1ccaa93d93e620b749dbff2
+MISC metadata.xml 394 RMD160 87c4429eed631c2727f7d3372f664d39db20be7f SHA1 30b52729cbc65b0d0f683c576d3e9f8865d9e893 SHA256 c0acfe25d1d0e91b0df61729e61ce47fb8f97ec02a4eb94ca21fd48fda20102e
index 052d09fd985c3d20cbbd8df6a0d051adfc98a360..de17e907b72723b49021b35ac70a7e85a421cd4e 100644 (file)
@@ -4,5 +4,7 @@
   <herd>mozilla</herd>
   <use>
     <flag name="custom-optimization">Fine-tune custom compiler optimizations</flag>
+    <flag name="system-sqlite">Use the system-wide <pkg>dev-db/sqlite</pkg>
+        installation with secure-delete enabled</flag>
   </use>
 </pkgmetadata>
diff --git a/net-libs/xulrunner/xulrunner-1.9.2-r4.ebuild b/net-libs/xulrunner/xulrunner-1.9.2-r4.ebuild
new file mode 100644 (file)
index 0000000..8aa4c63
--- /dev/null
@@ -0,0 +1,218 @@
+# Copyright 1999-2010 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-r4.ebuild,v 1.1 2010/03/04 14:32:26 nirbheek Exp $
+
+EAPI="2"
+WANT_AUTOCONF="2.1"
+
+inherit flag-o-matic toolchain-funcs eutils mozconfig-3 makeedit multilib java-pkg-opt-2 autotools
+
+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.4"
+
+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/dist/${PATCH}.tar.bz2"
+
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
+SLOT="1.9"
+LICENSE="|| ( MPL-1.1 GPL-2 LGPL-2.1 )"
+IUSE="+alsa debug libnotify system-sqlite wifi"
+
+RDEPEND="java? ( >=virtual/jre-1.4 )
+       >=dev-lang/python-2.3[threads]
+       >=sys-devel/binutils-2.16.1
+       >=dev-libs/nss-3.12.4
+       >=dev-libs/nspr-4.8
+       system-sqlite? ( >=dev-db/sqlite-3.6.22-r2[fts3,secure-delete] )
+       alsa? ( media-libs/alsa-lib )
+       >=app-text/hunspell-1.2
+       >=media-libs/lcms-1.17
+       >=x11-libs/cairo-1.8.8[X]
+       x11-libs/pango[X]
+       x11-libs/libXt
+       wifi? ( net-wireless/wireless-tools )
+       libnotify? ( >=x11-libs/libnotify-0.4 )"
+
+DEPEND="java? ( >=virtual/jdk-1.4 )
+       ${RDEPEND}
+       dev-util/pkgconfig"
+
+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
+}
+
+src_prepare() {
+       # Apply our patches
+       EPATCH_SUFFIX="patch" \
+       EPATCH_FORCE="yes" \
+       epatch "${WORKDIR}"
+
+       # Fix build error for xpctools
+       epatch "${FILESDIR}/301-xulrunner-xpctools.diff"
+
+       # Fix broken mozilla-plugin.pc
+       epatch "${FILESDIR}/${PN}-1.9.2-fix-pkgconfig-file.patch"
+
+       # Fix broken media support
+       epatch "${FILESDIR}/${PN}-1.9.2-noalsa-fixup.patch"
+
+       # 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 '' --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
+       mozconfig_annotate '' --with-system-nss
+       mozconfig_annotate '' --enable-system-lcms
+       mozconfig_annotate '' --with-system-bz2
+
+       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!"
+
+       CC="$(tc-getCC)" CXX="$(tc-getCXX)" LD="$(tc-getLD)" econf
+}
+
+src_install() {
+       emake DESTDIR="${D}" install || die "emake install failed"
+
+       rm "${D}"/usr/bin/xulrunner
+
+       MOZLIBDIR="/usr/$(get_libdir)/${PN}-${MAJ_PV}"
+       SDKDIR="/usr/$(get_libdir)/${PN}-devel-${MAJ_PV}/sdk"
+
+       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=${MOZLIBDIR}" > "${D}"/etc/env.d/08xulrunner || die "env.d failed"
+
+       # Add our defaults to xulrunner and out of firefox
+       cp "${FILESDIR}"/xulrunner-default-prefs.js \
+               "${D}/${MOZLIBDIR}/defaults/pref/all-gentoo.js" || \
+                       die "failed to cp xulrunner-default-prefs.js"
+
+       if use java ; then
+               java-pkg_regjar "${D}/${MOZLIBDIR}/javaxpcom.jar"
+               java-pkg_regjar "${D}/${SDKDIR}/lib/MozillaGlue.jar"
+               java-pkg_regjar "${D}/${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 ."
+}