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 C7C0B139694 for ; Tue, 28 Feb 2017 19:11:12 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5D1D5E0CCD; Tue, 28 Feb 2017 19:11:06 +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-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 2D7E6E0CCD for ; Tue, 28 Feb 2017 19:11:06 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id BCC6534167F for ; Tue, 28 Feb 2017 19:11:04 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 60EA557D4 for ; Tue, 28 Feb 2017 19:11:03 +0000 (UTC) From: "David Seifert" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "David Seifert" Message-ID: <1488309047.63864fecd34ba9106b6b8269368430af66b75c2a.soap@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: x11-misc/fracplanet/, x11-misc/fracplanet/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: x11-misc/fracplanet/files/fracplanet-0.4.0-gcc6.patch x11-misc/fracplanet/files/fracplanet-0.4.0-gold.patch x11-misc/fracplanet/fracplanet-0.4.0-r1.ebuild x11-misc/fracplanet/fracplanet-0.4.0.ebuild X-VCS-Directories: x11-misc/fracplanet/ x11-misc/fracplanet/files/ X-VCS-Committer: soap X-VCS-Committer-Name: David Seifert X-VCS-Revision: 63864fecd34ba9106b6b8269368430af66b75c2a X-VCS-Branch: master Date: Tue, 28 Feb 2017 19:11:03 +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: 41976ce3-7530-4b2d-9f32-ba064be5b817 X-Archives-Hash: dd575213f791caffe5adf2707f1e91e7 commit: 63864fecd34ba9106b6b8269368430af66b75c2a Author: Harri Nieminen gmail com> AuthorDate: Sun Feb 26 16:19:39 2017 +0000 Commit: David Seifert gentoo org> CommitDate: Tue Feb 28 19:10:47 2017 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=63864fec x11-misc/fracplanet: EAPI bump, fix build with gcc6 (Bug #602414) Gentoo-Bug: https://bugs.gentoo.org/602414 Package-Manager: Portage-2.3.3, Repoman-2.3.1 Closes: https://github.com/gentoo/gentoo/pull/4085 .../fracplanet/files/fracplanet-0.4.0-gcc6.patch | 44 ++++++++++++++++++++++ .../fracplanet/files/fracplanet-0.4.0-gold.patch | 8 ++-- ...net-0.4.0.ebuild => fracplanet-0.4.0-r1.ebuild} | 34 +++++++++++------ 3 files changed, 70 insertions(+), 16 deletions(-) diff --git a/x11-misc/fracplanet/files/fracplanet-0.4.0-gcc6.patch b/x11-misc/fracplanet/files/fracplanet-0.4.0-gcc6.patch new file mode 100644 index 0000000000..4d760d672f --- /dev/null +++ b/x11-misc/fracplanet/files/fracplanet-0.4.0-gcc6.patch @@ -0,0 +1,44 @@ +Description: Fix compilation with gcc-6 +Author: Gert Wollny +Last-Updated: 2016-07-09 +Forwarded: No +Bug-Debian: https://bugs.debian.org/811642 + +--- fracplanet-0.4.0.orig/image.cpp ++++ fracplanet-0.4.0/image.cpp +@@ -85,7 +85,7 @@ template <> bool Raster::write_pg + out.write(reinterpret_cast(&(*(row->begin()))),row->size()); + } + out.close(); +- return out; ++ return out.good(); + } + + template <> bool Raster::write_pgmfile(const std::string& filename,Progress* target) const +@@ -101,7 +101,7 @@ template <> bool Raster::write_p + progress.step(); + for (const ushort* it=row->begin();it!=row->end();++it) + { +- const uchar p[2]={((*it)>>8),(*it)}; ++ const uchar p[2]={static_cast((*it)>>8),static_cast((*it) & 0x00FF)}; + if (m>=256) + { + // PGM spec is most significant byte first +@@ -115,7 +115,7 @@ template <> bool Raster::write_p + } + } + out.close(); +- return out; ++ return out.good(); + } + + template <> bool Raster::write_ppmfile(const std::string& filename,Progress* target) const +@@ -132,7 +132,7 @@ template <> bool Raster::write + out.write(reinterpret_cast(&((*it).r)),3); + } + out.close(); +- return out; ++ return out.good(); + } + + diff --git a/x11-misc/fracplanet/files/fracplanet-0.4.0-gold.patch b/x11-misc/fracplanet/files/fracplanet-0.4.0-gold.patch index c980dfdd6b..4a52d1c44a 100644 --- a/x11-misc/fracplanet/files/fracplanet-0.4.0-gold.patch +++ b/x11-misc/fracplanet/files/fracplanet-0.4.0-gold.patch @@ -1,5 +1,5 @@ ---- triangle_mesh_viewer.h -+++ triangle_mesh_viewer.h +--- a/triangle_mesh_viewer.h ++++ b/triangle_mesh_viewer.h @@ -24,6 +24,7 @@ #ifndef _triangle_mesh_viewer_h_ #define _triangle_mesh_viewer_h_ @@ -9,8 +9,8 @@ #include "random.h" #include "triangle_mesh.h" ---- fracplanet.pro -+++ fracplanet.pro +--- a/fracplanet.pro ++++ b/fracplanet.pro @@ -8,7 +8,7 @@ HEADERS += $$system(ls *.h) diff --git a/x11-misc/fracplanet/fracplanet-0.4.0.ebuild b/x11-misc/fracplanet/fracplanet-0.4.0-r1.ebuild similarity index 67% rename from x11-misc/fracplanet/fracplanet-0.4.0.ebuild rename to x11-misc/fracplanet/fracplanet-0.4.0-r1.ebuild index 518fa738b3..254e38f2f6 100644 --- a/x11-misc/fracplanet/fracplanet-0.4.0.ebuild +++ b/x11-misc/fracplanet/fracplanet-0.4.0-r1.ebuild @@ -1,9 +1,9 @@ -# Copyright 1999-2013 Gentoo Foundation +# Copyright 1999-2017 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Id$ -EAPI=4 -inherit qt4-r2 +EAPI=6 +inherit qmake-utils DESCRIPTION="Fractal planet and terrain generator" HOMEPAGE="https://sourceforge.net/projects/fracplanet/" @@ -14,28 +14,38 @@ SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="" -RDEPEND="dev-libs/boost - virtual/glu - virtual/opengl +RDEPEND=" + dev-libs/boost:= dev-qt/qtcore:4 dev-qt/qtgui:4 - dev-qt/qtopengl:4" + dev-qt/qtopengl:4 + virtual/glu + virtual/opengl +" DEPEND="${RDEPEND} dev-libs/libxslt" S=${WORKDIR}/${PN} -PATCHES=( "${FILESDIR}/${P}-gold.patch" ) +PATCHES=( + "${FILESDIR}/${P}-gold.patch" + "${FILESDIR}/${P}-gcc6.patch" +) + +HTML_DOCS=( fracplanet.{htm,css} ) + +src_configure() { + eqmake4 fracplanet.pro +} src_compile() { xsltproc -stringparam version ${PV} -html htm_to_qml.xsl fracplanet.htm \ - | sed 's/"/\\"/g' | sed 's/^/"/g' | sed 's/$/\\n"/g'> usage_text.h - qt4-r2_src_compile + | sed 's/"/\\"/g' | sed 's/^/"/g' | sed 's/$/\\n"/g'> usage_text.h || die + default } src_install() { dobin ${PN} doman man/man1/${PN}.1 - dodoc BUGS NEWS README THANKS TODO - dohtml *.{css,htm} + einstalldocs }