From a5840590c4c392fe59f4ac626a192cfecc2d1501 Mon Sep 17 00:00:00 2001 From: Anton Schubert Date: Tue, 9 Feb 2021 20:48:44 +0100 Subject: [PATCH] app-text/scdoc: add fixed scdoc ebuild Package-Manager: Portage-3.0.12, Repoman-3.0.2 --- app-text/scdoc/Manifest | 2 ++ app-text/scdoc/metadata.xml | 15 +++++++++++ app-text/scdoc/scdoc-9999.ebuild | 44 ++++++++++++++++++++++++++++++++ 3 files changed, 61 insertions(+) create mode 100644 app-text/scdoc/Manifest create mode 100644 app-text/scdoc/metadata.xml create mode 100644 app-text/scdoc/scdoc-9999.ebuild diff --git a/app-text/scdoc/Manifest b/app-text/scdoc/Manifest new file mode 100644 index 0000000..576bd71 --- /dev/null +++ b/app-text/scdoc/Manifest @@ -0,0 +1,2 @@ +EBUILD scdoc-9999.ebuild 1173 BLAKE2B 873f1def0a103e8c431fad6ffbf902a9e97ed543d29f738e0ff4799be7f5d49449f50b30e4f37ae5310f7ede07e15f76a395f553756f1d048b3f36ee8aff0b4c SHA512 4ac9391cd7564179179a1951469c73e798c12a6ad3b82c72019d64e6364c943c02251b43344d5e7a1f4e9f1115c941b2e5b89065be25d00002cf5b6dc8fe3af1 +MISC metadata.xml 422 BLAKE2B ec662d4bd34390be05318e8816524f206decf6e3cf97ee6e132405a7a2bdd33839b5b82e8083bd3fedc8d390871275ecc9490252cdeb883994e35d511cb8b7d4 SHA512 09dc27076a9ffd2c3f94b40b9df84cbb02317dee7235cb0ce358890c93667dacfc3a7adfe09cf949b8f63970983a7ed7ff654a9ec290b58c6f4ac6b05f9579e1 diff --git a/app-text/scdoc/metadata.xml b/app-text/scdoc/metadata.xml new file mode 100644 index 0000000..36dc13c --- /dev/null +++ b/app-text/scdoc/metadata.xml @@ -0,0 +1,15 @@ + + + + + gentoo@aisha.cc + Aisha Tammy + + + bman@gentoo.org + Aaron Bauman + + + swaywm/sway + + diff --git a/app-text/scdoc/scdoc-9999.ebuild b/app-text/scdoc/scdoc-9999.ebuild new file mode 100644 index 0000000..d162fe2 --- /dev/null +++ b/app-text/scdoc/scdoc-9999.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +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 ~arm64 ~ppc64 ~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 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 +}