summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2012-12-31 00:46:07 +0000
committerMike Frysinger <vapier@gentoo.org>2012-12-31 00:46:07 +0000
commit4685bc9316b4bc351ff7f9843c26afa367e5caba (patch)
treeddc25d991c02103cefb806eb1314ae54c1c0258b /media-video
parentVersion bump. (diff)
downloadgentoo-2-4685bc9316b4bc351ff7f9843c26afa367e5caba.tar.gz
gentoo-2-4685bc9316b4bc351ff7f9843c26afa367e5caba.tar.bz2
gentoo-2-4685bc9316b4bc351ff7f9843c26afa367e5caba.zip
Initial ebuild partially based on one in Sunrise #213937 by Juan Aguado.
(Portage version: 2.2.0_alpha144/cvs/Linux x86_64, signed Manifest commit with key FB7C4156)
Diffstat (limited to 'media-video')
-rw-r--r--media-video/pgcedit/ChangeLog10
-rw-r--r--media-video/pgcedit/files/pgcedit-0.8.6-config-paths.patch26
-rw-r--r--media-video/pgcedit/files/pgcedit.pngbin0 -> 891 bytes
-rw-r--r--media-video/pgcedit/metadata.xml10
-rw-r--r--media-video/pgcedit/pgcedit-0.8.6.ebuild51
5 files changed, 97 insertions, 0 deletions
diff --git a/media-video/pgcedit/ChangeLog b/media-video/pgcedit/ChangeLog
new file mode 100644
index 000000000000..fd81e7593219
--- /dev/null
+++ b/media-video/pgcedit/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for media-video/pgcedit
+# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/media-video/pgcedit/ChangeLog,v 1.1 2012/12/31 00:46:07 vapier Exp $
+
+*pgcedit-0.8.6 (31 Dec 2012)
+
+ 31 Dec 2012; Mike Frysinger <vapier@gentoo.org>
+ +files/pgcedit-0.8.6-config-paths.patch, +files/pgcedit.png, +metadata.xml,
+ +pgcedit-0.8.6.ebuild:
+ Initial ebuild partially based on one in Sunrise #213937 by Juan Aguado.
diff --git a/media-video/pgcedit/files/pgcedit-0.8.6-config-paths.patch b/media-video/pgcedit/files/pgcedit-0.8.6-config-paths.patch
new file mode 100644
index 000000000000..24c395522397
--- /dev/null
+++ b/media-video/pgcedit/files/pgcedit-0.8.6-config-paths.patch
@@ -0,0 +1,26 @@
+--- a/PgcEdit_main.tcl
++++ b/PgcEdit_main.tcl
+@@ -1456,9 +1456,9 @@
+ catch {file delete $::config(bindir)}
+ }
+ } else {
+- set config(apppath) [file dirname $scriptname]
+- set ::config(bindir) [file join [file dirname $scriptname] "bin"]
+- set ::config(plugindir) [file join [file dirname $scriptname] "plugins"]
++ set config(apppath) {/usr/share/pgcedit}
++ set ::config(bindir) "$config(apppath)/bin"
++ set ::config(plugindir) "$config(apppath)/plugins"
+
+ if {! [file exists $::config(tempdir)]} {
+ set ::config(tempdir) "/tmp"
+--- a/lib/main.tcl
++++ b/lib/main.tcl
+@@ -4674,7 +4674,7 @@
+ }
+
+ proc display_doc {} {
+- set rootpath [file dirname $::config(bindir)]
++ set rootpath "@DOCDIR@"
+ set filename ""
+ if {$::tcl_platform(platform) == "windows"} {
+ if {[file exists [file join $rootpath "PgcEdit_Manual.chm"]]} {
diff --git a/media-video/pgcedit/files/pgcedit.png b/media-video/pgcedit/files/pgcedit.png
new file mode 100644
index 000000000000..a4c3925f15e6
--- /dev/null
+++ b/media-video/pgcedit/files/pgcedit.png
Binary files differ
diff --git a/media-video/pgcedit/metadata.xml b/media-video/pgcedit/metadata.xml
new file mode 100644
index 000000000000..b290225f8396
--- /dev/null
+++ b/media-video/pgcedit/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>maintainer-needed@gentoo.org</email>
+ </maintainer>
+ <use>
+ <flag name='video'>Add support for video preview</flag>
+ </use>
+</pkgmetadata>
diff --git a/media-video/pgcedit/pgcedit-0.8.6.ebuild b/media-video/pgcedit/pgcedit-0.8.6.ebuild
new file mode 100644
index 000000000000..eb145b0a2255
--- /dev/null
+++ b/media-video/pgcedit/pgcedit-0.8.6.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-video/pgcedit/pgcedit-0.8.6.ebuild,v 1.1 2012/12/31 00:46:07 vapier Exp $
+
+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"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="video"
+
+RDEPEND="app-cdr/cdrtools
+ >=dev-lang/tcl-8.4
+ >=dev-lang/tk-8.4
+ 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 "${FILESDIR}"/${PN}.png
+ make_desktop_entry ${PN} ${MY_PN} ${PN} "AudioVideo;Video;"
+
+ dodoc HISTORY.txt TODO.txt
+}