summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sys-apps')
-rw-r--r--sys-apps/nvme-cli/nvme-cli-0.9.ebuild14
1 files changed, 6 insertions, 8 deletions
diff --git a/sys-apps/nvme-cli/nvme-cli-0.9.ebuild b/sys-apps/nvme-cli/nvme-cli-0.9.ebuild
index b996e8b9039d..2cdadb3ace08 100644
--- a/sys-apps/nvme-cli/nvme-cli-0.9.ebuild
+++ b/sys-apps/nvme-cli/nvme-cli-0.9.ebuild
@@ -21,16 +21,14 @@ src_prepare() {
sed -i -E \
-e '/^CFLAGS/s: (-O2|-g|-Wall|-Werror)\>: :g' \
Makefile || die
- sed 's|/usr/local|$(DESTDIR)/$(PREFIX)/share|' \
- -i Documentation/Makefile || die
+ sed -i \
+ -e '/^PREFIX/s|:=|?=|' \
+ Documentation/Makefile || die
default
}
-src_compile() {
- emake CC="$(tc-getCC)"
-}
-
-src_install() {
- emake DESTDIR="${D}" PREFIX=/usr install
+src_configure() {
+ tc-export CC
+ export PREFIX="${EPREFIX}/usr"
}