You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/media-video/pgcedit/pgcedit-0.8.6.ebuild

55 lines
1.2 KiB

# 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
}