From 156b7622188b075bca1cb350f2dc4fc153dcc9a6 Mon Sep 17 00:00:00 2001 From: Krzesimir Nowak Date: Mon, 1 Sep 2025 14:03:58 +0200 Subject: [PATCH] app-text/scdoc: Add from Gentoo It's from Gentoo commit 1d141590a5b609aa0258c3b494608f70cf7b417c. Signed-off-by: Krzesimir Nowak --- .../portage-stable/app-text/scdoc/Manifest | 1 + .../app-text/scdoc/metadata.xml | 11 +++++ .../app-text/scdoc/scdoc-1.11.3.ebuild | 45 +++++++++++++++++++ .../app-text/scdoc/scdoc-9999.ebuild | 45 +++++++++++++++++++ 4 files changed, 102 insertions(+) create mode 100644 sdk_container/src/third_party/portage-stable/app-text/scdoc/Manifest create mode 100644 sdk_container/src/third_party/portage-stable/app-text/scdoc/metadata.xml create mode 100644 sdk_container/src/third_party/portage-stable/app-text/scdoc/scdoc-1.11.3.ebuild create mode 100644 sdk_container/src/third_party/portage-stable/app-text/scdoc/scdoc-9999.ebuild diff --git a/sdk_container/src/third_party/portage-stable/app-text/scdoc/Manifest b/sdk_container/src/third_party/portage-stable/app-text/scdoc/Manifest new file mode 100644 index 0000000000..c0a6b67afc --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/app-text/scdoc/Manifest @@ -0,0 +1 @@ +DIST scdoc-1.11.3.tar.gz 12768 BLAKE2B c39ed51f9279aa8a08bbd99a3d3780ef37654a37f687c7de340266d9c7a6edceb8f6824baaa34c756440d45bd51611ab28f7f2e42ea632b943f6018d6e5f5a04 SHA512 fbecc505b44c396890c53c05183d34336160dbd02993ee120421fc6e2a3ec78ba349747e8acfe97af956a0081c923309290ff97fb7babafbc3ca8addc9ec92f9 diff --git a/sdk_container/src/third_party/portage-stable/app-text/scdoc/metadata.xml b/sdk_container/src/third_party/portage-stable/app-text/scdoc/metadata.xml new file mode 100644 index 0000000000..4160f5fe1f --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/app-text/scdoc/metadata.xml @@ -0,0 +1,11 @@ + + + + + arthurzam@gentoo.org + Arthur Zamarin + + + ~sircmpwn/scdoc + + diff --git a/sdk_container/src/third_party/portage-stable/app-text/scdoc/scdoc-1.11.3.ebuild b/sdk_container/src/third_party/portage-stable/app-text/scdoc/scdoc-1.11.3.ebuild new file mode 100644 index 0000000000..6e51ab50d4 --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/app-text/scdoc/scdoc-1.11.3.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit toolchain-funcs + +DESCRIPTION="Standalone tool for generating man pages with a simple syntax" +HOMEPAGE="https://git.sr.ht/~sircmpwn/scdoc" + +if [[ ${PV} == 9999 ]]; then + EGIT_REPO_URI="https://git.sr.ht/~sircmpwn/scdoc" + inherit git-r3 +else + SRC_URI="https://git.sr.ht/~sircmpwn/scdoc/archive/${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ~mips ppc ppc64 ~riscv ~s390 ~sparc x86" +fi + +LICENSE="MIT" +SLOT="0" + +src_prepare() { + default + + sed -e 's/-Werror//' \ + -i Makefile || die 'Failed to patch Makefile' +} + +src_compile() { + local MY_HS="./scdoc" + if tc-is-cross-compiler; then + tc-export_build_env + MY_HS="./hostscdoc" + emake scdoc HOST_SCDOC="./hostscdoc" OUTDIR="${S}/.build.host" CC="$(tc-getBUILD_CC)" \ + CFLAGS="${BUILD_CFLAGS} -DVERSION='\"${PV}\"'" LDFLAGS="${BUILD_LDFLAGS}" + mv scdoc hostscdoc || die 'Failed to rename host scdoc' + fi + + emake CC="$(tc-getCC)" LDFLAGS="${LDFLAGS}" PREFIX="${EPREFIX}/usr" HOST_SCDOC="${MY_HS}" +} + +src_install() { + emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" HOST_SCDOC="${MY_HS}" \ + PCDIR="${EPREFIX}/usr/$(get_libdir)/pkgconfig" install +} diff --git a/sdk_container/src/third_party/portage-stable/app-text/scdoc/scdoc-9999.ebuild b/sdk_container/src/third_party/portage-stable/app-text/scdoc/scdoc-9999.ebuild new file mode 100644 index 0000000000..938aa8493a --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/app-text/scdoc/scdoc-9999.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit toolchain-funcs + +DESCRIPTION="Standalone tool for generating man pages with a simple syntax" +HOMEPAGE="https://git.sr.ht/~sircmpwn/scdoc" + +if [[ ${PV} == 9999 ]]; then + EGIT_REPO_URI="https://git.sr.ht/~sircmpwn/scdoc" + inherit git-r3 +else + SRC_URI="https://git.sr.ht/~sircmpwn/scdoc/archive/${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~x86" +fi + +LICENSE="MIT" +SLOT="0" + +src_prepare() { + default + + sed -e 's/-Werror//' \ + -i Makefile || die 'Failed to patch Makefile' +} + +src_compile() { + local MY_HS="./scdoc" + if tc-is-cross-compiler; then + tc-export_build_env + MY_HS="./hostscdoc" + emake scdoc HOST_SCDOC="./hostscdoc" OUTDIR="${S}/.build.host" CC="$(tc-getBUILD_CC)" \ + CFLAGS="${BUILD_CFLAGS} -DVERSION='\"${PV}\"'" LDFLAGS="${BUILD_LDFLAGS}" + mv scdoc hostscdoc || die 'Failed to rename host scdoc' + fi + + emake CC="$(tc-getCC)" LDFLAGS="${LDFLAGS}" PREFIX="${EPREFIX}/usr" HOST_SCDOC="${MY_HS}" +} + +src_install() { + emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" HOST_SCDOC="${MY_HS}" \ + PCDIR="${EPREFIX}/usr/$(get_libdir)/pkgconfig" install +}