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

Contents of /eclass/xemacs-packages.eclass

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.16 - (hide annotations) (download)
Wed Oct 13 17:27:35 2010 UTC (3 years, 9 months ago) by graaff
Branch: MAIN
Changes since 1.15: +5 -2 lines
Die on unsupported or unset package category. Set proper dependencies.

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.16 # $Header: /var/cvsroot/gentoo-x86/eclass/xemacs-packages.eclass,v 1.15 2009/06/21 14:53:12 graaff Exp $
4 vapier 1.5 #
5 rendhalver 1.1 # xemacs-packages eclass inherited by all xemacs packages
6     # $PKG_CAT need's to be set before inheriting xemacs-packages
7    
8 graaff 1.11 EXPORT_FUNCTIONS src_unpack src_compile src_install
9 rendhalver 1.1
10 graaff 1.16 RDEPEND="${RDEPEND} app-editors/xemacs"
11     DEPEND="${DEPEND}"
12 rendhalver 1.2
13 rendhalver 1.1 [ -z "$HOMEPAGE" ] && HOMEPAGE="http://xemacs.org/"
14     [ -z "$LICENSE" ] && LICENSE="GPL-2"
15    
16     case "${PKG_CAT}" in
17     "standard" )
18     MY_INSTALL_DIR="/usr/lib/xemacs/xemacs-packages" ;;
19    
20     "mule" )
21     MY_INSTALL_DIR="/usr/lib/xemacs/mule-packages" ;;
22    
23     "contrib" )
24     MY_INSTALL_DIR="/usr/lib/xemacs/site-packages" ;;
25 graaff 1.16 *)
26     die "Unsupported package category in PKG_CAT (or unset)" ;;
27 rendhalver 1.1 esac
28     [ -n "$DEBUG" ] && einfo "MY_INSTALL_DIR is ${MY_INSTALL_DIR}"
29    
30     if [ -n "$EXPERIMENTAL" ]
31     then
32     [ -z "$SRC_URI" ] && SRC_URI="ftp://ftp.xemacs.org/beta/experimental/packages/${P}-pkg.tar.gz"
33     else
34 graaff 1.11 [ -z "$SRC_URI" ] && SRC_URI="http://ftp.xemacs.org/pub/xemacs/packages/${P}-pkg.tar.gz"
35 rendhalver 1.1 fi
36     [ -n "$DEBUG" ] && einfo "SRC_URI is ${SRC_URI}"
37    
38     xemacs-packages_src_unpack() {
39     return 0
40     }
41    
42     xemacs-packages_src_compile() {
43     einfo "Nothing to compile"
44     }
45    
46     xemacs-packages_src_install() {
47     dodir ${MY_INSTALL_DIR}
48 graaff 1.14 cd "${D}${MY_INSTALL_DIR}"
49 rendhalver 1.1 unpack ${A}
50 vapier 1.5 }

  ViewVC Help
Powered by ViewVC 1.1.20