Gentoo Archives: gentoo-commits

From: Amy Liffey <amynka@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-crypt/eid-mw/
Date: Sat, 28 May 2022 09:37:43
Message-Id: 1653730531.5cf01d18a4dbdb53c832dd42c50b1c97adaa5a4b.amynka@gentoo
1 commit: 5cf01d18a4dbdb53c832dd42c50b1c97adaa5a4b
2 Author: Amy Liffey <amynka <AT> gentoo <DOT> org>
3 AuthorDate: Sat May 28 09:35:10 2022 +0000
4 Commit: Amy Liffey <amynka <AT> gentoo <DOT> org>
5 CommitDate: Sat May 28 09:35:31 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5cf01d18
7
8 app-crypt/eid-mw: version bump 5.1.4
9
10 Package-Manager: Portage-3.0.30, Repoman-3.0.3
11 Submitted-by: Vincent Hardy <vincent.hardy.be <AT> gmail.com>
12 Signed-off-by: Amy Liffey <amynka <AT> gentoo.org>
13
14 app-crypt/eid-mw/Manifest | 1 +
15 app-crypt/eid-mw/eid-mw-5.1.4.ebuild | 118 +++++++++++++++++++++++++++++++++++
16 2 files changed, 119 insertions(+)
17
18 diff --git a/app-crypt/eid-mw/Manifest b/app-crypt/eid-mw/Manifest
19 index 115ca9888bda..5da7ad8089b2 100644
20 --- a/app-crypt/eid-mw/Manifest
21 +++ b/app-crypt/eid-mw/Manifest
22 @@ -1 +1,2 @@
23 DIST eid-mw-5.0.28.tar.gz 13615312 BLAKE2B 1dbc39267688ad322059009ee0aecdd52e7133d3029285255d019819075249755153b7bf10acd775cee7fef86603de4440ff4e47338a28ff9a1ddfce79ff7adc SHA512 05705180f69cb68617660a793baf314486407557f40a223e474047e2f7f9ca8e125feb60f6b0cd47cba6e84653cfe02cdbf48c7169fe78b39b08ec621e3a7898
24 +DIST eid-mw-5.1.4.tar.gz 13646645 BLAKE2B 3d1ede2078e4293a082bbdc19b942f4aa5a71cf5b852edb68a18cfa78f2d5b53a609b1190bc9b81dc87938de4619e99c9d4b19b4980e62631910e30683bf983b SHA512 903ca2dd7566e760badfb9fb1ea40e7cada42173d7d8f3795c1df16643f082c1cb8dd1ee3cd9e031b6306ca2dd2118df179f547a6b1f5f1a7ba05a45f247cc1d
25
26 diff --git a/app-crypt/eid-mw/eid-mw-5.1.4.ebuild b/app-crypt/eid-mw/eid-mw-5.1.4.ebuild
27 new file mode 100644
28 index 000000000000..cb218b605e07
29 --- /dev/null
30 +++ b/app-crypt/eid-mw/eid-mw-5.1.4.ebuild
31 @@ -0,0 +1,118 @@
32 +# Copyright 1999-2022 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=8
36 +
37 +inherit autotools desktop gnome2-utils xdg-utils
38 +
39 +DESCRIPTION="Electronic Identity Card middleware supplied by the Belgian Federal Government"
40 +HOMEPAGE="https://eid.belgium.be"
41 +SRC_URI="https://codeload.github.com/fedict/${PN}/tar.gz/v${PV} -> ${P}.tar.gz"
42 +
43 +LICENSE="LGPL-3"
44 +SLOT="0"
45 +KEYWORDS="~amd64 ~arm ~x86"
46 +IUSE="+dialogs +gtk p11-kit"
47 +
48 +RDEPEND=">=sys-apps/pcsc-lite-1.2.9
49 + gtk? (
50 + x11-libs/gdk-pixbuf[jpeg]
51 + x11-libs/gtk+:3
52 + dev-libs/libxml2
53 + net-misc/curl[ssl]
54 + net-libs/libproxy
55 + >=app-crypt/pinentry-1.1.0-r4[gtk]
56 + )
57 + p11-kit? ( app-crypt/p11-kit )"
58 +
59 +DEPEND="${RDEPEND}
60 + virtual/pkgconfig"
61 +
62 +REQUIRED_USE="dialogs? ( gtk )"
63 +
64 +src_prepare() {
65 + default
66 +
67 + # Buggy internal versioning when autoreconf a tarball release.
68 + # Weird numbering is required otherwise we get a seg fault in
69 + # about-eid-mw program.
70 + echo "${PV}-v${PV}" > .version
71 +
72 + # xpi module : we don't want it anymore
73 + sed -i -e '/SUBDIRS/ s:plugins_tools/xpi ::' Makefile.am || die
74 + sed -i -e '/plugins_tools\/xpi/ d' configure.ac || die
75 +
76 + # hardcoded lsb_info
77 + sed -i \
78 + -e "s:get_lsb_info('i'):strdup(_(\"Gentoo\")):" \
79 + -e "s:get_lsb_info('r'):strdup(_(\"n/a\")):" \
80 + -e "s:get_lsb_info('c'):strdup(_(\"n/a\")):" \
81 + plugins_tools/aboutmw/gtk/about-main.c || die
82 +
83 + # Fix libdir for pkcs11_manifestdir
84 + sed -i \
85 + -e "/pkcs11_manifestdir/ s:prefix)/lib:libdir):" \
86 + cardcomm/pkcs11/src/Makefile.am || die
87 +
88 + # See bug #732994
89 + sed -i \
90 + -e '/LDFLAGS="/ s:$CPPFLAGS:$LDFLAGS:' \
91 + configure.ac || die
92 +
93 + # See bug #751472
94 + eapply "${FILESDIR}/use-printf-in-Makefile.patch"
95 +
96 + # See bug #811270 (remove uml build)
97 + sed -i \
98 + -e 's:cardlayer/uml::' \
99 + cardcomm/pkcs11/src/Makefile.am || die
100 + sed -i \
101 + -e 's:uml::' \
102 + plugins_tools/eid-viewer/Makefile.am || die
103 +
104 + eautoreconf
105 +}
106 +
107 +src_configure() {
108 + econf \
109 + $(use_enable dialogs) \
110 + $(use_enable p11-kit p11kit) \
111 + $(use_with gtk gtkvers 'detect') \
112 + --with-gnu-ld \
113 + --disable-static
114 +}
115 +
116 +src_install() {
117 + default
118 + rm -r "${ED}"/usr/$(get_libdir)/*.la || die
119 + if use gtk; then
120 + domenu plugins_tools/eid-viewer/eid-viewer.desktop
121 + doicon plugins_tools/eid-viewer/gtk/eid-viewer.png
122 + fi
123 +}
124 +
125 +pkg_postinst() {
126 + if use gtk; then
127 + gnome2_schemas_update
128 + xdg_desktop_database_update
129 + xdg_icon_cache_update
130 +
131 + local peimpl=$(eselect --brief --colour=no pinentry show)
132 + case "${peimpl}" in
133 + *gnome*|*qt*) ;;
134 + *) ewarn "The pinentry front-end currently selected is not supported by eid-mw."
135 + ewarn "You may be prompted for your pin code in an inaccessible shell!!"
136 + ewarn "Please select pinentry-gnome3 as default pinentry provider:"
137 + ewarn " # eselect pinentry set pinentry-gnome3"
138 + ;;
139 + esac
140 + fi
141 +}
142 +
143 +pkg_postrm() {
144 + if use gtk; then
145 + gnome2_schemas_update
146 + xdg_desktop_database_update
147 + xdg_icon_cache_update
148 + fi
149 +}