1 |
commit: 41e37bc346ac1154b8242a0c567e6b01136a4904 |
2 |
Author: Marty E. Plummer <hanetzer <AT> startmail <DOT> com> |
3 |
AuthorDate: Fri Oct 19 09:46:29 2018 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Oct 22 20:23:25 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=41e37bc3 |
7 |
|
8 |
app-text/scdoc: add live ebuild |
9 |
|
10 |
Signed-off-by: Marty E. Plummer <hanetzer <AT> startmail.com> |
11 |
Package-Manager: Portage-2.3.51, Repoman-2.3.11 |
12 |
Closes: https://github.com/gentoo/gentoo/pull/10177 |
13 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
14 |
|
15 |
app-text/scdoc/scdoc-9999.ebuild | 43 ++++++++++++++++++++++++++++++++++++++++ |
16 |
1 file changed, 43 insertions(+) |
17 |
|
18 |
diff --git a/app-text/scdoc/scdoc-9999.ebuild b/app-text/scdoc/scdoc-9999.ebuild |
19 |
new file mode 100644 |
20 |
index 00000000000..3c018008f00 |
21 |
--- /dev/null |
22 |
+++ b/app-text/scdoc/scdoc-9999.ebuild |
23 |
@@ -0,0 +1,43 @@ |
24 |
+# Copyright 1999-2018 Gentoo Authors |
25 |
+# Distributed under the terms of the GNU General Public License v2 |
26 |
+ |
27 |
+EAPI=7 |
28 |
+ |
29 |
+inherit toolchain-funcs |
30 |
+ |
31 |
+DESCRIPTION="Standalone tool for generating man pages with a simple syntax" |
32 |
+HOMEPAGE="https://git.sr.ht/~sircmpwn/scdoc" |
33 |
+ |
34 |
+if [[ ${PV} == 9999 ]]; then |
35 |
+ EGIT_REPO_URI="https://git.sr.ht/~sircmpwn/scdoc" |
36 |
+ inherit git-r3 |
37 |
+else |
38 |
+ SRC_URI="https://git.sr.ht/~sircmpwn/scdoc/archive/${PV}.tar.gz -> ${P}.tar.gz" |
39 |
+ KEYWORDS="~amd64 ~x86" |
40 |
+fi |
41 |
+ |
42 |
+LICENSE="MIT" |
43 |
+SLOT="0" |
44 |
+ |
45 |
+src_prepare() { |
46 |
+ default |
47 |
+ |
48 |
+ sed -e 's/-Werror//' \ |
49 |
+ -i Makefile || die 'Failed to patch Makefile' |
50 |
+} |
51 |
+ |
52 |
+src_compile() { |
53 |
+ local MY_HS="./scdoc" |
54 |
+ if tc-is-cross-compiler; then |
55 |
+ tc-export_build_env |
56 |
+ MY_HS="./hostscdoc" |
57 |
+ emake scdoc HOST_SCDOC="./hostscdoc" OUTDIR="${S}/.build.host" CC="$(tc-getBUILD_CC)" \ |
58 |
+ CFLAGS="${BUILD_CFLAGS} -DVERSION='\"${PV}\"'" LDFLAGS="${BUILD_LDFLAGS}" |
59 |
+ mv scdoc hostscdoc || die 'Failed to rename host scdoc' |
60 |
+ fi |
61 |
+ emake LDFLAGS="${LDFLAGS}" PREFIX="${EPREFIX}/usr" HOST_SCDOC="${MY_HS}" |
62 |
+} |
63 |
+ |
64 |
+src_install() { |
65 |
+ emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" HOST_SCDOC="${MY_HS}" install |
66 |
+} |