summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Dibb <beandog@gentoo.org>2007-05-12 21:10:38 +0000
committerSteve Dibb <beandog@gentoo.org>2007-05-12 21:10:38 +0000
commit99d4eb28545d7c8cf652fdda25c0aae9135bc2c7 (patch)
treeafa6ee3216c9a470b8f40145c71a0487649bb86b /media-video/tovid
parentTime for jdbc3-postgresql to go as one month is up. (diff)
downloadgentoo-2-99d4eb28545d7c8cf652fdda25c0aae9135bc2c7.tar.gz
gentoo-2-99d4eb28545d7c8cf652fdda25c0aae9135bc2c7.tar.bz2
gentoo-2-99d4eb28545d7c8cf652fdda25c0aae9135bc2c7.zip
init patch, bug 171748
(Portage version: 2.1.2.7)
Diffstat (limited to 'media-video/tovid')
-rw-r--r--media-video/tovid/ChangeLog8
-rw-r--r--media-video/tovid/files/digest-tovid-0.30-r23
-rw-r--r--media-video/tovid/files/tovid-0.30-tovid-init.patch189
-rw-r--r--media-video/tovid/tovid-0.30-r2.ebuild77
4 files changed, 276 insertions, 1 deletions
diff --git a/media-video/tovid/ChangeLog b/media-video/tovid/ChangeLog
index 0dddd5a3d57f..1946c259c5c5 100644
--- a/media-video/tovid/ChangeLog
+++ b/media-video/tovid/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for media-video/tovid
# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-video/tovid/ChangeLog,v 1.9 2007/05/01 01:43:47 genone Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-video/tovid/ChangeLog,v 1.10 2007/05/12 21:10:38 beandog Exp $
+
+*tovid-0.30-r2 (12 May 2007)
+
+ 12 May 2007; Steve Dibb <beandog@gentoo.org>
+ +files/tovid-0.30-tovid-init.patch, +tovid-0.30-r2.ebuild:
+ init patch, bug 171748
01 May 2007; Marius Mauch <genone@gentoo.org> tovid-0.30.ebuild,
tovid-0.30-r1.ebuild:
diff --git a/media-video/tovid/files/digest-tovid-0.30-r2 b/media-video/tovid/files/digest-tovid-0.30-r2
new file mode 100644
index 000000000000..536aabef5fe1
--- /dev/null
+++ b/media-video/tovid/files/digest-tovid-0.30-r2
@@ -0,0 +1,3 @@
+MD5 feb3418acade9584cd8256f5ce2efb88 tovid-0.30.tar.gz 393084
+RMD160 ef7e35e6553fddc4f601fd44b681b5afd643705a tovid-0.30.tar.gz 393084
+SHA256 fe30a4ef08d1aa15fcb811d123d14a7934a9f5180abbcaddafef1e543c42720f tovid-0.30.tar.gz 393084
diff --git a/media-video/tovid/files/tovid-0.30-tovid-init.patch b/media-video/tovid/files/tovid-0.30-tovid-init.patch
new file mode 100644
index 000000000000..1a650d71c728
--- /dev/null
+++ b/media-video/tovid/files/tovid-0.30-tovid-init.patch
@@ -0,0 +1,189 @@
+--- src/tovid-init.in 2007-02-02 18:42:19.000000000 +0100
++++ src/tovid-init.in.new 2007-05-04 17:12:27.000000000 +0200
+@@ -4,24 +4,24 @@
+ # Part of the tovid suite
+ # =======================
+ # Define global (suite-wide) functions and variables
+-# for the tovid suite.
++# for the tovid suite.
+ #
+ # Project homepage: http://www.tovid.org
+ #
+ #
+ # Copyright (C) 2005 tovid.org <http://www.tovid.org>
+-#
+-# This program is free software; you can redistribute it and/or
+-# modify it under the terms of the GNU General Public License
+-# as published by the Free Software Foundation; either
+-# version 2 of the License, or (at your option) any later
++#
++# This program is free software; you can redistribute it and/or
++# modify it under the terms of the GNU General Public License
++# as published by the Free Software Foundation; either
++# version 2 of the License, or (at your option) any later
+ # version.
+-#
++#
+ # This program is distributed in the hope that it will be useful,
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ # GNU General Public License for more details.
+-#
++#
+ # You should have received a copy of the GNU General Public License
+ # along with this program; if not, write to the Free Software
+ # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. Or see:
+@@ -128,7 +128,7 @@
+ echo ":"
+ else
+ echo "false"
+- fi
++ fi
+ ;;
+
+ "set" )
+@@ -145,7 +145,7 @@
+
+ # ******************************************************************************
+ # Print a pretty (wrapped) notice message.
+-# Args: $@ == text string containing the message
++# Args: $@ == text string containing the message
+ # ******************************************************************************
+ function precho()
+ {
+@@ -154,7 +154,7 @@
+
+ # ******************************************************************************
+ # Print error message, then exit.
+-# Args: $@ == text string containing error message
++# Args: $@ == text string containing error message
+ # ******************************************************************************
+ function exit_with_error()
+ {
+@@ -261,11 +261,11 @@
+ if test ! -e "$FOP_OUTFILE"; then
+ runtime_error "Couldn't create file: \"$FOP_OUTFILE\""
+ fi
+-
++
+ # File size in bytes
+ FOP_LAST_SIZE=0
+ FOP_CUR_SIZE=$(du -b "$FOP_OUTFILE" | awk '{print $1}')
+-
++
+ # Keep looping until outfile stops getting bigger
+ while test "$FOP_CUR_SIZE" -gt "$FOP_LAST_SIZE"; do
+ # Display a changing line
+@@ -286,7 +286,7 @@
+ # (SLEEP_TIME defaults to 1s if unset)
+ sleep ${SLEEP_TIME-"1s"}
+
+- FOP_LAST_SIZE=$FOP_CUR_SIZE
++ FOP_LAST_SIZE=$FOP_CUR_SIZE
+ FOP_CUR_SIZE=$(du -b "$FOP_OUTFILE" | awk '{print $1}')
+ done
+ printf "\n\n"
+@@ -294,7 +294,7 @@
+
+ # ******************************************************************************
+ # Check to see if a dependency group exists, quit if missing
+-# Input args:
++# Input args:
+ # $1 = dependency group to check for; note that this can be a globally
+ # defined group (below), or a space-separated list of executables
+ # $2 = Descriptive message about why the user needs the dependencies
+@@ -330,7 +330,7 @@
+ # See what filesystem a directory is in
+ # Input args:
+ # $1 = directory to find filesystem type
+-#
++#
+ # Usage:
+ # FS_TYPE=$(get_filesystem "$WORK_DIR")
+ # ******************************************************************************
+@@ -342,6 +342,19 @@
+ echo "$FILESYSTEM"
+ }
+
++# ******************************************************************************
++# Do floating point math with bc
++# Input args:
++# $1 = The math operation to perfrom, in a quoted string
++#
++# Usage:
++# ANSWER=$(bc_math "$NUM1 + $NUM2")
++# ******************************************************************************
++function bc_math()
++{
++ echo "scale=2; $1" | bc -l
++}
++
+
+ # ******************************************************************************
+ # Countdown 5 seconds, then return
+@@ -390,21 +403,30 @@
+ # ******************************************************************************
+ INSTALLED_TOVIDS=$(type -a tovid 2>>/dev/null | awk '{print $NF}' | tr '\n' ' ')
+ NUM_INSTALLED=0
++INSTALLED_VERS=""
++INSTALLED_PREFS=""
+
+-# Only count non-links
++# Only count tovids that are different versions
+ for tovid in $INSTALLED_TOVIDS; do
+- if ! test -L $tovid; then
+- let "NUM_INSTALLED=NUM_INSTALLED+1"
+- fi
++ tovid_PREFIX=$(dirname $tovid)
++ tovid_VERSION=$(grep TOVID_VERSION $tovid_PREFIX/tovid-init | \
++ awk -F '"' '{print $2}')
++ INSTALLED_VERS="$INSTALLED_VERS $tovid_VERSION"
+ done
++UNIQ_TOVIDS="$(echo $INSTALLED_VERS | tr ' ' '\n' | uniq)"
++NUM_INSTALLED="$(echo $INSTALLED_VERS | tr ' ' '\n' | uniq | wc -l)"
+
+ # Exit when there is more than one tovid installed
+ if test $NUM_INSTALLED -ne 1; then
+- echo "Found $NUM_INSTALLED installations of tovid on your system!"
++ echo "Found $NUM_INSTALLED versions of tovid on your system!"
+ echo "I won't run until there is only one of me :)"
+ echo "Installed versions:"
+- for version in $INSTALLED_TOVIDS; do
+- echo " $version"
++ i=1
++ while test $i -le $(echo "$INSTALLED_TOVIDS" | awk '{print NF}'); do
++ tovid_ver=$(echo $INSTALLED_VERS | awk '{print $'$i'}')
++ tovid_path=$(echo $INSTALLED_TOVIDS | awk '{print $'$i'}')
++ printf " %s (%s)\n" $tovid_ver $tovid_path
++ let "i=i+1"
+ done
+ echo "Exiting..."
+ exit 1
+@@ -442,7 +464,7 @@
+ #-kvcd
+ #-ksvcd
+ #-kdvd
+-
++
+ # TV system standard
+ #-pal
+ #-ntsc
+@@ -493,15 +515,15 @@
+ # No: add another group and fill it with members.
+
+ # *************************************************************************
+- # Required Dependencies
++ # Required Dependencies
+ # *************************************************************************
+ core="grep sed md5sum mplayer mencoder mplex mpeg2enc yuvfps yuvdenoise ppmtoy4m mp2enc jpeg2yuv ffmpeg"
+
+ # *************************************************************************
+ # Optional Dependencies
+ # *************************************************************************
+- # Optional dependencies are grouped according to the functionality they
+- # bring to tovid: menu creation, DVD creation, (S)VCD creation, and
++ # Optional dependencies are grouped according to the functionality they
++ # bring to tovid: menu creation, DVD creation, (S)VCD creation, and
+ # post-processing.
+
+ # -------------------------------------------------------------------------
diff --git a/media-video/tovid/tovid-0.30-r2.ebuild b/media-video/tovid/tovid-0.30-r2.ebuild
new file mode 100644
index 000000000000..001ef9d9144a
--- /dev/null
+++ b/media-video/tovid/tovid-0.30-r2.ebuild
@@ -0,0 +1,77 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-video/tovid/tovid-0.30-r2.ebuild,v 1.1 2007/05/12 21:10:38 beandog Exp $
+
+inherit eutils
+
+DESCRIPTION="Video conversion and DVD authoring tools"
+HOMEPAGE="http://tovid.wikia.com/"
+SRC_URI="mirror://sourceforge/tovid/${P}.tar.gz"
+IUSE="tk"
+DEPEND="media-video/mplayer
+ app-text/txt2tags"
+RDEPEND="media-video/mjpegtools
+ media-video/ffmpeg
+ media-video/transcode
+ media-sound/normalize
+ media-gfx/imagemagick
+ media-sound/sox
+ media-video/dvdauthor
+ media-video/vcdimager
+ media-video/lsdvd
+ virtual/cdrtools
+ dev-python/pycairo
+ >=dev-python/wxpython-2.6
+ app-cdr/dvd+rw-tools
+ app-cdr/cdrdao
+ dev-python/imaging"
+KEYWORDS="~amd64 ~x86"
+LICENSE="GPL-2"
+SLOT="0"
+
+pkg_setup() {
+ if use tk && ( ! built_with_use dev-lang/python tk ); then
+ eerror "Please emerge python with useflag 'tk' enabled."
+ die "Fix USE flags and re-emerge"
+ elif ! use tk; then
+ ewarn "If you want to use 'todiscgui', then emerge"
+ ewarn "dev-lang/python and this package with the 'tk' use flag"
+ fi
+ if ! built_with_use media-video/mplayer encode; then
+ eerror "Please emerge media-video/mplayer with useflag 'encode'."
+ die "Fix USE flags and re-emerge"
+ fi
+}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}/${P}-configure.patch"
+ epatch "${FILESDIR}/${P}-ffmpeg.patch"
+ epatch "${FILESDIR}/${P}-tovid-init.patch"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "make install died"
+ dodoc AUTHORS ChangeLog NEWS README
+}
+
+pkg_postinst() {
+ elog ""
+ elog "List of suite components:"
+ elog " idvid: Identifies video format, resolution, and length"
+ elog " makemenu: Creates (S)VCD/DVD menus"
+ elog " makeslides: Creates mpeg still slides for (S)VCD"
+ elog " makexml: Creates XML specification for an (S)VCD or DVD navigation hierarchy"
+ elog " makedvd: Creates the DVD structure and/or iso image"
+ elog " postproc: Adjusts A/V sync and does shrinking of encoded video"
+ elog " tovid: Converts video to (S)VCD or DVD mpeg format"
+ elog " tovidgui: The tovid GUI"
+ elog " pytovid: The new (experimental) python based tovid script"
+ elog " todisc: Create a DVD with animated menus"
+ elog " todiscgui: Experimental gui for todisc"
+ elog ""
+ elog "Please check out the tovid documentation on the web:"
+ elog " http://tovid.wikia.com/"
+ elog ""
+}