From 1a787194357b749a50ab7c60eed5efbd874ba86b Mon Sep 17 00:00:00 2001 From: Tim Harder Date: Tue, 22 Aug 2017 11:02:29 -0400 Subject: [PATCH] app-text/csvfix: update to EAPI 6 --- app-text/csvfix/csvfix-1.6.ebuild | 20 +++++++++++++------- app-text/csvfix/metadata.xml | 1 - 2 files changed, 13 insertions(+), 8 deletions(-) diff --git a/app-text/csvfix/csvfix-1.6.ebuild b/app-text/csvfix/csvfix-1.6.ebuild index 50b599f4355b..e79e239ef7de 100644 --- a/app-text/csvfix/csvfix-1.6.ebuild +++ b/app-text/csvfix/csvfix-1.6.ebuild @@ -1,9 +1,9 @@ -# Copyright 1999-2014 Gentoo Foundation +# Copyright 1999-2017 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -EAPI=5 +EAPI=6 -inherit eutils toolchain-funcs versionator vcs-snapshot +inherit toolchain-funcs versionator vcs-snapshot MY_PV="$(delete_all_version_separators)" DESCRIPTION="A stream editor for manipulating CSV files" @@ -20,10 +20,13 @@ RDEPEND="dev-libs/expat" DEPEND="${RDEPEND} doc? ( app-arch/unzip )" -src_prepare() { - epatch "${FILESDIR}"/${P}-makefile.patch - epatch "${FILESDIR}"/${PN}-1.10a-tests.patch +PATCHES=( + "${FILESDIR}"/${P}-makefile.patch + "${FILESDIR}"/${PN}-1.10a-tests.patch +) +src_prepare() { + default edos2unix $(find csvfix/tests -type f) } @@ -39,5 +42,8 @@ src_test() { src_install() { dobin csvfix/bin/csvfix - use doc && dohtml -r "${WORKDIR}"/${PN}${MY_PV}/* + if use doc; then + docinto html + dodoc -r "${WORKDIR}"/${PN}${MY_PV}/* + fi } diff --git a/app-text/csvfix/metadata.xml b/app-text/csvfix/metadata.xml index 85df0b57fb4f..8aaa5d2f6787 100644 --- a/app-text/csvfix/metadata.xml +++ b/app-text/csvfix/metadata.xml @@ -6,7 +6,6 @@ Tim Harder - csvfix neilb/csvfix -- 2.26.2