summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJory Pratt <anarchy@gentoo.org>2006-02-27 21:05:39 +0000
committerJory Pratt <anarchy@gentoo.org>2006-02-27 21:05:39 +0000
commit740b39ee5cb475214942ffe59e7acf5ee4d27bac (patch)
treea961cf86f6192db714839d5dc8defbd90429b372 /www-client
parentuse.local updated for seamonkey (diff)
downloadgentoo-2-740b39ee5cb475214942ffe59e7acf5ee4d27bac.tar.gz
gentoo-2-740b39ee5cb475214942ffe59e7acf5ee4d27bac.tar.bz2
gentoo-2-740b39ee5cb475214942ffe59e7acf5ee4d27bac.zip
initial import
(Portage version: 2.1_pre5-r1)
Diffstat (limited to 'www-client')
-rw-r--r--www-client/seamonkey/ChangeLog12
-rw-r--r--www-client/seamonkey/Manifest27
-rw-r--r--www-client/seamonkey/files/10seamonkey1
-rw-r--r--www-client/seamonkey/files/digest-seamonkey-1.06
-rw-r--r--www-client/seamonkey/files/google.src29
-rw-r--r--www-client/seamonkey/files/icon/seamonkey.desktop8
-rw-r--r--www-client/seamonkey/files/icon/seamonkey.pngbin0 -> 4172 bytes
-rw-r--r--www-client/seamonkey/files/seamonkey-rebuild-databases.pl99
-rw-r--r--www-client/seamonkey/metadata.xml5
-rw-r--r--www-client/seamonkey/seamonkey-1.0.ebuild286
10 files changed, 473 insertions, 0 deletions
diff --git a/www-client/seamonkey/ChangeLog b/www-client/seamonkey/ChangeLog
new file mode 100644
index 000000000000..422f79a2df5f
--- /dev/null
+++ b/www-client/seamonkey/ChangeLog
@@ -0,0 +1,12 @@
+# ChangeLog for www-client/seamonkey
+# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/www-client/seamonkey/ChangeLog,v 1.1 2006/02/27 21:05:38 anarchy Exp $
+
+*seamonkey-1.0 (27 Feb 2006)
+
+ 27 Feb 2006; <anarchy@gentoo.org> +files/10seamonkey, +files/google.src,
+ +files/icon/seamonkey.desktop, +files/icon/seamonkey.png,
+ +files/seamonkey-rebuild-databases.pl, +metadata.xml,
+ +seamonkey-1.0.ebuild:
+ initial import,much appreciation wrt bug #116231
+
diff --git a/www-client/seamonkey/Manifest b/www-client/seamonkey/Manifest
new file mode 100644
index 000000000000..efdc487e2516
--- /dev/null
+++ b/www-client/seamonkey/Manifest
@@ -0,0 +1,27 @@
+MD5 9566e4a1bde036a4579db9e5b61816ab ChangeLog 419
+RMD160 7ef608a77c1bca7d501eb5f1a25514f75739eb89 ChangeLog 419
+SHA256 1e0ad73761a11501d5315dfb5513263b816e9fc4308e7f555e76ea2e8e308960 ChangeLog 419
+MD5 31875e30fe2529920b56760ff1770317 files/10seamonkey 26
+RMD160 156c113dfd25a106d5b72c4e6320bbf155d8775a files/10seamonkey 26
+SHA256 e3af11f2fefe5d7375b2ef136ab9f5de7d2f9a697b08f9a0744a49bac3fe2de7 files/10seamonkey 26
+MD5 4f76c83fa0a195bd5c6e521947192b7d files/digest-seamonkey-1.0 548
+RMD160 d2a2947ec78cbe34a65dee513b1c8773166542b6 files/digest-seamonkey-1.0 548
+SHA256 216944543d66b61e41b7c0a603702da6d0a43697ce3b4f8605425a70019c6eec files/digest-seamonkey-1.0 548
+MD5 d0e52abf109fe61c4195f0cbf002ae18 files/google.src 706
+RMD160 083b439d5aeb27cdf35345b043e7cf2cbf92d369 files/google.src 706
+SHA256 885e7a1a1ce41c3f199eca193277869d6634dd6fd5efae437d3e809d5b5ac80a files/google.src 706
+MD5 85a9dda9cebd7457fe7f5c0ca3775091 files/icon/seamonkey.desktop 149
+RMD160 d67c080ce6c4a6841f30c559e8a09b97c6b5e654 files/icon/seamonkey.desktop 149
+SHA256 9ee71b8b06738b6061ff400f6718f3bdc0c27240297de7839e79dd1c822af379 files/icon/seamonkey.desktop 149
+MD5 433ea976f1e3017e49a49d65a74cae70 files/icon/seamonkey.png 4172
+RMD160 d296c4d4e0920e4476f4c6c607946434202ad521 files/icon/seamonkey.png 4172
+SHA256 7ffc1911a62b526702f3c991365dd8f18b6427c7e173456a101db4fb4c43ae59 files/icon/seamonkey.png 4172
+MD5 199e59a053b66e9c4d56d9ca1c41d09e files/seamonkey-rebuild-databases.pl 2344
+RMD160 27ae162b4028d80faeb802e575b41590f6ab314e files/seamonkey-rebuild-databases.pl 2344
+SHA256 fde49923b949fc300040490e404a9f65b5777e8e7440fd8f0907d17b041fb2af files/seamonkey-rebuild-databases.pl 2344
+MD5 ce23390351fe8020387d93ee29e09a3d metadata.xml 160
+RMD160 d5a9f0bf8989621c2bde30facb53bcae00aba709 metadata.xml 160
+SHA256 0cc5126362a12cee42ec1197c528a804cf36859329dd2c6d9225726831d14b8b metadata.xml 160
+MD5 0a4f5eda85eb1774fecb4bfcaf3c107c seamonkey-1.0.ebuild 8779
+RMD160 e37d5a3e79a34435180e320e4d2b1463e7b70950 seamonkey-1.0.ebuild 8779
+SHA256 4cc2748bdc2c89ac73d52cde03e920ffc02b379d45b09bf65e28576050bca3dd seamonkey-1.0.ebuild 8779
diff --git a/www-client/seamonkey/files/10seamonkey b/www-client/seamonkey/files/10seamonkey
new file mode 100644
index 000000000000..cfd57dd059ee
--- /dev/null
+++ b/www-client/seamonkey/files/10seamonkey
@@ -0,0 +1 @@
+LDPATH=/usr/lib/seamonkey
diff --git a/www-client/seamonkey/files/digest-seamonkey-1.0 b/www-client/seamonkey/files/digest-seamonkey-1.0
new file mode 100644
index 000000000000..e80c049db867
--- /dev/null
+++ b/www-client/seamonkey/files/digest-seamonkey-1.0
@@ -0,0 +1,6 @@
+MD5 bb6b90258adfde800d94d882d0b7632c seamonkey-1.0-patches-0.1.tar.bz2 31486
+RMD160 2005d153a1cc6cb281f41f8c0dc76a0696e45464 seamonkey-1.0-patches-0.1.tar.bz2 31486
+SHA256 ac1f8969a6e562935f5bfc029b3b71890eb216e3c39ca3b70d25f289783f5999 seamonkey-1.0-patches-0.1.tar.bz2 31486
+RMD160 2785193e84a85b5570a4905221a54092d32aef15 seamonkey-1.0.source.tar.bz2 34860577
+SHA256 e28cff7411992f1468d098806a427397114ea64a12a425c7c6be8b49e891f334 seamonkey-1.0.source.tar.bz2 34860577
+MD5 e4f2edc5b2248d090303c70f5b28f210 seamonkey-1.0.source.tar.bz2 34860577
diff --git a/www-client/seamonkey/files/google.src b/www-client/seamonkey/files/google.src
new file mode 100644
index 000000000000..c11e51bf39a2
--- /dev/null
+++ b/www-client/seamonkey/files/google.src
@@ -0,0 +1,29 @@
+# Mozilla/Google plug-in by amitp+mozilla@google.com
+
+<search
+ name="Google"
+ description="Google Search"
+ method="GET"
+ action="http://www.google.com/search"
+ update="http://www.google.com/mozilla/google.src"
+ updateCheckDays=1
+ queryEncoding="utf-8"
+ queryCharset="utf-8"
+>
+
+<input name="q" user>
+<input name="sourceid" value="mozilla-search">
+<inputnext name="start" factor="10">
+<inputprev name="start" factor="10">
+<input name="ie" value="utf-8">
+<input name="oe" value="utf-8">
+
+<interpret
+ browserResultType="result"
+ charset = "UTF-8"
+ resultListStart="<!--a-->"
+ resultListEnd="<!--z-->"
+ resultItemStart="<!--m-->"
+ resultItemEnd="<!--n-->"
+>
+</search>
diff --git a/www-client/seamonkey/files/icon/seamonkey.desktop b/www-client/seamonkey/files/icon/seamonkey.desktop
new file mode 100644
index 000000000000..1f92f18dad13
--- /dev/null
+++ b/www-client/seamonkey/files/icon/seamonkey.desktop
@@ -0,0 +1,8 @@
+[Desktop Entry]
+Name=SeaMonkey
+Comment=Web Browser
+Exec=seamonkey
+Icon=seamonkey.png
+Terminal=false
+Type=Application
+Categories=Application;Network;
diff --git a/www-client/seamonkey/files/icon/seamonkey.png b/www-client/seamonkey/files/icon/seamonkey.png
new file mode 100644
index 000000000000..b2b7f624ff4c
--- /dev/null
+++ b/www-client/seamonkey/files/icon/seamonkey.png
Binary files differ
diff --git a/www-client/seamonkey/files/seamonkey-rebuild-databases.pl b/www-client/seamonkey/files/seamonkey-rebuild-databases.pl
new file mode 100644
index 000000000000..2556041dae11
--- /dev/null
+++ b/www-client/seamonkey/files/seamonkey-rebuild-databases.pl
@@ -0,0 +1,99 @@
+#!/usr/bin/perl
+
+use File::Path;
+use File::Copy;
+use File::Glob ":glob";
+use POSIX ":sys_wait_h";
+
+$timeout = 60;
+
+%{ENV}->{"MOZILLA_FIVE_HOME"}="/usr/lib/seamonkey";
+%{ENV}->{"LD_LIBRARY_PATH"}="/usr/lib/seamonkey";
+
+umask 022;
+
+if ( -f "/usr/lib/seamonkey/regxpcom" )
+{
+ # remove all of the old files
+ rmtree("/usr/lib/seamonkey/chrome/overlayinfo");
+ unlink </usr/lib/seamonkey/chrome/*.rdf>;
+ unlink("/usr/lib/seamonkey/component.reg");
+ unlink("/usr/lib/seamonkey/components/compreg.dat");
+ unlink("/usr/lib/seamonkey/components/xpti.dat");
+
+ # create a new clean path
+ mkpath("/usr/lib/seamonkey/chrome/overlayinfo");
+
+ # rebuild the installed-chrome.txt file from the installed
+ # languages
+ if ( -f "/usr/lib/seamonkey/chrome/lang/installed-chrome.txt" ) {
+ rebuild_lang_files();
+ }
+
+ # run regxpcom
+ $pid = fork();
+
+ # I am the child.
+ if ($pid == 0) {
+ exec("/usr/lib/seamonkey/regxpcom > /dev/null 2> /dev/null");
+ }
+ # I am the parent.
+ else {
+ my $timepassed = 0;
+ do {
+ $kid = waitpid($pid, &WNOHANG);
+ sleep(1);
+ $timepassed++;
+ } until $kid == -1 || $timepassed > $timeout;
+
+ # should we kill?
+ if ($timepassed > $timeout) {
+ kill (9, $pid);
+ # kill -9 can leave threads hanging around
+ system("/usr/bin/killall -9 regxpcom");
+ }
+ }
+
+ # and run regchrome for good measure
+ $pid = fork();
+
+ # I am the child.
+ if ($pid == 0) {
+ exec("/usr/lib/seamonkey/regchrome > /dev/null 2> /dev/null");
+ }
+ # I am the parent.
+ else {
+ my $timepassed = 0;
+ do {
+ $kid = waitpid($pid, &WNOHANG);
+ sleep(1);
+ $timepassed++;
+ } until $kid == -1 || $timepassed > $timeout;
+
+ # should we kill?
+ if ($timepassed > $timeout) {
+ kill (9, $pid);
+ # kill -9 can leave threads hanging around
+ system("/usr/bin/killall -9 regchrome");
+ }
+ }
+
+}
+
+
+sub rebuild_lang_files {
+ unlink("/usr/lib/seamonkey/chrome/installed-chrome.txt");
+
+ open (OUTPUT, "+>", "/usr/lib/seamonkey/chrome/installed-chrome.txt")||
+ die("Failed to open installed-chrome.txt: $!\n");
+
+ copy("/usr/lib/seamonkey/chrome/lang/installed-chrome.txt",
+ \*OUTPUT);
+
+ foreach (bsd_glob("/usr/lib/seamonkey/chrome/lang/lang-*.txt")) {
+ copy($_, \*OUTPUT);
+ }
+
+ copy("/usr/lib/seamonkey/chrome/lang/default.txt",
+ \*OUTPUT);
+}
diff --git a/www-client/seamonkey/metadata.xml b/www-client/seamonkey/metadata.xml
new file mode 100644
index 000000000000..74d9257900cf
--- /dev/null
+++ b/www-client/seamonkey/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>mozilla</herd>
+</pkgmetadata>
diff --git a/www-client/seamonkey/seamonkey-1.0.ebuild b/www-client/seamonkey/seamonkey-1.0.ebuild
new file mode 100644
index 000000000000..f55ed083dfd3
--- /dev/null
+++ b/www-client/seamonkey/seamonkey-1.0.ebuild
@@ -0,0 +1,286 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/www-client/seamonkey/seamonkey-1.0.ebuild,v 1.1 2006/02/27 21:05:39 anarchy Exp $
+
+unset ALLOWED_FLAGS # Stupid extra-functions.sh ... bug 49179
+inherit flag-o-matic toolchain-funcs eutils mozcoreconf mozconfig-2 mozilla-launcher makeedit multilib autotools
+
+PVER="0.1"
+
+DESCRIPTION="Mozilla Application Suite - web browser, email, HTML editor, IRC"
+HOMEPAGE="http://www.mozilla.org"
+SRC_URI="http://ftp.mozilla.org/pub/mozilla.org/${PN}/releases/${PV}/${P}.source.tar.bz2
+ mirror://gentoo/${P}-patches-${PVER}.tar.bz2
+ http://dev.gentoo.org/~anarchy/dist/${P}-patches-${PVER}.tar.bz2"
+
+KEYWORDS="~x86 ~amd64"
+SLOT="0"
+LICENSE="MPL-1.1 NPL-1.1"
+IUSE="java ldap mozcalendar mozdevelop moznocompose moznoirc moznomail moznoroaming postgres"
+
+RDEPEND="java? ( virtual/jre )
+ =www-client/mozilla-launcher-1.47
+ >=dev-libs/nss-3.10
+ >=dev-libs/nspr-4.6.1"
+
+DEPEND="${RDEPEND}
+ ~sys-devel/autoconf-2.13
+ java? ( >=dev-java/java-config-0.2.0 )
+ dev-lang/perl
+ postgres? ( >=dev-db/postgresql-7.2.0 )
+ !www-client/mozilla"
+
+S=${WORKDIR}/mozilla
+
+pkg_setup() {
+if ! use moznoirc && use moznocompose; then
+ ewarn ""
+ ewarn "It looks like you want to have Chatzilla but don't want to have"
+ ewarn "Composer. This cannot be done, because Chatzilla does not work"
+ ewarn "without Composer. Composer will be build."
+ ewarn ""
+ ewarn "Continuing in 10 seconds.."
+ ewarn ""
+ sleep 10
+fi
+if use mozcalendar && use moznomail; then
+ ewarn ""
+ ewarn "It looks like you want to have Calendar but don't want to have"
+ ewarn "Mail. This cannot be done, because Calendar does not work"
+ ewarn "without Mail. Mail will be build."
+ ewarn ""
+ ewarn "Continuing in 10 seconds.."
+ ewarn ""
+ sleep 10
+fi
+if ! use moznomail && use moznocompose; then
+ ewarn ""
+ ewarn "It looks like you want to have Mail but don't want to have"
+ ewarn "Composer. This cannot be done, because Mail does not work"
+ ewarn "without Composer. Composer will be build."
+ ewarn ""
+ ewarn "Continuing in 10 seconds.."
+ ewarn ""
+ sleep 10
+fi
+}
+
+src_unpack() {
+ unpack ${P}.source.tar.bz2 ${P}-patches-${PVER}.tar.bz2
+
+ cd ${S} || die "cd failed"
+ EPATCH_FORCE="yes" epatch ${WORKDIR}/patch
+
+ # Fix scripts that call for /usr/local/bin/perl #51916
+ ebegin "Patching smime to call perl from /usr/bin"
+ sed -i -e '1s,usr/local/bin,usr/bin,' ${S}/security/nss/cmd/smimetools/smime
+ eend $? || die "sed failed"
+
+ # Fix a compilation issue using the 32-bit userland with 64-bit kernel on
+ # PowerPC, because with that configuration, mozilla detects a ppc64 system.
+ # -- hansmi, 2005-10-02
+ if use ppc && [[ "${PROFILE_ARCH}" == ppc64 ]]; then
+ sed -i -e "s#OS_TEST=\`uname -m\`\$#OS_TEST=${ARCH}#" \
+ ${S}/configure.in
+ sed -i -e "s#OS_TEST :=.*uname -m.*\$#OS_TEST:=${ARCH}#" \
+ ${S}/security/coreconf/arch.mk
+ fi
+
+ # Needed by some of the patches
+ WANT_AUTOCONF=2.1 autoconf || die "WANT_AUTOCONF failed"
+}
+
+src_compile() {
+ declare MOZILLA_FIVE_HOME=/usr/$(get_libdir)/${PN}
+
+ ####################################
+ #
+ # mozconfig, CFLAGS and CXXFLAGS setup
+ #
+ ####################################
+ mozconfig_init
+ mozconfig_config
+
+ mozconfig_annotate 'gentoo' --enable-canvas
+ mozconfig_annotate 'gentoo' --with-system-nspr
+ mozconfig_annotate 'gentoo' --with-system-nss
+
+ # Bug 60668: Galeon doesn't build without oji enabled, so enable it
+ # regardless of java setting.
+ mozconfig_annotate 'galeon' --enable-oji --enable-mathml
+
+ # Other moz-specific settings
+ mozconfig_use_enable mozdevelop jsd
+ mozconfig_use_enable mozdevelop xpctools
+ mozconfig_use_extension mozdevelop venkman
+
+ if use moznoirc; then
+ mozconfig_annotate '+moznocompose +moznoirc' --enable-extensions=-irc
+ fi
+
+ if use moznoroaming ; then
+ mozconfig_annotate '+moznoroaming' --enable-extensions=-sroaming
+ fi
+
+ if use postgres ; then
+ mozconfig_annotate '+postgres' --enable-extensions=sql
+ export MOZ_ENABLE_PGSQL=1
+ export MOZ_PGSQL_INCLUDES=/usr/include
+ export MOZ_PGSQL_LIBS=/usr/$(get_libdir)
+ fi
+
+ mozconfig_use_enable mozcalendar calendar
+ mozconfig_use_enable ldap
+ mozconfig_use_enable ldap ldap-experimental
+ mozconfig_annotate '' --with-default-mozilla-five-home=${MOZILLA_FIVE_HOME}
+ mozconfig_annotate '' --with-user-appdir=.mozilla
+
+ if use moznomail && ! use mozcalendar; then
+ mozconfig_annotate "+moznomail -mozcalendar" --disable-mailnews
+ fi
+
+ if use moznocompose && ! use mozcalendar; then
+ if use moznoirc && use moznomail; then
+ mozconfig_annotate "+moznocompose" --disable-composer
+ fi
+ fi
+
+ # Finalize and report settings
+ mozconfig_final
+
+ # hardened GCC uses -fstack-protector-all by default, which breaks us
+ has_hardened && append-flags -fno-stack-protector-all
+ replace-flags -fstack-protector-all -fstack-protector
+
+ append-flags -freorder-blocks -fno-reorder-functions
+
+ ####################################
+ #
+ # 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}/nsprpub/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}
+
+ # Most of the installation happens here
+ dodir ${MOZILLA_FIVE_HOME}
+ cp -RL ${S}/dist/bin/* ${D}${MOZILLA_FIVE_HOME}
+
+ # Create directory structure to support portage-installed extensions.
+ # See update_chrome() in mozilla-launcher
+ keepdir ${MOZILLA_FIVE_HOME}/chrome.d
+ keepdir ${MOZILLA_FIVE_HOME}/extensions.d
+ cp ${D}${MOZILLA_FIVE_HOME}/chrome/installed-chrome.txt \
+ ${D}${MOZILLA_FIVE_HOME}/chrome.d/0_base-chrome.txt
+
+ # Create /usr/bin/mozilla
+ install_mozilla_launcher_stub seamonkey ${MOZILLA_FIVE_HOME}
+
+ # Install icon and .desktop for menu entry
+ insinto /usr/share/pixmaps
+ doins ${FILESDIR}/icon/${PN}.png
+
+ # Fix bug 54179: Install .desktop file into /usr/share/applications
+ # instead of /usr/share/gnome/apps/Internet (18 Jun 2004 agriffis)
+ insinto /usr/share/applications
+ doins ${FILESDIR}/icon/${PN}.desktop
+
+ # Fix icons to look the same everywhere
+ insinto ${MOZILLA_FIVE_HOME}/icons
+ doins ${S}/widget/src/gtk/mozicon16.xpm
+ doins ${S}/widget/src/gtk/mozicon50.xpm
+
+ ####################################
+ #
+ # Install files necessary for applications to build against mozilla
+ #
+ ####################################
+
+ einfo "Installing includes and idl files..."
+ dodir ${MOZILLA_FIVE_HOME}/{include,idl} /usr/include
+ cd ${S}/dist
+ cp -LfR include/* ${D}${MOZILLA_FIVE_HOME}/include
+ cp -LfR idl/* ${D}${MOZILLA_FIVE_HOME}/idl
+
+ # Fix mozilla-config and install it
+ exeinto ${MOZILLA_FIVE_HOME}
+ doexe ${S}/build/unix/${PN}-config
+
+ # Fix pkgconfig files and install them
+ insinto /usr/$(get_libdir)/pkgconfig
+ for x in ${S}/build/unix/*.pc; do
+ doins ${x}
+ done
+
+ # Install env.d snippet, which isn't necessary for running mozilla, but
+ # might be necessary for programs linked against firefox
+ insinto /etc/env.d
+ doins ${FILESDIR}/10${PN}
+ dosed "s|/usr/lib|/usr/$(get_libdir)|" /etc/env.d/10${PN}
+
+ # Install rebuild script since mozilla-bin doesn't support registration yet
+ exeinto ${MOZILLA_FIVE_HOME}
+ doexe ${FILESDIR}/${PN}-rebuild-databases.pl
+ dosed -e 's|/lib/|/'"$(get_libdir)"'/|g' \
+ ${MOZILLA_FIVE_HOME}/${PN}-rebuild-databases.pl
+
+ # Install docs
+ dodoc ${S}/{LEGAL,LICENSE}
+
+ # Update Google search plugin to use UTF8 charset ...
+ insinto ${MOZILLA_FIVE_HOME}/searchplugins
+ doins ${FILESDIR}/google.src
+}
+
+pkg_preinst() {
+ declare MOZILLA_FIVE_HOME=/usr/$(get_libdir)/${PN}
+
+ # Remove entire installed instance to solve various problems,
+ # for example see bug 27719
+ rm -rf ${ROOT}${MOZILLA_FIVE_HOME}
+}
+
+pkg_postinst() {
+ declare MOZILLA_FIVE_HOME=/usr/$(get_libdir)/${PN}
+
+ # Update the component registry
+ MOZILLA_LIBDIR=${ROOT}${MOZILLA_FIVE_HOME} MOZILLA_LAUNCHER=${PN} \
+ /usr/libexec/mozilla-launcher -register
+
+ # This should be called in the postinst and postrm of all the
+ # mozilla, mozilla-bin, firefox, firefox-bin, thunderbird and
+ # thunderbird-bin ebuilds.
+ update_mozilla_launcher_symlinks
+}
+
+pkg_postrm() {
+ declare MOZILLA_FIVE_HOME=/usr/$(get_libdir)/${PN}
+
+ # Update the component registry
+ if [[ -x ${MOZILLA_FIVE_HOME}/${PN}-bin ]]; then
+ MOZILLA_LIBDIR=${ROOT}${MOZILLA_FIVE_HOME} MOZILLA_LAUNCHER=${PN} \
+ /usr/libexec/mozilla-launcher -register
+ fi
+
+ update_mozilla_launcher_symlinks
+}