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

Diff of /eclass/xemacs-packages.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.1 Revision 1.6
1# Copyright 1999-2002 Gentoo Technologies, Inc. 1# Copyright 1999-2003 Gentoo Technologies, Inc.
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/eclass/xemacs-packages.eclass,v 1.1 2002/12/16 09:54:23 rendhalver Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/xemacs-packages.eclass,v 1.6 2003/07/22 01:47:50 msterret Exp $
4 4#
5# xemacs-packages eclass inherited by all xemacs packages 5# xemacs-packages eclass inherited by all xemacs packages
6# $PKG_CAT need's to be set before inheriting xemacs-packages 6# $PKG_CAT need's to be set before inheriting xemacs-packages
7 7
8ECLASS=xemacs-packages 8ECLASS=xemacs-packages
9INHERITED="${INHERITED} ${ECLASS}" 9INHERITED="${INHERITED} ${ECLASS}"
10EXPORT_FUNCTIONS src_unpack src_install 10EXPORT_FUNCTIONS src_unpack src_install
11
12newdepend "virtual/xemacs"
11 13
12[ -z "$HOMEPAGE" ] && HOMEPAGE="http://xemacs.org/" 14[ -z "$HOMEPAGE" ] && HOMEPAGE="http://xemacs.org/"
13[ -z "$LICENSE" ] && LICENSE="GPL-2" 15[ -z "$LICENSE" ] && LICENSE="GPL-2"
14 16
15case "${PKG_CAT}" in 17case "${PKG_CAT}" in
21 23
22 "contrib" ) 24 "contrib" )
23 MY_INSTALL_DIR="/usr/lib/xemacs/site-packages" ;; 25 MY_INSTALL_DIR="/usr/lib/xemacs/site-packages" ;;
24esac 26esac
25[ -n "$DEBUG" ] && einfo "MY_INSTALL_DIR is ${MY_INSTALL_DIR}" 27[ -n "$DEBUG" ] && einfo "MY_INSTALL_DIR is ${MY_INSTALL_DIR}"
26
27KEYWORDS="~x86 ~ppc ~alpha"
28 28
29if [ -n "$EXPERIMENTAL" ] 29if [ -n "$EXPERIMENTAL" ]
30then 30then
31 [ -z "$SRC_URI" ] && SRC_URI="ftp://ftp.xemacs.org/beta/experimental/packages/${P}-pkg.tar.gz" 31 [ -z "$SRC_URI" ] && SRC_URI="ftp://ftp.xemacs.org/beta/experimental/packages/${P}-pkg.tar.gz"
32else 32else
44 44
45xemacs-packages_src_install() { 45xemacs-packages_src_install() {
46 dodir ${MY_INSTALL_DIR} 46 dodir ${MY_INSTALL_DIR}
47 cd ${D}${MY_INSTALL_DIR} 47 cd ${D}${MY_INSTALL_DIR}
48 unpack ${A} 48 unpack ${A}
49# chmod -R ugo=rX *
50} 49}

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.6

  ViewVC Help
Powered by ViewVC 1.1.20