From b7b19a54a2927fdb9dafb2fa415c2cc492bbc562 Mon Sep 17 00:00:00 2001 From: Jerome Duval Date: Thu, 26 Mar 2020 15:50:38 +0100 Subject: [PATCH] maeparser: new recipe --- .../maeparser/maeparser-1.2.3.recipe | 72 +++++++++++++++++++ 1 file changed, 72 insertions(+) create mode 100644 sci-chemistry/maeparser/maeparser-1.2.3.recipe diff --git a/sci-chemistry/maeparser/maeparser-1.2.3.recipe b/sci-chemistry/maeparser/maeparser-1.2.3.recipe new file mode 100644 index 000000000..9d0260efc --- /dev/null +++ b/sci-chemistry/maeparser/maeparser-1.2.3.recipe @@ -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 +}