Annotation of /trunk/extras/gpgme/gpgme-1.12.0-r4.smage2
Parent Directory | Revision Log
Revision 31760 -
(hide annotations)
(download)
Thu Dec 6 16:34:05 2018 UTC (5 years, 5 months ago) by niro
File size: 2473 byte(s)
Thu Dec 6 16:34:05 2018 UTC (5 years, 5 months ago) by niro
File size: 2473 byte(s)
-fixed broken dependencies added missing swig sdep to build python bindings, fixed a typo
1 | niro | 31758 | # $Id$ |
2 | |||
3 | PNAME="gpgme" | ||
4 | PVER="1.12.0" | ||
5 | PBUILD="r4" | ||
6 | |||
7 | SPLIT_PACKAGES="gpgme python2-gpgme python3-gpgme" | ||
8 | |||
9 | PCAT="app-crypt" | ||
10 | HOMEPAGE="http://www.gnupg.org/related_software/gpgme/index.en.html" | ||
11 | |||
12 | GPGME_DEPEND=">= app-crypt/libgcrypt-1.8" | ||
13 | PYTHON2_DEPEND=">= dev-lang/python-2.7" | ||
14 | niro | 31760 | PYTHON3_DEPEND=">= dev-lang/python3-3.7" |
15 | niro | 31758 | |
16 | SDEPEND=">= app-crypt/libgpg-error-1.32 | ||
17 | >= app-crypt/libassuan-2.5 | ||
18 | >= dev-libs/pth-2 | ||
19 | >= app-crypt/gnupg-2.2 | ||
20 | ${GPGME_DEPEND} | ||
21 | ${PYTHON2_DEPEND} | ||
22 | niro | 31760 | ${PYTHON3_DEPEND} |
23 | >= dev-lang/swig-3" | ||
24 | niro | 31758 | |
25 | SRCFILE="${PNAME}-${PVER}.tar.bz2" | ||
26 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" | ||
27 | |||
28 | niro | 31759 | sminclude multilib python2 python3 mbuild |
29 | niro | 31758 | msetfeature "!check" |
30 | |||
31 | SRC_URI=( | ||
32 | https://gnupg.org/ftp/gcrypt/${PNAME}/${SRCFILE} | ||
33 | #ftp://ftp.gnupg.org/gcrypt/${PNAME}/${SRCFILE} | ||
34 | #ftp://ftp.franken.de/pub/crypt/mirror/ftp.gnupg.org/gcrypt/${PNAME}/${SRCFILE} | ||
35 | mirror://${PNAME}/${SRCFILE} | ||
36 | ) | ||
37 | |||
38 | UP2DATE="updatecmd http://www.gnupg.org/download/index.en.html | grep ${PNAME}-[0-9] | highesttarball" | ||
39 | |||
40 | split_info_gpgme() | ||
41 | { | ||
42 | DESCRIPTION="GPGME (GnuPG Made Easy) - an interface library for application access for GnuPG." | ||
43 | DEPEND="${GPGME_DEPEND}" | ||
44 | } | ||
45 | |||
46 | split_info_python2-gpgme() | ||
47 | { | ||
48 | DESCRIPTION="Python2 bindings for GPGME (GnuPG Made Easy)." | ||
49 | niro | 31760 | DEPEND="== app-crypt/gpgme-${PVER} |
50 | ${PYTHON2_DEPEND}" | ||
51 | niro | 31758 | PCAT="dev-python" |
52 | } | ||
53 | |||
54 | split_info_python3-gpgme() | ||
55 | { | ||
56 | DESCRIPTION="Python3 bindings for GPGME (GnuPG Made Easy)." | ||
57 | niro | 31760 | DEPEND="== app-crypt/gpgme-${PVER} |
58 | ${PYTHON3_DEPEND}" | ||
59 | niro | 31758 | PCAT="dev-python" |
60 | } | ||
61 | |||
62 | src_compile() | ||
63 | { | ||
64 | mconfigure \ | ||
65 | --libexecdir=/usr/'$(mlibdir)'/${PNAME} \ | ||
66 | --with-pth=yes \ | ||
67 | --with-gpg=/usr/bin/gpg \ | ||
68 | --with-gpgsm=/usr/bin/gpgsm \ | ||
69 | || die | ||
70 | |||
71 | mmake || die | ||
72 | } | ||
73 | |||
74 | src_install_gpgme() | ||
75 | { | ||
76 | mmake DESTDIR=${BINDIR} install || die | ||
77 | niro | 31760 | |
78 | # remove python | ||
79 | niro | 31758 | mdelete /usr/$(mlibdir)/python$(mget-python2-version) || die |
80 | mdelete /usr/$(mlibdir)/python$(mget-python3-version) || die | ||
81 | if [[ $(mlibdir) != lib ]] | ||
82 | then | ||
83 | mdelete /usr/lib/python$(mget-python2-version) || die | ||
84 | mdelete /usr/lib/python$(mget-python3-version) || die | ||
85 | fi | ||
86 | } | ||
87 | |||
88 | src_install_python2-gpgme() | ||
89 | { | ||
90 | mmake -C lang/python DESTDIR=${BINDIR} install || die | ||
91 | mdelete /usr/$(mlibdir)/python$(mget-python3-version) || die | ||
92 | if [[ $(mlibdir) != lib ]] | ||
93 | then | ||
94 | mdelete /usr/lib/python$(mget-python3-version) || die | ||
95 | fi | ||
96 | } | ||
97 | |||
98 | src_install_python3-gpgme() | ||
99 | { | ||
100 | mmake -C lang/python DESTDIR=${BINDIR} install || die | ||
101 | mdelete /usr/$(mlibdir)/python$(mget-python2-version) || die | ||
102 | if [[ $(mlibdir) != lib ]] | ||
103 | then | ||
104 | mdelete /usr/lib/python$(mget-python2-version) || die | ||
105 | fi | ||
106 | } |