summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Väth <martin@mvath.de>2013-05-31 11:07:33 +0200
committerMartin Väth <martin@mvath.de>2015-10-11 10:48:44 +0200
commitcedf3168d132acf7f5f8b2ffee80848a42165ff5 (patch)
treeb59491390227c47cc06869bf4a799bdb21f76f1a /sci-mathematics/genius/genius-1.0.16.ebuild
parentAdd zsh live ebuild (diff)
downloadmv-cedf3168d132acf7f5f8b2ffee80848a42165ff5.tar.gz
mv-cedf3168d132acf7f5f8b2ffee80848a42165ff5.tar.bz2
mv-cedf3168d132acf7f5f8b2ffee80848a42165ff5.zip
Add genius to make gnome-doc-utils optional. Fix stardict linking
Diffstat (limited to 'sci-mathematics/genius/genius-1.0.16.ebuild')
-rw-r--r--sci-mathematics/genius/genius-1.0.16.ebuild68
1 files changed, 68 insertions, 0 deletions
diff --git a/sci-mathematics/genius/genius-1.0.16.ebuild b/sci-mathematics/genius/genius-1.0.16.ebuild
new file mode 100644
index 00000000..3cef4197
--- /dev/null
+++ b/sci-mathematics/genius/genius-1.0.16.ebuild
@@ -0,0 +1,68 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/genius/genius-1.0.16.ebuild,v 1.2 2013/01/02 08:35:45 grozin Exp $
+
+EAPI=4
+inherit autotools eutils gnome2
+
+DESCRIPTION="Genius Mathematics Tool and the GEL Language"
+HOMEPAGE="http://www.jirka.org/genius.html"
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc gnome nls"
+SRC_URI="http://ftp.gnome.org/pub/GNOME/sources/${PN}/1.0/${P}.tar.xz
+ doc? ( http://www.jirka.org/${PN}-reference.pdf )"
+
+RDEPEND="
+ dev-libs/glib:2
+ dev-libs/gmp
+ dev-libs/mpfr
+ dev-libs/popt
+ sys-libs/ncurses
+ sys-libs/readline
+ gnome? (
+ app-text/scrollkeeper
+ app-text/gnome-doc-utils
+ x11-libs/gtk+:2
+ gnome-base/libgnome
+ gnome-base/libgnomeui
+ gnome-base/libglade:2.0
+ x11-libs/gtksourceview:2.0
+ x11-libs/vte:0 )"
+DEPEND="${RDEPEND}
+ dev-util/intltool
+ || ( sys-devel/bison
+ dev-util/yacc )
+ sys-devel/flex
+ nls? ( sys-devel/gettext )"
+
+G2CONF="${G2CONF} $(use_enable gnome) $(use_enable nls) \
+ --disable-update-mimedb --disable-scrollkeeper \
+ --disable-extra-gcc-optimization"
+# gnome2.eclass adds --disable-gtk-doc or --enable-gtk-doc to G2CONF
+# if there is the USE flag doc, thus leading to QA warnings
+GCONF_DEBUG="no"
+DOCS="AUTHORS ChangeLog NEWS README TODO"
+USE_DESTDIR="1"
+
+src_prepare() {
+ if ! use gnome
+ then sed -i \
+ -e "/GNOME_DOC_INIT/d" \
+ configure.in
+ sed -i \
+ -e '/gnome-doc-utils\.make/d' \
+ help/Makefile.am
+ eautoreconf
+ fi
+ gnome2_src_prepare
+}
+
+src_install() {
+ gnome2_src_install
+ if use doc; then
+ insinto /usr/share/doc/${PF}
+ doins "${DISTDIR}"/${PN}-reference.pdf
+ fi
+}