diff --git a/sci-visualization/labplot/additional-files/labplot2.rdef.in b/sci-visualization/labplot/additional-files/labplot2.rdef.in new file mode 100644 index 000000000..f62ff22b1 --- /dev/null +++ b/sci-visualization/labplot/additional-files/labplot2.rdef.in @@ -0,0 +1,54 @@ +resource app_flags B_SINGLE_LAUNCH; + +resource app_version { + major = @MAJOR@, + middle = @MIDDLE@, + minor = @MINOR@, + + variety = B_APPV_FINAL, + internal = 0, + + short_info = "@APP_NAME@", + long_info = "@LONG_INFO@" +}; + +resource app_signature "@APP_SIGNATURE@"; + +resource vector_icon { + $"6E6369660A02000602BE1555BD55553D5555BE15554BC000C0AAAA00343B40FF" + $"555E6302000602000000BD55553D55550000004955554A000000BD8D48FFE8B9" + $"71020002023BD5553BD555BBD5553BD55548D5554B555500383E51FFFF655C6F" + $"0003AA7F4101AA7F417E03787E82035090C305D603007AD905FF11020520B520" + $"20B520BB80B52060B520C400B52060BC3560CA6060C34AC400CA6020CA60BB80" + $"CA6020C34A20B52020BC3520B5200205B41028B41028BBDA28CB6F28C3A528CB" + $"6F38CB6F58CB6F48C3A558B41058BBDA58B41048B41028B41038B41028020620" + $"B52020B52020BC3520CA6020C34ABB80CA6060CA60C400CA6060C34A60B52060" + $"BC35C45AB520B410B520BC35B520B3B5B52020B520B35AB52020B520020B28C0" + $"4728C04728C31D28C8C828C5F2B602C8C8B5A7C8C8B5D5C8C8B5A758B5A7CA60" + $"B5A7C9D7BD45CA6060CA60C4E2CA6060C78A60C1DF60C4B5CBF8445CC047CB6F" + $"C0D0CA3BC047C8E2C047C98FC047C3FEC1AAC115C7FDC3CCC802BE5EC7F7B7BC" + $"C047BCE7C1AAB738C04728C047B6B4C04728C047020520C9D720C9D7BB80C9D7" + $"60C9D7C400C9D760CA0560CA6060CA32C400CA6020CA60BB80CA6020CA3220C9" + $"D720CA0520C9D7020524B6B724B6B7BC07B6B75CB6B7C377B6B75CBCBD5CC8C8" + $"5CC2C2C377C8C824C8C8BC07C8C824C2C224B6B724BCBD24B6B70206B41028B4" + $"1028B41038B41058B41048BBDA58CB6F58C3A558CB6F48CB6F28CB6F38C3D228" + $"2428BC3528B46A28B41028B43D28B410280003B5A7C002B5A7C002BC91C002C1" + $"15C7FDBE08C7F64BC8035CC002C3FFC0025CC0020003B5A7BF7DB5A7BF7DBC91" + $"BF7DC115BA02BE08BA084BB9FC5CBF7DC3FFBF7D5CBF7D0205B5A7B6B7B5A7B6" + $"B7B5D5B6B728B6B7B602B6B728BCBD28C8C828C2C2B602C8C8B5A7C8C8B5D5C8" + $"C8B5A7C2C2B5A7B6B7B5A7BCBDB5A7B6B70003B5A7BF7DB5A7BF7DBC91BF7DC1" + $"15B782BE08B7894BB77C5CBF7DC3FFBF7D5CBF7D0205C598C83FC598C83FC64D" + $"C83F54C83FC702C83F54C86D54C8C854C89AC702C8C8C598C8C8C64DC8C8C598" + $"C89AC598C83FC598C86DC598C83F0205C83FC83FC83FC83FC8F5C83FCA60C83F" + $"C9AAC83FCA60C86DCA60C8C8CA60C89AC9AAC8C8C83FC8C8C8F5C8C8C83FC89A" + $"C83FC83FC83FC86DC83FC83F020528402840BD18405C40C400405CBFED5CC047" + $"5CC01AC400C04728C047BD18C04728C01A284028BFED2840020530BF3730BF37" + $"B98DBF37B9E8BF37B9BABF37B9E840B9E8C0D0B9E8C047B9BAC0D030C0D0B98D" + $"C0D030C04730BF37304030BF370205C0D0BF37C0D0BF37C0FDBF3744BF37C12A" + $"BF37444044C0D044C047C12AC0D0C0D0C0D0C0FDC0D0C0D0C047C0D0BF37C0D0" + $"40C0D0BF370205C83FBF37C83FBF37C86DBF37C8C8BF37C89ABF37C8C840C8C8" + $"C0D0C8C8C047C89AC0D0C83FC0D0C86DC0D0C83FC047C83FBF37C83F40C83FBF" + $"370F0A000100000A01020102000A020103000A030104000A04020506000A0501" + $"071001178100040A0601081001178100040A070109000A07010A100117810004" + $"0A08010B000A09010C000A07010D000A07010E000A07010F000A07011000" +}; diff --git a/sci-visualization/labplot/labplot-2.10.1.recipe b/sci-visualization/labplot/labplot-2.10.1.recipe new file mode 100644 index 000000000..822b46776 --- /dev/null +++ b/sci-visualization/labplot/labplot-2.10.1.recipe @@ -0,0 +1,172 @@ +SUMMARY="Scientific data analysis and visualisation based on KDE Frameworks" +DESCRIPTION="FREE, open source and cross-platform Data Visualization and Analysis software \ +accessible to everyone. + +Feature highlights: +* High-quality data visualization and plotting with few clicks +* Reliable and easy data analysis and statistics, no coding required +* Intuitive and fast computing with interactive notebooks +* Effortless data extraction from images +* Smooth data import and export to and from multiple formats +* Available for Windows, macOS, Linux and FreeBSD." +HOMEPAGE="https://invent.kde.org/education/labplot" +COPYRIGHT="2010-2023 KDE Organisation" +LICENSE="GNU GPL v2" +REVISION="1" +SOURCE_URI="$HOMEPAGE/-/archive/$portVersion/labplot-$portVersion.tar.bz2" +CHECKSUM_SHA256="305208fdd453f1a996273a001db8642092fcc0c7ab18b6a65af59abc93e93d44" +SOURCE_DIR="labplot-$portVersion" +PATCHES="labplot-$portVersion.patchset" +ADDITIONAL_FILES="labplot2.rdef.in" + +ARCHITECTURES="all !x86_gcc2" +SECONDARY_ARCHITECTURES="x86" + +PROVIDES=" + labplot$secondaryArchSuffix = $portVersion + cmd:labplot2$secondaryArchSuffix = $portVersion + " +REQUIRES=" + haiku$secondaryArchSuffix + lib:libcantorlibs$secondaryArchSuffix + lib:libfftw3f$secondaryArchSuffix + lib:libgsl$secondaryArchSuffix + lib:libgslcblas$secondaryArchSuffix + lib:libhdf5$secondaryArchSuffix + lib:libKF5Archive$secondaryArchSuffix + lib:libKF5Attica$secondaryArchSuffix + lib:libKF5AuthCore$secondaryArchSuffix + lib:libKF5Bookmarks$secondaryArchSuffix + lib:libKF5Codecs$secondaryArchSuffix + lib:libKF5Completion$secondaryArchSuffix + lib:libKF5ConfigCore$secondaryArchSuffix + lib:libKF5ConfigGui$secondaryArchSuffix + lib:libKF5ConfigWidgets$secondaryArchSuffix + lib:libKF5CoreAddons$secondaryArchSuffix + lib:libKF5Crash$secondaryArchSuffix + lib:libKF5I18n$secondaryArchSuffix + lib:libKF5IconThemes$secondaryArchSuffix + lib:libKF5ItemViews$secondaryArchSuffix + lib:libKF5KIOCore$secondaryArchSuffix + lib:libKF5JobWidgets$secondaryArchSuffix + lib:libKF5NewStuffCore$secondaryArchSuffix + lib:libKF5Parts$secondaryArchSuffix + lib:libKF5Service$secondaryArchSuffix + lib:libKF5Solid$secondaryArchSuffix + lib:libKF5SonnetCore$secondaryArchSuffix + lib:libKF5SyntaxHighlighting$secondaryArchSuffix + lib:libKF5TextWidgets$secondaryArchSuffix + lib:libKF5WidgetsAddons$secondaryArchSuffix + lib:libKF5WindowSystem$secondaryArchSuffix + lib:libKF5XmlGui$secondaryArchSuffix + lib:libpoppler$secondaryArchSuffix + lib:libpoppler_qt5$secondaryArchSuffix + lib:libKUserFeedbackCore$secondaryArchSuffix + lib:libQt5Core$secondaryArchSuffix + lib:libQt5DBus$secondaryArchSuffix + lib:libQt5Gui$secondaryArchSuffix + lib:libQt5Network$secondaryArchSuffix + lib:libQt5PrintSupport$secondaryArchSuffix + lib:libQt5SerialPort$secondaryArchSuffix + lib:libQt5Sql$secondaryArchSuffix + lib:libQt5Svg$secondaryArchSuffix + lib:libQt5Xml$secondaryArchSuffix + lib:libz$secondaryArchSuffix + " + +BUILD_REQUIRES=" + haiku${secondaryArchSuffix}_devel + extra_cmake_modules$secondaryArchSuffix >= 5.93.0 + devel:libcantorlibs$secondaryArchSuffix + devel:libiconv$secondaryArchSuffix + devel:libexecinfo$secondaryArchSuffix + devel:libfftw3f$secondaryArchSuffix + devel:libgsl$secondaryArchSuffix + devel:libhdf5$secondaryArchSuffix + devel:libpoppler$secondaryArchSuffix >= 131.0.0 + devel:libssp_nonshared$secondaryArchSuffix + devel:libKF5Archive$secondaryArchSuffix + devel:libKF5Auth$secondaryArchSuffix + devel:libKF5Attica$secondaryArchSuffix + devel:libKF5Bookmarks$secondaryArchSuffix + devel:libKF5Completion$secondaryArchSuffix + devel:libKF5Codecs$secondaryArchSuffix + devel:libKF5ConfigCore$secondaryArchSuffix + devel:libKF5ConfigWidgets$secondaryArchSuffix + devel:libKF5CoreAddons$secondaryArchSuffix + devel:libKF5Crash$secondaryArchSuffix + devel:libKF5I18n$secondaryArchSuffix + devel:libKF5IconThemes$secondaryArchSuffix + devel:libKF5KIOCore$secondaryArchSuffix + devel:libKF5ItemViews$secondaryArchSuffix + devel:libKF5JobWidgets$secondaryArchSuffix + devel:libKF5NewStuffCore$secondaryArchSuffix + devel:libKF5Parts$secondaryArchSuffix + devel:libKF5Service$secondaryArchSuffix + devel:libKF5Solid$secondaryArchSuffix + devel:libKF5SonnetUi$secondaryArchSuffix + devel:libKF5SyntaxHighlighting$secondaryArchSuffix + devel:libKF5TextWidgets$secondaryArchSuffix + devel:libKF5WidgetsAddons$secondaryArchSuffix + devel:libKF5WindowSystem$secondaryArchSuffix + devel:libKF5XmlGui$secondaryArchSuffix + devel:libKUserFeedbackCore$secondaryArchSuffix + devel:libQt5Core$secondaryArchSuffix + devel:libQt5Xml$secondaryArchSuffix + devel:libz$secondaryArchSuffix + " +BUILD_PREREQUIRES=" + cmd:awk + cmd:bison + cmd:cmake + cmd:g++$secondaryArchSuffix + cmd:make + cmd:msgfmt + cmd:msgmerge + cmd:pkg_config$secondaryArchSuffix + cmd:qdbuscpp2xml$secondaryArchSuffix >= 5 + " + +TEST_REQUIRES=" + qthaikuplugins$secondaryArchSuffix + " + +BUILD() +{ + cmake -Bbuild -S. $cmakeDirArgs \ + -DCMAKE_BUILD_TYPE=Release \ + -DKDE_INSTALL_PLUGINDIR=$addOnsDir/Qt5 \ + -DKDE_INSTALL_QMLDIR=$dataDir/Qt5/qml \ + -DECM_DIR=/system/data/cmake/Modules/ECM/cmake \ + -DENABLE_READSTAT=OFF -Wno-dev + make -C build $jobArgs +} + +INSTALL() +{ + make -C build install + + local MAJOR="`echo "$portVersion" | cut -d. -f1`" + local MIDDLE="`echo "$portVersion" | cut -d. -f2`" + local MINOR="`echo "$portVersion" | cut -d. -f3`" + local APP_NAME="LabPlot2" + local LONG_INFO="$SUMMARY" + local APP_SIGNATURE="application/x-vnd.labplot2" + sed \ + -e "s|@MAJOR@|$MAJOR|" \ + -e "s|@MIDDLE@|$MIDDLE|" \ + -e "s|@MINOR@|$MINOR|" \ + -e "s|@LONG_INFO@|$LONG_INFO|" \ + -e "s|@APP_NAME@|$APP_NAME|" \ + -e "s|@APP_SIGNATURE@|$APP_SIGNATURE|" \ + $portDir/additional-files/labplot2.rdef.in > labplot2.rdef + + addResourcesToBinaries labplot2.rdef $binDir/labplot2 + + addAppDeskbarSymlink $binDir/labplot2 LabPlot +} + +TEST() +{ + make -C build test +} diff --git a/sci-visualization/labplot/patches/labplot-2.10.1.patchset b/sci-visualization/labplot/patches/labplot-2.10.1.patchset new file mode 100644 index 000000000..5a6d11db1 --- /dev/null +++ b/sci-visualization/labplot/patches/labplot-2.10.1.patchset @@ -0,0 +1,68 @@ +From 959115b2e94e1d897ad74cebda5be17a63105176 Mon Sep 17 00:00:00 2001 +From: Begasus +Date: Fri, 19 Jan 2024 17:43:10 +0100 +Subject: Disable DocTools + + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 5731788..ed55246 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -60,7 +60,6 @@ find_package(KF${KF_MAJOR_VERSION} ${KF_MIN_VERSION} REQUIRED COMPONENTS + ConfigWidgets + CoreAddons + Crash +- DocTools + I18n + IconThemes + KIO +@@ -583,7 +582,6 @@ ENDIF() + add_subdirectory(data) + add_subdirectory(icons) + add_subdirectory(src) +-add_subdirectory(doc) + #add_subdirectory(lib) + + if (ENABLE_TESTS) +-- +2.42.1 + + +From 2f08414d084bdbdfda945732ab1fab2d0e385b71 Mon Sep 17 00:00:00 2001 +From: Begasus +Date: Fri, 19 Jan 2024 20:02:00 +0100 +Subject: Build fixes + + +diff --git a/src/backend/gsl/parser.y b/src/backend/gsl/parser.y +index 21a030d..9bcd6bd 100644 +--- a/src/backend/gsl/parser.y ++++ b/src/backend/gsl/parser.y +@@ -355,7 +355,11 @@ int yylex(param *p) { + #endif + double result; + if (locale != NULL) { ++#if defined(__OpenBSD__) || defined(__HAIKU__) ++ result = strtod(s, &remain); ++#else + result = strtod_l(s, &remain, locale); ++#endif + freelocale(locale); + } else // use C locale + result = strtod(s, &remain); +diff --git a/src/tools/getRSS.h b/src/tools/getRSS.h +index a1f6461..08e9a86 100644 +--- a/src/tools/getRSS.h ++++ b/src/tools/getRSS.h +@@ -9,7 +9,7 @@ + #include + #include + +-#elif defined(__unix__) || defined(__unix) || defined(unix) || (defined(__APPLE__) && defined(__MACH__)) ++#elif defined(__unix__) || defined(__unix) || defined(unix) || (defined(__APPLE__) && defined(__MACH__)) || defined(__HAIKU__) + #include + #include + +-- +2.42.1 +