/[gentoo-x86]/dev-db/cppdb/cppdb-0.3.1-r1.ebuild
Gentoo

Contents of /dev-db/cppdb/cppdb-0.3.1-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Sun Dec 28 15:02:35 2014 UTC (5 years, 6 months ago) by titanofold
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +2 -2 lines
Rename virtual/postgresql to dev-db/postgresql

(Portage version: 2.2.14/cvs/Linux x86_64, signed Manifest commit with key D1BBFDA0)

1 # Copyright 1999-2014 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-db/cppdb/cppdb-0.3.1-r1.ebuild,v 1.2 2014/11/03 11:20:59 titanofold Exp $
4
5 EAPI=5
6
7 inherit cmake-utils multilib
8
9 DESCRIPTION="An SQL connectivity library for platform and database independent connectivity"
10 HOMEPAGE="http://cppcms.com/sql/cppdb/"
11 SRC_URI="mirror://sourceforge/cppcms/${P}.tar.bz2"
12
13 LICENSE="|| ( Boost-1.0 MIT )"
14 SLOT="0"
15 KEYWORDS="~amd64 ~x86"
16 IUSE="doc examples mysql mysql_internal odbc odbc_internal postgres postgres_internal sqlite sqlite_internal"
17
18 DEPEND="
19 mysql? ( virtual/mysql )
20 odbc? ( dev-db/unixODBC )
21 postgres? ( dev-db/postgresql )
22 sqlite? ( dev-db/sqlite:3 )"
23 RDEPEND="${DEPEND}"
24
25 src_configure() {
26 local mycmakeargs="
27 $(cmake-utils_use_disable mysql MYSQL)
28 $(cmake-utils_use mysql_internal MYSQL_BACKEND_INTERNAL)
29 $(cmake-utils_use_disable odbc ODBC)
30 $(cmake-utils_use odbc_internal ODBC_BACKEND_INTERNAL)
31 $(cmake-utils_use_disable postgres PQ)
32 $(cmake-utils_use postgres_internal PQ_BACKEND_INTERNAL)
33 $(cmake-utils_use_disable sqlite SQLITE)
34 $(cmake-utils_use sqlite_internal SQLITE_BACKEND_INTERNAL)
35 -DLIBDIR=$(get_libdir)"
36 cmake-utils_src_configure
37 }
38
39 src_install() {
40 cmake-utils_src_install
41 if use doc; then
42 rm docs/build.txt || die
43 dodoc -r docs/*
44 dohtml -r html/*
45 fi
46 if use examples; then
47 insinto /usr/share/doc/${PF}
48 doins -r examples
49 fi
50 }

  ViewVC Help
Powered by ViewVC 1.1.20