/[gentoo-x86]/dev-cpp/pficommon/pficommon-1.3.1.0.ebuild
Gentoo

Contents of /dev-cpp/pficommon/pficommon-1.3.1.0.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Sun Jul 8 19:56:24 2012 UTC (2 years, 2 months ago) by naota
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +4 -3 lines
Add upstream patch to build on gcc-4.7. #422761

(Portage version: 2.2.0_alpha114/cvs/Linux x86_64)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-cpp/pficommon/pficommon-1.3.1.0.ebuild,v 1.1 2011/11/12 23:55:49 naota Exp $
4
5 EAPI=4
6
7 inherit waf-utils eutils
8
9 DESCRIPTION="General purpose C++ library for PFI"
10 HOMEPAGE="https://github.com/pfi/pficommon"
11 SRC_URI="https://github.com/pfi/pficommon/tarball/${PV} -> ${P}.tar.gz"
12
13 LICENSE="BSD"
14 SLOT="0"
15 KEYWORDS="~amd64"
16 IUSE="fcgi imagemagick mprpc mysql postgres test"
17
18 RDEPEND="fcgi? ( dev-libs/fcgi )
19 imagemagick? (
20 media-libs/lcms
21 media-gfx/imagemagick[cxx]
22 sys-devel/libtool
23 )
24 mprpc? ( dev-libs/msgpack )
25 mysql? ( virtual/mysql )
26 postgres? ( dev-db/postgresql-base )
27 "
28 DEPEND="${RDEPEND}
29 test? ( dev-cpp/gtest )"
30
31 src_unpack() {
32 unpack ${A}
33 mv pfi-pficommon-* "${S}"
34 }
35
36 src_prepare() {
37 epatch "${FILESDIR}"/${P}-libdir.patch \
38 "${FILESDIR}"/${P}-soname.patch \
39 "${FILESDIR}"/${P}-postgresql.patch \
40 "${FILESDIR}"/${P}-gcc-4.7.patch
41 }
42
43 src_configure() {
44 if use fcgi; then
45 myconf="${myconf} --with-fcgi=/usr"
46 else
47 myconf="${myconf} --disable-fcgi"
48 fi
49 use imagemagick || myconf="${myconf} --disable-magickpp"
50 use mprpc || myconf="${myconf} --disable-mprpc"
51 if ! use mysql && ! use postgres; then
52 myconf="${myconf} --disable-database"
53 fi
54 waf-utils_src_configure ${myconf}
55 }

  ViewVC Help
Powered by ViewVC 1.1.20