1 | # -*- 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 |
---|
2 | |
---|
3 | # $Id$ |
---|
4 | |
---|
5 | PortSystem 1.0 |
---|
6 | |
---|
7 | name libinchi-1 |
---|
8 | version 1.03 |
---|
9 | categories devel science |
---|
10 | maintainers netatonce.net:petri \ |
---|
11 | openmaintainer |
---|
12 | description IUPAC InChI identifier generation library |
---|
13 | long_description IUPAC library for standard and non-standard \ |
---|
14 | International Chemical Identifier (InChI) non-proprietary \ |
---|
15 | identifiers for chemical substances. |
---|
16 | homepage http://www.iupac.org/inchi/ |
---|
17 | platforms darwin |
---|
18 | master_sites http://www.iupac.org/inchi/download/version1.03/ |
---|
19 | distfiles INCHI-1-API.zip |
---|
20 | use_zip yes |
---|
21 | worksrcdir INCHI-1-API |
---|
22 | |
---|
23 | checksums INCHI-1-API.zip \ |
---|
24 | md5 7dd26285418528172326aa32f9a19ba3 \ |
---|
25 | sha1 9a9ac4b2f0a03638a97ffcd325b52c9992c777af \ |
---|
26 | rmd160 5a808be29e751c706b3ace7dfd8c1c7a0cdfb022 \ |
---|
27 | |
---|
28 | |
---|
29 | use_configure no |
---|
30 | build.args -CINCHI_API/gcc_so_makefile/ -f makefile |
---|
31 | build.target result/libinchi.so.1.03.00 |
---|
32 | |
---|
33 | patch.dir ${filespath} |
---|
34 | patch.args -d ${workpath} |
---|
35 | patchfiles patch-INCHI-1-API_INCHI_API_gcc_so_makefile-makefile.diff |
---|
36 | |
---|
37 | default_variants +docs |
---|
38 | |
---|
39 | variant docs description {Also install documentation in PDF format} { |
---|
40 | distfiles-append INCHI-1-DOC.zip |
---|
41 | checksums-append INCHI-1-DOC.zip \ |
---|
42 | md5 6a380e9b1ac8b963b66304e1c16a31bb \ |
---|
43 | sha1 4f2d2453573dd2ef22a70e190e9e2e90562959a7 \ |
---|
44 | rmd160 1390a48cd691a5b4d00cc74152ac4df6fb4e836b |
---|
45 | } |
---|
46 | |
---|
47 | destroot { |
---|
48 | xinstall -m 644 ${worksrcpath}/INCHI_API/gcc_so_makefile/result/libinchi.so.1.03.00 ${destroot}${prefix}/lib/ |
---|
49 | xinstall -m 644 ${worksrcpath}/INCHI_API/gcc_so_makefile/result/libinchi.so.1 ${destroot}${prefix}/lib/ |
---|
50 | xinstall -m 644 ${worksrcpath}/INCHI_API/inchi_dll/inchi_api.h ${destroot}${prefix}/include/ |
---|
51 | |
---|
52 | if {[variant_isset docs]} { |
---|
53 | xinstall -d -m 755 ${destroot}${prefix}/share/doc/libinchi-1/ |
---|
54 | xinstall -m 644 ${workpath}/INCHI-1-DOC/InChI_API_Reference.pdf ${destroot}${prefix}/share/doc/libinchi-1/ |
---|
55 | xinstall -m 644 ${workpath}/INCHI-1-DOC/InChI_TechMan.pdf ${destroot}${prefix}/share/doc/libinchi-1/ |
---|
56 | xinstall -m 644 ${workpath}/INCHI-1-DOC/InChI_UserGuide.pdf ${destroot}${prefix}/share/doc/libinchi-1/ |
---|
57 | xinstall -m 644 ${workpath}/INCHI-1-DOC/RelNotes.pdf ${destroot}${prefix}/share/doc/libinchi-1/ |
---|
58 | xinstall -m 644 ${workpath}/INCHI-1-DOC/readme.txt ${destroot}${prefix}/share/doc/libinchi-1/ |
---|
59 | } |
---|
60 | } |
---|
61 | |
---|