Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 285779

Summary: ebuild request for tragtor (GUI for ffmpeg)
Product: Gentoo Linux Reporter: Christian Pontesegger <christian.pontesegger>
Component: Current packagesAssignee: Default Assignee for New Packages <maintainer-wanted>
Status: CONFIRMED ---    
Severity: enhancement CC: denilsonsa, jason, jlec, kripton, media-video, v10lator
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: http://mein-neues-blog.de/tragtor-gui-for-ffmpeg/#install
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: tragtor-0.8.6.ebuild
ebuild tragator-0.8.34
Better Ebuild for tragtor-0.8.34
tragtor-0.8.67 ebuild

Description Christian Pontesegger 2009-09-20 21:36:15 UTC
I'd like to request an ebuild for a nice graphical frontent to FFmpeg: traGtor.
Find it at 
http://mein-neues-blog.de/tragtor-gui-for-ffmpeg/#install

There is an archive which contains some python code which simply needs to be unpacked.

Reproducible: Always
Comment 1 Denilson Sá Maia 2009-10-09 04:59:18 UTC
Created attachment 206494 [details]
tragtor-0.8.6.ebuild

I've written a simple ebuild. Some important points:

* No license is specified, because the author does not mention any license (neither in the site, nor in the tarball).
* The tarball itself is already an image of what files should be installed in what places. Actually, you can run tragtor from any directory and it will work. The application is self-contained in just one directory.
* There are 3 *.py files. One is the main program, and the other two are language files. I'm not sure if they should be pre-compiled as .pyc (I guess they shouldn't).

This ebuild works for me on amd64, and should also work on any other arch.
Tested with Python-2.6.
The .deb file requires at least Python-2.5.
Not tested with Python-2.4, maybe it works, maybe it doesn't.
Comment 2 Christian Pontesegger 2009-10-11 20:57:36 UTC
(In reply to comment #1)
> Created an attachment (id=206494) [details]
> tragtor-0.8.6.ebuild

Thanks a lot, works perfectly on x86 with Python 2.6.2
Comment 3 Andreas Mielke 2011-05-12 14:56:50 UTC
Created attachment 272945 [details]
ebuild tragator-0.8.34

Version changed to 0.8.34. Download source changed.
Comment 4 Thomas 2011-05-17 11:05:32 UTC
Created attachment 273645 [details]
Better Ebuild for tragtor-0.8.34

I modified the ebuild a bit, here is a diff:

@@ -1,29 +1,28 @@
-# Copyright 1999-2009 Gentoo Foundation
+# Copyright 1999-2011 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Header: $
 
+EAPI="2"
+
 inherit eutils python
 
 DESCRIPTION="traGtor is a graphical user interface (GUI) for ffmpeg"
 HOMEPAGE="http://mein-neues-blog.de/tragtor-gui-for-ffmpeg/"
-SRC_URI="http://repository.mein-neues-blog.de:9000/latest/tragtor.tar.gz"
+SRC_URI="http://repository.mein-neues-blog.de:9000/archive/${P}_all.tar.gz"
 
 LICENSE=""
 SLOT="0"
 KEYWORDS="~amd64 ~x86"
 IUSE=""
 
-DEPEND=""
 RDEPEND="dev-python/pygtk
-	media-video/ffmpeg
+	virtual/ffmpeg
 	media-sound/id3v2"
+DEPEND="${RDEPEND}"
 
-src_unpack() {
-	mkdir ${P}
-	cd ${P}
-	unpack ${A}
-
+src_prepare() {
 	# Set English as the default language
+	# Maybe we could better handle this with LINGUAS?
 	sed -i 's/\(_DEFAULT_SETTINGS = {"language":"\)de\("}\)/\1en\2/' usr/share/tragtor/tragtor.py
 
 	# Deleting shipped *.pyc files
Comment 5 Jason Lamb 2013-05-29 20:13:56 UTC
Created attachment 349596 [details]
tragtor-0.8.67 ebuild

Since trying to run tragtor on a system with python3 eselected as the main interpreter, fails with a

"ImportError: No module named gobject" error

I added a sed edit line from the Archlinux PKGBUILD, to this ebuild to edit the /usr/bin/tragtor shell script from the tarball, from doing an exec python, to doing an exec python2.

Now emerging tragtor using this ebuild allows the program to run correctly, on my system with python3 selected as the system interpreter.

I also renamed it to the current version of 0.8.67