summaryrefslogtreecommitdiff
blob: 9e768fa5e9f9cae2d744233681e502eb1e6c7777 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

inherit edos2unix toolchain-funcs

DESCRIPTION="A program to split non-css dvd vobs into individual chapters"
HOMEPAGE="http://www.maven.de/code"
SRC_URI="http://files.digital-digest.com/downloads/files/encode/vStrip_${PV/./}.zip"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"

BDEPEND="app-arch/unzip"

S="${WORKDIR}/${PN}"

src_prepare() {
	eapply "${FILESDIR}"/${P}-gentoo.patch
	edos2unix *.c *.h

	local f
	for f in *.c *.h ; do
		echo >> "${f}" || die
	done

	default
}

src_compile() {
	emake CFLAGS="${CFLAGS} -D__UNIX__" CC="$(tc-getCC)"
}

src_install() {
	dobin vstrip
}