source: trunk/dports/multimedia/subdownloader/Portfile

Last change on this file was 104151, checked in by jmr@…, 4 years ago

subdownloader: license, noarch

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.7 KB
Line 
1# $Id: Portfile 104151 2013-03-18 07:59:59Z ryandesign@macports.org $
2
3PortSystem          1.0
4
5name                subdownloader
6version             2.0.9.3
7set branch          [join [lrange [split ${version} .] 0 2] .]
8categories          multimedia
9license             GPL-3+
10maintainers         nomaintainer
11description         Automatically download and upload subtitles for videos
12long_description \
13   SubDownloader is a program for automatic download/upload subtitles for \
14   videofiles (DIVX,MPEG,AVI,VOB,etc) and DVD's using fast hashing.
15
16platforms           darwin
17supported_archs     noarch
18
19homepage            http://www.subdownloader.net/
20master_sites        http://code.launchpad.net/${name}/trunk/${branch}/+download/
21
22checksums           md5     eff9ef5b0f027ff913798cdc41f5ce47 \
23                    sha1    bd4ba869e1fb7ea7a705e5bf2c5270da99722f04 \
24                    rmd160  54d4f0d2e3a533733a9f119c2618542552ddef41
25
26worksrcdir          ${name}
27
28depends_lib         port:python26
29
30use_configure       no
31
32build               {}
33
34destroot {
35   set myinstdir ${prefix}/libexec/${name}
36   xinstall -m 0755 -d ${destroot}${myinstdir}
37   eval file copy [glob ${worksrcpath}/*] ${destroot}${myinstdir}
38   reinplace "s|#!/usr/bin/env python|#!${prefix}/bin/python2.6|g" \
39      ${destroot}${myinstdir}/run.py
40   file attributes ${destroot}${myinstdir}/run.py -permissions 0755
41   move ${destroot}${myinstdir}/${name}.1 ${destroot}${prefix}/share/man/man1
42   ln -s ${myinstdir}/run.py ${destroot}${prefix}/bin/${name}
43}
44
45post-activate {
46   ui_msg "To run, use"
47   ui_msg "   ${name} --cli"
48   ui_msg "If you wish to use the graphical interface, you need to install"
49   ui_msg "the py26-pyqt4 port"
50   ui_msg "Also see"
51   ui_msg "   ${name} --help"
52}
Note: See TracBrowser for help on using the repository browser.