1 |
commit: 5d7c81be8900a8f0c8e482a0c77852b08d71a5ad |
2 |
Author: Gerhard Bräunlich <wippbox <AT> gmx <DOT> net> |
3 |
AuthorDate: Tue Sep 6 14:48:43 2016 +0000 |
4 |
Commit: David Seifert <soap <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Sep 6 20:04:02 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5d7c81be |
7 |
|
8 |
sci-mathematics/gsl-shell: Version bump to 2.3.0_beta1 |
9 |
|
10 |
* EAPI=6 |
11 |
|
12 |
Package-Manager: portage-2.2.28 |
13 |
Closes: https://github.com/gentoo/gentoo/pull/2257 |
14 |
|
15 |
Signed-off-by: David Seifert <soap <AT> gentoo.org> |
16 |
|
17 |
sci-mathematics/gsl-shell/Manifest | 1 + |
18 |
.../files/gsl-shell-2.3.0-gdt-cflags.patch | 20 +++++++ |
19 |
.../gsl-shell/gsl-shell-2.3.0_beta1.ebuild | 65 ++++++++++++++++++++++ |
20 |
3 files changed, 86 insertions(+) |
21 |
|
22 |
diff --git a/sci-mathematics/gsl-shell/Manifest b/sci-mathematics/gsl-shell/Manifest |
23 |
index 8fe68cc..d5d1505 100644 |
24 |
--- a/sci-mathematics/gsl-shell/Manifest |
25 |
+++ b/sci-mathematics/gsl-shell/Manifest |
26 |
@@ -1 +1,2 @@ |
27 |
DIST gsl-shell-2.2.0.tar.gz 3138063 SHA256 e05bcc78ea3c70d209b12a3db5c86b5ed23e50617d68cb0081046382973b2d33 SHA512 1394cbafecd55ddf5c8c992273f1fa400825b21202cd53ac548a99e34a9183ba4a5dcb2ef10ef9a7930f78ed4e6343b8d2a5d34c38a8e7766300b5bf73596d89 WHIRLPOOL 9bbfa55c988611fa0c771fc6c49473e139eff936f4f22b4b419c409e8450c733a57f2d9bbbc799f754654ff5cf5b303ab263bb502ef712ad439564c6e3b28fef |
28 |
+DIST gsl-shell-2.3.0-beta1.tar.gz 3380519 SHA256 a57e1d5b8e40418ca453c1bf900cf57546258d8ef87b2d0647207f7473be1cb4 SHA512 627c0b6bb35bc1a33bab16d0bb2b193b5a005a1d97a96e6a9038fbe7144936427131197983a2ef347ed91c655a82a4d477430a610d9e36453a2669ef0baae231 WHIRLPOOL 737ad32ff8f1f10a2caa5d76d24a107994a8fae9179a5f536880d0e9359562b1f9c59aee5825327a3175a06c30bbbb7b272cde07061364172a58dc4860e867bf |
29 |
|
30 |
diff --git a/sci-mathematics/gsl-shell/files/gsl-shell-2.3.0-gdt-cflags.patch b/sci-mathematics/gsl-shell/files/gsl-shell-2.3.0-gdt-cflags.patch |
31 |
new file mode 100644 |
32 |
index 00000000..388fa00 |
33 |
--- /dev/null |
34 |
+++ b/sci-mathematics/gsl-shell/files/gsl-shell-2.3.0-gdt-cflags.patch |
35 |
@@ -0,0 +1,20 @@ |
36 |
+--- a/gdt/Makefile |
37 |
++++ b/gdt/Makefile |
38 |
+@@ -27,7 +27,7 @@ include $(GSH_BASE_DIR)/makedefs |
39 |
+ |
40 |
+ INCLUDES += -I$(GSH_BASE_DIR) |
41 |
+ |
42 |
+-CFLAGS += -std=c99 |
43 |
++GDT_CFLAGS = $(CFLAGS) -std=c99 |
44 |
+ |
45 |
+ GDT_SRC_FILES = char_buffer.c gdt_index.c gdt_table.c |
46 |
+ GDT_OBJ_FILES := $(GDT_SRC_FILES:%.c=%.o) |
47 |
+@@ -36,7 +36,7 @@ DEP_FILES := $(GDT_SRC_FILES:%.c=.deps/%.P) |
48 |
+ |
49 |
+ DEPS_MAGIC := $(shell mkdir .deps > /dev/null 2>&1 || :) |
50 |
+ |
51 |
+-COMPILE = $(CC) $(CFLAGS) $(LUA_CFLAGS) $(DEFS) $(INCLUDES) |
52 |
++COMPILE = $(CC) $(GDT_CFLAGS) $(LUA_CFLAGS) $(DEFS) $(INCLUDES) |
53 |
+ |
54 |
+ TARGETS = libgdt.a |
55 |
+ |
56 |
|
57 |
diff --git a/sci-mathematics/gsl-shell/gsl-shell-2.3.0_beta1.ebuild b/sci-mathematics/gsl-shell/gsl-shell-2.3.0_beta1.ebuild |
58 |
new file mode 100644 |
59 |
index 00000000..03f9f39 |
60 |
--- /dev/null |
61 |
+++ b/sci-mathematics/gsl-shell/gsl-shell-2.3.0_beta1.ebuild |
62 |
@@ -0,0 +1,65 @@ |
63 |
+# Copyright 1999-2016 Gentoo Foundation |
64 |
+# Distributed under the terms of the GNU General Public License v2 |
65 |
+# $Id$ |
66 |
+ |
67 |
+EAPI=6 |
68 |
+ |
69 |
+inherit toolchain-funcs |
70 |
+ |
71 |
+MY_P=${P/_/-} |
72 |
+DESCRIPTION="Lua interactive shell for sci-libs/gsl" |
73 |
+HOMEPAGE="http://www.nongnu.org/gsl-shell/" |
74 |
+SRC_URI="http://download.savannah.gnu.org/releases/${PN}/${MY_P}.tar.gz" |
75 |
+ |
76 |
+SLOT="0" |
77 |
+LICENSE="GPL-3" |
78 |
+KEYWORDS="~amd64 ~x86" |
79 |
+IUSE="doc fox" |
80 |
+ |
81 |
+RDEPEND=" |
82 |
+ >=sci-libs/gsl-1.14 |
83 |
+ virtual/blas |
84 |
+ >=x11-libs/agg-2.5 |
85 |
+ >=media-libs/freetype-2.4.10 |
86 |
+ sys-libs/readline:0= |
87 |
+ || ( media-fonts/ubuntu-font-family media-fonts/freefont media-fonts/dejavu ) |
88 |
+ fox? ( x11-libs/fox:1.6 )" |
89 |
+DEPEND="${DEPEND} |
90 |
+ virtual/pkgconfig |
91 |
+ doc? ( dev-python/sphinx[latex] )" |
92 |
+ |
93 |
+S="${WORKDIR}"/${MY_P} |
94 |
+ |
95 |
+PATCHES=( |
96 |
+ "${FILESDIR}"/${PN}-font.patch |
97 |
+ "${FILESDIR}"/${PN}-strip.patch |
98 |
+ "${FILESDIR}"/${PN}-usr.patch |
99 |
+ "${FILESDIR}"/${PN}-2.2.0-pkg-config.patch |
100 |
+ "${FILESDIR}"/${P/_beta*/}-gdt-cflags.patch |
101 |
+) |
102 |
+ |
103 |
+src_prepare() { |
104 |
+ tc-export PKG_CONFIG |
105 |
+ use fox || PATCHES+=( "${FILESDIR}"/${PN}-nogui.patch ) |
106 |
+ default |
107 |
+} |
108 |
+ |
109 |
+src_compile() { |
110 |
+ local BLAS=$($(tc-getPKG_CONFIG) --libs blas) |
111 |
+ |
112 |
+ if use fox; then |
113 |
+ local FOX_INCLUDES="$(WANT_FOX=1.6 fox-config --cflags)" |
114 |
+ local FOX_LIBS="$(WANT_FOX=1.6 fox-config --libs)" |
115 |
+ emake -j1 CFLAGS="${CFLAGS}" GSL_LIBS="$($(tc-getPKG_CONFIG) --libs gsl) ${BLAS}" \ |
116 |
+ FOX_INCLUDES="${FOX_INCLUDES}" FOX_LIBS="${FOX_LIBS}" |
117 |
+ else |
118 |
+ emake -j1 CFLAGS="${CFLAGS}" GSL_LIBS="$($(tc-getPKG_CONFIG) --libs gsl) ${BLAS}" |
119 |
+ fi |
120 |
+ |
121 |
+ use doc && emake -C doc/user-manual -j1 html |
122 |
+} |
123 |
+ |
124 |
+src_install() { |
125 |
+ use doc && HTML_DOCS+=( doc/user-manual/_build/html/. ) |
126 |
+ default |
127 |
+} |