diff options
author | David Seifert <soap@gentoo.org> | 2016-10-07 20:20:11 +0200 |
---|---|---|
committer | David Seifert <soap@gentoo.org> | 2016-10-07 20:21:52 +0200 |
commit | 14e83b0d9340dc22e50ea22b74cc25ccc52ff897 (patch) | |
tree | fff08bb2cf67edc8ee1fe11dcb4f422e59edaa64 /sci-mathematics/geomview/geomview-1.9.5-r1.ebuild | |
parent | dev-python/txaio: Add pypi homepage (diff) | |
download | gentoo-14e83b0d9340dc22e50ea22b74cc25ccc52ff897.tar.gz gentoo-14e83b0d9340dc22e50ea22b74cc25ccc52ff897.tar.bz2 gentoo-14e83b0d9340dc22e50ea22b74cc25ccc52ff897.zip |
sci-mathematics/geomview: Fix missing declarations with USE=-zlib
Gentoo-bug: 596414
* EAPI=6
Package-Manager: portage-2.3.1
Diffstat (limited to 'sci-mathematics/geomview/geomview-1.9.5-r1.ebuild')
-rw-r--r-- | sci-mathematics/geomview/geomview-1.9.5-r1.ebuild | 71 |
1 files changed, 71 insertions, 0 deletions
diff --git a/sci-mathematics/geomview/geomview-1.9.5-r1.ebuild b/sci-mathematics/geomview/geomview-1.9.5-r1.ebuild new file mode 100644 index 000000000000..22139948ed03 --- /dev/null +++ b/sci-mathematics/geomview/geomview-1.9.5-r1.ebuild @@ -0,0 +1,71 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +inherit elisp-common eutils fdo-mime flag-o-matic + +DESCRIPTION="Interactive Geometry Viewer" +HOMEPAGE="http://geomview.sourceforge.net" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2 + https://dev.gentoo.org/~jlec/distfiles/geomview.png.tar" +KEYWORDS="~amd64 ~ppc ~sparc ~x86" +LICENSE="LGPL-2.1" +SLOT="0" +IUSE="motionaveraging debug emacs zlib" + +DEPEND="x11-libs/motif:0 + virtual/glu + virtual/opengl + emacs? ( virtual/emacs ) + zlib? ( sys-libs/zlib )" +RDEPEND="${DEPEND} + x11-misc/xdg-utils" + +S="${WORKDIR}/${P/_/-}" + +SITEFILE="50${PN}-gentoo.el" +PATCHES=( "${FILESDIR}/${PN}-1.9.5-zlib.patch" ) + +src_configure() { + econf \ + --with-htmlbrowser=xdg-open \ + --with-pdfviewer=xdg-open \ + $(use_enable debug d1debug) \ + $(use_with zlib) \ + $(use_enable motionaveraging motion-averaging) +} + +src_compile() { + default + + if use emacs; then + cp "${FILESDIR}/gvcl-mode.el" . || die + elisp-compile *.el + fi +} + +src_install() { + default + + doicon "${WORKDIR}"/geomview.png + make_desktop_entry ${PN} "GeomView ${PV}" \ + /usr/share/pixmaps/${PN}.png \ + "Science;Math;Education" + + if use emacs; then + elisp-install ${PN} *.el *.elc + elisp-site-file-install "${FILESDIR}/${SITEFILE}" + fi +} + +pkg_postinst() { + fdo-mime_desktop_database_update + use emacs && elisp-site-regen +} + +pkg_postrm() { + fdo-mime_desktop_database_update + use emacs && elisp-site-regen +} |