Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-text/scdoc/
Date: Tue, 03 May 2022 18:41:13
Message-Id: 1651603247.e56156ff6b5bb4c6d78661151aa44dfa6a0f2271.sam@gentoo
1 commit: e56156ff6b5bb4c6d78661151aa44dfa6a0f2271
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Tue May 3 18:39:40 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Tue May 3 18:40:47 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e56156ff
7
8 app-text/scdoc: sync live, drop 1.11.2
9
10 Signed-off-by: Sam James <sam <AT> gentoo.org>
11
12 app-text/scdoc/scdoc-1.11.2.ebuild | 45 --------------------------------------
13 app-text/scdoc/scdoc-9999.ebuild | 4 ++--
14 2 files changed, 2 insertions(+), 47 deletions(-)
15
16 diff --git a/app-text/scdoc/scdoc-1.11.2.ebuild b/app-text/scdoc/scdoc-1.11.2.ebuild
17 deleted file mode 100644
18 index b2ab9d346396..000000000000
19 --- a/app-text/scdoc/scdoc-1.11.2.ebuild
20 +++ /dev/null
21 @@ -1,45 +0,0 @@
22 -# Copyright 1999-2022 Gentoo Authors
23 -# Distributed under the terms of the GNU General Public License v2
24 -
25 -EAPI=8
26 -
27 -inherit toolchain-funcs
28 -
29 -DESCRIPTION="Standalone tool for generating man pages with a simple syntax"
30 -HOMEPAGE="https://git.sr.ht/~sircmpwn/scdoc"
31 -
32 -if [[ ${PV} == 9999 ]]; then
33 - EGIT_REPO_URI="https://git.sr.ht/~sircmpwn/scdoc"
34 - inherit git-r3
35 -else
36 - SRC_URI="https://git.sr.ht/~sircmpwn/scdoc/archive/${PV}.tar.gz -> ${P}.tar.gz"
37 - KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86"
38 -fi
39 -
40 -LICENSE="MIT"
41 -SLOT="0"
42 -
43 -src_prepare() {
44 - default
45 -
46 - sed -e 's/-Werror//' \
47 - -i Makefile || die 'Failed to patch Makefile'
48 -}
49 -
50 -src_compile() {
51 - local MY_HS="./scdoc"
52 - if tc-is-cross-compiler; then
53 - tc-export_build_env
54 - MY_HS="./hostscdoc"
55 - emake scdoc HOST_SCDOC="./hostscdoc" OUTDIR="${S}/.build.host" CC="$(tc-getBUILD_CC)" \
56 - CFLAGS="${BUILD_CFLAGS} -DVERSION='\"${PV}\"'" LDFLAGS="${BUILD_LDFLAGS}"
57 - mv scdoc hostscdoc || die 'Failed to rename host scdoc'
58 - fi
59 -
60 - emake CC="$(tc-getCC)" LDFLAGS="${LDFLAGS}" HOST_SCDOC="${MY_HS}"
61 -}
62 -
63 -src_install() {
64 - emake DESTDIR="${ED}" PREFIX="/usr" HOST_SCDOC="${MY_HS}" \
65 - PCDIR="/usr/$(get_libdir)/pkgconfig" install
66 -}
67
68 diff --git a/app-text/scdoc/scdoc-9999.ebuild b/app-text/scdoc/scdoc-9999.ebuild
69 index b2ab9d346396..c40dcd50d0fa 100644
70 --- a/app-text/scdoc/scdoc-9999.ebuild
71 +++ b/app-text/scdoc/scdoc-9999.ebuild
72 @@ -36,10 +36,10 @@ src_compile() {
73 mv scdoc hostscdoc || die 'Failed to rename host scdoc'
74 fi
75
76 - emake CC="$(tc-getCC)" LDFLAGS="${LDFLAGS}" HOST_SCDOC="${MY_HS}"
77 + emake CC="$(tc-getCC)" LDFLAGS="${LDFLAGS}" PREFIX="${EPREFIX}/usr" HOST_SCDOC="${MY_HS}"
78 }
79
80 src_install() {
81 - emake DESTDIR="${ED}" PREFIX="/usr" HOST_SCDOC="${MY_HS}" \
82 + emake DESTDIR="${ED}" PREFIX="${EPREFIX}/usr" HOST_SCDOC="${MY_HS}" \
83 PCDIR="/usr/$(get_libdir)/pkgconfig" install
84 }