Gentoo Archives: gentoo-commits

From: "Jory Pratt (anarchy)" <anarchy@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in eclass: ChangeLog nsplugins.eclass
Date: Mon, 21 Nov 2011 16:32:08
Message-Id: 20111121163150.108972004B@flycatcher.gentoo.org
1 anarchy 11/11/21 16:31:49
2
3 Modified: ChangeLog nsplugins.eclass
4 Log:
5 assign nsplugins.eclass to mozilla herd, add share_plugins_dir function for mozilla applications.
6
7 Revision Changes Path
8 1.24 eclass/ChangeLog
9
10 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/ChangeLog?rev=1.24&view=markup
11 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/ChangeLog?rev=1.24&content-type=text/plain
12 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/ChangeLog?r1=1.23&r2=1.24
13
14 Index: ChangeLog
15 ===================================================================
16 RCS file: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v
17 retrieving revision 1.23
18 retrieving revision 1.24
19 diff -u -r1.23 -r1.24
20 --- ChangeLog 21 Nov 2011 15:29:36 -0000 1.23
21 +++ ChangeLog 21 Nov 2011 16:31:49 -0000 1.24
22 @@ -1,6 +1,10 @@
23 # ChangeLog for eclass directory
24 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
25 -# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.23 2011/11/21 15:29:36 anarchy Exp $
26 +# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.24 2011/11/21 16:31:49 anarchy Exp $
27 +
28 + 21 Nov 2011; Jory A. Pratt <anarchy@g.o> nsplugins.eclass:
29 + Assign to mozilla herd, add share_plugins_dir function for mozilla
30 + applications.
31
32 21 Nov 2011; Jory A. Pratt <anarchy@g.o> mozconfig-3.eclass:
33 Fix handling of crashreporter use.
34
35
36
37 1.27 eclass/nsplugins.eclass
38
39 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/nsplugins.eclass?rev=1.27&view=markup
40 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/nsplugins.eclass?rev=1.27&content-type=text/plain
41 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/nsplugins.eclass?r1=1.26&r2=1.27
42
43 Index: nsplugins.eclass
44 ===================================================================
45 RCS file: /var/cvsroot/gentoo-x86/eclass/nsplugins.eclass,v
46 retrieving revision 1.26
47 retrieving revision 1.27
48 diff -u -r1.26 -r1.27
49 --- nsplugins.eclass 5 Oct 2011 15:14:07 -0000 1.26
50 +++ nsplugins.eclass 21 Nov 2011 16:31:49 -0000 1.27
51 @@ -1,10 +1,16 @@
52 # Copyright 1999-2009 Gentoo Foundation
53 # Distributed under the terms of the GNU General Public License v2
54 -# $Header: /var/cvsroot/gentoo-x86/eclass/nsplugins.eclass,v 1.26 2011/10/05 15:14:07 scarabeus Exp $
55 +# $Header: /var/cvsroot/gentoo-x86/eclass/nsplugins.eclass,v 1.27 2011/11/21 16:31:49 anarchy Exp $
56 #
57 -# Author: Martin Schlemmer <azarah@g.o>
58 -#
59 -# Just some re-usable functions for the netscape/moz plugins sharing
60 +# @ECLASS: nsplugins.eclass
61 +# @MAINTAINER:
62 +# Mozilla Team <mozilla@g.o>
63 +# @AUTHOR:
64 +# Original Author: Martin Schlemmer <azarah@g.o>
65 +# @BLURB: reusable functions for netscape/moz plugin sharing
66 +# @DESCRIPTION:
67 +# Reusable functions that promote sharing of netscape/moz plugins, also provides
68 +# share_plugins_dir function for mozilla applications.
69
70 inherit eutils
71
72 @@ -47,3 +53,21 @@
73 dodir /usr/$(get_libdir)/${PLUGINS_DIR}
74 dosym ${1} /usr/$(get_libdir)/${PLUGINS_DIR}/$(basename ${1})
75 }
76 +
77 +# This function ensures we use proper plugin path for Gentoo.
78 +# This should only be used by mozilla packages.
79 +# ${MOZILLA_FIVE_HOME} must be defined in src_install to support
80 +share_plugins_dir() {
81 + if [[ ${PN} == seamonkey ]] ; then
82 + rm -rf "${D}"${MOZILLA_FIVE_HOME}/plugins \
83 + || die "failed to remove existing plugins dir"
84 + fi
85 +
86 + if [[ ${PN} == *-bin ]] ; then
87 + PLUGIN_BASE_PATH="/usr/$(get_libdir)"
88 + else
89 + PLUGIN_BASE_PATH=".."
90 + fi
91 +
92 + dosym "${PLUGIN_BASE_PATH}/nsbrowser/plugins" "${MOZILLA_FIVE_HOME}/plugins"
93 +}