public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Joshua Kinard" <kumba@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-fs/zerofree/
Date: Thu, 27 Feb 2020 03:22:32 +0000 (UTC)	[thread overview]
Message-ID: <1582773720.62c1c99f07ffef5001eb361c1614ca67b4f44b3f.kumba@gentoo> (raw)

commit:     62c1c99f07ffef5001eb361c1614ca67b4f44b3f
Author:     Joshua Kinard <kumba <AT> gentoo <DOT> org>
AuthorDate: Thu Feb 27 03:22:00 2020 +0000
Commit:     Joshua Kinard <kumba <AT> gentoo <DOT> org>
CommitDate: Thu Feb 27 03:22:00 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=62c1c99f

sys-fs/zerofree: Version bump, replace sed delimiter

- Add ebuild for zerofree-1.1.1
- Replace colon sed delimiter w/ pipe to resolve #710818
- Bump to EAPI 7
- Remove useless src_compile and use the built-in default

Signed-off-by: Joshua Kinard <kumba <AT> gentoo.org>
Package-Manager: Portage-2.3.89, Repoman-2.3.20

 sys-fs/zerofree/Manifest                               |  1 +
 sys-fs/zerofree/zerofree-1.0.4.ebuild                  | 18 ++++++++----------
 .../{zerofree-1.0.4.ebuild => zerofree-1.1.1.ebuild}   | 18 ++++++++----------
 3 files changed, 17 insertions(+), 20 deletions(-)

diff --git a/sys-fs/zerofree/Manifest b/sys-fs/zerofree/Manifest
index df3f07d3c3d..7c5efcfddaa 100644
--- a/sys-fs/zerofree/Manifest
+++ b/sys-fs/zerofree/Manifest
@@ -1 +1,2 @@
 DIST zerofree-1.0.4.tgz 8509 BLAKE2B d2d5872ad22e7c5f08e00083b0dadb5411023df9d129ec3bd08637e8a74f77f13a535e6f2c1a7cd4d390ed7a0d0b6e2433dacfa89336bb16ffb64c0d1c409929 SHA512 8172c8c43794eab1f751a700f847098343659ceabaf6ab78c3c902b34cf9b0db0dda75308b6bc80d22afccd11be25f35070ca6d715c3282c5c7c7106f598b42b
+DIST zerofree-1.1.1.tgz 8710 BLAKE2B 76a84de7db60473c8824129a29515212acc74235e2139eb15fe7f41d1801c42c85378734fdf39a668f0a4eb285c55c49ce2281dda9444b2008557897428bc645 SHA512 2d7ee57a877bff2491c48054338a26d624ae75c238ac2b0568a75de88b6621c16cc1e7d65500879825d14d8ba44a5173587a061459072769c165bee47c3f9f1c

diff --git a/sys-fs/zerofree/zerofree-1.0.4.ebuild b/sys-fs/zerofree/zerofree-1.0.4.ebuild
index dfa87892784..6e360c833a1 100644
--- a/sys-fs/zerofree/zerofree-1.0.4.ebuild
+++ b/sys-fs/zerofree/zerofree-1.0.4.ebuild
@@ -1,10 +1,10 @@
-# Copyright 1999-2019 Gentoo Authors
+# Copyright 1999-2020 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI="4"
+EAPI=7
 inherit eutils toolchain-funcs
 
-DESCRIPTION="Zero's out all free space on a filesystem"
+DESCRIPTION="Zeroes out all free space on a filesystem"
 HOMEPAGE="http://frippery.org/uml/index.html"
 SRC_URI="http://frippery.org/uml/${P}.tgz"
 
@@ -18,16 +18,14 @@ RDEPEND="${DEPEND}"
 
 src_prepare() {
 	# Honor system CFLAGS.
+	# Use pipes for the sed delimiter to resolve #710818.
 	sed -i \
-		-e "s:CC=gcc:CC=$(tc-getCC)\nCFLAGS=${CFLAGS}\nLDFLAGS=${LDFLAGS}:g" \
-		-e "s:-o zerofree:\$(CFLAGS) \$(LDFLAGS) -o zerofree:g" \
-		-e "/-lext2fs/{ s:-lext2fs::g; s:$: -lext2fs:g; }" \
+		-e "s|CC=gcc|CC=$(tc-getCC)\nCFLAGS=${CFLAGS}\nLDFLAGS=${LDFLAGS}|g" \
+		-e "s|-o zerofree|\$(CFLAGS) \$(LDFLAGS) -o zerofree|g" \
+		-e "/-lext2fs/{ s|-lext2fs||g; s|$| -lext2fs|g; }" \
 		Makefile || die "Failed to sed the Makefile"
-}
 
-src_compile() {
-	# Just a Makefile, nothing fancy.
-	make || die "Failed to compile ${PN}."
+	eapply_user
 }
 
 src_install() {

diff --git a/sys-fs/zerofree/zerofree-1.0.4.ebuild b/sys-fs/zerofree/zerofree-1.1.1.ebuild
similarity index 55%
copy from sys-fs/zerofree/zerofree-1.0.4.ebuild
copy to sys-fs/zerofree/zerofree-1.1.1.ebuild
index dfa87892784..6e360c833a1 100644
--- a/sys-fs/zerofree/zerofree-1.0.4.ebuild
+++ b/sys-fs/zerofree/zerofree-1.1.1.ebuild
@@ -1,10 +1,10 @@
-# Copyright 1999-2019 Gentoo Authors
+# Copyright 1999-2020 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI="4"
+EAPI=7
 inherit eutils toolchain-funcs
 
-DESCRIPTION="Zero's out all free space on a filesystem"
+DESCRIPTION="Zeroes out all free space on a filesystem"
 HOMEPAGE="http://frippery.org/uml/index.html"
 SRC_URI="http://frippery.org/uml/${P}.tgz"
 
@@ -18,16 +18,14 @@ RDEPEND="${DEPEND}"
 
 src_prepare() {
 	# Honor system CFLAGS.
+	# Use pipes for the sed delimiter to resolve #710818.
 	sed -i \
-		-e "s:CC=gcc:CC=$(tc-getCC)\nCFLAGS=${CFLAGS}\nLDFLAGS=${LDFLAGS}:g" \
-		-e "s:-o zerofree:\$(CFLAGS) \$(LDFLAGS) -o zerofree:g" \
-		-e "/-lext2fs/{ s:-lext2fs::g; s:$: -lext2fs:g; }" \
+		-e "s|CC=gcc|CC=$(tc-getCC)\nCFLAGS=${CFLAGS}\nLDFLAGS=${LDFLAGS}|g" \
+		-e "s|-o zerofree|\$(CFLAGS) \$(LDFLAGS) -o zerofree|g" \
+		-e "/-lext2fs/{ s|-lext2fs||g; s|$| -lext2fs|g; }" \
 		Makefile || die "Failed to sed the Makefile"
-}
 
-src_compile() {
-	# Just a Makefile, nothing fancy.
-	make || die "Failed to compile ${PN}."
+	eapply_user
 }
 
 src_install() {


             reply	other threads:[~2020-02-27  3:22 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-02-27  3:22 Joshua Kinard [this message]
  -- strict thread matches above, loose matches on Subject: below --
2022-06-08 14:02 [gentoo-commits] repo/gentoo:master commit in: sys-fs/zerofree/ Yixun Lan
2021-09-13 20:30 David Seifert
2020-12-21 18:01 Sam James
2020-12-20 20:18 Sam James
2020-12-20 17:41 Sam James
2020-12-20 16:30 Thomas Deutschmann
2019-07-15 15:28 Michał Górny
2018-07-12  0:41 Mikle Kolyada
2016-05-16  7:02 Robin H. Johnson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1582773720.62c1c99f07ffef5001eb361c1614ca67b4f44b3f.kumba@gentoo \
    --to=kumba@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox