Ticket #10706: Portfile

File Portfile, 1.8 KB (added by ecronin (Eric Cronin), 18 years ago)
Line 
1# $Id: $
2
3PortSystem          1.0
4PortGroup           python24 1.0
5
6name                duckytool
7version             0.9.6
8categories          www net python
9platforms           darwin
10maintainers         ecronin@gizmolabs.org
11description         ducky is ... well, the web's command line.
12long_description    ducky marries a bunch of web service APIs into \
13                    one tool, conventiently callable from the command \
14                    line. search the web without using a browser.
15homepage            http://monkey.org/~jose/wiki/doku.php?id=duckytool
16
17distname            ducky-${version}
18master_sites        http://monkey.org/~jose/software/ducky/
19checksums           md5 e0d0675ef1bf822e96e38d8fa1eaf98c\
20                    sha1 269c828ae75b0ea532b2dfbf4fbbcd0198316660
21
22post-patch {
23        reinplace "s|ln -s ducky.py |ln -s ducky.py ${destroot}${prefix}/bin/|" ${worksrcpath}/Makefile
24        reinplace "s|/usr/bin/env python|${python.bin}|" ${worksrcpath}/ducky.py
25        reinplace "s|packages=\\\[ 'DuckyLib'|packages=\\\[ 'DuckyLib', 'DuckyLib.yahoo', 'DuckyLib.yahoo.search'|" ${worksrcpath}/setup.py
26}
27
28post-destroot {
29        xinstall -d -m 0755 ${destroot}${prefix}/share/doc/${name}
30        xinstall -m 0644 ${worksrcpath}/README ${destroot}${prefix}/share/doc/${name}/README
31        xinstall -m 0755 ${worksrcpath}/ducky.py ${destroot}${prefix}/bin/
32        system "cd '${worksrcpath}' && make links"
33}
34
35post-activate {
36        ui_msg "  ====================================================="
37        ui_msg "    For full functionality, make sure you install web"
38        ui_msg "    service API keys in your home directory.  See"
39        ui_msg "        ${prefix}/share/doc/${name}/README"
40        ui_msg "    for instructions."
41        ui_msg "  ====================================================="
42}