Gentoo Archives: gentoo-commits

From: Sergei Trofimovich <slyfox@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-text/catdoc/
Date: Wed, 25 Dec 2019 19:52:55
Message-Id: 1577303564.cbf1997a5586329f35e3880474624357e4f36267.slyfox@gentoo
1 commit: cbf1997a5586329f35e3880474624357e4f36267
2 Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
3 AuthorDate: Wed Dec 25 19:52:34 2019 +0000
4 Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
5 CommitDate: Wed Dec 25 19:52:44 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cbf1997a
7
8 app-text/catdoc: rename xls2csv manpage, bug #702482
9
10 Reported-by: PhobosK
11 Closes: https://bugs.gentoo.org/702482
12 Package-Manager: Portage-2.3.83, Repoman-2.3.20
13 Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org>
14
15 app-text/catdoc/catdoc-0.95-r1.ebuild | 52 +++++++++++++++++++++++++++++++++++
16 1 file changed, 52 insertions(+)
17
18 diff --git a/app-text/catdoc/catdoc-0.95-r1.ebuild b/app-text/catdoc/catdoc-0.95-r1.ebuild
19 new file mode 100644
20 index 00000000000..bcb0c6d36a8
21 --- /dev/null
22 +++ b/app-text/catdoc/catdoc-0.95-r1.ebuild
23 @@ -0,0 +1,52 @@
24 +# Copyright 1999-2019 Gentoo Authors
25 +# Distributed under the terms of the GNU General Public License v2
26 +
27 +EAPI=7
28 +
29 +DESCRIPTION="Converter for Microsoft Word, Excel, PowerPoint and RTF files to text"
30 +HOMEPAGE="http://www.wagner.pp.ru/~vitus/software/catdoc/"
31 +SRC_URI="http://ftp.wagner.pp.ru/pub/${PN}/${P}.tar.gz"
32 +
33 +LICENSE="GPL-2"
34 +SLOT="0"
35 +KEYWORDS="~amd64 ~arm ~ppc ~x86 ~amd64-linux ~ppc-macos ~x86-macos ~x64-solaris ~x86-solaris"
36 +IUSE="tk"
37 +
38 +DEPEND="tk? ( >=dev-lang/tk-8.1 )"
39 +
40 +DOCS="CODING.STD NEWS README TODO"
41 +# CREDITS missing by accident in catdoc-0.95
42 +
43 +PATCHES=(
44 + "${FILESDIR}/${P}-parallel-make.patch"
45 + )
46 +
47 +src_prepare() {
48 + default
49 +
50 + # Fix for case-insensitive filesystems
51 + echo ".PHONY: all install clean distclean dist" >> Makefile.in || die
52 +
53 + mv configure.{in,ac} || die
54 +}
55 +
56 +src_configure() {
57 + econf --with-install-root="${D}" \
58 + $(use_with tk wish "${EPREFIX}"/usr/bin/wish) \
59 + $(use_enable tk wordview)
60 +}
61 +
62 +src_compile() {
63 + emake LIB_DIR="${EPREFIX}"/usr/share/catdoc
64 +}
65 +
66 +src_install() {
67 + default
68 +
69 + # dev-libs/libxls and app-text/catdoc both provide xls2cvs
70 + if [[ -e ${ED}/usr/bin/xls2csv ]]; then
71 + einfo "Renaming xls2csv to xls2csv-${PN} because of bug 314657."
72 + mv -vf "${ED}"/usr/bin/xls2csv "${ED}"/usr/bin/xls2csv-${PN} || die
73 + mv -vf "${ED}"/usr/share/man/man1/xls2csv.1 "${ED}"/usr/share/man/man1/xls2csv-${PN}.1 || die
74 + fi
75 +}