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

Contents of /eclass/xemacs-packages.eclass

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Mon Dec 16 09:54:23 2002 UTC (11 years, 6 months ago) by rendhalver
Branch: MAIN
new eclass for xemacs packages

1 # Copyright 1999-2002 Gentoo Technologies, Inc.
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: $
4
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 [ -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 KEYWORDS="~x86 ~ppc ~alpha"
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 # chmod -R ugo=rX *
50 }

  ViewVC Help
Powered by ViewVC 1.1.20