app-text/rnv: Unlock scheme support
authorSebastian Pipping <sping@gentoo.org>
Wed, 12 Aug 2015 18:37:02 +0000 (20:37 +0200)
committerSebastian Pipping <sping@gentoo.org>
Wed, 12 Aug 2015 18:37:43 +0000 (20:37 +0200)
Package-Manager: portage-2.2.20
Signed-off-by: Sebastian Pipping <sping@gentoo.org>
app-text/rnv/Manifest
app-text/rnv/metadata.xml
app-text/rnv/rnv-1.7.11-r1.ebuild [new file with mode: 0644]

index afa0a6ae20486d54fd4b03d8ca9ed69011a1e18b..12e9e5456eae9f41ad92ccccdb2aa81e0dcfb1c2 100644 (file)
@@ -1 +1,2 @@
+DIST rnv-1.7.11.tar.xz 140904 SHA256 4ab920f1e4d60841bdc17dbed72ae735bf825af8a9d9eda99165a13be7cc9de6 SHA512 e706ae6cc9b55032b23c0ce4ce728f426727c20d0291f9ea4369221c5b3d59f29ad477c6da4992a9bda7c583078498faabc06a9865081517aeac81b2d2fec212 WHIRLPOOL fb6ea2d27917557dcee74316114a80ea644b09ab499f294ae080356f774a321f0e83491842fe4c1591f105d51eda618f741ee4c61bd82632566a24413b23de6d
 DIST rnv-1.7.11.zip 211316 SHA256 39ed53271f20517a55aa74ad5e393dca407e14512a31ecac4c223378bdd4a6ac SHA512 0d9457015e35177144eb88f6d6234e8d94c3a5a45f26f961b4aaba892bf92c0ddcaf0e037cf3fbbeecf110399760e182c20973e6ba32d1223d2f82600582a28e WHIRLPOOL fe82f65b68e55a7f607d7fb0cc200e83e6882c71226095894615822e68d06e20aebb85e80028edd3c5d4881f47779e42a26947d03757c1391ff8a1dc1a5ab175
index 64bd34360c45c79bf6cfc37a9d79b26863b526c0..f9d73871b4228f8da79c8e5d1e508a582e3b4c05 100644 (file)
@@ -11,4 +11,9 @@
        <upstream>
                <remote-id type="sourceforge">rnv</remote-id>
        </upstream>
+       <use>
+               <flag name="scheme">
+                       Enable scheme support based on <pkg>dev-scheme/scm</pkg>
+               </flag>
+       </use>
 </pkgmetadata>
diff --git a/app-text/rnv/rnv-1.7.11-r1.ebuild b/app-text/rnv/rnv-1.7.11-r1.ebuild
new file mode 100644 (file)
index 0000000..fb78f66
--- /dev/null
@@ -0,0 +1,34 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+
+inherit unpacker toolchain-funcs
+
+DESCRIPTION="A lightweight Relax NG Compact Syntax validator"
+HOMEPAGE="http://www.davidashen.net/rnv.html"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.xz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="scheme"
+
+RDEPEND="dev-libs/expat
+       dev-scheme/scm[libscm]"
+DEPEND="${RDEPEND}"
+
+src_prepare() {
+       sed -i -e "/^AR/s/ar/$(tc-getAR)/" Makefile.in || die 'sed on Makefile.in failed'
+}
+
+src_configure() {
+       LIBS="-ldl -lm" \
+               econf $(use_with scheme scm /usr)
+}
+
+src_install() {
+       default
+       dodoc readme.txt
+}