[arch-commits] Commit in cgns/repos/community-x86_64 (4 files)
Bruno Pagani
archange at archlinux.org
Tue Oct 23 16:01:00 UTC 2018
Date: Tuesday, October 23, 2018 @ 16:01:00
Author: archange
Revision: 398663
archrelease: copy trunk to community-x86_64
Added:
cgns/repos/community-x86_64/PKGBUILD
(from rev 398662, cgns/trunk/PKGBUILD)
cgns/repos/community-x86_64/fix_matherr.patch
(from rev 398662, cgns/trunk/fix_matherr.patch)
Deleted:
cgns/repos/community-x86_64/PKGBUILD
cgns/repos/community-x86_64/fix_matherr.patch
-------------------+
PKGBUILD | 128 +++++++++++++++++++++++------------------------
fix_matherr.patch | 140 ++++++++++++++++++++++++++--------------------------
2 files changed, 134 insertions(+), 134 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2018-10-23 16:00:45 UTC (rev 398662)
+++ PKGBUILD 2018-10-23 16:01:00 UTC (rev 398663)
@@ -1,64 +0,0 @@
-# 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-x86_64/PKGBUILD (from rev 398662, cgns/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2018-10-23 16:01:00 UTC (rev 398663)
@@ -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=7
+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}/
+}
Deleted: fix_matherr.patch
===================================================================
--- fix_matherr.patch 2018-10-23 16:00:45 UTC (rev 398662)
+++ fix_matherr.patch 2018-10-23 16:01:00 UTC (rev 398663)
@@ -1,70 +0,0 @@
---- 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;
Copied: cgns/repos/community-x86_64/fix_matherr.patch (from rev 398662, cgns/trunk/fix_matherr.patch)
===================================================================
--- fix_matherr.patch (rev 0)
+++ fix_matherr.patch 2018-10-23 16:01:00 UTC (rev 398663)
@@ -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