| 1 | # Copyright 1999-2007 Gentoo Foundation |
1 | # Copyright 1999-2007 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/xemacs-packages.eclass,v 1.15 2009/06/21 14:53:12 graaff Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/xemacs-packages.eclass,v 1.16 2010/10/13 17:27:35 graaff Exp $ |
| 4 | # |
4 | # |
| 5 | # xemacs-packages eclass inherited by all xemacs packages |
5 | # xemacs-packages eclass inherited by all xemacs packages |
| 6 | # $PKG_CAT need's to be set before inheriting xemacs-packages |
6 | # $PKG_CAT need's to be set before inheriting xemacs-packages |
| 7 | |
7 | |
| 8 | EXPORT_FUNCTIONS src_unpack src_compile src_install |
8 | EXPORT_FUNCTIONS src_unpack src_compile src_install |
| 9 | |
9 | |
| 10 | DEPEND="app-editors/xemacs" |
10 | RDEPEND="${RDEPEND} app-editors/xemacs" |
|
|
11 | DEPEND="${DEPEND}" |
| 11 | |
12 | |
| 12 | [ -z "$HOMEPAGE" ] && HOMEPAGE="http://xemacs.org/" |
13 | [ -z "$HOMEPAGE" ] && HOMEPAGE="http://xemacs.org/" |
| 13 | [ -z "$LICENSE" ] && LICENSE="GPL-2" |
14 | [ -z "$LICENSE" ] && LICENSE="GPL-2" |
| 14 | |
15 | |
| 15 | case "${PKG_CAT}" in |
16 | case "${PKG_CAT}" in |
| … | |
… | |
| 19 | "mule" ) |
20 | "mule" ) |
| 20 | MY_INSTALL_DIR="/usr/lib/xemacs/mule-packages" ;; |
21 | MY_INSTALL_DIR="/usr/lib/xemacs/mule-packages" ;; |
| 21 | |
22 | |
| 22 | "contrib" ) |
23 | "contrib" ) |
| 23 | MY_INSTALL_DIR="/usr/lib/xemacs/site-packages" ;; |
24 | MY_INSTALL_DIR="/usr/lib/xemacs/site-packages" ;; |
|
|
25 | *) |
|
|
26 | die "Unsupported package category in PKG_CAT (or unset)" ;; |
| 24 | esac |
27 | esac |
| 25 | [ -n "$DEBUG" ] && einfo "MY_INSTALL_DIR is ${MY_INSTALL_DIR}" |
28 | [ -n "$DEBUG" ] && einfo "MY_INSTALL_DIR is ${MY_INSTALL_DIR}" |
| 26 | |
29 | |
| 27 | if [ -n "$EXPERIMENTAL" ] |
30 | if [ -n "$EXPERIMENTAL" ] |
| 28 | then |
31 | then |