From cefd3ca95d8ba989ec1bb0409304dcc539a69fc8 Mon Sep 17 00:00:00 2001 From: Gerasim Troeglazov <3dEyes@gmail.com> Date: Thu, 16 Nov 2017 20:22:12 +1000 Subject: [PATCH] kplotting: add recipe for version 5.39.0 --- .../kplotting/kplotting-5.39.0.recipe | 108 ++++++++++++++++++ 1 file changed, 108 insertions(+) create mode 100644 kde-frameworks/kplotting/kplotting-5.39.0.recipe diff --git a/kde-frameworks/kplotting/kplotting-5.39.0.recipe b/kde-frameworks/kplotting/kplotting-5.39.0.recipe new file mode 100644 index 000000000..56005d8e6 --- /dev/null +++ b/kde-frameworks/kplotting/kplotting-5.39.0.recipe @@ -0,0 +1,108 @@ +SUMMARY="KDE Data plotting" +DESCRIPTION="KPlotWidget is a QWidget-derived class that provides a virtual base \ +class for easy data-plotting. +The idea behind KPlotWidget is that you only have to specify information in 'data \ +units'; i.e., the natural units of the data being plotted. +KPlotWidget automatically converts everything to screen pixel units." +HOMEPAGE="https://github.com/KDE/kplotting/" +COPYRIGHT="2010-2017 KDE Organisation" +LICENSE="GNU LGPL v2" +REVISION="1" +SOURCE_URI="https://github.com/KDE/kplotting/archive/v$portVersion.tar.gz" +CHECKSUM_SHA256="a219250c51ca2d9a3cf04915ed6f5706f48f3d790acfd55070121a06b4550f9d" + +ARCHITECTURES="?x86_gcc2 x86_64" +SECONDARY_ARCHITECTURES="x86" + +PROVIDES=" + kplotting$secondaryArchSuffix = $portVersion + lib:libKF5Plotting$secondaryArchSuffix = $portVersion + " +REQUIRES=" + haiku$secondaryArchSuffix + lib:libKF5Auth$secondaryArchSuffix + lib:libKF5Codecs$secondaryArchSuffix + lib:libKF5ConfigCore$secondaryArchSuffix + lib:libKF5ConfigGui$secondaryArchSuffix + lib:libKF5ConfigWidgets$secondaryArchSuffix + lib:libKF5CoreAddons$secondaryArchSuffix + lib:libKF5I18n$secondaryArchSuffix + lib:libKF5IconThemes$secondaryArchSuffix + lib:libKF5ItemViews$secondaryArchSuffix + lib:libKF5Package$secondaryArchSuffix + lib:libKF5QuickAddons$secondaryArchSuffix + lib:libKF5Service$secondaryArchSuffix + lib:libKF5WidgetsAddons$secondaryArchSuffix + lib:libKF5XmlGui$secondaryArchSuffix + lib:libQt5Core$secondaryArchSuffix + lib:libQt5DBus$secondaryArchSuffix + lib:libQt5Gui$secondaryArchSuffix + lib:libQt5Network$secondaryArchSuffix + lib:libQt5Qml$secondaryArchSuffix + lib:libQt5Quick$secondaryArchSuffix + lib:libQt5QuickWidgets$secondaryArchSuffix + lib:libQt5Widgets$secondaryArchSuffix + lib:libQt5Xml$secondaryArchSuffix + " + +PROVIDES_devel=" + kplotting${secondaryArchSuffix}_devel = $portVersion + devel:libKF5Plotting$secondaryArchSuffix = $portVersion + " +REQUIRES_devel=" + kplotting$secondaryArchSuffix == $portVersion base + " + +BUILD_REQUIRES=" + extra_cmake_modules >= 5.39 + haiku${secondaryArchSuffix}_devel + devel:libKF5Auth$secondaryArchSuffix + devel:libKF5Codecs$secondaryArchSuffix + devel:libKF5ConfigCore$secondaryArchSuffix + devel:libKF5Declarative$secondaryArchSuffix + devel:libKF5ItemViews$secondaryArchSuffix + devel:libKF5I18n$secondaryArchSuffix + devel:libKF5ConfigWidgets$secondaryArchSuffix + devel:libKF5CoreAddons$secondaryArchSuffix + devel:libKF5Iconthemes$secondaryArchSuffix + devel:libKF5Package$secondaryArchSuffix + devel:libKF5Service$secondaryArchSuffix + devel:libKF5WidgetsAddons$secondaryArchSuffix + devel:libKF5XmlGui$secondaryArchSuffix + devel:libQt5Core$secondaryArchSuffix >= 5.7 + " +BUILD_PREREQUIRES=" + cmd:cmake + cmd:g++$secondaryArchSuffix + cmd:make + " + +BUILD() +{ + mkdir -p build + cd build + + cmake .. $cmakeDirArgs \ + -DECM_MKSPECS_INSTALL_DIR=$dataDir/Qt5/mkspecs \ + -DECM_DIR=/system/data/cmake/Modules/ECM/cmake + make $jobArgs +} + +INSTALL() +{ + cd build + make install + + prepareInstalledDevelLibs libKF5Plotting + + packageEntries devel \ + $libDir/cmake \ + $dataDir/Qt5/mkspecs \ + $developDir +} + +TEST() +{ + cd build + make test +}