|
Lines 6-14
Link Here
|
| 6 |
|
6 |
|
| 7 |
inherit eutils multilib qt4 |
7 |
inherit eutils multilib qt4 |
| 8 |
|
8 |
|
|
|
9 |
MY_P="${P/_/-}" |
| 10 |
|
| 9 |
DESCRIPTION="Qt Cryptographic Architecture (QCA)" |
11 |
DESCRIPTION="Qt Cryptographic Architecture (QCA)" |
| 10 |
HOMEPAGE="http://delta.affinix.com/qca/" |
12 |
HOMEPAGE="http://delta.affinix.com/qca/" |
| 11 |
SRC_URI="http://delta.affinix.com/download/${PN}/${PV%.*}/${P}.tar.bz2" |
13 |
SRC_URI="http://delta.affinix.com/download/${PN}/${PV%.*}/pre/${MY_P}.tar.bz2" |
| 12 |
|
14 |
|
| 13 |
LICENSE="LGPL-2" |
15 |
LICENSE="LGPL-2" |
| 14 |
SLOT="2" |
16 |
SLOT="2" |
|
Lines 16-27
Link Here
|
| 16 |
IUSE="debug doc examples" |
18 |
IUSE="debug doc examples" |
| 17 |
RESTRICT="test" |
19 |
RESTRICT="test" |
| 18 |
|
20 |
|
| 19 |
DEPEND=" |
21 |
DEPEND="!<app-crypt/qca-1.0-r3 |
| 20 |
!<app-crypt/qca-1.0-r3 |
|
|
| 21 |
|| ( x11-libs/qt-core:4 |
22 |
|| ( x11-libs/qt-core:4 |
| 22 |
>=x11-libs/qt-4.2.0:4 )" |
23 |
>=x11-libs/qt-4.2.0:4 )" |
| 23 |
RDEPEND="${DEPEND}" |
24 |
RDEPEND="${DEPEND}" |
| 24 |
|
25 |
|
|
|
26 |
S="${WORKDIR}/${MY_P}" |
| 27 |
|
| 25 |
pkg_setup() { |
28 |
pkg_setup() { |
| 26 |
if use debug; then |
29 |
if use debug; then |
| 27 |
if has_version "<x11-libs/qt-4.4.0_alpha1:4" && ! built_with_use x11-libs/qt:4 debug; then |
30 |
if has_version "<x11-libs/qt-4.4.0_alpha1:4" && ! built_with_use x11-libs/qt:4 debug; then |
|
Lines 36-60
Link Here
|
| 36 |
fi |
39 |
fi |
| 37 |
} |
40 |
} |
| 38 |
|
41 |
|
| 39 |
src_unpack() { |
|
|
| 40 |
unpack ${A} |
| 41 |
cd "${S}" |
| 42 |
|
| 43 |
epatch "${FILESDIR}/${P}-debug-same-pkgconfig-file.patch" |
| 44 |
} |
| 45 |
|
| 46 |
src_compile() { |
42 |
src_compile() { |
| 47 |
_libdir=$(get_libdir) |
43 |
_libdir=$(get_libdir) |
| 48 |
local myconf |
44 |
local myconf |
| 49 |
if use debug; then |
45 |
use debug && myconf="--debug" || myconf="--release" |
| 50 |
myconf="--debug" |
|
|
| 51 |
else |
| 52 |
myconf="--release" |
| 53 |
fi |
| 54 |
|
| 55 |
# Multilib fix. |
| 56 |
sed -e "/pcfiles.path/s:lib:${_libdir}:" \ |
| 57 |
-i "${S}"/configure || die "Multilib fix failed." |
| 58 |
|
46 |
|
| 59 |
./configure \ |
47 |
./configure \ |
| 60 |
--prefix=/usr \ |
48 |
--prefix=/usr \ |