Skip to content

Commit

Permalink
sys-apps/nvme-cli: NVM-Express user space tooling for Linux
Browse files Browse the repository at this point in the history
Package-Manager: portage-2.2.20.1
  • Loading branch information
zmedico committed Aug 28, 2015
1 parent 9c00412 commit e9b4951
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 0 deletions.
1 change: 1 addition & 0 deletions sys-apps/nvme-cli/Manifest
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
DIST nvme-cli-0_pre20150821.tar.gz 106218 SHA256 3da0e1907203fff9da50e6a474a0c2081a05bd2688fa364c6fc90bf84125c5b6 SHA512 7a88c3f7e52adbba01c01e02064402f9bf27dc79c060d9510a8e9dbe7dbe5097aa2823470cf1264f416ff3484719ba2a01a30017dbaa6b66258aa6a9f1023325 WHIRLPOOL 94b18ff536fb2079218b984b60a4555cfb278a5a0fed1385940d90b8cf9fa10b21e99f886466318f77eb2c907ea2887de1ede0199cab2c1cdf92e252c1c9d8a5
10 changes: 10 additions & 0 deletions sys-apps/nvme-cli/metadata.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer>
<email>[email protected]</email>
</maintainer>
<upstream>
<remote-id type="github">linux-nvme/nvme-cli</remote-id>
</upstream>
</pkgmetadata>
29 changes: 29 additions & 0 deletions sys-apps/nvme-cli/nvme-cli-0_pre20150821.ebuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$

EAPI=5

DESCRIPTION="NVM-Express user space tooling for Linux"
HOMEPAGE="https://github.com/linux-nvme/nvme-cli"
EGIT_COMMIT="709571d77bf618921fd719253da677742c673d06"
SRC_URI="https://github.com/linux-nvme/nvme-cli/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
RDEPEND="sys-libs/libcap"
DEPEND="${RDEPEND}"
S=${WORKDIR}/${PN}-${EGIT_COMMIT}

src_prepare() {
sed 's|-m64 \(-std=gnu99\) -O2 -g \(-pthread -D_GNU_SOURCE -D_REENTRANT -Wall\) -Werror|\1 \2|' \
-i Makefile || die
sed 's|/usr/local|$(DESTDIR)/$(PREFIX)/share|' \
-i Documentation/Makefile || die
}

src_install() {
emake DESTDIR="${D}" PREFIX=/usr install
}

0 comments on commit e9b4951

Please sign in to comment.