Gentoo Archives: gentoo-commits

From: "Hans de Graaff (graaff)" <graaff@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-editors/xemacs: ChangeLog xemacs-21.5.30.ebuild
Date: Wed, 27 Apr 2011 18:02:28
Message-Id: 20110427180218.6E57920054@flycatcher.gentoo.org
1 graaff 11/04/27 18:02:18
2
3 Modified: ChangeLog
4 Added: xemacs-21.5.30.ebuild
5 Log:
6 Version bump with many, many bug fixes.
7
8 (Portage version: 2.1.9.42/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.143 app-editors/xemacs/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-editors/xemacs/ChangeLog?rev=1.143&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-editors/xemacs/ChangeLog?rev=1.143&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-editors/xemacs/ChangeLog?r1=1.142&r2=1.143
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/app-editors/xemacs/ChangeLog,v
20 retrieving revision 1.142
21 retrieving revision 1.143
22 diff -u -r1.142 -r1.143
23 --- ChangeLog 8 Nov 2010 19:50:39 -0000 1.142
24 +++ ChangeLog 27 Apr 2011 18:02:18 -0000 1.143
25 @@ -1,6 +1,11 @@
26 # ChangeLog for app-editors/xemacs
27 -# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/app-editors/xemacs/ChangeLog,v 1.142 2010/11/08 19:50:39 graaff Exp $
29 +# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
30 +# $Header: /var/cvsroot/gentoo-x86/app-editors/xemacs/ChangeLog,v 1.143 2011/04/27 18:02:18 graaff Exp $
31 +
32 +*xemacs-21.5.30 (27 Apr 2011)
33 +
34 + 27 Apr 2011; Hans de Graaff <graaff@g.o> +xemacs-21.5.30.ebuild:
35 + Version bump with many, many bug fixes.
36
37 08 Nov 2010; Hans de Graaff <graaff@g.o> xemacs-21.4.22-r1.ebuild,
38 xemacs-21.4.22-r2.ebuild, xemacs-21.5.29-r2.ebuild:
39
40
41
42 1.1 app-editors/xemacs/xemacs-21.5.30.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-editors/xemacs/xemacs-21.5.30.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-editors/xemacs/xemacs-21.5.30.ebuild?rev=1.1&content-type=text/plain
46
47 Index: xemacs-21.5.30.ebuild
48 ===================================================================
49 # Copyright 1999-2011 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/app-editors/xemacs/xemacs-21.5.30.ebuild,v 1.1 2011/04/27 18:02:18 graaff Exp $
52
53 # Note: xemacs currently does not work with a hardened profile. If you
54 # want to use xemacs on a hardened profile then compile with the
55 # -nopie flag in CFLAGS or help fix bug #75028.
56
57 EAPI="2"
58
59 export WANT_AUTOCONF="2.5"
60 inherit eutils flag-o-matic multilib
61
62 DESCRIPTION="highly customizable open source text editor and application development system"
63 HOMEPAGE="http://www.xemacs.org/"
64 SRC_URI="http://ftp.xemacs.org/xemacs-21.5/${P}.tar.gz
65 http://www.malfunction.de/afterstep/files/NeXT_XEmacs.tar.gz"
66
67 LICENSE="GPL-2"
68 SLOT="0"
69 KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
70 IUSE="alsa debug eolconv esd gif gpm pop postgres ldap xface nas dnd X jpeg tiff png mule motif freewnn canna xft xim athena neXt Xaw3d gdbm berkdb"
71
72 X_DEPEND="x11-libs/libXt x11-libs/libXmu x11-libs/libXext x11-misc/xbitmaps"
73
74 RDEPEND="
75 berkdb? ( sys-libs/db )
76 gdbm? ( >=sys-libs/gdbm-1.8.3 )
77 >=sys-libs/zlib-1.1.4
78 >=dev-libs/openssl-0.9.6
79 >=media-libs/audiofile-0.2.3
80 gpm? ( >=sys-libs/gpm-1.19.6 )
81 postgres? ( dev-db/postgresql-base )
82 ldap? ( net-nds/openldap )
83 alsa? ( media-libs/alsa-lib )
84 esd? ( media-sound/esound )
85 nas? ( media-libs/nas )
86 X? ( $X_DEPEND !Xaw3d? ( !neXt? ( x11-libs/libXaw ) ) )
87 dnd? ( x11-libs/dnd )
88 motif? ( >=x11-libs/openmotif-2.3:0[xft=] )
89 athena? ( x11-libs/libXaw )
90 Xaw3d? ( x11-libs/Xaw3d )
91 xft? ( media-libs/freetype x11-libs/libXft x11-libs/libXrender >=media-libs/fontconfig-2.5.0 )
92 neXt? ( x11-libs/neXtaw )
93 xface? ( media-libs/compface )
94 tiff? ( media-libs/tiff )
95 png? ( >=media-libs/libpng-1.2 )
96 jpeg? ( virtual/jpeg )
97 canna? ( app-i18n/canna )
98 freewnn? ( app-i18n/freewnn )
99 >=sys-libs/ncurses-5.2"
100
101 DEPEND="${RDEPEND}
102 >=app-admin/eselect-emacs-1.2"
103
104 PDEPEND="app-xemacs/xemacs-base
105 mule? ( app-xemacs/mule-base )"
106
107 src_unpack() {
108 default_src_unpack
109
110 use neXt && unpack NeXT_XEmacs.tar.gz
111 }
112
113 src_prepare() {
114 # Fix security issue in vcdiff script
115 epatch "${FILESDIR}"/${PN}-21.5.29-vcdiff.patch
116
117 # Fix problem caused by improper optimization with GCC 4.1.2 on x86
118 # (and possibly other arches, but only confirmed on x86). See
119 # http://tracker.xemacs.org/XEmacs/its/issue354 for the upstream
120 # bug.
121 epatch "${FILESDIR}"/${PN}-21.5.29-optimization-bug.patch
122
123 use neXt && cp "${WORKDIR}"/NeXT.XEmacs/xemacs-icons/* "${S}"/etc/toolbar/
124 }
125
126 src_configure() {
127 local myconf=""
128
129 if use X; then
130
131 myconf="${myconf} --with-widgets=athena"
132 myconf="${myconf} --with-dialogs=athena"
133 myconf="${myconf} --with-menubars=lucid"
134 myconf="${myconf} --with-scrollbars=lucid"
135 if use motif ; then
136 myconf="--with-widgets=motif"
137 myconf="${myconf} --with-dialogs=motif"
138 myconf="${myconf} --with-scrollbars=motif"
139 myconf="${myconf} --with-menubars=lucid"
140 fi
141 if use athena or use Xaw3d ; then
142 myconf="--with-scrollbars=athena"
143 fi
144
145 if use Xaw3d; then
146 myconf="${myconf} --with-athena=3d"
147 elif use neXt; then
148 myconf="${myconf} --with-athena=next"
149 else
150 myconf="${myconf} --with-athena=xaw"
151 fi
152
153 use dnd && myconf="${myconf} --with-dragndrop --with-offix"
154
155 myconf="${myconf} $(use_with tiff )"
156 myconf="${myconf} $(use_with png )"
157 myconf="${myconf} $(use_with jpeg )"
158 myconf="${myconf} $(use_with xface )"
159
160 use xft && myconf="${myconf} --with-xft=emacs,tabs,menubars,gauges" ||
161 myconf="${myconf} --with-xft=no"
162
163 else
164 myconf="${myconf}
165 --without-x
166 --without-xpm
167 --without-dragndrop
168 --with-xft=no
169 --with-gif=no"
170 fi
171
172 if use mule ; then
173 myconf="${myconf} --with-mule"
174
175 if use xim ; then
176 if use motif ; then
177 myconf="${myconf} --with-xim=motif"
178 else
179 myconf="${myconf} --with-xim=xlib"
180 fi
181 else
182 myconf="${myconf} --with-xim=no"
183 fi
184
185 myconf="${myconf} $(use_with canna )"
186 myconf="${myconf} $(use_with freewnn wnn )"
187 fi
188
189 # This determines the type of sounds we are playing
190 local soundconf="native"
191
192 # This determines how these sounds should be played
193 use nas && soundconf="${soundconf},nas"
194 use esd && soundconf="${soundconf},esd"
195 use alsa && soundconf="${soundconf},alsa"
196
197 myconf="${myconf} --with-sound=${soundconf}"
198
199 if use gdbm || use berkdb ; then
200 use gdbm && mydb="gdbm"
201 use berkdb && mydb="${mydb},berkdb"
202
203 myconf="${myconf} --with-database=${mydb}"
204 else
205 myconf="${myconf} --without-database"
206 fi
207
208 use debug && myconf="${myconf} --with-optimization=no --with-debug" ||
209 myconf="${myconf} --with-optimization=yes"
210
211 econf ${myconf} \
212 $(use_with gif ) \
213 $(use_with gpm ) \
214 $(use_with postgres postgresql ) \
215 $(use_with ldap ) \
216 $(use_with eolconv file-coding ) \
217 $(use_with pop ) \
218 --prefix=/usr \
219 --with-ncurses \
220 --with-msw=no \
221 --with-mail-locking=flock \
222 --with-site-lisp=yes \
223 --with-site-modules=yes \
224 --with-newgc \
225 --enable-option-checking=no \
226 --with-last-packages=/usr/lib/xemacs \
227 || die "configuration failed"
228 }
229
230 src_install() {
231 emake prefix="${D}"/usr \
232 mandir="${D}"/usr/share/man/man1 \
233 infodir="${D}"/usr/share/info \
234 libdir="${D}"/usr/$(get_libdir) \
235 datadir="${D}"/usr/share \
236 install gzip-el || die
237
238 # Rename some applications installed in bin so that it is clear
239 # which application installed them and so that conflicting
240 # packages (emacs) can't clobber the actual applications.
241 # Addresses bug #62991.
242 for i in b2m ctags etags ; do
243 mv "${D}"/usr/bin/${i} "${D}"/usr/bin/${i}-xemacs || die "mv ${i} failed"
244 done
245
246 # rename man pages
247 for i in ctags etags; do
248 mv "${D}"/usr/share/man/man1/${i}{,-xemacs}.1 || die "mv ${i}.1 failed"
249 done
250
251 # install base packages directories
252 dodir /usr/lib/xemacs/xemacs-packages/
253 dodir /usr/lib/xemacs/site-packages/
254 dodir /usr/lib/xemacs/site-modules/
255 dodir /usr/lib/xemacs/site-lisp/
256
257 if use mule;
258 then
259 dodir /usr/lib/xemacs/mule-packages
260 fi
261
262 # remove extraneous info files
263 cd "${D}"/usr/share/info
264 rm -f dir info.info texinfo* termcap* standards*
265
266 cd "${S}"
267 dodoc CHANGES-* ChangeLog INSTALL Installation PROBLEMS README*
268
269 insinto /usr/share/pixmaps
270 newins "${S}"/etc/${PN}-icon.xpm ${PN}.xpm
271
272 insinto /usr/share/applications
273 doins "${FILESDIR}"/${PN}.desktop
274 }
275
276 pkg_postinst() {
277 eselect emacs update ifunset
278
279 einfo "If you are upgrading from XEmacs 21.4 you should note the following"
280 einfo "incompatibilities:"
281 einfo "- Mule-UCS is no longer supported due to proper UTF-8 support in XEmacs 21.5"
282 einfo "- The X resource class has changed from Emacs to XEmacs,"
283 einfo " settings in your .Xdefaults file should be updated accordingly."
284
285 if use xft;
286 then
287 einfo "You have enabled Xft font support. Xft requires font names to be provided"
288 einfo "in a different way, so you may need to adjust your .Xdefaults accordingly."
289 fi
290 }
291
292 pkg_postrm() {
293 eselect emacs update ifunset
294 }