diff options
author | 2002-12-16 09:54:23 +0000 | |
---|---|---|
committer | 2002-12-16 09:54:23 +0000 | |
commit | 79dde2388a3d11a3bbbf2743a7f3faf393f43eac (patch) | |
tree | 53694838069102fc3285c4b6df1e389e779559d0 /eclass/xemacs-packages.eclass | |
parent | added app-xemacs category (diff) | |
download | gentoo-2-79dde2388a3d11a3bbbf2743a7f3faf393f43eac.tar.gz gentoo-2-79dde2388a3d11a3bbbf2743a7f3faf393f43eac.tar.bz2 gentoo-2-79dde2388a3d11a3bbbf2743a7f3faf393f43eac.zip |
new eclass for xemacs packages
Diffstat (limited to 'eclass/xemacs-packages.eclass')
-rw-r--r-- | eclass/xemacs-packages.eclass | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/eclass/xemacs-packages.eclass b/eclass/xemacs-packages.eclass new file mode 100644 index 000000000000..8247d1786039 --- /dev/null +++ b/eclass/xemacs-packages.eclass @@ -0,0 +1,50 @@ +# Copyright 1999-2002 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/eclass/xemacs-packages.eclass,v 1.1 2002/12/16 09:54:23 rendhalver Exp $ + +# xemacs-packages eclass inherited by all xemacs packages +# $PKG_CAT need's to be set before inheriting xemacs-packages + +ECLASS=xemacs-packages +INHERITED="${INHERITED} ${ECLASS}" +EXPORT_FUNCTIONS src_unpack src_install + +[ -z "$HOMEPAGE" ] && HOMEPAGE="http://xemacs.org/" +[ -z "$LICENSE" ] && LICENSE="GPL-2" + +case "${PKG_CAT}" in + "standard" ) + MY_INSTALL_DIR="/usr/lib/xemacs/xemacs-packages" ;; + + "mule" ) + MY_INSTALL_DIR="/usr/lib/xemacs/mule-packages" ;; + + "contrib" ) + MY_INSTALL_DIR="/usr/lib/xemacs/site-packages" ;; +esac +[ -n "$DEBUG" ] && einfo "MY_INSTALL_DIR is ${MY_INSTALL_DIR}" + +KEYWORDS="~x86 ~ppc ~alpha" + +if [ -n "$EXPERIMENTAL" ] +then + [ -z "$SRC_URI" ] && SRC_URI="ftp://ftp.xemacs.org/beta/experimental/packages/${P}-pkg.tar.gz" +else + [ -z "$SRC_URI" ] && SRC_URI="ftp://ftp.xemacs.org/packages/${P}-pkg.tar.gz" +fi +[ -n "$DEBUG" ] && einfo "SRC_URI is ${SRC_URI}" + +xemacs-packages_src_unpack() { + return 0 +} + +xemacs-packages_src_compile() { + einfo "Nothing to compile" +} + +xemacs-packages_src_install() { + dodir ${MY_INSTALL_DIR} + cd ${D}${MY_INSTALL_DIR} + unpack ${A} +# chmod -R ugo=rX * +}
\ No newline at end of file |