blob: 52aeec159681c444fd07e89a8bac44db41eee11b (
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-crypt/xca/xca-0.7.0.ebuild,v 1.3 2009/11/04 13:54:46 maekke Exp $
EAPI="2"
inherit eutils flag-o-matic 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="amd64 ~ppc x86"
IUSE="doc"
RDEPEND=">=dev-libs/openssl-0.9.8
x11-libs/qt-gui:4"
DEPEND="${RDEPEND}
doc? ( app-text/linuxdoc-tools )"
# Upstream:
# http://sourceforge.net/tracker/index.php?func=detail&aid=1800298&group_id=62274&atid=500028
#
# 1. Qt detection.
# 2. doc hacks.
src_prepare() {
epatch "${FILESDIR}"/${PN}-0.6.4-build.patch \
"${FILESDIR}"/${P}-gcc44.patch
sed -e 's/$(LD) $(LDFLAGS)/$(LD) $(RAW_LDFLAGS)/' -i Makefile Rules.mak || die "sed failed"
}
src_configure() {
local LINUXDOC
use doc || LINUXDOC='touch $@ && true'
QTDIR=/usr \
STRIP="true" \
LINUXDOC="${LINUXDOC}" \
CC="$(tc-getCC)" \
LD="$(tc-getLD)" \
CFLAGS="${CXXFLAGS}" \
prefix=/usr \
./configure || die "configure failed"
}
src_compile() {
emake RAW_LDFLAGS="$(raw-ldflags)" || die "emake failed"
}
src_install() {
emake destdir="${D}" mandir="share/man" install || die "emake install failed"
dodoc AUTHORS
insinto /etc/xca
doins misc/*.txt
}
|