From: "Mats Lidell" <matsl@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/emacs:master commit in: eclass/
Date: Tue, 16 Jul 2013 16:37:00 +0000 (UTC) [thread overview]
Message-ID: <1373992582.6eae828d7ae7e88949ca8e5f09b07083d2965e6f.matsl@gentoo> (raw)
commit: 6eae828d7ae7e88949ca8e5f09b07083d2965e6f
Author: Mats Lidell <mats.lidell <AT> cag <DOT> se>
AuthorDate: Tue Jul 16 16:36:22 2013 +0000
Commit: Mats Lidell <matsl <AT> gentoo <DOT> org>
CommitDate: Tue Jul 16 16:36:22 2013 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/emacs.git;a=commit;h=6eae828d
Added support for EAPI>2 in xemacs-packages.eclass
---
eclass/ChangeLog | 6 ++++
eclass/xemacs-packages.eclass | 80 +++++++++++++++++++++++++++++++++++++++++++
2 files changed, 86 insertions(+)
diff --git a/eclass/ChangeLog b/eclass/ChangeLog
index f0ddafe..dde7bab 100644
--- a/eclass/ChangeLog
+++ b/eclass/ChangeLog
@@ -1,3 +1,9 @@
+2013-07-16 Mats Lidell <matsl@gentoo.org>
+
+ * xemacs-packages.eclass (xemacs-packages_src_prepare,
+ xemacs-packages_src_configure): New functions that does
+ nothing. Needed for EAPI>2 support.
+
2013-03-04 Ulrich Müller <ulm@gentoo.org>
* elisp.eclass (elisp_src_install, elisp_pkg_postinst):
diff --git a/eclass/xemacs-packages.eclass b/eclass/xemacs-packages.eclass
new file mode 100644
index 0000000..c65fc0e
--- /dev/null
+++ b/eclass/xemacs-packages.eclass
@@ -0,0 +1,80 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/eclass/xemacs-packages.eclass,v 1.19 2011/12/27 17:55:13 fauli Exp $
+
+# @ECLASS: xemacs-packages.eclass
+# @MAINTAINER:
+# xemacs@gentoo.org
+# @BLURB: Eclass to support elisp packages distributed by XEmacs.
+# @DESCRIPTION:
+# This eclass supports ebuilds for packages distributed by XEmacs.
+
+case "${EAPI:-0}" in
+ 0|1) EXPORT_FUNCTIONS src_{unpack,compile,install} ;;
+ *) EXPORT_FUNCTIONS src_{unpack,prepare,configure,compile,install} ;;
+esac
+
+RDEPEND="app-editors/xemacs"
+
+S="${WORKDIR}"
+
+[ -z "$HOMEPAGE" ] && HOMEPAGE="http://xemacs.org/"
+[ -z "$LICENSE" ] && LICENSE="GPL-2"
+
+# @ECLASS-VARIABLE: PKG_CAT
+# @REQUIRED
+# @DESCRIPTION:
+# The package category that the package is in. Can be either standard,
+# mule, or contrib.
+
+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" ;;
+ *)
+ die "Unsupported package category in PKG_CAT (or unset)" ;;
+esac
+[ -n "$DEBUG" ] && einfo "MY_INSTALL_DIR is ${MY_INSTALL_DIR}"
+
+# @ECLASS-VARIABLE: EXPERIMENTAL
+# @DEFAULT_UNSET
+# @DESCRIPTION:
+# If set then the package is downloaded from the experimental packages
+# repository, which is the staging area for packages upstream. Packages
+# in the experimental repository are auto-generated from XEmacs VCS, so
+# they may not be well-tested.
+
+if [ -n "$EXPERIMENTAL" ]
+then
+ [ -z "$SRC_URI" ] && SRC_URI="http://ftp.xemacs.org/pub/xemacs/beta/experimental/packages/${P}-pkg.tar.gz"
+else
+ [ -z "$SRC_URI" ] && SRC_URI="http://ftp.xemacs.org/pub/xemacs/packages/${P}-pkg.tar.gz"
+fi
+[ -n "$DEBUG" ] && einfo "SRC_URI is ${SRC_URI}"
+
+xemacs-packages_src_unpack() {
+ einfo "Nothing to unpack"
+}
+
+xemacs-packages_src_prepare() {
+ einfo "Nothing to prepare"
+}
+
+xemacs-packages_src_configure() {
+ einfo "Nothing to configure"
+}
+
+xemacs-packages_src_compile() {
+ einfo "Nothing to compile"
+}
+
+xemacs-packages_src_install() {
+ dodir ${MY_INSTALL_DIR}
+ cd "${D}${MY_INSTALL_DIR}"
+ unpack ${A}
+}
next reply other threads:[~2013-07-16 16:37 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-16 16:37 Mats Lidell [this message]
-- strict thread matches above, loose matches on Subject: below --
2013-07-18 20:36 [gentoo-commits] proj/emacs:master commit in: eclass/ Ulrich Mueller
2013-07-22 20:07 Ulrich Mueller
2013-08-02 16:46 Ulrich Mueller
2013-09-04 19:12 Ulrich Mueller
2013-10-31 15:07 Ulrich Müller
2013-11-04 21:34 Ulrich Müller
2014-05-18 14:53 Ulrich Müller
2014-05-18 14:53 Ulrich Müller
2014-05-19 17:38 Ulrich Müller
2014-06-07 10:32 Ulrich Müller
2014-06-11 9:15 Ulrich Müller
2015-05-25 13:19 Ulrich Müller
2015-05-25 13:19 Ulrich Müller
2015-05-25 13:19 Ulrich Müller
2015-12-20 15:36 Ulrich Müller
2016-01-31 8:34 Ulrich Müller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1373992582.6eae828d7ae7e88949ca8e5f09b07083d2965e6f.matsl@gentoo \
--to=matsl@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox