Skip to content
Permalink
Browse files

dssp: update to 3.1.2

- switch to new repository, remove patch
- enable tests

Closes: https://trac.macports.org/ticket/59629
  • Loading branch information...
reneeotten committed Nov 8, 2019
1 parent 85bac0a commit e81f73bf622736ef4be91e1648406e56b42bd276
Showing with 10 additions and 20 deletions.
  1. +10 −12 science/dssp/Portfile
  2. +0 −8 science/dssp/files/patch-Makefile.am.diff
@@ -3,7 +3,7 @@
PortSystem 1.0
PortGroup github 1.0

github.setup cmbi xssp 3.0.11
github.setup cmbi dssp 3.1.2
revision 0
name dssp

@@ -15,12 +15,9 @@ maintainers {reneeotten @reneeotten} openmaintainer
description DSSP automates protein secondary structure assignment.
long_description ${description}

checksums rmd160 2fa20317fc8d03206de22ce6ed5c5df17d7ed8ec \
sha256 fef164a5e5767fc8904fbcf29a89d5096887d87424a77ce7c2cf2467d94f3ad5 \
size 168156

# patch binPROGRAMS to only include mkdssp
patchfiles-append patch-Makefile.am.diff
checksums rmd160 79ae28309b8a78e546ae9b36287a137487b305f6 \
sha256 25aa890168077c8e508c17e2c64aec54662c9c148d992dc296328363256d150f \
size 77685

depends_build-append \
port:autoconf \
@@ -32,10 +29,6 @@ depends_lib-append port:boost

compiler.cxx_standard 2011

post-patch {
reinplace "s|3\.0\.10|${version}|g" ${worksrcpath}/configure.ac
}

configure.cmd ./autogen.sh && ./configure
configure.args --disable-silent-rules

@@ -46,12 +39,17 @@ build.env CC=${configure.cc} \
"CXXFLAGS=${configure.cxxflags} [get_canonical_archflags cxx]" \
"LDFLAGS=${configure.ldflags} [get_canonical_archflags ld]"

build.target mkdssp
build.target mkdssp test_readpdb
destroot.target install-binPROGRAMS

test.run yes
test.cmd ./test_readpdb
test.target

post-destroot {
set docdir ${prefix}/share/doc/${name}
xinstall -d ${destroot}${docdir}
xinstall -m 0644 -W ${worksrcpath} README.md LICENSE_1_0.txt \
INSTALL COPYING ${destroot}${docdir}
file delete ${destroot}${prefix}/bin/test_readpdb
}

This file was deleted.

0 comments on commit e81f73b

Please sign in to comment.
You can’t perform that action at this time.