Gentoo Archives: gentoo-commits

From: Andrew Ammerlaan <andrewammerlaan@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-mathematics/gsl-shell/, sci-mathematics/gsl-shell/files/
Date: Wed, 02 Mar 2022 11:00:16
Message-Id: 1646218806.c28d040c2e8882070888e9d8a6213b63140010c8.andrewammerlaan@gentoo
1 commit: c28d040c2e8882070888e9d8a6213b63140010c8
2 Author: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
3 AuthorDate: Wed Mar 2 10:59:34 2022 +0000
4 Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
5 CommitDate: Wed Mar 2 11:00:06 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c28d040c
7
8 sci-mathematics/gsl-shell: add version 2.3.2
9
10 Closes: https://bugs.gentoo.org/570288
11 Bug: https://bugs.gentoo.org/725628
12 Package-Manager: Portage-3.0.30, Repoman-3.0.3
13 Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org>
14
15 sci-mathematics/gsl-shell/Manifest | 1 +
16 .../gsl-shell-2.3.2-no-compile-in-install.patch | 24 +++++++++
17 ...gsl-shell-2.3.2-sphinx-extmath-to-imgmath.patch | 13 +++++
18 sci-mathematics/gsl-shell/gsl-shell-2.3.2.ebuild | 62 ++++++++++++++++++++++
19 4 files changed, 100 insertions(+)
20
21 diff --git a/sci-mathematics/gsl-shell/Manifest b/sci-mathematics/gsl-shell/Manifest
22 index a84b8b1d7f52..4bf89166a2de 100644
23 --- a/sci-mathematics/gsl-shell/Manifest
24 +++ b/sci-mathematics/gsl-shell/Manifest
25 @@ -1 +1,2 @@
26 DIST gsl-shell-2.3.0-beta1.tar.gz 3380519 BLAKE2B 3f63c74d48f01d1cd181a275facd979d31a06089004ac0db3b060d77cdcf4fb195ad064a76c64a7a13a6641102864cb79845b8f15573bc1481365952835f1fd7 SHA512 627c0b6bb35bc1a33bab16d0bb2b193b5a005a1d97a96e6a9038fbe7144936427131197983a2ef347ed91c655a82a4d477430a610d9e36453a2669ef0baae231
27 +DIST gsl-shell-2.3.2.tar.gz 3400376 BLAKE2B 8218b4d3232048fe7575631c7acc66d313520ee4d41a1dd2c267f021c8271a427673a575cc00f8f55a4868b8ec5e9626c0cbaa6ea9fa76662a726e436a527cf3 SHA512 6379380ab15a7ec477d67d36305ce76c551d32e88d8611447eeb6deaf9877c362392bce45599a2b2988331064c22626260c41f8548624c23e2c4e3c59c87c291
28
29 diff --git a/sci-mathematics/gsl-shell/files/gsl-shell-2.3.2-no-compile-in-install.patch b/sci-mathematics/gsl-shell/files/gsl-shell-2.3.2-no-compile-in-install.patch
30 new file mode 100644
31 index 000000000000..d8cdaa02a2c5
32 --- /dev/null
33 +++ b/sci-mathematics/gsl-shell/files/gsl-shell-2.3.2-no-compile-in-install.patch
34 @@ -0,0 +1,24 @@
35 +diff --git a/Makefile b/Makefile
36 +index 39b4872..4c04865 100644
37 +--- a/Makefile
38 ++++ b/Makefile
39 +@@ -154,8 +154,8 @@ mkdir -p $1$(PREFIX)/bin
40 + mkdir -p $1$(PREFIX)/share/applications
41 + mkdir -p $1$(PREFIX)/share/icons/hicolor/128x128/apps
42 + mkdir -p $1$(PREFIX)/share/$(PACKAGE_NAME)/$(PACKAGE_VERSION)
43 +-cp $(GSL_SHELL_GUI) $(GSL_SHELL) $1$(PREFIX)/bin
44 +-strip $1$(PREFIX)/bin/$(GSL_SHELL) $1$(PREFIX)/bin/$(GSL_SHELL_GUI)
45 ++test -f $(GSL_SHELL_GUI) && cp $(GSL_SHELL_GUI) $1$(PREFIX)/bin || :
46 ++test -f $(GSL_SHELL) && cp $(GSL_SHELL) $1$(PREFIX)/bin || :
47 + test -f $(LUAJIT_SO) && \
48 + mkdir -p $1$(PREFIX)/lib && \
49 + cp $(LUAJIT_SO) $1$(PREFIX)/lib && \
50 +@@ -168,7 +168,7 @@ $(CP_REL) $(LUA_BASE_FILES) $1$(PREFIX)/share/$(PACKAGE_NAME)/$(PACKAGE_VERSION)
51 + $(CP_REL) $(EXAMPLES_FILES) $1$(PREFIX)/bin
52 + endef
53 +
54 +-install: $(GSL_SHELL) $(GSL_SHELL_GUI)
55 ++install:
56 + $(call install-to-dir,$(DESTDIR))
57 +
58 + debian: $(DEBIAN_PACKAGE)
59
60 diff --git a/sci-mathematics/gsl-shell/files/gsl-shell-2.3.2-sphinx-extmath-to-imgmath.patch b/sci-mathematics/gsl-shell/files/gsl-shell-2.3.2-sphinx-extmath-to-imgmath.patch
61 new file mode 100644
62 index 000000000000..29ddaf2fd710
63 --- /dev/null
64 +++ b/sci-mathematics/gsl-shell/files/gsl-shell-2.3.2-sphinx-extmath-to-imgmath.patch
65 @@ -0,0 +1,13 @@
66 +diff --git a/doc/user-manual/conf.py b/doc/user-manual/conf.py
67 +index 899f5d6..9475d85 100644
68 +--- a/doc/user-manual/conf.py
69 ++++ b/doc/user-manual/conf.py
70 +@@ -25,7 +25,7 @@ import sys, os
71 +
72 + # Add any Sphinx extension module names here, as strings. They can be extensions
73 + # coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
74 +-extensions = ['sphinx.ext.intersphinx', 'sphinx.ext.pngmath']
75 ++extensions = ['sphinx.ext.intersphinx', 'sphinx.ext.imgmath']
76 +
77 + # Add any paths that contain templates here, relative to this directory.
78 + templates_path = ['_templates']
79
80 diff --git a/sci-mathematics/gsl-shell/gsl-shell-2.3.2.ebuild b/sci-mathematics/gsl-shell/gsl-shell-2.3.2.ebuild
81 new file mode 100644
82 index 000000000000..14ec634d1a7c
83 --- /dev/null
84 +++ b/sci-mathematics/gsl-shell/gsl-shell-2.3.2.ebuild
85 @@ -0,0 +1,62 @@
86 +# Copyright 1999-2022 Gentoo Authors
87 +# Distributed under the terms of the GNU General Public License v2
88 +
89 +EAPI=8
90 +
91 +PYTHON_COMPAT=( python3_{8..10} )
92 +DOCS_BUILDER="sphinx"
93 +DOCS_DIR="doc/user-manual"
94 +DOCS_AUTODOC=0
95 +inherit toolchain-funcs python-any-r1 docs
96 +
97 +MY_P=${P/_/-}
98 +DESCRIPTION="Lua interactive shell for sci-libs/gsl"
99 +HOMEPAGE="https://www.nongnu.org/gsl-shell/"
100 +SRC_URI="https://github.com/franko/gsl-shell/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
101 +S="${WORKDIR}/${MY_P}"
102 +
103 +SLOT="0"
104 +LICENSE="GPL-3"
105 +KEYWORDS="~amd64 ~x86"
106 +IUSE="fox"
107 +
108 +RDEPEND="
109 + >=sci-libs/gsl-1.14:=
110 + virtual/blas
111 + >=x11-libs/agg-2.5
112 + >=media-libs/freetype-2.4.10
113 + sys-libs/readline:0=
114 + || ( media-fonts/ubuntu-font-family media-fonts/freefont media-fonts/dejavu )
115 + fox? ( x11-libs/fox:1.6 )
116 +"
117 +DEPEND="${RDEPEND}"
118 +BDEPEND="
119 + dev-lang/luajit
120 + virtual/pkgconfig
121 + doc? ( virtual/latex-base )
122 +"
123 +
124 +PATCHES=(
125 + "${FILESDIR}/${P}-no-compile-in-install.patch"
126 + "${FILESDIR}/${P}-sphinx-extmath-to-imgmath.patch"
127 +)
128 +
129 +src_prepare() {
130 + tc-export PKG_CONFIG
131 + default
132 +}
133 +
134 +src_compile() {
135 + local BLAS=$($(tc-getPKG_CONFIG) --libs blas)
136 + local GSL=$($(tc-getPKG_CONFIG) --libs gsl)
137 + emake -j1 gsl-shell CC="$(tc-getCC)" CXX="$(tc-getCXX)" CFLAGS="${CFLAGS}" \
138 + GSL_LIBS="$($(tc-getPKG_CONFIG) --libs gsl) ${BLAS}"
139 + if use fox; then
140 + local FOX_INCLUDES="$(WANT_FOX=1.6 fox-config --cflags)"
141 + local FOX_LIBS="$(WANT_FOX=1.6 fox-config --libs)"
142 + emake -j1 gsl-shell-gui CC="$(tc-getCC)" CXX="$(tc-getCXX)" \
143 + CFLAGS="${CFLAGS}" FOX_INCLUDES="${FOX_INCLUDES}" FOX_LIBS="${FOX_LIBS}" \
144 + GSL_LIBS="$($(tc-getPKG_CONFIG) --libs gsl) ${BLAS}"
145 + fi
146 + docs_compile
147 +}