/[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.17 Revision 1.18
1# Copyright 1999-2007 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.17 2011/05/24 06:19:32 graaff Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/xemacs-packages.eclass,v 1.18 2011/06/04 07:53:54 graaff Exp $
4# 4
5# xemacs-packages eclass inherited by all xemacs packages 5# @ECLASS: xemacs-packages.eclass
6# $PKG_CAT need's to be set before inheriting xemacs-packages 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.
7 11
8EXPORT_FUNCTIONS src_unpack src_compile src_install 12EXPORT_FUNCTIONS src_unpack src_compile src_install
9 13
10RDEPEND="${RDEPEND} app-editors/xemacs" 14RDEPEND="${RDEPEND} app-editors/xemacs"
11DEPEND="${DEPEND}" 15DEPEND="${DEPEND}"
12 16
13[ -z "$HOMEPAGE" ] && HOMEPAGE="http://xemacs.org/" 17[ -z "$HOMEPAGE" ] && HOMEPAGE="http://xemacs.org/"
14[ -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.
15 25
16case "${PKG_CAT}" in 26case "${PKG_CAT}" in
17 "standard" ) 27 "standard" )
18 MY_INSTALL_DIR="/usr/lib/xemacs/xemacs-packages" ;; 28 MY_INSTALL_DIR="/usr/lib/xemacs/xemacs-packages" ;;
19 29
24 MY_INSTALL_DIR="/usr/lib/xemacs/site-packages" ;; 34 MY_INSTALL_DIR="/usr/lib/xemacs/site-packages" ;;
25 *) 35 *)
26 die "Unsupported package category in PKG_CAT (or unset)" ;; 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}"
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.
29 47
30if [ -n "$EXPERIMENTAL" ] 48if [ -n "$EXPERIMENTAL" ]
31then 49then
32 [ -z "$SRC_URI" ] && SRC_URI="http://ftp.xemacs.org/pub/xemacs/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

Legend:
Removed from v.1.17  
changed lines
  Added in v.1.18

  ViewVC Help
Powered by ViewVC 1.1.20