summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2021-04-03 21:42:07 +0000
committerSam James <sam@gentoo.org>2021-04-03 21:42:07 +0000
commitfbbff932081d7f010281bb7b385600713058e335 (patch)
tree684ed6c44ba1392327456830ab9b0f003b34052c /app-cdr/plextor-tool
parentapp-misc/tprint: port to EAPI 7 (diff)
downloadgentoo-fbbff932081d7f010281bb7b385600713058e335.tar.gz
gentoo-fbbff932081d7f010281bb7b385600713058e335.tar.bz2
gentoo-fbbff932081d7f010281bb7b385600713058e335.zip
app-cdr/plextor-tool: port to EAPI 7
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'app-cdr/plextor-tool')
-rw-r--r--app-cdr/plextor-tool/files/plextor-tool-0.5.0-build.patch4
-rw-r--r--app-cdr/plextor-tool/plextor-tool-0.5.0.ebuild21
2 files changed, 17 insertions, 8 deletions
diff --git a/app-cdr/plextor-tool/files/plextor-tool-0.5.0-build.patch b/app-cdr/plextor-tool/files/plextor-tool-0.5.0-build.patch
index d2a181f14fed..f01aa00d920b 100644
--- a/app-cdr/plextor-tool/files/plextor-tool-0.5.0-build.patch
+++ b/app-cdr/plextor-tool/files/plextor-tool-0.5.0-build.patch
@@ -1,5 +1,5 @@
---- Makefile
-+++ Makefile
+--- a/Makefile
++++ b/Makefile
@@ -2,17 +2,17 @@
# Copyright (c) 1999-2002 Georg Huettenegger
#
diff --git a/app-cdr/plextor-tool/plextor-tool-0.5.0.ebuild b/app-cdr/plextor-tool/plextor-tool-0.5.0.ebuild
index 39a125aaf854..0822d71769e4 100644
--- a/app-cdr/plextor-tool/plextor-tool-0.5.0.ebuild
+++ b/app-cdr/plextor-tool/plextor-tool-0.5.0.ebuild
@@ -1,34 +1,43 @@
-# Copyright 1999-2013 Gentoo Foundation
+# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=5
-inherit eutils toolchain-funcs
+EAPI=7
+
+inherit toolchain-funcs
DESCRIPTION="Tool to change the parameters of a Plextor CD-ROM drive"
HOMEPAGE="http://plextor-tool.sourceforge.net/"
SRC_URI="mirror://sourceforge/plextor-tool/${P}.src.tar.bz2"
+S="${WORKDIR}"/${PN}/src
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="static"
-S=${WORKDIR}/${PN}/src
+PATCHES=(
+ "${FILESDIR}"/${P}-build.patch
+)
src_prepare() {
- epatch "${FILESDIR}"/${P}-build.patch
+ default
+
gunzip plextor-tool.8.gz || die
}
src_compile() {
local targets="plextor-tool"
+
use static && targets="${targets} pt-static"
- echo ${targets} > my-make-targets
+
+ echo ${targets} > my-make-targets || die
+
emake CC="$(tc-getCC)" ${targets}
}
src_install() {
local targets=$(<my-make-targets)
+
dodoc ../doc/{NEWS,README} TODO
dobin ${targets}
doman plextor-tool.8