summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2016-12-15 19:00:16 -0500
committerMike Frysinger <vapier@gentoo.org>2016-12-15 19:04:22 -0500
commit1fb53117341afb2aac28cbe4822db7e5f99f4c91 (patch)
tree64d35ee03a8b13956e438a6bc629ed709df05455
parentsys-apps/nvme-cli: fix stripping of upstream compiler flags (like -Werror) (diff)
downloadgentoo-1fb53117341afb2aac28cbe4822db7e5f99f4c91.tar.gz
gentoo-1fb53117341afb2aac28cbe4822db7e5f99f4c91.tar.bz2
gentoo-1fb53117341afb2aac28cbe4822db7e5f99f4c91.zip
sys-apps/nvme-cli: rework setting of PREFIX in build
This way we only define configure and utilize the default compile/install.
-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"
}