summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sci-visualization/gle/gle-4.1.2b.ebuild')
-rw-r--r--sci-visualization/gle/gle-4.1.2b.ebuild102
1 files changed, 102 insertions, 0 deletions
diff --git a/sci-visualization/gle/gle-4.1.2b.ebuild b/sci-visualization/gle/gle-4.1.2b.ebuild
new file mode 100644
index 000000000000..59b94270b1f9
--- /dev/null
+++ b/sci-visualization/gle/gle-4.1.2b.ebuild
@@ -0,0 +1,102 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-visualization/gle/gle-4.1.2b.ebuild,v 1.1 2008/05/21 21:13:42 grozin Exp $
+
+inherit eutils elisp-common qt4
+
+MY_P=GLE-${PV}
+DOC_VERSION="4.0.13"
+
+DESCRIPTION="Graphics Layout Engine"
+HOMEPAGE="http://glx.sourceforge.net/"
+SRC_URI="mirror://sourceforge/glx/${MY_P}-src.zip
+ doc? ( http://www.cs.kuleuven.be/~jan/gle/GLE-${DOC_VERSION}-manual.pdf
+ mirror://sourceforge/glx/GLEusersguide.pdf )
+ emacs? ( http://glx.sourceforge.net/downloads/gle-emacs.el )
+ vim-syntax? ( http://glx.sourceforge.net/downloads/vim_gle.zip )"
+
+SLOT="0"
+LICENSE="BSD"
+KEYWORDS="~x86"
+
+IUSE="X qt4 jpeg png tiff doc emacs vim-syntax"
+
+DEPEND="sys-libs/ncurses
+ X? ( x11-libs/libX11 )
+ qt4? ( $(qt4_min_version 4.1) )
+ jpeg? ( media-libs/jpeg )
+ png? ( media-libs/libpng )
+ tiff? ( media-libs/tiff )
+ emacs? ( virtual/emacs )
+ app-arch/unzip"
+
+RDEPEND="virtual/ghostscript
+ virtual/latex-base
+ sys-libs/ncurses
+ X? ( x11-libs/libX11 )
+ qt4? ( $(qt4_min_version 4.1) )
+ jpeg? ( media-libs/jpeg )
+ png? ( media-libs/libpng )
+ tiff? ( media-libs/tiff )
+ emacs? ( virtual/emacs )
+ vim-syntax? ( || ( app-editors/vim app-editors/gvim ) )"
+
+S="${WORKDIR}"/gle4
+
+src_compile() {
+ local qtconf="--without-qt"
+ use qt4 && qtconf="--with-qt=/usr"
+ econf \
+ $(use_with X x) \
+ $(use_with jpeg) \
+ $(use_with png) \
+ $(use_with tiff) \
+ ${qtconf} || die "econf failed"
+
+ # emake failed in src/gui (probably qmake stuff)
+ emake -j1 || die "emake failed"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "emake install failed"
+ dodoc README.txt
+
+ if use qt4; then
+ newicon src/gui/images/gle_icon.png gle.png
+ make_desktop_entry qgle GLE gle
+ newdoc src/gui/readme.txt gui_readme.txt
+ fi
+
+ if use doc ; then
+ insinto /usr/share/doc/${PF}
+ doins "${DISTDIR}"/GLE-${DOC_VERSION}-manual.pdf \
+ "${DISTDIR}"/GLEusersguide.pdf
+ fi
+
+ if use emacs ; then
+ elisp-site-file-install "${DISTDIR}"/gle-emacs.el gle-mode.el
+ elisp-site-file-install "${FILESDIR}"/64gle-gentoo.el
+ fi
+
+ if use vim-syntax ; then
+ dodir /usr/share/vim/vimfiles/ftplugins \
+ /usr/share/vim/vimfiles/indent \
+ /usr/share/vim/vimfiles/syntax
+ cd ..
+ chmod 644 ftplugin/* indent/* syntax/*
+ insinto /usr/share/vim/vimfiles/ftplugins
+ doins ftplugin/*
+ insinto /usr/share/vim/vimfiles/indent
+ doins indent/*
+ insinto /usr/share/vim/vimfiles/syntax
+ doins syntax/*
+ fi
+}
+
+pkg_postinst() {
+ use emacs && elisp-site-regen
+}
+
+pkg_postrm() {
+ use emacs && elisp-site-regen
+}