app-text/xindy: Fix build of latin.xdy file.
authorUlrich Müller <ulm@gentoo.org>
Mon, 6 Feb 2017 19:43:13 +0000 (20:43 +0100)
committerUlrich Müller <ulm@gentoo.org>
Mon, 6 Feb 2017 19:44:06 +0000 (20:44 +0100)
Non-maintainer commit with permission from dilfridge.

Bug: 573794

Package-Manager: Portage-2.3.3, Repoman-2.3.1

app-text/xindy/files/xindy-2.4-nogrep.patch [new file with mode: 0644]
app-text/xindy/xindy-2.4-r1.ebuild [new file with mode: 0644]

diff --git a/app-text/xindy/files/xindy-2.4-nogrep.patch b/app-text/xindy/files/xindy-2.4-nogrep.patch
new file mode 100644 (file)
index 0000000..41f1b3a
--- /dev/null
@@ -0,0 +1,13 @@
+https://bugs.gentoo.org/573794
+
+--- xindy-2.4-orig/make-rules/inputenc/Makefile.am
++++ xindy-2.4/make-rules/inputenc/Makefile.am
+@@ -43,7 +43,7 @@
+ latin.xdy : latin1.xdy latin2.xdy latin3.xdy
+       echo ';; Generated from latin?.xdy' >latin.xdy
+       echo >>latin.xdy
+-      sort -u latin?.xdy | grep -v '^;' >>latin.xdy
++      sort -u latin?.xdy | sed '/^;/d' >>latin.xdy
+ 
+ %.xdy %.idx :
+       $(PERL) $(srcdir)/make-testidx.pl TS1,T2A,T1 $* >$*.tex
diff --git a/app-text/xindy/xindy-2.4-r1.ebuild b/app-text/xindy/xindy-2.4-r1.ebuild
new file mode 100644 (file)
index 0000000..2a44636
--- /dev/null
@@ -0,0 +1,42 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+inherit eutils autotools
+
+DESCRIPTION="A Flexible Indexing System"
+HOMEPAGE="http://www.xindy.org/"
+SRC_URI="http://www.xindy.org/xindy-2.4.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~x86"
+IUSE="doc"
+
+RDEPEND="virtual/latex-base
+       dev-texlive/texlive-fontsrecommended
+       >=dev-lisp/clisp-2.44.1-r1
+       dev-texlive/texlive-langcyrillic"
+DEPEND="${RDEPEND}
+       dev-lang/perl
+       sys-devel/flex"
+
+PATCHES=("${FILESDIR}"/${P}-configure.patch
+       "${FILESDIR}"/${P}-locale.patch
+       "${FILESDIR}"/${P}-nogrep.patch)
+DOCS=(AUTHORS ChangeLog.Gour NEWS README)
+
+src_prepare() {
+       default
+       eautoreconf
+}
+
+src_configure() {
+       econf $(use_enable doc docs)
+}
+
+src_compile() {
+       VARTEXFONTS="${T}/fonts" emake
+}