0
0
Fork 0
haikuports/sci-chemistry/maeparser/maeparser-1.2.3.recipe

74 lines
1.9 KiB
Bash

SUMMARY="A parser for Schroedinger Maestro files"
DESCRIPTION="There are many molecule formats out there, and the significant \
strength of this one is that it exactly fits the use case of Schrödinger's \
physics-based modeling. As the primary (and only lossless) Schrödinger output\
format, any package that wishes to implement lossless data extraction of \
Maestro output needs to interact directly with this format."
HOMEPAGE="https://github.com/schrodinger/maeparser"
COPYRIGHT="2017 Schrödinger, LLC"
LICENSE="MIT"
REVISION="2"
SOURCE_URI="$HOMEPAGE/archive/v$portVersion.tar.gz"
SOURCE_FILENAME="maeparser-$portVersion.tar.gz"
CHECKSUM_SHA256="ca2e2dead8a1fdd74b624ca0f0c4dde205d0b8abbbfdd62de0786f2d3f6f291c"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
maeparser$secondaryArchSuffix = $portVersion
lib:libmaeparser$secondaryArchSuffix = 1.2.3 compat >= 1
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libboost_iostreams$secondaryArchSuffix
lib:libboost_regex$secondaryArchSuffix
lib:libz$secondaryArchSuffix
"
PROVIDES_devel="
maeparser${secondaryArchSuffix}_devel = $portVersion
devel:libmaeparser$secondaryArchSuffix = 1.2.3 compat >= 1
"
REQUIRES_devel="
maeparser$secondaryArchSuffix == $portVersion base
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libboost_iostreams$secondaryArchSuffix >= 1.69.0
devel:libboost_regex$secondaryArchSuffix >= 1.69.0
devel:libz$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:cmake
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:make
"
BUILD()
{
cmake -DCMAKE_INSTALL_PREFIX:PATH=$prefix \
.
make $jobArgs
}
INSTALL()
{
make install
mv $prefix/lib $prefix/lib2
mkdir -p $(dirname $libDir) $(dirname $includeDir)
mv $prefix/lib2 $libDir
mv $prefix/include $includeDir
prepareInstalledDevelLibs libmaeparser
fixPkgconfig
# devel package
packageEntries devel \
$developDir \
$libDir/cmake
}