1 # Copyright 1999-2011 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
4 # @ECLASS: xemacs-packages.eclass
7 # @BLURB: Eclass to support elisp packages distributed by XEmacs.
9 # This eclass supports ebuilds for packages distributed by XEmacs.
11 EXPORT_FUNCTIONS src_unpack src_compile src_install
13 RDEPEND="${RDEPEND} app-editors/xemacs"
16 [ -z "$HOMEPAGE" ] && HOMEPAGE="http://xemacs.org/"
17 [ -z "$LICENSE" ] && LICENSE="GPL-2"
19 # @ECLASS-VARIABLE: PKG_CAT
22 # The package category that the package is in. Can be either standard,
27 MY_INSTALL_DIR="/usr/lib/xemacs/xemacs-packages" ;;
30 MY_INSTALL_DIR="/usr/lib/xemacs/mule-packages" ;;
33 MY_INSTALL_DIR="/usr/lib/xemacs/site-packages" ;;
35 die "Unsupported package category in PKG_CAT (or unset)" ;;
37 [ -n "$DEBUG" ] && einfo "MY_INSTALL_DIR is ${MY_INSTALL_DIR}"
39 # @ECLASS-VARIABLE: EXPERIMENTAL
42 # If set then the package is downloaded from the experimental packages
43 # repository, which is the staging area for packages upstream. Packages
44 # in the experimental repository are auto-generated from XEmacs VCS, so
45 # they may not be well-tested.
47 if [ -n "$EXPERIMENTAL" ]
49 [ -z "$SRC_URI" ] && SRC_URI="http://ftp.xemacs.org/pub/xemacs/beta/experimental/packages/${P}-pkg.tar.gz"
51 [ -z "$SRC_URI" ] && SRC_URI="http://ftp.xemacs.org/pub/xemacs/packages/${P}-pkg.tar.gz"
53 [ -n "$DEBUG" ] && einfo "SRC_URI is ${SRC_URI}"
55 xemacs-packages_src_unpack() {
59 xemacs-packages_src_compile() {
60 einfo "Nothing to compile"
63 xemacs-packages_src_install() {
64 dodir ${MY_INSTALL_DIR}
65 cd "${D}${MY_INSTALL_DIR}"