[19538] trunk/dports/www

source_changes at macosforge.org source_changes at macosforge.org
Fri Sep 15 04:55:29 PDT 2006


Revision: 19538
Author:   pmq at macports.org
Date:     2006-09-15 04:55:27 -0700 (Fri, 15 Sep 2006)

Log Message:
-----------
Closes #10706. See also my comments in Trac.

Added Paths:
-----------
    trunk/dports/www/duckytool/
    trunk/dports/www/duckytool/Portfile

Added: trunk/dports/www/duckytool/Portfile
===================================================================
--- trunk/dports/www/duckytool/Portfile	                        (rev 0)
+++ trunk/dports/www/duckytool/Portfile	2006-09-15 11:55:27 UTC (rev 19538)
@@ -0,0 +1,42 @@
+# $Id$
+
+PortSystem          1.0
+PortGroup           python24 1.0
+
+name                duckytool
+version             0.9.6
+categories          www net python
+platforms           darwin
+maintainers         ecronin at gizmolabs.org
+description         ducky is ... well, the web's command line.
+long_description    ducky marries a bunch of web service APIs into \
+                    one tool, conventiently callable from the command \
+                    line. search the web without using a browser.
+homepage            http://monkey.org/~jose/wiki/doku.php?id=duckytool
+
+distname            ducky-${version}
+master_sites        http://monkey.org/~jose/software/ducky/
+checksums           md5 e0d0675ef1bf822e96e38d8fa1eaf98c\
+                    sha1 269c828ae75b0ea532b2dfbf4fbbcd0198316660
+
+post-patch {
+        reinplace "s|ln -s ducky.py |ln -s ducky.py ${destroot}${prefix}/bin/|" ${worksrcpath}/Makefile
+        reinplace "s|/usr/bin/env python|${python.bin}|" ${worksrcpath}/ducky.py
+        reinplace "s|packages=\\\[ 'DuckyLib'|packages=\\\[ 'DuckyLib', 'DuckyLib.yahoo', 'DuckyLib.yahoo.search'|" ${worksrcpath}/setup.py
+}
+
+post-destroot {
+        xinstall -d -m 0755 ${destroot}${prefix}/share/doc/${name}
+        xinstall -m 0644 ${worksrcpath}/README ${destroot}${prefix}/share/doc/${name}/README
+        xinstall -m 0755 ${worksrcpath}/ducky.py ${destroot}${prefix}/bin/
+        system "cd '${worksrcpath}' && make links"
+}
+
+post-activate {
+        ui_msg "  ====================================================="
+        ui_msg "    For full functionality, make sure you install web"
+        ui_msg "    service API keys in your home directory.  See"
+        ui_msg "        ${prefix}/share/doc/${name}/README"
+        ui_msg "    for instructions."
+        ui_msg "  ====================================================="
+}


Property changes on: trunk/dports/www/duckytool/Portfile
___________________________________________________________________
Name: svn:keywords
   + Id

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20060915/cb1b00da/attachment.html


More information about the macports-changes mailing list