mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 19:50:05 +02:00
qbs: add recipe and patch for version 1.4.2
This commit is contained in:
36
dev-util/qbs/patches/qbs_x86-1.4.2.patchset
Normal file
36
dev-util/qbs/patches/qbs_x86-1.4.2.patchset
Normal file
@@ -0,0 +1,36 @@
|
||||
From 99018c66a7e83aca455da3e88689cbd451dde65d 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 e02f445..9a0149c 100644
|
||||
--- a/src/lib/corelib/tools/processutils.cpp
|
||||
+++ b/src/lib/corelib/tools/processutils.cpp
|
||||
@@ -40,6 +40,8 @@
|
||||
# include "fileinfo.h"
|
||||
# include <unistd.h>
|
||||
# include <cstdio>
|
||||
+#elif defined(Q_OS_HAIKU)
|
||||
+# include <OS.h>
|
||||
#elif defined(Q_OS_BSD4)
|
||||
# include <libutil.h>
|
||||
# include <sys/types.h>
|
||||
@@ -81,6 +83,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)
|
||||
kinfo_proc *proc = kinfo_getproc(pid);
|
||||
if (!proc)
|
||||
--
|
||||
2.2.2
|
||||
|
||||
63
dev-util/qbs/qbs-1.4.2.recipe
Normal file
63
dev-util/qbs/qbs-1.4.2.recipe
Normal file
@@ -0,0 +1,63 @@
|
||||
SUMMARY="Qt Build Suite"
|
||||
DESCRIPTION="Qbs is a cross-platform build tool."
|
||||
HOMEPAGE="http://wiki.qt.io/Qbs"
|
||||
LICENSE="GNU LGPL v2"
|
||||
COPYRIGHT="TODO"
|
||||
SOURCE_URI="http://download.qt.io/official_releases/qbs/$portVersion/qbs-src-$portVersion.tar.gz"
|
||||
SOURCE_DIR="qbs-src-$portVersion"
|
||||
CHECKSUM_SHA256="b9d36118c3ae0f7d4df6bf7239a0a0163c0340b701d00191fa5f832cef341ce5"
|
||||
REVISION="1"
|
||||
|
||||
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_qmltypes = $portVersion
|
||||
cmd:qbs_setup_android = $portVersion
|
||||
cmd:qbs_setup_qt = $portVersion
|
||||
cmd:qbs_setup_toolchains = $portVersion
|
||||
lib:libqbscore$secondaryArchSuffix
|
||||
lib:libqbsqtprofilesetup$secondaryArchSuffix
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
lib:libgl$secondaryArchSuffix
|
||||
lib:libqt5$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
devel:libqt5$secondaryArchSuffix
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:ld$secondaryArchSuffix
|
||||
cmd:make
|
||||
"
|
||||
|
||||
PATCHES="qbs_x86-1.4.2.patchset"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
qmake -r qbs.pro QBS_INSTALL_PREFIX=$prefix
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
make install
|
||||
|
||||
mkdir -p $libDir $includeDir $dataDir
|
||||
cp lib/libqbscore.so* $libDir
|
||||
cd $prefix
|
||||
|
||||
mv include/qbs $includeDir
|
||||
mv lib/*qbs* $libDir
|
||||
mv share/qbs $dataDir
|
||||
|
||||
rm -rf include share
|
||||
}
|
||||
Reference in New Issue
Block a user