From 193289290ac6d38354ebfb3aab0dc03a51c52a09 Mon Sep 17 00:00:00 2001 From: miqlas <5569059+extrowerk@users.noreply.github.com> Date: Sat, 21 Jul 2018 17:43:33 +0200 Subject: [PATCH] QtDropbox: new recipe (#2759) --- dev-qt/qtdropbox/qtdropbox-20151109.recipe | 79 ++++++++++++++++++++++ 1 file changed, 79 insertions(+) create mode 100644 dev-qt/qtdropbox/qtdropbox-20151109.recipe diff --git a/dev-qt/qtdropbox/qtdropbox-20151109.recipe b/dev-qt/qtdropbox/qtdropbox-20151109.recipe new file mode 100644 index 000000000..fb3f3a7e8 --- /dev/null +++ b/dev-qt/qtdropbox/qtdropbox-20151109.recipe @@ -0,0 +1,79 @@ +SUMMARY="An API for the well known cloud storage service" +DESCRIPTION="Basically QtDropbox aims to provide an easy to use possibility \ +to access the REST API of Dropbox. All HTTP calls are hidden behind the \ +curtains of neat C++/Qt classes with nice method names and specific uses." +HOMEPAGE="https://github.com/lycis/QtDropbox" +COPYRIGHT="2015 Daniel Eder" +LICENSE="GNU LGPL v3" +REVISION="1" +srcGitRev="17ad0070e8157fc973a3f3c47c676e73728c26d0" +SOURCE_URI="$HOMEPAGE/archive/$srcGitRev.tar.gz" +CHECKSUM_SHA256="edceab7fdc5deeeb39b2f868ba24ccd2b479013467dad4c81179a412e87bdc6b" +SOURCE_FILENAME="QtDropbox-$portVersion-$srcGitRev.tar.gz" +SOURCE_DIR="QtDropbox-$srcGitRev" + +ARCHITECTURES="!x86_gcc2 ?x86 x86_64" +SECONDARY_ARCHITECTURES="x86" + +libVersion="1.0.0" +libVersionCompat="$libVersion compat >= ${libVersion%%.*}" + +PROVIDES=" + qtdropbox$secondaryArchSuffix = $portVersion + lib:libqtdropbox$secondaryArchSuffix = $libVersionCompat + " +REQUIRES=" + haiku$secondaryArchSuffix + lib:libQt5Core$secondaryArchSuffix + lib:libQt5Network$secondaryArchSuffix + lib:libQt5Xml$secondaryArchSuffix + " + +PROVIDES_devel=" + qtdropbox${secondaryArchSuffix}_devel = $portVersion + devel:libqtdropbox$secondaryArchSuffix = $libVersionCompat + " +REQUIRES_devel=" + qtdropbox$secondaryArchSuffix == $portVersion base + " + +BUILD_REQUIRES=" + haiku${secondaryArchSuffix}_devel + devel:libQt5Core$secondaryArchSuffix + devel:libQt5Network$secondaryArchSuffix + devel:libQt5Xml$secondaryArchSuffix + " +BUILD_PREREQUIRES=" + cmd:doxygen + cmd:g++$secondaryArchSuffix + cmd:ld$secondaryArchSuffix + cmd:make + cmd:pkg_config$secondaryArchSuffix + cmd:qmake$secondaryArchSuffix >= 5 + " + +defineDebugInfoPackage qtdropbox$secondaryArchSuffix \ + "$libDir"/libQtDropbox.so.$libVersion + +BUILD() +{ + qmake . + make $jobArgs +} + +INSTALL() +{ + make install + mkdir -p $includeDir $libDir + cp -r ../../usr/include/* $includeDir + cp -r ../../usr/lib/* $libDir + rm -rf ../../usr + + # prepare develop/lib + prepareInstalledDevelLibs libQtDropbox + fixPkgconfig + + # devel package + packageEntries devel \ + $developDir +}