diff options
author | Stefan Schweizer <genstef@gentoo.org> | 2006-07-27 23:58:32 +0000 |
---|---|---|
committer | Stefan Schweizer <genstef@gentoo.org> | 2006-07-27 23:58:32 +0000 |
commit | 6c146519a30c6689415c3e8be7f1240f709090e7 (patch) | |
tree | 51e2048570cdcf69e6ce8057709446a9ce249618 /net-libs | |
parent | stable on amd64 (diff) | |
download | gentoo-2-6c146519a30c6689415c3e8be7f1240f709090e7.tar.gz gentoo-2-6c146519a30c6689415c3e8be7f1240f709090e7.tar.bz2 gentoo-2-6c146519a30c6689415c3e8be7f1240f709090e7.zip |
Version bump thanks to Gergan Penkov <gpp666_999@yahoo.de> and Walter Meinl in bug 142791
(Portage version: 2.1.1_pre3-r5)
Diffstat (limited to 'net-libs')
-rw-r--r-- | net-libs/xulrunner/ChangeLog | 9 | ||||
-rw-r--r-- | net-libs/xulrunner/files/digest-xulrunner-1.8.0.4 | 6 | ||||
-rw-r--r-- | net-libs/xulrunner/files/xulrunner.conf | 6 | ||||
-rw-r--r-- | net-libs/xulrunner/xulrunner-1.8.0.4.ebuild | 156 |
4 files changed, 176 insertions, 1 deletions
diff --git a/net-libs/xulrunner/ChangeLog b/net-libs/xulrunner/ChangeLog index fbdd19cb21b1..8b317d100e71 100644 --- a/net-libs/xulrunner/ChangeLog +++ b/net-libs/xulrunner/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for net-libs/xulrunner # Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-libs/xulrunner/ChangeLog,v 1.1 2006/06/02 01:56:01 anarchy Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-libs/xulrunner/ChangeLog,v 1.2 2006/07/27 23:58:32 genstef Exp $ + +*xulrunner-1.8.0.4 (27 Jul 2006) + + 27 Jul 2006; Stefan Schweizer <genstef@gentoo.org> +files/xulrunner.conf, + +xulrunner-1.8.0.4.ebuild: + Version bump thanks to Gergan Penkov <gpp666_999@yahoo.de> and Walter Meinl + in bug 142791 *xulrunner-1.8.0.1 (02 Jun 2006) diff --git a/net-libs/xulrunner/files/digest-xulrunner-1.8.0.4 b/net-libs/xulrunner/files/digest-xulrunner-1.8.0.4 new file mode 100644 index 000000000000..6992554d03ba --- /dev/null +++ b/net-libs/xulrunner/files/digest-xulrunner-1.8.0.4 @@ -0,0 +1,6 @@ +MD5 ca039de090e8ed299a72c04e015b9cf2 xulrunner-1.8.0.4-patches-0.8.tar.bz2 62419 +RMD160 6285a67d3d94038e90749833e1eb83b423efd1da xulrunner-1.8.0.4-patches-0.8.tar.bz2 62419 +SHA256 96ba130e3ba0315878adc43e12d9c326028b4f583382e9f2eb5ba5824ce0c02c xulrunner-1.8.0.4-patches-0.8.tar.bz2 62419 +MD5 4dc09831aa4e94fda5182a4897ed08e9 xulrunner-1.8.0.4-source.tar.bz2 33846136 +RMD160 7979de9b3bc85a6b44367283e343cddd12e70bdb xulrunner-1.8.0.4-source.tar.bz2 33846136 +SHA256 193825593ef37e29d82f8bcbff3119caf131390a0369709c1667b509f774ffa9 xulrunner-1.8.0.4-source.tar.bz2 33846136 diff --git a/net-libs/xulrunner/files/xulrunner.conf b/net-libs/xulrunner/files/xulrunner.conf new file mode 100644 index 000000000000..e622e0b7155f --- /dev/null +++ b/net-libs/xulrunner/files/xulrunner.conf @@ -0,0 +1,6 @@ +# Registration file generated by xulrunner. Do not edit. + +[version] +GRE_PATH=instpath +xulrunner=true +javaxpcom=1 diff --git a/net-libs/xulrunner/xulrunner-1.8.0.4.ebuild b/net-libs/xulrunner/xulrunner-1.8.0.4.ebuild new file mode 100644 index 000000000000..5a80a781ab95 --- /dev/null +++ b/net-libs/xulrunner/xulrunner-1.8.0.4.ebuild @@ -0,0 +1,156 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-libs/xulrunner/xulrunner-1.8.0.4.ebuild,v 1.1 2006/07/27 23:58:32 genstef Exp $ + +inherit flag-o-matic toolchain-funcs eutils makeedit multilib autotools mozconfig-2 java-pkg-opt-2 +PVER="0.8" + +DESCRIPTION="Mozilla runtime package that can be used to bootstrap XUL+XPCOM applications" +HOMEPAGE="http://developer.mozilla.org/en/docs/XULRunner" +SRC_URI="ftp://ftp.mozilla.org/pub/mozilla.org/${PN}/releases/${PV}/source/${P}-source.tar.bz2 + http://gentooexperimental.org/~genstef/dist/${P}-patches-${PVER}.tar.bz2" + +LICENSE="MPL-1.1 NPL-1.1" +SLOT="0" +KEYWORDS="-* ~amd64 ~x86" + +RDEPEND=">=sys-libs/zlib-1.1.4 + >=sys-devel/binutils-2.16.1 + >=dev-libs/nss-3.10 + >=dev-libs/nspr-4.6.1 + java? ( >=virtual/jre-1.4 )" + +DEPEND="java? ( >=virtual/jdk-1.4 ) + ${RDEPEND} + dev-util/pkgconfig" + +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=xulrunner +export BUILD_OFFICIAL=1 +export MOZILLA_OFFICIAL=1 + +src_unpack() { + unpack ${P}-source.tar.bz2 ${P}-patches-${PVER}.tar.bz2 + + # Apply our patches + cd ${S} || die "cd failed" + + # exclude the xpcomglue-shared.patch from debian for now + # until we figured out if we need also the versioning patch + EPATCH_EXCLUDE="030_pango-cairo-1.patch.bz2" + + EPATCH_FORCE="yes" epatch ${WORKDIR}/patch + + # Fix a compilation issue using the 32-bit userland with 64-bit kernel on + # PowerPC, because with that configuration, it detects a ppc64 system. + # -- hansmi, 2005-11-13 + if use ppc && [[ "${PROFILE_ARCH}" == ppc64 ]]; then + sed -i -e "s#OS_TEST=\`uname -m\`\$#OS_TEST=${ARCH}#" \ + ${S}/configure + sed -i -e "s#OS_TEST :=.*uname -m.*\$#OS_TEST:=${ARCH}#" \ + ${S}/security/coreconf/arch.mk + fi + + WANT_AUTOCONF="2.13" \ + eautoreconf || die "failed running eautoreconf" +} + +src_compile() { + declare MOZILLA_FIVE_HOME=/usr/$(get_libdir)/${PN} + + #################################### + # + # mozconfig, CFLAGS and CXXFLAGS setup + # + #################################### + + mozconfig_init + mozconfig_config + + mozconfig_annotate '' --enable-extensions="default,cookie,permissions" + mozconfig_annotate '' --enable-native-uconv + mozconfig_annotate '' --enable-image-encoder=all + mozconfig_annotate '' --enable-canvas + #mozconfig_annotate '' --enable-js-binary + mozconfig_annotate '' --enable-embedding-tests + mozconfig_annotate '' --with-system-nspr + mozconfig_annotate '' --with-system-nss + mozconfig_annotate '' --with-system-bz2 + mozconfig_annotate '' --enable-jsd + mozconfig_annotate '' --enable-xpctools + # Bug 60668: Galeon doesn't build without oji enabled, so enable it + # regardless of java setting. + mozconfig_annotate '' --enable-oji --enable-mathml + mozconfig_annotate '' --with-default-mozilla-five-home=${MOZILLA_FIVE_HOME} + + #disable java + if ! use java ; then + mozconfig_annotate '-java' --disable-javaxpcom + fi + + # 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 + # remove -fstack-protector because now it borks firefox + CFLAGS=${CFLAGS/-fstack-protector-all/} + CFLAGS=${CFLAGS/-fstack-protector/} + CXXFLAGS=${CXXFLAGS/-fstack-protector-all/} + CXXFLAGS=${CXXFLAGS/-fstack-protector/} + + append-flags -freorder-blocks -fno-reorder-functions + + # Export CPU_ARCH_TEST as it is not exported by default. + case $(tc-arch) in + amd64) [[ ${ABI} == "x86" ]] && CPU_ARCH_TEST="x86" || CPU_ARCH_TEST="x86_64" ;; + *) CPU_ARCH_TEST=$(tc-arch) ;; + esac + + export CPU_ARCH_TEST + + #################################### + # + # 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}/xpfe/global/buildconfig.html + + # This removes extraneous CFLAGS from the Makefiles to reduce RAM + # requirements while compiling + edit_makefiles + + emake || die +} + +src_install() { + declare MOZILLA_FIVE_HOME=/usr/$(get_libdir)/${PN} + einstall || die "failed running make install" + + if use java ; then + java-pkg_dojar ${D}${MOZILLA_FIVE_HOME}/javaxpcom.jar + rm -f ${D}${MOZILLA_FIVE_HOME}/javaxpcom.jar + fi + + # xulrunner registration, the gentoo way + insinto /etc/gre.d + newins ${FILESDIR}/${PN}.conf ${PV}.conf + sed -i -e \ + "s|version|${PV}| + s|instpath|${MOZILLA_FIVE_HOME}|" \ + ${D}/etc/gre.d/${PV}.conf +} |