1
0
Fork 0

Add app-text/pandoc-bin

This commit is contained in:
Stefan Reimer 2020-06-29 11:57:38 +01:00
parent a3c3aedf17
commit 08b5b55722
2 changed files with 58 additions and 0 deletions

View File

@ -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

View File

@ -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/.*"