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