/[gentoo-x86]/app-editors/xemacs/xemacs-21.5.31.ebuild
Gentoo

Contents of /app-editors/xemacs/xemacs-21.5.31.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.12 - (show annotations) (download)
Wed Oct 24 18:58:39 2012 UTC (2 years, 1 month ago) by ulm
Branch: MAIN
Changes since 1.11: +2 -2 lines
Update dependency after package move from x11-libs/openmotif to x11-libs/motif.

(Portage version: 2.1.11.30/cvs/Linux x86_64, signed Manifest commit with key E7BE08CA7DC6EA25)

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

  ViewVC Help
Powered by ViewVC 1.1.20