| 1 | # Copyright 1999-2002 Gentoo Technologies, Inc. |
1 | # Copyright 1999-2002 Gentoo Technologies, Inc. |
| 2 | # Distributed under the terms of the GNU General Public License v2 |
2 | # Distributed under the terms of the GNU General Public License v2 |
| 3 | # Author: Martin Schlemmer <azarah@gentoo.org> |
3 | # Author: Martin Schlemmer <azarah@gentoo.org> |
| 4 | # $Header: /var/cvsroot/gentoo-x86/eclass/nsplugins.eclass,v 1.6 2002/12/13 20:50:33 phoenix Exp $ |
4 | # $Header: /var/cvsroot/gentoo-x86/eclass/nsplugins.eclass,v 1.7 2002/12/23 20:35:38 azarah Exp $ |
| 5 | # Just some re-usable functions for the netscape/moz plugins sharing |
5 | # Just some re-usable functions for the netscape/moz plugins sharing |
| 6 | |
6 | |
| 7 | ECLASS=nsplugins |
7 | ECLASS=nsplugins |
| 8 | INHERITED="$INHERITED $ECLASS" |
8 | INHERITED="$INHERITED $ECLASS" |
| 9 | |
9 | |
| … | |
… | |
| 14 | # This function move the plugin dir in src_install() to |
14 | # This function move the plugin dir in src_install() to |
| 15 | # ${D}/usr/lib/${PLUGIN_DIR}. First argument should be |
15 | # ${D}/usr/lib/${PLUGIN_DIR}. First argument should be |
| 16 | # the full path (without $D) to old plugin dir. |
16 | # the full path (without $D) to old plugin dir. |
| 17 | src_mv_plugins() { |
17 | src_mv_plugins() { |
| 18 | |
18 | |
| 19 | # Move plugins dir |
19 | # Move plugins dir. We use keepdir so that it might not be unmerged |
|
|
20 | # by mistake ... |
| 20 | dodir /usr/lib/${PLUGINS_DIR} |
21 | keepdir /usr/lib/${PLUGINS_DIR} |
| 21 | cp -a ${D}/$1/* ${D}/usr/lib/${PLUGINS_DIR} |
22 | cp -a ${D}/$1/* ${D}/usr/lib/${PLUGINS_DIR} |
| 22 | rm -rf ${D}/$1 |
23 | rm -rf ${D}/$1 |
| 23 | dosym ../${PLUGINS_DIR} $1 |
24 | dosym ../${PLUGINS_DIR} $1 |
| 24 | } |
25 | } |
| 25 | |
26 | |