commit: 1fb53117341afb2aac28cbe4822db7e5f99f4c91
Author: Mike Frysinger <vapier <AT> gentoo <DOT> org>
AuthorDate: Fri Dec 16 00:00:16 2016 +0000
Commit: Mike Frysinger <vapier <AT> gentoo <DOT> org>
CommitDate: Fri Dec 16 00:04:22 2016 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1fb53117
sys-apps/nvme-cli: rework setting of PREFIX in build
This way we only define configure and utilize the default compile/install.
sys-apps/nvme-cli/nvme-cli-0.9.ebuild | 14 ++++++--------
1 file 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 b996e8b..2cdadb3 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"
}