commit: 594b5fe0788303f0b7b132dc03039232636042ea Author: Patrick McLean <chutzpah <AT> gentoo <DOT> org> AuthorDate: Thu Oct 20 00:32:10 2022 +0000 Commit: Patrick McLean <chutzpah <AT> gentoo <DOT> org> CommitDate: Thu Oct 20 00:32:10 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=594b5fe0
dev-libs/pmdk: add 1.12.1 Signed-off-by: Patrick McLean <chutzpah <AT> gentoo.org> dev-libs/pmdk/Manifest | 1 + dev-libs/pmdk/pmdk-1.12.1.ebuild | 60 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 61 insertions(+) diff --git a/dev-libs/pmdk/Manifest b/dev-libs/pmdk/Manifest index 87bb846ceb13..0c6c8f71eb51 100644 --- a/dev-libs/pmdk/Manifest +++ b/dev-libs/pmdk/Manifest @@ -1 +1,2 @@ +DIST pmdk-1.12.1.tar.gz 2694951 BLAKE2B 706748af77c5c097b6fff81ecbaca49aafaf207daf05ff20d11b37ffaa64e0d68e0c4eeda4e9c8b7f76f893e5a35496f7e81bc03f88bdef8d1a7d80aa20af17f SHA512 9b29b2038af42829b809a182ece292b6b8bfd003519c3b8f223ec3cba552da0a561477b0e7dbaf14ad7fee8120b136ded10e2d3e1bc6a4a10771051f9aeca683 DIST pmdk-1.9.2.tar.gz 2281358 BLAKE2B 2124055c9535a58d2904df20504ce17e51d8fb67aab2fd302b44d61e04fc40e7f622b6174bd7f8d4b978ff51386a6548cfbda4423be2764f36f8c8311cf54836 SHA512 da9f7863c346de2ec7874d5f920b5ef8e0de7bc87d2ca21ebc25056d6fde4e7753957d2a1b9d8ea26f53f0b828984d69efbd88ffac62d1a7403ef3bf9d33fa30 diff --git a/dev-libs/pmdk/pmdk-1.12.1.ebuild b/dev-libs/pmdk/pmdk-1.12.1.ebuild new file mode 100644 index 000000000000..697268f890a8 --- /dev/null +++ b/dev-libs/pmdk/pmdk-1.12.1.ebuild @@ -0,0 +1,60 @@ +# Copyright 2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit toolchain-funcs flag-o-matic + +DESCRIPTION="Persistent Memory Development Kit" +HOMEPAGE="https://pmem.io/ https://github.com/pmem/pmdk" +SRC_URI="https://github.com/pmem/pmdk/releases/download/${PV}/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0/1" +KEYWORDS="~amd64" + +DEPEND=" + sys-block/ndctl:= + sys-block/libfabric:= +" +RDEPEND="${DEPEND}" +BDEPEND=" + app-text/pandoc + virtual/pkgconfig +" + +DOCS=( + CODING_STYLE.md + CONTRIBUTING.md + ChangeLog + README.md +) + +src_prepare() { + default + + # don't pre-compress man pages + sed -e 's/:=.gz//g ; s:gzip -nc:cat:g' -i doc/Makefile || die + + # remove -Werror + find . -name 'Makefile*' -type f -print | xargs sed 's:-Werror::g' -i || die +} + +src_configure() { + # doesn't build with -mindirect-branch=thunk + filter-flags -mindirect-branch=thunk +} + +src_compile() { + emake DEBUG= CC="$(tc-getCC)" CXX="$(tc-getCXX)" LD="$(tc-getLD)" AR="$(tc-getAR)" +} + +src_test() { + touch src/test/testconfig.sh || die + + emake CC="$(tc-getCC)" CXX="$(tc-getCXX)" LD="$(tc-getLD)" AR="$(tc-getAR)" test || die +} + +src_install() { + emake install prefix=/usr sysconfdir=/etc DESTDIR="${ED}" +}