Files
haikuports/sci-chemistry/maeparser/maeparser-1.2.3.recipe
2023-04-14 12:28:43 +02:00

73 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="3"
SOURCE_URI="$HOMEPAGE/archive/v$portVersion.tar.gz"
SOURCE_FILENAME="maeparser-$portVersion.tar.gz"
CHECKSUM_SHA256="ca2e2dead8a1fdd74b624ca0f0c4dde205d0b8abbbfdd62de0786f2d3f6f291c"
PATCHES="maeparser-$portVersion.patchset"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
libVersion="$portVersion"
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
PROVIDES="
maeparser$secondaryArchSuffix = $portVersion
lib:libmaeparser$secondaryArchSuffix = $libVersionCompat
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libboost_iostreams$secondaryArchSuffix
lib:libboost_regex$secondaryArchSuffix
lib:libz$secondaryArchSuffix
"
PROVIDES_devel="
maeparser${secondaryArchSuffix}_devel = $portVersion
devel:libmaeparser$secondaryArchSuffix = $libVersionCompat
"
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 -Bbuild -S. -DCMAKE_BUILD_TYPE=Release \
$cmakeDirArgs
make -C build $jobArgs
}
INSTALL()
{
make -C build install
prepareInstalledDevelLib libmaeparser
fixPkgconfig
# devel package
packageEntries devel \
$developDir \
$libDir/cmake
}