[101895] trunk/dports/python/py-hyperestraier/Portfile

jmr at macports.org jmr at macports.org
Sun Jan 20 22:33:03 PST 2013


Revision: 101895
          https://trac.macports.org/changeset/101895
Author:   jmr at macports.org
Date:     2013-01-20 22:33:03 -0800 (Sun, 20 Jan 2013)
Log Message:
-----------
py-hyperestraier: use unified portgroup

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

Modified: trunk/dports/python/py-hyperestraier/Portfile
===================================================================
--- trunk/dports/python/py-hyperestraier/Portfile	2013-01-21 06:17:24 UTC (rev 101894)
+++ trunk/dports/python/py-hyperestraier/Portfile	2013-01-21 06:33:03 UTC (rev 101895)
@@ -1,11 +1,13 @@
 # $Id$
 
 PortSystem      1.0
-PortGroup       python24 1.0
+PortGroup       python 1.0
+
 name            py-hyperestraier
 version         0.0.15
 
 platforms       darwin
+categories-append   textproc
 maintainers     gmail.com:rsky0711
 description     a Python module for Hyper Estraier
 long_description ${description}
@@ -13,52 +15,56 @@
 homepage        http://hyperestraier.sourceforge.net/
 master_sites    http://hyperestraier.sourceforge.net/binding/:main \
 		macports:takanori:sub
-distfiles	hyper_estraier_wrappers-${version}.tar.gz:main \
-		HyperEstraier.py:sub HyperEstraier_wrap.cxx:sub
-extract.only	hyper_estraier_wrappers-${version}.tar.gz
-distname        hyper_estraier_wrappers-${version}
 dist_subdir     hyperestraier
-checksums       hyper_estraier_wrappers-${version}.tar.gz md5 26f81dbc06954a6030f801b4d8b06fa9 \
-                					  sha1 e348fd6c337ca2e41a322f210902a0d4aeaad056 \
-                					  rmd160 d53a872587f370e39e193dfc3de1d1316db77695 \
-		HyperEstraier.py md5 7d577bf8a50a34ef50b3b6ebbecd3993 \
-				 sha1 05f63a3af75ba7d0aaaa6041dd96f8c9f7fafc01 \
-				 rmd160 a51d15e42b1f71b76861c8ee83d5b4ef5fce6099 \
-		HyperEstraier_wrap.cxx md5 44c0d0abdc6bc67ed5667f98f155e409 \
-				       sha1 5df821e6f9510bca05949c395e57049fb58e8fa8 \
-				       rmd160 2a666360ebc68de1faf4079db2aae172317d57fd
 
-patchfiles      patch-setup.py patch-examples-search.py
-patch.pre_args  -p0
+python.versions 24
 
-categories-append   textproc
-depends_lib-append  port:hyperestraier
-#depends_build      port:swig-python
+if {$subport != $name} {
+    distfiles	hyper_estraier_wrappers-${version}.tar.gz:main \
+            HyperEstraier.py:sub HyperEstraier_wrap.cxx:sub
+    extract.only	hyper_estraier_wrappers-${version}.tar.gz
+    distname        hyper_estraier_wrappers-${version}
+    checksums       hyper_estraier_wrappers-${version}.tar.gz md5 26f81dbc06954a6030f801b4d8b06fa9 \
+                                          sha1 e348fd6c337ca2e41a322f210902a0d4aeaad056 \
+                                          rmd160 d53a872587f370e39e193dfc3de1d1316db77695 \
+            HyperEstraier.py md5 7d577bf8a50a34ef50b3b6ebbecd3993 \
+                     sha1 05f63a3af75ba7d0aaaa6041dd96f8c9f7fafc01 \
+                     rmd160 a51d15e42b1f71b76861c8ee83d5b4ef5fce6099 \
+            HyperEstraier_wrap.cxx md5 44c0d0abdc6bc67ed5667f98f155e409 \
+                           sha1 5df821e6f9510bca05949c395e57049fb58e8fa8 \
+                           rmd160 2a666360ebc68de1faf4079db2aae172317d57fd
 
-post-extract {
-    file copy ${distpath}/HyperEstraier.py ${worksrcpath}
-    file copy ${distpath}/HyperEstraier_wrap.cxx ${worksrcpath}
-}
+    patchfiles      patch-setup.py patch-examples-search.py
+    patch.pre_args  -p0
 
-#pre-build {
-#    system "cd ${worksrcpath}; swig -python -c++ HyperEstraier.i"
-#}
+    depends_lib-append  port:hyperestraier
+    #depends_build      port:swig-python
 
-post-destroot {
-    xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}/examples
-    xinstall -m 644 -W ${worksrcpath}/examples \
-        dbinfo.py gatherer.py iter.py oogatherer.py search.py \
-        ${destroot}${prefix}/share/doc/${name}/examples
+    post-extract {
+        file copy ${distpath}/HyperEstraier.py ${worksrcpath}
+        file copy ${distpath}/HyperEstraier_wrap.cxx ${worksrcpath}
+    }
 
-    reinplace s|'/tmp/casket'|'casket'| \
-        ${destroot}${prefix}/share/doc/${name}/examples/dbinfo.py
-    reinplace s|'/tmp/casket'|'casket'| \
-        ${destroot}${prefix}/share/doc/${name}/examples/iter.py
+    #pre-build {
+    #    system "cd ${worksrcpath}; swig -python -c++ HyperEstraier.i"
+    #}
 
-    file copy ${worksrcpath}/examples/subway \
-        ${destroot}${prefix}/share/doc/${name}/examples
+    post-destroot {
+        xinstall -m 755 -d ${destroot}${prefix}/share/doc/${subport}/examples
+        xinstall -m 644 -W ${worksrcpath}/examples \
+            dbinfo.py gatherer.py iter.py oogatherer.py search.py \
+            ${destroot}${prefix}/share/doc/${subport}/examples
 
-    xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}/test
-    xinstall -m 644 ${worksrcpath}/test/python.py \
-        ${destroot}${prefix}/share/doc/${name}/test
+        reinplace s|'/tmp/casket'|'casket'| \
+            ${destroot}${prefix}/share/doc/${subport}/examples/dbinfo.py
+        reinplace s|'/tmp/casket'|'casket'| \
+            ${destroot}${prefix}/share/doc/${subport}/examples/iter.py
+
+        file copy ${worksrcpath}/examples/subway \
+            ${destroot}${prefix}/share/doc/${subport}/examples
+
+        xinstall -m 755 -d ${destroot}${prefix}/share/doc/${subport}/test
+        xinstall -m 644 ${worksrcpath}/test/python.py \
+            ${destroot}${prefix}/share/doc/${subport}/test
+    }
 }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130120/ea879a2f/attachment.html>


More information about the macports-changes mailing list