blob: 5a733feb7269e15e637399ec4c4620b96ad11d03 (
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
|
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-crypt/qca-ossl/qca-ossl-2.0.0_beta3-r1.ebuild,v 1.9 2010/01/22 04:21:38 abcd Exp $
EAPI="2"
inherit base eutils qt4
MY_P="${P/_/-}"
QCA_VER="${PV%.*}"
DESCRIPTION="TLS, S/MIME, PKCS#12, crypto algorithms plugin for QCA"
HOMEPAGE="http://delta.affinix.com/qca/"
SRC_URI="http://delta.affinix.com/download/qca/${QCA_VER}/plugins/${MY_P}.tar.bz2"
LICENSE="LGPL-2"
SLOT="2"
KEYWORDS="alpha amd64 ~arm hppa ia64 ppc ppc64 sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux"
IUSE="debug"
DEPEND=">=app-crypt/qca-${QCA_VER}[debug?]
>=dev-libs/openssl-0.9.6"
RDEPEND="${DEPEND}"
S="${WORKDIR}/${MY_P}"
PATCHES=( "${FILESDIR}/${PN}-openssl-0.9.8i.patch" )
src_configure() {
use prefix || EPREFIX=
# Fix some locations
sed -e "s|/usr/|${EPREFIX}/usr/|g" -e "s|usr/local|usr/|g" -i configure
# cannot use econf because of non-standard configure script
./configure \
--qtdir="${EPREFIX}"/usr \
$(use debug && echo "--debug" || echo "--release") \
--no-separate-debug-info \
|| die "configure failed"
eqmake4 ${PN}.pro
}
src_install() {
emake INSTALL_ROOT="${D}" install || die "emake install failed"
}
|