From 0f3fe7cf3bb7da7b34fbdd9ebde6b2a7cebcf953 Mon Sep 17 00:00:00 2001 From: David Seifert Date: Fri, 29 Dec 2017 18:11:43 +0100 Subject: [PATCH] app-admin/ide-smart: Port to EAPI 6 Package-Manager: Portage-2.3.19, Repoman-2.3.6 --- .../ide-smart-1.4-fix-build-system.patch | 17 ++++++++++++++ app-admin/ide-smart/ide-smart-1.4-r1.ebuild | 22 ++++++++++++++----- 2 files changed, 34 insertions(+), 5 deletions(-) create mode 100644 app-admin/ide-smart/files/ide-smart-1.4-fix-build-system.patch diff --git a/app-admin/ide-smart/files/ide-smart-1.4-fix-build-system.patch b/app-admin/ide-smart/files/ide-smart-1.4-fix-build-system.patch new file mode 100644 index 0000000000000..ad523e36b3f97 --- /dev/null +++ b/app-admin/ide-smart/files/ide-smart-1.4-fix-build-system.patch @@ -0,0 +1,17 @@ +--- a/Makefile ++++ b/Makefile +@@ -2,13 +2,10 @@ + + #CC = gcc + PROF = -g0 -O2 +-CFLAGS = $(PROF) -Wall +-LDFLAGS = $(PROF) ++CFLAGS += -Wall + TARGET = ide-smart + OBJECTS = ide-smart.o + +-ide-smart: $(OBJECTS) +- $(CC) $(LDFLAGS) -o $(TARGET) $(OBJECTS) + + all: ide-smart + diff --git a/app-admin/ide-smart/ide-smart-1.4-r1.ebuild b/app-admin/ide-smart/ide-smart-1.4-r1.ebuild index cac5d77934f3f..5ffb6e04cbb26 100644 --- a/app-admin/ide-smart/ide-smart-1.4-r1.ebuild +++ b/app-admin/ide-smart/ide-smart-1.4-r1.ebuild @@ -1,6 +1,8 @@ -# Copyright 1999-2012 Gentoo Foundation +# Copyright 1999-2017 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 +EAPI=6 + inherit toolchain-funcs DESCRIPTION="A tool to read SMART information from harddiscs" @@ -12,12 +14,22 @@ SLOT="0" KEYWORDS="amd64 ppc sparc x86" IUSE="" -src_compile() { - $(tc-getCC) ${CFLAGS} -Wall ${LDFLAGS} -o ${PN} ${PN}.c || die "compile" +PATCHES=( "${FILESDIR}"/${PN}-1.4-fix-build-system.patch ) + +src_prepare() { + default + + # yes, the tarball includes pre-compiled + # object files and binaries + rm ${PN}{,.o} || die +} + +src_configure() { + tc-export CC } src_install() { - dobin ide-smart || die + dobin ide-smart doman ide-smart.8 - dodoc README + einstalldocs }