/[gentoo-x86]/net-libs/cvm/cvm-0.76.ebuild
Gentoo

Contents of /net-libs/cvm/cvm-0.76.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.17 - (show annotations) (download)
Sun Dec 28 16:29:23 2014 UTC (5 years, 11 months ago) by titanofold
Branch: MAIN
CVS Tags: HEAD
Changes since 1.16: +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/net-libs/cvm/cvm-0.76.ebuild,v 1.16 2014/11/03 13:40:09 titanofold Exp $
4
5 EAPI=2
6
7 inherit toolchain-funcs eutils
8
9 DESCRIPTION="Credential Validation Modules by Bruce Guenter"
10 HOMEPAGE="http://untroubled.org/cvm/"
11 SRC_URI="${HOMEPAGE}archive/${P}.tar.gz"
12
13 LICENSE="GPL-2"
14 SLOT="0"
15 KEYWORDS="ppc sparc x86"
16 IUSE="mysql postgres test"
17
18 RDEPEND="dev-db/cdb"
19 DEPEND="${RDEPEND}
20 >=dev-libs/bglibs-1.041
21 mysql? ( virtual/mysql )
22 postgres? ( dev-db/postgresql[server] )
23 test? ( app-editors/vim )"
24 # some of the testcases use ex/vi/xxd
25
26 src_unpack() {
27 unpack ${A}
28 # disable this test, as it breaks under Portage
29 # and there is no easy fix
30 sed -i.orig -e '/qmail-lookup-nodomain/,/^END_OF_TEST_RESULTS/d' "${S}"/tests.sh || die "sed failed"
31 }
32
33 src_compile() {
34 echo "/usr/include/bglibs" > conf-bgincs
35 echo "/usr/lib/bglibs" > conf-bglibs
36 echo "${D}/usr/include" > conf-include
37 echo "${D}/usr/lib" > conf-lib
38 echo "${D}/usr/bin" > conf-bin
39 echo "$(tc-getCC) ${CFLAGS}" > conf-cc
40 echo "$(tc-getCC) ${LDFLAGS} -lcrypt" > conf-ld
41 emake || die
42
43 if use mysql; then
44 make mysql || die "making mysql support failed"
45 fi
46
47 if use postgres; then
48 make pgsql || die "making postgres support failed"
49 fi
50 }
51
52 src_install() {
53 einstall || die
54
55 dodoc ANNOUNCEMENT NEWS NEWS.sql NEWS.vmailmgr README README.vchkpw
56 dodoc README.vmailmgr TODO VERSION
57 dohtml *.html
58 }
59
60 src_test() {
61 sh tests.sh || die "Testing Failed"
62 }

  ViewVC Help
Powered by ViewVC 1.1.20