# $Id$ PortSystem 1.0 name subdownloader version 2.0.9.3 set branch [join [lrange [split ${version} .] 0 2] .] categories multimedia license GPL-3+ maintainers nomaintainer description Automatically download and upload subtitles for videos long_description \ SubDownloader is a program for automatic download/upload subtitles for \ videofiles (DIVX,MPEG,AVI,VOB,etc) and DVD's using fast hashing. platforms darwin supported_archs noarch homepage http://www.subdownloader.net/ master_sites http://code.launchpad.net/${name}/trunk/${branch}/+download/ checksums md5 eff9ef5b0f027ff913798cdc41f5ce47 \ sha1 bd4ba869e1fb7ea7a705e5bf2c5270da99722f04 \ rmd160 54d4f0d2e3a533733a9f119c2618542552ddef41 worksrcdir ${name} depends_lib port:python26 use_configure no build {} destroot { set myinstdir ${prefix}/libexec/${name} xinstall -m 0755 -d ${destroot}${myinstdir} eval file copy [glob ${worksrcpath}/*] ${destroot}${myinstdir} reinplace "s|#!/usr/bin/env python|#!${prefix}/bin/python2.6|g" \ ${destroot}${myinstdir}/run.py file attributes ${destroot}${myinstdir}/run.py -permissions 0755 move ${destroot}${myinstdir}/${name}.1 ${destroot}${prefix}/share/man/man1 ln -s ${myinstdir}/run.py ${destroot}${prefix}/bin/${name} } post-activate { ui_msg "To run, use" ui_msg " ${name} --cli" ui_msg "If you wish to use the graphical interface, you need to install" ui_msg "the py26-pyqt4 port" ui_msg "Also see" ui_msg " ${name} --help" }