summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2009-03-12 12:08:47 +0000
committerUlrich Müller <ulm@gentoo.org>2009-03-12 12:08:47 +0000
commitc8cef1269cbc71fed395938938b6142c36cc0db1 (patch)
treecc139df5db7d07061c5171fed2733185d2d98b21 /eclass
parentUpdate case statement for better deps reflection. (diff)
downloadgentoo-2-c8cef1269cbc71fed395938938b6142c36cc0db1.tar.gz
gentoo-2-c8cef1269cbc71fed395938938b6142c36cc0db1.tar.bz2
gentoo-2-c8cef1269cbc71fed395938938b6142c36cc0db1.zip
Partial sync from Emacs overlay, only documentation and einfo output changes.
Diffstat (limited to 'eclass')
-rw-r--r--eclass/elisp-common.eclass8
-rw-r--r--eclass/elisp.eclass39
2 files changed, 25 insertions, 22 deletions
diff --git a/eclass/elisp-common.eclass b/eclass/elisp-common.eclass
index cebafd2e9d9d..a88eec89f31d 100644
--- a/eclass/elisp-common.eclass
+++ b/eclass/elisp-common.eclass
@@ -1,11 +1,11 @@
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/elisp-common.eclass,v 1.55 2009/02/13 17:15:58 ulm Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/elisp-common.eclass,v 1.56 2009/03/12 12:08:47 ulm Exp $
#
# Copyright 2002-2004 Matthew Kennedy <mkennedy@gentoo.org>
# Copyright 2003 Jeremy Maitin-Shepard <jbms@attbi.com>
# Copyright 2004-2005 Mamoru Komachi <usata@gentoo.org>
-# Copyright 2007-2008 Christian Faulhammer <opfer@gentoo.org>
+# Copyright 2007-2008 Christian Faulhammer <fauli@gentoo.org>
# Copyright 2007-2009 Ulrich Müller <ulm@gentoo.org>
#
# @ECLASS: elisp-common.eclass
@@ -327,7 +327,7 @@ elisp-site-regen() {
[ -e "${ROOT}${SITELISP}"/site-gentoo.el ] || firstrun=t
if [ "${firstrun}" ] && [ ! -e "${ROOT}${SITELISP}"/site-start.el ]; then
- einfo "Creating default ${SITELISP}/site-start.el ..."
+ einfo "Creating default site-start.el ..."
cat <<-EOF >"${T}"/site-start.el
;;; site-start.el
@@ -344,7 +344,7 @@ elisp-site-regen() {
EOF
fi
- einfon "Regenerating ${SITELISP}/site-gentoo.el ..."
+ einfon "Regenerating site-gentoo.el (${EBUILD_PHASE}) ..."
# remove any auxiliary file (from previous run)
rm -f "${ROOT}${SITELISP}"/00site-gentoo.el
diff --git a/eclass/elisp.eclass b/eclass/elisp.eclass
index 89487de5efb1..7d8c7ddd5990 100644
--- a/eclass/elisp.eclass
+++ b/eclass/elisp.eclass
@@ -1,11 +1,11 @@
-# Copyright 1999-2008 Gentoo Foundation
+# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/elisp.eclass,v 1.37 2009/02/07 11:32:45 fauli Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/elisp.eclass,v 1.38 2009/03/12 12:08:47 ulm Exp $
#
# Copyright 2002-2003 Matthew Kennedy <mkennedy@gentoo.org>
# Copyright 2003 Jeremy Maitin-Shepard <jbms@attbi.com>
-# Copyright 2007-2008 Christian Faulhammer <opfer@gentoo.org>
-# Copyright 2007-2008 Ulrich Müller <ulm@gentoo.org>
+# Copyright 2007-2009 Christian Faulhammer <fauli@gentoo.org>
+# Copyright 2007-2009 Ulrich Müller <ulm@gentoo.org>
#
# @ECLASS: elisp.eclass
# @MAINTAINER:
@@ -14,7 +14,10 @@
# @BLURB: Eclass for Emacs Lisp packages
# @DESCRIPTION:
#
-# This eclass sets the site-lisp directory for Emacs-related packages.
+# This eclass is designed to install elisp files of Emacs related
+# packages into the site-lisp directory. The majority of elisp packages
+# will only need to define the standard ebuild variables (like SRC_URI)
+# and optionally SITEFILE for successful installation.
#
# Emacs support for other than pure elisp packages is handled by
# elisp-common.eclass where you won't have a dependency on Emacs itself.
@@ -24,26 +27,30 @@
# file with the file name ${P}.el, then this eclass will move ${P}.el to
# ${PN}.el in src_unpack().
-# @ECLASS-VARIABLE: SITEFILE
+# @ECLASS-VARIABLE: NEED_EMACS
# @DESCRIPTION:
-# Name of package's site-init file. The filename must match the shell
-# pattern "[1-8][0-9]*-gentoo.el"; numbers below 10 and above 89 are
-# reserved for internal use. "50${PN}-gentoo.el" is a reasonable choice
-# in most cases.
+# If you need anything different from Emacs 21, use the NEED_EMACS
+# variable before inheriting elisp.eclass. Set it to the major version
+# your package uses and the dependency will be adjusted.
# @ECLASS-VARIABLE: DOCS
# @DESCRIPTION:
# DOCS="blah.txt ChangeLog" is automatically used to install the given
# files by dodoc in src_install().
-# @ECLASS-VARIABLE: NEED_EMACS
+# @ECLASS-VARIABLE: SITEFILE
# @DESCRIPTION:
-# If you need anything different from Emacs 21, use the NEED_EMACS
-# variable before inheriting elisp.eclass. Set it to the major version
-# your package uses and the dependency will be adjusted.
+# Name of package's site-init file. The filename must match the shell
+# pattern "[1-8][0-9]*-gentoo.el"; numbers below 10 and above 89 are
+# reserved for internal use. "50${PN}-gentoo.el" is a reasonable choice
+# in most cases.
inherit elisp-common versionator
+EXPORT_FUNCTIONS \
+ src_unpack src_compile src_install \
+ pkg_setup pkg_postinst pkg_postrm
+
DEPEND=">=virtual/emacs-${NEED_EMACS:-21}"
RDEPEND=">=virtual/emacs-${NEED_EMACS:-21}"
IUSE=""
@@ -87,7 +94,3 @@ elisp_pkg_postinst() {
elisp_pkg_postrm() {
elisp-site-regen
}
-
-EXPORT_FUNCTIONS \
- src_unpack src_compile src_install \
- pkg_setup pkg_postinst pkg_postrm