From db4347d3f257ea7382dc306d3c9f606794037d85 Mon Sep 17 00:00:00 2001 From: "Michael R. Lawrence" Date: Mon, 10 May 2021 20:43:05 +0000 Subject: [PATCH] Master --- .../pandoc-bin/pandoc-bin-2.11.0.2.ebuild | 7 ++- app-text/pandoc-bin/pandoc-bin-2.13.ebuild | 46 +++++++++++++++++++ 2 files changed, 52 insertions(+), 1 deletion(-) create mode 100644 app-text/pandoc-bin/pandoc-bin-2.13.ebuild diff --git a/app-text/pandoc-bin/pandoc-bin-2.11.0.2.ebuild b/app-text/pandoc-bin/pandoc-bin-2.11.0.2.ebuild index fec039d..bfd38b7 100644 --- a/app-text/pandoc-bin/pandoc-bin-2.11.0.2.ebuild +++ b/app-text/pandoc-bin/pandoc-bin-2.11.0.2.ebuild @@ -8,7 +8,12 @@ MY_P="${MY_PN}-${PV}" DESCRIPTION="Universal markup converter" HOMEPAGE="https://pandoc.org" -SRC_URI="https://github.com/jgm/${MY_PN}/releases/download/${PV}/${MY_P}-linux-amd64.tar.gz" + +BASE_URI="https://github.com/jgm/${MY_PN}/releases/download/" + +SRC_URI="amd64? ( ${BASE_URI/${PV}/${MY_P}-linux-amd64.tar.gz} ) + arm64? ( ${BASE_URI${PV}/${MY_P}-linux-arm64.tar.gz} )" + #https://github.com/jgm/pandoc/releases/download/2.13/pandoc-2.13-linux-arm64.tar.gz RESTRICT="mirror bindist" LICENSE="GPL-2" diff --git a/app-text/pandoc-bin/pandoc-bin-2.13.ebuild b/app-text/pandoc-bin/pandoc-bin-2.13.ebuild new file mode 100644 index 0000000..bfd38b7 --- /dev/null +++ b/app-text/pandoc-bin/pandoc-bin-2.13.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +MY_PN="${PN//-bin/}" +MY_P="${MY_PN}-${PV}" + +DESCRIPTION="Universal markup converter" +HOMEPAGE="https://pandoc.org" + +BASE_URI="https://github.com/jgm/${MY_PN}/releases/download/" + +SRC_URI="amd64? ( ${BASE_URI/${PV}/${MY_P}-linux-amd64.tar.gz} ) + arm64? ( ${BASE_URI${PV}/${MY_P}-linux-arm64.tar.gz} )" + #https://github.com/jgm/pandoc/releases/download/2.13/pandoc-2.13-linux-arm64.tar.gz + +RESTRICT="mirror bindist" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="-* ~amd64" + +RDEPEND=" + !app-text/${MY_PN} +" + +S="${WORKDIR}/${MY_P}" + +QA_PRESTRIPPED=" + usr/bin/${MY_PN} +" + +src_unpack() { + default + + # manpages are gzipped + find . -name "*.gz" | xargs gunzip +} + +src_install() { + cd "${S}/bin" || die + dobin "${MY_PN}" + + cd "${S}/share/man/man1" || die + doman "${MY_PN}.1" +}