summaryrefslogtreecommitdiff
blob: 3facc38672df34a63ad3fdd146d871b2670160e4 (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
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-crypt/xca/xca-0.5.1.ebuild,v 1.5 2005/08/14 13:09:46 dragonheart Exp $

inherit eutils kde toolchain-funcs

DESCRIPTION="a graphical user interface to OpenSSL, RSA public keys, certificates, signing requests and revokation lists"
HOMEPAGE="http://www.hohnstaedt.de/xca.html"
SRC_URI="mirror://sourceforge/xca/${P}.tar.gz"

LICENSE="BSD"
SLOT="0"
KEYWORDS="~x86 ~ppc"
IUSE=""

DEPEND=">=dev-libs/openssl-0.9.6
	|| ( =x11-libs/qt-3* =x11-libs/qt-2* )
	>=sys-libs/db-4.1"

src_unpack() {
	unpack ${A}
	cd ${S}
	epatch ${FILESDIR}/${P}-qt.diff
	epatch ${FILESDIR}/configure-db.patch
	echo "inst_prefix=/usr" >> Local.mak
	epatch ${FILESDIR}/Rules.mak-prefix.patch
}

src_compile() {
	kde_src_compile nothing
	CC=$(tc-getCC) prefix=/usr ./configure || die "configure died"
	inst_prefix=/usr emake || die "emake failed"
}

src_install() {
	make destdir=${D} mandir=share/man install

	dodoc README CREDITS AUTHORS COPYRIGHT

	insinto /etc/xca
	doins misc/*.txt
}