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

Contents of /eclass/xemacs-packages.eclass

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.12 - (hide annotations) (download)
Fri Feb 23 19:50:03 2007 UTC (7 years, 5 months ago) by graaff
Branch: MAIN
Changes since 1.11: +1 -2 lines
Remove deprecated ECLASS variable

1 vapier 1.8 # Copyright 1999-2004 Gentoo Foundation
2 rendhalver 1.1 # Distributed under the terms of the GNU General Public License v2
3 graaff 1.12 # $Header: /var/cvsroot/gentoo-x86/eclass/xemacs-packages.eclass,v 1.11 2006/11/12 08:27:08 graaff 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 INHERITED="$INHERITED $ECLASS"
9    
10     EXPORT_FUNCTIONS src_unpack src_compile src_install
11 rendhalver 1.1
12 mr_bones_ 1.7 DEPEND="virtual/xemacs"
13 rendhalver 1.2
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 graaff 1.11 [ -z "$SRC_URI" ] && SRC_URI="http://ftp.xemacs.org/pub/xemacs/packages/${P}-pkg.tar.gz"
34 rendhalver 1.1 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 vapier 1.5 }

  ViewVC Help
Powered by ViewVC 1.1.20