aboutsummaryrefslogtreecommitdiff
path: root/academic
diff options
context:
space:
mode:
Diffstat (limited to 'academic')
-rw-r--r--academic/gmsh/doinst.sh20
-rw-r--r--academic/gmsh/gmsh.SlackBuild10
-rw-r--r--academic/gmsh/gmsh.desktop3
-rw-r--r--academic/gmsh/gmsh.info6
4 files changed, 32 insertions, 7 deletions
diff --git a/academic/gmsh/doinst.sh b/academic/gmsh/doinst.sh
new file mode 100644
index 000000000000..8a5ffa8af527
--- /dev/null
+++ b/academic/gmsh/doinst.sh
@@ -0,0 +1,20 @@
+
+if [ -x /usr/bin/update-desktop-database ]; then
+ /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
+fi
+
+if [ -x /usr/bin/update-mime-database ]; then
+ /usr/bin/update-mime-database usr/share/mime >/dev/null 2>&1
+fi
+
+if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then
+ if [ -x /usr/bin/gtk-update-icon-cache ]; then
+ /usr/bin/gtk-update-icon-cache -f usr/share/icons/hicolor >/dev/null 2>&1
+ fi
+fi
+
+if [ -e usr/share/glib-2.0/schemas ]; then
+ if [ -x /usr/bin/glib-compile-schemas ]; then
+ /usr/bin/glib-compile-schemas usr/share/glib-2.0/schemas >/dev/null 2>&1
+ fi
+fi
diff --git a/academic/gmsh/gmsh.SlackBuild b/academic/gmsh/gmsh.SlackBuild
index 029fada39a58..9d959c11a60c 100644
--- a/academic/gmsh/gmsh.SlackBuild
+++ b/academic/gmsh/gmsh.SlackBuild
@@ -25,7 +25,7 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=gmsh
-VERSION=${VERSION:-4.9.2}
+VERSION=${VERSION:-4.10.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -95,6 +95,7 @@ if [ "${BUILDSTATICLIB:-no}" = "yes" ]; then
-DENABLE_BUILD_LIB=1 \
-DENABLE_PRIVATE_API=1 \
-DCMAKE_INSTALL_PREFIX:PATH=/usr \
+ -DCMAKE_INSTALL_DOCDIR:PATH=/usr/share/gmsh \
..
make lib
make install/fast DESTDIR=$PKG/
@@ -109,10 +110,11 @@ cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr \
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
-DENABLE_BLAS_LAPACK=1 \
-DENABLE_BUILD_SHARED=1 \
+ -DENABLE_PRIVATE_API=1 \
-DENABLE_PETSC=OFF \
-DENABLE_SLEPC=OFF \
..
-# only demos/ and tutorial/ folders will be leaved in the /usr/share/gmsh dir
+# only demos/ and tutorial/ folders will be left in the /usr/share/gmsh dir
make
make install DESTDIR=$PKG
@@ -139,8 +141,12 @@ cp -a CHANGELOG.txt CREDITS.txt LICENSE.txt README.txt $PKG/usr/doc/$PRGNAM-$VER
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
rm $PKG/usr/share/gmsh/*.txt
+# Remove onelab.py launcher from /usr/bin, since we are not using it here
+rm $PKG/usr/bin/onelab.py
+
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
+cat $CWD/doinst.sh > $PKG/install/doinst.sh
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE
diff --git a/academic/gmsh/gmsh.desktop b/academic/gmsh/gmsh.desktop
index ad08eb309c83..16f09b07af5c 100644
--- a/academic/gmsh/gmsh.desktop
+++ b/academic/gmsh/gmsh.desktop
@@ -4,7 +4,6 @@ Name=Gmsh
Comment=Automatic 3D finite element mesh generator
Icon=gmsh
Exec=gmsh
-Encoding=UTF-8
Terminal=false
Type=Application
-Categories=Education;Science;Math;
+Categories=Science;
diff --git a/academic/gmsh/gmsh.info b/academic/gmsh/gmsh.info
index 9ff8693389ad..914fc10f95ab 100644
--- a/academic/gmsh/gmsh.info
+++ b/academic/gmsh/gmsh.info
@@ -1,8 +1,8 @@
PRGNAM="gmsh"
-VERSION="4.9.2"
+VERSION="4.10.0"
HOMEPAGE="http://gmsh.info/"
-DOWNLOAD="http://gmsh.info/src/gmsh-4.9.2-source.tgz"
-MD5SUM="be2fe474662d09431b5abf43a4e1c41b"
+DOWNLOAD="http://gmsh.info/src/gmsh-4.10.0-source.tgz"
+MD5SUM="a4e6ba03ef305dbb8c6b698862ea17c6"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="fltk lapack med OpenCASCADE"