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