From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 97C7615808B for ; Sun, 18 Feb 2024 05:37:41 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5AC37E29FF; Sun, 18 Feb 2024 05:37:40 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 3B49CE29FF for ; Sun, 18 Feb 2024 05:37:40 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 3C9A7343015 for ; Sun, 18 Feb 2024 05:37:39 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id CF2B81160 for ; Sun, 18 Feb 2024 05:37:36 +0000 (UTC) From: "Arthur Zamarin" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Arthur Zamarin" Message-ID: <1708234641.1e8f05ce722de4882170e429a4decb1b560b11f3.arthurzam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-text/scdoc/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-text/scdoc/Manifest app-text/scdoc/scdoc-1.11.3.ebuild X-VCS-Directories: app-text/scdoc/ X-VCS-Committer: arthurzam X-VCS-Committer-Name: Arthur Zamarin X-VCS-Revision: 1e8f05ce722de4882170e429a4decb1b560b11f3 X-VCS-Branch: master Date: Sun, 18 Feb 2024 05:37:36 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 794cce26-3cc5-4a16-975e-b2e7e299f3a0 X-Archives-Hash: 535c8b9e4d03aabcf4788adad9c4fa46 commit: 1e8f05ce722de4882170e429a4decb1b560b11f3 Author: Arthur Zamarin gentoo org> AuthorDate: Sun Feb 18 05:30:41 2024 +0000 Commit: Arthur Zamarin gentoo org> CommitDate: Sun Feb 18 05:37:21 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1e8f05ce app-text/scdoc: add 1.11.3 Signed-off-by: Arthur Zamarin gentoo.org> app-text/scdoc/Manifest | 1 + app-text/scdoc/scdoc-1.11.3.ebuild | 45 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 46 insertions(+) diff --git a/app-text/scdoc/Manifest b/app-text/scdoc/Manifest index e5b998c01dd3..689c8571bd86 100644 --- a/app-text/scdoc/Manifest +++ b/app-text/scdoc/Manifest @@ -1 +1,2 @@ DIST scdoc-1.11.2.tar.gz 12746 BLAKE2B f4cb2c400103c1f2247a2bee79dca9ae5c50b8397c65edbdf4d70265a4596f85e0c47aab014699c4d63929b258db8ae3ff6728a9b95f212be9db1fa657e5b93a SHA512 3fbf1a74b222dd88410636124e4b6ca73f7e77f67d512cf430a878fefcaa5c6c13a1e9f6c0c9654de15353f94bb1bd528665acebc2293bebb325501d1eb6cda3 +DIST scdoc-1.11.3.tar.gz 12768 BLAKE2B c39ed51f9279aa8a08bbd99a3d3780ef37654a37f687c7de340266d9c7a6edceb8f6824baaa34c756440d45bd51611ab28f7f2e42ea632b943f6018d6e5f5a04 SHA512 fbecc505b44c396890c53c05183d34336160dbd02993ee120421fc6e2a3ec78ba349747e8acfe97af956a0081c923309290ff97fb7babafbc3ca8addc9ec92f9 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 +}