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

Contents of /eclass/xemacs-packages.eclass

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.8 - (show annotations) (download)
Fri Jun 25 00:39:48 2004 UTC (10 years, 1 month ago) by vapier
Branch: MAIN
Changes since 1.7: +2 -2 lines
update the copyright info

1 # Copyright 1999-2004 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /home/cvsroot/gentoo-x86/eclass/xemacs-packages.eclass,v 1.7 2004/04/11 05:46:09 mr_bones_ 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 ECLASS=xemacs-packages
9 INHERITED="${INHERITED} ${ECLASS}"
10 EXPORT_FUNCTIONS src_unpack src_install
11
12 DEPEND="virtual/xemacs"
13
14 [ -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