maeparser: new recipe

This commit is contained in:
Jerome Duval
2020-03-26 15:50:38 +01:00
parent 94b02a5d09
commit b7b19a54a2

View File

@@ -0,0 +1,72 @@
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="1"
SOURCE_URI="$HOMEPAGE/archive/v$portVersion.tar.gz"
SOURCE_FILENAME="maeparser-$portVersion.tar.gz"
CHECKSUM_SHA256="ca2e2dead8a1fdd74b624ca0f0c4dde205d0b8abbbfdd62de0786f2d3f6f291c"
ARCHITECTURES="!x86_gcc2 x86_64"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
maeparser$secondaryArchSuffix = $portVersion
lib:libmaeparser$secondaryArchSuffix = 1.2.3 compat >= 1
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libboost_iostream$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_system$secondaryArchSuffix >= 1.69
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
}