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

Contents of /eclass/xemacs-packages.eclass

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.11 - (show annotations) (download)
Sun Nov 12 08:27:08 2006 UTC (8 years, 1 month ago) by graaff
Branch: MAIN
Changes since 1.10: +6 -3 lines
Add mandatory eclass variables. Add missing export declaration for src_compile to fix #124342. Change download location to HTTP as the FTP server seems to have issues and upstream lists the HTTP server as the first choice.

1 # Copyright 1999-2004 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.10 2005/07/06 20:23:20 agriffis 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 ECLASS="xemacs-packages"
9 INHERITED="$INHERITED $ECLASS"
10
11 EXPORT_FUNCTIONS src_unpack src_compile src_install
12
13 DEPEND="virtual/xemacs"
14
15 [ -z "$HOMEPAGE" ] && HOMEPAGE="http://xemacs.org/"
16 [ -z "$LICENSE" ] && LICENSE="GPL-2"
17
18 case "${PKG_CAT}" in
19 "standard" )
20 MY_INSTALL_DIR="/usr/lib/xemacs/xemacs-packages" ;;
21
22 "mule" )
23 MY_INSTALL_DIR="/usr/lib/xemacs/mule-packages" ;;
24
25 "contrib" )
26 MY_INSTALL_DIR="/usr/lib/xemacs/site-packages" ;;
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="ftp://ftp.xemacs.org/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