public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "David Seifert" <soap@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: app-text/cook/
Date: Sun, 18 Aug 2019 12:37:26 +0000 (UTC)	[thread overview]
Message-ID: <1566131805.9eae2c816c64b019d58dc42367de8a8158457037.soap@gentoo> (raw)

commit:     9eae2c816c64b019d58dc42367de8a8158457037
Author:     David Seifert <soap <AT> gentoo <DOT> org>
AuthorDate: Sun Aug 18 12:16:59 2019 +0000
Commit:     David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Sun Aug 18 12:36:45 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9eae2c81

app-text/cook: Port to EAPI 7

Package-Manager: Portage-2.3.71, Repoman-2.3.17
Signed-off-by: David Seifert <soap <AT> gentoo.org>

 app-text/cook/cook-1.0.2-r1.ebuild | 46 +++++++++++++++++---------------------
 1 file changed, 21 insertions(+), 25 deletions(-)

diff --git a/app-text/cook/cook-1.0.2-r1.ebuild b/app-text/cook/cook-1.0.2-r1.ebuild
index cfa071431fa..4c1343f0e2c 100644
--- a/app-text/cook/cook-1.0.2-r1.ebuild
+++ b/app-text/cook/cook-1.0.2-r1.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2019 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=0
+EAPI=7
 
-inherit toolchain-funcs
+inherit readme.gentoo-r1 toolchain-funcs
 
 DESCRIPTION="Embedded language which can be used as a macro preprocessor"
 HOMEPAGE="http://cook.sourceforge.net/"
@@ -12,34 +12,30 @@ SRC_URI="mirror://sourceforge/cook/${P}.tar.gz"
 LICENSE="GPL-2"
 SLOT="0"
 KEYWORDS="~amd64 ppc x86 ~x86-linux ~ppc-macos ~sparc-solaris"
-IUSE=""
-
-DEPEND=""
 
 src_compile() {
-	emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" || die "emake failed"
+	emake \
+		CC="$(tc-getCC)" \
+		CFLAGS="${CFLAGS}" \
+		LDFLAGS="${LDFLAGS}"
 }
 
 src_install() {
-	use prefix || EPREFIX=
-
-	dodoc README doc/cook.txt doc/cook.html || die "dodoc failed"
-
-	insinto /usr/share/doc/${PF}/example
-	doins test/pcb.dbdef test/pcb.dg test/pcbprol.ps test/tempsens.pcb || die "doins failed"
-
-	newbin src/cook cookproc || die "newbin failed"
-
-	cat > "${T}"/README.Gentoo <<EOF
-NOTICE:
-
- ${EPREFIX}/usr/bin/cook has been renamed to ${EPREFIX}/usr/bin/cookproc in Gentoo
-
- -- Karl Trygve Kalleberg <karltk@gentoo.org>
-EOF
-	dodoc "${T}"/README.Gentoo || die "dodoc failed"
+	newbin src/cook cookproc
+
+	dodoc README doc/cook.txt doc/cook.html
+	docinto examples
+	dodoc test/pcb.dbdef test/pcb.dg test/pcbprol.ps test/tempsens.pcb
+	docompress -x /usr/share/doc/${PF}/examples
+
+	local DOC_CONTENTS="
+	NOTICE:
+	${EPREFIX}/usr/bin/cook has been renamed to ${EPREFIX}/usr/bin/cookproc in Gentoo
+	-- Karl Trygve Kalleberg <karltk@gentoo.org>"
+	readme.gentoo_create_doc
+	dodoc "${T}"/README.gentoo
 }
 
 pkg_postinst() {
-	ewarn "${EPREFIX}/usr/bin/cook has been renamed to ${EPREFIX}/usr/bin/cookproc"
+	readme.gentoo_print_elog
 }


             reply	other threads:[~2019-08-18 12:37 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-08-18 12:37 David Seifert [this message]
  -- strict thread matches above, loose matches on Subject: below --
2017-02-18  9:54 [gentoo-commits] repo/gentoo:master commit in: app-text/cook/ David Seifert

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=1566131805.9eae2c816c64b019d58dc42367de8a8158457037.soap@gentoo \
    --to=soap@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