summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Bo Ørsted Andresen <zlin@exherbo.org> 2010-04-19 13:06:27 +0000
committerAvatar Bo Ørsted Andresen <zlin@exherbo.org> 2010-04-19 13:06:58 +0000
commit6be3c0f1f9ea871066dd3bb625113714ee0290c7 (patch)
treebccff18065c23a26b84edf3de151b138d35c15e9
parenta0ece846591347cec8c0f5fa1c2d6379071003f3 (diff)
downloadmozilla-6be3c0f1f9ea871066dd3bb625113714ee0290c7.tar.gz
mozilla-6be3c0f1f9ea871066dd3bb625113714ee0290c7.tar.xz
Moved to ::desktop.
-rw-r--r--exlibs/mozilla.exlib128
-rw-r--r--metadata/repository_mask.conf3
-rw-r--r--packages/dev-libs/nspr/files/nspr-4.7.3-pkg-config.patch64
-rw-r--r--packages/dev-libs/nspr/nspr-4.7.5.exheres-08
-rw-r--r--packages/dev-libs/nspr/nspr-4.8.4.exheres-08
-rw-r--r--packages/dev-libs/nspr/nspr.exlib71
-rw-r--r--packages/dev-libs/nss/files/nss-config50
-rw-r--r--packages/dev-libs/nss/files/nss.pc.in12
-rw-r--r--packages/dev-libs/nss/nss-3.12.6.exheres-096
-rw-r--r--packages/dev-libs/xulrunner/xulrunner-1.9.1.7.exheres-010
-rw-r--r--packages/dev-libs/xulrunner/xulrunner-1.9.2.3.exheres-018
-rw-r--r--packages/dev-libs/xulrunner/xulrunner.exlib90
-rw-r--r--packages/mail-client/thunderbird/files/thunderbird-nsAppRunner_empty_elif.patch15
-rw-r--r--packages/mail-client/thunderbird/files/thunderbird.desktop10
-rw-r--r--packages/mail-client/thunderbird/thunderbird-2.0.0.23-r2.exheres-0110
-rw-r--r--packages/mail-client/thunderbird/thunderbird-3.0.3.exheres-0147
-rw-r--r--packages/net-www/firefox/files/firefox.desktop94
-rw-r--r--packages/net-www/firefox/files/mozconfig-3.0.112
-rw-r--r--packages/net-www/firefox/firefox-3.5.7.exheres-012
-rw-r--r--packages/net-www/firefox/firefox-3.6.3.exheres-015
-rw-r--r--packages/net-www/firefox/firefox.exlib104
21 files changed, 0 insertions, 1077 deletions
diff --git a/exlibs/mozilla.exlib b/exlibs/mozilla.exlib
deleted file mode 100644
index 2055d21..0000000
--- a/exlibs/mozilla.exlib
+++ /dev/null
@@ -1,128 +0,0 @@
-# Copyright 2008 Bernd Steinhauser <berniyh@exherbo.org>
-# Distributed under the terms of the GNU General Public License v2
-
-require flag-o-matic multilib
-
-export_exlib_phases src_unpack src_prepare src_configure
-
-# Mozilla checkout project
-myexparam co_project
-
-# Provide "debug" option and common implementation
-myexparam -b provide_debug=true
-
-# nspr and nss versions. Values should be standard exheres version specs
-# enclosed in double quotes (e.g. "[>=4.8]", "[=3.12.3]"). If unspecified, the
-# latest available versions will be used.
-myexparam supported_nspr=
-myexparam supported_nss=
-
-exparam -v MOZ_CO_PROJECT co_project
-exparam -v supported_nspr supported_nspr
-exparam -v supported_nss supported_nss
-
-exparam -b provide_debug && MYOPTIONS="debug"
-
-DEPENDENCIES="
- build+run:
- dev-libs/nspr${supported_nspr}
- dev-libs/nss${supported_nss}
-"
-
-WORK="${WORKBASE}"/build/${MOZ_CO_PROJECT}
-
-export BUILD_OFFICIAL=1
-export MOZILLA_OFFICIAL=1
-
-mozilla_src_unpack() {
- default
- edo mkdir -p "${WORK}"
-}
-
-mozilla_src_prepare() {
- default
-
- edo sed \
- -e "/^installdir/ c installdir = /usr/$(get_libdir)/${PN}" \
- -e "/^includedir/ c includedir = /usr/include/${PN}" \
- -e "/^idldir/ c idldir = /usr/share/idl/${PN}" \
- -e "/^sdkdir/ c sdkdir = /usr/$(get_libdir)/${PN}-devel" \
- -i "${ECONF_SOURCE}"/config/autoconf.mk.in
-
- # The Firefox 3.6.2 build introduced broken makefiles that have yet to be
- # fixed. Affected makefiles attempt to call the "hg parent" command;
- # however, there is no such command. They meant "hg parents", instead.
- # Of course, they shouldn't be calling "hg" at all as the tarball does not
- # ship a working ".hg/" repository.
- #
- # This fix removes all references to "hg" from affected makefiles, and
- # should probably be submitted as an upstream patch.
- for BROKEN_MAKEFILE in \
- "${ECONF_SOURCE}/toolkit/mozapps/installer/package-name.mk" \
- "${ECONF_SOURCE}/browser/app/Makefile.in" \
- "${ECONF_SOURCE}/browser/locales/Makefile.in" \
- "${ECONF_SOURCE}/xpcom/analysis/Makefile.in" \
- ; do
- edo sed -e 's:$(shell hg .*)::' -i "${BROKEN_MAKEFILE}"
- done
-}
-
-mozilla_src_configure() {
- illegal_in_global_scope
-
- export PKG_SKIP_STRIP=1
- export MOZ_CO_PROJECT
- export MOZ_OBJDIR=@TOPSRCDIR@/../build
-
- # Workaround for gcc hidden symbol errors affecting Mozilla products
- # ("ld: final link failed: Nonrepresentable section on output"). See
- # Mozilla bug #293438 and also:
- # http://benjamin.smedbergs.us/blog/2005-10-27/gcc-40-workaround/
- export ac_cv_visibility_pragma=no
-
- local x param_optimize
-
- # Override the default optimization levels of Mozilla projects with the
- # value specified by -O from the user's CFLAGS/CXXFLAGS (if -O isn't given
- # gcc defaults to '-O0'). Optimization must be disabled when the 'debug'
- # option is set.
- if exparam -b provide_debug && option debug ; then
- param_optimize="--disable-optimize"
- else
- for x in ${CFLAGS}; do
- case ${x} in
- -O|-O1) param_optimize="--enable-optimize=-O1" ;;
- -O2|-O3|-Os) param_optimize="--enable-optimize=${x}" ;;
- esac
- done
- [[ -z ${param_optimize} ]] && param_optimize="--enable-optimize=-O0"
- fi
-
- # Now filter -O from CFLAGS/CXXFLAGS to avoid a duplicate in the resulting
- # compile string.
- filter-flags '-O*'
-
- local param_debug
- exparam -b provide_debug && param_debug="
- $(option_enable debug)
- $(option_enable debug tests)
- "
-
- econf \
- "${MOZILLA_SRC_CONFIGURE_PARAMS[@]}" \
- $(for s in "${MOZILLA_SRC_CONFIGURE_OPTION_ENABLES[@]}" ; do
- option_enable ${s}
- done) \
- $(for s in "${MOZILLA_SRC_CONFIGURE_OPTION_WITHS[@]}" ; do
- option_with ${s}
- done) \
- --disable-strip \
- --enable-application=${MOZ_CO_PROJECT} \
- ${param_debug} \
- ${param_optimize} \
- --with-default-mozilla-five-home=/usr/$(get_libdir)/${PN} \
- --with-distribution-id=org.exherbo \
- --with-system-nspr \
- --with-system-nss
-}
-
diff --git a/metadata/repository_mask.conf b/metadata/repository_mask.conf
deleted file mode 100644
index a9ffe36..0000000
--- a/metadata/repository_mask.conf
+++ /dev/null
@@ -1,3 +0,0 @@
-# Kim Højgaard-Hansen <kimrhh@exherbo.org> (14 Feb 2010)
-# Crashes often and many larger bugs
-mail-client/thunderbird[>=3.0.1]
diff --git a/packages/dev-libs/nspr/files/nspr-4.7.3-pkg-config.patch b/packages/dev-libs/nspr/files/nspr-4.7.3-pkg-config.patch
deleted file mode 100644
index 87ad1a9..0000000
--- a/packages/dev-libs/nspr/files/nspr-4.7.3-pkg-config.patch
+++ /dev/null
@@ -1,64 +0,0 @@
-From 66fad807cc64edb31c11c43e0e0a55380846773b Mon Sep 17 00:00:00 2001
-From: Ingmar Vanhassel <ingmar@exherbo.org>
-Date: Wed, 8 Oct 2008 23:11:17 +0200
-Subject: [PATCH] Install a pkgconfig file, xulrunner among others needs this.
-
-Source: Based on 'nspr-4.6.1-config.patch' from Gentoo by Jory A. Pratt <anarchy@gentoo.org>
-Upstream: Unknown
----
- mozilla/nsprpub/config/Makefile.in | 9 ++++++++-
- mozilla/nsprpub/config/nspr.pc.in | 10 ++++++++++
- mozilla/nsprpub/configure.in | 1 +
- 3 files changed, 19 insertions(+), 1 deletions(-)
- create mode 100644 mozilla/nsprpub/config/nspr.pc.in
-
-diff --git a/mozilla/nsprpub/config/Makefile.in b/mozilla/nsprpub/config/Makefile.in
-index cbed0d6..d39fd06 100644
---- a/mozilla/nsprpub/config/Makefile.in
-+++ b/mozilla/nsprpub/config/Makefile.in
-@@ -155,6 +155,13 @@ else
- $(CC) $(XCFLAGS) $< $(LDFLAGS) $(XLDOPTS) $(OUTOPTION)$@
- endif
-
--install:: nspr.m4
-+install_nspr.m4:: nspr.m4
- $(NSINSTALL) -D $(DESTDIR)$(datadir)/aclocal
- $(NSINSTALL) -t -m 0644 $< $(DESTDIR)$(datadir)/aclocal
-+
-+install_nspr.pc:: nspr.pc
-+ $(NSINSTALL) -D $(DESTDIR)$(libdir)/pkgconfig
-+ $(NSINSTALL) -t -m 0644 $< $(DESTDIR)$(libdir)/pkgconfig
-+
-+install:: install_nspr.m4 install_nspr.pc
-+
-diff --git a/mozilla/nsprpub/config/nspr.pc.in b/mozilla/nsprpub/config/nspr.pc.in
-new file mode 100644
-index 0000000..b98e1b2
---- /dev/null
-+++ b/mozilla/nsprpub/config/nspr.pc.in
-@@ -0,0 +1,10 @@
-+prefix=@prefix@
-+exec_prefix=@exec_prefix@
-+libdir=@libdir@
-+includedir=@includedir@
-+
-+Name: NSPR
-+Description: The Netscape Portable Runtime
-+Version: @MOD_MAJOR_VERSION@.@MOD_MINOR_VERSION@.@MOD_PATCH_VERSION@
-+Libs: -L${libdir} -lplds4 -lplc4 -lnspr4 @OS_LIBS@
-+Cflags: -I${includedir}
-diff --git a/mozilla/nsprpub/configure.in b/mozilla/nsprpub/configure.in
-index 8743c9f..c53c8be 100644
---- a/mozilla/nsprpub/configure.in
-+++ b/mozilla/nsprpub/configure.in
-@@ -2857,6 +2857,7 @@ config/autoconf.mk
- config/nsprincl.mk
- config/nsprincl.sh
- config/nspr-config
-+config/nspr.pc
- lib/Makefile
- lib/ds/Makefile
- lib/libc/Makefile
---
-1.6.0.2
-
diff --git a/packages/dev-libs/nspr/nspr-4.7.5.exheres-0 b/packages/dev-libs/nspr/nspr-4.7.5.exheres-0
deleted file mode 100644
index a8d96e1..0000000
--- a/packages/dev-libs/nspr/nspr-4.7.5.exheres-0
+++ /dev/null
@@ -1,8 +0,0 @@
-# Copyright 2008 Ingmar Vanhassel <ingmar@exherbo.org>
-# Distributed under the terms of the GNU General Public License v2
-
-require nspr
-
-PLATFORMS="~amd64 ~ppc64 ~x86"
-
-DEFAULT_SRC_PREPARE_PATCHES=( -p3 "${FILES}/${PN}-4.7.3-pkg-config.patch" )
diff --git a/packages/dev-libs/nspr/nspr-4.8.4.exheres-0 b/packages/dev-libs/nspr/nspr-4.8.4.exheres-0
deleted file mode 100644
index a8d96e1..0000000
--- a/packages/dev-libs/nspr/nspr-4.8.4.exheres-0
+++ /dev/null
@@ -1,8 +0,0 @@
-# Copyright 2008 Ingmar Vanhassel <ingmar@exherbo.org>
-# Distributed under the terms of the GNU General Public License v2
-
-require nspr
-
-PLATFORMS="~amd64 ~ppc64 ~x86"
-
-DEFAULT_SRC_PREPARE_PATCHES=( -p3 "${FILES}/${PN}-4.7.3-pkg-config.patch" )
diff --git a/packages/dev-libs/nspr/nspr.exlib b/packages/dev-libs/nspr/nspr.exlib
deleted file mode 100644
index eab9d22..0000000
--- a/packages/dev-libs/nspr/nspr.exlib
+++ /dev/null
@@ -1,71 +0,0 @@
-# Copyright 2008, 2009 Ingmar Vanhassel <ingmar@exherbo.org>
-# Distributed under the terms of the GNU General Public License v2
-
-require autotools [ supported_autoconf=[ 2.1 ] supported_automake=[ none ] ]
-
-export_exlib_phases src_unpack src_prepare src_configure src_test src_install
-
-SUMMARY="Netscape Portable Runtime"
-DESCRIPTION="
-Netscape Portable Runtime (NSPR) provides a platform-neutral API for system level and libc like functions.
-The API is used in the Mozilla clients and many of Red Hat's, Sun's, and other software offerings.
-"
-HOMEPAGE="http://www.mozilla.org/projects/nspr/"
-DOWNLOADS="ftp://ftp.mozilla.org/pub/mozilla.org/${PN}/releases/v${PV}/src/${PNV}.tar.gz"
-
-UPSTREAM_RELEASE_NOTES="${HOMEPAGE}release-notes/${PN}${PV//.}.html"
-
-LICENCES="|| ( MPL-1.1 GPL-2 LGPL-2.1 )"
-SLOT="0"
-MYOPTIONS="debug ipv6 platform: amd64 ppc64"
-
-DEPENDENCIES="
- build+run:
- dev-db/sqlite:3"
-
-ECONF_SOURCE="${WORKBASE}/${PNV}/mozilla/nsprpub/"
-WORK="${WORKBASE}/${PNV}/build"
-
-DEFAULT_SRC_COMPILE_PARAMS=( CC="${CC}" CXX="${CXX}" )
-
-src_unpack() {
- default
- mkdir -p "${WORK}" || die "creating ${WORK} failed"
-}
-
-src_prepare() {
- cd "${ECONF_SOURCE}" || die "Couldn't enter ${ECONF_SOURCE}"
- default
- eautoconf
-}
-
-src_configure() {
- local myconf
-
- # Respect LDFLAGS
- export DSO_LDOPTS="${LDFLAGS}"
-
- if option platform:amd64 || option platform:ppc64; then
- myconf="--disable-32bit --enable-64bit"
- else
- myconf="--enable-32bit --disable-64bit"
- fi
-
- econf \
- --hates=docdir \
- --enable-optimize="${CFLAGS}" \
- --enable-system-sqlite \
- $(option_enable debug) \
- $(option_enable ipv6) \
- ${myconf}
-}
-
-src_test() {
- perl "${ECONF_SOURCE}/pr/tests/runtests.pl" || die "Test failures encountered"
-}
-
-src_install() {
- default
- rm "${IMAGE}"/usr/bin/{compile-et.pl,prerr.properties} || die "Failed to remove stray /usr/bin things"
-}
-
diff --git a/packages/dev-libs/nss/files/nss-config b/packages/dev-libs/nss/files/nss-config
deleted file mode 100644
index 89aadd3..0000000
--- a/packages/dev-libs/nss/files/nss-config
+++ /dev/null
@@ -1,50 +0,0 @@
-#!/bin/sh
-
-nss_pc() {
- pkg-config $@ nss
-}
-
-nss_pc_variable() {
- nss_pc --variable=$1
-}
-
-usage()
-{
- cat <<EOF
-Usage: nss-config [OPTIONS]
-Options:
- [--prefix]
- [--exec-prefix]
- [--includedir]
- [--libdir]
- [--version]
- [--libs]
- [--cflags]
-EOF
- exit $1
-}
-
-if test $# -eq 0; then
- usage 1 1>&2
-fi
-
-while test $# -gt 0; do
- case "$1" in
- -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
- *) optarg= ;;
- esac
-
- case $1 in
- --prefix) nss_pc_variable prefix ;;
- --exec-prefix) nss_pc_variable exec_prefix ;;
- --includedir) nss_pc_variable includedir ;;
- --libdir) nss_pc_variable libdir ;;
- --version) nss_pc --modversion ;;
- --cflags) nss_pc --cflags ;;
- --libs) nss_pc --libs ;;
- *) usage 1 1>&2 ;;
- esac
-
- shift
-done
-
diff --git a/packages/dev-libs/nss/files/nss.pc.in b/packages/dev-libs/nss/files/nss.pc.in
deleted file mode 100644
index 9bbef67..0000000
--- a/packages/dev-libs/nss/files/nss.pc.in
+++ /dev/null
@@ -1,12 +0,0 @@
-prefix=/usr
-exec_prefix=${prefix}/bin
-libdir=${prefix}/@LIBDIR@/nss
-includedir=${prefix}/include/nss
-majorversion=@MAJOR_VERSION@
-
-Name: NSS
-Description: Network Security Services
-Version: @VERSION@
-Requires: nspr >= 4.7.1
-Libs: -Wl,-R${libdir} -L${libdir} -lssl${majorversion} -lsmime${majorversion} -lnss${majorversion} -lnssutil${majorversion} -lsoftokn${majorversion}
-Cflags: -I${includedir}
diff --git a/packages/dev-libs/nss/nss-3.12.6.exheres-0 b/packages/dev-libs/nss/nss-3.12.6.exheres-0
deleted file mode 100644
index 371df05..0000000
--- a/packages/dev-libs/nss/nss-3.12.6.exheres-0
+++ /dev/null
@@ -1,96 +0,0 @@
-# Copyright 2008 Ingmar Vanhassel <ingmar@exherbo.org>
-# Copyright 2009 Bo Ørsted Andresen <zlin@exherbo.org>
-# Distributed under the terms of the GNU General Public License v2
-# Based in part upon 'nss-3.12.ebuild' from Gentoo, which is:
-# Copyright 1999-2008 Gentoo Foundation.
-
-require multilib
-
-SUMMARY="Mozilla's Network Security Services library that implements PKI support"
-DESCRIPTION="
-Network Security Services (NSS) is a set of libraries designed to support cross-platform development
-of security-enabled client and server applications.
-Applications built with NSS can support SSL v2 and v3, TLS, PKCS #5, PKCS #7, PKCS #11, PKCS #12,
-S/MIME, X.509 v3 certificates, and other security standards.
-"
-HOMEPAGE="http://www.mozilla.org/projects/security/pki/nss/"
-DOWNLOADS="ftp://ftp.mozilla.org/pub/mozilla.org/security/${PN}/releases/NSS_${PV//./_}_RTM/src/${PNV}.tar.gz"
-UPSTREAM_RELEASE_NOTES="${HOMEPAGE}${PNV}/${PNV}-release-notes.html"
-
-LICENCES="|| ( MPL-1.1 GPL-2 LGPL-2.1 )"
-SLOT="0"
-PLATFORMS="~amd64 ~ppc64 ~x86"
-MYOPTIONS="debug platform: amd64 ppc64"
-# All tests are slow, so run only src_test_expensive
-RESTRICT="test"
-
-DEPENDENCIES="
- build+run:
- dev-db/sqlite:3
- dev-libs/nspr[>=4.7.4]
-"
-
-WORK="${WORKBASE}/${PNV}/mozilla/security/nss"
-
-src_configure() {
- # Respect LDFLAGS
- export DSO_LDOPTS="${LDFLAGS}"
-
- # Respect user AR
- edo sed -e "/^AR[ \t]*= ar cr/s:ar:${AR}:" -i ../coreconf/UNIX.mk
-
- option platform:amd64 || option platform:ppc64 && export USE_64=1
-}
-
-src_compile() {
- emake -j1 \
- CC="${CC}" \
- CCC="${CXX}" \
- RANLIB="${RANLIB}" \
- NSDISTMODE=copy \
- NSPR_INCLUDE_DIR=/usr/include/nspr \
- NSS_ENABLE_ECC=1 \
- NSS_USE_SYSTEM_SQLITE=1 \
- OPTIMIZER="${CFLAGS}" \
- USE_SYSTEM_ZLIB=1 \
- ZLIB_LIBS=-lz \
- $(option !debug && echo BUILDOPT=1) \
- build_coreconf build_dbm all
-}
-
-src_test_expensive() {
- edo cd tests
- edo ./all.sh
-}
-
-src_install() {
- local v
- for v in MAJOR MINOR PATCH; do
- local ${v}=$(sed -n "s/^#define[[:space:]]*NSS_V${v}[[:space:]]*//p" lib/nss/nss.h)
- done
-
- edo sed -e "s|@LIBDIR@|$(get_libdir)|" \
- -e "s|@MAJOR_VERSION@|${MAJOR}|" \
- -e "s|@VERSION@|${MAJOR}.${MINOR}.${PATCH}|" \
- "${FILES}"/nss.pc.in > "${WORK}"/nss.pc
-
- insinto /usr/lib/pkgconfig
- doins "${WORK}"/nss.pc
-
- dobin "${FILES}"/nss-config
-
- hereenvd 40nss <<EOF
-LDPATH="/usr/$(get_libdir)/nss"
-EOF
-
- edo cd ../../dist
-
- insinto /usr/$(get_libdir)/nss
- doins *.OBJ/lib/*.{chk,a}
- exeinto /usr/$(get_libdir)/nss
- doexe *.OBJ/lib/*.so
-
- insinto /usr/include/nss
- doins public/nss/*
-}
-
diff --git a/packages/dev-libs/xulrunner/xulrunner-1.9.1.7.exheres-0 b/packages/dev-libs/xulrunner/xulrunner-1.9.1.7.exheres-0
deleted file mode 100644
index f0156a5..0000000
--- a/packages/dev-libs/xulrunner/xulrunner-1.9.1.7.exheres-0
+++ /dev/null
@@ -1,10 +0,0 @@
-# Copyright 2008 Ingmar Vanhassel <ingmar@exherbo.org>
-# Distributed under the terms of the GNU General Public License v2
-
-require xulrunner
-
-SLOT="0"
-PLATFORMS="~amd64 ~ppc64 ~x86"
-#upstream zigzagged to .source instead of -source
-DOWNLOADS="ftp://ftp.mozilla.org/pub/mozilla.org/firefox/releases/${FIREFOX_PV}/source/firefox-${FIREFOX_PV}.source.tar.bz2"
-
diff --git a/packages/dev-libs/xulrunner/xulrunner-1.9.2.3.exheres-0 b/packages/dev-libs/xulrunner/xulrunner-1.9.2.3.exheres-0
deleted file mode 100644
index 940552e..0000000
--- a/packages/dev-libs/xulrunner/xulrunner-1.9.2.3.exheres-0
+++ /dev/null
@@ -1,18 +0,0 @@
-# Copyright 2008 Ingmar Vanhassel <ingmar@exherbo.org>
-# Copyright 2009 Xavier Barrachina <xabarci@ega.upv.es>
-# Distributed under the terms of the GNU General Public License v2
-
-require xulrunner
-
-SLOT="0"
-PLATFORMS="~amd64 ~ppc64 ~x86"
-
-DEPENDENCIES="
- build+run:
- x11-libs/libnotify[>=0.4]
-"
-
-MOZILLA_SRC_CONFIGURE_PARAMS+=(
- --disable-necko-wifi
-)
-
diff --git a/packages/dev-libs/xulrunner/xulrunner.exlib b/packages/dev-libs/xulrunner/xulrunner.exlib
deleted file mode 100644
index 7422da3..0000000
--- a/packages/dev-libs/xulrunner/xulrunner.exlib
+++ /dev/null
@@ -1,90 +0,0 @@
-# Copyright 2008, 2009 Ingmar Vanhassel <ingmar@exherbo.org>
-# Distributed under the terms of the GNU General Public License v2
-
-MY_PV="${MY_PV:-${PV/_beta/b}}"
-MY_PV="${MY_PV/_rc/rc}"
-if ever at_least '1.9.2_rc' ; then
- FIREFOX_PV="${MY_PV/#1.9.2/3.6}"
- NSPR_VER="[>=4.8]"
- NSS_VER="[>=3.12.3]"
-else
- FIREFOX_PV="${MY_PV/#1.9.1/3.5}"
- NSPR_VER="[>=4.8]"
- NSS_VER="[>=3.12.3]"
-fi
-
-require multilib mozilla [ co_project=xulrunner supported_nspr="${NSPR_VER}" supported_nss="${NSS_VER}" ]
-
-SUMMARY="Mozilla runtime for XUL+XPCOM applications"
-DESCRIPTION="
-XULRunner is a Mozilla runtime package that can be used to bootstrap XUL+XPCOM
-applications that are as rich as Firefox and Thunderbird. It will provide
-mechanisms for installing, upgrading, and uninstalling these applications.
-XULRunner will also provide libxul, a solution which allows the embedding of
-Mozilla technologies in other projects and products.
-"
-HOMEPAGE="http://developer.mozilla.org/en/docs/XULRunner"
-DOWNLOADS="ftp://ftp.mozilla.org/pub/mozilla.org/firefox/releases/${FIREFOX_PV}/source/firefox-${FIREFOX_PV}.source.tar.bz2"
-
-LICENCES="|| ( MPL-1.1 GPL-2 LGPL-2.1 )"
-MYOPTIONS="dbus ogg wav"
-
-DEPENDENCIES="
- build:
- dev-util/pkg-config
- build+run:
- app-arch/zip
- dev-db/sqlite[>=3.5.9]
- dev-lang/python:*
- dev-libs/glib:2
- dev-libs/libIDL[>=0.6.3]
- media-libs/jpeg
- media-libs/lcms[>=1.17]
- x11-libs/cairo[>=1.6.0][X]
- x11-libs/gtk+:2[>=2.10.0]
- x11-libs/pango[>=1.10.0][X]
- dbus? ( dev-libs/dbus-glib )
- ogg? ( sys-sound/alsa-lib )
- wav? ( sys-sound/alsa-lib )
-"
-# app-spell/hunspell
-
-ECONF_SOURCE="${WORKBASE}/mozilla-$(ever range 1-3 ${PV})"
-
-src_prepare() {
- mozilla_src_prepare
-
- cd "${ECONF_SOURCE}"
-}
-
-# FIXME:
-# /var/tmp/paludis/build/dev-libs-xulrunner-1.9.0.3/work/mozilla/extensions/spellcheck/hunspell/src/mozHunspell.cpp:157:
-# undefined reference to `Hunspell::Hunspell(char const*, char const*)'
-# --enable-system-hunspell
-MOZILLA_SRC_CONFIGURE_PARAMS=(
- --disable-crashreporter
- --disable-gnomevfs
- --disable-javaxpcom
- --enable-crypto
- --enable-svg
- --enable-system-cairo
- --enable-system-lcms
- --hates=docdir
- --with-system-bz2
- --with-system-jpeg
- --with-system-sqlite
- --with-system-zlib
-)
-MOZILLA_SRC_CONFIGURE_OPTION_ENABLES=(
- dbus
- ogg
- "wav wave"
-)
-
-src_install() {
- default
-
- # might not exist, might not be empty
- rmdir ${IMAGE}/usr/include/xulrunner/nss 2>/dev/null
-}
-
diff --git a/packages/mail-client/thunderbird/files/thunderbird-nsAppRunner_empty_elif.patch b/packages/mail-client/thunderbird/files/thunderbird-nsAppRunner_empty_elif.patch
deleted file mode 100644
index 58be1ce..0000000
--- a/packages/mail-client/thunderbird/files/thunderbird-nsAppRunner_empty_elif.patch
+++ /dev/null
@@ -1,15 +0,0 @@
-Upstream: Unknown
-Source: Daniel Mierswa <impulze@impulze.org>
-Reason: GCC errors out since #elif is empty
-
---- ./toolkit/xre/nsAppRunner.cpp.orig 2009-06-10 05:02:45.000000000 +0200
-+++ ./toolkit/xre/nsAppRunner.cpp 2009-06-10 05:02:50.000000000 +0200
-@@ -1370,7 +1370,7 @@
- if (NS_FAILED(rv))
- return rv;
-
--#elif
-+#else
- #error Oops, you need platform-specific code here
- #endif
-
diff --git a/packages/mail-client/thunderbird/files/thunderbird.desktop b/packages/mail-client/thunderbird/files/thunderbird.desktop
deleted file mode 100644
index c544e0e..0000000
--- a/packages/mail-client/thunderbird/files/thunderbird.desktop
+++ /dev/null
@@ -1,10 +0,0 @@
-[Desktop Entry]
-Version=1.0
-Type=Application
-Name=Thunderbird
-Comment=Read and compose email and newsgroup messages
-GenericName=Mail & News Client
-Exec=thunderbird
-Icon=thunderbird-icon
-Terminal=false
-Categories=Network;Email;News;
diff --git a/packages/mail-client/thunderbird/thunderbird-2.0.0.23-r2.exheres-0 b/packages/mail-client/thunderbird/thunderbird-2.0.0.23-r2.exheres-0
deleted file mode 100644
index c15ba28..0000000
--- a/packages/mail-client/thunderbird/thunderbird-2.0.0.23-r2.exheres-0
+++ /dev/null
@@ -1,110 +0,0 @@
-# Copyright 2008 Bernd Steinhauser <berniyh@exherbo.org>
-# Distributed under the terms of the GNU General Public License v2
-
-# Exclude debug option from Thunderbird until --enable-debug is fixed.
-# See Gentoo bug #270871.
-require freedesktop-desktop mozilla [ co_project=mail provide_debug=false ]
-
-SUMMARY="Mozilla's standalone mail and news client"
-DESCRIPTION=""
-HOMEPAGE="http://www.mozillamessaging.com/en-US/thunderbird/"
-DOWNLOADS="ftp://ftp.mozilla.org/pub/${PN}/releases/${PV}/source/${PNV}-source.tar.bz2"
-
-LICENCES="MPL-1.1"
-SLOT="0"
-PLATFORMS="~amd64 ~x86"
-MYOPTIONS="
- bindist [[ description = [ Disable official branding, allowing binary redistribution ] ]]
- ldap
- xinerama
-"
-
-# Note: configure checks for legacy XIE support (XIE == ancient deprecated
-# XFree86 lib). Modern Xorg-based systems don't have or need it.
-# https://bugzilla.mozilla.org/show_bug.cgi?id=83920
-#
-# AC_CHECK_LIB(XIE, XieFloGeometry, [MOZ_XIE_LIBS="-lXIE"],,
-# $XLIBS $XEXT_LIBS)
-# AC_CHECK_HEADER(X11/extensions/XIElib.h)
-
-DEPENDENCIES="
- build:
- app-arch/zip
- dev-util/pkg-config
- x11-proto/xextproto
- xinerama? ( x11-proto/xineramaproto )
- build+run:
- dev-libs/glib:2[>=1.3.7]
- dev-libs/libIDL:2[>=0.8.0]
- media-libs/jpeg
- x11-libs/cairo[>=0.3.0][X]
- x11-libs/gtk+:2
- x11-libs/libICE
- x11-libs/libSM
- x11-libs/libX11
- x11-libs/libXext
- x11-libs/libXft
- x11-libs/libXt
- x11-libs/pango[>=1.1.0][X]
- xinerama? ( x11-libs/libXinerama )
-"
-
-UPSTREAM_RELEASE_NOTES="${HOMEPAGE}${PV}/releasenotes/"
-
-ECONF_SOURCE="${WORKBASE}"/mozilla
-
-src_prepare() {
- mozilla_src_prepare
-
- sed -e "/^mozappdir/ c mozappdir = /usr/$(get_libdir)/${PN}" \
- -i "${WORKBASE}"/mozilla/config/autoconf.mk.in \
- || die "sed mozilla/config/autoconf.mk.in failed"
-
- cd "${ECONF_SOURCE}" || die "cd ${ECONF_SOURCE} failed"
- expatch "${FILES}/${PN}-nsAppRunner_empty_elif.patch"
-}
-
-MOZILLA_SRC_CONFIGURE_PARAMS=(
- --disable-freetype2
- --disable-gnomeui
- --disable-gnomevfs
- --disable-javaxpcom
- --disable-mochitest
- --disable-xprint
- --enable-crypto
- --enable-pango
- --enable-svg
- --enable-system-cairo
- --enable-xft
- --hates=docdir
- --with-libIDL
- --with-system-jpeg
- --with-system-zlib
- # The included libpng is patched for APNG support, so we can't use the system libpng
- --without-system-png
-)
-MOZILLA_SRC_CONFIGURE_OPTION_ENABLES=(
- "!bindist official-branding"
- "ldap"
- "ldap ldap-experimental"
- "xinerama"
-)
-DEFAULT_SRC_COMPILE_PARAMS=( ENABLE_STRIP= )
-
-src_install() {
- default
-
- insinto /usr/share/applications
- doins "${FILES}"/${PN}.desktop
-
- insinto /usr/share/pixmaps
- if option bindist ; then
- sed -e "/^Name=/ c Name=Mail/News Client" \
- -i "${IMAGE}"/usr/share/applications/${PN}.desktop \
- || die "sed ${PN}.desktop failed"
- newins "${ECONF_SOURCE}"/mail/base/content/icon64.png ${PN}-icon.png
- else
- newins "${ECONF_SOURCE}"/other-licenses/branding/thunderbird/content/icon64.png ${PN}-icon.png
- fi
-}
-
diff --git a/packages/mail-client/thunderbird/thunderbird-3.0.3.exheres-0 b/packages/mail-client/thunderbird/thunderbird-3.0.3.exheres-0
deleted file mode 100644
index a4699aa..0000000
--- a/packages/mail-client/thunderbird/thunderbird-3.0.3.exheres-0
+++ /dev/null
@@ -1,147 +0,0 @@
-# Copyright 2008 Bernd Steinhauser <berniyh@exherbo.org>
-# Copyright 2009 Daniel Mierswa <impulze@impulze.org>
-# Distributed under the terms of the GNU General Public License v2
-
-require freedesktop-desktop
-require mozilla [ co_project=mail supported_nspr="[>=4.8]" supported_nss="[>=3.12.0]" ]
-
-SUMMARY="Mozilla's standalone mail and news client"
-HOMEPAGE="http://www.mozillamessaging.com/en-US/thunderbird/"
-DOWNLOADS="ftp://ftp.mozilla.org/pub/${PN}/releases/${PV}/source/${PNV}.source.tar.bz2"
-
-LICENCES="MPL-1.1"
-SLOT="0"
-PLATFORMS="~amd64 ~x86"
-MYOPTIONS="
- accessibility
- alsa [[ description = [ Support for playing HTML5 Audio Tags ] ]]
- bindist [[ description = [ Disable official branding, allowing binary redistribution ] ]]
- dbus
- ldap
- necko-wifi [[ description = [ Scan WiFi with its internal network library ] ]]
- startup-notification
-"
-
-# Note: configure checks for legacy XIE support (XIE == ancient deprecated
-# XFree86 lib). Modern Xorg-based systems don't have or need it.
-# https://bugzilla.mozilla.org/show_bug.cgi?id=83920
-#
-# AC_CHECK_LIB(XIE, XieFloGeometry, [MOZ_XIE_LIBS="-lXIE"],,
-# $XLIBS $XEXT_LIBS)
-# AC_CHECK_HEADER(X11/extensions/XIElib.h)
-
-# TODO:
-# fix automagic deps on libhildonmime, libosso
-
-DEPENDENCIES="
- build:
- app-arch/zip
- dev-lang/python:*
- dev-util/pkg-config
-
- build+run:
- dev-libs/libIDL:2[>=0.8.0]
- media-libs/fontconfig
- media-libs/freetype
- media-libs/jpeg
- x11-libs/cairo[X][>=1.8.8]
- x11-libs/gtk+:2
- x11-libs/libICE
- x11-libs/libSM
- x11-libs/libX11
- x11-libs/libXext
- x11-libs/libXt
- x11-libs/pango[X]
-
- alsa? (
- sys-sound/alsa-lib
- )
- dbus? (
- dev-libs/dbus-glib
- )
- necko-wifi? (
- net-wireless/wireless_tools
- )
- startup-notification? (
- x11-libs/startup-notification
- )
-"
-
-UPSTREAM_RELEASE_NOTES="${HOMEPAGE}${PV}/releasenotes/"
-
-ECONF_SOURCE="${WORKBASE}"/comm-1.9.1
-
-MOZILLA_SRC_CONFIGURE_OPTION_ENABLES=(
- "accessibility"
- "alsa ogg" "alsa wave"
- "!bindist official-branding"
- "dbus"
- "ldap"
- "ldap ldap-experimental"
- "necko-wifi"
- "startup-notification"
-)
-
-MOZILLA_SRC_CONFIGURE_PARAMS=(
- --hates=docdir
- #--enable-native-uconv # breaks attachments on my system
- --enable-system-cairo
- #--enable-system-hunspell # won't compile
- #--enable-system-sqlite # won't link
-
- --with-system-bz2
- --with-system-jpeg
- #--with-system-png # needs libpng with APNG
- --with-system-zlib
-
- # all of the gnome components are disabled with that switch,
- # although it still checks for libgnome and gconf
- --disable-gnomevfs
-
- # this is something different, i just took it over from thunderbird-2
- --disable-gnomeui
-
- # seems like directory/c-sdk makes use of this (when ldap is enabled)
- --enable-ipv6
-
- # wait with --enable until java is done
- --disable-javaxpcom
-
- # optimizations
- --disable-installer
- --disable-crashreporter
- --enable-static
-
- # probably should enable those?
- # --enable-calendar (lightning calendar)
- # --enable-places (a new bookmark/history system used by firefox)
- # --enable-help-viewer (see http://www-archive.mozilla.org/projects/help-viewer/)
- # --enable-safe-browsing (anti-phising implementation)
- # --enable-url-classifier (another security feature)
- # --enable-js-ultrasparc (js optimization on SPARC machines)
- # --enable-xterm-updates (title updates in x terminals)
-)
-
-src_prepare() {
- mozilla_src_prepare
-
- edo sed -e "/^mozappdir/ c mozappdir = /usr/$(get_libdir)/${PN}" \
- -i "${ECONF_SOURCE}"/config/autoconf.mk.in
-}
-
-src_install() {
- default
-
- insinto /usr/share/applications
- doins "${FILES}"/${PN}.desktop
-
- insinto /usr/share/pixmaps
- if option bindist ; then
- edo sed -e "/^Name=/ c Name=Mail/News Client" \
- -i "${IMAGE}"/usr/share/applications/${PN}.desktop
- newins "${ECONF_SOURCE}"/mail/base/content/icon64.png ${PN}-icon.png
- else
- newins "${ECONF_SOURCE}"/other-licenses/branding/thunderbird/content/icon64.png ${PN}-icon.png
- fi
-}
-
diff --git a/packages/net-www/firefox/files/firefox.desktop b/packages/net-www/firefox/files/firefox.desktop
deleted file mode 100644
index 0b3b726..0000000
--- a/packages/net-www/firefox/files/firefox.desktop
+++ /dev/null
@@ -1,94 +0,0 @@
-[Desktop Entry]
-Version=1.0
-Type=Application
-Name=Firefox
-Comment=Browse the World Wide Web
-GenericName=Web Browser
-GenericName[af]=Webblaaier
-GenericName[ar]=متصفح الشبكة
-GenericName[as]=ৱেব চৰক
-GenericName[be]=Вандроўнік па Сеціве
-GenericName[be@latin]=Hartač sieciva
-GenericName[bg]=Уеб браузър
-GenericName[bn]=ওয়েব ব্রাউজার
-GenericName[bn_IN]=ওয়েব ব্রাউজার
-GenericName[br]=Furcher ar Gwiad
-GenericName[ca]=Navegador web
-GenericName[cs]=WWW prohlížeč
-GenericName[csb]=Przezérnik WWW
-GenericName[cy]=Porydd Gwe
-GenericName[da]=Browser
-GenericName[de]=Webbrowser
-GenericName[el]=Περιηγητής ιστού
-GenericName[eo]=TTT-foliumilo
-GenericName[es]=Navegador web
-GenericName[et]=Veebibrauser
-GenericName[eu]=Web arakatzailea
-GenericName[fa]=مرورگر وب‌
-GenericName[fi]=WWW-selain
-GenericName[fr]=Navigateur Web
-GenericName[fy]=Webblêder
-GenericName[ga]=Brabhsálaí Gréasáin
-GenericName[gl]=Navegador Web
-GenericName[gu]=વેબ બ્રાઉઝર
-GenericName[he]=דפדפן אינטרנט
-GenericName[hi]=वेब ब्राउज़र
-GenericName[hne]=वेब ब्राउजर
-GenericName[hr]=Web preglednik
-GenericName[hu]=Webböngésző
-GenericName[is]=Vafri
-GenericName[it]=Browser Web
-GenericName[ja]=ウェブブラウザ
-GenericName[ka]=ვებ–ბრაუზერი
-GenericName[kk]=Веб браузер
-GenericName[km]=កម្មវិធី​រុករក​បណ្ដាញ
-GenericName[kn]=ಜಾಲ ವೀಕ್ಷಕ
-GenericName[ko]=웹 브라우저
-GenericName[ku]=Geroka Torê
-GenericName[lt]=Žiniatinklio naršyklė
-GenericName[lv]=Tīmekļa pārlūks
-GenericName[mai]=वेब ब्राउजर
-GenericName[mk]=Прелистувач на Интернет
-GenericName[ml]=വെബ് ബ്രൌസര്‍
-GenericName[mr]=वेब ब्राऊजर
-GenericName[ms]=Pelayar Web
-GenericName[nb]=Nettleser
-GenericName[nds]=Nettkieker
-GenericName[ne]=वेब ब्राउजर
-GenericName[nl]=Webbrowser
-GenericName[nn]=Nettlesar
-GenericName[oc]=Navigador web
-GenericName[or]=ୱେବ ବ୍ରାଉଜର
-GenericName[pa]=ਵੈੱਬ ਬਰਾਊਜ਼ਰ
-GenericName[pl]=Przeglądarka WWW
-GenericName[pt]=Navegador Web
-GenericName[pt_BR]=Navegador da Internet
-GenericName[ro]=Navigator de Internet
-GenericName[ru]=Веб-браузер
-GenericName[se]=Fierpmádatlogan
-GenericName[si]=වෙබ් ගවේශකය
-GenericName[sk]=Webový prehliadač
-GenericName[sl]=Spletni brskalnik
-GenericName[sr]=Веб прегледач
-GenericName[sr@latin]=Veb pregledač
-GenericName[sv]=Webbläsare
-GenericName[ta]=இணைய உலாவி
-GenericName[te]=వెబ్ బ్రౌజర్
-GenericName[tg]=Намоишгари Интернет
-GenericName[th]=เว็บเบราว์เซอร์
-GenericName[tr]=Web Tarayıcı
-GenericName[uk]=Навігатор Тенет
-GenericName[uz]=Veb-brauzer
-GenericName[uz@cyrillic]=Веб-браузер
-GenericName[vi]=Trình duyệt mạng
-GenericName[wa]=Betchteu waibe
-GenericName[xh]=Umkhangeli zincwadi we Web
-GenericName[x-test]=xxWeb Browserxx
-GenericName[zh_CN]=网页浏览器
-GenericName[zh_TW]=網頁瀏覽器
-Exec=firefox %U
-TryExec=firefox
-Icon=firefox-icon
-Terminal=false
-MimeType=text/html;text/xml;application/xhtml+xml;application/vnd.mozilla.xul+xml;text/mml;
-Categories=Network;WebBrowser;
diff --git a/packages/net-www/firefox/files/mozconfig-3.0.1 b/packages/net-www/firefox/files/mozconfig-3.0.1
deleted file mode 100644
index bd8ee2f..0000000
--- a/packages/net-www/firefox/files/mozconfig-3.0.1
+++ /dev/null
@@ -1,12 +0,0 @@
-mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/../build
-ac_add_options --enable-application=browser
-mk_add_options MOZ_CO_PROJECT=browser
-mk_add_options MOZ_BUILD_PROJECTS=browser
-ac_add_options --disable-mochitest
-ac_add_options --enable-crypto
-ac_add_options --disable-javaxpcom
-ac_add_options --disable-dbus
-ac_add_options --disable-gnomevfs
-ac_add_options --prefix=/usr
-ac_add_options --without-system-jpeg
-ac_add_options --without-system-png
diff --git a/packages/net-www/firefox/firefox-3.5.7.exheres-0 b/packages/net-www/firefox/firefox-3.5.7.exheres-0
deleted file mode 100644
index 416834c..0000000
--- a/packages/net-www/firefox/firefox-3.5.7.exheres-0
+++ /dev/null
@@ -1,12 +0,0 @@
-# Copyright 2007-2008 Alexander Færøy <eroyf@exherbo.org>
-# Copyright 2008 Bernd Steinhauser <berniyh@exherbo.org>
-# Copyright 2008 Ingmar Vanhassel <ingmar@exherbo.org>
-# Distributed under the terms of the GNU General Public License v2
-
-require firefox [ codename="Shiretoko" ]
-
-SLOT="0"
-PLATFORMS="~amd64 ~ppc64 ~x86"
-#upstream zigzagged from -source to .source
-DOWNLOADS="ftp://ftp.mozilla.org/pub/mozilla.org/${PN}/releases/${MY_PV}/source/${PN}-${MY_PV}.source.tar.bz2"
-
diff --git a/packages/net-www/firefox/firefox-3.6.3.exheres-0 b/packages/net-www/firefox/firefox-3.6.3.exheres-0
deleted file mode 100644
index 338964f..0000000
--- a/packages/net-www/firefox/firefox-3.6.3.exheres-0
+++ /dev/null
@@ -1,15 +0,0 @@
-# Copyright 2007-2008 Alexander Færøy <eroyf@exherbo.org>
-# Copyright 2008 Bernd Steinhauser <berniyh@exherbo.org>
-# Copyright 2008 Ingmar Vanhassel <ingmar@exherbo.org>
-# Copyright 2009 Xavier Barrachina <xabarci@ega.upv.es>
-# Distributed under the terms of the GNU General Public License v2
-
-require firefox [ codename="Namoroka" ]
-
-SLOT="0"
-PLATFORMS="~amd64 ~ppc64 ~x86"
-
-MOZILLA_SRC_CONFIGURE_PARAMS+=(
- --disable-necko-wifi
-)
-
diff --git a/packages/net-www/firefox/firefox.exlib b/packages/net-www/firefox/firefox.exlib
deleted file mode 100644
index 4dd8d3a..0000000
--- a/packages/net-www/firefox/firefox.exlib
+++ /dev/null
@@ -1,104 +0,0 @@
-# Copyright 2007-2008 Alexander Færøy <eroyf@exherbo.org>
-# Copyright 2008 Bernd Steinhauser <berniyh@exherbo.org>
-# Copyright 2008, 2009 Ingmar Vanhassel <ingmar@exherbo.org>
-# Distributed under the terms of the GNU General Public License v2
-
-# Exclude debug option from Firefox until --enable-debug is fixed.
-# See Gentoo bug #270871.
-require freedesktop-desktop multilib mozilla [ co_project=browser provide_debug=false supported_nspr="[>=4.7.1]" ]
-
-# When importing this exlib you must specify upstream's release codename. The
-# codename replaces the official "Firefox" branding in the UI when the bindist
-# option is enabled. Consult the "Codename" column here:
-# http://en.wikipedia.org/wiki/Firefox#Release_history
-# More on Firefox trademark issues:
-# http://en.wikipedia.org/wiki/Firefox#Trademark_and_logo
-myexparam codename
-exparam -v codename codename
-
-MY_PV="${MY_PV:-${PV/_beta/b}}"
-MY_PV="${MY_PV/_rc/rc}"
-
-if ever at_least '3.6_rc' ; then
- XULRUNNER_PV="${PV/#3.6/1.9.2}"
- XULRUNNER_MY_PV="${MY_PV/#3.6/1.9.2}"
-else
- XULRUNNER_PV="${PV/#3.5/1.9.1}"
- XULRUNNER_MY_PV="${MY_PV/#3.5/1.9.1}"
-fi
-
-SUMMARY="Mozilla's standalone web browser"
-HOMEPAGE="http://www.mozilla.com/en-US/${PN}/"
-DOWNLOADS="ftp://ftp.mozilla.org/pub/mozilla.org/${PN}/releases/${MY_PV}/source/${PN}-${MY_PV}.source.tar.bz2"
-
-UPSTREAM_RELEASE_NOTES="${HOMEPAGE}${MY_PV}/releasenotes/"
-
-LICENCES="MPL-1.1"
-MYOPTIONS="
- alsa [[ description = [ Support for playing HTML5 Audio Tags ] ]]
- bindist [[ description = [ Disable official branding, allowing binary redistribution ] ]]
-"
-
-RESTRICT="test"
-
-DEPENDENCIES="
- build:
- dev-util/pkg-config
- build+run:
- dev-libs/libIDL[>=0.8.0]
- dev-libs/xulrunner[~${XULRUNNER_PV}]
- media-libs/jpeg
- net-misc/curl
- x11-libs/gtk+:2[>=2.10.0]
- alsa? (
- dev-libs/xulrunner[ogg][wav]
- sys-sound/alsa-lib
- )
-"
-
-ECONF_SOURCE="${WORKBASE}/mozilla-$(ever range 1-3 ${XULRUNNER_PV})"
-
-MOZILLA_SRC_CONFIGURE_PARAMS=(
- --disable-dbus
- --disable-gnomevfs
- --disable-javaxpcom
- --disable-mochitest
- --enable-crypto
- --enable-svg
- --enable-system-cairo
- --hates=docdir
- --with-libxul-sdk=/usr/$(get_libdir)/xulrunner-devel
- --with-system-bz2
- --with-system-jpeg
- --with-system-zlib
- # The included libpng is patched for APNG supported, so we can't use the system libpng
- --without-system-png
-)
-MOZILLA_SRC_CONFIGURE_OPTION_ENABLES=(
- "alsa ogg"
- "alsa wave"
- "!bindist official-branding"
-)
-
-src_install() {
- default
-
- hereenvd 50firefox <<EOF
-MOZ_PLUGIN_PATH="/usr/$(get_libdir)/mozilla/plugins:/usr/$(get_libdir)/nsbrowser/plugins:/opt/nsbrowser/plugins"
-COLON_SEPARATED="MOZ_PLUGIN_PATH"
-EOF
-
- insinto /usr/share/applications
- doins "${FILES}"/${PN}.desktop
-
- insinto /usr/share/pixmaps
- if option bindist ; then
- sed -e "/^Name=/ c Name=${codename}" \
- -i "${IMAGE}"/usr/share/applications/${PN}.desktop \
- || die "sed ${PN}.desktop failed"
- newins "${ECONF_SOURCE}"/browser/base/branding/icon64.png ${PN}-icon.png
- else
- newins "${ECONF_SOURCE}"/other-licenses/branding/firefox/content/icon64.png ${PN}-icon.png
- fi
-}
-