Diff gsl-shell-2.3.2 with a gsl-shell-2.3.5
/usr/portage/sci-mathematics/gsl-shell/gsl-shell-2.3.5.ebuild 2023-10-09 14:52:35.112368492 +0300 | ||
---|---|---|
3 | 3 | |
4 | 4 |
EAPI=8 |
5 | 5 | |
6 |
PYTHON_COMPAT=( python3_{9..10} ) |
|
6 |
PYTHON_COMPAT=( python3_{9..11} ) |
|
7 | 7 |
DOCS_BUILDER="sphinx" |
8 | 8 |
DOCS_DIR="doc/user-manual" |
9 | 9 |
DOCS_AUTODOC=0 |
10 |
inherit toolchain-funcs python-any-r1 docs |
|
10 | ||
11 |
inherit meson python-any-r1 docs |
|
11 | 12 | |
12 | 13 |
MY_P=${P/_/-} |
14 | ||
13 | 15 |
DESCRIPTION="Lua interactive shell for sci-libs/gsl" |
14 | 16 |
HOMEPAGE="https://www.nongnu.org/gsl-shell/" |
15 | 17 |
SRC_URI="https://github.com/franko/gsl-shell/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" |
... | ... | |
18 | 20 |
SLOT="0" |
19 | 21 |
LICENSE="GPL-3" |
20 | 22 |
KEYWORDS="~amd64 ~x86" |
21 |
IUSE="fox" |
|
22 | 23 | |
23 | 24 |
RDEPEND=" |
24 | 25 |
>=sci-libs/gsl-1.14:= |
25 |
virtual/blas |
|
26 |
>=x11-libs/agg-2.5 |
|
26 |
virtual/blas[eselect-ldso] |
|
27 |
>=x11-libs/agg-2.5[X] |
|
27 | 28 |
>=media-libs/freetype-2.4.10 |
28 | 29 |
sys-libs/readline:0= |
29 | 30 |
|| ( media-fonts/ubuntu-font-family media-fonts/freefont media-fonts/dejavu ) |
30 |
fox? ( x11-libs/fox:1.6 ) |
|
31 |
x11-libs/fox:1.7 |
|
32 |
x11-libs/libX11 |
|
31 | 33 |
" |
32 | 34 |
DEPEND="${RDEPEND}" |
33 | 35 |
BDEPEND=" |
... | ... | |
37 | 39 |
" |
38 | 40 | |
39 | 41 |
PATCHES=( |
40 |
"${FILESDIR}/${P}-no-compile-in-install.patch" |
|
41 |
"${FILESDIR}/${P}-sphinx-extmath-to-imgmath.patch" |
|
42 |
"${FILESDIR}/${P}-no-fetching.patch" |
|
42 | 43 |
) |
43 | 44 | |
44 |
src_prepare() { |
|
45 |
tc-export PKG_CONFIG |
|
46 |
default |
|
47 |
} |
|
48 | ||
49 | 45 |
src_compile() { |
50 |
local BLAS=$($(tc-getPKG_CONFIG) --libs blas) |
|
51 |
local GSL=$($(tc-getPKG_CONFIG) --libs gsl) |
|
52 |
emake -j1 gsl-shell CC="$(tc-getCC)" CXX="$(tc-getCXX)" CFLAGS="${CFLAGS}" \ |
|
53 |
GSL_LIBS="$($(tc-getPKG_CONFIG) --libs gsl) ${BLAS}" |
|
54 |
if use fox; then |
|
55 |
local FOX_INCLUDES="$(WANT_FOX=1.6 fox-config --cflags)" |
|
56 |
local FOX_LIBS="$(WANT_FOX=1.6 fox-config --libs)" |
|
57 |
emake -j1 gsl-shell-gui CC="$(tc-getCC)" CXX="$(tc-getCXX)" \ |
|
58 |
CFLAGS="${CFLAGS}" FOX_INCLUDES="${FOX_INCLUDES}" FOX_LIBS="${FOX_LIBS}" \ |
|
59 |
GSL_LIBS="$($(tc-getPKG_CONFIG) --libs gsl) ${BLAS}" |
|
60 |
fi |
|
46 |
meson_src_compile |
|
61 | 47 |
docs_compile |
62 | 48 |
} |