1 |
opfer 08/02/01 16:50:33 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: emacs-cvs-23.0.60-r2.ebuild |
5 |
Removed: emacs-cvs-23.0.60-r1.ebuild |
6 |
emacs-cvs-23.0.50-r1.ebuild |
7 |
Log: |
8 |
unicode-2 branch is merged to mainline, so reflect this in ebuilds |
9 |
(Portage version: 2.1.3.19) |
10 |
|
11 |
Revision Changes Path |
12 |
1.188 app-editors/emacs-cvs/ChangeLog |
13 |
|
14 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-editors/emacs-cvs/ChangeLog?rev=1.188&view=markup |
15 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-editors/emacs-cvs/ChangeLog?rev=1.188&content-type=text/plain |
16 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-editors/emacs-cvs/ChangeLog?r1=1.187&r2=1.188 |
17 |
|
18 |
Index: ChangeLog |
19 |
=================================================================== |
20 |
RCS file: /var/cvsroot/gentoo-x86/app-editors/emacs-cvs/ChangeLog,v |
21 |
retrieving revision 1.187 |
22 |
retrieving revision 1.188 |
23 |
diff -u -r1.187 -r1.188 |
24 |
--- ChangeLog 1 Feb 2008 14:59:36 -0000 1.187 |
25 |
+++ ChangeLog 1 Feb 2008 16:50:33 -0000 1.188 |
26 |
@@ -1,6 +1,13 @@ |
27 |
# ChangeLog for app-editors/emacs-cvs |
28 |
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 |
29 |
-# $Header: /var/cvsroot/gentoo-x86/app-editors/emacs-cvs/ChangeLog,v 1.187 2008/02/01 14:59:36 ulm Exp $ |
30 |
+# $Header: /var/cvsroot/gentoo-x86/app-editors/emacs-cvs/ChangeLog,v 1.188 2008/02/01 16:50:33 opfer Exp $ |
31 |
+ |
32 |
+*emacs-cvs-23.0.60-r2 (01 Feb 2008) |
33 |
+ |
34 |
+ 01 Feb 2008; Christian Faulhammer <opfer@g.o> |
35 |
+ -emacs-cvs-23.0.50-r1.ebuild, -emacs-cvs-23.0.60-r1.ebuild, |
36 |
+ +emacs-cvs-23.0.60-r2.ebuild: |
37 |
+ unicode-2 branch is merged to mainline, so reflect this in ebuilds |
38 |
|
39 |
01 Feb 2008; Ulrich Mueller <ulm@g.o> emacs-cvs-22.1.90.ebuild, |
40 |
emacs-cvs-22.1.9999.ebuild, emacs-cvs-23.0.50-r1.ebuild, |
41 |
|
42 |
|
43 |
|
44 |
1.1 app-editors/emacs-cvs/emacs-cvs-23.0.60-r2.ebuild |
45 |
|
46 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-editors/emacs-cvs/emacs-cvs-23.0.60-r2.ebuild?rev=1.1&view=markup |
47 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-editors/emacs-cvs/emacs-cvs-23.0.60-r2.ebuild?rev=1.1&content-type=text/plain |
48 |
|
49 |
Index: emacs-cvs-23.0.60-r2.ebuild |
50 |
=================================================================== |
51 |
# Copyright 1999-2008 Gentoo Foundation |
52 |
# Distributed under the terms of the GNU General Public License v2 |
53 |
# $Header: /var/cvsroot/gentoo-x86/app-editors/emacs-cvs/emacs-cvs-23.0.60-r2.ebuild,v 1.1 2008/02/01 16:50:33 opfer Exp $ |
54 |
|
55 |
ECVS_AUTH="pserver" |
56 |
ECVS_SERVER="cvs.savannah.gnu.org:/sources/emacs" |
57 |
ECVS_MODULE="emacs" |
58 |
ECVS_BRANCH="HEAD" |
59 |
ECVS_LOCALNAME="emacs" |
60 |
|
61 |
WANT_AUTOCONF="latest" |
62 |
WANT_AUTOMAKE="latest" |
63 |
|
64 |
inherit autotools cvs elisp-common eutils flag-o-matic |
65 |
|
66 |
DESCRIPTION="The extensible, customizable, self-documenting real-time display editor" |
67 |
HOMEPAGE="http://www.gnu.org/software/emacs/" |
68 |
SRC_URI="" |
69 |
|
70 |
LICENSE="GPL-3 FDL-1.2 BSD" |
71 |
SLOT="23" |
72 |
KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~sparc-fbsd ~x86 ~x86-fbsd" |
73 |
|
74 |
IUSE="alsa dbus gif gpm gtk gzip-el hesiod jpeg kerberos motif png spell sound source svg tiff toolkit-scroll-bars X Xaw3d xft xpm" |
75 |
RESTRICT="strip" |
76 |
|
77 |
RDEPEND="sys-libs/ncurses |
78 |
>=app-admin/eselect-emacs-1.2 |
79 |
net-libs/liblockfile |
80 |
hesiod? ( net-dns/hesiod ) |
81 |
kerberos? ( virtual/krb5 ) |
82 |
spell? ( || ( app-text/ispell app-text/aspell ) ) |
83 |
alsa? ( media-libs/alsa-lib ) |
84 |
gpm? ( sys-libs/gpm ) |
85 |
dbus? ( sys-apps/dbus ) |
86 |
X? ( |
87 |
x11-libs/libXmu |
88 |
x11-libs/libXt |
89 |
x11-misc/xbitmaps |
90 |
x11-misc/emacs-desktop |
91 |
gif? ( media-libs/giflib ) |
92 |
jpeg? ( media-libs/jpeg ) |
93 |
tiff? ( media-libs/tiff ) |
94 |
png? ( media-libs/libpng ) |
95 |
svg? ( >=gnome-base/librsvg-2.0 ) |
96 |
xpm? ( x11-libs/libXpm ) |
97 |
xft? ( media-libs/fontconfig virtual/xft >=dev-libs/libotf-0.9.4 ) |
98 |
gtk? ( =x11-libs/gtk+-2* ) |
99 |
!gtk? ( |
100 |
Xaw3d? ( x11-libs/Xaw3d ) |
101 |
!Xaw3d? ( |
102 |
motif? ( virtual/motif ) |
103 |
) |
104 |
) |
105 |
)" |
106 |
|
107 |
DEPEND="${RDEPEND} |
108 |
dev-util/pkgconfig |
109 |
gzip-el? ( app-arch/gzip )" |
110 |
|
111 |
S="${WORKDIR}/${ECVS_LOCALNAME}" |
112 |
|
113 |
EMACS_SUFFIX="emacs-${SLOT}" |
114 |
|
115 |
src_unpack() { |
116 |
cvs_src_unpack |
117 |
|
118 |
cd "${S}" |
119 |
# FULL_VERSION keeps the full version number, which is needed in |
120 |
# order to determine some path information correctly for copy/move |
121 |
# operations later on |
122 |
FULL_VERSION=$(grep 'defconst[ ]*emacs-version' lisp/version.el \ |
123 |
| sed -e 's/^[^"]*"\([^"]*\)".*$/\1/') |
124 |
[ "${FULL_VERSION}" ] || die "Cannot determine current Emacs version" |
125 |
echo |
126 |
einfo "Emacs CVS branch: ${ECVS_BRANCH}" |
127 |
einfo "Emacs version number: ${FULL_VERSION}" |
128 |
[ "${FULL_VERSION}" = ${PV} ] \ |
129 |
|| die "Upstream version number changed to ${FULL_VERSION}" |
130 |
echo |
131 |
|
132 |
epatch "${FILESDIR}/${PN}-freebsd-sparc.patch" |
133 |
|
134 |
sed -i -e "s:/usr/lib/crtbegin.o:$(`tc-getCC` -print-file-name=crtbegin.o):g" \ |
135 |
-e "s:/usr/lib/crtend.o:$(`tc-getCC` -print-file-name=crtend.o):g" \ |
136 |
"${S}"/src/s/freebsd.h || die "unable to sed freebsd.h settings" |
137 |
|
138 |
if ! use alsa; then |
139 |
# ALSA is detected even if not requested by its USE flag. |
140 |
# Suppress it by supplying pkg-config with a wrong library name. |
141 |
sed -i -e "/ALSA_MODULES=/s/alsa/DiSaBlEaLsA/" configure.in \ |
142 |
|| die "unable to sed configure.in" |
143 |
fi |
144 |
if ! use gzip-el; then |
145 |
# Emacs' build system automatically detects the gzip binary and |
146 |
# compresses el files. We don't want that so confuse it with a |
147 |
# wrong binary name |
148 |
sed -i -e "s/ gzip/ PrEvEnTcOmPrEsSiOn/" configure.in \ |
149 |
|| die "unable to sed configure.in" |
150 |
fi |
151 |
|
152 |
eautoreconf |
153 |
} |
154 |
|
155 |
src_compile() { |
156 |
export SANDBOX_ON=0 # for the unbelievers, see Bug #131505 |
157 |
ALLOWED_FLAGS="" |
158 |
strip-flags |
159 |
unset LDFLAGS |
160 |
replace-flags -O[3-9] -O2 |
161 |
|
162 |
local myconf |
163 |
|
164 |
if use alsa && ! use sound; then |
165 |
echo |
166 |
einfo "Although sound USE flag is disabled you chose to have alsa," |
167 |
einfo "so sound is switched on anyway." |
168 |
echo |
169 |
myconf="${myconf} --with-sound" |
170 |
else |
171 |
myconf="${myconf} $(use_with sound)" |
172 |
fi |
173 |
|
174 |
if use X; then |
175 |
myconf="${myconf} --with-x" |
176 |
myconf="${myconf} $(use_with toolkit-scroll-bars)" |
177 |
myconf="${myconf} $(use_enable xft font-backend)" |
178 |
myconf="${myconf} $(use_with xft freetype)" |
179 |
myconf="${myconf} $(use_with xft)" |
180 |
myconf="${myconf} $(use_with jpeg) $(use_with tiff)" |
181 |
myconf="${myconf} $(use_with gif) $(use_with png)" |
182 |
myconf="${myconf} $(use_with xpm) $(use_with svg rsvg)" |
183 |
|
184 |
# GTK+ is the default toolkit if USE=gtk is chosen with other |
185 |
# possibilities. Emacs upstream thinks this should be standard |
186 |
# policy on all distributions |
187 |
if use gtk; then |
188 |
echo |
189 |
einfo "Configuring to build with GTK support, disabling all other toolkits" |
190 |
echo |
191 |
myconf="${myconf} --with-x-toolkit=gtk" |
192 |
elif use Xaw3d; then |
193 |
einfo "Configuring to build with Xaw3d (athena) support" |
194 |
myconf="${myconf} --with-x-toolkit=athena" |
195 |
myconf="${myconf} --without-gtk" |
196 |
elif use motif; then |
197 |
einfo "Configuring to build with motif toolkit support" |
198 |
myconf="${myconf} --with-x-toolkit=motif" |
199 |
myconf="${myconf} --without-gtk" |
200 |
else |
201 |
einfo "Configuring to build with no toolkit" |
202 |
myconf="${myconf} --with-x-toolkit=no" |
203 |
myconf="${myconf} --without-gtk" |
204 |
fi |
205 |
else |
206 |
myconf="${myconf} --without-x" |
207 |
fi |
208 |
|
209 |
myconf="${myconf} $(use_with hesiod)" |
210 |
myconf="${myconf} $(use_with kerberos) $(use_with kerberos kerberos5)" |
211 |
myconf="${myconf} $(use_with gpm) $(use_with dbus)" |
212 |
|
213 |
econf \ |
214 |
--program-suffix=-${EMACS_SUFFIX} \ |
215 |
--infodir=/usr/share/info/${EMACS_SUFFIX} \ |
216 |
--without-carbon \ |
217 |
${myconf} || die "econf emacs failed" |
218 |
|
219 |
emake CC="$(tc-getCC)" bootstrap || die "make bootstrap failed" |
220 |
} |
221 |
|
222 |
src_install () { |
223 |
local i m |
224 |
|
225 |
emake install DESTDIR="${D}" || die "make install failed" |
226 |
|
227 |
rm "${D}"/usr/bin/emacs-${FULL_VERSION}-${EMACS_SUFFIX} \ |
228 |
|| die "removing duplicate emacs executable failed" |
229 |
mv "${D}"/usr/bin/emacs-${EMACS_SUFFIX} "${D}"/usr/bin/${EMACS_SUFFIX} \ |
230 |
|| die "moving Emacs executable failed" |
231 |
|
232 |
# move info documentation to the correct place |
233 |
einfo "Fixing info documentation ..." |
234 |
for i in "${D}"/usr/share/info/${EMACS_SUFFIX}/*; do |
235 |
mv "${i}" "${i}.info" || die "mv info failed" |
236 |
done |
237 |
|
238 |
# move man pages to the correct place |
239 |
einfo "Fixing manpages ..." |
240 |
for m in "${D}"/usr/share/man/man1/* ; do |
241 |
mv "${m}" "${m%.1}-${EMACS_SUFFIX}.1" || die "mv man failed" |
242 |
done |
243 |
|
244 |
# avoid collision between slots, see bug #169033 e.g. |
245 |
rm "${D}"/usr/share/emacs/site-lisp/subdirs.el |
246 |
rm -rf "${D}"/usr/share/{applications,icons} |
247 |
rm "${D}"/var/lib/games/emacs/{snake,tetris}-scores |
248 |
keepdir /var/lib/games/emacs/ |
249 |
|
250 |
if use source; then |
251 |
insinto /usr/share/emacs/${FULL_VERSION}/src |
252 |
# This is not meant to install all the source -- just the |
253 |
# C source you might find via find-function |
254 |
doins src/*.[ch] |
255 |
sed 's/^X//' >10${PN}-${SLOT}-gentoo.el <<-EOF |
256 |
|
257 |
;;; ${PN}-${SLOT} site-lisp configuration |
258 |
|
259 |
(if (string-match "\\\\\`${FULL_VERSION//./\\\\.}\\\\>" emacs-version) |
260 |
X (setq find-function-C-source-directory |
261 |
X "/usr/share/emacs/${FULL_VERSION}/src")) |
262 |
EOF |
263 |
elisp-site-file-install 10${PN}-${SLOT}-gentoo.el |
264 |
fi |
265 |
|
266 |
dodoc README README.unicode BUGS || die "dodoc failed" |
267 |
} |
268 |
|
269 |
emacs-infodir-rebuild() { |
270 |
# Depending on the Portage version, the Info dir file is compressed |
271 |
# or removed. It is only rebuilt by Portage if our directory is in |
272 |
# INFOPATH, which is not guaranteed. So we rebuild it ourselves. |
273 |
|
274 |
local infodir=/usr/share/info/${EMACS_SUFFIX} f |
275 |
einfo "Regenerating Info directory index in ${infodir} ..." |
276 |
rm -f "${ROOT}"${infodir}/dir{,.*} |
277 |
for f in "${ROOT}"${infodir}/*.info*; do |
278 |
[[ ${f##*/} == *[0-9].info* ]] \ |
279 |
|| install-info --info-dir="${ROOT}"${infodir} "${f}" &>/dev/null |
280 |
done |
281 |
echo |
282 |
} |
283 |
|
284 |
pkg_postinst() { |
285 |
test -f "${ROOT}"/usr/share/emacs/site-lisp/subdirs.el || |
286 |
cp "${ROOT}"/usr/share/emacs{/${FULL_VERSION},}/site-lisp/subdirs.el |
287 |
|
288 |
local f |
289 |
for f in "${ROOT}"/var/lib/games/emacs/{snake,tetris}-scores; do |
290 |
test -e "${f}" || touch "${f}" |
291 |
done |
292 |
|
293 |
elisp-site-regen |
294 |
emacs-infodir-rebuild |
295 |
eselect emacs update ifunset |
296 |
|
297 |
if use X; then |
298 |
elog "You need to install some fonts for Emacs. Under monolithic" |
299 |
elog "XFree86/Xorg you typically had such fonts installed by default." |
300 |
elog "With modular Xorg, you will have to perform this step yourself." |
301 |
elog "Installing media-fonts/font-adobe-{75,100}dpi on the X server's" |
302 |
elog "machine would satisfy basic Emacs requirements under X11." |
303 |
fi |
304 |
|
305 |
echo |
306 |
elog "You can set the version to be started by /usr/bin/emacs through" |
307 |
elog "the Emacs eselect module, which also redirects man and info pages." |
308 |
elog "You can therefore test emacs-cvs along with the stable release." |
309 |
elog "\"man emacs.eselect\" for details." |
310 |
} |
311 |
|
312 |
pkg_postrm() { |
313 |
elisp-site-regen |
314 |
emacs-infodir-rebuild |
315 |
eselect emacs update ifunset |
316 |
} |
317 |
|
318 |
|
319 |
|
320 |
-- |
321 |
gentoo-commits@l.g.o mailing list |