# -*- coding: utf-8; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4 # $Id$ PortSystem 1.0 name pastebinit version 1.1 maintainers mnick categories net python description pastebinit is a command-line tool to send data to a "pastebin" long_description ${description}: \ a web site which allows its users to upload snippets of text for public viewing. platforms darwin homepage http://www.stgraber.org/category/pastebinit master_sites http://launchpad.net/pastebinit/trunk/${version}/+download/ checksums md5 669a27ff705e101488834e1524196587 \ sha1 3a61945cbd5df0254a358d2ae1fa972c6f30a023 \ rmd160 13cf47cde0788c8dbfa64c7f2e6d4a66850d9c87 use_configure no set sharedir ${prefix}/share/${name}/ set localedir ${prefix}/share/locale/ depends_lib-append port:py26-configobj post-patch { reinplace "s|^#!/usr/bin/python|#!${prefix}/bin/python2.6|" ${worksrcpath}/pastebinit } build { system "cd ${worksrcpath}/po && make" } destroot { xinstall -m 755 ${worksrcpath}/pastebinit ${destroot}${prefix}/bin # Localization xinstall -m 755 -d ${destroot}${localedir} foreach f [glob ${worksrcpath}/po/mo/*] { file copy ${f} ${destroot}${localedir} } # Example config xinstall -m 755 -d ${destroot}${sharedir} foreach f {pastebinit.xml COPYING} { file copy ${worksrcpath}/${f} ${destroot}${sharedir} } } livecheck.type regex livecheck.url http://launchpad.net/pastebinit livecheck.regex Latest version is (.*)