1 | # Copyright 1999-2004 Gentoo Foundation |
1 | # Copyright 1999-2004 Gentoo Foundation |
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 | # $Header: /var/cvsroot/gentoo-x86/eclass/sgml-catalog.eclass,v 1.15 2010/05/13 21:38:11 darkside Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/sgml-catalog.eclass,v 1.16 2010/06/16 03:36:06 abcd Exp $ |
4 | # |
4 | # |
5 | # Author Matthew Turk <satai@gentoo.org> |
5 | # Author Matthew Turk <satai@gentoo.org> |
6 | |
6 | |
7 | inherit base |
7 | inherit base |
8 | |
8 | |
… | |
… | |
19 | } |
19 | } |
20 | |
20 | |
21 | sgml-catalog_cat_doinstall() { |
21 | sgml-catalog_cat_doinstall() { |
22 | debug-print function $FUNCNAME $* |
22 | debug-print function $FUNCNAME $* |
23 | has "${EAPI:-0}" 0 1 2 && ! use prefix && EPREFIX= |
23 | has "${EAPI:-0}" 0 1 2 && ! use prefix && EPREFIX= |
24 | "${EPREFIX}"/usr/bin/install-catalog --add "${EPREFIX}/$1" "${EPREFIX}/$2" &>/dev/null |
24 | "${EPREFIX}"/usr/bin/install-catalog --add "${EPREFIX}$1" "${EPREFIX}$2" &>/dev/null |
25 | } |
25 | } |
26 | |
26 | |
27 | sgml-catalog_cat_doremove() { |
27 | sgml-catalog_cat_doremove() { |
28 | debug-print function $FUNCNAME $* |
28 | debug-print function $FUNCNAME $* |
29 | has "${EAPI:-0}" 0 1 2 && ! use prefix && EPREFIX= |
29 | has "${EAPI:-0}" 0 1 2 && ! use prefix && EPREFIX= |
30 | "${EPREFIX}"/usr/bin/install-catalog --remove "${EPREFIX}/$1" "${EPREFIX}/$2" &>/dev/null |
30 | "${EPREFIX}"/usr/bin/install-catalog --remove "${EPREFIX}$1" "${EPREFIX}$2" &>/dev/null |
31 | } |
31 | } |
32 | |
32 | |
33 | sgml-catalog_pkg_postinst() { |
33 | sgml-catalog_pkg_postinst() { |
34 | debug-print function $FUNCNAME $* |
34 | debug-print function $FUNCNAME $* |
35 | has "${EAPI:-0}" 0 1 2 && ! use prefix && EPREFIX= |
35 | has "${EAPI:-0}" 0 1 2 && ! use prefix && EPREFIX= |