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