blob: 7c81c7f8a1ce8da3ce1e5904b7dbe62d552450c7 (
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-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=5
inherit eutils cmake-utils flag-o-matic
DESCRIPTION="Dislocker is used to read BitLocker encrypted partitions."
HOMEPAGE="https://github.com/Aorimn/dislocker"
if [[ ${PV} == *9999* ]]; then
EGIT_REPO_URI="https://github.com/Aorimn/dislocker.git"
inherit git-r3
else
SRC_URI="https://github.com/Aorimn/dislocker/archive/v${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~x86 ~amd64"
fi
LICENSE="GPL-2"
SLOT="0"
IUSE="ruby"
DEPEND="sys-fs/fuse:*
net-libs/mbedtls
ruby? ( || ( dev-lang/ruby:2.2 dev-lang/ruby:2.3 ) )"
RDEPEND="${DEPEND}"
src_prepare() {
cmake-utils_src_prepare
# We either need to change Werror to Wno-error or remove the multiple declarations of FORTIFY_SOURCE
# sed 's:Werror:Wno-error:g' -i "${S}/src/CMakeLists.txt" || die
sed 's:-D_FORTIFY_SOURCE=2::g' -i "${S}/src/CMakeLists.txt" || die
sed 's:\.\./man:'../../${P}/man':g' -i "${S}/src/CMakeLists.txt" || die
}
src_configure() {
mycmakeargs=(
$(cmake-utils_use_find_package ruby Ruby)
)
cmake-utils_src_configure
}
src_install() {
find "${S}/man/linux" -name '*.1' -exec doman '{}' +
cmake-utils_src_install
}
|