[40692] trunk/dports/science

simon at macports.org simon at macports.org
Fri Oct 10 15:53:31 PDT 2008


Revision: 40692
          http://trac.macports.org/changeset/40692
Author:   simon at macports.org
Date:     2008-10-10 15:53:30 -0700 (Fri, 10 Oct 2008)
Log Message:
-----------
science/bkchem: New port, a chemical drawing program.

Added Paths:
-----------
    trunk/dports/science/bkchem/
    trunk/dports/science/bkchem/Portfile
    trunk/dports/science/bkchem/files/
    trunk/dports/science/bkchem/files/patch-setup.py.diff

Added: trunk/dports/science/bkchem/Portfile
===================================================================
--- trunk/dports/science/bkchem/Portfile	                        (rev 0)
+++ trunk/dports/science/bkchem/Portfile	2008-10-10 22:53:30 UTC (rev 40692)
@@ -0,0 +1,29 @@
+# $Id$
+
+PortSystem          1.0
+PortGroup           python25 1.0
+
+name                bkchem
+version             0.12.3
+categories          science python
+platforms           darwin
+maintainers         simon openmaintainer
+description         Free chemical drawing program.
+long_description    Free chemical drawing program written in Python by Beda \
+                    Kosata.
+
+homepage            http://bkchem.zirael.org/
+master_sites        ${homepage}download/
+checksums           md5 f13b106125379b30b0cebe51d8e28342 \
+                    sha1 56a42121c6bca150b394e07c2d33c98f8e866a8b \
+                    rmd160 2f77a0febec5375274e0ed64370b04cf71db5ad7
+
+depends_lib-append  port:py25-tkinter
+
+patchfiles          patch-setup.py.diff
+
+post-patch {
+    reinplace "s|__PREFIX__|${prefix}|g" ${worksrcpath}/setup.py
+    reinplace "s|__PYTHON__|${python.bin}|g" ${worksrcpath}/setup.py
+    reinplace "s|__PYTHON_PKGD__|${python.pkgd}|g" ${worksrcpath}/setup.py
+}


Property changes on: trunk/dports/science/bkchem/Portfile
___________________________________________________________________
Added: svn:keyword
   + Id
Added: svn:eol-style
   + native

Added: trunk/dports/science/bkchem/files/patch-setup.py.diff
===================================================================
--- trunk/dports/science/bkchem/files/patch-setup.py.diff	                        (rev 0)
+++ trunk/dports/science/bkchem/files/patch-setup.py.diff	2008-10-10 22:53:30 UTC (rev 40692)
@@ -0,0 +1,30 @@
+Index: setup.py
+===================================================================
+--- setup.py.orig	2008-05-30 09:34:24.000000000 +0200
++++ setup.py	2008-10-11 00:44:38.000000000 +0200
+@@ -92,11 +92,11 @@
+     print "ERROR: couldn't open the file %s for write" %  config_name
+     sys.exit()
+   file.write( "# the bkchem configuration file, do not edit!\n #(unless you are pretty sure that you know what you are doing, which even I am not)\n")
+-  file.write( 'BKCHEM_MODULE_PATH="%s"\n' % strip_path( os.path.join( py_dir, "bkchem")))
+-  file.write( 'BKCHEM_TEMPLATE_PATH="%s"\n' % strip_path( os.path.join( data_dir, "share/bkchem/templates")))
+-  file.write( 'BKCHEM_PIXMAP_PATH="%s"\n' % strip_path( os.path.join( data_dir, "share/bkchem/pixmaps")))
+-  file.write( 'BKCHEM_IMAGE_PATH="%s"\n' % strip_path( os.path.join( data_dir, "share/bkchem/images")))
+-  file.write( 'BKCHEM_PLUGIN_PATH="%s"\n' % strip_path( os.path.join( data_dir, "share/bkchem/plugins")))
++  file.write( 'BKCHEM_MODULE_PATH="%s"\n' % strip_path( os.path.join( "__PREFIX__", "bin", "bkchem")))
++  file.write( 'BKCHEM_TEMPLATE_PATH="%s"\n' % strip_path( os.path.join( "__PREFIX__", "share/bkchem/templates")))
++  file.write( 'BKCHEM_PIXMAP_PATH="%s"\n' % strip_path( os.path.join( "__PREFIX__", "share/bkchem/pixmaps")))
++  file.write( 'BKCHEM_IMAGE_PATH="%s"\n' % strip_path( os.path.join( "__PREFIX__", "share/bkchem/images")))
++  file.write( 'BKCHEM_PLUGIN_PATH="%s"\n' % strip_path( os.path.join( "__PREFIX__", "share/bkchem/plugins")))
+   file.close()
+   print "file %s created" % config_name
+ 
+@@ -115,7 +115,7 @@
+     print "ERROR: couldn't open the file %s for write" %  exec_name
+     sys.exit( 201)
+   file.write( "#!/bin/sh\n")
+-  file.write( 'python %s "$@"\n' % strip_path( os.path.join( py_dir, "bkchem", "bkchem.py")))
++  file.write( '__PYTHON__ __PYTHON_PKGD__/bkchem/bkchem.py "$@"' )
+   file.close()
+   print "file %s created" % exec_name
+   try:


Property changes on: trunk/dports/science/bkchem/files/patch-setup.py.diff
___________________________________________________________________
Added: svn:eol-style
   + native
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20081010/a80417b9/attachment.html 


More information about the macports-changes mailing list