pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

q: add new package



Module Name:	pkgsrc-wip
Committed By:	Thomas Klausner <wiz%NetBSD.org@localhost>
Pushed By:	wiz
Date:		Sun Jun 26 14:29:02 2016 +0200
Changeset:	e0d6ddc8192129cb8aba5c9d5c814cd669c49363

Modified Files:
	Makefile
Added Files:
	q/DESCR
	q/Makefile
	q/PLIST
	q/distinfo

Log Message:
q: add new package

Feel free to import to pkgsrc if you find it useful.

q is a command line tool that allows direct execution of SQL-like
queries on CSVs/TSVs (and any other tabular text files).

q treats ordinary files as database tables, and supports all SQL
constructs, such as WHERE, GROUP BY, JOINs etc. It supports automatic
column name and column type detection, and provides full support
for multiple encodings.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=e0d6ddc8192129cb8aba5c9d5c814cd669c49363

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 Makefile   |  1 +
 q/DESCR    |  7 +++++++
 q/Makefile | 28 ++++++++++++++++++++++++++++
 q/PLIST    |  3 +++
 q/distinfo |  6 ++++++
 5 files changed, 45 insertions(+)

diffs:
diff --git a/Makefile b/Makefile
index 2be0a0f..9418767 100644
--- a/Makefile
+++ b/Makefile
@@ -3541,6 +3541,7 @@ SUBDIR+=	pythoncad
 SUBDIR+=	pythontoolkit
 SUBDIR+=	pywm
 SUBDIR+=	pyzor
+SUBDIR+=	q
 SUBDIR+=	qbittorrent
 SUBDIR+=	qcad
 SUBDIR+=	qcdloop
diff --git a/q/DESCR b/q/DESCR
new file mode 100644
index 0000000..5c633f4
--- /dev/null
+++ b/q/DESCR
@@ -0,0 +1,7 @@
+q is a command line tool that allows direct execution of SQL-like
+queries on CSVs/TSVs (and any other tabular text files).
+
+q treats ordinary files as database tables, and supports all SQL
+constructs, such as WHERE, GROUP BY, JOINs etc. It supports automatic
+column name and column type detection, and provides full support
+for multiple encodings.
diff --git a/q/Makefile b/q/Makefile
new file mode 100644
index 0000000..73fc00f
--- /dev/null
+++ b/q/Makefile
@@ -0,0 +1,28 @@
+# $NetBSD$
+
+DISTNAME=	q-1.5.0
+CATEGORIES=	textproc
+MASTER_SITES=	${MASTER_SITE_GITHUB:=harelba/}
+
+MAINTAINER=	pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=	https://github.com/harelba/q/
+COMMENT=	Command line tool for direct SQL-like queries on CSVs/TSVs
+LICENSE=	gnu-gpl-v3
+
+DEPENDS+=	${PYPKGPREFIX}-sqlite3-[0-9]*:../../databases/py-sqlite3
+
+USE_LANGUAGES=	# none
+
+PYTHON_VERSIONS_INCOMPATIBLE=	33 34 35 # as of q-1.5.0
+
+REPLACE_PYTHON+=	bin/q
+INSTALLATION_DIRS+=	bin share/doc/q
+
+do-build:
+
+do-install:
+	${INSTALL_SCRIPT} ${WRKSRC}/bin/q ${DESTDIR}${PREFIX}/bin
+	${INSTALL_DATA} ${WRKSRC}/doc/USAGE.markdown ${DESTDIR}${PREFIX}/share/doc/q
+
+.include "../../lang/python/application.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/q/PLIST b/q/PLIST
new file mode 100644
index 0000000..89d7c42
--- /dev/null
+++ b/q/PLIST
@@ -0,0 +1,3 @@
+@comment $NetBSD$
+bin/q
+share/doc/q/USAGE.markdown
diff --git a/q/distinfo b/q/distinfo
new file mode 100644
index 0000000..732de0c
--- /dev/null
+++ b/q/distinfo
@@ -0,0 +1,6 @@
+$NetBSD$
+
+SHA1 (q-1.5.0.tar.gz) = 772c1bc7a49d725042ffc130e3c9328fc9da67dc
+RMD160 (q-1.5.0.tar.gz) = c86b78e715bff130782e4a34bc26bdfc23573c11
+SHA512 (q-1.5.0.tar.gz) = d21dd16a31629e36f0dee72ebc574283c7937821cb2da7ccaacb8484a35b53193dad05fe9857d1498434a0c1083514ea5b9e5d8a636bcd51d4c5924cb7bb1b55
+Size (q-1.5.0.tar.gz) = 58746 bytes


Home | Main Index | Thread Index | Old Index