dev-util/redpanda-cpp: add 3.5, drop 3.4
Upstream removed Red_Panda_CPP.pro and builds with CMake only, so inherit cmake and set -DBUILD_TESTING=OFF to keep the previous behaviour of not running upstream tests. Upstream now defines isCompilerUsingUTF8 and isDebuggerUsingUTF8 on non-Windows targets and fixed the other two hunks, so drop redpanda-cpp-3.4-fix-linux-utf8.patch and files/. cmake_src_install runs einstalldocs, which already installs README* and NEWS.md, so drop dodoc. Signed-off-by: Zakk <zakk@gentoozh.org>
This commit is contained in:
1 parent
c216c20746
commit
edc3ed76e9
3 files changed
+5
-74
No files matched your search
@@ -1 +1 @@
|
||||
DIST redpanda-cpp-3.4.tar.gz 4867475 BLAKE2B 7e757d56c35ac27d272ed6ab68184500d63091922584b875cb047abe75040b33920f28c6839e045cf5869c18425e821cbd7f79a63ba68293f00600fcf50f1110 SHA512 3d5ba6f4e056f22f875421796a6d6115a21e2ddaa6a6c9198e2df2752511500818b4ab4b69f8f03ac0f204f7b9f9759b4cb044de265478bab4213927fa415ec3
|
||||
DIST redpanda-cpp-3.5.tar.gz 4984457 BLAKE2B 318fef255f00781edeed139374ec64285f4f1d3310852012d74b5f367835d0e5987b717a93834b74ab504afe0ae76517b36de2ab5ce0f346fdfbb3cf7ae43882 SHA512 c4f092d5734a8c5f8c3e81f5fc5adf45ab544e4b9d75351bf42343a56584c61fd36633c5d624c63ae76f122318584c33bb4411c1f4c8df63380def69a299c3e6
|
||||
@@ -1,66 +0,0 @@
|
||||
diff --git a/RedPandaIDE/compiler/compiler.cpp b/RedPandaIDE/compiler/compiler.cpp
|
||||
--- a/RedPandaIDE/compiler/compiler.cpp
|
||||
+++ b/RedPandaIDE/compiler/compiler.cpp
|
||||
@@ -726,8 +726,13 @@ void Compiler::runCommand(const QString &cmd, const QStringList &arguments, cons
|
||||
errorOccurred = false;
|
||||
process.setProgram(cmd);
|
||||
QString cmdDir = extractFileDir(cmd);
|
||||
+#ifdef Q_OS_WINDOWS
|
||||
bool compilerErrorUTF8=compilerSet()->isCompilerUsingUTF8();
|
||||
bool outputUTF8=compilerSet()->isCompilerUsingUTF8();
|
||||
+#else
|
||||
+ bool compilerErrorUTF8=compilerSet()->isCompilerInfoUsingUTF8();
|
||||
+ bool outputUTF8=compilerSet()->isCompilerInfoUsingUTF8();
|
||||
+#endif
|
||||
QProcessEnvironment env = QProcessEnvironment::systemEnvironment();
|
||||
#ifdef Q_OS_WIN
|
||||
QStringList binDirs=compilerSet()->binDirs();
|
||||
diff --git a/RedPandaIDE/debugger/debugger.cpp b/RedPandaIDE/debugger/debugger.cpp
|
||||
--- a/RedPandaIDE/debugger/debugger.cpp
|
||||
+++ b/RedPandaIDE/debugger/debugger.cpp
|
||||
@@ -98,8 +98,13 @@ bool Debugger::startClient(int compilerSetIndex,
|
||||
tr("No compiler set is configured.")+tr("Can't start debugging."));
|
||||
return false;
|
||||
}
|
||||
+#ifdef Q_OS_WINDOWS
|
||||
setForceUTF8(compilerSet->isDebuggerUsingUTF8());
|
||||
setDebugInfosUsingUTF8(compilerSet->isCompilerUsingUTF8());
|
||||
+#else
|
||||
+ setForceUTF8(compilerSet->isDebugInfoUsingUTF8());
|
||||
+ setDebugInfosUsingUTF8(compilerSet->isCompilerInfoUsingUTF8());
|
||||
+#endif
|
||||
if (compilerSet->debugger().endsWith(LLDB_MI_PROGRAM))
|
||||
setDebuggerType(DebuggerType::LLDB_MI);
|
||||
else
|
||||
diff --git a/RedPandaIDE/settings.cpp b/RedPandaIDE/settings.cpp
|
||||
--- a/RedPandaIDE/settings.cpp
|
||||
+++ b/RedPandaIDE/settings.cpp
|
||||
@@ -3010,6 +3010,6 @@ bool Settings::CompilerSet::supportConvertingCharset()
|
||||
return mGccSupportConvertingCharset;
|
||||
#else
|
||||
// Unix: iconv is a part of POSIX standard.
|
||||
- return mCompilerType == CompilerType::GCC || mCompilerType == CompilerType::GCC_UTF8;
|
||||
+ return mCompilerType == CompilerType::GCC;
|
||||
#endif
|
||||
}
|
||||
diff --git a/RedPandaIDE/widgets/darkfusionstyle.cpp b/RedPandaIDE/widgets/darkfusionstyle.cpp
|
||||
--- a/RedPandaIDE/widgets/darkfusionstyle.cpp
|
||||
+++ b/RedPandaIDE/widgets/darkfusionstyle.cpp
|
||||
@@ -74,7 +74,7 @@ static QString uniqueName(const QString &key, const QStyleOption *option, const
|
||||
const QStyleOptionComplex *complexOption = qstyleoption_cast<const QStyleOptionComplex *>(option);
|
||||
QString tmp = QString("%1%2%3%4%5%6%7")
|
||||
.arg(key)
|
||||
- .arg(option->state)
|
||||
+ .arg(option->state.toInt())
|
||||
.arg(option->direction)
|
||||
.arg(complexOption ? uint(complexOption->activeSubControls) : 0u)
|
||||
.arg(option->palette.cacheKey())
|
||||
@@ -85,7 +85,7 @@ static QString uniqueName(const QString &key, const QStyleOption *option, const
|
||||
if (const QStyleOptionSpinBox *spinBox = qstyleoption_cast<const QStyleOptionSpinBox *>(option)) {
|
||||
tmp = tmp + QString("%1%2%3")
|
||||
.arg(spinBox->buttonSymbols)
|
||||
- .arg(spinBox->stepEnabled)
|
||||
+ .arg(spinBox->stepEnabled.toInt())
|
||||
.arg(QLatin1Char(spinBox->frame ? '1' : '0'));
|
||||
}
|
||||
#endif // QT_CONFIG(spinbox)
|
||||
+4
-7
@@ -2,7 +2,7 @@
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
inherit xdg qmake-utils
|
||||
inherit cmake xdg
|
||||
DESCRIPTION="A lightweight yet powerful C/C++/GNU Assembly IDE"
|
||||
HOMEPAGE="http://royqh.net/redpandacpp/"
|
||||
SRC_URI="https://github.com/royqh1979/RedPanda-CPP/archive/refs/tags/v${PV}.tar.gz -> redpanda-cpp-${PV}.tar.gz"
|
||||
@@ -21,15 +21,12 @@ BDEPEND="
|
||||
dev-vcs/git
|
||||
"
|
||||
|
||||
PATCHES=( "${FILESDIR}/${P}-fix-linux-utf8.patch" )
|
||||
|
||||
src_configure(){
|
||||
OPTIONS="PREFIX=/usr LIBEXECDIR=libexec XDG_ADAPTIVE_ICON=ON"
|
||||
eqmake6 ${OPTIONS} Red_Panda_CPP.pro
|
||||
local mycmakeargs=( -DBUILD_TESTING=OFF )
|
||||
cmake_src_configure
|
||||
}
|
||||
|
||||
src_install(){
|
||||
emake INSTALL_ROOT="${ED}" install
|
||||
cmake_src_install
|
||||
rm -r "${ED}/usr/share/doc/RedPandaCPP" || die
|
||||
dodoc README.md NEWS.md
|
||||
}
|
||||
Reference in new issue
Block a user