From 08b5b557222de2e7eacce09605c60f012b4b0f4b Mon Sep 17 00:00:00 2001 From: Stefan Reimer Date: Mon, 29 Jun 2020 11:57:38 +0100 Subject: [PATCH] Add app-text/pandoc-bin --- app-text/pandoc-bin/Manifest | 2 + app-text/pandoc-bin/pandoc-bin-2.9.2.1.ebuild | 56 +++++++++++++++++++ 2 files changed, 58 insertions(+) create mode 100644 app-text/pandoc-bin/Manifest create mode 100644 app-text/pandoc-bin/pandoc-bin-2.9.2.1.ebuild diff --git a/app-text/pandoc-bin/Manifest b/app-text/pandoc-bin/Manifest new file mode 100644 index 0000000..87dd329 --- /dev/null +++ b/app-text/pandoc-bin/Manifest @@ -0,0 +1,2 @@ +DIST pandoc-2.9.2.1-linux-amd64.tar.gz 23777856 BLAKE2B 4c8130c62672dbae1d02640358a832fd03667a879e56fed474463ef1feff7dfc4ce553278444fb38fed6314eb27349b796a5e73f8702596ea895998ab54290ee SHA512 37f791e766b4e91824814241709243436ba25447bf908626c1d588ba098161bb6c821a6aa4abd2096ae70a8a4207dc862d090abce2f0d64cf582421d6f0f96c6 +EBUILD pandoc-bin-2.9.2.1.ebuild 912 BLAKE2B fef926f3ad873c9c2bc6ede5a51f7b264421e5c6b3de78fa9e2bda8688eb47242d60394d2494e6172ca9b545f1f337e2c1a4bee871688f9eac292f9cb7ee4418 SHA512 75ea38f4ded6cfe3115f0f7363c269be2419937aa433519429e81d39a414e5967eb94dacfc1b4e77b48fba5ab3b0626d2b7b606f23ff77bf210df23314312b3f diff --git a/app-text/pandoc-bin/pandoc-bin-2.9.2.1.ebuild b/app-text/pandoc-bin/pandoc-bin-2.9.2.1.ebuild new file mode 100644 index 0000000..e020f5f --- /dev/null +++ b/app-text/pandoc-bin/pandoc-bin-2.9.2.1.ebuild @@ -0,0 +1,56 @@ +# Copyright 2020 +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PN_NB="${PN//-bin/}" +P_NB="${PN_NB}-${PV}" + +DESCRIPTION="Universal markup converter" +HOMEPAGE=( + "https://pandoc.org" + "https://github.com/jgm/pandoc" +) +LICENSE="GPL-2" + +SLOT="0" +SRC_URI=( + "https://github.com/jgm/${PN_NB}/releases/download/${PV}/${P_NB}-linux-amd64.tar.gz" +) + +KEYWORDS="-* amd64" +IUSE=( citeproc ) + +RDEPEND=( + "dev-libs/gmp:*" + "sys-libs/zlib:*" + + "!app-text/${PN_NB}" + "citeproc? ( !dev-haskell/${PN_NB}-citeproc )" +) + +RESTRICT+=" primaryuri" + +S="${WORKDIR}/${P_NB}" + +src_unpack() +{ + default + + # docs/manpages are gzipped + find . -name "*.gz" | xargs gunzip + assert +} + +src_install() +{ + cd "${S}/bin" || die + dobin "${PN_NB}" + use citeproc && dobin "${PN_NB}-citeproc" + + cd "${S}/share/man/man1" || die + doman "${PN_NB}.1" + use citeproc && doman "${PN_NB}-citeproc.1" +} + +QA_PRESTRIPPED="usr/bin/.*"