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

Contents of /eclass/xemacs-packages.eclass

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (hide annotations) (download)
Thu Jan 16 15:12:06 2003 UTC (11 years, 11 months ago) by rendhalver
Branch: MAIN
Changes since 1.3: +1 -3 lines
moved KEYWORDS to ebuilds

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.4 # $Header: /home/cvsroot/gentoo-x86/eclass/xemacs-packages.eclass,v 1.3 2003/01/06 14:00:30 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     else
33     [ -z "$SRC_URI" ] && SRC_URI="ftp://ftp.xemacs.org/packages/${P}-pkg.tar.gz"
34     fi
35     [ -n "$DEBUG" ] && einfo "SRC_URI is ${SRC_URI}"
36    
37     xemacs-packages_src_unpack() {
38     return 0
39     }
40    
41     xemacs-packages_src_compile() {
42     einfo "Nothing to compile"
43     }
44    
45     xemacs-packages_src_install() {
46     dodir ${MY_INSTALL_DIR}
47     cd ${D}${MY_INSTALL_DIR}
48     unpack ${A}
49     }

  ViewVC Help
Powered by ViewVC 1.1.20