1 # Copyright 1999-2011 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
5 # @ECLASS: xemacs-packages.eclass
8 # @BLURB: Eclass to support elisp packages distributed by XEmacs.
10 # This eclass supports ebuilds for packages distributed by XEmacs.
12 EXPORT_FUNCTIONS src_unpack src_compile src_install
14 RDEPEND="${RDEPEND} app-editors/xemacs"
17 [ -z "$HOMEPAGE" ] && HOMEPAGE="http://xemacs.org/"
18 [ -z "$LICENSE" ] && LICENSE="GPL-2"
20 # @ECLASS-VARIABLE: PKG_CAT
23 # The package category that the package is in. Can be either standard,
28 MY_INSTALL_DIR="/usr/lib/xemacs/xemacs-packages" ;;
31 MY_INSTALL_DIR="/usr/lib/xemacs/mule-packages" ;;
34 MY_INSTALL_DIR="/usr/lib/xemacs/site-packages" ;;
36 die "Unsupported package category in PKG_CAT (or unset)" ;;
38 [ -n "$DEBUG" ] && einfo "MY_INSTALL_DIR is ${MY_INSTALL_DIR}"
40 # @ECLASS-VARIABLE: EXPERIMENTAL
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.
48 if [ -n "$EXPERIMENTAL" ]
50 [ -z "$SRC_URI" ] && SRC_URI="http://ftp.xemacs.org/pub/xemacs/beta/experimental/packages/${P}-pkg.tar.gz"
52 [ -z "$SRC_URI" ] && SRC_URI="http://ftp.xemacs.org/pub/xemacs/packages/${P}-pkg.tar.gz"
54 [ -n "$DEBUG" ] && einfo "SRC_URI is ${SRC_URI}"
56 xemacs-packages_src_unpack() {
60 xemacs-packages_src_compile() {
61 einfo "Nothing to compile"
64 xemacs-packages_src_install() {
65 dodir ${MY_INSTALL_DIR}
66 cd "${D}${MY_INSTALL_DIR}"