blob: a6c14ac68949871ef4fd12971e800287a15b554a (
plain)
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
|
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DESCRIPTION="Tools for authenticating with https://www.autenticacao.gov.pt/"
HOMEPAGE="https://svn.gov.pt/projects/ccidadao"
inherit subversion unpacker
ESVN_REPO_URI="https://svn.gov.pt/projects/ccidadao/repository/middleware-offline/tags/version${PV}/_src/eidmw"
ESVN_PATCHES="${FILESDIR}/*.${PV}.patch"
LICENSE="EUPL"
SLOT="3"
KEYWORDS="~amd64 ~x86"
IUSE=""
DEPEND=">=sys-apps/pcsc-lite-1.5.0
sys-apps/pcsc-tools
app-crypt/ccid
>=dev-qt/qtcore-5
dev-qt/qtchooser
dev-libs/xml-security-c
dev-libs/xerces-c
dev-vcs/subversion
dev-libs/openssl
media-libs/jasper
app-text/poppler
dev-libs/libzip"
RDEPEND="${DEPEND}
!app-misc/autenticacao-gov-pt:2"
PATCHES=(
"${FILESDIR}/XadesSignature.cpp.${PV}.patch"
)
src_unpack() {
default
subversion_src_unpack
unpack ${FILESDIR}/extras-${PV}.tar.gz
}
src_prepare() {
default
}
src_configure() {
# configure
if [[ -x ${ECONF_SOURCE:-.}/configure ]] ; then
${ECONF_SOURCE:-.}/configure || die "Error: econf failed"
elif [[ -f ${ECONF_SOURCE:-.}/configure ]] ; then
fperms 755 ${ECONF_SOURCE:-.}/configure
${ECONF_SOURCE:-.}/configure || die "Error: econf failed"
else
die "Error: ${ECONF_SOURCE:-.}/configure doesn't exists"
fi
}
src_compile() {
# make
if [ -f Makefile ] || [ -f GNUmakefile ] || [ -f makefile ]; then
emake || die "Error: emake failed"
else
die "Error: compile phase failed because is missing Makefile!"
fi
}
src_install() {
# make install
if [[ -f Makefile ]] || [[ -f GNUmakefile ]] || [[ -f makefile ]] ; then
emake INSTALL_ROOT="${D}" DESTDIR="${D}" install || die "Error: emake install failed"
else
die "Error: install phase failed because is missing Makefile!"
fi
# extras install
cp -R "${WORKDIR}/usr" "${D}" || die "Error: copy files in install phase failed!"
}
|