blob: 3f92bf729466bf2440c8503a6799a70ffc4cb7b9 (
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
|
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit cmake
MY_PN="github.com/trendmicro/${PN}"
MY_P="${P}"
if [[ "${PV}" == "9999" ]]; then
inherit git-r3
EGIT_REPO_URI="https://${MY_PN}"
EGIT_SUBMODULES=()
KEYWORDS="~amd64 ~x86"
else
EGIT_COMMIT=${PV}
MY_P="${PN}-${EGIT_COMMIT}"
SRC_URI="https://${MY_PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
KEYWORDS="amd64 x86"
fi
DESCRIPTION="Trend Micro Locality Sensitive Hash"
HOMEPAGE="https://github.com/trendmicro/tlsh"
LICENSE="Apache-2.0"
SLOT="0/${PVR}"
IUSE=""
RESTRICT="mirror"
DEPEND=""
RDEPEND="${DEPEND}"
S="${WORKDIR}/${MY_P}"
CMAKE_BUILD_TYPE=Release
src_compile() {
sh ./make.sh -notest
}
src_install() {
cmake_src_install
# Manually install supporting files that conflict with other packages
# but are needed for galera and initial installation
exeinto /usr/bin
newexe "${S}/bin/tlsh_unittest" tlsh
}
|