Gentoo Archives: gentoo-commits

From: Matthew Thode <prometheanfire@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-text/scdoc/
Date: Sat, 09 Feb 2019 02:23:15
Message-Id: 1549678975.9a4ce501926e3f53a50091d09f29320f1a7ab370.prometheanfire@gentoo
1 commit: 9a4ce501926e3f53a50091d09f29320f1a7ab370
2 Author: Matthew Thode <prometheanfire <AT> gentoo <DOT> org>
3 AuthorDate: Sat Feb 9 01:17:35 2019 +0000
4 Commit: Matthew Thode <prometheanfire <AT> gentoo <DOT> org>
5 CommitDate: Sat Feb 9 02:22:55 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9a4ce501
7
8 app-text/scdoc: bump to 1.8.1
9
10 Package-Manager: Portage-2.3.51, Repoman-2.3.12
11 Signed-off-by: Matthew Thode <prometheanfire <AT> gentoo.org>
12
13 app-text/scdoc/Manifest | 1 +
14 app-text/scdoc/scdoc-1.8.1.ebuild | 43 +++++++++++++++++++++++++++++++++++++++
15 2 files changed, 44 insertions(+)
16
17 diff --git a/app-text/scdoc/Manifest b/app-text/scdoc/Manifest
18 index b8b67b3ba34..207de015f89 100644
19 --- a/app-text/scdoc/Manifest
20 +++ b/app-text/scdoc/Manifest
21 @@ -1,2 +1,3 @@
22 DIST scdoc-1.3.1.tar.gz 9392 BLAKE2B 609f25252f0ee864ba3500961aa1048c6490278f4861fb4494ca62365a20d0cb128e53a6397bd089bd5a37f25f7f3c080f6921f1c4f4ca7e4af729c87e1994fc SHA512 6064de8c76eb959708b32e93634223565e5d4b390069d4fcd2d87d27bb472a333c60b21de87d676eb57ff5f8ed6445d3c3bd92dfe7dd611f9886abc38e8d21d2
23 DIST scdoc-1.5.2.tar.gz 10542 BLAKE2B 07ceb1b3b57026a4e67e575f02042c2c882cdbd29712a4d3726ff39b4356bb63a35a99b21dd68fee31aad6fb2df14b1886bb2694098bc9096c5ff9e41600e7c4 SHA512 755c1c7fbae6cbeb75ca2aa2498cb3b2cf644e5118188c3e4a4636d74764b475b1818dcb5bd08ff70e017af9c1f8cb2e351db36a2cc98885724731e4247201eb
24 +DIST scdoc-1.8.1.tar.gz 11204 BLAKE2B 0427aae7aa6ad5a5258d3e00f9ea87f4faa9c3c8f9931fbed66659eaf62263c32377ee3ea68afdd7c02720f0550b1c8a9f8849245f1ec560ce86c198f6c44d0c SHA512 16845acac3d59eb878f1a41d5fa95d9910166da3ac292173506b778d29f5289a26a6529aac765c07b2e04bbc6924b32b68ff68f7491a03a1050e53251a193eaf
25
26 diff --git a/app-text/scdoc/scdoc-1.8.1.ebuild b/app-text/scdoc/scdoc-1.8.1.ebuild
27 new file mode 100644
28 index 00000000000..2e828db3f05
29 --- /dev/null
30 +++ b/app-text/scdoc/scdoc-1.8.1.ebuild
31 @@ -0,0 +1,43 @@
32 +# Copyright 1999-2019 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=7
36 +
37 +inherit toolchain-funcs
38 +
39 +DESCRIPTION="Standalone tool for generating man pages with a simple syntax"
40 +HOMEPAGE="https://git.sr.ht/~sircmpwn/scdoc"
41 +
42 +if [[ ${PV} == 9999 ]]; then
43 + EGIT_REPO_URI="https://git.sr.ht/~sircmpwn/scdoc"
44 + inherit git-r3
45 +else
46 + SRC_URI="https://git.sr.ht/~sircmpwn/scdoc/archive/${PV}.tar.gz -> ${P}.tar.gz"
47 + KEYWORDS="~amd64 ~x86"
48 +fi
49 +
50 +LICENSE="MIT"
51 +SLOT="0"
52 +
53 +src_prepare() {
54 + default
55 +
56 + sed -e 's/-Werror//' \
57 + -i Makefile || die 'Failed to patch Makefile'
58 +}
59 +
60 +src_compile() {
61 + local MY_HS="./scdoc"
62 + if tc-is-cross-compiler; then
63 + tc-export_build_env
64 + MY_HS="./hostscdoc"
65 + emake scdoc HOST_SCDOC="./hostscdoc" OUTDIR="${S}/.build.host" CC="$(tc-getBUILD_CC)" \
66 + CFLAGS="${BUILD_CFLAGS} -DVERSION='\"${PV}\"'" LDFLAGS="${BUILD_LDFLAGS}"
67 + mv scdoc hostscdoc || die 'Failed to rename host scdoc'
68 + fi
69 + emake LDFLAGS="${LDFLAGS}" PREFIX="${EPREFIX}/usr" HOST_SCDOC="${MY_HS}"
70 +}
71 +
72 +src_install() {
73 + emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" HOST_SCDOC="${MY_HS}" install
74 +}