From d7c85ef0fdc5ceffe945e7ae13079a3c8d2c83de Mon Sep 17 00:00:00 2001 From: Fabio Erculiani Date: Mon, 25 Nov 2013 20:42:44 +0100 Subject: [PATCH] [media-gfx/kgraphviewer] add graphviz-2.30 support --- media-gfx/kgraphviewer/Manifest | 1 + .../files/kgraphviewer-2.1.1-boost-1.50.patch | 32 ++++++++++++++++++ .../kgraphviewer-2.1.1-graphviz-2.30.patch | 27 +++++++++++++++ .../kgraphviewer/kgraphviewer-2.1.1.ebuild | 33 +++++++++++++++++++ media-gfx/kgraphviewer/metadata.xml | 5 +++ 5 files changed, 98 insertions(+) create mode 100644 media-gfx/kgraphviewer/Manifest create mode 100644 media-gfx/kgraphviewer/files/kgraphviewer-2.1.1-boost-1.50.patch create mode 100644 media-gfx/kgraphviewer/files/kgraphviewer-2.1.1-graphviz-2.30.patch create mode 100644 media-gfx/kgraphviewer/kgraphviewer-2.1.1.ebuild create mode 100644 media-gfx/kgraphviewer/metadata.xml diff --git a/media-gfx/kgraphviewer/Manifest b/media-gfx/kgraphviewer/Manifest new file mode 100644 index 000000000..d6bdc4b22 --- /dev/null +++ b/media-gfx/kgraphviewer/Manifest @@ -0,0 +1 @@ +DIST kgraphviewer-2.1.1.tar.gz 1409604 SHA256 5840e9dc0cc813c18c0b64aaf4346aeb95eefcc95d2c5068ff81a8f39c81f4b8 SHA512 b1d3b493351ebbc0875861e9ba764e7e8157a37bf1500cacd51fc15605f8ff202ecc07325c2fef89dfc92ccbdcf82c826962879e547cc32db01bf8af208827e8 WHIRLPOOL 7c5fea85bd499c9cd6535d6735c6ad99fba577b9d81a32bbe4166ddeb5328204e1328f459da2138434b874584c8f3f292082b95840732874781a625d67b44f77 diff --git a/media-gfx/kgraphviewer/files/kgraphviewer-2.1.1-boost-1.50.patch b/media-gfx/kgraphviewer/files/kgraphviewer-2.1.1-boost-1.50.patch new file mode 100644 index 000000000..46c949062 --- /dev/null +++ b/media-gfx/kgraphviewer/files/kgraphviewer-2.1.1-boost-1.50.patch @@ -0,0 +1,32 @@ +From 470bf0a4774a600dbd958b781342589a337d8898 Mon Sep 17 00:00:00 2001 +From: Michael Palimaka +Date: Wed, 11 Jul 2012 01:58:00 +1000 +Subject: [PATCH] Fix build with boost-1.50 + +REVIEW: 105494 +--- + src/part/DotGraphParsingHelper.cpp | 8 ++++---- + 1 file changed, 4 insertions(+), 4 deletions(-) + +diff --git a/src/part/DotGraphParsingHelper.cpp b/src/part/DotGraphParsingHelper.cpp +index 69cac49..7d46837 100644 +--- a/src/part/DotGraphParsingHelper.cpp ++++ b/src/part/DotGraphParsingHelper.cpp +@@ -26,10 +26,10 @@ + #include "graphedge.h" + + #include +-#include +-#include +-#include +-#include ++#include ++#include ++#include ++#include + + + #include +-- +1.7.11.1 + diff --git a/media-gfx/kgraphviewer/files/kgraphviewer-2.1.1-graphviz-2.30.patch b/media-gfx/kgraphviewer/files/kgraphviewer-2.1.1-graphviz-2.30.patch new file mode 100644 index 000000000..8ba493f5a --- /dev/null +++ b/media-gfx/kgraphviewer/files/kgraphviewer-2.1.1-graphviz-2.30.patch @@ -0,0 +1,27 @@ +--- cmake/FindGraphViz.cmake~ 2010-11-12 16:07:15.000000000 +0800 ++++ cmake/FindGraphViz.cmake 2013-06-02 12:05:28.350114170 +0800 +@@ -29,7 +29,7 @@ + if ( NOT WIN32 ) + + find_package(PkgConfig) +- pkg_check_modules( graphviz ${REQUIRED} libgvc libcdt libgraph libpathplan ) ++ pkg_check_modules( graphviz ${REQUIRED} libgvc libcdt libcgraph libpathplan ) + if ( graphviz_FOUND ) + set ( graphviz_INCLUDE_DIRECTORIES ${graphviz_INCLUDE_DIRS} ) + endif ( graphviz_FOUND ) +@@ -66,7 +66,7 @@ + ) + + find_library( graphviz_GRAPH_LIBRARY +- NAMES graph ++ NAMES cgraph + PATHS + ${graphviz_LIBRARY_DIRS} + /usr/local/lib64 +@@ -162,4 +162,4 @@ + + # handle the QUIETLY and REQUIRED arguments and set GRAPHVIZ_FOUND to TRUE if + # all listed variables are TRUE +-find_package_handle_standard_args(GraphViz DEFAULT_MSG graphviz_LIBRARIES graphviz_INCLUDE_DIRECTORIES) +\ No newline at end of file ++find_package_handle_standard_args(GraphViz DEFAULT_MSG graphviz_LIBRARIES graphviz_INCLUDE_DIRECTORIES) diff --git a/media-gfx/kgraphviewer/kgraphviewer-2.1.1.ebuild b/media-gfx/kgraphviewer/kgraphviewer-2.1.1.ebuild new file mode 100644 index 000000000..7d6bb6559 --- /dev/null +++ b/media-gfx/kgraphviewer/kgraphviewer-2.1.1.ebuild @@ -0,0 +1,33 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-gfx/kgraphviewer/kgraphviewer-2.1.1.ebuild,v 1.3 2012/07/10 16:32:16 kensington Exp $ + +EAPI=4 + +KDE_LINGUAS="ar be bg ca ca@valencia cs da de el en_GB eo es et eu fr ga gl hi hne +hr is it ja km ku lt mai nb nds nl nn pa pl pt pt_BR ro ru se sk sv th tr uk vi +zh_CN zh_TW" +KDE_HANDBOOK="optional" +inherit kde4-base + +DESCRIPTION="A graphviz dot graph file viewer for KDE" +HOMEPAGE="http://kde-apps.org/content/show.php?content=23999" +SRC_URI="https://api.opensuse.org/public/source/home:milianw:kdeapps/${PN}/${P}.tar.gz" + +LICENSE="GPL-2 FDL-1.2" +SLOT="4" +KEYWORDS="~amd64 ~x86" +IUSE="debug" + +RDEPEND=" + >=media-gfx/graphviz-2.30 + sys-libs/zlib +" +DEPEND="${RDEPEND} + >=dev-libs/boost-1.38 +" + +PATCHES=( + "${FILESDIR}/${P}-boost-1.50.patch" + "${FILESDIR}/kgraphviewer-2.1.1-graphviz-2.30.patch" +) diff --git a/media-gfx/kgraphviewer/metadata.xml b/media-gfx/kgraphviewer/metadata.xml new file mode 100644 index 000000000..8d1e86a9c --- /dev/null +++ b/media-gfx/kgraphviewer/metadata.xml @@ -0,0 +1,5 @@ + + + +kde +