1 | # $Id: $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | PortGroup python24 1.0 |
---|
5 | |
---|
6 | name duckytool |
---|
7 | version 0.9.6 |
---|
8 | categories www net python |
---|
9 | platforms darwin |
---|
10 | maintainers ecronin@gizmolabs.org |
---|
11 | description ducky is ... well, the web's command line. |
---|
12 | long_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. |
---|
15 | homepage http://monkey.org/~jose/wiki/doku.php?id=duckytool |
---|
16 | |
---|
17 | distname ducky-${version} |
---|
18 | master_sites http://monkey.org/~jose/software/ducky/ |
---|
19 | checksums md5 e0d0675ef1bf822e96e38d8fa1eaf98c\ |
---|
20 | sha1 269c828ae75b0ea532b2dfbf4fbbcd0198316660 |
---|
21 | |
---|
22 | post-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 | |
---|
28 | post-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 | |
---|
35 | post-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 | } |
---|