| 1 |
betelgeuse |
1.13 |
# Copyright 1999-2007 Gentoo Foundation
|
| 2 |
rendhalver |
1.1 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
graaff |
1.14 |
# $Header: /var/cvsroot/gentoo-x86/eclass/xemacs-packages.eclass,v 1.13 2007/03/11 23:09:53 betelgeuse Exp $
|
| 4 |
vapier |
1.5 |
#
|
| 5 |
rendhalver |
1.1 |
# xemacs-packages eclass inherited by all xemacs packages
|
| 6 |
|
|
# $PKG_CAT need's to be set before inheriting xemacs-packages
|
| 7 |
|
|
|
| 8 |
graaff |
1.11 |
EXPORT_FUNCTIONS src_unpack src_compile src_install
|
| 9 |
rendhalver |
1.1 |
|
| 10 |
mr_bones_ |
1.7 |
DEPEND="virtual/xemacs"
|
| 11 |
rendhalver |
1.2 |
|
| 12 |
rendhalver |
1.1 |
[ -z "$HOMEPAGE" ] && HOMEPAGE="http://xemacs.org/"
|
| 13 |
|
|
[ -z "$LICENSE" ] && LICENSE="GPL-2"
|
| 14 |
|
|
|
| 15 |
|
|
case "${PKG_CAT}" in
|
| 16 |
|
|
"standard" )
|
| 17 |
|
|
MY_INSTALL_DIR="/usr/lib/xemacs/xemacs-packages" ;;
|
| 18 |
|
|
|
| 19 |
|
|
"mule" )
|
| 20 |
|
|
MY_INSTALL_DIR="/usr/lib/xemacs/mule-packages" ;;
|
| 21 |
|
|
|
| 22 |
|
|
"contrib" )
|
| 23 |
|
|
MY_INSTALL_DIR="/usr/lib/xemacs/site-packages" ;;
|
| 24 |
|
|
esac
|
| 25 |
|
|
[ -n "$DEBUG" ] && einfo "MY_INSTALL_DIR is ${MY_INSTALL_DIR}"
|
| 26 |
|
|
|
| 27 |
|
|
if [ -n "$EXPERIMENTAL" ]
|
| 28 |
|
|
then
|
| 29 |
|
|
[ -z "$SRC_URI" ] && SRC_URI="ftp://ftp.xemacs.org/beta/experimental/packages/${P}-pkg.tar.gz"
|
| 30 |
|
|
else
|
| 31 |
graaff |
1.11 |
[ -z "$SRC_URI" ] && SRC_URI="http://ftp.xemacs.org/pub/xemacs/packages/${P}-pkg.tar.gz"
|
| 32 |
rendhalver |
1.1 |
fi
|
| 33 |
|
|
[ -n "$DEBUG" ] && einfo "SRC_URI is ${SRC_URI}"
|
| 34 |
|
|
|
| 35 |
|
|
xemacs-packages_src_unpack() {
|
| 36 |
|
|
return 0
|
| 37 |
|
|
}
|
| 38 |
|
|
|
| 39 |
|
|
xemacs-packages_src_compile() {
|
| 40 |
|
|
einfo "Nothing to compile"
|
| 41 |
|
|
}
|
| 42 |
|
|
|
| 43 |
|
|
xemacs-packages_src_install() {
|
| 44 |
|
|
dodir ${MY_INSTALL_DIR}
|
| 45 |
graaff |
1.14 |
cd "${D}${MY_INSTALL_DIR}"
|
| 46 |
rendhalver |
1.1 |
unpack ${A}
|
| 47 |
vapier |
1.5 |
}
|