Contents of /trunk/extras/subtitleripper/subtitleripper-0.3.4-r3.smage2
Parent Directory | Revision Log
Revision 4406 -
(show annotations)
(download)
Sun Dec 13 15:41:58 2009 UTC (14 years, 6 months ago) by niro
File size: 1695 byte(s)
Sun Dec 13 15:41:58 2009 UTC (14 years, 6 months ago) by niro
File size: 1695 byte(s)
added serveral fixes
1 | # $Id$ |
2 | |
3 | PNAME="subtitleripper" |
4 | PVER="0.3.4" |
5 | PBUILD="r3" |
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 | mirror://${PNAME}/${PNAME}-${PVER}-linkingorder.patch |
26 | mirror://${PNAME}/${PNAME}-${PVER}-glibc210.patch |
27 | mirror://${PNAME}/${PNAME}-${PVER}-libpng.patch |
28 | ) |
29 | |
30 | # fake it |
31 | UPDATE="echo ${PVER}" |
32 | |
33 | src_prepare() |
34 | { |
35 | munpack ${SRCFILE} || die |
36 | cd ${SRCDIR} |
37 | |
38 | # removes dependency on libppm, seems to be broken atm |
39 | sed -i -e 's|^\(.*lppm.*\)$|#\1|' \ |
40 | -e 's|^\(.*D_HAVE_LIB_PPM.*\)$|#\1|' Makefile || die |
41 | |
42 | # change gocrfilters location to /usr/share/subtitleripper |
43 | sed -i 's:~/sourceforge/subtitleripper/src/:/usr/share/subtitleripper:' pgm2txt || die |
44 | |
45 | # correct linking order to fix builds with --as-needed |
46 | mpatch ${PNAME}-${PVER}-linkingorder.patch || die |
47 | |
48 | # fix compilation against newer glibc |
49 | mpatch ${PNAME}-${PVER}-glibc210.patch || die |
50 | |
51 | # fix compilation against newer libpng |
52 | mpatch ${PNAME}-${PVER}-libpng.patch || die |
53 | } |
54 | |
55 | src_compile() |
56 | { |
57 | cd ${SRCDIR} |
58 | mmake || die |
59 | } |
60 | |
61 | src_install () |
62 | { |
63 | cd ${SRCDIR} |
64 | |
65 | minstalldir /usr/share/subtitleripper || die |
66 | |
67 | minstallexec pgm2txt || die |
68 | minstallexec srttool || die |
69 | minstallexec subtitle2pgm || die |
70 | minstallexec subtitle2vobsub || die |
71 | minstallexec vobsub2pgm || die |
72 | |
73 | minstallfile gocrfilter_\*.sed /usr/share/subtitleripper || die |
74 | |
75 | minstalldocs AUTHORS ChangeLog Copyright LICENSE README || die |
76 | } |
Properties
Name | Value |
---|---|
svn:keywords | Id |