From: | "Aaron Swenson (titanofold)" <titanofold@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in dev-db/pgtap: metadata.xml ChangeLog pgtap-0.93.0.ebuild |
Date: | Sat, 30 Mar 2013 19:19:25 |
Message-Id: | 20130330191920.AE0D02171D@flycatcher.gentoo.org |
1 | titanofold 13/03/30 19:19:20 |
2 | |
3 | Added: metadata.xml ChangeLog pgtap-0.93.0.ebuild |
4 | Log: |
5 | PostgreSQL unit testing comes to Gentoo. Initial commit. |
6 | |
7 | (Portage version: 2.1.11.55/cvs/Linux x86_64, signed Manifest commit with key D1BBFDA0) |
8 | |
9 | Revision Changes Path |
10 | 1.1 dev-db/pgtap/metadata.xml |
11 | |
12 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/pgtap/metadata.xml?rev=1.1&view=markup |
13 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/pgtap/metadata.xml?rev=1.1&content-type=text/plain |
14 | |
15 | Index: metadata.xml |
16 | =================================================================== |
17 | <?xml version="1.0" encoding="UTF-8"?> |
18 | <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
19 | <pkgmetadata> |
20 | <herd>postgresql</herd> |
21 | <maintainer> |
22 | <email>titanofold@g.o</email> |
23 | <name>Aaron W. Swenson</name> |
24 | </maintainer> |
25 | <longdescription> |
26 | pgTAP is a suite of database functions that make it easy to write |
27 | TAP-emitting unit tests in psql scripts or xUnit-style test functions. |
28 | </longdescription> |
29 | </pkgmetadata> |
30 | |
31 | |
32 | |
33 | 1.1 dev-db/pgtap/ChangeLog |
34 | |
35 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/pgtap/ChangeLog?rev=1.1&view=markup |
36 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/pgtap/ChangeLog?rev=1.1&content-type=text/plain |
37 | |
38 | Index: ChangeLog |
39 | =================================================================== |
40 | # ChangeLog for dev-db/pgtap |
41 | # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 |
42 | # $Header: /var/cvsroot/gentoo-x86/dev-db/pgtap/ChangeLog,v 1.1 2013/03/30 19:19:20 titanofold Exp $ |
43 | |
44 | *pgtap-0.93.0 (30 Mar 2013) |
45 | |
46 | 30 Mar 2013; Aaron W. Swenson <titanofold@g.o> +pgtap-0.93.0.ebuild, |
47 | +files/pgtap-pg_config_override.patch, +metadata.xml: |
48 | PostgreSQL unit testing comes to Gentoo. Initial commit. |
49 | |
50 | |
51 | |
52 | |
53 | 1.1 dev-db/pgtap/pgtap-0.93.0.ebuild |
54 | |
55 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/pgtap/pgtap-0.93.0.ebuild?rev=1.1&view=markup |
56 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/pgtap/pgtap-0.93.0.ebuild?rev=1.1&content-type=text/plain |
57 | |
58 | Index: pgtap-0.93.0.ebuild |
59 | =================================================================== |
60 | # Copyright 1999-2013 Gentoo Foundation |
61 | # Distributed under the terms of the GNU General Public License v2 |
62 | # $Header: /var/cvsroot/gentoo-x86/dev-db/pgtap/pgtap-0.93.0.ebuild,v 1.1 2013/03/30 19:19:20 titanofold Exp $ |
63 | |
64 | EAPI=5 |
65 | inherit eutils |
66 | |
67 | DESCRIPTION="Unit testing for PostgreSQL" |
68 | HOMEPAGE="http://pgtap.org/" |
69 | SRC_URI="http://api.pgxn.org/dist/${PN}/${PV}/${P}.zip" |
70 | |
71 | LICENSE="POSTGRESQL" |
72 | SLOT="0" |
73 | KEYWORDS="~amd64" |
74 | IUSE="" |
75 | |
76 | DEPEND=">=dev-db/postgresql-base-8.4 |
77 | dev-perl/TAP-Parser-SourceHandler-pgTAP |
78 | " |
79 | RDEPEND="${DEPEND}" |
80 | |
81 | src_prepare() { |
82 | epatch "${FILESDIR}/pgtap-pg_config_override.patch" |
83 | |
84 | local pgslots=$(eselect --brief postgresql list) |
85 | local pgslot |
86 | for pgslot in ${pgslots} ; do |
87 | mkdir -p "${WORKDIR}/${pgslot}" |
88 | cp -R "${S}" "${WORKDIR}/${pgslot}" |
89 | done |
90 | } |
91 | |
92 | src_configure() { |
93 | : |
94 | } |
95 | |
96 | src_compile() { |
97 | local pgslots=$(eselect --brief postgresql list) |
98 | local pgslot |
99 | for pgslot in ${pgslots} ; do |
100 | cd "${WORKDIR}/${pgslot}/${P}" |
101 | PG_CONFIG="pg_config${pgslot//.}" emake |
102 | done |
103 | } |
104 | |
105 | src_install() { |
106 | local pgslots=$(eselect --brief postgresql list) |
107 | local pgslot |
108 | for pgslot in ${pgslots} ; do |
109 | cd "${WORKDIR}/${pgslot}/${P}" |
110 | PG_CONFIG="pg_config${pgslot//.}" emake DESTDIR="${D}" install |
111 | done |
112 | } |