app-text/q-text-as-data: new package.
authorRobin H. Johnson <robbat2@gentoo.org>
Fri, 4 Mar 2016 17:16:59 +0000 (09:16 -0800)
committerRobin H. Johnson <robbat2@gentoo.org>
Fri, 4 Mar 2016 20:17:04 +0000 (12:17 -0800)
Package-Manager: portage-2.2.27

app-text/q-text-as-data/Manifest [new file with mode: 0644]
app-text/q-text-as-data/metadata.xml [new file with mode: 0644]
app-text/q-text-as-data/q-text-as-data-1.5.0.ebuild [new file with mode: 0644]

diff --git a/app-text/q-text-as-data/Manifest b/app-text/q-text-as-data/Manifest
new file mode 100644 (file)
index 0000000..8f2b6c6
--- /dev/null
@@ -0,0 +1 @@
+DIST q-1.5.0.tar.gz 58746 SHA256 69bde3fb75aa1d42ba306576b135b8a72121a995e6d865cc8c18db289c602c4b SHA512 d21dd16a31629e36f0dee72ebc574283c7937821cb2da7ccaacb8484a35b53193dad05fe9857d1498434a0c1083514ea5b9e5d8a636bcd51d4c5924cb7bb1b55 WHIRLPOOL 264ecbd3a064ba37fc581fea1f9c7b3e6a7f8985c6dcc1c6856193036e202ba3483b90502640f042a25b418eaecc881bc3246855812ffbf55126789b6e79a44f
diff --git a/app-text/q-text-as-data/metadata.xml b/app-text/q-text-as-data/metadata.xml
new file mode 100644 (file)
index 0000000..79d462e
--- /dev/null
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="person">
+  <email>robbat2@gentoo.org</email>
+</maintainer>
+</pkgmetadata>
diff --git a/app-text/q-text-as-data/q-text-as-data-1.5.0.ebuild b/app-text/q-text-as-data/q-text-as-data-1.5.0.ebuild
new file mode 100644 (file)
index 0000000..aa6fcbb
--- /dev/null
@@ -0,0 +1,40 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+# Does not yet support py3
+PYTHON_COMPAT=( python2_7 )
+
+inherit python-r1
+
+DESCRIPTION="q: Text as Data is a CLI tool that allows direct execution of SQL-like queries on text"
+HOMEPAGE="http://harelba.github.io/q/"
+MY_P="q-${PV}"
+SRC_URI="https://github.com/harelba/q/archive/${PV}.tar.gz -> ${MY_P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+# No dependencies other than python >= 2.5
+# http://harelba.github.io/q/requirements.html
+RDEPEND="${PYTHON_DEPS}"
+DEPEND=""
+
+S="${WORKDIR}/${MY_P}"
+
+q_install() {
+       python_newexe bin/q q-text-as-data
+}
+
+src_install() {
+       python_foreach_impl q_install
+       newdoc bin/.qrc dot-qrc
+       dodoc doc/*
+}
+
+pkg_postinst() {
+       einfo "On Gentoo, the 'q' binary is most often provided by app-portage/portage-utils;"
+       einfo "Thus, this tool is install as 'q-text-as-data' rather than 'q'."
+}