/[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.12 Revision 1.16
1# Copyright 1999-2004 Gentoo Foundation 1# Copyright 1999-2007 Gentoo Foundation
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.12 2007/02/23 19:50:03 graaff Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/xemacs-packages.eclass,v 1.16 2010/10/13 17:27:35 graaff 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
8INHERITED="$INHERITED $ECLASS"
9
10EXPORT_FUNCTIONS src_unpack src_compile src_install 8EXPORT_FUNCTIONS src_unpack src_compile src_install
11 9
12DEPEND="virtual/xemacs" 10RDEPEND="${RDEPEND} app-editors/xemacs"
11DEPEND="${DEPEND}"
13 12
14[ -z "$HOMEPAGE" ] && HOMEPAGE="http://xemacs.org/" 13[ -z "$HOMEPAGE" ] && HOMEPAGE="http://xemacs.org/"
15[ -z "$LICENSE" ] && LICENSE="GPL-2" 14[ -z "$LICENSE" ] && LICENSE="GPL-2"
16 15
17case "${PKG_CAT}" in 16case "${PKG_CAT}" in
21 "mule" ) 20 "mule" )
22 MY_INSTALL_DIR="/usr/lib/xemacs/mule-packages" ;; 21 MY_INSTALL_DIR="/usr/lib/xemacs/mule-packages" ;;
23 22
24 "contrib" ) 23 "contrib" )
25 MY_INSTALL_DIR="/usr/lib/xemacs/site-packages" ;; 24 MY_INSTALL_DIR="/usr/lib/xemacs/site-packages" ;;
25 *)
26 die "Unsupported package category in PKG_CAT (or unset)" ;;
26esac 27esac
27[ -n "$DEBUG" ] && einfo "MY_INSTALL_DIR is ${MY_INSTALL_DIR}" 28[ -n "$DEBUG" ] && einfo "MY_INSTALL_DIR is ${MY_INSTALL_DIR}"
28 29
29if [ -n "$EXPERIMENTAL" ] 30if [ -n "$EXPERIMENTAL" ]
30then 31then
42 einfo "Nothing to compile" 43 einfo "Nothing to compile"
43} 44}
44 45
45xemacs-packages_src_install() { 46xemacs-packages_src_install() {
46 dodir ${MY_INSTALL_DIR} 47 dodir ${MY_INSTALL_DIR}
47 cd ${D}${MY_INSTALL_DIR} 48 cd "${D}${MY_INSTALL_DIR}"
48 unpack ${A} 49 unpack ${A}
49} 50}

Legend:
Removed from v.1.12  
changed lines
  Added in v.1.16

  ViewVC Help
Powered by ViewVC 1.1.20