[71033] trunk/dports/devel

ryandesign at macports.org ryandesign at macports.org
Mon Aug 30 01:28:06 PDT 2010


Revision: 71033
          http://trac.macports.org/changeset/71033
Author:   ryandesign at macports.org
Date:     2010-08-30 01:28:04 -0700 (Mon, 30 Aug 2010)
Log Message:
-----------
libinchi-1: new port, version 1.03; see #26107

Added Paths:
-----------
    trunk/dports/devel/libinchi-1/
    trunk/dports/devel/libinchi-1/Portfile
    trunk/dports/devel/libinchi-1/files/
    trunk/dports/devel/libinchi-1/files/patch-INCHI-1-API_INCHI_API_gcc_so_makefile-makefile.diff

Added: trunk/dports/devel/libinchi-1/Portfile
===================================================================
--- trunk/dports/devel/libinchi-1/Portfile	                        (rev 0)
+++ trunk/dports/devel/libinchi-1/Portfile	2010-08-30 08:28:04 UTC (rev 71033)
@@ -0,0 +1,56 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
+# $Id$
+
+PortSystem          1.0
+
+name                libinchi-1
+version             1.03
+set major           [lindex [split ${version} .] 0]
+categories          devel science
+platforms           darwin
+maintainers         netatonce.net:petri openmaintainer
+
+description         IUPAC InChI identifier generation library
+
+long_description    IUPAC library for standard and non-standard \
+                    International Chemical Identifier (InChI) non-proprietary \
+                    identifiers for chemical substances.
+
+homepage            http://www.iupac.org/inchi/
+master_sites        ${homepage}download/version${version}/
+dist_subdir         inchi-1
+
+use_zip             yes
+distname            INCHI-1-API
+distfiles-append    INCHI-1-DOC.zip
+
+checksums           INCHI-1-API.zip \
+                    md5     7dd26285418528172326aa32f9a19ba3 \
+                    sha1    9a9ac4b2f0a03638a97ffcd325b52c9992c777af \
+                    rmd160  5a808be29e751c706b3ace7dfd8c1c7a0cdfb022 \
+                    INCHI-1-DOC.zip \
+                    md5     6a380e9b1ac8b963b66304e1c16a31bb \
+                    sha1    4f2d2453573dd2ef22a70e190e9e2e90562959a7 \
+                    rmd160  1390a48cd691a5b4d00cc74152ac4df6fb4e836b
+
+use_configure       no
+
+build.args          -CINCHI_API/gcc_so_makefile/ -f makefile
+build.target        result/libinchi.so.${version}.00
+
+patchfiles          patch-INCHI-1-API_INCHI_API_gcc_so_makefile-makefile.diff
+
+destroot {
+    xinstall -m 644 -W ${worksrcpath}/INCHI_API/gcc_so_makefile/result libinchi.so.${version}.00 libinchi.so.${major} ${destroot}${prefix}/lib/
+    xinstall -m 644 ${worksrcpath}/INCHI_API/inchi_dll/inchi_api.h ${destroot}${prefix}/include/
+
+    set docdir ${destroot}${prefix}/share/doc/${name}
+    xinstall -d ${docdir}
+    xinstall -m 644 -W ${workpath}/INCHI-1-DOC \
+        InChI_API_Reference.pdf \
+        InChI_TechMan.pdf \
+        InChI_UserGuide.pdf \
+        RelNotes.pdf \
+        readme.txt \
+        ${docdir}
+}


Property changes on: trunk/dports/devel/libinchi-1/Portfile
___________________________________________________________________
Added: svn:keywords
   + Id
Added: svn:eol-style
   + native

Added: trunk/dports/devel/libinchi-1/files/patch-INCHI-1-API_INCHI_API_gcc_so_makefile-makefile.diff
===================================================================
--- trunk/dports/devel/libinchi-1/files/patch-INCHI-1-API_INCHI_API_gcc_so_makefile-makefile.diff	                        (rev 0)
+++ trunk/dports/devel/libinchi-1/files/patch-INCHI-1-API_INCHI_API_gcc_so_makefile-makefile.diff	2010-08-30 08:28:04 UTC (rev 71033)
@@ -0,0 +1,31 @@
+--- INCHI_API/gcc_so_makefile/makefile.orig	2010-08-16 19:06:23.000000000 +0200
++++ INCHI_API/gcc_so_makefile/makefile	2010-08-16 19:06:47.000000000 +0200
+@@ -1,5 +1,5 @@
+ # Comment out the next line to create so/dll only
+-CREATE_MAIN = 1
++#CREATE_MAIN = 1
+ 
+ ifdef windir
+ # Under Win32/MinGW/gcc to add functions compliant to Pascal/stdcall calling
+@@ -19,10 +19,11 @@
+ # In addition, inchi.map restricts set of expoorted from .so
+ # functions to those which belong to InChI API
+ ifndef windir
+-LINUX_MAP = ,--version-script=libinchi.map
+ ifdef ISLINUX
++LINUX_MAP = ,--version-script=libinchi.map
+ LINUX_FPIC  = -fPIC
+ LINUX_Z_RELRO = ,-z,relro
++LINUX_SONAME = ,-soname,
+ endif
+ endif
+ 
+@@ -213,7 +214,7 @@
+ 	$(SHARED_LINK) $(SHARED_LINK_PARM) -o \
+   $(INCHI_LIB_PATHNAME).so$(VERSION) \
+   $(INCHI_LIB_OBJS) \
+-  -Wl$(LINUX_MAP)$(LINUX_Z_RELRO),-soname,$(INCHI_LIB_NAME).so$(MAIN_VERSION)
++  -Wl$(LINUX_MAP)$(LINUX_Z_RELRO)$(LINUX_SONAME)$(INCHI_LIB_NAME).so$(MAIN_VERSION)
+ 	ln -fs $(INCHI_LIB_NAME).so$(VERSION) \
+   $(INCHI_LIB_PATHNAME).so$(MAIN_VERSION)
+ 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100830/a95659d1/attachment.html>


More information about the macports-changes mailing list