Ticket #33848: Portfile

File Portfile, 1.7 KB (added by atenderholt@…, 13 years ago)

unified Porfile for the python bindings of openbabel

Line 
1# $Id: Portfile 89153 2012-01-19 22:58:38Z eborisch@macports.org $
2
3PortSystem      1.0
4PortGroup       python 1.0
5
6name            py-openbabel
7version         2.3.1
8license         GPL-2
9maintainers     openmaintainer
10description     Python bindings for the Open Babel library
11long_description    Open Babel is a free, open-source version \
12                    of the Babel chemistry file translation program. \
13                    OpenBabel is a project designed to pick up where \
14                    Babel left off, as a cross-platform program and \
15                    library designed to interconvert between many \
16                    file formats used in molecular modeling and \
17                    computational chemistry. This port provides \
18                    Python bindings.
19platforms       darwin freebsd
20homepage            http://openbabel.sourceforge.net/
21master_sites        sourceforge
22distname            openbabel-${version}
23dist_subdir         openbabel
24checksums           rmd160 da4d240a92942dbf9dcf999187336d69d7ef8f5c \
25                    sha256 9e2e8bc9af585ee7e4a03720e3d7b82ef567aa17fdeeea48cc213a3035ced7a3
26
27python.versions 24 25 26 27
28
29depends_lib-append  port:openbabel
30
31worksrcdir          ${distname}/scripts/python
32
33build.env-append    OPENBABEL_INSTALL=${prefix}
34build.target        build_ext
35build.args-append   -I${prefix}/include/openbabel-2.0:${prefix}/include/eigen2
36
37post-destroot {
38   xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
39   xinstall -m 644 -W ${worksrcpath} README \
40      ${destroot}${prefix}/share/doc/${name}
41}
42
43livecheck.type      regex
44livecheck.url       http://sourceforge.net/projects/openbabel/files/openbabel/
45livecheck.regex     openbabel-\(\[\\d.\]+\)\.tar\.gz
46