# -*- 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
# Keep relevant lines in sync between openbabel and py-openbabel.
categories-append science chemistry devel
description Python bindings for the Open Babel library
long_description Open Babel is a free, open-source version \
of the Babel chemistry file translation program. \
OpenBabel is a project designed to pick up where \
Babel left off, as a cross-platform program and \
library designed to interconvert between many \
file formats used in molecular modeling and \
computational chemistry. This port provides \
homepage http://openbabel.sourceforge.net/
master_sites sourceforge:project/openbabel/openbabel/${version}
distname openbabel-${version}
checksums rmd160 317c15ebbe7f2f86c5ec7d54230487853545cfc4 \
sha256 204136582cdfe51d792000b20202de8950218d617fd9c6e18cee36706a376dfc
worksrcdir ${distname}/scripts/python
if {${name} ne ${subport}} {
depends_build port:py${python.version}-setuptools \
depends_lib-append port:openbabel
foreach ifile {openbabel-python.i stereo.i} {
copy ${worksrcpath}/../$ifile ${worksrcpath}
build.env-append OPENBABEL_INSTALL=${prefix}
build.args-append -I${prefix}/include/openbabel-2.0:${prefix}/include/eigen2
set docdir ${prefix}/share/doc/${subport}
xinstall -m 755 -d ${destroot}${docdir}
xinstall -m 644 -W ${worksrcpath} README.rst ${destroot}${docdir}