blob: 0593f08eae4fd1c1bb3c85e084b23766ad43002e (
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI="4"
inherit eutils versionator
MY_PN="PgcEdit"
MY_P="${MY_PN}_source_$(get_after_major_version)"
MY_PDOC="${MY_PN}_Manual_html"
DESCRIPTION="DVD IFO and Menu editor"
HOMEPAGE="http://download.videohelp.com/r0lZ/pgcedit/"
SRC_URI="
http://download.videohelp.com/r0lZ/${PN}/versions/${MY_P}.zip
http://download.videohelp.com/r0lZ/${PN}/versions/${MY_PDOC}.zip
mirror://gentoo/${PN}.png"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="video"
RDEPEND="
app-cdr/cdrtools
>=dev-lang/tcl-8.4:0
>=dev-lang/tk-8.4:0
video? ( app-emulation/wine )"
DEPEND="app-arch/unzip"
S=${WORKDIR}
src_prepare() {
epatch "${FILESDIR}"/${P}-config-paths.patch
sed -i "s:@DOCDIR@:/usr/share/doc/${PF}/html:" lib/main.tcl || die
# These are only used in Windows.
rm bin/{mkisofs,pskill}.exe || die
use video || rm bin/PgcEditPreview.exe
}
src_install() {
newbin ${MY_PN}_main.tcl ${PN}
keepdir /usr/share/${PN}/plugins
insinto /usr/share/${PN}
doins -r bin lib
dohtml -r doc/*
doicon "${DISTDIR}"/${PN}.png
make_desktop_entry ${PN} ${MY_PN} ${PN} "AudioVideo;Video;"
dodoc HISTORY.txt TODO.txt
}
|