Magellan Linux

Annotation of /branches/branch-xorg18/extras/subtitleripper/subtitleripper-0.3.4-r3.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 4405 - (hide annotations) (download)
Sun Dec 13 15:00:39 2009 UTC (14 years, 6 months ago) by niro
Original Path: trunk/extras/subtitleripper/subtitleripper-0.3.4-r3.smage2
File size: 1259 byte(s)
auto added: ver bump to 0.3.4-r3
1 niro 4405 # $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     )
26    
27     # fake it
28     UPDATE="echo ${PVER}"
29    
30     src_prepare()
31     {
32     munpack ${SRCFILE} || die
33     cd ${SRCDIR}
34    
35     # removes dependency on libppm, seems to be broken atm
36     sed -i -e 's|^\(.*lppm.*\)$|#\1|' \
37     -e 's|^\(.*D_HAVE_LIB_PPM.*\)$|#\1|' Makefile || die
38    
39     # change gocrfilters location to /usr/share/subtitleripper
40     sed -i 's:~/sourceforge/subtitleripper/src/:/usr/share/subtitleripper:' pgm2txt || die
41     }
42    
43     src_compile()
44     {
45     cd ${SRCDIR}
46     mmake || die
47     }
48    
49     src_install ()
50     {
51     cd ${SRCDIR}
52    
53     minstalldir /usr/share/subtitleripper || die
54    
55     minstallexec pgm2txt || die
56     minstallexec srttool || die
57     minstallexec subtitle2pgm || die
58     minstallexec subtitle2vobsub || die
59     minstallexec vobsub2pgm || die
60    
61     minstallfile gocrfilter_\*.sed /usr/share/subtitleripper || die
62    
63     minstalldocs AUTHORS ChangeLog Copyright LICENSE README || die
64     }

Properties

Name Value
svn:keywords Id