Gentoo Archives: gentoo-commits

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