Gentoo Archives: gentoo-commits

From: "Ulrich Müller" <ulm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/emacs:master commit in: app-editors/emacs/
Date: Thu, 03 Oct 2013 17:54:39
Message-Id: 1380822871.9c9e987a04a2d8322bc2d474e404d46bf9e71a89.ulm@gentoo
1 commit: 9c9e987a04a2d8322bc2d474e404d46bf9e71a89
2 Author: Ulrich Müller <ulm <AT> gentoo <DOT> org>
3 AuthorDate: Thu Oct 3 17:54:31 2013 +0000
4 Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org>
5 CommitDate: Thu Oct 3 17:54:31 2013 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/emacs.git;a=commit;h=9c9e987a
7
8 Copied to Portage tree.
9
10 ---
11 app-editors/emacs/ChangeLog | 11 ---
12 app-editors/emacs/Manifest | 3 -
13 app-editors/emacs/emacs-18.59-r9.ebuild | 165 --------------------------------
14 app-editors/emacs/metadata.xml | 5 -
15 4 files changed, 184 deletions(-)
16
17 diff --git a/app-editors/emacs/ChangeLog b/app-editors/emacs/ChangeLog
18 deleted file mode 100644
19 index 53af279..0000000
20 --- a/app-editors/emacs/ChangeLog
21 +++ /dev/null
22 @@ -1,11 +0,0 @@
23 -# ChangeLog for app-editors/emacs
24 -# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
25 -# $Header: $
26 -
27 -*emacs-18.59-r9 (02 Oct 2013)
28 -
29 - 02 Oct 2013; Ulrich Müller <ulm@g.o> +emacs-18.59-r9.ebuild,
30 - +metadata.xml:
31 - Copied from Portage tree. Bump ebuild to EAPI 5. Depend on multilib-enabled
32 - ncurses on amd64.
33 -
34
35 diff --git a/app-editors/emacs/Manifest b/app-editors/emacs/Manifest
36 deleted file mode 100644
37 index 79460b2..0000000
38 --- a/app-editors/emacs/Manifest
39 +++ /dev/null
40 @@ -1,3 +0,0 @@
41 -DIST emacs-18.59-linux22x-elf-glibc21.diff.gz 15671 SHA256 fb810d893938883d50a3a8d7c43fbeb1604d5454f760b8f1f700326c8ee659dd SHA512 c6c6ea33850dadf08d68fff56fc6aacc80ad1aa36661260715d50b95438942d56e6244094427d50356cfe716f26559feb885254c436399bff7be639637d605b6 WHIRLPOOL cafaa0fb0d06058cac8e445a7a1b5cba145d23186477a9c681efdab8ca0f18a9675dec3a93851fd7138890701f83fab83300c28a548c8fc22478a0cfff95d5da
42 -DIST emacs-18.59-patches-8.tar.bz2 19667 SHA256 637542bf5ee07d4abac11b76e742598a60787f3869dbf377eed99ae005fbc59d SHA512 a6564bc16724bfdb22f77b0e21b6064ca5e0e1bc91f3223c1037c26f8a048f28ac7a5da6817dc940a5f00f1f39bbfcda2277645409cd7e143a55fabdc3d3fe5d WHIRLPOOL 6b81f978aef2b429262e79ab1d995cca9237dc9c9d98144d2dc3de07bc2cdcec8547adbaf5ad41d9cce3239554918c04c7b9ff783b7931582a3a7398eb2b66f1
43 -DIST emacs-18.59.tar.gz 2962652 SHA256 1e27e33f91984a91e9b4c1f21433f931aba03670960ecc147bb6d7b0de0f051e SHA512 03ce565e346e89b7aacb1852f4783e8907f394de7da0c543b475cb038eb89b87f980d0f7ca1841b1d2108b20f211e95113c7214e4a33e5767a1827ff43173f33 WHIRLPOOL 5e98e71518f665e2a8278afe54e0ace6d7fdd9df23ff0a3354ffc1d5cc25cd21b0dd4d82766fcb436d4f24e9291c933295e956e1ffea43cfeedf915175763be6
44
45 diff --git a/app-editors/emacs/emacs-18.59-r9.ebuild b/app-editors/emacs/emacs-18.59-r9.ebuild
46 deleted file mode 100644
47 index 5fdb2c4..0000000
48 --- a/app-editors/emacs/emacs-18.59-r9.ebuild
49 +++ /dev/null
50 @@ -1,165 +0,0 @@
51 -# Copyright 1999-2013 Gentoo Foundation
52 -# Distributed under the terms of the GNU General Public License v2
53 -# $Header: $
54 -
55 -EAPI=5
56 -
57 -inherit eutils toolchain-funcs flag-o-matic multilib
58 -
59 -DESCRIPTION="The extensible self-documenting text editor"
60 -HOMEPAGE="http://www.gnu.org/software/emacs/"
61 -SRC_URI="mirror://gnu/old-gnu/emacs/${P}.tar.gz
62 - ftp://ftp.splode.com/pub/users/friedman/emacs/${P}-linux22x-elf-glibc21.diff.gz
63 - mirror://gentoo/${P}-patches-8.tar.bz2"
64 -
65 -LICENSE="GPL-1+ GPL-2+ BSD" #HPND
66 -SLOT="18"
67 -KEYWORDS="~amd64 ~x86"
68 -IUSE="+abi_x86_32 abi_x86_x32"
69 -REQUIRED_USE="amd64? ( || ( abi_x86_32 abi_x86_x32 ) )"
70 -
71 -RDEPEND="sys-libs/ncurses
72 - >=app-admin/eselect-emacs-1.2
73 - amd64? (
74 - sys-libs/ncurses[abi_x86_x32(-)?]
75 - !abi_x86_x32? ( sys-libs/ncurses[abi_x86_32(-)?] )
76 - )"
77 -# X? ( x11-libs/libX11[-xcb] )
78 -DEPEND="${RDEPEND}
79 - virtual/pkgconfig"
80 -
81 -src_prepare() {
82 - epatch "${WORKDIR}/${P}-linux22x-elf-glibc21.diff"
83 - EPATCH_SUFFIX=patch epatch
84 - epatch_user
85 -}
86 -
87 -src_configure() {
88 - # autoconf? What's autoconf? We are living in 1992. ;-)
89 - local arch
90 - case ${ARCH} in
91 - amd64)
92 - if use abi_x86_x32; then
93 - arch=x86-x32
94 - multilib_toolchain_setup x32
95 - elif use abi_x86_32; then
96 - arch=intel386
97 - multilib_toolchain_setup x86
98 - else
99 - die "Need 32 bit ABI on amd64"
100 - fi
101 - ;;
102 - x86) arch=intel386 ;;
103 - *) die "Architecture ${ARCH} not yet supported" ;;
104 - esac
105 - local cmd="s/\"s-.*\.h\"/\"s-linux.h\"/;s/\"m-.*\.h\"/\"m-${arch}.h\"/"
106 - #use X && cmd="${cmd};s/.*\(#define HAVE_X_WINDOWS\).*/\1/"
107 - sed -e "${cmd}" src/config.h-dist >src/config.h || die
108 -
109 - cat <<-END >src/paths.h
110 - #define PATH_LOADSEARCH "/usr/share/emacs/${PV}/lisp"
111 - #define PATH_EXEC "/usr/share/emacs/${PV}/etc"
112 - #define PATH_LOCK "/var/lib/emacs/lock/"
113 - #define PATH_SUPERLOCK "/var/lib/emacs/lock/!!!SuperLock!!!"
114 - END
115 -
116 - sed -i -e "s:/usr/lib/\([^ ]*\).o:/usr/$(get_libdir)/\1.o:g" \
117 - -e "s:-lncurses:$("$(tc-getPKG_CONFIG)" --libs ncurses):" \
118 - src/s-linux.h || die
119 -
120 - # -O3 and -finline-functions cause segmentation faults at run time.
121 - filter-flags -finline-functions
122 - replace-flags -O[3-9] -O2
123 - strip-flags
124 -}
125 -
126 -src_compile() {
127 - # Do not use the sandbox, or the dumped Emacs will be twice as large
128 - export SANDBOX_ON=0
129 - emake --jobs=1 \
130 - CC="$(tc-getCC)" CFLAGS="${CFLAGS} -Demacs" \
131 - LD="$(tc-getCC) -nostdlib" LDFLAGS="${LDFLAGS}"
132 -}
133 -
134 -src_install() {
135 - local basedir="/usr/share/emacs/${PV}" i
136 -
137 - dodir ${basedir}
138 - dodir /usr/share/man/man1
139 - emake --jobs=1 \
140 - LIBDIR="${D}"${basedir} \
141 - BINDIR="${D}"/usr/bin \
142 - MANDIR="${D}"/usr/share/man/man1 \
143 - install
144 -
145 - rmdir "${D}"${basedir}/lock || die
146 - find "${D}"${basedir} -type f \( -name "*.c" -o -name ChangeLog \
147 - -o -name COPYING ! -path "*/etc/COPYING" \) -exec rm "{}" + || die
148 - fperms -R go-w ${basedir}
149 -
150 - # remove duplicate DOC file
151 - rm "${D}"${basedir}/etc/DOC || die
152 -
153 - # move executables to the correct place
154 - mv "${D}"/usr/bin/emacs{,-${SLOT}} || die
155 - for i in etags ctags emacsclient; do
156 - mv "${D}"/usr/bin/${i}{,-emacs-${SLOT}} || die
157 - rm "${D}"${basedir}/etc/${i} || die
158 - done
159 -
160 - dodir /usr/libexec/emacs/${PV}
161 - for i in wakeup digest-doc sorted-doc movemail cvtmail fakemail \
162 - yow env server
163 - do
164 - mv "${D}"${basedir}/etc/${i} "${D}"/usr/libexec/emacs/${PV}/${i} || die
165 - dosym ../../../../libexec/emacs/${PV}/${i} ${basedir}/etc/${i}
166 - done
167 - for i in test-distrib make-docfile; do
168 - rm "${D}"${basedir}/etc/${i} || die
169 - done
170 -
171 - # move man page
172 - mv "${D}"/usr/share/man/man1/emacs{,-emacs-${SLOT}}.1 || die
173 -
174 - # move Info files
175 - dodir /usr/share/info
176 - mv "${D}"${basedir}/info "${D}"/usr/share/info/emacs-${SLOT} || die
177 - dosym ../../info/emacs-${SLOT} "${basedir}"/info
178 - docompress -x /usr/share/info
179 -
180 - # move Info dir to avoid collisions with the dir file generated by portage
181 - mv "${D}"/usr/share/info/emacs-${SLOT}/dir{,.orig} || die
182 - touch "${D}"/usr/share/info/emacs-${SLOT}/.keepinfodir
183 -
184 - dodir /var/lib/emacs
185 - diropts -m0777
186 - keepdir /var/lib/emacs/lock
187 -
188 - dodoc README PROBLEMS
189 -}
190 -
191 -pkg_preinst() {
192 - # move Info dir file to correct name
193 - if [[ -d "${D}"/usr/share/info ]]; then
194 - mv "${D}"/usr/share/info/emacs-${SLOT}/dir{.orig,} || die
195 - fi
196 -
197 - # remove symlink and directory installed by -r6 and earlier
198 - if [[ -L "${ROOT}"/usr/share/info/emacs-${SLOT} ]]; then
199 - ewarn "Removing old symlink /usr/share/info/emacs-${SLOT}"
200 - rm "${ROOT}"/usr/share/info/emacs-${SLOT} || die
201 - fi
202 - if [[ -d "${ROOT}"/usr/share/emacs/${PV}/info \
203 - && ! -L "${ROOT}"/usr/share/emacs/${PV}/info ]]; then
204 - ewarn "Removing old directory /usr/share/emacs/${PV}/info"
205 - rm -r "${ROOT}"/usr/share/emacs/${PV}/info || die
206 - fi
207 -}
208 -
209 -pkg_postinst() {
210 - eselect emacs update ifunset
211 -}
212 -
213 -pkg_postrm() {
214 - eselect emacs update ifunset
215 -}
216
217 diff --git a/app-editors/emacs/metadata.xml b/app-editors/emacs/metadata.xml
218 deleted file mode 100644
219 index bc306fe..0000000
220 --- a/app-editors/emacs/metadata.xml
221 +++ /dev/null
222 @@ -1,5 +0,0 @@
223 -<?xml version="1.0" encoding="UTF-8"?>
224 -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
225 -<pkgmetadata>
226 -<herd>emacs</herd>
227 -</pkgmetadata>