1 |
commit: 9eae2c816c64b019d58dc42367de8a8158457037 |
2 |
Author: David Seifert <soap <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Aug 18 12:16:59 2019 +0000 |
4 |
Commit: David Seifert <soap <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Aug 18 12:36:45 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9eae2c81 |
7 |
|
8 |
app-text/cook: Port to EAPI 7 |
9 |
|
10 |
Package-Manager: Portage-2.3.71, Repoman-2.3.17 |
11 |
Signed-off-by: David Seifert <soap <AT> gentoo.org> |
12 |
|
13 |
app-text/cook/cook-1.0.2-r1.ebuild | 46 +++++++++++++++++--------------------- |
14 |
1 file changed, 21 insertions(+), 25 deletions(-) |
15 |
|
16 |
diff --git a/app-text/cook/cook-1.0.2-r1.ebuild b/app-text/cook/cook-1.0.2-r1.ebuild |
17 |
index cfa071431fa..4c1343f0e2c 100644 |
18 |
--- a/app-text/cook/cook-1.0.2-r1.ebuild |
19 |
+++ b/app-text/cook/cook-1.0.2-r1.ebuild |
20 |
@@ -1,9 +1,9 @@ |
21 |
-# Copyright 1999-2018 Gentoo Foundation |
22 |
+# Copyright 1999-2019 Gentoo Authors |
23 |
# Distributed under the terms of the GNU General Public License v2 |
24 |
|
25 |
-EAPI=0 |
26 |
+EAPI=7 |
27 |
|
28 |
-inherit toolchain-funcs |
29 |
+inherit readme.gentoo-r1 toolchain-funcs |
30 |
|
31 |
DESCRIPTION="Embedded language which can be used as a macro preprocessor" |
32 |
HOMEPAGE="http://cook.sourceforge.net/" |
33 |
@@ -12,34 +12,30 @@ SRC_URI="mirror://sourceforge/cook/${P}.tar.gz" |
34 |
LICENSE="GPL-2" |
35 |
SLOT="0" |
36 |
KEYWORDS="~amd64 ppc x86 ~x86-linux ~ppc-macos ~sparc-solaris" |
37 |
-IUSE="" |
38 |
- |
39 |
-DEPEND="" |
40 |
|
41 |
src_compile() { |
42 |
- emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" || die "emake failed" |
43 |
+ emake \ |
44 |
+ CC="$(tc-getCC)" \ |
45 |
+ CFLAGS="${CFLAGS}" \ |
46 |
+ LDFLAGS="${LDFLAGS}" |
47 |
} |
48 |
|
49 |
src_install() { |
50 |
- use prefix || EPREFIX= |
51 |
- |
52 |
- dodoc README doc/cook.txt doc/cook.html || die "dodoc failed" |
53 |
- |
54 |
- insinto /usr/share/doc/${PF}/example |
55 |
- doins test/pcb.dbdef test/pcb.dg test/pcbprol.ps test/tempsens.pcb || die "doins failed" |
56 |
- |
57 |
- newbin src/cook cookproc || die "newbin failed" |
58 |
- |
59 |
- cat > "${T}"/README.Gentoo <<EOF |
60 |
-NOTICE: |
61 |
- |
62 |
- ${EPREFIX}/usr/bin/cook has been renamed to ${EPREFIX}/usr/bin/cookproc in Gentoo |
63 |
- |
64 |
- -- Karl Trygve Kalleberg <karltk@g.o> |
65 |
-EOF |
66 |
- dodoc "${T}"/README.Gentoo || die "dodoc failed" |
67 |
+ newbin src/cook cookproc |
68 |
+ |
69 |
+ dodoc README doc/cook.txt doc/cook.html |
70 |
+ docinto examples |
71 |
+ dodoc test/pcb.dbdef test/pcb.dg test/pcbprol.ps test/tempsens.pcb |
72 |
+ docompress -x /usr/share/doc/${PF}/examples |
73 |
+ |
74 |
+ local DOC_CONTENTS=" |
75 |
+ NOTICE: |
76 |
+ ${EPREFIX}/usr/bin/cook has been renamed to ${EPREFIX}/usr/bin/cookproc in Gentoo |
77 |
+ -- Karl Trygve Kalleberg <karltk@g.o>" |
78 |
+ readme.gentoo_create_doc |
79 |
+ dodoc "${T}"/README.gentoo |
80 |
} |
81 |
|
82 |
pkg_postinst() { |
83 |
- ewarn "${EPREFIX}/usr/bin/cook has been renamed to ${EPREFIX}/usr/bin/cookproc" |
84 |
+ readme.gentoo_print_elog |
85 |
} |