# -*- 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 PortSystem 1.0 PortGroup github 1.0 PortGroup cmake 1.1 github.setup rlabduke reduce 4.14 v # rename project to avoid conflict with already existing reduce port name reduce_pdb github.tarball_from archive revision 0 categories science # see: https://github.com/rlabduke/reduce/issues/45 license Permissive maintainers {reneeotten @reneeotten} openmaintainer description Tool for adding and correcting hydrogens in PDB files long_description {*}${description} checksums rmd160 29130d97d6e90be554175a3515efe844f5d0226c \ sha256 62e61cce221fff76b5834031302d91fe703a19945a42e16620d4fb860604daf4 \ size 13281183 patchfiles-append patch-reduce_src_CMakeLists.txt.diff post-patch { reinplace "s|@@HET_DICTIONARY@@|${prefix}/share/${name}/reduce_wwPDB_het_dict.txt|g" \ ${worksrcpath}/reduce_src/CMakeLists.txt } compiler.cxx_standard 2011 build.target reduce destroot { # rename the binary to avoid conflict with already existing reduce port xinstall -m 0755 ${workpath}/build/reduce_src/reduce ${destroot}${prefix}/bin/reduce_pdb xinstall -d ${destroot}${prefix}/share/${name} xinstall -m 0644 ${worksrcpath}/reduce_wwPDB_het_dict.txt ${destroot}${prefix}/share/${name}/reduce_wwPDB_het_dict.txt xinstall -d ${destroot}${prefix}/share/doc/${name} xinstall -m 0644 ${worksrcpath}/LICENSE.txt ${destroot}${prefix}/share/doc/${name}/LICENSE.txt } notes "The reduce executable is installed as 'reduce_pdb' to avoid a naming clash with the math/reduce port"