Diff sedutil-1.15 with a sedutil-1.15.1

/usr/portage/sys-block/sedutil/sedutil-1.15.1.ebuild 2020-11-02 13:09:00.000000000 +0300
1
# Copyright 1999-2017 Gentoo Foundation
1
# Copyright 1999-2020 Gentoo Authors
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4 4
EAPI=6
5 5

  
6
inherit toolchain-funcs
6
inherit autotools toolchain-funcs
7 7

  
8 8
DESCRIPTION="The Drive Trust Alliance Self Encrypting Drive Utility"
9 9
HOMEPAGE="https://github.com/Drive-Trust-Alliance/sedutil"
......
11 11

  
12 12
LICENSE="GPL-3+"
13 13
SLOT="0"
14
KEYWORDS="~amd64 ~x86"
14
KEYWORDS="amd64 x86"
15 15
IUSE=""
16 16

  
17 17
src_prepare() {
18 18
	default
19 19
	# https://github.com/Drive-Trust-Alliance/sedutil/pull/49
20
	find -name '*.mk' -exec sed -E -i 's: -(Werror|g|O[0-9]?) : :g' {} + || die
21
}
22

  
23
src_configure() {
24
	case $(tc-arch) in
25
		x86)   sedutil_arch="Release_i686" ;;
26
		amd64) sedutil_arch="Release_x86_64" ;;
27
		*)     die "unsupported architecture" ;;
28
	esac
29
}
30

  
31
src_compile() {
32
	emake \
33
		-C "linux/CLI" \
34
		V=1 \
35
		CONF="${sedutil_arch}" \
36
		CC="$(tc-getCC)" \
37
		CXX="$(tc-getCXX)" \
38
		CFLAGS="${CFLAGS}" \
39
		CXXFLAGS="${CXXFLAGS}"
40
}
41

  
42
src_install() {
43
	dobin "linux/CLI/dist/${sedutil_arch}/GNU-Linux/sedutil-cli"
44
	dodoc README.md
20
	sed 's: -Werror: :g' \
21
		-i configure.ac \
22
		-i Makefile.am || die
23
	eautoreconf
45 24
}
Thank you!