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