mirror of
https://github.com/flatcar/scripts.git
synced 2025-10-20 11:51:06 +02:00
app-text/scdoc: Add from Gentoo
It's from Gentoo commit 1d141590a5b609aa0258c3b494608f70cf7b417c. Signed-off-by: Krzesimir Nowak <knowak@microsoft.com>
This commit is contained in:
parent
e2cbb7f088
commit
156b762218
1
sdk_container/src/third_party/portage-stable/app-text/scdoc/Manifest
vendored
Normal file
1
sdk_container/src/third_party/portage-stable/app-text/scdoc/Manifest
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
DIST scdoc-1.11.3.tar.gz 12768 BLAKE2B c39ed51f9279aa8a08bbd99a3d3780ef37654a37f687c7de340266d9c7a6edceb8f6824baaa34c756440d45bd51611ab28f7f2e42ea632b943f6018d6e5f5a04 SHA512 fbecc505b44c396890c53c05183d34336160dbd02993ee120421fc6e2a3ec78ba349747e8acfe97af956a0081c923309290ff97fb7babafbc3ca8addc9ec92f9
|
11
sdk_container/src/third_party/portage-stable/app-text/scdoc/metadata.xml
vendored
Normal file
11
sdk_container/src/third_party/portage-stable/app-text/scdoc/metadata.xml
vendored
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||||
|
<pkgmetadata>
|
||||||
|
<maintainer type="person">
|
||||||
|
<email>arthurzam@gentoo.org</email>
|
||||||
|
<name>Arthur Zamarin</name>
|
||||||
|
</maintainer>
|
||||||
|
<upstream>
|
||||||
|
<remote-id type="sourcehut">~sircmpwn/scdoc</remote-id>
|
||||||
|
</upstream>
|
||||||
|
</pkgmetadata>
|
45
sdk_container/src/third_party/portage-stable/app-text/scdoc/scdoc-1.11.3.ebuild
vendored
Normal file
45
sdk_container/src/third_party/portage-stable/app-text/scdoc/scdoc-1.11.3.ebuild
vendored
Normal file
@ -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
|
||||||
|
}
|
45
sdk_container/src/third_party/portage-stable/app-text/scdoc/scdoc-9999.ebuild
vendored
Normal file
45
sdk_container/src/third_party/portage-stable/app-text/scdoc/scdoc-9999.ebuild
vendored
Normal file
@ -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
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user