-
-
Notifications
You must be signed in to change notification settings - Fork 8
/
chrome-token-signing-1.0.7.ebuild
61 lines (49 loc) · 1.81 KB
/
chrome-token-signing-1.0.7.ebuild
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# Copyright 1999-2018 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit qmake-utils
DESCRIPTION="Native client and extension for signing with your eID on the web"
HOMEPAGE="https://github.com/open-eid/chrome-token-signing http://id.ee/"
SRC_URI="https://github.com/open-eid/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="LGPL-2.1"
KEYWORDS="~amd64"
SLOT="0"
IUSE="chromium firefox libressl vivaldi"
BDEPEND="virtual/pkgconfig"
DEPEND="dev-qt/qtcore:5
dev-qt/qtgui:5
dev-qt/qtwidgets:5
dev-qt/qtnetwork:5
sys-apps/pcsc-lite
!libressl? ( dev-libs/openssl:0= )
libressl? ( dev-libs/libressl:0= )"
RDEPEND="${DEPEND}"
S="${WORKDIR}/${P}/host-linux"
src_prepare() {
default
# Don't install everything without need
sed -i '/INSTALLS += /s|target hostconf ffconf extension ffextension|target hostconf extension|' \
chrome-token-signing.pro \
|| die "sed failed for chrome-token-signing.pro"
}
src_configure() {
usex firefox "INSTALLS += ffconf ffextension" "" \
>> chrome-token-signing.pro
# remove upstream's GNUmakefile
eqmake5 VERSION="${PV}" -o GNUmakefile chrome-token-signing.pro
}
src_install() {
emake INSTALL_ROOT="${ED}" install
if use chromium ; then
dosym ../../opt/chrome/native-messaging-hosts/ee.ria.esteid.json \
/etc/chromium/native-messaging-hosts/ee.ria.esteid.json
dosym ../../../../opt/google/chrome/extensions/ckjefchnfjhjfedoccjbhjpbncimppeg.json \
/usr/share/chromium/extensions/ckjefchnfjhjfedoccjbhjpbncimppeg.json
fi
if use vivaldi ; then
dosym ../../opt/chrome/native-messaging-hosts/ee.ria.esteid.json \
/etc/vivaldi/native-messaging-hosts/ee.ria.esteid.json
dosym ../../../../opt/google/chrome/extensions/ckjefchnfjhjfedoccjbhjpbncimppeg.json \
/usr/share/vivaldi/extensions/ckjefchnfjhjfedoccjbhjpbncimppeg.json
fi
}