[arch-commits] Commit in gap/repos/community-x86_64 (PKGBUILD PKGBUILD gap.sh gap.sh)
Antonio Rojas
arojas at archlinux.org
Mon Oct 14 20:26:09 UTC 2019
Date: Monday, October 14, 2019 @ 20:26:09
Author: arojas
Revision: 515923
archrelease: copy trunk to community-x86_64
Added:
gap/repos/community-x86_64/PKGBUILD
(from rev 515922, gap/trunk/PKGBUILD)
gap/repos/community-x86_64/gap.sh
(from rev 515922, gap/trunk/gap.sh)
Deleted:
gap/repos/community-x86_64/PKGBUILD
gap/repos/community-x86_64/gap.sh
----------+
PKGBUILD | 246 +++++++++++++++++++++++++++++++------------------------------
gap.sh | 14 +--
2 files changed, 133 insertions(+), 127 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2019-10-14 20:25:40 UTC (rev 515922)
+++ PKGBUILD 2019-10-14 20:26:09 UTC (rev 515923)
@@ -1,120 +0,0 @@
-# Maintainer: Antonio Rojas <arojas at archlinux.org>
-# Contributor: TDY <tdy at archlinux.info>
-# Contributor: Rémy Oudompheng <oudomphe at clipper.ens.fr>
-
-pkgbase=gap
-pkgname=(gap gap-doc gap-packages)
-pkgver=4.10.2
-pkgrel=3
-pkgdesc="Groups, Algorithms, Programming: a system for computational discrete algebra"
-arch=(x86_64)
-url="https://www.gap-system.org/"
-license=(GPL)
-source=("https://www.gap-system.org/pub/gap/gap-${pkgver%.*}/tar.gz/gap-$pkgver.tar.gz" gap.sh)
-sha256sums=('11175bed0234101643d510d4ab94c44db30bd303bfe63d86b9b86ae67cff9e49'
- '143fb8a79a52c007903cce13407850df309ef803a9b00398d05169355917de46')
-makedepends=(libxaw givaro mpfi normaliz boost libsemigroups c-xsc zeromq fplll polymake wget chrpath)
-
-prepare() {
- cd gap-$pkgver
-
-# Use system normaliz
- sed -e '/build-normaliz.sh/d' -i bin/BuildPackages.sh
-# Use system libsemigroups
- sed -e 's|test "$with_external_libsemigroups" = yes|true|' -i pkg/semigroups-*/configure
-# Disable anupq package, it's i686 only
- rm -r pkg/anupq-*
-# Fix https://bugs.archlinux.org/task/55174
- sed -e '/xgap/d' -i pkg/sonata-*/PackageInfo.g
- sed -e '/XGAP/d' -i pkg/cryst/PackageInfo.g
-}
-
-build() {
- cd gap-$pkgver
- ./configure --prefix=/usr --with-gmp=system
-
- # https://bugzilla.gnome.org/show_bug.cgi?id=655517
- sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
-
- make
- make libgap.la
-
- # Install libgap so we can link packages against it
- mkdir -p tmp-install
- libtool --mode=install install libgap.la "$srcdir"/gap-$pkgver/tmp-install
-
- cd pkg
- export CXXFLAGS+=" -I/usr/include/cxsc" # Find c-xsc headers
- export LDFLAGS+=" -L$srcdir/gap-$pkgver/tmp-install -lgap" # See https://trac.sagemath.org/ticket/27372
- export LD_LIBRARY_PATH="$srcdir"/gap-$pkgver/tmp-install
- ../bin/BuildPackages.sh
-}
-
-_standardpkgs=(GAPDoc-* primgrp-* SmallGrp-* transgrp atlasrep autpgrp-* alnuth-* crisp-* ctbllib FactInt-* fga irredsol-* laguna-*
- polenta-* polycyclic-* resclasses-* sophus-* tomlib-*)
-
-package_gap() {
- depends=(gmp zlib)
- optdepends=('gap-packages: extra packages' 'gap-doc: documentation')
- conflicts=(libgap)
- replaces=(gap-data libgap gap-4.8 gap-4.8-data)
- cd gap-$pkgver
-
- install -Dm644 src/*.h -t "$pkgdir"/usr/include/gap
- install -Dm644 gen/config.h -t "$pkgdir"/usr/include/gap
- install -Dm644 src/hpc/*.h -t "$pkgdir"/usr/include/gap/hpc
-
- install -d "$pkgdir"/usr/lib
- libtool --mode=install install libgap.la "$pkgdir"/usr/lib
-
- mkdir -p "$pkgdir"/usr/{bin,lib/gap/pkg}
- cp -r grp lib "$pkgdir"/usr/lib/gap
- for _pkg in ${_standardpkgs[@]}; do
- cp -r pkg/$_pkg "$pkgdir"/usr/lib/gap/pkg
- done
- install -Dm755 gap -t "$pkgdir"/usr/lib/gap
-# Install launcher script
- install -Dm755 "$srcdir"/gap.sh "$pkgdir"/usr/bin/gap
-
- mkdir -p "$pkgdir"/usr/share
- ln -s /usr/lib/gap -t "$pkgdir"/usr/share # expected by sagemath
-}
-
-package_gap-doc() {
- depends=(gap)
- replaces=(gap-4.8-doc)
- pkgdesc="Documentation for GAP"
- cd gap-$pkgver
-
- mkdir -p "$pkgdir"/usr/lib/gap
- cp -r doc "$pkgdir"/usr/lib/gap
-}
-
-package_gap-packages() {
- depends=(gap)
- replaces=(gap-4.8-packages)
- optdepends=('normaliz: Normaliz interface package' 'libxaw: xgap package' 'c-xsc: float package' 'mpfi: float package'
- 'libmpc: float package' 'fplll: float package' 'zeromq: ZeroMQ interface package' 'planarity: digraph package'
- 'polymake: Polymake interface package' 'curl: curl interface package' 'libsemigroups: semigroups package')
- pkgdesc="Extra packages for GAP"
- cd gap-$pkgver
-
- mkdir -p "$pkgdir"/usr/lib/gap
- cp -r pkg "$pkgdir"/usr/lib/gap
-
-# provided by main gap package
- for _pkg in ${_standardpkgs[@]}; do
- rm -r "$pkgdir"/usr/lib/gap/pkg/$_pkg
- done
-
-# fix RPATH
- find "$pkgdir"/usr/lib/gap/pkg/ -name '*.so' | xargs chrpath -d
-
-# remove bundled planarity
- rm -r "$pkgdir"/usr/lib/gap/pkg/digraphs-*/bin/lib/
-
-# remove leftover binaries and source files
- find "$pkgdir"/usr/lib/gap/pkg -name .libs -o -name '*.o' | xargs rm -fr
- find "$pkgdir"/usr/lib/gap/pkg -type d -name src | xargs rm -fr
- rm -fr "$pkgdir"/usr/lib/gap/pkg/log
-}
Copied: gap/repos/community-x86_64/PKGBUILD (from rev 515922, gap/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2019-10-14 20:26:09 UTC (rev 515923)
@@ -0,0 +1,126 @@
+# Maintainer: Antonio Rojas <arojas at archlinux.org>
+# Contributor: TDY <tdy at archlinux.info>
+# Contributor: Rémy Oudompheng <oudomphe at clipper.ens.fr>
+
+pkgbase=gap
+pkgname=(gap gap-doc gap-packages)
+pkgver=4.10.2
+pkgrel=4
+pkgdesc="Groups, Algorithms, Programming: a system for computational discrete algebra"
+arch=(x86_64)
+url="https://www.gap-system.org/"
+license=(GPL)
+source=("https://www.gap-system.org/pub/gap/gap-${pkgver%.*}/tar.gz/gap-$pkgver.tar.gz" gap.sh)
+sha256sums=('11175bed0234101643d510d4ab94c44db30bd303bfe63d86b9b86ae67cff9e49'
+ '143fb8a79a52c007903cce13407850df309ef803a9b00398d05169355917de46')
+makedepends=(libxaw givaro mpfi normaliz boost libsemigroups c-xsc zeromq fplll polymake wget chrpath)
+
+prepare() {
+ cd gap-$pkgver
+
+# Use system normaliz
+ sed -e '/build-normaliz.sh/d' -i bin/BuildPackages.sh
+# Use system libsemigroups
+ sed -e 's|test "$with_external_libsemigroups" = yes|true|' -i pkg/semigroups-*/configure
+# Disable anupq package, it's i686 only
+ rm -r pkg/anupq-*
+# Fix https://bugs.archlinux.org/task/55174
+ sed -e '/xgap/d' -i pkg/sonata-*/PackageInfo.g
+ sed -e '/XGAP/d' -i pkg/cryst/PackageInfo.g
+}
+
+build() {
+ cd gap-$pkgver
+ ./configure --prefix=/usr --with-gmp=system
+
+ # https://bugzilla.gnome.org/show_bug.cgi?id=655517
+ sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
+
+ make
+ make libgap.la
+
+ # Install libgap so we can link packages against it
+ mkdir -p tmp-install
+ libtool --mode=install install libgap.la "$srcdir"/gap-$pkgver/tmp-install
+
+ cd pkg
+ export CXXFLAGS+=" -I/usr/include/cxsc" # Find c-xsc headers
+ export LDFLAGS+=" -L$srcdir/gap-$pkgver/tmp-install -lgap" # See https://trac.sagemath.org/ticket/27372
+ export LD_LIBRARY_PATH="$srcdir"/gap-$pkgver/tmp-install
+ ../bin/BuildPackages.sh
+}
+
+_standardpkgs=(GAPDoc-* primgrp-* SmallGrp-* transgrp atlasrep autpgrp-* alnuth-* crisp-* ctbllib FactInt-* fga irredsol-* laguna-*
+ polenta-* polycyclic-* resclasses-* sophus-* tomlib-*)
+
+package_gap() {
+ depends=(gmp zlib)
+ optdepends=('gap-packages: extra packages' 'gap-doc: documentation')
+ conflicts=(libgap)
+ replaces=(gap-data libgap gap-4.8 gap-4.8-data)
+ cd gap-$pkgver
+
+ install -Dm644 src/*.h -t "$pkgdir"/usr/include/gap
+ install -Dm644 gen/config.h -t "$pkgdir"/usr/include/gap
+ install -Dm644 src/hpc/*.h -t "$pkgdir"/usr/include/gap/hpc
+
+ install -d "$pkgdir"/usr/lib
+ libtool --mode=install install libgap.la "$pkgdir"/usr/lib
+
+ mkdir -p "$pkgdir"/usr/{bin,lib/gap/pkg}
+ cp -r grp lib "$pkgdir"/usr/lib/gap
+ for _pkg in ${_standardpkgs[@]}; do
+ cp -r pkg/$_pkg "$pkgdir"/usr/lib/gap/pkg
+ done
+ install -Dm755 gap -t "$pkgdir"/usr/lib/gap
+# Install launcher script
+ install -Dm755 "$srcdir"/gap.sh "$pkgdir"/usr/bin/gap
+
+ mkdir -p "$pkgdir"/usr/share
+ ln -s /usr/lib/gap -t "$pkgdir"/usr/share # expected by sagemath
+}
+
+package_gap-doc() {
+ depends=(gap)
+ replaces=(gap-4.8-doc)
+ pkgdesc="Documentation for GAP"
+ cd gap-$pkgver
+
+ mkdir -p "$pkgdir"/usr/lib/gap
+ cp -r doc "$pkgdir"/usr/lib/gap
+}
+
+package_gap-packages() {
+ depends=(gap)
+ replaces=(gap-4.8-packages)
+ optdepends=('normaliz: Normaliz interface package' 'libxaw: xgap package' 'c-xsc: float package' 'mpfi: float package'
+ 'libmpc: float package' 'fplll: float package' 'zeromq: ZeroMQ interface package' 'planarity: digraph package'
+ 'polymake: Polymake interface package' 'curl: curl interface package' 'libsemigroups: semigroups package')
+ pkgdesc="Extra packages for GAP"
+ cd gap-$pkgver
+
+ mkdir -p "$pkgdir"/usr/{bin,lib/gap}
+ cp -r pkg "$pkgdir"/usr/lib/gap
+
+# fix xgap launch script
+ sed -e 's|/build/gap/src/gap-4.10.2|/usr/lib/gap|g' -e 's|^GAP=.*|GAP=/usr/lib/gap/gap|g' \
+ "$pkgdir"/usr/lib/gap/pkg/xgap-*/xgap.sh > "$pkgdir"/usr/bin/xgap
+ chmod 755 "$pkgdir"/usr/bin/xgap
+ rm "$pkgdir"/usr/lib/gap/pkg/xgap-*/xgap.sh*
+
+# provided by main gap package
+ for _pkg in ${_standardpkgs[@]}; do
+ rm -r "$pkgdir"/usr/lib/gap/pkg/$_pkg
+ done
+
+# fix RPATH
+ find "$pkgdir"/usr/lib/gap/pkg/ -name '*.so' | xargs chrpath -d
+
+# remove bundled planarity
+ rm -r "$pkgdir"/usr/lib/gap/pkg/digraphs-*/bin/lib/
+
+# remove leftover binaries and source files
+ find "$pkgdir"/usr/lib/gap/pkg -name .libs -o -name '*.o' | xargs rm -fr
+ find "$pkgdir"/usr/lib/gap/pkg -type d -name src | xargs rm -fr
+ rm -fr "$pkgdir"/usr/lib/gap/pkg/log
+}
Deleted: gap.sh
===================================================================
--- gap.sh 2019-10-14 20:25:40 UTC (rev 515922)
+++ gap.sh 2019-10-14 20:26:09 UTC (rev 515923)
@@ -1,7 +0,0 @@
-#!/bin/sh
-
-GAP_ROOT="/usr/lib/gap"
-GAP_DIR=$GAP_ROOT
-GAP_EXE=$GAP_ROOT
-
-exec "$GAP_EXE/gap" -l "$GAP_DIR" "$@"
Copied: gap/repos/community-x86_64/gap.sh (from rev 515922, gap/trunk/gap.sh)
===================================================================
--- gap.sh (rev 0)
+++ gap.sh 2019-10-14 20:26:09 UTC (rev 515923)
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+GAP_ROOT="/usr/lib/gap"
+GAP_DIR=$GAP_ROOT
+GAP_EXE=$GAP_ROOT
+
+exec "$GAP_EXE/gap" -l "$GAP_DIR" "$@"
More information about the arch-commits
mailing list