diff options
author | 2009-06-25 15:43:56 +0800 | |
---|---|---|
committer | 2009-06-25 15:43:56 +0800 | |
commit | f1de82f6b31b14118b5fcf05f65e2f6c078467d6 (patch) | |
tree | 74f1e6191692cae7e6d87a62a1a056b25c0105dc /net-libs | |
parent | bump python to 2.6.2-r1 (diff) | |
download | loongson-f1de82f6b31b14118b5fcf05f65e2f6c078467d6.tar.gz loongson-f1de82f6b31b14118b5fcf05f65e2f6c078467d6.tar.bz2 loongson-f1de82f6b31b14118b5fcf05f65e2f6c078467d6.zip |
added xulrunner-1.9.1_rc1.ebuild
Signed-off-by: Zhang Le <r0bertz@gentoo.org>
Diffstat (limited to 'net-libs')
-rw-r--r-- | net-libs/xulrunner/Manifest | 2 | ||||
-rw-r--r-- | net-libs/xulrunner/xulrunner-1.9.1_rc1.ebuild | 217 |
2 files changed, 219 insertions, 0 deletions
diff --git a/net-libs/xulrunner/Manifest b/net-libs/xulrunner/Manifest index 065c4fe..cbe1bda 100644 --- a/net-libs/xulrunner/Manifest +++ b/net-libs/xulrunner/Manifest @@ -14,9 +14,11 @@ AUX xulrunner-mips-n32.patch 24732 RMD160 d5020c88801e6647131c6c2d780a90ccc0717c AUX xulrunner-mips-o32.patch 17598 RMD160 997add4cc1c0aa96c2484e860bb51441d5adb7e1 SHA1 e32d33007446db694ca5e61c853620970fe9d22e SHA256 9ce5a23a4d2582e48ae43a4cb414a7ce690e1cf029e24d0d5d93b8e301b41bc5 AUX xulrunner.conf 113 RMD160 8be48cf5040eb5753c8eb35c048cc6b2c1a8a057 SHA1 62cce7ee5b1e51343c3dbc388894011da913d9d4 SHA256 9ac56b42cfb48854d23c299330ad327af5f0815140dcb7fdee905b660cd9a8a3 DIST firefox-3.5b4-source.tar.bz2 45782023 RMD160 d28d545f533f0f3b6b7e6e09813768b2996b3d76 SHA1 33bb5b254c3a772d9195c5128a2c569a9cbb8ccd SHA256 b653f2fa8dfdd0a54a6b8c576769719cf9014ca6b09f8e9d351721a51766d95d +DIST firefox-3.5rc1-source.tar.bz2 46596337 RMD160 1ef85ad5cb25d49c1f741ead7912a0e4d118ff63 SHA1 12ec8dacace216b3d95e9143cfae3ab92f70166e SHA256 94bda3c09924cbb92460b6e235634415d29b10e784acb5d9bc6ec509e69ed993 DIST xulrunner-1.9.0.10-patches-0.1.tar.bz2 7077 RMD160 73612f1b619fef5d02e8c8f8318afe192e435e42 SHA1 8a48e53951216c330d4908def93a5c0201f5a890 SHA256 bc0c0d26258bc17ffa5cd513089fe94395ff8f6c17023cd363fac30cdd675410 DIST xulrunner-1.9.0.10.tar.bz2 34167778 RMD160 96ca5c569bbee78924c6e9cb5fea660870a8c096 SHA1 926d9042557e2d767db91b1d183327713fb090d3 SHA256 fe4091f4de50278567b4e26effea66a998dd41f455077e1e37cff8b3417a8f34 EBUILD xulrunner-1.9.0.10.ebuild 4924 RMD160 812e4fb1216d76dd84c1041365001bb9291cb448 SHA1 1843a099e8dbf0475cc37ebd41c6e477165579db SHA256 d0fc674b97a2cf9d2a499ec5d7b915c570ca4e88873882c7cc4157500415d59e EBUILD xulrunner-1.9.1_beta4-r2.ebuild 6111 RMD160 0dda84ab292e70755146b1e02bad379e76a4b002 SHA1 27250eb105e481ef1cb43b9092f5d831d0251a9b SHA256 1bdd64b565f23465396669e688811f28cca971008cf9c496b5acb969c9ddf7ff +EBUILD xulrunner-1.9.1_rc1.ebuild 6207 RMD160 6e560518d1b5a9cace4a18908dd9fc84288cd2be SHA1 35c0023b744b2ba66977a5006ac657e7b9f2151f SHA256 2394e0af1429888ad1e48f46c77c3f7f42afc348eca51e6a15ae7c4689221622 MISC ChangeLog 20231 RMD160 53d013acdc632eee5a57c68cc91590a9d97d322b SHA1 50a8a72f61cdf952923a6c40d3ddbdafa10682fc SHA256 4dc8981ad9cda5b06ff6f5e7b826a01d32082c6a306879ee1e3923a8aa93a449 MISC metadata.xml 263 RMD160 9ed9d79d17d0a991e88c31ae6342996519ffef5b SHA1 0de183203298ce0f1c2ecc3fc8149842c4a0ec60 SHA256 64bfc93c4ab02ef2fe9b61b8157eb722d6cca5d552eecc18eaaf8e95980d2550 diff --git a/net-libs/xulrunner/xulrunner-1.9.1_rc1.ebuild b/net-libs/xulrunner/xulrunner-1.9.1_rc1.ebuild new file mode 100644 index 0000000..adb48e1 --- /dev/null +++ b/net-libs/xulrunner/xulrunner-1.9.1_rc1.ebuild @@ -0,0 +1,217 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-libs/xulrunner/xulrunner-1.9.0.1.ebuild,v 1.4 2008/07/30 10:42:58 armin76 Exp $ +EAPI="2" +WANT_AUTOCONF="2.1" + +inherit flag-o-matic toolchain-funcs eutils mozconfig-3 makeedit multilib java-pkg-opt-2 python autotools +PATCH="${P}-patches-0.1" +MY_PV="${PV/_beta/b}" # Handle betas +MY_PV="${PV/_/}" # Handle rc1, rc2 etc +MY_PV="${MY_PV/1.9.1/3.5}" +MAJ_PV="${PV/_*/}" + +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" +# mirror://gentoo/${PATCH}.tar.bz2" + +KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86" +SLOT="1.9" +LICENSE="|| ( MPL-1.1 GPL-2 LGPL-2.1 )" +IUSE="debug qt-experimental python" + +# nspr-4.8 due to BMO #499144 +RDEPEND="java? ( >=virtual/jre-1.4 ) + python? ( >=dev-lang/python-2.3 ) + qt-experimental? ( + x11-libs/qt-gui + x11-libs/qt-core ) + + >=sys-devel/binutils-2.16.1 + >=dev-libs/nss-3.12.3 + >=dev-libs/nspr-4.8 + media-libs/alsa-lib + >=dev-db/sqlite-3.6.7 + >=app-text/hunspell-1.2 + >=media-libs/lcms-1.17 + + x11-libs/cairo[X] + x11-libs/pango[X]" + +DEPEND="java? ( >=virtual/jdk-1.4 ) + ${RDEPEND} + dev-util/pkgconfig" + +S="${WORKDIR}/mozilla-${MAJ_PV}" + +# Needed by src_compile() and src_install(). +# Would do in pkg_setup but that loses the export attribute, they +# become pure shell variables. +export BUILD_OFFICIAL=1 +export MOZILLA_OFFICIAL=1 + +pkg_setup(){ + java-pkg-opt-2_pkg_setup +} + +src_prepare() { + # Apply our patches + EPATCH_SUFFIX="patch" \ + EPATCH_FORCE="yes" \ + epatch "${FILESDIR}/${PV}" + + epatch "${FILESDIR}"/${PN}-1.9.1-gcc4.4.patch + if use mips; then + epatch "${FILESDIR}"/${PN}-mips-n32.patch + epatch "${FILESDIR}"/${PN}-mips-bus-error.patch + fi + + # Same as in config/autoconf.mk.in + INSTALLDIR="/usr/$(get_libdir)/${PN}-${MAJ_PV}" + SDKDIR="/usr/$(get_libdir)/${PN}-devel-${MAJ_PV}/sdk" + # Gentoo install dirs + sed -e "s/@PV@/${MAJ_PV}/" -i "${S}/config/autoconf.mk.in" \ + || die "\${MAJ_PV} sed failed!" + + eautoreconf + + cd js/src + eautoreconf + + + # We need to re-patch this because autoreconf overwrites it +# epatch "${FILESDIR}"/patch/000_flex-configure-LANG.patch +} + +src_configure() { + #################################### + # + # mozconfig, CFLAGS and CXXFLAGS setup + # + #################################### + + mozconfig_init + mozconfig_config + + MEXTENSIONS="default" + if use python; then + MEXTENSIONS="${MEXTENSIONS},python/xpcom" + fi + + # It doesn't compile on alpha without this LDFLAGS + use alpha && append-ldflags "-Wl,--no-relax" + + 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 + # 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 + + # 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 '' --enable-system-sqlite + mozconfig_annotate '' --with-system-nspr + mozconfig_annotate '' --with-system-nss + mozconfig_annotate '' --enable-system-lcms + mozconfig_annotate '' --with-system-bz2 + + # IUSE qt-experimental + if use qt-experimental; then + ewarn "You are enabling the EXPERIMENTAL qt toolkit" + ewarn "Usage is at your own risk" + ewarn "Known to be broken. DO NOT file bugs." + mozconfig_annotate '' --disable-system-cairo + mozconfig_annotate 'qt-experimental' --enable-default-toolkit=cairo-qt + else + mozconfig_annotate 'gtk' --enable-default-toolkit=cairo-gtk2 + fi + + # Other ff-specific settings + mozconfig_annotate '' --enable-jsd + mozconfig_annotate '' --enable-xpctools + mozconfig_annotate '' --with-default-mozilla-five-home="${INSTALLDIR}" + + #disable java + if ! use java ; then + mozconfig_annotate '-java' --disable-javaxpcom + fi + + # 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-cxxflags -fno-stack-protector + fi + + + #################################### + # + # 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}"/toolkit/content/buildconfig.html +} + +src_install() { + emake DESTDIR="${D}" install || die "emake install failed" + + rm "${D}"/usr/bin/xulrunner + + dodir /usr/bin + dosym "${INSTALLDIR}/xulrunner" "${ROOT}/usr/bin/xulrunner-${MAJ_PV}" + + # Add vendor + echo "pref(\"general.useragent.vendor\",\"Gentoo\");" \ + >> "${D}/${INSTALLDIR}/defaults/pref/vendor.js" + + if use java ; then + java-pkg_regjar "${D}/${INSTALLDIR}/javaxpcom.jar" + java-pkg_regjar "${D}/${SDKDIR}/lib/MozillaGlue.jar" + java-pkg_regjar "${D}/${SDKDIR}/lib/MozillaInterfaces.jar" + fi +} + +pkg_postinst() { + if use python; then + python_need_rebuild + python_mod_optimize "${INSTALLDIR}/python" + fi +} + +pkg_postrm() { + if use python; then + python_mod_cleanup "${INSTALLDIR}/python" + fi +} |