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.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id CB615138334 for ; Thu, 7 Mar 2019 00:37:58 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 91EA0E094A; Thu, 7 Mar 2019 00:37:57 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 67593E094A for ; Thu, 7 Mar 2019 00:37:57 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 09604335D04 for ; Thu, 7 Mar 2019 00:37:54 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id F1BA0553 for ; Thu, 7 Mar 2019 00:37:51 +0000 (UTC) From: "Aaron Bauman" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Aaron Bauman" Message-ID: <1551919056.8cb74167f164fa3f69aeefce4af2026f733f6219.bman@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-text/scdoc/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-text/scdoc/scdoc-1.9.3-r1.ebuild X-VCS-Directories: app-text/scdoc/ X-VCS-Committer: bman X-VCS-Committer-Name: Aaron Bauman X-VCS-Revision: 8cb74167f164fa3f69aeefce4af2026f733f6219 X-VCS-Branch: master Date: Thu, 7 Mar 2019 00:37:51 +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: c08bff2a-16cb-4995-84c2-884f595465be X-Archives-Hash: 3a24c968834fb866e37274ecfa6ed6f2 commit: 8cb74167f164fa3f69aeefce4af2026f733f6219 Author: Aaron Bauman gentoo org> AuthorDate: Thu Mar 7 00:37:01 2019 +0000 Commit: Aaron Bauman gentoo org> CommitDate: Thu Mar 7 00:37:36 2019 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8cb74167 app-text/scdoc: fix pkgconfig install path Signed-off-by: Aaron Bauman gentoo.org> Bug: https://bugs.gentoo.org/679228 Bug: https://bugs.gentoo.org/679508 Package-Manager: Portage-2.3.62, Repoman-2.3.12 app-text/scdoc/scdoc-1.9.3-r1.ebuild | 44 ++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/app-text/scdoc/scdoc-1.9.3-r1.ebuild b/app-text/scdoc/scdoc-1.9.3-r1.ebuild new file mode 100644 index 00000000000..119be54bf05 --- /dev/null +++ b/app-text/scdoc/scdoc-1.9.3-r1.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2019 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 ~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="${ED}/usr/$(get_libdir)/pkgconfig" install +}