/[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.11 Revision 1.19
1# Copyright 1999-2004 Gentoo Foundation 1# Copyright 1999-2011 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.11 2006/11/12 08:27:08 graaff Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/xemacs-packages.eclass,v 1.19 2011/12/27 17:55:13 fauli Exp $
4#
5# xemacs-packages eclass inherited by all xemacs packages
6# $PKG_CAT need's to be set before inheriting xemacs-packages
7 4
8ECLASS="xemacs-packages" 5# @ECLASS: xemacs-packages.eclass
9INHERITED="$INHERITED $ECLASS" 6# @MAINTAINER:
7# xemacs@gentoo.org
8# @BLURB: Eclass to support elisp packages distributed by XEmacs.
9# @DESCRIPTION:
10# This eclass supports ebuilds for packages distributed by XEmacs.
10 11
11EXPORT_FUNCTIONS src_unpack src_compile src_install 12EXPORT_FUNCTIONS src_unpack src_compile src_install
12 13
13DEPEND="virtual/xemacs" 14RDEPEND="${RDEPEND} app-editors/xemacs"
15DEPEND="${DEPEND}"
14 16
15[ -z "$HOMEPAGE" ] && HOMEPAGE="http://xemacs.org/" 17[ -z "$HOMEPAGE" ] && HOMEPAGE="http://xemacs.org/"
16[ -z "$LICENSE" ] && LICENSE="GPL-2" 18[ -z "$LICENSE" ] && LICENSE="GPL-2"
19
20# @ECLASS-VARIABLE: PKG_CAT
21# @REQUIRED
22# @DESCRIPTION:
23# The package category that the package is in. Can be either standard,
24# mule, or contrib.
17 25
18case "${PKG_CAT}" in 26case "${PKG_CAT}" in
19 "standard" ) 27 "standard" )
20 MY_INSTALL_DIR="/usr/lib/xemacs/xemacs-packages" ;; 28 MY_INSTALL_DIR="/usr/lib/xemacs/xemacs-packages" ;;
21 29
22 "mule" ) 30 "mule" )
23 MY_INSTALL_DIR="/usr/lib/xemacs/mule-packages" ;; 31 MY_INSTALL_DIR="/usr/lib/xemacs/mule-packages" ;;
24 32
25 "contrib" ) 33 "contrib" )
26 MY_INSTALL_DIR="/usr/lib/xemacs/site-packages" ;; 34 MY_INSTALL_DIR="/usr/lib/xemacs/site-packages" ;;
35 *)
36 die "Unsupported package category in PKG_CAT (or unset)" ;;
27esac 37esac
28[ -n "$DEBUG" ] && einfo "MY_INSTALL_DIR is ${MY_INSTALL_DIR}" 38[ -n "$DEBUG" ] && einfo "MY_INSTALL_DIR is ${MY_INSTALL_DIR}"
29 39
40# @ECLASS-VARIABLE: EXPERIMENTAL
41# @DEFAULT_UNSET
42# @DESCRIPTION:
43# If set then the package is downloaded from the experimental packages
44# repository, which is the staging area for packages upstream. Packages
45# in the experimental repository are auto-generated from XEmacs VCS, so
46# they may not be well-tested.
47
30if [ -n "$EXPERIMENTAL" ] 48if [ -n "$EXPERIMENTAL" ]
31then 49then
32 [ -z "$SRC_URI" ] && SRC_URI="ftp://ftp.xemacs.org/beta/experimental/packages/${P}-pkg.tar.gz" 50 [ -z "$SRC_URI" ] && SRC_URI="http://ftp.xemacs.org/pub/xemacs/beta/experimental/packages/${P}-pkg.tar.gz"
33else 51else
34 [ -z "$SRC_URI" ] && SRC_URI="http://ftp.xemacs.org/pub/xemacs/packages/${P}-pkg.tar.gz" 52 [ -z "$SRC_URI" ] && SRC_URI="http://ftp.xemacs.org/pub/xemacs/packages/${P}-pkg.tar.gz"
35fi 53fi
36[ -n "$DEBUG" ] && einfo "SRC_URI is ${SRC_URI}" 54[ -n "$DEBUG" ] && einfo "SRC_URI is ${SRC_URI}"
37 55
43 einfo "Nothing to compile" 61 einfo "Nothing to compile"
44} 62}
45 63
46xemacs-packages_src_install() { 64xemacs-packages_src_install() {
47 dodir ${MY_INSTALL_DIR} 65 dodir ${MY_INSTALL_DIR}
48 cd ${D}${MY_INSTALL_DIR} 66 cd "${D}${MY_INSTALL_DIR}"
49 unpack ${A} 67 unpack ${A}
50} 68}

Legend:
Removed from v.1.11  
changed lines
  Added in v.1.19

  ViewVC Help
Powered by ViewVC 1.1.20