From: "Jory Pratt" <anarchy@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/mozilla:master commit in: mail-client/thunderbird/, www-client/firefox/, www-client/seamonkey/, eclass/
Date: Mon, 21 Nov 2011 16:14:25 +0000 (UTC) [thread overview]
Message-ID: <f0324ba32afe32db3311dfab9b9c783814f35b00.anarchy@gentoo> (raw)
commit: f0324ba32afe32db3311dfab9b9c783814f35b00
Author: Jory A. Pratt <anarchy <AT> gentoo <DOT> org>
AuthorDate: Mon Nov 21 16:13:35 2011 +0000
Commit: Jory Pratt <anarchy <AT> gentoo <DOT> org>
CommitDate: Mon Nov 21 16:13:35 2011 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/mozilla.git;a=commit;h=f0324ba3
use nsplugins.eclass for share_plugins_dir instead of mozcoreconf-2
---
eclass/mozcoreconf-2.eclass | 16 -----
eclass/nsplugins.eclass | 67 +++++++++++++++++++++
mail-client/thunderbird/Manifest | 2 +-
mail-client/thunderbird/thunderbird-8.0-r1.ebuild | 2 +-
www-client/firefox/Manifest | 2 +-
www-client/firefox/firefox-8.0.ebuild | 2 +-
www-client/seamonkey/Manifest | 2 +-
www-client/seamonkey/seamonkey-2.5_beta4.ebuild | 2 +-
8 files changed, 73 insertions(+), 22 deletions(-)
diff --git a/eclass/mozcoreconf-2.eclass b/eclass/mozcoreconf-2.eclass
index 4930532..5b74318 100644
--- a/eclass/mozcoreconf-2.eclass
+++ b/eclass/mozcoreconf-2.eclass
@@ -279,19 +279,3 @@ mozconfig_final() {
sed -i '/^ac_add_options --enable-extensions/d' .mozconfig
echo "ac_add_options --enable-extensions=${exts// /,}" >> .mozconfig
}
-
-# ${MOZILLA_FIVE_HOME} must be defined in src_install to support
-share_plugins_dir() {
- if [[ ${PN} == seamonkey ]] ; then
- rm -rf "${D}"${MOZILLA_FIVE_HOME}/plugins \
- || die "failed to remove existing plugins dir"
- fi
-
- if [[ ${PN} == *-bin ]] ; then
- PLUGIN_BASE_PATH="/usr/$(get_libdir)"
- else
- PLUGIN_BASE_PATH=".."
- fi
-
- dosym "${PLUGIN_BASE_PATH}/nsbrowser/plugins" "${MOZILLA_FIVE_HOME}/plugins"
-}
diff --git a/eclass/nsplugins.eclass b/eclass/nsplugins.eclass
new file mode 100644
index 0000000..bdce719
--- /dev/null
+++ b/eclass/nsplugins.eclass
@@ -0,0 +1,67 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/eclass/nsplugins.eclass,v 1.26 2011/10/05 15:14:07 scarabeus Exp $
+#
+# Author: Martin Schlemmer <azarah@gentoo.org>
+#
+# Just some re-usable functions for the netscape/moz plugins sharing
+
+inherit eutils
+
+DESCRIPTION="Based on the ${ECLASS} eclass"
+
+PLUGINS_DIR="nsbrowser/plugins"
+
+# This function move the plugin dir in src_install() to
+# ${D}/usr/$(get_libdir)/${PLUGIN_DIR}. First argument should be
+# the full path (without $D) to old plugin dir.
+src_mv_plugins() {
+ has "${EAPI:-0}" 0 1 2 && ! use prefix && ED="${D}"
+
+ # Move plugins dir. We use keepdir so that it might not be unmerged
+ # by mistake ...
+ keepdir /usr/$(get_libdir)/${PLUGINS_DIR}
+ cp -a "${ED}"/$1/* "${ED}"/usr/$(get_libdir)/${PLUGINS_DIR}
+ rm -rf "${ED}"/$1
+ dosym /usr/$(get_libdir)/${PLUGINS_DIR} $1
+}
+
+# This function move plugins in pkg_preinst() in old dir to
+# ${ROOT}/usr/$(get_libdir)/${PLUGIN_DIR}. First argument should be
+# the full path (without $ROOT) to old plugin dir.
+pkg_mv_plugins() {
+ has "${EAPI:-0}" 0 1 2 && ! use prefix && ED="${ROOT}"
+
+ # Move old plugins dir
+ if [ -d "${ROOT}/$1" -a ! -L "${ROOT}/$1" ]
+ then
+ mkdir -p "${EROOT}"/usr/$(get_libdir)/${PLUGINS_DIR}
+ cp -a "${EROOT}"/$1/* "${EROOT}"/usr/$(get_libdir)/${PLUGINS_DIR}
+ rm -rf "${EROOT}"/$1
+ fi
+}
+
+# This function installs a plugin with dosym to PLUGINS_DIR.
+# First argument should be the plugin file.
+inst_plugin() {
+ dodir /usr/$(get_libdir)/${PLUGINS_DIR}
+ dosym ${1} /usr/$(get_libdir)/${PLUGINS_DIR}/$(basename ${1})
+}
+
+# This function ensures we use proper plugin path for Gentoo.
+# This should only be used by mozilla packages.
+# ${MOZILLA_FIVE_HOME} must be defined in src_install to support
+share_plugins_dir() {
+ if [[ ${PN} == seamonkey ]] ; then
+ rm -rf "${D}"${MOZILLA_FIVE_HOME}/plugins \
+ || die "failed to remove existing plugins dir"
+ fi
+
+ if [[ ${PN} == *-bin ]] ; then
+ PLUGIN_BASE_PATH="/usr/$(get_libdir)"
+ else
+ PLUGIN_BASE_PATH=".."
+ fi
+
+ dosym "${PLUGIN_BASE_PATH}/nsbrowser/plugins" "${MOZILLA_FIVE_HOME}/plugins"
+}
diff --git a/mail-client/thunderbird/Manifest b/mail-client/thunderbird/Manifest
index 58f8935..fbea527 100644
--- a/mail-client/thunderbird/Manifest
+++ b/mail-client/thunderbird/Manifest
@@ -56,4 +56,4 @@ DIST thunderbird-8.0-vi.xpi 425968 RMD160 5412aefbf05179354fb4fa2f3865a58b535520
DIST thunderbird-8.0-zh-CN.xpi 422519 RMD160 ef881e92de682aa3d807a53a7f536f51e6740b94 SHA1 564f90305e0458f57cd27a876f90e8c12b5ade8f SHA256 bb46c2b4d395488104528ac225f2c129e9c4ddb500e6f44082df549560013132
DIST thunderbird-8.0-zh-TW.xpi 423019 RMD160 3326d286df45aee39ea4dc9303c6e4459b41dba2 SHA1 a81c24ab001eb521a1b4e49da16c8f6914676641 SHA256 a6c78df16a242b1731709fdacae8fcfde630fe10469abfd6a696b46076e9059a
DIST thunderbird-8.0.source.tar.bz2 89435206 RMD160 373420ec009a7f28f12a64a0d55e9d959573974e SHA1 18b77e44f1653eb3d59056870f535e3c373d99fd SHA256 f728bd2dbc04e6c3a096d79a9ee320740f53794a28be307da8655c8fd90f77f5
-EBUILD thunderbird-8.0-r1.ebuild 9841 RMD160 ad3cff9e507bfa11042ff335e5df3169c8208e76 SHA1 44edb74edaa35fc2b8fc5219ee91906f04d9a8d7 SHA256 7b2bc7272973cbe02febf86f84ddb387a2a10229e5b91c647fd94f74823d6e7b
+EBUILD thunderbird-8.0-r1.ebuild 9851 RMD160 08eec1866071e6eaa02e8fe9825e17d7251db77f SHA1 26f5987ffc4291fd6b67cd9c741a40b02d9bb83f SHA256 4926d4d2f1b939e06d6d2818163fa38f2d1d299f5fb01941a84b4b6d11ed4f30
diff --git a/mail-client/thunderbird/thunderbird-8.0-r1.ebuild b/mail-client/thunderbird/thunderbird-8.0-r1.ebuild
index 3b0c6aa..515f4db 100644
--- a/mail-client/thunderbird/thunderbird-8.0-r1.ebuild
+++ b/mail-client/thunderbird/thunderbird-8.0-r1.ebuild
@@ -5,7 +5,7 @@
EAPI="3"
WANT_AUTOCONF="2.1"
-inherit flag-o-matic toolchain-funcs mozconfig-3 makeedit multilib mozextension autotools pax-utils python check-reqs
+inherit flag-o-matic toolchain-funcs mozconfig-3 makeedit multilib mozextension autotools pax-utils python check-reqs nsplugins
TB_PV="${PV/_beta/b}"
TB_P="${PN}-${TB_PV}"
diff --git a/www-client/firefox/Manifest b/www-client/firefox/Manifest
index fbe1d5d..fa6aeed 100644
--- a/www-client/firefox/Manifest
+++ b/www-client/firefox/Manifest
@@ -84,4 +84,4 @@ DIST firefox-8.0-zh-CN.xpi 243430 RMD160 50781f9c1e56671b71958962d8047f1c1e69e99
DIST firefox-8.0-zh-TW.xpi 244296 RMD160 b61ad8ada60b9841a23c72579b9f903773b70e77 SHA1 faa4fa00a67585fd9cfba9e6cea2d4e4dce0f938 SHA256 bf988457d2174eaeba9272a6d049e27431fc2413f3b43ee8bab2924675dc24fa
DIST firefox-8.0-zu.xpi 234633 RMD160 c8163fab204bf8b412345089cdc9a2a79aea4b27 SHA1 5120fdf77cbfd09d7cf211cfb1ec988eae1654b9 SHA256 856bfe9ea1251e1104046c1da1452298cd12280b8e281fa00a0618d7e91ab01f
DIST firefox-8.0.source.tar.bz2 70377448 RMD160 f87ec7668b2dcc1bb581b97e1dbe85e4b97cb31c SHA1 843cf4ad70d2fc4b16654c3ff9b080d3eb357452 SHA256 d950324ecd5362a648a891a66c3f2dde5e69b09f30ef8470b7759ec007691139
-EBUILD firefox-8.0.ebuild 11311 RMD160 4f8bf6729ae15eaedac46044b4e87d8c706c8cb4 SHA1 da4e2b771004822422ed96967bc3863e1531e13d SHA256 78ce720efdfb0d54020fa5cdea9d1b4ed1d00f90c4540d534e1ab7b34c77be4e
+EBUILD firefox-8.0.ebuild 11321 RMD160 5443df8f498301db440ffba2847b02a08710bfc2 SHA1 e82026df826470f2dd2047198e5bf4b5dde9dddb SHA256 0d8f0684852d94cd20775bd2eb1e3ff454d1a73af510325aa50aa44c5521623e
diff --git a/www-client/firefox/firefox-8.0.ebuild b/www-client/firefox/firefox-8.0.ebuild
index e41974a..89e3c3a 100644
--- a/www-client/firefox/firefox-8.0.ebuild
+++ b/www-client/firefox/firefox-8.0.ebuild
@@ -6,7 +6,7 @@ EAPI="3"
VIRTUALX_REQUIRED="pgo"
WANT_AUTOCONF="2.1"
-inherit flag-o-matic toolchain-funcs eutils gnome2-utils mozconfig-3 multilib pax-utils fdo-mime autotools mozextension versionator python virtualx
+inherit flag-o-matic toolchain-funcs eutils gnome2-utils mozconfig-3 multilib pax-utils fdo-mime autotools mozextension versionator python virtualx nsplugins
MAJ_FF_PV="$(get_version_component_range 1-2)" # 3.5, 3.6, 4.0, etc.
FF_PV="${PV/_alpha/a}" # Handle alpha for SRC_URI
diff --git a/www-client/seamonkey/Manifest b/www-client/seamonkey/Manifest
index 9f7acea..cd00d73 100644
--- a/www-client/seamonkey/Manifest
+++ b/www-client/seamonkey/Manifest
@@ -29,4 +29,4 @@ DIST seamonkey-2.5_beta4-sv-SE.xpi 871535 RMD160 6a0a7eeee3a7054b7989f1ffa853d8d
DIST seamonkey-2.5_beta4-tr.xpi 807205 RMD160 541bac93d2a5310594f40e4bf28af68dc402d05e SHA1 07e4695723b2852c9463a95843bc93cf38d87f57 SHA256 0c0a655ea10bcf9b86d25d9b58c9a8cae7fdae191c02fb63359d8f2fc14b9902
DIST seamonkey-2.5_beta4-zh-CN.xpi 837986 RMD160 6f45ba71684339b3c2de6db5413934e1ad56e687 SHA1 e63de8518475adf66b1b938a0cad7faca0879e21 SHA256 75952433c1268f3b0b8f363be774ed17f747b6dd7b7103df48c373343c2a0525
DIST seamonkey-2.5_beta4.source.tar.bz2 89481907 RMD160 1ed9a59457b7bafe2aed2071908822b98225dddc SHA1 74b8b9a415b97e4e3242db516fa57ed8b9f43dfe SHA256 10031a49b84542641bc93b40c3e8c3a56dd3aee90db47b49880ec1d100302231
-EBUILD seamonkey-2.5_beta4.ebuild 10089 RMD160 b65455a71643afc3a84d10a3bbfb048433db92f1 SHA1 f8a3e41795b8899b1b3d7a5e2c8ffbfea4ba7c7a SHA256 e0e124ed31eca4ad0ac1a488fbbd2704fee3ee47d0f4d74d1246ffc7e868c6ce
+EBUILD seamonkey-2.5_beta4.ebuild 10099 RMD160 d3ffeaf1ebb53a65f763cb57ca964f5177386ed3 SHA1 d3d7e30a455669e04be29aeb50e1fec30fa7eb96 SHA256 aa8952368cf901bd9b1e204043143d2e3b4bf94c4a56c03b0bd1bf6545cf77c8
diff --git a/www-client/seamonkey/seamonkey-2.5_beta4.ebuild b/www-client/seamonkey/seamonkey-2.5_beta4.ebuild
index d9ea39d..912b4d9 100644
--- a/www-client/seamonkey/seamonkey-2.5_beta4.ebuild
+++ b/www-client/seamonkey/seamonkey-2.5_beta4.ebuild
@@ -5,7 +5,7 @@
EAPI="3"
WANT_AUTOCONF="2.1"
-inherit flag-o-matic toolchain-funcs eutils mozconfig-3 makeedit multilib fdo-mime autotools mozextension python
+inherit flag-o-matic toolchain-funcs eutils mozconfig-3 makeedit multilib fdo-mime autotools mozextension python nsplugins
PATCH="${PN}-2.4.1-patches-01"
EMVER="1.3.3"
next reply other threads:[~2011-11-21 16:14 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-21 16:14 Jory Pratt [this message]
-- strict thread matches above, loose matches on Subject: below --
2013-01-16 4:39 [gentoo-commits] proj/mozilla:master commit in: mail-client/thunderbird/, www-client/firefox/, www-client/seamonkey/, eclass/ Jory Pratt
2013-01-16 20:40 Jory Pratt
2013-09-27 17:59 Ian Stakenvicius
2013-09-28 13:03 Jory Pratt
2014-09-05 20:13 Ian Stakenvicius
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=f0324ba32afe32db3311dfab9b9c783814f35b00.anarchy@gentoo \
--to=anarchy@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox