Annotation of /trunk/todo/qca/qca-2.0.3-r5.smage2
Parent Directory | Revision Log
Revision 27930 -
(hide annotations)
(download)
Wed Apr 6 11:15:22 2016 UTC (8 years, 5 months ago) by niro
File size: 1207 byte(s)
Wed Apr 6 11:15:22 2016 UTC (8 years, 5 months ago) by niro
File size: 1207 byte(s)
-moved to 'todo'
1 | niro | 27346 | # $Id$ |
2 | |||
3 | PNAME="qca" | ||
4 | PVER="2.0.3" | ||
5 | PBUILD="r5" | ||
6 | |||
7 | PCAT="app-crypt" | ||
8 | |||
9 | DESCRIPTION="Qt Cryptographic Architecture (QCA)." | ||
10 | HOMEPAGE="http://delta.affinix.com/qca/" | ||
11 | |||
12 | DEPEND=">= app-crypt/ca-certificates-2014 | ||
13 | >= sys-libs/libstdc++-5.3" | ||
14 | |||
15 | SRCFILE="${PNAME}-${PVER}.tar.bz2" | ||
16 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" | ||
17 | |||
18 | sminclude qt4 | ||
19 | |||
20 | SRC_URI=( | ||
21 | http://delta.affinix.com/download/${PNAME}/${PVER%.*}/${SRCFILE} | ||
22 | mirror://${PNAME}/${SRCFILE} | ||
23 | mirror://${PNAME}/${PNAME}-${PVER}-gcc47.patch | ||
24 | ) | ||
25 | |||
26 | UP2DATE="updatecmd -listonly ${HOMEPAGE} | grep ${PNAME}-[0-9] | lasttarball" | ||
27 | |||
28 | src_prepare() | ||
29 | { | ||
30 | munpack ${SRCFILE} || die | ||
31 | cd ${SRCDIR} | ||
32 | |||
33 | # fix build with gcc-4.7 | ||
34 | mpatch ${PNAME}-${PVER}-gcc47.patch || die | ||
35 | } | ||
36 | |||
37 | src_compile() | ||
38 | { | ||
39 | cd ${SRCDIR} | ||
40 | |||
41 | # non standard configure script | ||
42 | ./configure \ | ||
43 | --prefix=/usr \ | ||
44 | --libdir=/usr/$(mlibdir) \ | ||
45 | --qtdir=${QTDIR} \ | ||
46 | --certstore-path=/etc/ssl/certs/ca-certificates.crt \ | ||
47 | --no-separate-debug-info \ | ||
48 | --disable-tests \ | ||
49 | --release \ | ||
50 | || die | ||
51 | |||
52 | mmake || die | ||
53 | } | ||
54 | |||
55 | src_install() | ||
56 | { | ||
57 | cd ${SRCDIR} | ||
58 | mmake INSTALL_ROOT=${BINDIR} install || die | ||
59 | minstalldocs COPYING README TODO || die | ||
60 | |||
61 | # should not exist in the package! | ||
62 | if [[ -d ${BINDIR}/var/tmp ]] | ||
63 | then | ||
64 | rm -rf ${BINDIR}/var/tmp || die | ||
65 | fi | ||
66 | } |