Gentoo Archives: gentoo-commits

From: "Ulrich Mueller (ulm)" <ulm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in eclass: elisp.eclass elisp-common.eclass
Date: Thu, 12 Mar 2009 12:08:49
Message-Id: E1LhjiR-0004ku-Ar@stork.gentoo.org
1 ulm 09/03/12 12:08:47
2
3 Modified: elisp.eclass elisp-common.eclass
4 Log:
5 Partial sync from Emacs overlay, only documentation and einfo output changes.
6
7 Revision Changes Path
8 1.38 eclass/elisp.eclass
9
10 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/elisp.eclass?rev=1.38&view=markup
11 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/elisp.eclass?rev=1.38&content-type=text/plain
12 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/elisp.eclass?r1=1.37&r2=1.38
13
14 Index: elisp.eclass
15 ===================================================================
16 RCS file: /var/cvsroot/gentoo-x86/eclass/elisp.eclass,v
17 retrieving revision 1.37
18 retrieving revision 1.38
19 diff -u -r1.37 -r1.38
20 --- elisp.eclass 7 Feb 2009 11:32:45 -0000 1.37
21 +++ elisp.eclass 12 Mar 2009 12:08:47 -0000 1.38
22 @@ -1,11 +1,11 @@
23 -# Copyright 1999-2008 Gentoo Foundation
24 +# Copyright 1999-2009 Gentoo Foundation
25 # Distributed under the terms of the GNU General Public License v2
26 -# $Header: /var/cvsroot/gentoo-x86/eclass/elisp.eclass,v 1.37 2009/02/07 11:32:45 fauli Exp $
27 +# $Header: /var/cvsroot/gentoo-x86/eclass/elisp.eclass,v 1.38 2009/03/12 12:08:47 ulm Exp $
28 #
29 # Copyright 2002-2003 Matthew Kennedy <mkennedy@g.o>
30 # Copyright 2003 Jeremy Maitin-Shepard <jbms@×××××.com>
31 -# Copyright 2007-2008 Christian Faulhammer <opfer@g.o>
32 -# Copyright 2007-2008 Ulrich Müller <ulm@g.o>
33 +# Copyright 2007-2009 Christian Faulhammer <fauli@g.o>
34 +# Copyright 2007-2009 Ulrich Müller <ulm@g.o>
35 #
36 # @ECLASS: elisp.eclass
37 # @MAINTAINER:
38 @@ -14,7 +14,10 @@
39 # @BLURB: Eclass for Emacs Lisp packages
40 # @DESCRIPTION:
41 #
42 -# This eclass sets the site-lisp directory for Emacs-related packages.
43 +# This eclass is designed to install elisp files of Emacs related
44 +# packages into the site-lisp directory. The majority of elisp packages
45 +# will only need to define the standard ebuild variables (like SRC_URI)
46 +# and optionally SITEFILE for successful installation.
47 #
48 # Emacs support for other than pure elisp packages is handled by
49 # elisp-common.eclass where you won't have a dependency on Emacs itself.
50 @@ -24,26 +27,30 @@
51 # file with the file name ${P}.el, then this eclass will move ${P}.el to
52 # ${PN}.el in src_unpack().
53
54 -# @ECLASS-VARIABLE: SITEFILE
55 +# @ECLASS-VARIABLE: NEED_EMACS
56 # @DESCRIPTION:
57 -# Name of package's site-init file. The filename must match the shell
58 -# pattern "[1-8][0-9]*-gentoo.el"; numbers below 10 and above 89 are
59 -# reserved for internal use. "50${PN}-gentoo.el" is a reasonable choice
60 -# in most cases.
61 +# If you need anything different from Emacs 21, use the NEED_EMACS
62 +# variable before inheriting elisp.eclass. Set it to the major version
63 +# your package uses and the dependency will be adjusted.
64
65 # @ECLASS-VARIABLE: DOCS
66 # @DESCRIPTION:
67 # DOCS="blah.txt ChangeLog" is automatically used to install the given
68 # files by dodoc in src_install().
69
70 -# @ECLASS-VARIABLE: NEED_EMACS
71 +# @ECLASS-VARIABLE: SITEFILE
72 # @DESCRIPTION:
73 -# If you need anything different from Emacs 21, use the NEED_EMACS
74 -# variable before inheriting elisp.eclass. Set it to the major version
75 -# your package uses and the dependency will be adjusted.
76 +# Name of package's site-init file. The filename must match the shell
77 +# pattern "[1-8][0-9]*-gentoo.el"; numbers below 10 and above 89 are
78 +# reserved for internal use. "50${PN}-gentoo.el" is a reasonable choice
79 +# in most cases.
80
81 inherit elisp-common versionator
82
83 +EXPORT_FUNCTIONS \
84 + src_unpack src_compile src_install \
85 + pkg_setup pkg_postinst pkg_postrm
86 +
87 DEPEND=">=virtual/emacs-${NEED_EMACS:-21}"
88 RDEPEND=">=virtual/emacs-${NEED_EMACS:-21}"
89 IUSE=""
90 @@ -87,7 +94,3 @@
91 elisp_pkg_postrm() {
92 elisp-site-regen
93 }
94 -
95 -EXPORT_FUNCTIONS \
96 - src_unpack src_compile src_install \
97 - pkg_setup pkg_postinst pkg_postrm
98
99
100
101 1.56 eclass/elisp-common.eclass
102
103 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/elisp-common.eclass?rev=1.56&view=markup
104 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/elisp-common.eclass?rev=1.56&content-type=text/plain
105 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/elisp-common.eclass?r1=1.55&r2=1.56
106
107 Index: elisp-common.eclass
108 ===================================================================
109 RCS file: /var/cvsroot/gentoo-x86/eclass/elisp-common.eclass,v
110 retrieving revision 1.55
111 retrieving revision 1.56
112 diff -u -r1.55 -r1.56
113 --- elisp-common.eclass 13 Feb 2009 17:15:58 -0000 1.55
114 +++ elisp-common.eclass 12 Mar 2009 12:08:47 -0000 1.56
115 @@ -1,11 +1,11 @@
116 # Copyright 1999-2009 Gentoo Foundation
117 # Distributed under the terms of the GNU General Public License v2
118 -# $Header: /var/cvsroot/gentoo-x86/eclass/elisp-common.eclass,v 1.55 2009/02/13 17:15:58 ulm Exp $
119 +# $Header: /var/cvsroot/gentoo-x86/eclass/elisp-common.eclass,v 1.56 2009/03/12 12:08:47 ulm Exp $
120 #
121 # Copyright 2002-2004 Matthew Kennedy <mkennedy@g.o>
122 # Copyright 2003 Jeremy Maitin-Shepard <jbms@×××××.com>
123 # Copyright 2004-2005 Mamoru Komachi <usata@g.o>
124 -# Copyright 2007-2008 Christian Faulhammer <opfer@g.o>
125 +# Copyright 2007-2008 Christian Faulhammer <fauli@g.o>
126 # Copyright 2007-2009 Ulrich Müller <ulm@g.o>
127 #
128 # @ECLASS: elisp-common.eclass
129 @@ -327,7 +327,7 @@
130 [ -e "${ROOT}${SITELISP}"/site-gentoo.el ] || firstrun=t
131
132 if [ "${firstrun}" ] && [ ! -e "${ROOT}${SITELISP}"/site-start.el ]; then
133 - einfo "Creating default ${SITELISP}/site-start.el ..."
134 + einfo "Creating default site-start.el ..."
135 cat <<-EOF >"${T}"/site-start.el
136 ;;; site-start.el
137
138 @@ -344,7 +344,7 @@
139 EOF
140 fi
141
142 - einfon "Regenerating ${SITELISP}/site-gentoo.el ..."
143 + einfon "Regenerating site-gentoo.el (${EBUILD_PHASE}) ..."
144
145 # remove any auxiliary file (from previous run)
146 rm -f "${ROOT}${SITELISP}"/00site-gentoo.el