blob: 978f5b02726898b0c35c22044f97baa97e3c6c5f (
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
|
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit toolchain-funcs
DESCRIPTION="Standalone implementation of fortify source"
HOMEPAGE="https://github.com/jvoisin/fortify-headers"
if [[ ${PV} == *9999* ]] ; then
EGIT_REPO_URI="https://github.com/jvoisin/fortify-headers"
inherit git-r3
else
FORTIFY_COMMIT=""
SRC_URI="https://github.com/jvoisin/fortify-headers/archive/${FORTIFY_COMMIT}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64 ~arm ~mips ~ppc ~x86"
fi
LICENSE="ISC"
SLOT="0"
src_prepare() {
sed -i -e 's|^PREFIX = /usr/local|PREFIX = /usr|g' Makefile || die
default
}
src_compile() {
# Nothing to do here but defining a dummy phase allows us to not trigger
# the catch-all rule and try to install here where we don't have access
# to ${ED}
:;
}
src_test() {
emake -C tests CC="$(tc-getCC)"
}
src_install() {
export DESTDIR="${ED}"
default
}
|