From 5e968713ed0def06f64c8cbf7253d89be14dc92b Mon Sep 17 00:00:00 2001 From: Peter Levine Date: Sun, 1 Apr 2018 00:15:16 -0400 Subject: media-gfx/dawn: Update to EAPI-6 and revbump Package-Manager: Portage-2.3.16, Repoman-2.3.6 Closes: https://github.com/gentoo/gentoo/pull/7761 --- media-gfx/dawn/dawn-3.90b-r1.ebuild | 53 ++++++++++++++++++++++ .../dawn/files/dawn-3.90b-no-interactive.patch | 12 ++--- 2 files changed, 59 insertions(+), 6 deletions(-) create mode 100644 media-gfx/dawn/dawn-3.90b-r1.ebuild (limited to 'media-gfx/dawn') diff --git a/media-gfx/dawn/dawn-3.90b-r1.ebuild b/media-gfx/dawn/dawn-3.90b-r1.ebuild new file mode 100644 index 000000000000..b7d6d5d11ea2 --- /dev/null +++ b/media-gfx/dawn/dawn-3.90b-r1.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit toolchain-funcs versionator + +MYP=${PN}_$(replace_version_separator 1 _) + +DESCRIPTION="3D geometrical postscript renderer" +HOMEPAGE="http://geant4.kek.jp/~tanaka/DAWN/About_DAWN.html" +SRC_URI="http://geant4.kek.jp/~tanaka/src/${MYP}.tgz" + +LICENSE="public-domain" +SLOT="0" + +KEYWORDS="~amd64 ~hppa ~ppc ~x86" +IUSE="doc opengl X" + +RDEPEND="dev-lang/tk:* + X? ( x11-libs/libX11 ) + opengl? ( virtual/opengl )" +DEPEND="${RDEPEND} + app-shells/tcsh + doc? ( virtual/latex-base )" + +S="${WORKDIR}/${MYP}" + +PATCHES=( "${FILESDIR}"/${P}-no-interactive.patch ) + +src_prepare() { + default + + sed -i -e "s/\$(LIB_DIR)/\$(LDFLAGS) &/" \ + -e '/strip/d' Makefile*in || die + + if use X; then + mv -f "${S}"/configure_xwin "${S}"/configure || die + fi + + tc-export CXX +} + +src_install() { + dodir /usr/bin + + if use doc; then + pdflatex DOC/G4PRIM_FORMAT_24.tex || die "pdf generation failed" + DOCS=( README.txt DOC/*.pdf ) + HTML_DOCS=( DOC/*.html ) + fi + + default +} diff --git a/media-gfx/dawn/files/dawn-3.90b-no-interactive.patch b/media-gfx/dawn/files/dawn-3.90b-no-interactive.patch index 244948ec5262..ea8ac7e6a90e 100644 --- a/media-gfx/dawn/files/dawn-3.90b-no-interactive.patch +++ b/media-gfx/dawn/files/dawn-3.90b-no-interactive.patch @@ -1,5 +1,5 @@ ---- configure_xwin.orig 2008-04-02 22:58:44.973465484 +0100 -+++ configure_xwin 2008-04-03 00:02:15.950190359 +0100 +--- a/configure_xwin ++++ b/configure_xwin @@ -16,17 +16,17 @@ #----- C++ compiler name echo "Input C++ compiler name (e.g. g++, no default)." @@ -87,8 +87,8 @@ echo "" >> Makefile echo "### Socket libraries to be linked " >> Makefile ---- FRSocketMacro.h.orig 2008-04-02 23:58:51.126518123 +0100 -+++ FRSocketMacro.h 2008-04-02 23:59:03.443220012 +0100 +--- a/FRSocketMacro.h ++++ b/FRSocketMacro.h @@ -14,8 +14,8 @@ #elif defined SOCKET_REDHAT61 #define CLIENT_ADDR_LENGTH socklen_t @@ -100,8 +100,8 @@ #endif //----- gethostname ---- configure.orig 2010-08-21 14:22:18.000000000 +0100 -+++ configure 2010-09-23 05:57:02.000000000 +0100 +--- a/configure ++++ b/configure @@ -13,22 +13,22 @@ #----- C++ compiler name echo "Input C++ compiler name (e.g. g++, no default)." -- cgit v1.2.3-65-gdbad