Diff gretl-1.9.14 with a gretl-1.9.90

/usr/portage/sci-mathematics/gretl/gretl-1.9.90.ebuild 2017-02-28 22:50:00.000000000 +0300
1
# Copyright 1999-2016 Gentoo Foundation
1
# Copyright 1999-2015 Gentoo Foundation
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4 4
EAPI=5
......
12 12
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.xz"
13 13

  
14 14
LICENSE="GPL-3"
15
SLOT="0"
15
SLOT="0/10"
16 16
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
17
IUSE="accessibility cpu_flags_x86_avx emacs gnome gtk nls odbc openmp python
17
IUSE="accessibility cpu_flags_x86_avx +curl emacs gnome gtk mpi nls odbc openmp python
18 18
	readline cpu_flags_x86_sse2 R static-libs"
19 19

  
20 20
CDEPEND="
21
	dev-libs/glib:2
21
	dev-libs/glib:2=
22 22
	dev-libs/gmp:0=
23
	dev-libs/libxml2:2
24
	dev-libs/mpfr:0
25
	sci-libs/fftw:3.0
23
	dev-libs/libxml2:2=
24
	dev-libs/mpfr:0=
25
	sci-libs/fftw:3.0=
26 26
	sci-visualization/gnuplot
27 27
	virtual/lapack
28 28
	virtual/latex-base
29
	accessibility? ( app-accessibility/flite )
29
	accessibility? ( app-accessibility/flite:= )
30
	curl? ( net-misc/curl:0= )
30 31
	emacs? ( virtual/emacs )
31 32
	gtk? (
32
			media-libs/gd[png]
33
			media-libs/gd:2=[png]
33 34
			sci-visualization/gnuplot[gd]
34
			x11-libs/gtk+:3
35
			x11-libs/gtksourceview:3.0 )
36
	odbc? ( dev-db/unixODBC )
37
	R? ( dev-lang/R )
38
	readline? ( sys-libs/readline:0 )"
35
			x11-libs/gtk+:3=
36
			x11-libs/gtksourceview:3.0= )
37
	mpi? ( virtual/mpi )
38
	odbc? ( dev-db/unixODBC:0= )
39
	R? ( dev-lang/R:0= )
40
	readline? ( sys-libs/readline:0= )"
39 41
RDEPEND="${CDEPEND}
40 42
	python? ( dev-python/numpy )"
41 43
DEPEND="${CDEPEND}
......
43 45

  
44 46
SITEFILE=50${PN}-gentoo.el
45 47

  
46
REQUIRED_USE="emacs? ( gtk )"
48
REQUIRED_USE="emacs? ( gtk ) !curl? ( !gtk )"
47 49

  
48 50
pkg_setup() {
49
	if use openmp && [[ $(tc-getCC)$ == *gcc* ]] && ! tc-has-openmp
50
	then
51
		ewarn "You are using gcc and OpenMP is only available with gcc >= 4.2 "
51
	if use openmp && [[ $(tc-getCC)$ == *gcc* ]] && ! tc-has-openmp ; then
52
		ewarn "You are using a non capable gcc compiler ( < 4.2 ? )"
52 53
		die "Need an OpenMP capable compiler"
53 54
	fi
54 55
}
55 56

  
56
src_prepare() {
57
	epatch "${FILESDIR}"/${P}-readline.patch
58
}
59

  
60 57
src_configure() {
61 58
	econf \
62 59
		--disable-rpath \
63 60
		--enable-shared \
64 61
		--with-mpfr \
62
		--docdir="${EPREFIX}/usr/share/doc/${PF}" \
63
		--htmldir="${EPREFIX}/usr/share/doc/${PF}/html" \
65 64
		$(use_enable cpu_flags_x86_avx avx) \
65
		$(use_enable curl www) \
66 66
		$(use_enable gtk gui) \
67
		$(use_enable gtk gtk3) \
68 67
		$(use_enable gtk xdg) \
69 68
		$(use_enable gtk xdg-utils) \
70 69
		$(use_enable nls) \
......
72 71
		$(use_enable cpu_flags_x86_sse2 sse2) \
73 72
		$(use_enable static-libs static) \
74 73
		$(use_with accessibility audio) \
74
		$(use_with mpi) \
75 75
		$(use_with odbc) \
76 76
		$(use_with readline) \
77 77
		$(use_with R libR) \
......
100 100
pkg_postinst() {
101 101
	if use emacs; then
102 102
		elisp-site-regen
103
		elog "To begin using gretl-mode for all \".inp\" files that you edit,"
103
		elog "To use gretl-mode for all \".inp\" files that you edit,"
104 104
		elog "add the following line to your \"~/.emacs\" file:"
105 105
		elog "  (add-to-list 'auto-mode-alist '(\"\\\\.inp\\\\'\" . gretl-mode))"
106 106
	fi
Thank you!