blob: 2d4b6d886206459fdb0827264c5444c373c2cdfa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
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
}
|