diff options
author | Harri Nieminen <moikkis@gmail.com> | 2017-02-26 18:46:13 +0200 |
---|---|---|
committer | David Seifert <soap@gentoo.org> | 2017-02-28 20:10:53 +0100 |
commit | d76c46988a1a59df990efe2082f3267c0e6421dd (patch) | |
tree | 25b48de9a5f0fb8550145cfa1752dc76656a8ac6 /x11-misc | |
parent | x11-misc/fracplanet: EAPI bump, fix build with gcc6 (Bug #602414) (diff) | |
download | gentoo-d76c46988a1a59df990efe2082f3267c0e6421dd.tar.gz gentoo-d76c46988a1a59df990efe2082f3267c0e6421dd.tar.bz2 gentoo-d76c46988a1a59df990efe2082f3267c0e6421dd.zip |
x11-misc/evolvotron: fix build with gcc6, bug #597266
Gentoo-Bug: https://bugs.gentoo.org/597266
Package-Manager: Portage-2.3.3, Repoman-2.3.1
Closes: https://github.com/gentoo/gentoo/pull/4085
Diffstat (limited to 'x11-misc')
-rw-r--r-- | x11-misc/evolvotron/evolvotron-0.6.3-r1.ebuild | 51 | ||||
-rw-r--r-- | x11-misc/evolvotron/files/evolvotron-0.6.3-gcc6.patch | 15 |
2 files changed, 66 insertions, 0 deletions
diff --git a/x11-misc/evolvotron/evolvotron-0.6.3-r1.ebuild b/x11-misc/evolvotron/evolvotron-0.6.3-r1.ebuild new file mode 100644 index 000000000000..6d52be1f0b27 --- /dev/null +++ b/x11-misc/evolvotron/evolvotron-0.6.3-r1.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 +inherit qmake-utils + +DESCRIPTION="Generative art image evolver" +HOMEPAGE="https://sourceforge.net/projects/evolvotron/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86 ~x86-fbsd" +IUSE="" + +RDEPEND=" + dev-libs/boost:= + dev-qt/qtcore:4 + dev-qt/qtgui:4 +" +DEPEND="${RDEPEND}" + +S=${WORKDIR}/${PN} + +PATCHES=( "${FILESDIR}"/${P}-gcc6.patch ) + +DOCS=( BUGS NEWS README TODO USAGE ) +HTML_DOCS=( evolvotron.html ) + +src_configure() { + eqmake4 main.pro +} + +src_compile() { + local etsubdir + for etsubdir in \ + libfunction libevolvotron evolvotron evolvotron_render evolvotron_mutate + do + emake sub-${etsubdir} + done +} + +src_install() { + local bin + for bin in ${PN}{,_mutate,_render}; do + dobin ${bin}/${bin} + done + doman man/man1/* + einstalldocs +} diff --git a/x11-misc/evolvotron/files/evolvotron-0.6.3-gcc6.patch b/x11-misc/evolvotron/files/evolvotron-0.6.3-gcc6.patch new file mode 100644 index 000000000000..709d61b29a6a --- /dev/null +++ b/x11-misc/evolvotron/files/evolvotron-0.6.3-gcc6.patch @@ -0,0 +1,15 @@ +Description: Fix compilation with GCC6 by making implict conversion to bool explicit +Author: Axel Beckert <abe@debian.org> +Bug-Debian: https://bugs.debian.org/811660 + +--- a/libevolvotron/mutatable_image_computer.h ++++ b/libevolvotron/mutatable_image_computer.h +@@ -193,7 +193,7 @@ + //! Indicate whether computation us taking place (only intended for counting outstanding threads). + bool active() const + { +- return _task; ++ return (bool)_task; + } + }; + |