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

Contents of /eclass/xemacs-packages.eclass

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.18 - (hide annotations) (download)
Sat Jun 4 07:53:54 2011 UTC (3 years, 2 months ago) by graaff
Branch: MAIN
Changes since 1.17: +22 -4 lines
Add documentation.

1 betelgeuse 1.13 # Copyright 1999-2007 Gentoo Foundation
2 rendhalver 1.1 # Distributed under the terms of the GNU General Public License v2
3 graaff 1.18 # $Header: /var/cvsroot/gentoo-x86/eclass/xemacs-packages.eclass,v 1.17 2011/05/24 06:19:32 graaff Exp $
4    
5     # @ECLASS: xemacs-packages.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.
11 rendhalver 1.1
12 graaff 1.11 EXPORT_FUNCTIONS src_unpack src_compile src_install
13 rendhalver 1.1
14 graaff 1.16 RDEPEND="${RDEPEND} app-editors/xemacs"
15     DEPEND="${DEPEND}"
16 rendhalver 1.2
17 rendhalver 1.1 [ -z "$HOMEPAGE" ] && HOMEPAGE="http://xemacs.org/"
18     [ -z "$LICENSE" ] && LICENSE="GPL-2"
19    
20 graaff 1.18 # @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.
25    
26 rendhalver 1.1 case "${PKG_CAT}" in
27     "standard" )
28     MY_INSTALL_DIR="/usr/lib/xemacs/xemacs-packages" ;;
29    
30     "mule" )
31     MY_INSTALL_DIR="/usr/lib/xemacs/mule-packages" ;;
32    
33     "contrib" )
34     MY_INSTALL_DIR="/usr/lib/xemacs/site-packages" ;;
35 graaff 1.16 *)
36     die "Unsupported package category in PKG_CAT (or unset)" ;;
37 rendhalver 1.1 esac
38     [ -n "$DEBUG" ] && einfo "MY_INSTALL_DIR is ${MY_INSTALL_DIR}"
39    
40 graaff 1.18 # @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    
48 rendhalver 1.1 if [ -n "$EXPERIMENTAL" ]
49     then
50 graaff 1.17 [ -z "$SRC_URI" ] && SRC_URI="http://ftp.xemacs.org/pub/xemacs/beta/experimental/packages/${P}-pkg.tar.gz"
51 rendhalver 1.1 else
52 graaff 1.11 [ -z "$SRC_URI" ] && SRC_URI="http://ftp.xemacs.org/pub/xemacs/packages/${P}-pkg.tar.gz"
53 rendhalver 1.1 fi
54     [ -n "$DEBUG" ] && einfo "SRC_URI is ${SRC_URI}"
55    
56     xemacs-packages_src_unpack() {
57     return 0
58     }
59    
60     xemacs-packages_src_compile() {
61     einfo "Nothing to compile"
62     }
63    
64     xemacs-packages_src_install() {
65     dodir ${MY_INSTALL_DIR}
66 graaff 1.14 cd "${D}${MY_INSTALL_DIR}"
67 rendhalver 1.1 unpack ${A}
68 vapier 1.5 }

  ViewVC Help
Powered by ViewVC 1.1.20