summaryrefslogtreecommitdiff
blob: 54bcfb708df49b5f1ff1daa8f08c5b8aa5175c73 (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
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI="2"

inherit autotools base eutils

DESCRIPTION="A software PKCS#11 implementation"
HOMEPAGE="http://www.opendnssec.org/"
SRC_URI="http://www.opendnssec.org/files/source/${P}.tar.gz"

KEYWORDS="~amd64 ~x86"
IUSE="debug"
SLOT="0"
LICENSE="BSD"

RDEPEND=">=dev-libs/botan-1.8.5[threads]
	>=dev-db/sqlite-3.4.2"

DEPEND="${RDEPEND}"

DOCS=( "AUTHORS" "NEWS" "README" )

src_prepare() {
	# fixes for broken configure switches
	epatch "${FILESDIR}"/"${P}"-r2797.patch
	epatch "${FILESDIR}"/"${P}"-r2798.patch
	eautoreconf
}

src_configure() {
	local myconf
	use debug && myconf="--with-loglevel=4"

	econf \
	$(use_enable amd64 64bit) \
	$myconf
}