[arch-commits] Commit in cgns/repos (3 files)
Bruno Pagani
archange at archlinux.org
Fri Aug 24 21:29:37 UTC 2018
Date: Friday, August 24, 2018 @ 21:29:36
Author: archange
Revision: 373858
archrelease: copy trunk to community-staging-x86_64
Added:
cgns/repos/community-staging-x86_64/
cgns/repos/community-staging-x86_64/PKGBUILD
(from rev 373857, cgns/trunk/PKGBUILD)
cgns/repos/community-staging-x86_64/fix_matherr.patch
(from rev 373857, cgns/trunk/fix_matherr.patch)
-------------------+
PKGBUILD | 64 +++++++++++++++++++++++++++++++++++++++++++++++
fix_matherr.patch | 70 ++++++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 134 insertions(+)
Copied: cgns/repos/community-staging-x86_64/PKGBUILD (from rev 373857, cgns/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2018-08-24 21:29:36 UTC (rev 373858)
@@ -0,0 +1,64 @@
+# Maintainer: Bruno Pagani <archange at archlinux.org>
+# Contributor: eolianoe <eolianoe At GoogleMAIL DoT com>
+# Contriburor: Mathias Anselmann <mathias.anselmann at gmail.com>
+# Contributor: Thomas Dziedzic < gostrc at gmail >
+# Contributor: lainme <lainme993 at gmail.com>
+# Contributor: Klimov Max <cleemmi at gmail.com>
+
+_pkgname=CGNS
+pkgname=cgns
+pkgver=3.3.1
+pkgrel=6
+pkgdesc="Standard for recording and recovering computer data associated with the numerical solution of fluid dynamics equations"
+arch=('x86_64')
+url='https://cgns.github.io/'
+license=('custom')
+depends=('tk' 'hdf5' 'libxmu' 'glu')
+makedepends=('gcc-fortran' 'cmake')
+options=(!makeflags)
+source=(${pkgname}-${pkgver}.tar.gz::"https://github.com/${_pkgname}/${_pkgname}/archive/v${pkgver}.tar.gz"
+ 'fix_matherr.patch')
+sha256sums=('81093693b2e21a99c5640b82b267a495625b663d7b8125d5f1e9e7aaa1f8d469'
+ 'a45a77c0587f01c9ebf4bbd4bfb65d3fcd15257d566821f35d71dc51bdbe6c63')
+
+prepare(){
+ mkdir -p build
+ cd ${_pkgname}-${pkgver}
+ patch -p1 -i ../fix_matherr.patch
+}
+
+build() {
+ cd build
+
+ cmake ../${_pkgname}-${pkgver} \
+ -DCGNS_BUILD_CGNSTOOLS=ON \
+ -DCGNS_BUILD_SHARED=ON \
+ -DCGNS_ENABLE_64BIT=ON \
+ -DCGNS_ENABLE_FORTRAN=ON \
+ -DCGNS_ENABLE_HDF5=ON \
+ -DCGNS_ENABLE_LEGACY=ON \
+ -DCGNS_ENABLE_SCOPING=OFF \
+ -DCGNS_ENABLE_TESTS=ON \
+ -DHDF5_FOUND=OFF \
+ -DCMAKE_BUILD_TYPE="Release" \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_SKIP_RPATH=ON
+# HDF5_FOUND=OFF is a (silly) workaround for https://cgnsorg.atlassian.net/browse/CGNS-143
+
+ make
+}
+
+
+check() {
+ cd build
+
+ make test
+}
+
+package() {
+ cd build
+
+ make DESTDIR="${pkgdir}" install
+
+ install -Dm644 "${srcdir}"/${_pkgname}-${pkgver}/license.txt -t "${pkgdir}"/usr/share/licenses/${pkgname}/
+}
Copied: cgns/repos/community-staging-x86_64/fix_matherr.patch (from rev 373857, cgns/trunk/fix_matherr.patch)
===================================================================
--- community-staging-x86_64/fix_matherr.patch (rev 0)
+++ community-staging-x86_64/fix_matherr.patch 2018-08-24 21:29:36 UTC (rev 373858)
@@ -0,0 +1,70 @@
+--- a/src/cgnstools/cgnscalc/calcwish.c
++++ a/src/cgnstools/cgnscalc/calcwish.c
+@@ -15,14 +15,6 @@
+ #include "tk.h"
+ #include "locale.h"
+
+-/*
+- * The following variable is a special hack that is needed in order for
+- * Sun shared libraries to be used for Tcl.
+- */
+-
+-extern int matherr();
+-int *tclDummyMathPtr = (int *) matherr;
+-
+ #ifdef TK_TEST
+ extern int Tcltest_Init _ANSI_ARGS_((Tcl_Interp *interp));
+ extern int Tktest_Init _ANSI_ARGS_((Tcl_Interp *interp));
+--- a/src/cgnstools/cgnsplot/plotwish.c
++++ b/src/cgnstools/cgnsplot/plotwish.c
+@@ -15,14 +15,6 @@
+ #include "tk.h"
+ #include "locale.h"
+
+-/*
+- * The following variable is a special hack that is needed in order for
+- * Sun shared libraries to be used for Tcl.
+- */
+-
+-extern int matherr();
+-int *tclDummyMathPtr = (int *) matherr;
+-
+ extern int Cgnstcl_Init _ANSI_ARGS_((Tcl_Interp *interp));
+ extern int Tkogl_Init _ANSI_ARGS_((Tcl_Interp *interp));
+
+--- a/src/cgnstools/cgnsview/cgiowish.c
++++ b/src/cgnstools/cgnsview/cgiowish.c
+@@ -15,14 +15,6 @@
+ #include "tk.h"
+ #include "locale.h"
+
+-/*
+- * The following variable is a special hack that is needed in order for
+- * Sun shared libraries to be used for Tcl.
+- */
+-
+-extern int matherr();
+-int *tclDummyMathPtr = (int *) matherr;
+-
+ #ifdef TK_TEST
+ extern int Tcltest_Init _ANSI_ARGS_((Tcl_Interp *interp));
+ extern int Tktest_Init _ANSI_ARGS_((Tcl_Interp *interp));
+--- a/src/cgnstools/tkogl/tkAppInit.c
++++ b/src/cgnstools/tkogl/tkAppInit.c
+@@ -2,16 +2,6 @@
+ #include <GL/gl.h>
+ #include "tkogl.h"
+
+-/*
+- * The following variable is a special hack that is needed in order for
+- * Sun shared libraries to be used for Tcl.
+- */
+-
+-#ifdef NEED_MATHERR
+-extern int matherr();
+-int *tclDummyMathPtr = (int *) matherr;
+-#endif
+-
+ int Tcl_AppInit(Tcl_Interp *interp) /* Interpreter for application. */
+ {
+ if (Tcl_Init(interp) == TCL_ERROR) return TCL_ERROR;
More information about the arch-commits
mailing list