summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2015-08-08 13:49:04 -0700
committerRobin H. Johnson <robbat2@gentoo.org>2015-08-08 17:38:18 -0700
commit56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch)
tree3f91093cdb475e565ae857f1c5a7fd339e2d781e /dev-db/pgtap
downloadgentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip
proj/gentoo: Initial commit
This commit represents a new era for Gentoo: Storing the gentoo-x86 tree in Git, as converted from CVS. This commit is the start of the NEW history. Any historical data is intended to be grafted onto this point. Creation process: 1. Take final CVS checkout snapshot 2. Remove ALL ChangeLog* files 3. Transform all Manifests to thin 4. Remove empty Manifests 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ 5.1. Do not touch files with -kb/-ko keyword flags. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'dev-db/pgtap')
-rw-r--r--dev-db/pgtap/Manifest1
-rw-r--r--dev-db/pgtap/files/pgtap-pg_config_override.patch25
-rw-r--r--dev-db/pgtap/metadata.xml13
-rw-r--r--dev-db/pgtap/pgtap-0.93.0.ebuild53
4 files changed, 92 insertions, 0 deletions
diff --git a/dev-db/pgtap/Manifest b/dev-db/pgtap/Manifest
new file mode 100644
index 000000000000..1145ca06be0c
--- /dev/null
+++ b/dev-db/pgtap/Manifest
@@ -0,0 +1 @@
+DIST pgtap-0.93.0.zip 219355 SHA256 d1fa168b5d089d031552103c985d1f4b681659ece2f976d27c070ad26f6c1d4c SHA512 6165f8bd107168a3955c3ec4c63277ce9fce31d7c375fdfe13cb31b7df71cb9aae4b20a1c2d961fba97e3ae207b45b8daf9174f0701a220e52f4ffb53dddea94 WHIRLPOOL 2352e71e004ad9486d6a5ed3b6c5967613caa06ea657af7394ea37249f16f266e611b64d3d2106bc737bf10e9810613b67f9eb79faadc578ca3ff16cd132a263
diff --git a/dev-db/pgtap/files/pgtap-pg_config_override.patch b/dev-db/pgtap/files/pgtap-pg_config_override.patch
new file mode 100644
index 000000000000..2034b233f00c
--- /dev/null
+++ b/dev-db/pgtap/files/pgtap-pg_config_override.patch
@@ -0,0 +1,25 @@
+diff -Naurw pgtap-0.93.0.orig/Makefile pgtap-0.93.0/Makefile
+--- pgtap-0.93.0.orig/Makefile 2013-01-28 20:14:20.000000000 +0000
++++ pgtap-0.93.0/Makefile 2013-03-30 16:02:45.077880109 +0000
+@@ -9,14 +9,15 @@
+ DOCS = doc/pgtap.mmd
+ REGRESS = $(patsubst test/sql/%.sql,%,$(TESTS))
+ REGRESS_OPTS = --inputdir=test --load-language=plpgsql
++ifndef PG_CONFIG
+ PG_CONFIG = pg_config
++endif
+
+ ifdef NO_PGXS
+ top_builddir = ../..
+ PG_CONFIG := $(top_builddir)/src/bin/pg_config/pg_config
+ else
+ # Run pg_config to get the PGXS Makefiles
+-PG_CONFIG = pg_config
+ PGXS := $(shell $(PG_CONFIG) --pgxs)
+ endif
+
+@@ -145,4 +146,3 @@
+ MultiMarkdown.pl doc/pgtap.mmd > doc/pgtap.html
+ ./tocgen doc/pgtap.html 2> doc/toc.html
+ perl -MPod::Simple::XHTML -E "my \$$p = Pod::Simple::XHTML->new; \$$p->html_header_tags('<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">'); \$$p->strip_verbatim_indent(sub { (my \$$i = \$$_[0]->[0]) =~ s/\\S.*//; \$$i }); \$$p->parse_from_file('`perldoc -l pg_prove`')" > doc/pg_prove.html
+-
diff --git a/dev-db/pgtap/metadata.xml b/dev-db/pgtap/metadata.xml
new file mode 100644
index 000000000000..a674b19eabe6
--- /dev/null
+++ b/dev-db/pgtap/metadata.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>postgresql</herd>
+ <maintainer>
+ <email>titanofold@gentoo.org</email>
+ <name>Aaron W. Swenson</name>
+ </maintainer>
+ <longdescription>
+ pgTAP is a suite of database functions that make it easy to write
+ TAP-emitting unit tests in psql scripts or xUnit-style test functions.
+ </longdescription>
+</pkgmetadata>
diff --git a/dev-db/pgtap/pgtap-0.93.0.ebuild b/dev-db/pgtap/pgtap-0.93.0.ebuild
new file mode 100644
index 000000000000..2d4b6d886206
--- /dev/null
+++ b/dev-db/pgtap/pgtap-0.93.0.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit eutils
+
+DESCRIPTION="Unit testing for PostgreSQL"
+HOMEPAGE="http://pgtap.org/"
+SRC_URI="http://api.pgxn.org/dist/${PN}/${PV}/${P}.zip"
+
+LICENSE="POSTGRESQL"
+SLOT="0"
+KEYWORDS="amd64"
+IUSE=""
+
+DEPEND=">=dev-db/postgresql-8.4
+ dev-perl/TAP-Parser-SourceHandler-pgTAP
+"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ epatch "${FILESDIR}/pgtap-pg_config_override.patch"
+
+ local pgslots=$(eselect --brief postgresql list)
+ local pgslot
+ for pgslot in ${pgslots} ; do
+ mkdir -p "${WORKDIR}/${pgslot}"
+ cp -R "${S}" "${WORKDIR}/${pgslot}"
+ done
+}
+
+src_configure() {
+ :
+}
+
+src_compile() {
+ local pgslots=$(eselect --brief postgresql list)
+ local pgslot
+ for pgslot in ${pgslots} ; do
+ cd "${WORKDIR}/${pgslot}/${P}"
+ PG_CONFIG="pg_config${pgslot//.}" emake
+ done
+}
+
+src_install() {
+ local pgslots=$(eselect --brief postgresql list)
+ local pgslot
+ for pgslot in ${pgslots} ; do
+ cd "${WORKDIR}/${pgslot}/${P}"
+ PG_CONFIG="pg_config${pgslot//.}" emake DESTDIR="${D}" install
+ done
+}