semantik: drop
This commit is contained in:
@@ -1,102 +0,0 @@
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
fetchFromGitLab,
|
||||
wafHook,
|
||||
pkg-config,
|
||||
cmake,
|
||||
wrapQtAppsHook,
|
||||
qtbase,
|
||||
python3,
|
||||
qtwebengine,
|
||||
qtsvg,
|
||||
ncurses6,
|
||||
kio,
|
||||
kauth,
|
||||
kiconthemes,
|
||||
kconfigwidgets,
|
||||
kxmlgui,
|
||||
kcoreaddons,
|
||||
kconfig,
|
||||
kwidgetsaddons,
|
||||
ki18n,
|
||||
sonnet,
|
||||
kdelibs4support,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "semantik";
|
||||
version = "1.2.10";
|
||||
|
||||
src = fetchFromGitLab {
|
||||
owner = "ita1024";
|
||||
repo = "semantik";
|
||||
rev = "semantik-${version}";
|
||||
hash = "sha256-qJ6MGxnxXcibF2qXZ2w7Ey/aBIEIx8Gg0dM2PnCl09Y=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
./qt5.patch
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
echo "${lib.getDev qtwebengine}"
|
||||
substituteInPlace wscript \
|
||||
--replace @Qt5Base_dev@ "${lib.getDev qtbase}" \
|
||||
--replace @KF5KIOCore_dev@ "${lib.getDev kio}" \
|
||||
--replace @KF5Auth_dev@ "${lib.getDev kauth}" \
|
||||
--replace @KF5IconThemes_dev@ "${lib.getDev kiconthemes}" \
|
||||
--replace @KF5ConfigWidgets_dev@ "${lib.getDev kconfigwidgets}" \
|
||||
--replace @KF5XmlGui_dev@ "${lib.getDev kxmlgui}" \
|
||||
--replace @KF5CoreAddons_dev@ "${lib.getDev kcoreaddons}" \
|
||||
--replace @KF5Config_dev@ "${lib.getDev kconfig}" \
|
||||
--replace @KF5WidgetsAddons_dev@ "${lib.getDev kwidgetsaddons}" \
|
||||
--replace @KF5I18n_dev@ "${lib.getDev ki18n}" \
|
||||
--replace @KF5SonnetUi_dev@ "${lib.getDev sonnet}" \
|
||||
--replace @Qt5Svg@ "${qtsvg}" \
|
||||
--replace @Qt5Svg_dev@ "${lib.getDev qtsvg}" \
|
||||
--replace @Qt5WebEngine@ "${qtwebengine}" \
|
||||
--replace @Qt5WebEngine_dev@ "${lib.getDev qtwebengine}" \
|
||||
--replace /usr/include/KF5/KDELibs4Support "${lib.getDev kdelibs4support}/include/KF5/KDELibs4Support"
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
(lib.getDev qtsvg)
|
||||
(lib.getLib qtsvg)
|
||||
python3
|
||||
pkg-config
|
||||
wafHook
|
||||
cmake
|
||||
wrapQtAppsHook
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
qtbase
|
||||
qtwebengine
|
||||
qtsvg
|
||||
ncurses6
|
||||
kio
|
||||
kauth
|
||||
kiconthemes
|
||||
kconfigwidgets
|
||||
kxmlgui
|
||||
kcoreaddons
|
||||
kconfig
|
||||
kwidgetsaddons
|
||||
ki18n
|
||||
sonnet
|
||||
kdelibs4support
|
||||
];
|
||||
|
||||
wafConfigureFlags = [
|
||||
"--qtlibs=${lib.getLib qtbase}/lib"
|
||||
];
|
||||
|
||||
meta = {
|
||||
description = "Mind-mapping application for KDE";
|
||||
license = lib.licenses.mit;
|
||||
homepage = "https://waf.io/semantik.html";
|
||||
platforms = lib.platforms.linux;
|
||||
mainProgram = "semantik";
|
||||
};
|
||||
}
|
||||
@@ -1,79 +0,0 @@
|
||||
diff --color -ur a/wscript b/wscript
|
||||
--- a/wscript 2020-08-17 19:49:43.389864343 +0200
|
||||
+++ b/wscript 2020-08-18 00:22:51.172556519 +0200
|
||||
@@ -149,6 +149,26 @@
|
||||
if not conf.env.QT_LRELEASE: conf.fatal('Semantik requires the program lrelease (from the Qt linguist package? - compilation only)')
|
||||
conf.find_program('python3', var='PYTHON')
|
||||
conf.load('python')
|
||||
+ conf.env.HAVE_QT5SVG = 1
|
||||
+ conf.env.DEFINES_QT5SVG = [ 'QT_SVG_LIB' ]
|
||||
+ conf.env.INCLUDES_QT5SVG = [ '@Qt5Svg_dev@/include/QtSvg' ]
|
||||
+ conf.env.LIBPATH_QT5SVG = '@Qt5Svg@/lib'
|
||||
+ conf.env.LIB_QT5SVG = [ 'Qt5Svg', 'Qt5Core', 'Qt5Gui', 'Qt5Widgets' ]
|
||||
+ conf.env.HAVE_QT5WEBENGINEWIDGETS = 1
|
||||
+ conf.env.DEFINES_QT5WEBENGINEWIDGETS = [ 'QT_WEBENGINEWIDGETS_LIB' ]
|
||||
+ conf.env.INCLUDES_QT5WEBENGINEWIDGETS = [ '@Qt5WebEngine_dev@/include/QtWebEngineWidgets' ]
|
||||
+ conf.env.LIBPATH_QT5WEBENGINEWIDGETS = '@Qt5WebEngine@/lib'
|
||||
+ conf.env.LIB_QT5WEBENGINEWIDGETS = [
|
||||
+ 'Qt5WebEngineWidgets',
|
||||
+ 'Qt5Core',
|
||||
+ 'Qt5Gui',
|
||||
+ 'Qt5WebEngineCore',
|
||||
+ 'Qt5Widgets',
|
||||
+ 'Qt5Network',
|
||||
+ 'Qt5Quick',
|
||||
+ 'Qt5PrintSupport'
|
||||
+ ]
|
||||
+ print("conf.env.LIB_QT5SVG : ",conf.env)
|
||||
if not conf.env.LIB_QT5SVG: conf.fatal('Could not find Qt5Svg - Semantik requires Qt >= 5')
|
||||
if not conf.env.LIB_QT5WEBENGINEWIDGETS: conf.fatal('Could not find Qt5WebEngineWidgets - check `pkg-config --libs Qt5WebEngineWidgets`')
|
||||
if not conf.env.LIB_QT5DBUS: conf.fatal('Install Qt Dbus')
|
||||
@@ -186,7 +206,11 @@
|
||||
raise ValueError('Could not find QT_HOST_DATA')
|
||||
|
||||
specpath = conf.cmd_and_log(conf.env.QMAKE + ['-query', 'QMAKE_SPEC'], quiet=0, stdout=True)
|
||||
+ path = "@Qt5Base_dev@"
|
||||
+ print("\n\n[log] specpath = ",specpath,"\n")
|
||||
+ print("\n\n[log] path = ",path,"\n")
|
||||
specpath = os.path.join(path, 'mkspecs', specpath.strip())
|
||||
+ print("\n\n[log] specpath = ",specpath,"\n")
|
||||
if not os.path.exists(specpath):
|
||||
raise ValueError('No spec path, cannot build')
|
||||
|
||||
@@ -196,17 +220,29 @@
|
||||
|
||||
conf.env.append_value('INCLUDES_KDECORE', specpath)
|
||||
|
||||
- libs = ['KF5KIOCore', 'KF5Auth', 'KF5KIOWidgets',
|
||||
- 'KF5IconThemes', 'KF5ConfigWidgets', 'KF5XmlGui',
|
||||
- 'KF5CoreAddons', 'KF5ConfigGui', 'KF5ConfigCore',
|
||||
- 'KF5WidgetsAddons', 'KF5I18n', 'KF5SonnetUi', 'KF5AuthCore']
|
||||
+ libs = {
|
||||
+ 'KF5KIOCore': '@KF5KIOCore_dev@',
|
||||
+ 'KF5Auth': '@KF5Auth_dev@',
|
||||
+ 'KF5KIOWidgets': '@KF5KIOCore_dev@',
|
||||
+ 'KF5IconThemes': '@KF5IconThemes_dev@',
|
||||
+ 'KF5ConfigWidgets': '@KF5ConfigWidgets_dev@',
|
||||
+ 'KF5XmlGui': '@KF5XmlGui_dev@',
|
||||
+ 'KF5CoreAddons': '@KF5CoreAddons_dev@',
|
||||
+ 'KF5ConfigGui': '@KF5Config_dev@',
|
||||
+ 'KF5ConfigCore': '@KF5Config_dev@',
|
||||
+ 'KF5WidgetsAddons': '@KF5WidgetsAddons_dev@',
|
||||
+ 'KF5I18n': '@KF5I18n_dev@',
|
||||
+ 'KF5SonnetUi': '@KF5SonnetUi_dev@',
|
||||
+ 'KF5AuthCore': '@KF5Auth_dev@',
|
||||
+ }
|
||||
|
||||
- for lib in libs:
|
||||
+ for lib,mkspec_path in libs.items():
|
||||
+ print("[log] mkspec : ", mkspec_path)
|
||||
name = lib[3:]
|
||||
if not name.startswith('K') and name != 'SonnetUi':
|
||||
name = 'K' + name
|
||||
-
|
||||
- p = '%s/qt_%s.pri' % (path, name)
|
||||
+ p = '%s/qt_%s.pri' % (mkspec_path+"/mkspecs/modules", name)
|
||||
+ print("[log] path :",path,", name : ",name)
|
||||
try:
|
||||
code = Utils.readf(p)
|
||||
except EnvironmentError:
|
||||
@@ -1824,6 +1824,7 @@ mapAliases {
|
||||
SDL2_classic_ttf = throw "'SDL2_classic_ttf' has been removed as part of the deprecation of 'SDL2_classic'. Consider upgrading to 'SDL2_ttf' built with 'sdl2-compat'."; # Added 2025-05-20
|
||||
seafile-server = throw "'seafile-server' has been removed as it is unmaintained"; # Added 2025-08-21
|
||||
seahub = throw "'seahub' has been removed as it is unmaintained"; # Added 2025-08-21
|
||||
semantik = throw "'semantik' has been removed as it depended on EOL qt5 webengine"; # Added 2026-04-17
|
||||
semiphemeral = throw "'semiphemeral' has been removed as it is archived upstream"; # Added 2025-11-06
|
||||
sequoia = throw "'sequoia' has been renamed to/replaced by 'sequoia-sq'"; # Converted to throw 2025-10-27
|
||||
sequoia-sqop = sequoia-sop; # Added 2026-01-23
|
||||
|
||||
@@ -5919,8 +5919,6 @@ with pkgs;
|
||||
|
||||
seer = libsForQt5.callPackage ../development/tools/misc/seer { };
|
||||
|
||||
semantik = libsForQt5.callPackage ../applications/office/semantik { };
|
||||
|
||||
sbt = callPackage ../development/tools/build-managers/sbt { };
|
||||
sbt-with-scala-native = callPackage ../development/tools/build-managers/sbt/scala-native.nix { };
|
||||
simpleBuildTool = sbt;
|
||||
|
||||
Reference in New Issue
Block a user