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

Contents of /eclass/xemacs-packages.eclass

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.17 - (show annotations) (download)
Tue May 24 06:19:32 2011 UTC (3 years, 6 months ago) by graaff
Branch: MAIN
Changes since 1.16: +2 -2 lines
Fix SRC_URI for experimental xemacs packages.

1 # Copyright 1999-2007 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/eclass/xemacs-packages.eclass,v 1.16 2010/10/13 17:27:35 graaff Exp $
4 #
5 # xemacs-packages eclass inherited by all xemacs packages
6 # $PKG_CAT need's to be set before inheriting xemacs-packages
7
8 EXPORT_FUNCTIONS src_unpack src_compile src_install
9
10 RDEPEND="${RDEPEND} app-editors/xemacs"
11 DEPEND="${DEPEND}"
12
13 [ -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 *)
26 die "Unsupported package category in PKG_CAT (or unset)" ;;
27 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="http://ftp.xemacs.org/pub/xemacs/beta/experimental/packages/${P}-pkg.tar.gz"
33 else
34 [ -z "$SRC_URI" ] && SRC_URI="http://ftp.xemacs.org/pub/xemacs/packages/${P}-pkg.tar.gz"
35 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 cd "${D}${MY_INSTALL_DIR}"
49 unpack ${A}
50 }

  ViewVC Help
Powered by ViewVC 1.1.20