source: trunk/dports/www/duckytool/Portfile @ 20761

Last change on this file since 20761 was 20761, checked in by pmq@…, 14 years ago

See discussion at Bug #10706. Added a variant providing the links; the default is not to.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.9 KB
Line 
1# $Id: Portfile 20761 2006-11-26 17:31:14Z pmq@macports.org $
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        if [variant_isset links] {
33            system "cd '${worksrcpath}' && make links"
34        }
35}
36
37post-activate {
38        ui_msg "  ====================================================="
39        ui_msg "    For full functionality, make sure you install web"
40        ui_msg "    service API keys in your home directory.  See"
41        ui_msg "        ${prefix}/share/doc/${name}/README"
42        ui_msg "    for instructions."
43        ui_msg "  ====================================================="
44}
45
46# this variant creates symlinks like 'g', 'fl'...
47variant links {
48        # placeholder, see destroot
49}
Note: See TracBrowser for help on using the repository browser.