diff options
author | Raúl Porcel <armin76@gentoo.org> | 2008-08-04 16:27:51 +0000 |
---|---|---|
committer | Raúl Porcel <armin76@gentoo.org> | 2008-08-04 16:27:51 +0000 |
commit | ddf87ea535a53a0a7683e0eac95c8415e95e642e (patch) | |
tree | 95827eeebac72e3f44268c9b3dd29532922dd1e7 /net-libs | |
parent | old (diff) | |
download | historical-ddf87ea535a53a0a7683e0eac95c8415e95e642e.tar.gz historical-ddf87ea535a53a0a7683e0eac95c8415e95e642e.tar.bz2 historical-ddf87ea535a53a0a7683e0eac95c8415e95e642e.zip |
old
Package-Manager: portage-2.1.4.4
Diffstat (limited to 'net-libs')
-rw-r--r-- | net-libs/xulrunner-bin/xulrunner-bin-1.8.1.15.ebuild | 79 | ||||
-rw-r--r-- | net-libs/xulrunner/xulrunner-1.8.1.15.ebuild | 168 |
2 files changed, 0 insertions, 247 deletions
diff --git a/net-libs/xulrunner-bin/xulrunner-bin-1.8.1.15.ebuild b/net-libs/xulrunner-bin/xulrunner-bin-1.8.1.15.ebuild deleted file mode 100644 index b915097a60e2..000000000000 --- a/net-libs/xulrunner-bin/xulrunner-bin-1.8.1.15.ebuild +++ /dev/null @@ -1,79 +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-bin/xulrunner-bin-1.8.1.15.ebuild,v 1.3 2008/07/04 21:54:26 gentoofan23 Exp $ - -inherit eutils multilib mozilla-launcher - -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}.tbz2" -RESTRICT="strip" - -KEYWORDS="-* amd64 x86" -SLOT="0" -LICENSE="|| ( MPL-1.1 GPL-2 LGPL-2.1 )" -IUSE="" - -DEPEND="" -RDEPEND="x11-libs/libXrender - x11-libs/libXt - x11-libs/libXmu - x86? ( - >=x11-libs/gtk+-2.2 - ) - amd64? ( - app-emulation/emul-linux-x86-baselibs - app-emulation/emul-linux-x86-gtklibs - app-emulation/emul-linux-x86-compat - )" - -S="${WORKDIR}/usr/lib/xulrunner/" - -pkg_setup() { - # This is a binary x86 package => ABI=x86 - # Please keep this in future versions - # Danny van Dyk <kugelfang@gentoo.org> 2005/03/26 - has_multilib_profile && ABI="x86" -} - -src_install() { - declare MOZILLA_FIVE_HOME="/opt/xulrunner" - - # Install firefox in /opt - dodir ${MOZILLA_FIVE_HOME%/*} - mv "${S}" "${D}"${MOZILLA_FIVE_HOME} - - # Create /usr/bin/xulrunner-bin - install_mozilla_launcher_stub xulrunner-bin ${MOZILLA_FIVE_HOME} - - # revdep-rebuild entry - insinto /etc/revdep-rebuild - doins "${FILESDIR}"/10xulrunner-bin - - # install ldpath env.d - doenvd "${FILESDIR}"/71xulrunner-bin - - insinto /etc/gre.d - newins "${FILESDIR}"/${PN}.conf ${PV}-bin.conf - sed -i -e \ - "s|version|${PV}| - s|instpath|${MOZILLA_FIVE_HOME}|" \ - "${D}"/etc/gre.d/${PV}-bin.conf -} - -pkg_preinst() { - declare MOZILLA_FIVE_HOME="/opt/xulrunner" - - # Remove entire installed instance to prevent all kinds of - # problems... see bug 44772 for example - rm -rf "${ROOT}"${MOZILLA_FIVE_HOME} -} - -pkg_postinst() { - use amd64 && einfo "NB: You just installed a 32-bit xulrunner" - update_mozilla_launcher_symlinks -} - -pkg_postrm() { - update_mozilla_launcher_symlinks -} diff --git a/net-libs/xulrunner/xulrunner-1.8.1.15.ebuild b/net-libs/xulrunner/xulrunner-1.8.1.15.ebuild deleted file mode 100644 index a4b65a9907ae..000000000000 --- a/net-libs/xulrunner/xulrunner-1.8.1.15.ebuild +++ /dev/null @@ -1,168 +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.8.1.15.ebuild,v 1.7 2008/07/29 18:33:31 armin76 Exp $ - -WANT_AUTOCONF="2.1" - -inherit flag-o-matic toolchain-funcs eutils makeedit multilib autotools mozconfig-2 java-pkg-opt-2 -PATCH="${PN}-1.8.1.13-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}-source.tar.bz2 - mirror://gentoo/${PATCH}.tar.bz2" - -SLOT="1.8" -LICENSE="|| ( MPL-1.1 GPL-2 LGPL-2.1 )" -KEYWORDS="alpha amd64 ~arm hppa ia64 ppc ppc64 sparc x86 ~x86-fbsd" -IUSE="" - -RDEPEND=">=sys-libs/zlib-1.1.4 - >=sys-devel/binutils-2.16.1 - >=dev-libs/nss-3.11.5 - >=dev-libs/nspr-4.6.5-r1 - 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 - -pkg_setup(){ - if ! built_with_use x11-libs/cairo X; then - eerror "Cairo is not built with X useflag." - eerror "Please add 'X' to your USE flags, and re-emerge cairo." - die "Cairo needs X" - fi - - if ! built_with_use --missing true x11-libs/pango X; then - eerror "Pango is not built with X useflag." - eerror "Please add 'X' to your USE flags, and re-emerge pango." - die "Pango needs X" - fi - java-pkg-opt-2_pkg_setup -} - -src_unpack() { - unpack ${P}-source.tar.bz2 ${PATCH}.tar.bz2 - - # 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}" - - #################################### - # - # mozconfig, CFLAGS and CXXFLAGS setup - # - #################################### - - mozconfig_init - mozconfig_config - - mozconfig_annotate '' --enable-extensions="default,cookie,permissions,spellcheck" - 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 - - # -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}" - emake DESTDIR="${D}" install || die "emake install failed" - 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.vendor\",\"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 - - # 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 -} - -pkg_postinst() { - elog "Please remember to rebuild any packages that you have built" - elog "against xulrunner. Some packages might be broken by the upgrade; if this" - elog "is the case, please search at http://bugs.gentoo.org and open a new bug" - elog "if one does not exist." -} |