diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /x11-libs/qwtplot3d |
reinit the tree, so we can have metadata
Diffstat (limited to 'x11-libs/qwtplot3d')
-rw-r--r-- | x11-libs/qwtplot3d/Manifest | 11 | ||||
-rw-r--r-- | x11-libs/qwtplot3d/files/qwtplot3d-doxygen.patch | 28 | ||||
-rw-r--r-- | x11-libs/qwtplot3d/files/qwtplot3d-examples.patch | 125 | ||||
-rw-r--r-- | x11-libs/qwtplot3d/files/qwtplot3d-gcc44.patch | 12 | ||||
-rw-r--r-- | x11-libs/qwtplot3d/files/qwtplot3d-profile.patch | 27 | ||||
-rw-r--r-- | x11-libs/qwtplot3d/files/qwtplot3d-qt48.patch | 19 | ||||
-rw-r--r-- | x11-libs/qwtplot3d/files/qwtplot3d-sys-gl2ps.patch | 31 | ||||
-rw-r--r-- | x11-libs/qwtplot3d/metadata.xml | 15 | ||||
-rw-r--r-- | x11-libs/qwtplot3d/qwtplot3d-0.2.7-r2.ebuild | 59 |
9 files changed, 327 insertions, 0 deletions
diff --git a/x11-libs/qwtplot3d/Manifest b/x11-libs/qwtplot3d/Manifest new file mode 100644 index 000000000000..0abd2783002b --- /dev/null +++ b/x11-libs/qwtplot3d/Manifest @@ -0,0 +1,11 @@ +AUX qwtplot3d-doxygen.patch 1089 SHA256 04114570357018265d32bd8a0fd3d96dae6735dde4aaec07ea62f2382e97ff54 SHA512 d424ede7e78ddbeeb8bcd2270a83956164d5cf8f574b9a478a9b527c28ed6488edc2324b72dbf3e3c1973e7aae16c1baeb63d0dc3e3e97ecc9d3679fd06db7d7 WHIRLPOOL c0f2aa9dea0c18e5627e7d6ecc725f770f90ac3e9cc1e723abb54ae94537c61344d1f0f85c946193ce6a14487fe307324f20d67744547e7a0c2d57810a9e770d +AUX qwtplot3d-examples.patch 4764 SHA256 ddd2f6f9a3d075237e4908806e64318580496c856465749ce605f8506ca0e6de SHA512 b1100942e85df8347a439083a7c2ed1fc86edde2115fba9ec6657f2a8a10ffea937e28d2cb4bfcd377f3f75cb098cac923cb4a254116a56e3d914daa05cc504f WHIRLPOOL fb79ae201f11282270d55808784b9c4384561a3305a786791731ebcf5cf711e88fb4251cc4c2ca8f3bcf7b3d9752fa2096557009ea192a4b346bb60727dbc6f0 +AUX qwtplot3d-gcc44.patch 440 SHA256 bf376db9e365df372a0c75c95e52fe80d30abb554e9acbf3cb5c6a35c2dfd840 SHA512 4f10bfabc68ec313aa8f3f624632c59bfad18f701bc802cd222607ac551b2ad6736dca14e3b63bd238c9c2b68128cb0b66eb1801dc6efebc800e71b0d03cbd31 WHIRLPOOL 0a86eed94192c3e3f655fcc6111685e96db5ea7e05830ad152fbc8e008968ebfdf7acaa7916a39f55c507b879663306ad3facf8c2f281f43c9bff70a6cdd74bc +AUX qwtplot3d-profile.patch 717 SHA256 4fcbc15ae0e33317b03270b8d4534ea7f2d68d02ccc588813acc20af5b2ca1ac SHA512 59fb2d36056074ce16380b7c3c64e63bd0ec8735f0a81c4d37cc3e1daa446721efbe4fd3dd6facf57c62365ae6542d6b9e97ca820d73f89b835b82a23f082728 WHIRLPOOL 8bb9f439a20efcf74c14b8ba00d838358d294cc9421627b8add52e75e03cc74e7b9fb6a314b89c55df7ac4c237a1810e10e6ee95a815829b5a4f186364b8c215 +AUX qwtplot3d-qt48.patch 414 SHA256 72e5cd487738abe1777d951b9e7f0a5921011af47ebb8ebe9979514b9f8c2a73 SHA512 85ef986a35917428cda4929f321a4af11dbf88a71c6adbbb75ab5db7fe392c4df1f0e9631c3f646ee07220747b613068a63f7c2ebef73150c846e11c5ffe89a4 WHIRLPOOL 1169d07366e5c956686256559052c5bdfef0ea795c1d25311a6b00ec976672576e013719b92a22c1687036e9bd1a87a872b0be30e08dad2104ecf1b998ad362b +AUX qwtplot3d-sys-gl2ps.patch 915 SHA256 e60958353524c67c61d04a249e38fbf92ca82c75a24b3f10ed733876410e830d SHA512 a15870bdc215145e57f1eef3bc6c56060ac2f3bc5e8cd134a72188a17088b986b843965cc81065663e72bf69b48912935c88b14babea4b28b7b4265eba86f96f WHIRLPOOL 0f0615361f3e558e634976cf6bc9989b4db6e4821906f89e299bd53d3767162eba70c330e89ee057667780b2358504b16e992f079ccf06733ae37333d5f648e7 +DIST qwtplot3d-0.2.7.tgz 183836 SHA256 1208336b15e82e7a9d22cbc743e46f27e2fad716094a9c133138f259fa299a42 SHA512 88e6d270695931775f3c1c0e718118e31118dbfe9f5f582834de09ab515fdf9e8a0f90d424f276653fdf1cf0b39e2060282385701a4ab48843420fe55a1dcf0c WHIRLPOOL 275287e771364080abe504657d09d1f5cb73828d76418f577beaadd8b80f0fca1fd6f82f0d5c05ca20f4c2b60e6537be78287534d73b8897e610fbeb4a147651 +EBUILD qwtplot3d-0.2.7-r2.ebuild 1185 SHA256 41d159e33608d642c8344079b772744429ddd8d1957e1652f3cb76d3b49ae105 SHA512 c82803d2884ea999c9be1796c9f092870275bcf7ac2fba4e63c319ab68a333dbb8f525f8623525c2680b2f179a71ed830c336ebd6c573c786bb1ee0f7c83c67e WHIRLPOOL 3ee3f2c8ced0b433553234012362b89dc043025636ae2bc73990c123ea0d5348d32a75030fafb777804d1e7560e67e3fbe1a7aa10613a007ad0f817086de8997 +MISC ChangeLog 2635 SHA256 b28394f46a8d1299fcc1bb3ee3761412391b2b592c73a0683945449e0c5aaf27 SHA512 807cf6b870ba652f0d5cdaf7537b86dbefa720e73890a2857782408acbc21bf1f6cadb779c1d0280c098906a24f9722ae93ea188f848dca47400806472149a30 WHIRLPOOL 9a0b7daa46f94ca961ec6e75b27f0f50e3b8b89abc77b98550af3887c7039aac470d7c45edc31dd2d53fa0b7d5cbe0c5b5ed59b019fa2dd720224feafa376a77 +MISC ChangeLog-2015 4168 SHA256 0471339af4d6b3f333ee535b7d0ba93c5469d3a91de174aaf2df00e4b73eafaa SHA512 9e9b1a96271c9857d3f77adf758c770502e96bdf40d5c35bc7d4b71d5c794aabc07a4b0314cc296b9ff29ae3b605812d7898eaa108581f1c39788df672da0b99 WHIRLPOOL a1909e25b823537f79a1414e99356aa0fce82b254e0e838b052cd6ae135ff13a23e953703a8cc79478de724a46be2d29aeacb595a8230cfa0f4419f6b09f12d9 +MISC metadata.xml 507 SHA256 9b15c9d51c3af2eec6a0e8054c7fbd7b8282cb54ae9bec48bdd802db62cdb705 SHA512 89c14aa63b5b6f7d9e0cdabc16aa5328de38ee28fb6ff26df4bc8f9cf6c313a7b545d16ca49404d6453b1f86d6c6826671741f309452076b0f357ba9c014207b WHIRLPOOL 804eb67f4848c60c0af2b2cebd2857759d87ee87e7e91ee5227da908849a6ed2ac919e6e473eb38799fbd7fe3b36ac79227a4d1131f8c615b551027d0939d4bf diff --git a/x11-libs/qwtplot3d/files/qwtplot3d-doxygen.patch b/x11-libs/qwtplot3d/files/qwtplot3d-doxygen.patch new file mode 100644 index 000000000000..b0632a380a2a --- /dev/null +++ b/x11-libs/qwtplot3d/files/qwtplot3d-doxygen.patch @@ -0,0 +1,28 @@ +--- qwtplot3d/doc/Doxyfile.doxygen.orig 2007-11-26 22:30:57.000000000 +0000 ++++ qwtplot3d/doc/Doxyfile.doxygen 2007-11-26 22:30:03.000000000 +0000 +@@ -116,7 +116,7 @@ + HTML_ALIGN_MEMBERS = YES
+ GENERATE_HTMLHELP = NO
+ CHM_FILE = qwtplot3d.chm
+-HHC_LOCATION = "c:\Programme\HTML Help Workshop\hhc.exe"
++#HHC_LOCATION = "c:\Programme\HTML Help Workshop\hhc.exe"
+ GENERATE_CHI = NO
+ BINARY_TOC = YES
+ TOC_EXPAND = YES
+@@ -181,7 +181,7 @@ + MACRO_EXPANSION = NO
+ EXPAND_ONLY_PREDEF = NO
+ SEARCH_INCLUDES = YES
+-INCLUDE_PATH = V:/cvs/qwtplot3d/include/
++INCLUDE_PATH = ../include
+ INCLUDE_FILE_PATTERNS = *.h
+ PREDEFINED = QWT3D_NOT_FOR_DOXYGEN \
+ QT_VERSION=0x040000
+@@ -212,7 +212,6 @@ + GRAPHICAL_HIERARCHY = YES
+ DIRECTORY_GRAPH = YES
+ DOT_IMAGE_FORMAT = png
+-DOT_PATH = V:/graphviz/Graphviz/bin/
+ DOTFILE_DIRS =
+ MAX_DOT_GRAPH_WIDTH = 974
+ MAX_DOT_GRAPH_HEIGHT = 10000
diff --git a/x11-libs/qwtplot3d/files/qwtplot3d-examples.patch b/x11-libs/qwtplot3d/files/qwtplot3d-examples.patch new file mode 100644 index 000000000000..f142c3379274 --- /dev/null +++ b/x11-libs/qwtplot3d/files/qwtplot3d-examples.patch @@ -0,0 +1,125 @@ +diff -Nur qwtplot3d.orig/examples/axes/src/axesmainwindow.cpp qwtplot3d/examples/axes/src/axesmainwindow.cpp +--- qwtplot3d.orig/examples/axes/src/axesmainwindow.cpp 2007-11-26 22:16:54.000000000 +0000 ++++ qwtplot3d/examples/axes/src/axesmainwindow.cpp 2007-11-26 22:21:56.000000000 +0000 +@@ -9,7 +9,7 @@ +
+ #include "axes.h"
+ #include "axesmainwindow.h"
+-#include "../../../include/qwt3d_function.h"
++#include <qwt3d_function.h>
+
+ using namespace std;
+ using namespace Qwt3D;
+diff -Nur qwtplot3d.orig/examples/common.pro qwtplot3d/examples/common.pro +--- qwtplot3d.orig/examples/common.pro 2007-11-26 22:16:54.000000000 +0000 ++++ qwtplot3d/examples/common.pro 2007-11-26 23:43:33.000000000 +0000 +@@ -1,13 +1,13 @@ + TEMPLATE = app
+-CONFIG += qt warn_on thread debug
++CONFIG += qt warn_on thread
+ UI_DIR = tmp
+ MOC_DIR = tmp
+ OBJECTS_DIR = tmp
+-INCLUDEPATH += ../../include
++INCLUDEPATH += /usr/include/qwtplot3d
+ DEPENDPATH = $$INCLUDEPATH
+ DESTDIR = ../bin
+
+-unix:LIBS += -lqwtplot3d -L../../lib
++unix:LIBS += -lqwtplot3d
+ linux-g++:QMAKE_CXXFLAGS += -fno-exceptions
+
+ win32{
+@@ -25,7 +25,7 @@ + ISQT4 = $$find(MYVERSION, ^[2-9])
+
+ !isEmpty( ISQT4 ) {
+-RESOURCES = ../images.qrc
++#RESOURCES = ../images.qrc
+ QT += opengl
+ }
+
+diff -Nur qwtplot3d.orig/examples/enrichments/src/enrichmentmainwindow.cpp qwtplot3d/examples/enrichments/src/enrichmentmainwindow.cpp +--- qwtplot3d.orig/examples/enrichments/src/enrichmentmainwindow.cpp 2007-11-26 22:16:54.000000000 +0000 ++++ qwtplot3d/examples/enrichments/src/enrichmentmainwindow.cpp 2007-11-26 22:22:48.000000000 +0000 +@@ -6,7 +6,7 @@ +
+ #include "enrichmentmainwindow.h"
+ #include "enrichments.h"
+-#include "../../../include/qwt3d_function.h"
++#include <qwt3d_function.h>
+
+ using namespace Qwt3D;
+
+diff -Nur qwtplot3d.orig/examples/mesh2/src/colormapreader.h qwtplot3d/examples/mesh2/src/colormapreader.h +--- qwtplot3d.orig/examples/mesh2/src/colormapreader.h 2007-11-26 22:16:54.000000000 +0000 ++++ qwtplot3d/examples/mesh2/src/colormapreader.h 2007-11-26 22:23:19.000000000 +0000 +@@ -5,7 +5,7 @@ + #include <qframe.h>
+ #include <qpixmap.h>
+
+-#include "../../../include/qwt3d_types.h"
++#include <qwt3d_types.h>
+
+ #if QT_VERSION < 0x040000
+
+diff -Nur qwtplot3d.orig/examples/mesh2/src/functions.h qwtplot3d/examples/mesh2/src/functions.h +--- qwtplot3d.orig/examples/mesh2/src/functions.h 2007-11-26 22:16:54.000000000 +0000 ++++ qwtplot3d/examples/mesh2/src/functions.h 2007-11-26 22:23:47.000000000 +0000 +@@ -2,8 +2,8 @@ + #define __EXAMPLE_H__
+
+ #include <math.h>
+-#include "../../../include/qwt3d_parametricsurface.h"
+-#include "../../../include/qwt3d_function.h"
++#include <qwt3d_parametricsurface.h>
++#include <qwt3d_function.h>
+
+ using namespace Qwt3D;
+
+diff -Nur qwtplot3d.orig/examples/mesh2/src/lightingdlg.h qwtplot3d/examples/mesh2/src/lightingdlg.h +--- qwtplot3d.orig/examples/mesh2/src/lightingdlg.h 2007-11-26 22:16:54.000000000 +0000 ++++ qwtplot3d/examples/mesh2/src/lightingdlg.h 2007-11-26 22:24:41.000000000 +0000 +@@ -3,10 +3,10 @@ +
+ #include <math.h>
+ #include <qapplication.h>
+-#include "../../../include/qwt3d_parametricsurface.h"
+-#include "../../../include/qwt3d_surfaceplot.h"
+-#include "../../../include/qwt3d_enrichment.h"
+-#include "../../../include/qwt3d_color.h"
++#include <qwt3d_parametricsurface.h>
++#include <qwt3d_surfaceplot.h>
++#include <qwt3d_enrichment.h>
++#include <qwt3d_color.h>
+
+ #if QT_VERSION < 0x040000
+ #include "lightingdlgbase.h"
+diff -Nur qwtplot3d.orig/examples/mesh2/src/mesh2mainwindow.cpp qwtplot3d/examples/mesh2/src/mesh2mainwindow.cpp +--- qwtplot3d.orig/examples/mesh2/src/mesh2mainwindow.cpp 2007-11-26 22:16:54.000000000 +0000 ++++ qwtplot3d/examples/mesh2/src/mesh2mainwindow.cpp 2007-11-26 22:25:33.000000000 +0000 +@@ -33,9 +33,9 @@ + #include "colormapreader.h"
+ #include "lightingdlg.h"
+ #include "femreader.h"
+-#include "../../../include/qwt3d_io.h"
+-#include "../../../include/qwt3d_io_gl2ps.h"
+-#include "../../../include/qwt3d_io_reader.h"
++#include <qwt3d_io.h>
++#include <qwt3d_io_gl2ps.h>
++#include <qwt3d_io_reader.h>
+
+ using namespace Qwt3D;
+ using namespace std;
+diff -Nur qwtplot3d.orig/examples/mesh2/src/mesh2mainwindow.h qwtplot3d/examples/mesh2/src/mesh2mainwindow.h +--- qwtplot3d.orig/examples/mesh2/src/mesh2mainwindow.h 2007-11-26 22:16:54.000000000 +0000 ++++ qwtplot3d/examples/mesh2/src/mesh2mainwindow.h 2007-11-26 22:26:09.000000000 +0000 +@@ -1,7 +1,7 @@ + #ifndef mesh2mainwindow_h__2004_03_07_13_38_begin_guarded_code
+ #define mesh2mainwindow_h__2004_03_07_13_38_begin_guarded_code
+
+-#include "../../../include/qwt3d_surfaceplot.h"
++#include <qwt3d_surfaceplot.h>
+
+
+ #if QT_VERSION < 0x040000
diff --git a/x11-libs/qwtplot3d/files/qwtplot3d-gcc44.patch b/x11-libs/qwtplot3d/files/qwtplot3d-gcc44.patch new file mode 100644 index 000000000000..a76fe831ab91 --- /dev/null +++ b/x11-libs/qwtplot3d/files/qwtplot3d-gcc44.patch @@ -0,0 +1,12 @@ +diff -ur qwtplot3d-orig/include/qwt3d_function.h qwtplot3d/include/qwt3d_function.h +--- qwtplot3d-orig/include/qwt3d_function.h 2009-07-25 18:18:58.000000000 -0400 ++++ qwtplot3d/include/qwt3d_function.h 2009-07-25 18:19:19.000000000 -0400 +@@ -2,6 +2,7 @@ + #define qwt3d_function_h__2004_03_05_13_51_begin_guarded_code
+
+ #include "qwt3d_gridmapping.h"
++#include <cstdio>
+
+ namespace Qwt3D
+ {
+Only in qwtplot3d/tmp: qwt3d_function.o diff --git a/x11-libs/qwtplot3d/files/qwtplot3d-profile.patch b/x11-libs/qwtplot3d/files/qwtplot3d-profile.patch new file mode 100644 index 000000000000..831ad558d2f4 --- /dev/null +++ b/x11-libs/qwtplot3d/files/qwtplot3d-profile.patch @@ -0,0 +1,27 @@ +--- qwtplot3d.orig/qwtplot3d.pro 2007-11-26 22:16:54.000000000 +0000 ++++ qwtplot3d/qwtplot3d.pro 2007-11-26 23:45:18.000000000 +0000 +@@ -3,7 +3,7 @@ +
+ TARGET = qwtplot3d
+ TEMPLATE = lib
+-CONFIG += qt warn_on opengl thread zlib debug
++CONFIG += qt warn_on opengl thread zlib
+ MOC_DIR = tmp
+ OBJECTS_DIR = tmp
+ INCLUDEPATH = include
+@@ -21,7 +21,7 @@ + win32:CONFIG -= zlib
+
+ linux-g++:TMAKE_CXXFLAGS += -fno-exceptions
+-unix:VERSION = 0.2.6
++unix:VERSION = 0.2.7
+
+ # Input
+ SOURCES += src/qwt3d_axis.cpp \
+@@ -92,4 +92,4 @@ + DEFINES += GL2PS_HAVE_ZLIB
+ win32:LIBS += zlib.lib
+ unix:LIBS += -lz
+-} +\ No newline at end of file ++}
diff --git a/x11-libs/qwtplot3d/files/qwtplot3d-qt48.patch b/x11-libs/qwtplot3d/files/qwtplot3d-qt48.patch new file mode 100644 index 000000000000..4e558eda7c96 --- /dev/null +++ b/x11-libs/qwtplot3d/files/qwtplot3d-qt48.patch @@ -0,0 +1,19 @@ + include/qwt3d_openglhelper.h | 5 +++++ + 1 files changed, 5 insertions(+), 0 deletions(-) + +diff --git a/include/qwt3d_openglhelper.h b/include/qwt3d_openglhelper.h +index e5499c2..a7ecddc 100644 +--- a/include/qwt3d_openglhelper.h ++++ b/include/qwt3d_openglhelper.h +@@ -8,6 +8,11 @@ + #include <QtOpenGL/qgl.h>
+ #endif
+
++#if QT_VERSION < 0x047999
++#include <GL/glu.h>
++#endif
++
++
+ namespace Qwt3D
+ {
+
diff --git a/x11-libs/qwtplot3d/files/qwtplot3d-sys-gl2ps.patch b/x11-libs/qwtplot3d/files/qwtplot3d-sys-gl2ps.patch new file mode 100644 index 000000000000..81a77e13249f --- /dev/null +++ b/x11-libs/qwtplot3d/files/qwtplot3d-sys-gl2ps.patch @@ -0,0 +1,31 @@ +--- qwtplot3d.pro.orig 2009-04-07 19:45:29.985645378 +0100 ++++ qwtplot3d.pro 2009-04-07 19:46:50.095747068 +0100 +@@ -80,13 +80,11 @@ + include/qwt3d_graphplot.h \
+ include/qwt3d_multiplot.h
+
+-# gl2ps support
+-HEADERS+=3rdparty/gl2ps/gl2ps.h \
+- include/qwt3d_io_gl2ps.h
++# gl2ps support taken from system libs
++HEADERS+=include/qwt3d_io_gl2ps.h
+
+-SOURCES+=src/qwt3d_io_gl2ps.cpp \
+- 3rdparty/gl2ps/gl2ps.c
+-
++SOURCES+=src/qwt3d_io_gl2ps.cpp
++unix:LIBS += -lgl2ps
+ # zlib support for gl2ps
+ zlib {
+ DEFINES += GL2PS_HAVE_ZLIB
+--- src/qwt3d_io_gl2ps.cpp.orig 2009-04-07 19:44:38.536418391 +0100 ++++ src/qwt3d_io_gl2ps.cpp 2009-04-07 19:45:03.685133854 +0100 +@@ -4,7 +4,7 @@ +
+ #include <time.h>
+ #include "qwt3d_openglhelper.h"
+-#include "../3rdparty/gl2ps/gl2ps.h"
++#include <gl2ps.h>
+ #include "qwt3d_io_gl2ps.h"
+ #include "qwt3d_plot.h"
+
diff --git a/x11-libs/qwtplot3d/metadata.xml b/x11-libs/qwtplot3d/metadata.xml new file mode 100644 index 000000000000..2725f60bd4c3 --- /dev/null +++ b/x11-libs/qwtplot3d/metadata.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>sci@gentoo.org</email> + <name>Gentoo Science Project</name> + </maintainer> + <longdescription> + QwtPlot3D isa feature-rich Qt/OpenGL-based C++ programming library, + providing essentially a bunch of 3D-widgets for programmers. + </longdescription> + <upstream> + <remote-id type="sourceforge">qwtplot3d</remote-id> + </upstream> +</pkgmetadata> diff --git a/x11-libs/qwtplot3d/qwtplot3d-0.2.7-r2.ebuild b/x11-libs/qwtplot3d/qwtplot3d-0.2.7-r2.ebuild new file mode 100644 index 000000000000..917693ee34ce --- /dev/null +++ b/x11-libs/qwtplot3d/qwtplot3d-0.2.7-r2.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=4 + +inherit qt4-r2 + +DESCRIPTION="Qt4/OpenGL-based 3D widget library for C++" +HOMEPAGE="http://qwtplot3d.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tgz" + +LICENSE="ZLIB" +SLOT="0" +IUSE="doc examples" +KEYWORDS="amd64 ~ppc ~ppc64 x86" + +RDEPEND="dev-qt/qtgui:4 + dev-qt/qtopengl:4 + x11-libs/gl2ps" +DEPEND="${RDEPEND} + doc? ( app-doc/doxygen )" + +S=${WORKDIR}/${PN} + +PATCHES=( + "${FILESDIR}"/${PN}-profile.patch + "${FILESDIR}"/${PN}-examples.patch + "${FILESDIR}"/${PN}-doxygen.patch + "${FILESDIR}"/${PN}-sys-gl2ps.patch + "${FILESDIR}"/${PN}-gcc44.patch + "${FILESDIR}"/${PN}-qt48.patch + ) + +src_prepare() { + qt4-r2_src_prepare + cat >> ${PN}.pro <<-EOF + target.path = /usr/$(get_libdir) + headers.path = /usr/include/${PN} + headers.files = \$\$HEADERS + INSTALLS = target headers + EOF +} + +src_compile() { + qt4-r2_src_compile + if use doc ; then + cd doc + doxygen Doxyfile.doxygen || die "doxygen failed" + fi +} + +src_install () { + qt4-r2_src_install + if use examples; then + insinto /usr/share/${PN} + doins -r examples + fi + use doc && dohtml -r doc/web/doxygen/* +} |