1 |
commit: 96ba036a7a84d7418b2db8cca51acef2010da3ff |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun May 30 22:02:42 2021 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun May 30 22:03:32 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=96ba036a |
7 |
|
8 |
nsplugins.eclass: Remove last-rited eclass |
9 |
|
10 |
Closes: https://bugs.gentoo.org/671680 |
11 |
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> |
12 |
|
13 |
eclass/nsplugins.eclass | 80 ------------------------------------------------- |
14 |
1 file changed, 80 deletions(-) |
15 |
|
16 |
diff --git a/eclass/nsplugins.eclass b/eclass/nsplugins.eclass |
17 |
deleted file mode 100644 |
18 |
index b4dd39e7493..00000000000 |
19 |
--- a/eclass/nsplugins.eclass |
20 |
+++ /dev/null |
21 |
@@ -1,80 +0,0 @@ |
22 |
-# Copyright 1999-2013 Gentoo Foundation |
23 |
-# Distributed under the terms of the GNU General Public License v2 |
24 |
-# |
25 |
-# @DEAD |
26 |
-# @ECLASS: nsplugins.eclass |
27 |
-# @MAINTAINER: |
28 |
-# Mozilla Team <mozilla@g.o> |
29 |
-# @AUTHOR: |
30 |
-# Original Author: Martin Schlemmer <azarah@g.o> |
31 |
-# @BLURB: reusable functions for netscape/moz plugin sharing |
32 |
-# @DESCRIPTION: |
33 |
-# Reusable functions that promote sharing of netscape/moz plugins, also provides |
34 |
-# share_plugins_dir function for mozilla applications. |
35 |
- |
36 |
-inherit eutils multilib versionator mozextension |
37 |
- |
38 |
-PLUGINS_DIR="nsbrowser/plugins" |
39 |
- |
40 |
-# This function move the plugin dir in src_install() to |
41 |
-# ${D}/usr/$(get_libdir)/${PLUGIN_DIR}. First argument should be |
42 |
-# the full path (without $D) to old plugin dir. |
43 |
-src_mv_plugins() { |
44 |
- has "${EAPI:-0}" 0 1 2 && ! use prefix && ED="${D}" |
45 |
- |
46 |
- # Move plugins dir. We use keepdir so that it might not be unmerged |
47 |
- # by mistake ... |
48 |
- keepdir /usr/$(get_libdir)/${PLUGINS_DIR} |
49 |
- cp -a "${ED}"/$1/* "${ED}"/usr/$(get_libdir)/${PLUGINS_DIR} |
50 |
- rm -rf "${ED}"/$1 |
51 |
- dosym /usr/$(get_libdir)/${PLUGINS_DIR} $1 |
52 |
-} |
53 |
- |
54 |
-# This function move plugins in pkg_preinst() in old dir to |
55 |
-# ${ROOT}/usr/$(get_libdir)/${PLUGIN_DIR}. First argument should be |
56 |
-# the full path (without $ROOT) to old plugin dir. |
57 |
-pkg_mv_plugins() { |
58 |
- has "${EAPI:-0}" 0 1 2 && ! use prefix && ED="${ROOT}" |
59 |
- |
60 |
- # Move old plugins dir |
61 |
- if [ -d "${ROOT}/$1" -a ! -L "${ROOT}/$1" ] |
62 |
- then |
63 |
- mkdir -p "${EROOT}"/usr/$(get_libdir)/${PLUGINS_DIR} |
64 |
- cp -a "${EROOT}"/$1/* "${EROOT}"/usr/$(get_libdir)/${PLUGINS_DIR} |
65 |
- rm -rf "${EROOT}"/$1 |
66 |
- fi |
67 |
-} |
68 |
- |
69 |
-# This function installs a plugin with dosym to PLUGINS_DIR. |
70 |
-# First argument should be the plugin file. |
71 |
-inst_plugin() { |
72 |
- if [[ -z "${1}" ]]; then |
73 |
- eerror "The plugin file \"${1}\" does not exist." |
74 |
- die "No such file or directory." |
75 |
- fi |
76 |
- |
77 |
- dodir /usr/$(get_libdir)/${PLUGINS_DIR} |
78 |
- dosym ${1} /usr/$(get_libdir)/${PLUGINS_DIR}/$(basename ${1}) |
79 |
-} |
80 |
- |
81 |
-# This function ensures we use proper plugin path for Gentoo. |
82 |
-# This should only be used by mozilla packages. |
83 |
-# ${MOZILLA_FIVE_HOME} must be defined in src_install to support |
84 |
-share_plugins_dir() { |
85 |
- if [[ ${PN} == seamonkey ]] ; then |
86 |
- rm -rf "${D}"${MOZILLA_FIVE_HOME}/plugins \ |
87 |
- || die "failed to remove existing plugins dir" |
88 |
- fi |
89 |
- |
90 |
- if [[ ${PN} == *-bin ]] ; then |
91 |
- PLUGIN_BASE_PATH="/usr/$(get_libdir)" |
92 |
- else |
93 |
- PLUGIN_BASE_PATH=".." |
94 |
- fi |
95 |
- |
96 |
- if $(mozversion_extension_location) ; then |
97 |
- dosym "${PLUGIN_BASE_PATH}/nsbrowser/plugins" "${MOZILLA_FIVE_HOME}/browser/plugins" |
98 |
- else |
99 |
- dosym "${PLUGIN_BASE_PATH}/nsbrowser/plugins" "${MOZILLA_FIVE_HOME}/plugins" |
100 |
- fi |
101 |
-} |