blob: 835fb3dc25938bb6c1596591a7ffd9de942aaf00 (
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
|
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit toolchain-funcs
DESCRIPTION="Hardware RNG based on CPU timing jitter"
HOMEPAGE="https://github.com/smuellerDD/jitterentropy-library"
SRC_URI="https://github.com/smuellerDD/jitterentropy-library/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~ppc"
IUSE="static-libs"
S="${WORKDIR}/${PN}-library-${PV}"
src_prepare() {
default
# Disable man page compression on install
sed -e '/\tgzip.*man/ d' -i Makefile || die
# Let the package manager handle stripping
sed -e '/\tinstall.*-s / s/-s //g' -i Makefile || die
}
src_compile() {
emake AR="$(tc-getAR)" CC="$(tc-getCC)"
}
src_install() {
dodir /usr/include # See: https://github.com/smuellerDD/jitterentropy-library/pull/9
emake PREFIX="${EPREFIX}/usr" \
LIBDIR="$(get_libdir)" \
DESTDIR="${D}" install
use static-libs && dolib.a lib${PN}.a
}
|