blob: f63e5c2d02a83a40ca5d545eead793bf914b999f (
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
54
55
|
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-cpp/pficommon/pficommon-1.3.1.0.ebuild,v 1.2 2012/07/08 19:56:24 naota Exp $
EAPI=4
inherit waf-utils eutils
DESCRIPTION="General purpose C++ library for PFI"
HOMEPAGE="https://github.com/pfi/pficommon"
SRC_URI="https://github.com/pfi/pficommon/tarball/${PV} -> ${P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64"
IUSE="fcgi imagemagick mprpc mysql postgres test"
RDEPEND="fcgi? ( dev-libs/fcgi )
imagemagick? (
media-libs/lcms
media-gfx/imagemagick[cxx]
sys-devel/libtool
)
mprpc? ( dev-libs/msgpack )
mysql? ( virtual/mysql )
postgres? ( dev-db/postgresql-base )
"
DEPEND="${RDEPEND}
test? ( dev-cpp/gtest )"
src_unpack() {
unpack ${A}
mv pfi-pficommon-* "${S}"
}
src_prepare() {
epatch "${FILESDIR}"/${P}-libdir.patch \
"${FILESDIR}"/${P}-soname.patch \
"${FILESDIR}"/${P}-postgresql.patch \
"${FILESDIR}"/${P}-gcc-4.7.patch
}
src_configure() {
if use fcgi; then
myconf="${myconf} --with-fcgi=/usr"
else
myconf="${myconf} --disable-fcgi"
fi
use imagemagick || myconf="${myconf} --disable-magickpp"
use mprpc || myconf="${myconf} --disable-mprpc"
if ! use mysql && ! use postgres; then
myconf="${myconf} --disable-database"
fi
waf-utils_src_configure ${myconf}
}
|