mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 19:50:05 +02:00
qbs: add recipe for version 1.9.0.
This commit is contained in:
36
dev-util/qbs/patches/qbs-1.9.0.patchset
Normal file
36
dev-util/qbs/patches/qbs-1.9.0.patchset
Normal file
@@ -0,0 +1,36 @@
|
||||
From b5e2e64611588e112fb74fc1f93a4ab989540ba6 Mon Sep 17 00:00:00 2001
|
||||
From: Sergei Reznikov <diver@gelios.net>
|
||||
Date: Tue, 3 Nov 2015 14:31:04 +0300
|
||||
Subject: Haiku: implement processNameByPid
|
||||
|
||||
|
||||
diff --git a/src/lib/corelib/tools/processutils.cpp b/src/lib/corelib/tools/processutils.cpp
|
||||
index 58a082f..e28c4a4 100644
|
||||
--- a/src/lib/corelib/tools/processutils.cpp
|
||||
+++ b/src/lib/corelib/tools/processutils.cpp
|
||||
@@ -49,6 +49,8 @@
|
||||
# include "fileinfo.h"
|
||||
# include <unistd.h>
|
||||
# include <cstdio>
|
||||
+#elif defined(Q_OS_HAIKU)
|
||||
+# include <OS.h>
|
||||
#elif defined(Q_OS_BSD4)
|
||||
# include <QtCore/qfile.h>
|
||||
# include <sys/cdefs.h>
|
||||
@@ -94,6 +96,13 @@ QString processNameByPid(qint64 pid)
|
||||
sprintf(exePath, "/proc/%lld/exe", pid);
|
||||
readlink(exePath, buf, sizeof(buf));
|
||||
return FileInfo::fileName(QString::fromUtf8(buf));
|
||||
+#elif defined(Q_OS_HAIKU)
|
||||
+ team_info info;
|
||||
+ if(get_team_info((team_id)pid, &info)==B_OK) {
|
||||
+ if(info.argc >= 1)
|
||||
+ return QString::fromUtf8(info.args);
|
||||
+ }
|
||||
+ return QString();
|
||||
#elif defined(Q_OS_BSD4)
|
||||
# if defined(Q_OS_NETBSD)
|
||||
struct kinfo_proc2 kp;
|
||||
--
|
||||
2.12.2
|
||||
|
||||
72
dev-util/qbs/qbs-1.9.0.recipe
Normal file
72
dev-util/qbs/qbs-1.9.0.recipe
Normal file
@@ -0,0 +1,72 @@
|
||||
SUMMARY="Qt Build Suite"
|
||||
DESCRIPTION="Qbs is a cross-platform build tool."
|
||||
HOMEPAGE="http://wiki.qt.io/Qbs"
|
||||
COPYRIGHT="2016-2017, Digia Plc and/or its subsidiary(-ies)"
|
||||
LICENSE="GNU LGPL v2"
|
||||
REVISION="1"
|
||||
SOURCE_URI="http://download.qt.io/official_releases/qbs/$portVersion/qbs-src-$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="eb1bdedd274ad349442cb6b3938b4b904e7f738881c0689c2b71b620ec714793"
|
||||
SOURCE_DIR="dist/qbs-src-$portVersion"
|
||||
PATCHES="qbs-$portVersion.patchset"
|
||||
|
||||
ARCHITECTURES="!x86_gcc2 x86 x86_64"
|
||||
SECONDARY_ARCHITECTURES="?x86"
|
||||
|
||||
PROVIDES="
|
||||
qbs$secondaryArchSuffix = $portVersion
|
||||
cmd:qbs = $portVersion
|
||||
cmd:qbs_config = $portVersion
|
||||
cmd:qbs_config_ui = $portVersion
|
||||
cmd:qbs_create_project = $portVersion
|
||||
cmd:qbs_qmltypes = $portVersion
|
||||
cmd:qbs_setup_android = $portVersion
|
||||
cmd:qbs_setup_qt = $portVersion
|
||||
cmd:qbs_setup_toolchains = $portVersion
|
||||
lib:libqbscore$secondaryArchSuffix = $portVersion
|
||||
lib:libqbsqtprofilesetup$secondaryArchSuffix = $portVersion
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
lib:libGL$secondaryArchSuffix
|
||||
lib:libQt5Core$secondaryArchSuffix
|
||||
lib:libQt5Gui$secondaryArchSuffix
|
||||
lib:libQt5Network$secondaryArchSuffix
|
||||
lib:libQt5Script$secondaryArchSuffix
|
||||
lib:libQt5Widgets$secondaryArchSuffix
|
||||
lib:libQt5Xml$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
devel:libQt5Core$secondaryArchSuffix
|
||||
devel:libQt5Gui$secondaryArchSuffix
|
||||
devel:libQt5Network$secondaryArchSuffix
|
||||
devel:libQt5Script$secondaryArchSuffix
|
||||
devel:libQt5Widgets$secondaryArchSuffix
|
||||
devel:libQt5Xml$secondaryArchSuffix
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:ld$secondaryArchSuffix
|
||||
cmd:make
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
qmake -r qbs.pro QBS_INSTALL_PREFIX=$prefix
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
make install
|
||||
|
||||
mv $prefix/lib $prefix/lib2
|
||||
mkdir -p $(dirname $libDir) $(dirname $includeDir) $(diname $dataDir)
|
||||
|
||||
mv $prefix/include $includeDir
|
||||
mv $prefix/lib2 $libDir
|
||||
mv $prefix/share $dataDir
|
||||
mv $prefix/libexec/qbs/* $libDir/qbs/
|
||||
rm -rf $prefix/libexec
|
||||
}
|
||||
Reference in New Issue
Block a user