diff options
author | Lars Wendler <polynomial-c@gentoo.org> | 2017-07-20 13:58:38 +0200 |
---|---|---|
committer | Lars Wendler <polynomial-c@gentoo.org> | 2017-07-20 14:06:32 +0200 |
commit | 74f6f29805ae12a7849d1ccc3bff664e2ee837e7 (patch) | |
tree | 2022e9b754f61461d4e51cf04b1187c433d670c7 /sys-block/sedutil/sedutil-1.15.ebuild | |
parent | profiles/arch/arm64: mask pstoedit[emf] (diff) | |
download | gentoo-74f6f29805ae12a7849d1ccc3bff664e2ee837e7.tar.gz gentoo-74f6f29805ae12a7849d1ccc3bff664e2ee837e7.tar.bz2 gentoo-74f6f29805ae12a7849d1ccc3bff664e2ee837e7.zip |
sys-block/sedutil: Bump to version 1.15
Package-Manager: Portage-2.3.6, Repoman-2.3.3
Diffstat (limited to 'sys-block/sedutil/sedutil-1.15.ebuild')
-rw-r--r-- | sys-block/sedutil/sedutil-1.15.ebuild | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/sys-block/sedutil/sedutil-1.15.ebuild b/sys-block/sedutil/sedutil-1.15.ebuild new file mode 100644 index 000000000000..058b0ec518c8 --- /dev/null +++ b/sys-block/sedutil/sedutil-1.15.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit toolchain-funcs + +DESCRIPTION="The Drive Trust Alliance Self Encrypting Drive Utility" +HOMEPAGE="https://github.com/Drive-Trust-Alliance/sedutil" +SRC_URI="https://github.com/Drive-Trust-Alliance/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-3+" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +src_prepare() { + default + # https://github.com/Drive-Trust-Alliance/sedutil/pull/49 + find -name '*.mk' -exec sed -E -i 's: -(Werror|g|O[0-9]?) : :g' {} + || die +} + +src_configure() { + case $(tc-arch) in + x86) sedutil_arch="Release_i686" ;; + amd64) sedutil_arch="Release_x86_64" ;; + *) die "unsupported architecture" ;; + esac +} + +src_compile() { + emake \ + -C "linux/CLI" \ + V=1 \ + CONF="${sedutil_arch}" \ + CC="$(tc-getCC)" \ + CXX="$(tc-getCXX)" \ + CFLAGS="${CFLAGS}" \ + CXXFLAGS="${CXXFLAGS}" +} + +src_install() { + dobin "linux/CLI/dist/${sedutil_arch}/GNU-Linux/sedutil-cli" + dodoc README.md +} |