ruediger/VobSub2SRT — Issue #13: vobsub2srt ebuild for gentoo
Author: thawn
Created: 2012-01-08 01:04:38+00:00
State: open

Hi,

I was not sure, where to put this, so I am putting it here.
I have created an ebuild that allows installing vobsub2srt and its dependencies on a gentoo machine. I put the ebuild code below. just copy and paste it into a file called ```vobsub2srt-9999.ebuild``` in the directory ```/usr/local/portage/media/video/vobsub2srt/```. Then, you need to open a terminal, cd to that directory and run ```ebuild vobsub2srt-999.ebuild digest```. Afterwards you can compile and install the latest git version of vobsub2srt by running ```emerge vobsub2srt```
It works with a stable release of gentoo where it will use tesseract 2.04-r1. However that tesseract version is quite old. in order to get tesseract 3.x to run, you need to enable the 'stuff' portage overlay as follows. run ```emerge layman``` then run ```layman -a stuff``` which will enable a small gentoo overlay that contains tesseract 3.01 and its dependencies that are not in the standard portage tree. Afterwards, you can again just emerge vobsub2srt which will then use tesseract 3.01.
Here is the ebuild:

# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /media-video/vobsub2srt/ChangeLog,v 0.1 2012/01/06 19:15:04 thawn Exp $

EAPI="4"

EGIT_REPO_URI="git://github.com/ruediger/VobSub2SRT.git"

inherit git-2

IUSE=""

DESCRIPTION="Converts image subtitles created by VobSub (.sub/.idx) to .srt textual subtitles using tesseract OCR engine"
HOMEPAGE="https://github.com/ruediger/VobSub2SRT"

LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"

RDEPEND=">=app-text/tesseract-2.04-r1
>=virtual/ffmpeg-0.6.90"
DEPEND="${RDEPEND}"
src_configure() {
econf
}
src_compile() {
emake || die
}

src_install() {
emake DESTDIR="${D}" install || die
}