From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 0722B138206 for ; Sun, 31 Dec 2017 03:19:14 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id DD5E8E086F; Sun, 31 Dec 2017 03:19:12 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id A0A7CE086F for ; Sun, 31 Dec 2017 03:19:11 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id F24AB335C30 for ; Sun, 31 Dec 2017 03:19:09 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 8041312D for ; Sun, 31 Dec 2017 03:19:08 +0000 (UTC) From: "Andrey Grozin" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andrey Grozin" Message-ID: <1514690340.318f6b2af9bde35c8bb573c6535e53ffc1c9fc5c.grozin@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sci-visualization/gle/ X-VCS-Repository: repo/gentoo X-VCS-Files: sci-visualization/gle/gle-4.2.5-r1.ebuild X-VCS-Directories: sci-visualization/gle/ X-VCS-Committer: grozin X-VCS-Committer-Name: Andrey Grozin X-VCS-Revision: 318f6b2af9bde35c8bb573c6535e53ffc1c9fc5c X-VCS-Branch: master Date: Sun, 31 Dec 2017 03:19:08 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 553bc8bf-1e69-415f-95b1-ba0f9b69107d X-Archives-Hash: 7145bdb4b5a6059920279b9bde739a58 commit: 318f6b2af9bde35c8bb573c6535e53ffc1c9fc5c Author: Andrey Grozin gentoo org> AuthorDate: Sun Dec 31 03:19:00 2017 +0000 Commit: Andrey Grozin gentoo org> CommitDate: Sun Dec 31 03:19:00 2017 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=318f6b2a sci-visualization/gle: drop an optional Qt4 gui Package-Manager: Portage-2.3.19, Repoman-2.3.6 sci-visualization/gle/gle-4.2.5-r1.ebuild | 94 +++++++++++++++++++++++++++++++ 1 file changed, 94 insertions(+) diff --git a/sci-visualization/gle/gle-4.2.5-r1.ebuild b/sci-visualization/gle/gle-4.2.5-r1.ebuild new file mode 100644 index 00000000000..322a1e5c6b2 --- /dev/null +++ b/sci-visualization/gle/gle-4.2.5-r1.ebuild @@ -0,0 +1,94 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +inherit eutils elisp-common flag-o-matic autotools + +DESCRIPTION="Graphics Layout Engine" +HOMEPAGE="http://glx.sourceforge.net/" +MY_P=${PN}-graphics-${PV} +MAN_V=4.2.2 +SRC_URI="mirror://sourceforge/glx/${MY_P}f-src.tar.gz" +SLOT="0" +LICENSE="BSD-2 emacs? ( GPL-2 )" +IUSE="X jpeg png tiff doc emacs vim-syntax" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" + +DEPEND=" + sys-libs/ncurses:0= + X? ( x11-libs/libX11 ) + jpeg? ( virtual/jpeg:0 ) + png? ( media-libs/libpng:0= ) + tiff? ( media-libs/tiff:0 ) + doc? ( dev-texlive/texlive-latexextra ) + emacs? ( virtual/emacs )" + +RDEPEND="${DEPEND} + app-text/ghostscript-gpl + virtual/latex-base + vim-syntax? ( || ( app-editors/vim app-editors/gvim ) )" + +S="${WORKDIR}"/${MY_P} + +src_prepare() { + epatch "${FILESDIR}"/${PN}-4.2.4b-parallel.patch + eaclocal + eautoconf +} + +src_configure() { + # CPPFLAGS are understood as C++ flags + append-cppflags ${CXXFLAGS} + econf \ + --without-rpath \ + --with-manip \ + $(use_with X x) \ + $(use_with jpeg) \ + $(use_with png) \ + $(use_with tiff) +} + +src_compile() { + emake + if use doc; then + emake -j1 doc + fi + if use emacs; then + cd contrib/editors/highlighting + mv ${PN}-emacs.el ${PN}-mode.el + elisp-compile ${PN}-mode.el || die + fi +} + +src_install() { + # -jN failed to install some data files + emake -j1 DESTDIR="${D}" install + rm -rf "${ED}"/usr/share/doc/gle-graphics + dodoc README.txt + + if use doc; then + insinto /usr/share/doc/${PF} + doins build/doc/gle-manual.pdf + fi + + if use emacs; then + elisp-install ${PN} contrib/editors/highlighting/gle-mode.{el,elc} || die + elisp-site-file-install "${FILESDIR}"/64gle-gentoo.el || die + fi + + if use vim-syntax ; then + dodir /usr/share/vim/vimfiles/{ftplugins,indent,syntax} + cd contrib/editors/highlighting/vim || die + chmod 644 ftplugin/* indent/* syntax/* + insinto /usr/share/vim/vimfiles + doins -r ftplugin indent syntax + fi +} + +pkg_postinst() { + use emacs && elisp-site-regen +} + +pkg_postrm() { + use emacs && elisp-site-regen +}