You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
97 lines
2.3 KiB
97 lines
2.3 KiB
6 years ago
|
# Copyright 1999-2018 Gentoo Foundation
|
||
7 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
|
EAPI=6
|
||
|
|
||
6 years ago
|
inherit autotools mozextension gnome2-utils
|
||
7 years ago
|
|
||
|
DESCRIPTION="Electronic Identity Card middleware supplied by the Belgian Federal Government"
|
||
7 years ago
|
HOMEPAGE="https://eid.belgium.be"
|
||
6 years ago
|
SRC_URI="https://codeload.github.com/fedict/${PN}/tar.gz/v${PV} -> ${P}.tar.gz"
|
||
7 years ago
|
|
||
6 years ago
|
LICENSE="LGPL-3"
|
||
|
SLOT="0"
|
||
|
KEYWORDS="~x86 ~amd64 ~arm"
|
||
7 years ago
|
IUSE="+dialogs +gtk p11-kit +xpi"
|
||
|
|
||
6 years ago
|
RDEPEND=">=sys-apps/pcsc-lite-1.2.9
|
||
|
gtk? (
|
||
7 years ago
|
x11-libs/gdk-pixbuf[jpeg]
|
||
7 years ago
|
x11-libs/gtk+:*
|
||
|
dev-libs/libxml2
|
||
|
net-misc/curl[ssl]
|
||
|
net-libs/libproxy
|
||
|
!app-misc/eid-viewer-bin
|
||
|
)
|
||
|
p11-kit? ( app-crypt/p11-kit )
|
||
|
xpi? ( || ( >=www-client/firefox-bin-3.6.24
|
||
|
>=www-client/firefox-3.6.20 ) )"
|
||
|
|
||
|
DEPEND="${RDEPEND}
|
||
|
virtual/pkgconfig"
|
||
|
|
||
6 years ago
|
REQUIRED_USE="dialogs? ( gtk )"
|
||
|
|
||
7 years ago
|
src_prepare() {
|
||
6 years ago
|
default
|
||
7 years ago
|
|
||
|
sed -i -e 's:/beid/rsaref220:/rsaref220:' configure.ac || die
|
||
|
sed -i -e 's:/beid::' cardcomm/pkcs11/src/libbeidpkcs11.pc.in || die
|
||
|
|
||
|
# hardcoded lsb_info
|
||
|
sed -i \
|
||
|
-e "s:get_lsb_info('i'):strdup(_(\"Gentoo\")):" \
|
||
|
-e "s:get_lsb_info('r'):strdup(_(\"n/a\")):" \
|
||
|
-e "s:get_lsb_info('c'):strdup(_(\"n/a\")):" \
|
||
|
plugins_tools/aboutmw/gtk/about-main.c || die
|
||
|
|
||
|
eautoreconf
|
||
|
}
|
||
|
|
||
|
src_configure() {
|
||
|
econf \
|
||
|
$(use_enable dialogs) \
|
||
|
$(use_enable p11-kit p11kit) \
|
||
6 years ago
|
$(use_with gtk gtkvers 'detect') \
|
||
7 years ago
|
--with-gnu-ld \
|
||
|
--disable-static \
|
||
|
--disable-signed
|
||
|
}
|
||
|
|
||
|
src_install() {
|
||
6 years ago
|
default
|
||
7 years ago
|
|
||
|
if use xpi; then
|
||
|
declare MOZILLA_FIVE_HOME
|
||
|
if has_version '>=www-client/firefox-3.6.20'; then
|
||
|
MOZILLA_FIVE_HOME="/usr/$(get_libdir)/firefox"
|
||
6 years ago
|
xpi_install "${ED}/usr/share/mozilla/extensions/{ec8030f7-c20a-464f-9b0e-13a3a9e97384}/{ec8030f7-c20a-464f-9b0e-13a3a9e97384}/belgiumeid@eid.belgium.be"
|
||
7 years ago
|
fi
|
||
|
if has_version '>=www-client/firefox-bin-3.6.24'; then
|
||
|
MOZILLA_FIVE_HOME="/opt/firefox"
|
||
6 years ago
|
xpi_install "${ED}/usr/share/mozilla/extensions/{ec8030f7-c20a-464f-9b0e-13a3a9e97384}/{ec8030f7-c20a-464f-9b0e-13a3a9e97384}/belgiumeid@eid.belgium.be"
|
||
7 years ago
|
fi
|
||
6 years ago
|
else
|
||
|
rm -r "${ED}"/usr/$(get_libdir)/mozilla || die
|
||
|
fi
|
||
|
rm -r "${ED}/usr/share/mozilla" "${ED}"/usr/$(get_libdir)/*.la || die
|
||
|
|
||
|
if use gtk; then
|
||
|
rm -r "${ED}/usr/include/eid-util" || die
|
||
7 years ago
|
fi
|
||
|
}
|
||
|
|
||
6 years ago
|
pkg_postinst(){
|
||
|
if use gtk; then
|
||
|
gnome2_schemas_update
|
||
|
gnome2_icon_cache_update
|
||
|
fi
|
||
|
}
|
||
|
|
||
|
pkg_postrm(){
|
||
|
if use gtk; then
|
||
|
gnome2_schemas_update
|
||
|
gnome2_icon_cache_update
|
||
|
fi
|
||
7 years ago
|
}
|