diff options
author | 2023-05-02 14:14:13 +0200 | |
---|---|---|
committer | 2023-05-02 14:15:29 +0200 | |
commit | 368c77cdae93a2cccd93575f349926e76c335f90 (patch) | |
tree | 689db012131fde5d91d5a28389b46c6400edb748 /sci-mathematics | |
parent | sci-libs/xraylib: treeclean (diff) | |
download | sci-368c77cdae93a2cccd93575f349926e76c335f90.tar.gz sci-368c77cdae93a2cccd93575f349926e76c335f90.tar.bz2 sci-368c77cdae93a2cccd93575f349926e76c335f90.zip |
sci-mathematics/gap: treeclean
Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>
Diffstat (limited to 'sci-mathematics')
-rw-r--r-- | sci-mathematics/gap/Manifest | 2 | ||||
-rw-r--r-- | sci-mathematics/gap/files/gap-4.11.0-autoconf.patch | 86 | ||||
-rw-r--r-- | sci-mathematics/gap/gap-4.11.0.ebuild | 140 | ||||
-rw-r--r-- | sci-mathematics/gap/metadata.xml | 30 |
4 files changed, 0 insertions, 258 deletions
diff --git a/sci-mathematics/gap/Manifest b/sci-mathematics/gap/Manifest deleted file mode 100644 index b64b9f6e7..000000000 --- a/sci-mathematics/gap/Manifest +++ /dev/null @@ -1,2 +0,0 @@ -DIST gap-4.11.0-core-packages.tar.gz 53096715 BLAKE2B 1cfec307efe95a91869e9bf4d3947dd9010a26a0cbe2c317eafb5f5402068f00f8f1518e995c92a7827e9a0fa387fc8db5dc6dd2f6cc5a1b24df1754c1e96c7f SHA512 e4ac9ffd7c33121af46ec3f255634c47efb8445429b570a8ad3c8784688f7e966d48c8f74aa50d039608974bd93e05bf61497df02e4b42f5577651c88c3884d4 -DIST gap-4.11.0-core.tar.bz2 13467788 BLAKE2B a0e1415bb2a6725f4ef6283e4823e1c1cd4d9813f981f5e6d02554fe2ae3ad05793320239e70d6412a4d4722da436bacd4fe127c79b9ec891ccbdfa3cd7c2d12 SHA512 94d5451e76ddcea33a5f83b1082f9b5d0ecb83f30491bdf510338f1eecea9faa868312cb682b5dd08c2b71c03cd3ca3f837df98fb96e52c8b89ab2443402ee49 diff --git a/sci-mathematics/gap/files/gap-4.11.0-autoconf.patch b/sci-mathematics/gap/files/gap-4.11.0-autoconf.patch deleted file mode 100644 index b220f3ada..000000000 --- a/sci-mathematics/gap/files/gap-4.11.0-autoconf.patch +++ /dev/null @@ -1,86 +0,0 @@ -diff --git a/configure.ac b/configure.ac -index 938fcd3..b3b2340 100644 ---- a/configure.ac -+++ b/configure.ac -@@ -6,6 +6,7 @@ AC_INIT([GAP], [4.dev], [support@gap-system.org], [gap], [https://www.gap-system - - AC_CONFIG_SRCDIR([src/gap.c]) - AC_CONFIG_AUX_DIR([cnf]) -+AC_CONFIG_MACRO_DIR([m4]) - - AC_CONFIG_HEADERS([gen/config.h:src/config.h.in]) - AC_CONFIG_COMMANDS([gen/stamp-h], [echo timestamp > gen/stamp-h]) -@@ -207,29 +208,41 @@ dnl User setting: Debug mode (off by default) - dnl - AC_ARG_ENABLE([debug], - [AS_HELP_STRING([--enable-debug], [enable debug mode])], -- [AC_DEFINE([GAP_KERNEL_DEBUG], [1], [define if building in debug mode]) -- AC_DEFINE([GAP_PRINT_BACKTRACE], [1], [to enable backtraces upon crashes])], -+ [], - [enable_debug=no] - ) - AC_MSG_CHECKING([whether to enable debug mode]) - AC_MSG_RESULT([$enable_debug]) - -+AS_IF([test "x$enable_debug" != "xno"], -+ [AC_DEFINE([GAP_KERNEL_DEBUG], [1], [define if building in debug mode]) -+ AC_DEFINE([GAP_PRINT_BACKTRACE], [1], [to enable backtraces upon crashes])], -+) -+ - AC_ARG_ENABLE([memory-checking], - [AS_HELP_STRING([--enable-memory-checking], [enable memory checking])], -- [AC_DEFINE([GAP_MEM_CHECK], [1], [define if building with memory checking])], -+ [], - [enable_memory_checking=no] - ) - AC_MSG_CHECKING([whether to enable memory checking]) - AC_MSG_RESULT([$enable_memory_checking]) - -+AS_IF([test "x$enable_memory_checking" != "xno"], -+ [AC_DEFINE([GAP_MEM_CHECK], [1], [define if building with memory checking])] -+) -+ - AC_ARG_ENABLE([valgrind], - [AS_HELP_STRING([--enable-valgrind], [enable valgrind extensions to GASMAN])], -- [AC_DEFINE([GAP_MEMORY_CANARY], [1], [define if building with valgrind extensions])], -+ [], - [enable_valgrind=no] - ) - AC_MSG_CHECKING([whether to enable valgrind extensions to GASMAN]) - AC_MSG_RESULT([$enable_valgrind]) - -+AS_IF([test "x$enable_valgrind" != "xno"], -+ [AC_DEFINE([GAP_MEMORY_CANARY], [1], [define if building with valgrind extensions])] -+) -+ - if test "x$enable_valgrind" != "xno" -a "x$enable_memory_checking" != "xno"; then - AC_MSG_ERROR([--enable-valgrind and --enable-memory-checking cannot be used at the same time]) - fi -@@ -549,10 +562,9 @@ AS_IF([test "x$with_gc" = xboehm], - # - # As a side benefit, users do not have to worry about installing dependencies. - -- BUILD_LIBATOMIC_OPS=yes -- LIBATOMIC_OPS_CPPFLAGS='-I${abs_builddir}/extern/install/libatomic_ops/include' -- LIBATOMIC_OPS_LDFLAGS='${abs_builddir}/extern/install/libatomic_ops/lib/libatomic_ops.la' -- LIBATOMIC_OPS_LIBS= -+ BUILD_LIBATOMIC_OPS=no -+ #PKG_CHECK_MODULES([LIBATOMIC_OPS], [atomic_ops]) -+ - AC_SUBST([BUILD_LIBATOMIC_OPS]) - AC_SUBST([LIBATOMIC_OPS_CPPFLAGS]) - AC_SUBST([LIBATOMIC_OPS_LDFLAGS]) -@@ -561,11 +573,8 @@ AS_IF([test "x$with_gc" = xboehm], - ATOMIC_OPS_CFLAGS=$LIBATOMIC_OPS_CPPFLAGS - ATOMIC_OPS_LIBS=$LIBATOMIC_OPS_LDFLAGS - -- -- BUILD_BOEHM_GC=yes -- BOEHM_GC_CPPFLAGS='-I${abs_builddir}/extern/install/gc/include' -- BOEHM_GC_LDFLAGS='${abs_builddir}/extern/install/gc/lib/libgc.la' -- BOEHM_GC_LIBS= -+ BUILD_BOEHM_GC=no -+ #PKG_CHECK_MODULES([BOEHM_GC], [bdw-gc]) - AC_SUBST([BUILD_BOEHM_GC]) - AC_SUBST([BOEHM_GC_CPPFLAGS]) - AC_SUBST([BOEHM_GC_LDFLAGS]) diff --git a/sci-mathematics/gap/gap-4.11.0.ebuild b/sci-mathematics/gap/gap-4.11.0.ebuild deleted file mode 100644 index d94a02143..000000000 --- a/sci-mathematics/gap/gap-4.11.0.ebuild +++ /dev/null @@ -1,140 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -PYTHON_COMPAT=( python3_{7..9} ) -inherit autotools python-any-r1 - -DESCRIPTION="Computational discrete algebra system - minimal GAP core system" -HOMEPAGE="https://www.gap-system.org/" -SRC_URI="https://github.com/gap-system/gap/releases/download/v${PV}/gap-${PV}-core.tar.bz2 - https://github.com/gap-system/gap/releases/download/v${PV}/packages-required-v${PV}.tar.gz -> ${P}-core-packages.tar.gz -" - -SLOT="0" -LICENSE="GPL-2" -KEYWORDS="~amd64" -# broken HPC and boehm -IUSE="boehm debug hpc julia julia-gc memcheck valgrind" -REQUIRED_USE="valgrind? ( memcheck ) julia-gc? ( julia ) hpc? ( boehm )" - -RDEPEND+=" - dev-libs/gmp - net-libs/zeromq - sci-libs/cddlib - sys-libs/readline - sys-libs/zlib - julia? ( || ( - dev-lang/julia - dev-lang/julia-bin:* - ) ) - valgrind? ( dev-util/valgrind ) -" -DEPEND+="${RDEPEND}" -BDEPEND+="${PYTHON_DEPS}" - -PATCHES=( "${FILESDIR}"/${PN}-4.11.0-autoconf.patch ) - -pkg_setup() { - if use valgrind; then - elog "If you enable the use of valgrind duing building" - elog "be sure that you have enabled the proper flags" - elog "in gcc to support it:" - elog "https://wiki.gentoo.org/wiki/Debugging#Valgrind" - fi -} - -src_unpack() { - default - mkdir -p "${S}"/pkg || die - mv "${WORKDIR}"/{GAPDoc*,primgrp*,SmallGrp*,transgrp*} "${S}"/pkg || die -} - -src_prepare() { - default - eautoreconf -f -i - - # use GNUmakefile - rm Makefile || die - - # make sure of no external gmp/zlib being build - # gap uses bundled libatomic_ops and boehm-gc - rm -rf extern || die - - # this test takes TOO long - rm tst/teststandard/opers/AutomorphismGroup.tst || die -} - -src_configure() { - addwrite /proc/self - local myconf=( - --enable-shared - --disable-static - --with-gmp - --with-zlib - --with-readline - --enable-popcnt - $(use_enable memcheck memory-checking) - $(use_enable valgrind) - $(use_enable hpc hpcgap) - $(use_enable debug) - $(use_with julia) - ) - # garbage collector settings - if use boehm; then - myconf+=( --with-gc=boehm ) - elif use julia-gc; then - myconf+=( --with-gc=julia ) - else - myconf+=( --with-gc=gasman ) - fi - - # only supporting amd64 builds - econf ${myconf[@]} ABI=64 -} - -src_test() { - emake testinstall testlibgap -} - -src_install() { - # upstream has no install function - # we try to simulate on as best as we can - - dodoc README{,.buildsys,.hpcgap}.md \ - CHANGES.md CITATION - - sed -e "s:^abs_top_builddir=.*$:abs_top_builddir=\"${EPREFIX}/usr/share/gap\":" \ - -e "s:^abs_top_srcdir=.*$:abs_top_srcdir=\"${EPREFIX}/usr/share/gap\":" \ - -i gac || die - dobin gac - - exeinto /usr/share/gap/ - doexe gap - - cat <<-EOF > gap.sh || die - #!/bin/sh - exec "${EPREFIX}"/usr/share/gap/gap -l "${EPREFIX}"/usr/share/gap "\$@" - EOF - newbin gap.sh gap - - dolib.so .libs/libgap.so* - - dodir /usr/include/gap - cp -a src/*.h gen/*.h "${ED}"/usr/include/gap || die - if use hpc; then - dodir /usr/include/gap/hpc - cp -a src/hpc/*.h "${ED}"/usr/include/gap/hpc || die - fi - - cp -a doc grp lib libtool pkg "${ED}"/usr/share/gap || die - - sed -e "s:${S}:${EPREFIX}/usr/share/gap:g" -i sysinfo.gap - insinto /usr/share/gap - doins sysinfo.gap* - - # remove objects and static lib files - find "${ED}" \( -name "*.o" -o -name "*.a" -o -name "*.la" \) \ - -delete || die -} diff --git a/sci-mathematics/gap/metadata.xml b/sci-mathematics/gap/metadata.xml deleted file mode 100644 index f1f953b82..000000000 --- a/sci-mathematics/gap/metadata.xml +++ /dev/null @@ -1,30 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> -<pkgmetadata> - <maintainer type="person"> - <email>gentoo@aisha.cc</email> - <name>Aisha Tammy</name> - </maintainer> - <maintainer type="project"> - <email>sci-mathematics@gentoo.org</email> - <name>Gentoo Mathematics Project</name> - </maintainer> - <longdescription lang="en"> - Groups, Algorithms, Programming is a system for computational - discrete algebra, with particular emphasis on Computational Group - Theory. GAP provides a programming language, a library of thousands - of functions implementing algebraic algorithms written in the GAP - language as well as large data libraries of algebraic objects. GAP - is used in research and teaching for studying groups and their - representations, rings, vector spaces, algebras, combinatorial - structures, and more. - </longdescription> - <use> - <flag name="boehm">Use <pkg>dev-libs/boehm-gc</pkg> as garbage collector</flag> - <flag name="hpc">Build gap with multithreading and parallel process support</flag> - <flag name="julia">Build julia bindings</flag> - <flag name="julia-gc">Use the julia garbage collector</flag> - <flag name="memcheck">Enable memory checking</flag> - <flag name="valgrind">Build symbols to be used by valgrind</flag> - </use> -</pkgmetadata> |