summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Janda <felix.janda@posteo.de>2016-09-03 14:47:59 -0400
committerPatrice Clement <monsieurp@gentoo.org>2016-09-04 08:45:05 +0200
commit8c3e75af5654b878b05fb231f38770e425919712 (patch)
treeac5a880ee98b87b247a78be9f95a2a6413960e57 /app-text/catdoc/catdoc-0.95.ebuild
parentnet-analyzer/mk-livestatus: Shrink DESCRIPTION. (diff)
downloadgentoo-8c3e75af5654b878b05fb231f38770e425919712.tar.gz
gentoo-8c3e75af5654b878b05fb231f38770e425919712.tar.bz2
gentoo-8c3e75af5654b878b05fb231f38770e425919712.zip
app-text/catdoc: version bump to 0.95.
* modernize ebuild * fix parallel make install * add arm keyword Gentoo-Bug: https://bugs.gentoo.org/591362 Closes: https://github.com/gentoo/gentoo/pull/2204 Signed-off-by: Patrice Clement <monsieurp@gentoo.org>
Diffstat (limited to 'app-text/catdoc/catdoc-0.95.ebuild')
-rw-r--r--app-text/catdoc/catdoc-0.95.ebuild51
1 files changed, 51 insertions, 0 deletions
diff --git a/app-text/catdoc/catdoc-0.95.ebuild b/app-text/catdoc/catdoc-0.95.ebuild
new file mode 100644
index 000000000000..75ef74529221
--- /dev/null
+++ b/app-text/catdoc/catdoc-0.95.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+DESCRIPTION="Converter for Microsoft Word, Excel, PowerPoint and RTF files to text"
+HOMEPAGE="http://www.wagner.pp.ru/~vitus/software/catdoc/"
+SRC_URI="http://ftp.wagner.pp.ru/pub/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~ppc ~x86 ~amd64-linux ~ppc-macos ~x86-macos ~x64-solaris ~x86-solaris"
+IUSE="tk"
+
+DEPEND="tk? ( >=dev-lang/tk-8.1 )"
+
+DOCS="CODING.STD NEWS README TODO"
+# CREDITS missing by accident in catdoc-0.95
+
+PATCHES=(
+ "${FILESDIR}/${P}-parallel-make.patch"
+ )
+
+src_prepare() {
+ default
+
+ # Fix for case-insensitive filesystems
+ echo ".PHONY: all install clean distclean dist" >> Makefile.in || die
+
+ mv configure.{in,ac} || die
+}
+
+src_configure() {
+ econf --with-install-root="${D}" \
+ $(use_with tk wish "${EPREFIX}"/usr/bin/wish) \
+ $(use_enable tk wordview)
+}
+
+src_compile() {
+ emake LIB_DIR="${EPREFIX}"/usr/share/catdoc
+}
+
+src_install() {
+ default
+
+ if [[ -e ${ED}/usr/bin/xls2csv ]]; then
+ einfo "Renaming xls2csv to xls2csv-${PN} because of bug 314657."
+ mv -vf "${ED}"/usr/bin/xls2csv "${ED}"/usr/bin/xls2csv-${PN} || die
+ fi
+}