summaryrefslogtreecommitdiff
path: root/dev-libs/pmdk
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2021-03-03 10:28:17 +0000
committerV3n3RiX <venerix@redcorelinux.org>2021-03-03 10:28:17 +0000
commitd99093fb4bb5652015c06274d64083daa2439e4f (patch)
treecf61513204d97974179580065e85df5c8009087c /dev-libs/pmdk
parent463397cf1e064185110fe57c568d73f99a06f5d1 (diff)
gentoo resync : 03.03.2021
Diffstat (limited to 'dev-libs/pmdk')
-rw-r--r--dev-libs/pmdk/Manifest3
-rw-r--r--dev-libs/pmdk/metadata.xml8
-rw-r--r--dev-libs/pmdk/pmdk-1.9.2.ebuild54
3 files changed, 65 insertions, 0 deletions
diff --git a/dev-libs/pmdk/Manifest b/dev-libs/pmdk/Manifest
new file mode 100644
index 000000000000..52b44bc29ca7
--- /dev/null
+++ b/dev-libs/pmdk/Manifest
@@ -0,0 +1,3 @@
+DIST pmdk-1.9.2.tar.gz 2281358 BLAKE2B 2124055c9535a58d2904df20504ce17e51d8fb67aab2fd302b44d61e04fc40e7f622b6174bd7f8d4b978ff51386a6548cfbda4423be2764f36f8c8311cf54836 SHA512 da9f7863c346de2ec7874d5f920b5ef8e0de7bc87d2ca21ebc25056d6fde4e7753957d2a1b9d8ea26f53f0b828984d69efbd88ffac62d1a7403ef3bf9d33fa30
+EBUILD pmdk-1.9.2.ebuild 1057 BLAKE2B ee5472c5050edf97db552b5fb0e50f212b5e9ba62bdbb8416b42db124734339a58545f1a5603a8f28a3c2c6265f0f3af3968ac4ec8d8635d469503c24cfad43b SHA512 2699abffb4a9cae0a5c61a4a75cf5ac2842ed5f7877e06b563111c68765ffb4dcd8afa6c12511ae96a5fa358541fe7713ba3298ea89bc4cbae9c4b522d576f39
+MISC metadata.xml 249 BLAKE2B 9e4529cdac0a55f14c36fde3fa54e30645a61a73d58e83ce460edf84d729bb3cd4cdc3e52d588690945508bc7d253b1edfb7734ebee94a88b75fee249a043c84 SHA512 ecad16da7f98e9b1cb1882147e6d8b7d541e4839d92fc26f3db1bea69ed633637da9259947b2b78d204a11d0edd3daa84f173613b6dc19110b5406c6fddfa7f0
diff --git a/dev-libs/pmdk/metadata.xml b/dev-libs/pmdk/metadata.xml
new file mode 100644
index 000000000000..cee379b15409
--- /dev/null
+++ b/dev-libs/pmdk/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>chutzpah@gentoo.org</email>
+ <name>Patrick McLean</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/dev-libs/pmdk/pmdk-1.9.2.ebuild b/dev-libs/pmdk/pmdk-1.9.2.ebuild
new file mode 100644
index 000000000000..245e99c6fe18
--- /dev/null
+++ b/dev-libs/pmdk/pmdk-1.9.2.ebuild
@@ -0,0 +1,54 @@
+# Copyright 2021 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_install() {
+ emake install prefix=/usr sysconfdir=/etc DESTDIR="${ED}"
+}