[106894] trunk/dports/python

jmr at macports.org jmr at macports.org
Mon Jun 10 05:11:48 PDT 2013


Revision: 106894
          https://trac.macports.org/changeset/106894
Author:   jmr at macports.org
Date:     2013-06-10 05:11:48 -0700 (Mon, 10 Jun 2013)
Log Message:
-----------
py-imdb: fix incorrect/incomplete merge done in r94309

Revision Links:
--------------
    https://trac.macports.org/changeset/94309

Modified Paths:
--------------
    trunk/dports/python/py-imdb/Portfile

Removed Paths:
-------------
    trunk/dports/python/py25-imdb/

Modified: trunk/dports/python/py-imdb/Portfile
===================================================================
--- trunk/dports/python/py-imdb/Portfile	2013-06-10 11:57:22 UTC (rev 106893)
+++ trunk/dports/python/py-imdb/Portfile	2013-06-10 12:11:48 UTC (rev 106894)
@@ -2,11 +2,12 @@
 
 PortSystem          1.0
 PortGroup           python 1.0
+
 name                py-imdb
 version             4.8.2
-license             {GPL-2+ BSD}
-python.versions     26
-python.default_version 26
+revision            1
+license             GPL-2+
+python.versions     24 25 26
 maintainers         nomaintainer
 description         python module providing access to the IMDb movie database
 long_description \
@@ -22,3 +23,21 @@
 checksums           rmd160  7641b6743fdc82dc01d673a6fe8be737000b4b16 \
                     sha256  38973f80f794238fded6ca1794d4832c9c039d33664f0da27fc5adf595c2588f
 
+if {$subport != $name} {
+    depends_build   port:py${python.version}-distribute
+    depends_lib     port:py${python.version}-lxml \
+                    port:py${python.version}-sqlalchemy
+    build.cmd-append      --without-sqlobject
+    destroot.cmd-append   --without-sqlobject
+    post-destroot {
+       move ${destroot}${python.prefix}/etc/imdbpy.cfg \
+          ${destroot}${python.prefix}/etc/imdbpy.cfg.sample-${python.branch}
+       eval move [glob ${destroot}${python.prefix}/doc/*] \
+          ${destroot}${prefix}/share/doc/${subport}
+    }
+    post-activate {
+        if {![file exists ${python.prefix}/etc/imdbpy.cfg]} {
+            copy ${python.prefix}/etc/imdbpy.cfg.sample-${python.branch} ${python.prefix}/etc/imdbpy.cfg
+        }
+    }
+}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130610/c9bba193/attachment.html>


More information about the macports-changes mailing list