From 60e11f2efa1e2ce4124ed6c490b49d3d687b0977 Mon Sep 17 00:00:00 2001 From: Sergei Reznikov Date: Fri, 15 Dec 2017 16:31:52 +0300 Subject: [PATCH] libkomparediff2: add recipe for version 17.12.0 --- .../libkomparediff2-17.12.0.recipe | 104 ++++++++++++++++++ 1 file changed, 104 insertions(+) create mode 100644 kde-apps/libkomparediff2/libkomparediff2-17.12.0.recipe diff --git a/kde-apps/libkomparediff2/libkomparediff2-17.12.0.recipe b/kde-apps/libkomparediff2/libkomparediff2-17.12.0.recipe new file mode 100644 index 000000000..13a04100d --- /dev/null +++ b/kde-apps/libkomparediff2/libkomparediff2-17.12.0.recipe @@ -0,0 +1,104 @@ +SUMMARY="Library to compare files and strings" +DESCRIPTION="This package contains a library used to compare files and \ +strings, and is used in Kompare and KDevelop. + +This package is part of the KDE Software Development Kit module." +HOMEPAGE="https://github.com/KDE/libkomparediff2/" +COPYRIGHT="2010-2017 KDE Organisation" +LICENSE="GNU LGPL v2" +REVISION="1" +SOURCE_URI="https://github.com/KDE/libkomparediff2/archive/v$portVersion.tar.gz" +CHECKSUM_SHA256="57145a85cac394d2dcf758d5f7ebbdeb12255c99612625cbc407d45692ede6e0" + +ARCHITECTURES="!x86_gcc2 x86_64" +SECONDARY_ARCHITECTURES="x86" + +PROVIDES=" + kauth$secondaryArchSuffix = $portVersion + lib:libkomparediff2$secondaryArchSuffix = $portVersion compat >= 5 + " +REQUIRES=" + haiku$secondaryArchSuffix + lib:libKF5Auth$secondaryArchSuffix + lib:libKF5ConfigCore$secondaryArchSuffix + lib:libKF5ConfigWidgets$secondaryArchSuffix + lib:libKF5CoreAddons$secondaryArchSuffix + lib:libKF5Codecs$secondaryArchSuffix + lib:libKF5I18n$secondaryArchSuffix + lib:libKF5KIOCore$secondaryArchSuffix + lib:libKF5Service$secondaryArchSuffix + lib:libKF5WidgetsAddons$secondaryArchSuffix + lib:libKF5XmlGui$secondaryArchSuffix + lib:libQt5Core$secondaryArchSuffix + lib:libQt5Gui$secondaryArchSuffix + lib:libQt5Xml$secondaryArchSuffix + " + +PROVIDES_devel=" + libkomparediff2${secondaryArchSuffix}_devel = $portVersion + devel:libkomparediff2$secondaryArchSuffix = $portVersion compat >= 5 + " +REQUIRES_devel=" + libkomparediff2$secondaryArchSuffix == $portVersion base + " + +BUILD_REQUIRES=" + extra_cmake_modules >= 5.39 + haiku${secondaryArchSuffix}_devel + devel:libKF5Auth$secondaryArchSuffix + devel:libKF5Bookmarks$secondaryArchSuffix + devel:libKF5Completion$secondaryArchSuffix + devel:libKF5CoreAddons$secondaryArchSuffix + devel:libKF5Codecs$secondaryArchSuffix + devel:libKF5ConfigCore$secondaryArchSuffix + devel:libKF5ConfigWidgets$secondaryArchSuffix + devel:libKF5I18n$secondaryArchSuffix + devel:libKF5ItemViews$secondaryArchSuffix + devel:libKF5JobWidgets$secondaryArchSuffix + devel:libKF5KIOCore$secondaryArchSuffix + devel:libKF5Service$secondaryArchSuffix + devel:libKF5Solid$secondaryArchSuffix + devel:libKF5WidgetsAddons$secondaryArchSuffix + devel:libKF5XmlGui$secondaryArchSuffix + devel:libQt5Core$secondaryArchSuffix + devel:libQt5Gui$secondaryArchSuffix + devel:libQt5Xml$secondaryArchSuffix + devel:libQt5Core$secondaryArchSuffix + " +BUILD_PREREQUIRES=" + cmd:cmake + cmd:g++$secondaryArchSuffix + cmd:make + cmd:python2 + " + +BUILD() +{ + mkdir -p build + cd build + + cmake .. $cmakeDirArgs \ + -DKDE_INSTALL_PLUGINDIR=$addOnsDir/Qt5 \ + -DECM_MKSPECS_INSTALL_DIR=$dataDir/Qt5/mkspecs \ + -DECM_DIR=/system/data/cmake/Modules/ECM/cmake + make $jobArgs +} + +INSTALL() +{ + cd build + make install + + prepareInstalledDevelLibs \ + libkomparediff2 + + packageEntries devel \ + $libDir/cmake \ + $developDir +} + +TEST() +{ + cd build + make test +}