summaryrefslogtreecommitdiff
blob: aa50c350c622f245045449d44c403541d6cd3140 (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
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit eutils versionator

MY_PN="PgcEdit"
MY_P="${MY_PN}_source_$(get_after_major_version)"
MY_PDOC="${MY_PN}_Manual_html"
S="${WORKDIR}"

DESCRIPTION="DVD IFO and Menu editor"
SRC_URI="http://download.videohelp.com/r0lZ/${PN}/versions/${MY_P}.zip
	http://download.videohelp.com/r0lZ/${PN}/versions/${MY_PDOC}.zip"
HOMEPAGE="http://download.videohelp.com/r0lZ/pgcedit/index.html"

SLOT="0"
LICENSE="GPL-2"
KEYWORDS="~x86"
IUSE="video"

RDEPEND=">=dev-lang/tcl-8.4
	>=dev-lang/tk-8.4
	video? ( app-emulation/wine )"

DEPEND="app-arch/unzip"

src_compile() {
	einfo "Nothing to compile!"
}

src_install() {
	edos2unix ${MY_PN}.tcl
	exeinto /usr/share/${PN}
	doexe ${MY_PN}_main.tcl ${MY_PN}.tcl
	make_wrapper ${PN} /usr/share/${PN}/${MY_PN}.tcl /usr/share/${PN}

	keepdir /usr/share/${PN}/plugins
	insinto /usr/share/${PN}
	doins -r bin doc lib

	doicon "${FILESDIR}"/${PN}.png
	make_desktop_entry ${PN} ${MY_PN} ${PN} "AudioVideo;Video;"

	dodoc HISTORY.txt TODO.txt
}