summaryrefslogtreecommitdiff
path: root/sys-apps/miller
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /sys-apps/miller
reinit the tree, so we can have metadata
Diffstat (limited to 'sys-apps/miller')
-rw-r--r--sys-apps/miller/Manifest4
-rw-r--r--sys-apps/miller/metadata.xml8
-rw-r--r--sys-apps/miller/miller-4.2.0.ebuild60
3 files changed, 72 insertions, 0 deletions
diff --git a/sys-apps/miller/Manifest b/sys-apps/miller/Manifest
new file mode 100644
index 000000000000..56334aec8aee
--- /dev/null
+++ b/sys-apps/miller/Manifest
@@ -0,0 +1,4 @@
+DIST miller-4.2.0.tar.gz 3373505 SHA256 2758a2364daad8672c4da85698b328f20178539d5f5d5866b19518cce1c83487 SHA512 f176dc2ce4e733ac1e4e331f17554d4ed089344a5f571bcc9d4b3b227f6c950fa0355f1a5b934e4f9467d9a22448e2842c586a4e6c424a98ec89170cd70b1714 WHIRLPOOL 8514bc6bde3cd3598caeb6e123ff7cec26a464818f6be43ddb51e43c8cee25f42403b3355ad5cfd11355788b8824ee497a12fb1172620935a17b28979f62fad2
+EBUILD miller-4.2.0.ebuild 1228 SHA256 8aa031faddb501689289b123be01d83f49754894e5c4dadc5a0db9c6c4d2d130 SHA512 0df8acbd893e5c67546b23a89b7b6f4ccb930d802e8648b636410d6ca71d5e8a9aaa2b4a452006efc54bcd9699ee32fb12310b0e7043d7f7151c24707c155b30 WHIRLPOOL 2d935a046bf57f21ab65287571b3af9cb8f05df3c08353407ff7a322c6ce8091b08e9cadfcb433257939ce0e26b0cf1571ef1c16c8e684151fd98f8f0496dc8f
+MISC ChangeLog 1051 SHA256 67cfe5c50f52492b3f5a7b492d3b97cace4e319189f59bc9dfbb29182a4d25a8 SHA512 e19f360c6820b762cfedc4030a819a2c06bd06edbe511911fc9673baa0b47957cae280d6004ffc996936aaddcd7e1ff7c7000d8f8436663e40b17e4469e4afe1 WHIRLPOOL 709f315d0693c61067d9615270a37768ef750e2bc33b43a91a80ec4c6396bec55aced3fb58f359fd1727e410f8df017f2be8541f4b49657b6ea76f26dab84312
+MISC metadata.xml 247 SHA256 2341b02572cf536f61adf9930bcbeb405919d8d2fd88775f7660b098b5f9d772 SHA512 1d569a62d1a657cfa27749346c970866599d29264aac8a94fb7db0aefa141edb879a083b1500c804463a7ee0a2e489cdd478ece3d7f2a7fdcc9630f99baf25eb WHIRLPOOL c02b5c09050e00a72c977aa5ea646eba327ac01a59311db13b695181676e0fa8294dd200932a90922a91fd1e0620ebee88c2713878b6abf36cce5f6f4e2f9e82
diff --git a/sys-apps/miller/metadata.xml b/sys-apps/miller/metadata.xml
new file mode 100644
index 000000000000..b514bd71d71f
--- /dev/null
+++ b/sys-apps/miller/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <!-- maintainer-needed -->
+ <upstream>
+ <remote-id type="github">johnkerl/miller</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/sys-apps/miller/miller-4.2.0.ebuild b/sys-apps/miller/miller-4.2.0.ebuild
new file mode 100644
index 000000000000..df616602dab7
--- /dev/null
+++ b/sys-apps/miller/miller-4.2.0.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit autotools
+
+DESCRIPTION="A tool like sed, awk, cut, join, and sort for name-indexed data (CSV, JSON, ..)"
+HOMEPAGE="http://johnkerl.org/miller"
+LICENSE="BSD-2"
+
+SLOT="0"
+SRC_URI="https://github.com/johnkerl/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+KEYWORDS="amd64 arm x86"
+IUSE="doc test"
+
+DEPEND="sys-devel/flex"
+
+my_for_each_test_dir() {
+ local test_dirs=( c/{reg,unit}_test )
+ if use test ; then
+ for d in "${test_dirs[@]}" ; do
+ pushd "${d}" >/dev/null || die
+ "${@}" || die
+ popd >/dev/null || die
+ done
+ fi
+}
+
+src_prepare() {
+ default
+
+ local sed_args=(
+ # respect FLAGS
+ -e '/.*FLAGS[^=]*=/ s:(-g|-pg|-O[0-9]) ::g'
+ )
+ find -type f -name "Makefile.am" | xargs sed -r "${sed_args[@]}" -i --
+ assert
+
+ # disable docs rebuilding as they're shipped prebuilt
+ sed -e '/SUBDIRS[^=]*=/ s:doc::g' -i -- Makefile.am || die
+
+ # disable building tests automagically
+ use test || sed -e '/SUBDIRS[^=]*=/ s:[^ ]*_test::g' -i -- c/Makefile.am || die
+
+ eautoreconf
+}
+
+src_test() {
+ my_for_each_test_dir emake check
+}
+
+src_install() {
+ local HTML_DOCS=( $(usev doc) )
+
+ default
+
+ doman 'doc/mlr.1'
+}