Contents of /trunk/extras/subtitleripper/subtitleripper-0.3.4-r2.smage2
Parent Directory | Revision Log
Revision 2 -
(show annotations)
(download)
Fri Oct 10 13:29:42 2008 UTC (16 years, 1 month ago) by niro
File size: 1333 byte(s)
Fri Oct 10 13:29:42 2008 UTC (16 years, 1 month ago) by niro
File size: 1333 byte(s)
import repo
1 | # $Header: /magellan-cvs/smage/subtitleripper/subtitleripper-0.3.4-r2.smage2,v 1.1 2008/04/20 21:46:41 niro Exp $ |
2 | |
3 | PNAME="subtitleripper" |
4 | PVER="0.3.4" |
5 | PBUILD="r2" |
6 | |
7 | PCATEGORIE="media-video" |
8 | STATE="unstable" |
9 | |
10 | DESCRIPTION="DVD Subtitle Ripper for Linux." |
11 | HOMEPAGE="http://subtitleripper.sourceforge.net/" |
12 | |
13 | DEPEND=">= media-libs/libpng-1.2 |
14 | >= sys-libs/zlib-1.2 |
15 | >= app-text/gocr-0.45" |
16 | |
17 | SRCFILE="${PNAME}-${PVER:0:3}-${PVER:4}.tgz" |
18 | SRCDIR="${BUILDDIR}/${PNAME}" |
19 | |
20 | sminclude mtools |
21 | |
22 | SRC_URI=( |
23 | sourceforge://${PNAME}/${SRCFILE} |
24 | mirror://${PNAME}/${SRCFILE} |
25 | ) |
26 | |
27 | src_prepare() |
28 | { |
29 | munpack ${SRCFILE} || die |
30 | cd ${SRCDIR} |
31 | |
32 | # removes dependency on libppm, seems to be broken atm |
33 | sed -i -e 's|^\(.*lppm.*\)$|#\1|' \ |
34 | -e 's|^\(.*D_HAVE_LIB_PPM.*\)$|#\1|' Makefile || die |
35 | |
36 | # change gocrfilters location to /usr/share/subtitleripper |
37 | sed -i 's:~/sourceforge/subtitleripper/src/:/usr/share/subtitleripper:' pgm2txt || die |
38 | } |
39 | |
40 | src_compile() |
41 | { |
42 | cd ${SRCDIR} |
43 | mmake || die |
44 | } |
45 | |
46 | src_install () |
47 | { |
48 | cd ${SRCDIR} |
49 | |
50 | minstalldir /usr/share/subtitleripper || die |
51 | |
52 | minstallexec pgm2txt || die |
53 | minstallexec srttool || die |
54 | minstallexec subtitle2pgm || die |
55 | minstallexec subtitle2vobsub || die |
56 | minstallexec vobsub2pgm || die |
57 | |
58 | minstallfile gocrfilter_\*.sed /usr/share/subtitleripper || die |
59 | |
60 | minstalldocs AUTHORS ChangeLog Copyright LICENSE README || die |
61 | } |
Properties
Name | Value |
---|---|
svn:keywords | Id |