1 |
commit: d2377699716b0fe6814f5d7cd1c3ad374609720d |
2 |
Author: Ulrich Müller <ulm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Mar 4 08:41:56 2017 +0000 |
4 |
Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Mar 4 08:41:56 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d2377699 |
7 |
|
8 |
app-editors/qemacs: New snapshot. |
9 |
|
10 |
Package-Manager: Portage-2.3.4, Repoman-2.3.2 |
11 |
|
12 |
app-editors/qemacs/Manifest | 1 + |
13 |
.../files/qemacs-0.4.1_pre20170225-Makefile.patch | 42 +++++++++++++++ |
14 |
.../files/qemacs-0.4.1_pre20170225-manpage.patch | 11 ++++ |
15 |
.../files/qemacs-0.4.1_pre20170225-nostrip.patch | 61 +++++++++++++++++++++ |
16 |
app-editors/qemacs/qemacs-0.4.1_pre20170225.ebuild | 63 ++++++++++++++++++++++ |
17 |
5 files changed, 178 insertions(+) |
18 |
|
19 |
diff --git a/app-editors/qemacs/Manifest b/app-editors/qemacs/Manifest |
20 |
index fa2ea2e683a..6f2977c8a6d 100644 |
21 |
--- a/app-editors/qemacs/Manifest |
22 |
+++ b/app-editors/qemacs/Manifest |
23 |
@@ -1,2 +1,3 @@ |
24 |
DIST qemacs-0.4.0_pre20090420.tar.bz2 1393436 SHA256 14f1ffad569f1bdaaa27d2d7ab0251ce69afc9efc347bb244b11f5e34e818ab5 SHA512 4595e34d3a83cbd7f25514dd96b7578976b30de80eb19b1391448ecdb9c06d24088880978961e5abb94b3f715057e7563ae0976d704bc5afaaf83e62a67e8dd4 WHIRLPOOL 63ba6950a0340731cd9a041a5929d18f1769d915a7343a94b2b0c48d82a0af1680b2163426e8d268240d3c0c740895853439d96c2d49791e106f0798f5d88a8b |
25 |
DIST qemacs-0.4.1_pre20150916.tar.xz 1136592 SHA256 1f019c7fc7aceaa2c5608a7ca251e244ee8bf67086e4b285c28f88849e1269b0 SHA512 e9775ff3dfef6d6b6b263029a620e6575f9f4718b94c0acfcddc8e5da8cd835e57dfbd5fbd948778135b609ae0588924fc9a727b2e763a25148aa27886a9f467 WHIRLPOOL 4f97d931eb3880a8ce0f1f09a6f404297797f230cfcc4d2507fcf0b6fcf0c4d28d5868e943905d316cb0d5d22581095c4cd1a8bf00c44f11ed7606a357f7cc19 |
26 |
+DIST qemacs-0.4.1_pre20170225.tar.xz 1147408 SHA256 9a3f754effbd9253b7aec9909fea801fc233cf69f98f6c807e5334ae1c8a08a6 SHA512 a17c8901c917f91401e16b4f857735957ab0d3533d9dcc7a0decf768f453b68023f45e1241225a84d35ba793beb69754e0f2caa857165f8223882d5041d56c99 WHIRLPOOL b430a0fd8ecef701d4727acb023d0a56553cf109e18ae64dfec886923ec6e5395d1dae9484c274d298675928c69e0e966f3443c0f9f4f8c6890af15bc0fd52ae |
27 |
|
28 |
diff --git a/app-editors/qemacs/files/qemacs-0.4.1_pre20170225-Makefile.patch b/app-editors/qemacs/files/qemacs-0.4.1_pre20170225-Makefile.patch |
29 |
new file mode 100644 |
30 |
index 00000000000..0540bcd767c |
31 |
--- /dev/null |
32 |
+++ b/app-editors/qemacs/files/qemacs-0.4.1_pre20170225-Makefile.patch |
33 |
@@ -0,0 +1,42 @@ |
34 |
+Removes forced march setting and align-functions on x86, as they would |
35 |
+override user's CFLAGS. |
36 |
+ |
37 |
+--- qemacs-orig/Makefile |
38 |
++++ qemacs/Makefile |
39 |
+@@ -29,35 +29,11 @@ |
40 |
+ cmd := |
41 |
+ endif |
42 |
+ |
43 |
+-ifeq ($(CC),gcc) |
44 |
+- CFLAGS += -Wall -g -O2 -funsigned-char |
45 |
+- # do not warn about zero-length formats. |
46 |
+- CFLAGS += -Wno-format-zero-length |
47 |
+- LDFLAGS += -g |
48 |
+-endif |
49 |
+- |
50 |
+-#include local compiler configuration file |
51 |
+--include $(DEPTH)/cflags.mk |
52 |
+- |
53 |
+-ifdef TARGET_GPROF |
54 |
+- CFLAGS += -p |
55 |
+- LDFLAGS += -p |
56 |
+-endif |
57 |
+- |
58 |
+ #TCFLAGS := -DCONFIG_TINY -m32 $(CFLAGS) -Os |
59 |
+ #TLDFLAGS := -m32 $(LDFLAGS) |
60 |
+-TCFLAGS := -DCONFIG_TINY $(CFLAGS) -Os |
61 |
++TCFLAGS := -DCONFIG_TINY $(CFLAGS) |
62 |
+ TLDFLAGS := $(LDFLAGS) |
63 |
+ |
64 |
+-ifdef TARGET_ARCH_X86 |
65 |
+- #CFLAGS+=-fomit-frame-pointer |
66 |
+- ifeq ($(GCC_MAJOR),2) |
67 |
+- CFLAGS += -m386 -malign-functions=0 |
68 |
+- else |
69 |
+- CFLAGS += -march=i386 -falign-functions=0 |
70 |
+- endif |
71 |
+-endif |
72 |
+- |
73 |
+ DEFINES=-DHAVE_QE_CONFIG_H |
74 |
+ |
75 |
+ ######################################################## |
76 |
|
77 |
diff --git a/app-editors/qemacs/files/qemacs-0.4.1_pre20170225-manpage.patch b/app-editors/qemacs/files/qemacs-0.4.1_pre20170225-manpage.patch |
78 |
new file mode 100644 |
79 |
index 00000000000..b73f3ee356b |
80 |
--- /dev/null |
81 |
+++ b/app-editors/qemacs/files/qemacs-0.4.1_pre20170225-manpage.patch |
82 |
@@ -0,0 +1,11 @@ |
83 |
+--- qemacs-orig/qe.1 |
84 |
++++ qemacs/qe.1 |
85 |
+@@ -44,7 +44,7 @@ |
86 |
+ anti aliased font display. |
87 |
+ .PP |
88 |
+ For more information and a list of key bindings please see |
89 |
+-/usr/share/doc/qemacs/README.gz. |
90 |
++the README file in /usr/share/doc/@PF@/. |
91 |
+ .SH AUTHOR |
92 |
+ This manual page was written by Edmund GRIMLEY EVANS <edmundo@××××.org>, |
93 |
+ for the Debian GNU/Linux system (but may be used by others). |
94 |
|
95 |
diff --git a/app-editors/qemacs/files/qemacs-0.4.1_pre20170225-nostrip.patch b/app-editors/qemacs/files/qemacs-0.4.1_pre20170225-nostrip.patch |
96 |
new file mode 100644 |
97 |
index 00000000000..60519dca5c3 |
98 |
--- /dev/null |
99 |
+++ b/app-editors/qemacs/files/qemacs-0.4.1_pre20170225-nostrip.patch |
100 |
@@ -0,0 +1,61 @@ |
101 |
+Suppress stripping. |
102 |
+ |
103 |
+--- qemacs-orig/Makefile |
104 |
++++ qemacs/Makefile |
105 |
+@@ -203,7 +203,6 @@ |
106 |
+ qe$(EXE): qe_g$(EXE) Makefile |
107 |
+ @rm -f $@ |
108 |
+ cp $< $@ |
109 |
+- -$(STRIP) $@ |
110 |
+ @ls -l $@ |
111 |
+ @echo `size $@` `wc -c $@` qe $(OPTIONS) \ |
112 |
+ | cut -d ' ' -f 7-10,13,15-40 >> STATS |
113 |
+@@ -218,7 +217,6 @@ |
114 |
+ xqe$(EXE): xqe_g$(EXE) Makefile |
115 |
+ @rm -f $@ |
116 |
+ cp $< $@ |
117 |
+- -$(STRIP) $@ |
118 |
+ @ls -l $@ |
119 |
+ @echo `size $@` `wc -c $@` xqe $(OPTIONS) \ |
120 |
+ | cut -d ' ' -f 7-10,13,15-40 >> STATS |
121 |
+@@ -233,7 +231,6 @@ |
122 |
+ tqe$(EXE): tqe_g$(EXE) Makefile |
123 |
+ @rm -f $@ |
124 |
+ cp $< $@ |
125 |
+- -$(STRIP) $@ |
126 |
+ @ls -l $@ |
127 |
+ @echo `size $@` `wc -c $@` tqe $(OPTIONS) \ |
128 |
+ | cut -d ' ' -f 7-10,13,15-40 >> STATS |
129 |
+@@ -245,7 +242,6 @@ |
130 |
+ t1qe$(EXE): t1qe_g$(EXE) Makefile |
131 |
+ @rm -f $@ |
132 |
+ cp $< $@ |
133 |
+- -$(STRIP) $@ |
134 |
+ @ls -l $@ |
135 |
+ @echo `size $@` `wc -c $@` t1qe $(OPTIONS) \ |
136 |
+ | cut -d ' ' -f 7-10,13,15-40 >> STATS |
137 |
+@@ -478,12 +474,12 @@ |
138 |
+ $(INSTALL) -m 755 -d $(DESTDIR)$(mandir)/man1 |
139 |
+ $(INSTALL) -m 755 -d $(DESTDIR)$(datadir)/qe |
140 |
+ ifdef CONFIG_X11 |
141 |
+- $(INSTALL) -m 755 -s xqe$(EXE) $(DESTDIR)$(prefix)/bin/qemacs$(EXE) |
142 |
++ $(INSTALL) -m 755 xqe$(EXE) $(DESTDIR)$(prefix)/bin/qemacs$(EXE) |
143 |
+ else |
144 |
+ ifdef CONFIG_TINY |
145 |
+- $(INSTALL) -m 755 -s tqe$(EXE) $(DESTDIR)$(prefix)/bin/qemacs$(EXE) |
146 |
++ $(INSTALL) -m 755 tqe$(EXE) $(DESTDIR)$(prefix)/bin/qemacs$(EXE) |
147 |
+ else |
148 |
+- $(INSTALL) -m 755 -s qe$(EXE) $(DESTDIR)$(prefix)/bin/qemacs$(EXE) |
149 |
++ $(INSTALL) -m 755 qe$(EXE) $(DESTDIR)$(prefix)/bin/qemacs$(EXE) |
150 |
+ endif |
151 |
+ endif |
152 |
+ ln -sf qemacs$(EXE) $(DESTDIR)$(prefix)/bin/qe$(EXE) |
153 |
+@@ -493,7 +489,7 @@ |
154 |
+ $(INSTALL) -m 644 kmaps ligatures $(DESTDIR)$(datadir)/qe |
155 |
+ $(INSTALL) -m 644 qe.1 $(DESTDIR)$(mandir)/man1 |
156 |
+ ifdef CONFIG_HTML |
157 |
+- $(INSTALL) -m 755 -s html2png$(EXE) $(DESTDIR)$(prefix)/bin |
158 |
++ $(INSTALL) -m 755 html2png$(EXE) $(DESTDIR)$(prefix)/bin |
159 |
+ endif |
160 |
+ |
161 |
+ uninstall: |
162 |
|
163 |
diff --git a/app-editors/qemacs/qemacs-0.4.1_pre20170225.ebuild b/app-editors/qemacs/qemacs-0.4.1_pre20170225.ebuild |
164 |
new file mode 100644 |
165 |
index 00000000000..dc55a56850d |
166 |
--- /dev/null |
167 |
+++ b/app-editors/qemacs/qemacs-0.4.1_pre20170225.ebuild |
168 |
@@ -0,0 +1,63 @@ |
169 |
+# Copyright 1999-2017 Gentoo Foundation |
170 |
+# Distributed under the terms of the GNU General Public License v2 |
171 |
+ |
172 |
+EAPI=6 |
173 |
+ |
174 |
+inherit toolchain-funcs |
175 |
+ |
176 |
+DESCRIPTION="QEmacs is a very small but powerful UNIX editor" |
177 |
+HOMEPAGE="https://savannah.nongnu.org/projects/qemacs/" |
178 |
+# snapshot of http://cvs.savannah.gnu.org/viewvc/?root=qemacs |
179 |
+SRC_URI="https://dev.gentoo.org/~ulm/distfiles/${P}.tar.xz" |
180 |
+ |
181 |
+LICENSE="LGPL-2.1+ GPL-2+" |
182 |
+SLOT="0" |
183 |
+KEYWORDS="~amd64 ~arm ~ppc ~x86" |
184 |
+IUSE="X png unicode xv" |
185 |
+RESTRICT="test" |
186 |
+ |
187 |
+RDEPEND=" |
188 |
+ X? ( x11-libs/libX11 |
189 |
+ x11-libs/libXext |
190 |
+ xv? ( x11-libs/libXv ) ) |
191 |
+ png? ( >=media-libs/libpng-1.2:0= )" |
192 |
+ |
193 |
+DEPEND="${RDEPEND} |
194 |
+ >=app-text/texi2html-5" |
195 |
+ |
196 |
+S="${WORKDIR}/${PN}" |
197 |
+ |
198 |
+src_prepare() { |
199 |
+ eapply "${FILESDIR}/${P}-Makefile.patch" |
200 |
+ eapply "${FILESDIR}/${P}-nostrip.patch" |
201 |
+ eapply_user |
202 |
+ |
203 |
+ # Change the manpage to reference a /real/ file instead of just an |
204 |
+ # approximation. Purely cosmetic! |
205 |
+ eapply "${FILESDIR}/${P}-manpage.patch" |
206 |
+ sed -i -e "s:@PF@:${PF}:" qe.1 || die |
207 |
+} |
208 |
+ |
209 |
+src_configure() { |
210 |
+ # Home-grown configure script, doesn't support most standard options |
211 |
+ ./configure \ |
212 |
+ --prefix=/usr \ |
213 |
+ --mandir=/usr/share/man \ |
214 |
+ --cc="$(tc-getCC)" \ |
215 |
+ $(use_enable X x11) \ |
216 |
+ $(use_enable png) \ |
217 |
+ $(use_enable xv) || die |
218 |
+} |
219 |
+ |
220 |
+src_install() { |
221 |
+ emake install DESTDIR="${D}" |
222 |
+ dodoc Changelog README TODO.org config.eg |
223 |
+ docinto html |
224 |
+ dodoc qe-doc.html |
225 |
+ |
226 |
+ # Install headers so users can build their own plugins |
227 |
+ insinto /usr/include/qe |
228 |
+ doins *.h |
229 |
+ insinto /usr/include/qe/libqhtml |
230 |
+ doins libqhtml/*.h |
231 |
+} |