From 08f1ae6b8bd1202a10c5f0d07ee0adc846e0308c Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sun, 18 Feb 2024 11:39:03 +0000 Subject: gentoo auto-resync : 18:02:2024 - 11:39:02 --- app-text/scdoc/Manifest | 2 ++ app-text/scdoc/scdoc-1.11.3.ebuild | 45 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 47 insertions(+) create mode 100644 app-text/scdoc/scdoc-1.11.3.ebuild (limited to 'app-text/scdoc') diff --git a/app-text/scdoc/Manifest b/app-text/scdoc/Manifest index 7428498c2be8..e0f960509369 100644 --- a/app-text/scdoc/Manifest +++ b/app-text/scdoc/Manifest @@ -1,4 +1,6 @@ DIST scdoc-1.11.2.tar.gz 12746 BLAKE2B f4cb2c400103c1f2247a2bee79dca9ae5c50b8397c65edbdf4d70265a4596f85e0c47aab014699c4d63929b258db8ae3ff6728a9b95f212be9db1fa657e5b93a SHA512 3fbf1a74b222dd88410636124e4b6ca73f7e77f67d512cf430a878fefcaa5c6c13a1e9f6c0c9654de15353f94bb1bd528665acebc2293bebb325501d1eb6cda3 +DIST scdoc-1.11.3.tar.gz 12768 BLAKE2B c39ed51f9279aa8a08bbd99a3d3780ef37654a37f687c7de340266d9c7a6edceb8f6824baaa34c756440d45bd51611ab28f7f2e42ea632b943f6018d6e5f5a04 SHA512 fbecc505b44c396890c53c05183d34336160dbd02993ee120421fc6e2a3ec78ba349747e8acfe97af956a0081c923309290ff97fb7babafbc3ca8addc9ec92f9 EBUILD scdoc-1.11.2-r1.ebuild 1237 BLAKE2B 201356c1c9e675cd798f91341d8d7c9614838757de74daca7f523e7d1aa206d874436edfcd11e8f423dc29244939361b505c8fc232cbdeee2bf90c58147f404f SHA512 000f32000431d70ecafaa3a86eb87f41abfbdf666ed21114a7b47ec378ff9d35e88decd1650d6bbb34e4ade7540243a3969c4e1960b2317fcb78f01e713f1513 +EBUILD scdoc-1.11.3.ebuild 1242 BLAKE2B 28c49807b1aedcc5bae868c75a7811079b254011d84377e61961ab452af2d2ee8a9f217b38f605c0f7d8bf614a64c23f82efa7a227e1e4f1ea30e333d75e5012 SHA512 66b8f0034d871cdb70df78625d6e77cb7c4b53ea8868e366b6804683a5b01b4427b2cf055da7c6294ac1ff55c53daf244133be66152753ce7f32585e5c43c31d EBUILD scdoc-9999.ebuild 1216 BLAKE2B a1dc6844716ea3a4151f61dd4ef433f818447b1ca27e0ad850394eddc1daacdee6b5a6cd47a96aad3a4dc6cb33ca66e87efe6bddfb89956a1cb739e1d665fcb2 SHA512 f0a8ef320dd9a975ce32dbdd3fc12428095ae7a6d36ddbe4e90ccf63d96e989860d54567677cc34f1d23186fbb1bca12e5739c4623f4df7ad162aba9b15fb2b9 MISC metadata.xml 334 BLAKE2B b4dfa2cd4f88781ab650e1f2514c98d4ff7122703b2a5fdf4ea68a6deab002222fac5c17f80b4f11260b2c22853f98846b2064b38d4c8297fdce9dda5030569d SHA512 e4161c4d0c51306cd1e93ff43390534f1bb4f5393a77b360762619884a8b057a75e1da784cf5f28c092c035f1681469b38b2f0871c70c027fad9b1902fe28c9c diff --git a/app-text/scdoc/scdoc-1.11.3.ebuild b/app-text/scdoc/scdoc-1.11.3.ebuild new file mode 100644 index 000000000000..f0a40d5475ab --- /dev/null +++ b/app-text/scdoc/scdoc-1.11.3.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2024 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 ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv ~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 +} -- cgit v1.2.3