Gentoo Archives: gentoo-commits

From: "Ulrich Mueller (ulm)" <ulm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-editors/emacs: metadata.xml ChangeLog emacs-18.59-r5.ebuild emacs-18.59-r6.ebuild
Date: Fri, 23 Jan 2009 16:53:43
Message-Id: E1LQPHp-0004Ug-Af@stork.gentoo.org
1 ulm 09/01/23 16:53:41
2
3 Modified: metadata.xml ChangeLog emacs-18.59-r5.ebuild
4 Added: emacs-18.59-r6.ebuild
5 Log:
6 Substitute the built_with_use check for libX11 by a USE dependency; therefore, change EAPI to 2.
7 (Portage version: 2.2_rc23/cvs/Linux i686)
8
9 Revision Changes Path
10 1.5 app-editors/emacs/metadata.xml
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-editors/emacs/metadata.xml?rev=1.5&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-editors/emacs/metadata.xml?rev=1.5&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-editors/emacs/metadata.xml?r1=1.4&r2=1.5
15
16 Index: metadata.xml
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/app-editors/emacs/metadata.xml,v
19 retrieving revision 1.4
20 retrieving revision 1.5
21 diff -u -r1.4 -r1.5
22 --- metadata.xml 31 Jul 2008 15:58:24 -0000 1.4
23 +++ metadata.xml 23 Jan 2009 16:53:41 -0000 1.5
24 @@ -3,7 +3,7 @@
25 <pkgmetadata>
26 <herd>emacs</herd>
27 <longdescription>
28 - GNU Emacs is an extensible, customizable text editor—and more. At its core
29 + GNU Emacs is an extensible, customizable text editor - and more. At its core
30 is an interpreter for Emacs Lisp, a dialect of the Lisp programming language
31 with extensions to support text editing. The features of GNU Emacs include:
32 * Content-sensitive editing modes, including syntax coloring, for a wide
33
34
35
36 1.292 app-editors/emacs/ChangeLog
37
38 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-editors/emacs/ChangeLog?rev=1.292&view=markup
39 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-editors/emacs/ChangeLog?rev=1.292&content-type=text/plain
40 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-editors/emacs/ChangeLog?r1=1.291&r2=1.292
41
42 Index: ChangeLog
43 ===================================================================
44 RCS file: /var/cvsroot/gentoo-x86/app-editors/emacs/ChangeLog,v
45 retrieving revision 1.291
46 retrieving revision 1.292
47 diff -u -r1.291 -r1.292
48 --- ChangeLog 24 Dec 2008 11:18:38 -0000 1.291
49 +++ ChangeLog 23 Jan 2009 16:53:41 -0000 1.292
50 @@ -1,6 +1,12 @@
51 # ChangeLog for app-editors/emacs
52 -# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
53 -# $Header: /var/cvsroot/gentoo-x86/app-editors/emacs/ChangeLog,v 1.291 2008/12/24 11:18:38 ulm Exp $
54 +# Copyright 2002-2009 Gentoo Foundation; Distributed under the GPL v2
55 +# $Header: /var/cvsroot/gentoo-x86/app-editors/emacs/ChangeLog,v 1.292 2009/01/23 16:53:41 ulm Exp $
56 +
57 +*emacs-18.59-r6 (23 Jan 2009)
58 +
59 + 23 Jan 2009; Ulrich Mueller <ulm@g.o> +emacs-18.59-r6.ebuild:
60 + Substitute the built_with_use check for libX11 by a USE dependency;
61 + therefore, change EAPI to 2.
62
63 24 Dec 2008; Ulrich Mueller <ulm@g.o>
64 -files/emacs-22.1-freebsd-sparc.patch,
65
66
67
68 1.8 app-editors/emacs/emacs-18.59-r5.ebuild
69
70 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-editors/emacs/emacs-18.59-r5.ebuild?rev=1.8&view=markup
71 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-editors/emacs/emacs-18.59-r5.ebuild?rev=1.8&content-type=text/plain
72 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-editors/emacs/emacs-18.59-r5.ebuild?r1=1.7&r2=1.8
73
74 Index: emacs-18.59-r5.ebuild
75 ===================================================================
76 RCS file: /var/cvsroot/gentoo-x86/app-editors/emacs/emacs-18.59-r5.ebuild,v
77 retrieving revision 1.7
78 retrieving revision 1.8
79 diff -u -r1.7 -r1.8
80 --- emacs-18.59-r5.ebuild 26 Nov 2008 21:14:50 -0000 1.7
81 +++ emacs-18.59-r5.ebuild 23 Jan 2009 16:53:41 -0000 1.8
82 @@ -1,6 +1,6 @@
83 -# Copyright 1999-2008 Gentoo Foundation
84 +# Copyright 1999-2009 Gentoo Foundation
85 # Distributed under the terms of the GNU General Public License v2
86 -# $Header: /var/cvsroot/gentoo-x86/app-editors/emacs/emacs-18.59-r5.ebuild,v 1.7 2008/11/26 21:14:50 ulm Exp $
87 +# $Header: /var/cvsroot/gentoo-x86/app-editors/emacs/emacs-18.59-r5.ebuild,v 1.8 2009/01/23 16:53:41 ulm Exp $
88
89 inherit eutils toolchain-funcs flag-o-matic
90
91 @@ -61,7 +61,7 @@
92 replace-flags -O[3-9] -O2
93 strip-flags
94
95 - emake -j"1" CC="$(tc-getCC)" CFLAGS="${CFLAGS} -Demacs" || die
96 + emake -j1 CC="$(tc-getCC)" CFLAGS="${CFLAGS} -Demacs" || die
97 }
98
99 src_install() {
100
101
102
103 1.1 app-editors/emacs/emacs-18.59-r6.ebuild
104
105 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-editors/emacs/emacs-18.59-r6.ebuild?rev=1.1&view=markup
106 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-editors/emacs/emacs-18.59-r6.ebuild?rev=1.1&content-type=text/plain
107
108 Index: emacs-18.59-r6.ebuild
109 ===================================================================
110 # Copyright 1999-2009 Gentoo Foundation
111 # Distributed under the terms of the GNU General Public License v2
112 # $Header: /var/cvsroot/gentoo-x86/app-editors/emacs/emacs-18.59-r6.ebuild,v 1.1 2009/01/23 16:53:41 ulm Exp $
113
114 EAPI=2
115
116 inherit eutils toolchain-funcs flag-o-matic
117
118 DESCRIPTION="The extensible self-documenting text editor"
119 HOMEPAGE="http://www.gnu.org/software/emacs/"
120 SRC_URI="mirror://gnu/old-gnu/emacs/${P}.tar.gz
121 ftp://ftp.splode.com/pub/users/friedman/emacs/${P}-linux22x-elf-glibc21.diff.gz
122 mirror://gentoo/${P}-patches-3.tar.bz2"
123
124 LICENSE="GPL-1 GPL-2 BSD as-is"
125 SLOT="18"
126 KEYWORDS="~x86"
127 IUSE="X"
128
129 RDEPEND="sys-libs/ncurses
130 >=app-admin/eselect-emacs-1.2
131 X? ( x11-libs/libX11[-xcb] )"
132 DEPEND="${RDEPEND}"
133
134 MY_BASEDIR="/usr/share/emacs/${PV}"
135 MY_LOCKDIR="/var/lib/emacs/lock"
136
137 src_prepare() {
138 epatch "${WORKDIR}/${P}-linux22x-elf-glibc21.diff"
139 EPATCH_SUFFIX=patch epatch
140 }
141
142 src_configure() {
143 # autoconf? What's autoconf? We are living in 1992. ;-)
144 local arch
145 case ${ARCH} in
146 x86) arch=intel386 ;;
147 *) die "Architecture ${ARCH} not supported" ;;
148 esac
149 local cmd="s/\"s-.*\.h\"/\"s-linux.h\"/;s/\"m-.*\.h\"/\"m-${arch}.h\"/"
150 use X && cmd="${cmd};s/.*\(#define HAVE_X_WINDOWS\).*/\1/"
151 sed -e "${cmd}" src/config.h-dist >src/config.h
152
153 cat <<-END >src/paths.h
154 #define PATH_LOADSEARCH "${MY_BASEDIR}/lisp"
155 #define PATH_EXEC "${MY_BASEDIR}/etc"
156 #define PATH_LOCK "${MY_LOCKDIR}/"
157 #define PATH_SUPERLOCK "${MY_LOCKDIR}/!!!SuperLock!!!"
158 END
159
160 # -O3 and -finline-functions cause segmentation faults at run time.
161 filter-flags -finline-functions
162 replace-flags -O[3-9] -O2
163 strip-flags
164 }
165
166 src_compile() {
167 # Do not use the sandbox, or the dumped Emacs will be twice as large
168 SANDBOX_ON=0
169 emake -j1 CC="$(tc-getCC)" CFLAGS="${CFLAGS} -Demacs" || die
170 }
171
172 src_install() {
173 local i
174
175 dodir ${MY_BASEDIR}
176 dodir /usr/share/man/man1
177 make install LIBDIR="${D}${MY_BASEDIR}" BINDIR="${D}/usr/bin" \
178 MANDIR="${D}/usr/share/man/man1" || die
179 chmod -R go-w "${D}${MY_BASEDIR}"
180 rmdir "${D}${MY_BASEDIR}/lock"
181
182 dodir ${MY_LOCKDIR%/*}
183 diropts -m0777
184 keepdir ${MY_LOCKDIR}
185
186 for i in emacsclient etags ctags; do
187 mv "${D}"/usr/bin/${i}{,-emacs-${SLOT}} || die "mv ${i} failed"
188 done
189 mv "${D}"/usr/bin/emacs{,-${SLOT}} || die "mv emacs failed"
190 mv "${D}"/usr/share/man/man1/emacs{,-emacs-${SLOT}}.1 || die
191 dosym ../emacs/${PV}/info /usr/share/info/emacs-${SLOT}
192
193 dodoc README PROBLEMS
194 }
195
196 pkg_postinst() {
197 eselect emacs update ifunset
198 }
199
200 pkg_postrm() {
201 eselect emacs update ifunset
202 }