src_prepare-overlay/app-text/pandoc-bin/pandoc-bin-2.11.0.2.ebuild
Marcin Woźniak 3fa59f13ab
app-text/pandoc-bin: Deleted old version and fix issue with ${S}, manifests
Signed-off-by: Marcin Woźniak <y0rune@aol.com>

Hi!
I tried to update the pandoc but I had the problem:

```bash
[ 23:24:38 ] PREPARE for version 2.13 of pandoc-bin from app-text
 * ERROR: app-text/pandoc-bin-2.13::src_prepare-overlay failed (prepare phase):
 *   The source directory '/var/tmp/portage/app-text/pandoc-bin-2.13/work/pandoc-2.13' doesn't exist
 *
 * Call stack:
 *            ebuild.sh, line  762:  Called __ebuild_main 'prepare'
 *   phase-functions.sh, line 1050:  Called __dyn_prepare
 *   phase-functions.sh, line  384:  Called die
 * The specific snippet of code:
 *              die "The source directory '${S}' doesn't exist"
```

So I fix the issue. I tested it in the separated Gentoo.
2021-05-12 00:17:02 +02:00

43 lines
691 B
Bash

# 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"
SRC_URI="https://github.com/jgm/${MY_PN}/releases/download/${PV}/${MY_P}-linux-amd64.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"
}