1 |
commit: 5f9ccfdbe32fb1b0acc380c5098cb723182250f7 |
2 |
Author: Anna Vyalkova <cyber+gentoo <AT> sysrq <DOT> in> |
3 |
AuthorDate: Wed Dec 22 04:32:41 2021 +0000 |
4 |
Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Dec 22 13:20:33 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5f9ccfdb |
7 |
|
8 |
app-text/antiword: revbump (EAPI 5 -> 8) |
9 |
|
10 |
Closes: https://bugs.gentoo.org/829790 |
11 |
Signed-off-by: Anna Vyalkova <cyber+gentoo <AT> sysrq.in> |
12 |
Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org> |
13 |
|
14 |
app-text/antiword/antiword-0.37-r2.ebuild | 55 +++++++++++++++++++++++++++++++ |
15 |
1 file changed, 55 insertions(+) |
16 |
|
17 |
diff --git a/app-text/antiword/antiword-0.37-r2.ebuild b/app-text/antiword/antiword-0.37-r2.ebuild |
18 |
new file mode 100644 |
19 |
index 000000000000..1b0fc3a45055 |
20 |
--- /dev/null |
21 |
+++ b/app-text/antiword/antiword-0.37-r2.ebuild |
22 |
@@ -0,0 +1,55 @@ |
23 |
+# Copyright 1999-2021 Gentoo Authors |
24 |
+# Distributed under the terms of the GNU General Public License v2 |
25 |
+ |
26 |
+EAPI=8 |
27 |
+ |
28 |
+inherit toolchain-funcs |
29 |
+ |
30 |
+PATCHVER="r2" |
31 |
+DESCRIPTION="free MS Word reader" |
32 |
+HOMEPAGE="http://www.winfield.demon.nl" |
33 |
+SRC_URI="http://www.winfield.demon.nl/linux/${P}.tar.gz |
34 |
+ https://dev.gentoo.org/~grobian/distfiles/${PN}-gentoo-patches-${PATCHVER}.tar.bz2" |
35 |
+ |
36 |
+LICENSE="GPL-2" |
37 |
+SLOT="0" |
38 |
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~x64-solaris ~x86-solaris" |
39 |
+ |
40 |
+PATCHES=( |
41 |
+ "${WORKDIR}"/${PN}-gentoo-patches-${PATCHVER} |
42 |
+ "${FILESDIR}"/${P}-CVE-2014-8123.patch |
43 |
+) |
44 |
+ |
45 |
+DOCS=( Docs/{ChangeLog,Exmh,Emacs,FAQ,History,Netscape,QandA,ReadMe,Mozilla,Mutt} ) |
46 |
+ |
47 |
+src_prepare() { |
48 |
+ # Makefile is a symlink to Makefile.Linux, avoid that we patch it by |
49 |
+ # accident using patch <2.7, see bug #435492 |
50 |
+ rm Makefile || die |
51 |
+ |
52 |
+ default |
53 |
+ |
54 |
+ # Re-add convenience symlink, see above |
55 |
+ ln -s Makefile.Linux Makefile |
56 |
+} |
57 |
+ |
58 |
+src_configure() { |
59 |
+ true |
60 |
+} |
61 |
+ |
62 |
+src_compile() { |
63 |
+ emake PREFIX="${EPREFIX}" OPT="${CFLAGS}" CC="$(tc-getCC)" LD="$(tc-getCC)" \ |
64 |
+ LDFLAGS="${LDFLAGS}" |
65 |
+} |
66 |
+ |
67 |
+src_install() { |
68 |
+ emake -j1 PREFIX="${EPREFIX}" DESTDIR="${D}" global_install |
69 |
+ |
70 |
+ einstalldocs |
71 |
+ |
72 |
+ docompress -x /usr/share/doc/${PF}/examples |
73 |
+ docinto examples |
74 |
+ dodoc Docs/testdoc.doc Docs/antiword.php |
75 |
+ |
76 |
+ doman Docs/antiword.1 |
77 |
+} |