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

Contents of /eclass/xemacs-packages.eclass

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (hide annotations) (download)
Mon Jan 6 14:00:30 2003 UTC (11 years, 10 months ago) by rendhalver
Branch: MAIN
CVS Tags: GENTOO_1_4_SNAP_2003010800
Changes since 1.2: +3 -3 lines
fixing KEYWORDS

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

  ViewVC Help
Powered by ViewVC 1.1.20