/[gentoo-x86]/eclass/xemacs-packages.eclass
Gentoo

Contents of /eclass/xemacs-packages.eclass

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.9 - (show annotations) (download)
Wed Jul 6 20:20:04 2005 UTC (9 years, 2 months ago) by agriffis
Branch: MAIN
Changes since 1.8: +1 -2 lines
Remove ECLASS= and INHERITED= which haven't been necessary for a long time now

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

  ViewVC Help
Powered by ViewVC 1.1.20