* [gentoo-commits] repo/gentoo:master commit in: media-video/subtitleripper/
@ 2019-11-09 19:33 Michał Górny
0 siblings, 0 replies; only message in thread
From: Michał Górny @ 2019-11-09 19:33 UTC (permalink / raw
To: gentoo-commits
commit: b0dc15366b6071842dc7a73e94304a7aa705c5ad
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat Nov 9 19:27:07 2019 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Nov 9 19:33:51 2019 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b0dc1536
media-video/subtitleripper: Bump to EAPI 7
Bug: https://bugs.gentoo.org/697264
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
.../subtitleripper/subtitleripper-0.3.4-r4.ebuild | 41 +++++++++++++---------
1 file changed, 24 insertions(+), 17 deletions(-)
diff --git a/media-video/subtitleripper/subtitleripper-0.3.4-r4.ebuild b/media-video/subtitleripper/subtitleripper-0.3.4-r4.ebuild
index 226c2b9531a..e547faecaf7 100644
--- a/media-video/subtitleripper/subtitleripper-0.3.4-r4.ebuild
+++ b/media-video/subtitleripper/subtitleripper-0.3.4-r4.ebuild
@@ -1,19 +1,21 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=0
+EAPI=7
-inherit versionator eutils toolchain-funcs
+inherit toolchain-funcs
-MY_PV="$(replace_version_separator 2 "-")"
+MY_PV="$(ver_rs 2 "-")"
DESCRIPTION="DVD Subtitle Ripper for Linux"
HOMEPAGE="http://subtitleripper.sourceforge.net/"
-LICENSE="GPL-2"
-KEYWORDS="amd64 ppc ppc64 x86"
SRC_URI="mirror://sourceforge/${PN}/${PN}-${MY_PV}.tgz"
+
+LICENSE="GPL-2"
SLOT="0"
+KEYWORDS="amd64 ppc ppc64 x86"
IUSE=""
+
RDEPEND=">=media-libs/netpbm-10.41.0
media-libs/libpng
sys-libs/zlib
@@ -22,23 +24,28 @@ DEPEND="${RDEPEND}"
S="${WORKDIR}/${PN}"
-src_unpack() {
- unpack ${A}
- cd "${S}"
+PATCHES=(
+ "${FILESDIR}"/${P}-linkingorder.patch
+ "${FILESDIR}"/${P}-libpng.patch
+ "${FILESDIR}"/${P}-glibc210.patch
+ "${FILESDIR}"/${P}-respect-ldflags.patch
+)
+
+src_prepare() {
# PPM library is libnetppm
- sed -i -e "s:ppm:netpbm:g" Makefile
+ sed -i -e "s:ppm:netpbm:g" Makefile || die
# fix for bug 210435
- sed -i -e "s:#include <ppm.h>:#include <netpbm/ppm.h>:g" spudec.c subtitle2pgm.c
+ sed -i -e "s:#include <ppm.h>:#include <netpbm/ppm.h>:g" \
+ spudec.c subtitle2pgm.c || die
# we will install the gocrfilters into /usr/share/subtitleripper
- sed -i -e 's:~/sourceforge/subtitleripper/src/:/usr/share/subtitleripper:' pgm2txt
+ sed -i -e 's:~/sourceforge/subtitleripper/src/:/usr/share/subtitleripper:' \
+ pgm2txt || die
+
+ default
- epatch "${FILESDIR}/${P}-linkingorder.patch"
- epatch "${FILESDIR}"/${P}-libpng.patch
- epatch "${FILESDIR}"/${P}-glibc210.patch
- # respect CC and LDFLAGS
+ # respect CC
sed -i -e "s:CC =.*:CC = $(tc-getCC):" \
-e "/^CFLAGS/s: = :& ${CFLAGS} :" "${S}"/Makefile
- epatch "${FILESDIR}"/${P}-respect-ldflags.patch
}
src_install () {
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2019-11-10 10:30 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-11-09 19:33 [gentoo-commits] repo/gentoo:master commit in: media-video/subtitleripper/ Michał Górny
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox