Gentoo Archives: gentoo-commits

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