1 |
commit: a6c9753dc1d28e6ffa26ac2996cc47d3eb723f6a |
2 |
Author: Ben Kohler <bkohler <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Jul 13 14:23:20 2021 +0000 |
4 |
Commit: Ben Kohler <bkohler <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jul 13 14:23:35 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a6c9753d |
7 |
|
8 |
app-text/discount: bump to EAPI=8 |
9 |
|
10 |
Package-Manager: Portage-3.0.20, Repoman-3.0.3 |
11 |
Signed-off-by: Ben Kohler <bkohler <AT> gentoo.org> |
12 |
|
13 |
app-text/discount/discount-2.2.7-r2.ebuild | 69 ++++++++++++++++++++++++++++++ |
14 |
1 file changed, 69 insertions(+) |
15 |
|
16 |
diff --git a/app-text/discount/discount-2.2.7-r2.ebuild b/app-text/discount/discount-2.2.7-r2.ebuild |
17 |
new file mode 100644 |
18 |
index 00000000000..10b47fddbbb |
19 |
--- /dev/null |
20 |
+++ b/app-text/discount/discount-2.2.7-r2.ebuild |
21 |
@@ -0,0 +1,69 @@ |
22 |
+# Copyright 1999-2021 Gentoo Authors |
23 |
+# Distributed under the terms of the GNU General Public License v2 |
24 |
+ |
25 |
+EAPI=8 |
26 |
+ |
27 |
+inherit toolchain-funcs |
28 |
+ |
29 |
+DESCRIPTION="A Markdown-to HTML translator written in C" |
30 |
+HOMEPAGE="http://www.pell.portland.or.us/~orc/Code/discount/" |
31 |
+SRC_URI="http://www.pell.portland.or.us/~orc/Code/${PN}/${P}.tar.bz2" |
32 |
+ |
33 |
+LICENSE="BSD" |
34 |
+SLOT="0" |
35 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~sparc ~x86" |
36 |
+IUSE="minimal test" |
37 |
+RESTRICT="!test? ( test )" |
38 |
+ |
39 |
+PATCHES=( "${FILESDIR}"/gethopt-undefined.patch ) |
40 |
+ |
41 |
+src_prepare() { |
42 |
+ default |
43 |
+ |
44 |
+ # for QA, we remove the Makefile’s usage of install -s. |
45 |
+ # Drop ldconfig invocation. |
46 |
+ # Force “librarian.sh” to respect LDFLAGS ($FLAGS should have CFLAGS |
47 |
+ # at that point). |
48 |
+ sed -i \ |
49 |
+ -e '/INSTALL_PROGRAM/s,\$_strip ,,' \ |
50 |
+ -e 's/\(LDCONFIG=\).*/\1:/' \ |
51 |
+ -e 's/\(.\)\$FLAGS/& \1$LDFLAGS/' \ |
52 |
+ configure.inc || die "sed configure.inc failed" |
53 |
+} |
54 |
+ |
55 |
+src_configure() { |
56 |
+ local configure_call=( |
57 |
+ ./configure.sh |
58 |
+ --libdir="${EPREFIX}/usr/$(get_libdir)" |
59 |
+ --prefix="${EPREFIX}/usr" |
60 |
+ --mandir="${EPREFIX}/usr/share/man" |
61 |
+ --shared |
62 |
+ --pkg-config |
63 |
+ $(usex minimal '' --enable-all-features) |
64 |
+ # Enable deterministic HTML generation behavior. Otherwise, will |
65 |
+ # actually call rand() as part of its serialization code... |
66 |
+ --debian-glitch |
67 |
+ ) |
68 |
+ einfo "Running ${configure_call[@]}" |
69 |
+ CC="$(tc-getCC)" AR="$(tc-getAR)" \ |
70 |
+ "${configure_call[@]}" || die |
71 |
+} |
72 |
+ |
73 |
+src_compile() { |
74 |
+ emake libmarkdown |
75 |
+ emake |
76 |
+} |
77 |
+ |
78 |
+src_install() { |
79 |
+ emake \ |
80 |
+ DESTDIR="${D}" \ |
81 |
+ $(usex minimal install install.everything) \ |
82 |
+ SAMPLE_PFX="${PN}-" |
83 |
+} |
84 |
+ |
85 |
+pkg_postinst() { |
86 |
+ if ! use minimal; then |
87 |
+ elog 'Sample binaries with overly-generic names have been' |
88 |
+ elog "prefixed with \"${PN}-\"." |
89 |
+ fi |
90 |
+} |