[arch-commits] Commit in libasl/repos (4 files)
Felix Yan
felixonmars at archlinux.org
Sun Dec 6 22:33:21 UTC 2020
Date: Sunday, December 6, 2020 @ 22:33:21
Author: felixonmars
Revision: 771298
archrelease: copy trunk to community-staging-x86_64
Added:
libasl/repos/community-staging-x86_64/
libasl/repos/community-staging-x86_64/PKGBUILD
(from rev 771297, libasl/trunk/PKGBUILD)
libasl/repos/community-staging-x86_64/suppress-deprecated-warnings.patch
(from rev 771297, libasl/trunk/suppress-deprecated-warnings.patch)
libasl/repos/community-staging-x86_64/vtk-8.0.patch
(from rev 771297, libasl/trunk/vtk-8.0.patch)
------------------------------------+
PKGBUILD | 51 +++++++++++++++++++++++++++++++++++
suppress-deprecated-warnings.patch | 12 ++++++++
vtk-8.0.patch | 29 +++++++++++++++++++
3 files changed, 92 insertions(+)
Copied: libasl/repos/community-staging-x86_64/PKGBUILD (from rev 771297, libasl/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2020-12-06 22:33:21 UTC (rev 771298)
@@ -0,0 +1,51 @@
+# Maintainer: Evgeniy Alekseev <arcanis at archlinux dot org>
+# Contributor: Andrejs Mivreņiks <gim at fastmail dot fm>
+
+pkgname=libasl
+pkgver=0.1.7
+pkgrel=16
+pkgdesc='Free and open source hardware accelerated multiphysics simulation platform (Advanced Simulation Library)'
+arch=('x86_64')
+url='http://asl.org.il/'
+license=('AGPL3')
+depends=('boost-libs' 'opencl-icd-loader' 'libmatio' 'vtk' 'libjpeg' 'libpng' 'libtiff'
+ 'freetype2' 'libgl')
+# Workaround for https://bugs.archlinux.org/task/57236
+depends+=('netcdf')
+makedepends=('cmake' 'opencl-headers' 'boost' 'mesa-libgl')
+source=("${pkgname}-${pkgver}.tar.gz::https://github.com/AvtechScientific/ASL/archive/v${pkgver}.tar.gz"
+ 'suppress-deprecated-warnings.patch'
+ 'vtk-8.0.patch')
+sha512sums=('337754adefa8619bbc2ab0e06fc811dd1cc550252b165241a265f87224aa84c5ee69fb3bf60324093df5b21aa87712e2210d4bcdd8593f0740183574528a30bd'
+ '6aecf660790ea2ba0d9de48aef4c4a1058b07d04cbc74ad6a9f127a51f02b39fdab5f8faa269d0bbbc003ea5cea6910f54a7d980fbf5e641629869e20528f70a'
+ '1e1e679003ae0f750db1728196b7e4a8703304592f05698f24c359f185d8873e2c623b8152a63737b000109d88de38618b984865669652eb23b27396dd7dad79')
+
+prepare() {
+ rm -rf "build"
+ mkdir "build"
+
+ # patch to suppress 'deprecated' warning messages
+ # caused by 'opencl-headers' since update to 2.0
+ cd "ASL-${pkgver}"
+ patch -p1 -i "${srcdir}/suppress-deprecated-warnings.patch"
+ # update cmake to allow vtk>=8.0
+ patch -p1 -i "${srcdir}/vtk-8.0.patch"
+}
+
+build() {
+ cd "build"
+ cmake -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_LIBDIR=lib \
+ -DBUILD_SHARED_LIBS=ON \
+ -DWITH_EXAMPLES=ON \
+ -DWITH_MATIO=ON \
+ -DWITH_API_DOC=OFF \
+ -DWITH_TESTS=OFF \
+ "../ASL-${pkgver}"
+ make
+}
+
+package() {
+ cd "build"
+ make DESTDIR="${pkgdir}" install
+}
Copied: libasl/repos/community-staging-x86_64/suppress-deprecated-warnings.patch (from rev 771297, libasl/trunk/suppress-deprecated-warnings.patch)
===================================================================
--- community-staging-x86_64/suppress-deprecated-warnings.patch (rev 0)
+++ community-staging-x86_64/suppress-deprecated-warnings.patch 2020-12-06 22:33:21 UTC (rev 771298)
@@ -0,0 +1,12 @@
+diff -ruN ASL-0.1.7-orig/CMakeLists.txt ASL-0.1.7/CMakeLists.txt
+--- ASL-0.1.7-orig/CMakeLists.txt 2017-08-07 17:47:37.522927767 +0300
++++ ASL-0.1.7/CMakeLists.txt 2017-08-07 17:47:58.382410158 +0300
+@@ -37,7 +37,7 @@
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fpermissive -std=c++11")
+ else()
+ set(CMAKE_CXX_STANDARD 11)
+- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fpermissive")
++ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fpermissive -Wno-deprecated -Wno-deprecated-declarations -Wno-ignored-attributes")
+ endif()
+
+ # Enable supplied cmake includes and modules
Copied: libasl/repos/community-staging-x86_64/vtk-8.0.patch (from rev 771297, libasl/trunk/vtk-8.0.patch)
===================================================================
--- community-staging-x86_64/vtk-8.0.patch (rev 0)
+++ community-staging-x86_64/vtk-8.0.patch 2020-12-06 22:33:21 UTC (rev 771298)
@@ -0,0 +1,29 @@
+diff -ruN ASL-0.1.7-orig/CMakeLists.txt ASL-0.1.7/CMakeLists.txt
+--- ASL-0.1.7-orig/CMakeLists.txt 2017-09-27 16:59:25.073568503 +0300
++++ ASL-0.1.7/CMakeLists.txt 2017-09-27 17:00:07.945853532 +0300
+@@ -1,6 +1,6 @@
+ #
+ # Advanced Simulation Library <http://asl.org.il>
+-#
++#
+ # Copyright 2015 Avtech Scientific <http://avtechscientific.com>
+ #
+ #
+@@ -55,7 +55,7 @@
+ # ToDo: remove support for VTK 6.1 at some point in future
+ find_package(VTK 6.1 QUIET COMPONENTS vtkRenderingCore vtkImagingCore vtkFiltersCore vtkIOCore vtkIOGeometry vtkIOLegacy vtkIOXML vtkIOMINC vtkCommonCore vtkViewsCore vtkftgl vtksys vtkDICOMParser vtkexpat vtkzlib NO_MODULE)
+ if(NOT VTK_FOUND)
+- find_package(VTK 7.0 REQUIRED COMPONENTS vtkRenderingCore vtkImagingCore vtkFiltersCore vtkIOCore vtkIOGeometry vtkIOLegacy vtkIOXML vtkIOMINC vtkCommonCore vtkViewsCore vtksys vtkDICOMParser vtkexpat vtkzlib NO_MODULE)
++ find_package(VTK 8.0 REQUIRED COMPONENTS vtkRenderingCore vtkImagingCore vtkFiltersCore vtkIOCore vtkIOGeometry vtkIOLegacy vtkIOXML vtkIOMINC vtkCommonCore vtkViewsCore vtksys vtkDICOMParser vtkexpat vtkzlib NO_MODULE)
+ endif()
+ include(${VTK_USE_FILE})
+
+@@ -120,7 +120,7 @@
+
+ # ASL conforms to Semantic Versioning scheme <http://semver.org/>
+ # Switch to COMPATIBILITY SameMajorVersion on ASL_VERSION 1.0.0
+-# Till then use COMPATIBILITY ExactVersion
++# Till then use COMPATIBILITY ExactVersion
+ write_basic_package_version_file(
+ "${CMAKE_CURRENT_BINARY_DIR}/ASLConfigVersion.cmake"
+ VERSION ${ASL_VERSION}
More information about the arch-commits
mailing list