From 9e51de5175f25958071c8c3a944ac1687d97ce54 Mon Sep 17 00:00:00 2001 From: Raúl Porcel Date: Tue, 17 Jun 2008 18:53:27 +0000 Subject: Version bump wrt #227853, remove old (Portage version: 2.1.4.4) --- net-libs/xulrunner/ChangeLog | 8 +- net-libs/xulrunner/xulrunner-1.9.ebuild | 156 ++++++++++++++++++++++++++++ net-libs/xulrunner/xulrunner-1.9_rc3.ebuild | 156 ---------------------------- 3 files changed, 163 insertions(+), 157 deletions(-) create mode 100644 net-libs/xulrunner/xulrunner-1.9.ebuild delete mode 100644 net-libs/xulrunner/xulrunner-1.9_rc3.ebuild (limited to 'net-libs/xulrunner') diff --git a/net-libs/xulrunner/ChangeLog b/net-libs/xulrunner/ChangeLog index 28f1f59ac23a..07f5a61bc374 100644 --- a/net-libs/xulrunner/ChangeLog +++ b/net-libs/xulrunner/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for net-libs/xulrunner # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-libs/xulrunner/ChangeLog,v 1.112 2008/06/12 15:18:54 armin76 Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-libs/xulrunner/ChangeLog,v 1.113 2008/06/17 18:53:27 armin76 Exp $ + +*xulrunner-1.9 (17 Jun 2008) + + 17 Jun 2008; Raúl Porcel -xulrunner-1.9_rc3.ebuild, + +xulrunner-1.9.ebuild: + Version bump, wrt #227853, remove old *xulrunner-1.9_rc3 (12 Jun 2008) diff --git a/net-libs/xulrunner/xulrunner-1.9.ebuild b/net-libs/xulrunner/xulrunner-1.9.ebuild new file mode 100644 index 000000000000..fb1f6904958e --- /dev/null +++ b/net-libs/xulrunner/xulrunner-1.9.ebuild @@ -0,0 +1,156 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-libs/xulrunner/xulrunner-1.9.ebuild,v 1.1 2008/06/17 18:53:27 armin76 Exp $ + +WANT_AUTOCONF="2.1" + +inherit flag-o-matic toolchain-funcs eutils mozconfig-3 makeedit multilib java-pkg-opt-2 python autotools +PATCH="${PN}-1.9_rc1-patches-0.1" + +DESCRIPTION="Mozilla runtime package that can be used to bootstrap XUL+XPCOM applications" +HOMEPAGE="http://developer.mozilla.org/en/docs/XULRunner" +SRC_URI="mirror://gentoo/${P}.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="" + +RDEPEND="java? ( >=virtual/jre-1.4 ) + >=sys-devel/binutils-2.16.1 + >=dev-libs/nss-3.12_rc4 + >=dev-libs/nspr-4.7.1 + >=app-text/hunspell-1.1.9 + >=media-libs/lcms-1.17 + >=dev-db/sqlite-3.5.6" + +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 ${A} + + # Apply our patches + cd "${S}" || die "cd failed" + EPATCH_SUFFIX="patch" \ + EPATCH_FORCE="yes" \ + epatch "${WORKDIR}"/patch + + eautoreconf || die "failed running eautoreconf" +} + +src_compile() { + declare MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}-1.9" + + #################################### + # + # mozconfig, CFLAGS and CXXFLAGS setup + # + #################################### + + mozconfig_init + mozconfig_config + + mozconfig_annotate '' --enable-extensions="${MEXTENSIONS}" + mozconfig_annotate '' --disable-mailnews + mozconfig_annotate 'broken' --disable-mochitest + mozconfig_annotate 'broken' --disable-crashreporter + mozconfig_annotate '' --enable-system-hunspell + mozconfig_annotate '' --enable-system-sqlite + 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 '' --enable-system-lcms + mozconfig_annotate '' --with-system-bz2 + # 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 --enable-places_bookmarks + + # Other ff-specific settings + mozconfig_annotate '' --enable-jsd + mozconfig_annotate '' --enable-xpctools + mozconfig_annotate '' --disable-libxul + 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 + + # -fstack-protector breaks us + if gcc-version ge 4 1; then + gcc-specs-ssp && append-flags -fno-stack-protector + else + gcc-specs-ssp && append-flags -fno-stack-protector-all + fi + filter-flags -fstack-protector -fstack-protector-all + + #################################### + # + # 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 + + # This removes extraneous CFLAGS from the Makefiles to reduce RAM + # requirements while compiling + edit_makefiles + + emake || die "emake failed" +} + +src_install() { + declare MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}-1.9" + + emake DESTDIR="${D}" install || die "emake install failed" + + rm "${D}"/usr/bin/xulrunner + + dodir /usr/bin + dosym ${MOZILLA_FIVE_HOME}/xulrunner /usr/bin/xulrunner-1.9 + + X_DATE=`date +%Y%m%d` + + # Add Gentoo package version to preferences - copied from debian rules + echo // Gentoo package version \ + > "${D}"${MOZILLA_FIVE_HOME}/defaults/pref/vendor.js + echo "pref(\"general.useragent.product\",\"Gecko\");" \ + >> "${D}"${MOZILLA_FIVE_HOME}/defaults/pref/vendor.js + echo "pref(\"general.useragent.productSub\",\"${X_DATE}\");" \ + >> "${D}"${MOZILLA_FIVE_HOME}/defaults/pref/vendor.js + echo "pref(\"general.useragent.productComment\",\"Gentoo\");" \ + >> "${D}"${MOZILLA_FIVE_HOME}/defaults/pref/vendor.js + + if use java ; then + java-pkg_dojar "${D}"${MOZILLA_FIVE_HOME}/javaxpcom.jar + rm -f "${D}"${MOZILLA_FIVE_HOME}/javaxpcom.jar + fi +} diff --git a/net-libs/xulrunner/xulrunner-1.9_rc3.ebuild b/net-libs/xulrunner/xulrunner-1.9_rc3.ebuild deleted file mode 100644 index 07983662fbdd..000000000000 --- a/net-libs/xulrunner/xulrunner-1.9_rc3.ebuild +++ /dev/null @@ -1,156 +0,0 @@ -# Copyright 1999-2008 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-libs/xulrunner/xulrunner-1.9_rc3.ebuild,v 1.1 2008/06/12 15:18:54 armin76 Exp $ - -WANT_AUTOCONF="2.1" - -inherit flag-o-matic toolchain-funcs eutils mozconfig-3 makeedit multilib java-pkg-opt-2 python autotools -PATCH="${PN}-1.9_rc1-patches-0.1" - -DESCRIPTION="Mozilla runtime package that can be used to bootstrap XUL+XPCOM applications" -HOMEPAGE="http://developer.mozilla.org/en/docs/XULRunner" -SRC_URI="mirror://gentoo/${P}.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="" - -RDEPEND="java? ( >=virtual/jre-1.4 ) - >=sys-devel/binutils-2.16.1 - >=dev-libs/nss-3.12_rc4 - >=dev-libs/nspr-4.7.1 - >=app-text/hunspell-1.1.9 - >=media-libs/lcms-1.17 - >=dev-db/sqlite-3.5.6" - -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 ${A} - - # Apply our patches - cd "${S}" || die "cd failed" - EPATCH_SUFFIX="patch" \ - EPATCH_FORCE="yes" \ - epatch "${WORKDIR}"/patch - - eautoreconf || die "failed running eautoreconf" -} - -src_compile() { - declare MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}-1.9" - - #################################### - # - # mozconfig, CFLAGS and CXXFLAGS setup - # - #################################### - - mozconfig_init - mozconfig_config - - mozconfig_annotate '' --enable-extensions="${MEXTENSIONS}" - mozconfig_annotate '' --disable-mailnews - mozconfig_annotate 'broken' --disable-mochitest - mozconfig_annotate 'broken' --disable-crashreporter - mozconfig_annotate '' --enable-system-hunspell - mozconfig_annotate '' --enable-system-sqlite - 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 '' --enable-system-lcms - mozconfig_annotate '' --with-system-bz2 - # 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 --enable-places_bookmarks - - # Other ff-specific settings - mozconfig_annotate '' --enable-jsd - mozconfig_annotate '' --enable-xpctools - mozconfig_annotate '' --disable-libxul - 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 - - # -fstack-protector breaks us - if gcc-version ge 4 1; then - gcc-specs-ssp && append-flags -fno-stack-protector - else - gcc-specs-ssp && append-flags -fno-stack-protector-all - fi - filter-flags -fstack-protector -fstack-protector-all - - #################################### - # - # 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 - - # This removes extraneous CFLAGS from the Makefiles to reduce RAM - # requirements while compiling - edit_makefiles - - emake || die "emake failed" -} - -src_install() { - declare MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}-1.9" - - emake DESTDIR="${D}" install || die "emake install failed" - - rm "${D}"/usr/bin/xulrunner - - dodir /usr/bin - dosym ${MOZILLA_FIVE_HOME}/xulrunner /usr/bin/xulrunner-1.9 - - X_DATE=`date +%Y%m%d` - - # Add Gentoo package version to preferences - copied from debian rules - echo // Gentoo package version \ - > "${D}"${MOZILLA_FIVE_HOME}/defaults/pref/vendor.js - echo "pref(\"general.useragent.product\",\"Gecko\");" \ - >> "${D}"${MOZILLA_FIVE_HOME}/defaults/pref/vendor.js - echo "pref(\"general.useragent.productSub\",\"${X_DATE}\");" \ - >> "${D}"${MOZILLA_FIVE_HOME}/defaults/pref/vendor.js - echo "pref(\"general.useragent.productComment\",\"Gentoo\");" \ - >> "${D}"${MOZILLA_FIVE_HOME}/defaults/pref/vendor.js - - if use java ; then - java-pkg_dojar "${D}"${MOZILLA_FIVE_HOME}/javaxpcom.jar - rm -f "${D}"${MOZILLA_FIVE_HOME}/javaxpcom.jar - fi -} -- cgit v1.2.3-65-gdbad