Gentoo Archives: gentoo-commits

From: Virgil Dupras <vdupras@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-text/discount/
Date: Mon, 01 Oct 2018 20:01:03
Message-Id: 1538423891.ed43d9829d0045f50f8eb6c5ca743ec179b56791.vdupras@gentoo
1 commit: ed43d9829d0045f50f8eb6c5ca743ec179b56791
2 Author: Sergey Alirzaev <zl29ah <AT> gmail <DOT> com>
3 AuthorDate: Mon Oct 1 19:33:31 2018 +0000
4 Commit: Virgil Dupras <vdupras <AT> gentoo <DOT> org>
5 CommitDate: Mon Oct 1 19:58:11 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ed43d982
7
8 app-text/discount: version bump to 2.2.4
9
10 Bug: https://bugs.gentoo.org/658482
11 Signed-off-by: Sergey Alirzaev <zl29ah <AT> gmail.com>
12 Closes: https://github.com/gentoo/gentoo/pull/10038
13 Signed-off-by: Virgil Dupras <vdupras <AT> gentoo.org>
14
15 app-text/discount/Manifest | 1 +
16 app-text/discount/discount-2.2.4.ebuild | 70 +++++++++++++++++++++++++++++++++
17 2 files changed, 71 insertions(+)
18
19 diff --git a/app-text/discount/Manifest b/app-text/discount/Manifest
20 index 4ccdcac100c..cbba02172a6 100644
21 --- a/app-text/discount/Manifest
22 +++ b/app-text/discount/Manifest
23 @@ -1,3 +1,4 @@
24 DIST discount-2.1.8a.tar.bz2 85161 BLAKE2B 15b2f3e935115e6b9f2c4ba1c11b1d6ea6f32123bd11c1e13dcab7fd9badac9a4f7d671c0cf04a6dd9564e40fbd6970f26c473c188444db75e0ee6b91a1ed1bc SHA512 a1eba7076a27da56136b8057189c5474a36bf11f8233cbae270c8a0cf9b070332b4dcdbbbecfbfbe1d8c19961ccaf87cee27ebe855c6bc6558d8ccc423553c96
25 DIST discount-2.2.2.tar.bz2 89288 BLAKE2B 43950b3000f4d6e30603562694e965518be10107e534f48592f7f2d62959778244193fe5ab788f7f697bb099bb1ac940948ec92dabde1219a69bbe380eb5f66a SHA512 67d882c0a334592230332815c543458b3c916a950bf7983f8a468fbc9f61154b4023d4bf451b76639fcb3a076506b48118f192a8e21f2535b3f49c7f081bbdf3
26 DIST discount-2.2.3a.tar.bz2 98325 BLAKE2B b566a6f4d5a1f3481a0a665f7820508784b2ce6ec60d0b4ff833bed46c01a9a6bf6a697fc528bcddd37232246982e861a89733bf6654cedecc95a09def729463 SHA512 cf995a46879f269f3e02f7d480303d229676bb36f71fe045d3a8eab7306fca9cce98496611b9fb9e0a14a9cf46ee66bd239dd9c946dff54ae09277fd66459c1f
27 +DIST discount-2.2.4.tar.bz2 99482 BLAKE2B b04c372cef27d0a4a09a588eb66376dc70494eefe5c8a9e7aedb8075f081a6f32eafbb9671c29deea7d89128f4f30c93d38c17268eccbb1c917db6c1b7d3e040 SHA512 0650e0ce3f6948e3a30fdaa1a810e895f64621c55df46c7a5ed8755e65c1b718b7a1d1a1bfe0a87a3a59fbb13fca8907718f1aa095125a4b6e152602b8e490cf
28
29 diff --git a/app-text/discount/discount-2.2.4.ebuild b/app-text/discount/discount-2.2.4.ebuild
30 new file mode 100644
31 index 00000000000..8aa88de24c6
32 --- /dev/null
33 +++ b/app-text/discount/discount-2.2.4.ebuild
34 @@ -0,0 +1,70 @@
35 +# Copyright 1999-2016 Gentoo Foundation
36 +# Distributed under the terms of the GNU General Public License v2
37 +
38 +EAPI=6
39 +
40 +inherit toolchain-funcs
41 +
42 +DESCRIPTION="A Markdown-to HTML translator written in C"
43 +HOMEPAGE="http://www.pell.portland.or.us/~orc/Code/discount/"
44 +SRC_URI="http://www.pell.portland.or.us/~orc/Code/${PN}/${P}.tar.bz2"
45 +
46 +LICENSE="BSD"
47 +SLOT="0"
48 +KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86"
49 +IUSE="minimal test"
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 + # Add LDFLAGS and CPPFLAGS hackily.
65 + sed -i \
66 + -e 's/^CC[ \t]*=.*/& $(CPPFLAGS)/' \
67 + -e 's/^LFLAGS[ \t]*=.*/& $(LDFLAGS)/' \
68 + Makefile.in || die "Cannot fix LDFLAGS and CPPFLAGS"
69 +}
70 +
71 +src_configure() {
72 + local configure_call=(
73 + ./configure.sh
74 + --libdir="${EPREFIX}"usr/"$(get_libdir)"
75 + --prefix="${EPREFIX}"usr
76 + --mandir="${EPREFIX}"usr/share/man
77 + --shared
78 + --pkg-config
79 + $(usex minimal '' --enable-all-features)
80 + # Enable deterministic HTML generation behavior. Otherwise, will
81 + # actually call rand() as part of its serialization code...
82 + --debian-glitch
83 + )
84 + einfo "Running ${configure_call[@]}"
85 + CC="$(tc-getCC)" \
86 + "${configure_call[@]}" || die
87 +}
88 +
89 +src_install() {
90 + emake \
91 + DESTDIR="${D}" \
92 + $(usex minimal install install.everything) \
93 + SAMPLE_PFX="${PN}-"
94 +
95 + insinto /usr/$(get_libdir)/pkgconfig
96 + doins libmarkdown.pc
97 +}
98 +
99 +pkg_postinst() {
100 + if ! use minimal; then
101 + elog 'Sample binaries with overly-generic names have been'
102 + elog "prefixed with \"${PN}-\"."
103 + fi
104 +}