| 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/xemacs-packages.eclass,v 1.1.1.1 2005/11/30 09:59:30 chriswhite Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/xemacs-packages.eclass,v 1.11 2006/11/12 08:27:08 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 | ECLASS="xemacs-packages" |
|
|
9 | INHERITED="$INHERITED $ECLASS" |
|
|
10 | |
| 8 | EXPORT_FUNCTIONS src_unpack src_install |
11 | EXPORT_FUNCTIONS src_unpack src_compile src_install |
| 9 | |
12 | |
| 10 | DEPEND="virtual/xemacs" |
13 | DEPEND="virtual/xemacs" |
| 11 | |
14 | |
| 12 | [ -z "$HOMEPAGE" ] && HOMEPAGE="http://xemacs.org/" |
15 | [ -z "$HOMEPAGE" ] && HOMEPAGE="http://xemacs.org/" |
| 13 | [ -z "$LICENSE" ] && LICENSE="GPL-2" |
16 | [ -z "$LICENSE" ] && LICENSE="GPL-2" |
| … | |
… | |
| 26 | |
29 | |
| 27 | if [ -n "$EXPERIMENTAL" ] |
30 | if [ -n "$EXPERIMENTAL" ] |
| 28 | then |
31 | then |
| 29 | [ -z "$SRC_URI" ] && SRC_URI="ftp://ftp.xemacs.org/beta/experimental/packages/${P}-pkg.tar.gz" |
32 | [ -z "$SRC_URI" ] && SRC_URI="ftp://ftp.xemacs.org/beta/experimental/packages/${P}-pkg.tar.gz" |
| 30 | else |
33 | else |
| 31 | [ -z "$SRC_URI" ] && SRC_URI="ftp://ftp.xemacs.org/packages/${P}-pkg.tar.gz" |
34 | [ -z "$SRC_URI" ] && SRC_URI="http://ftp.xemacs.org/pub/xemacs/packages/${P}-pkg.tar.gz" |
| 32 | fi |
35 | fi |
| 33 | [ -n "$DEBUG" ] && einfo "SRC_URI is ${SRC_URI}" |
36 | [ -n "$DEBUG" ] && einfo "SRC_URI is ${SRC_URI}" |
| 34 | |
37 | |
| 35 | xemacs-packages_src_unpack() { |
38 | xemacs-packages_src_unpack() { |
| 36 | return 0 |
39 | return 0 |