From 94f22dd83e89e6cf024b32509d803fbfd422eeca Mon Sep 17 00:00:00 2001 From: Schrijvers Luc Date: Tue, 25 Jul 2023 16:49:55 +0200 Subject: [PATCH] ksystemlog, new recipe (#9089) --- .../additional-files/ksystemlog.rdef.in | 68 +++++++++ kde-apps/ksystemlog/ksystemlog-22.04.3.recipe | 136 ++++++++++++++++++ kde-apps/ksystemlog/licenses/CC0 v1.0 | 119 +++++++++++++++ 3 files changed, 323 insertions(+) create mode 100644 kde-apps/ksystemlog/additional-files/ksystemlog.rdef.in create mode 100644 kde-apps/ksystemlog/ksystemlog-22.04.3.recipe create mode 100644 kde-apps/ksystemlog/licenses/CC0 v1.0 diff --git a/kde-apps/ksystemlog/additional-files/ksystemlog.rdef.in b/kde-apps/ksystemlog/additional-files/ksystemlog.rdef.in new file mode 100644 index 000000000..35575882c --- /dev/null +++ b/kde-apps/ksystemlog/additional-files/ksystemlog.rdef.in @@ -0,0 +1,68 @@ +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 { + $"6E6369660B04017105000200060338F000BB52E13B52E138F000BFE14748AE66" + $"016636026B7A5631FFBDA0800346250102010607B8DFA4B657A738B0F2BB4A23" + $"4B21444AA35700E3C9A326AE76254CE3C9A378AE7625A9E3C9A3D4AE7625FEE3" + $"C9A3020116033CB851BBCAC03A7DBF3B930B4A34E1494D8500A67FFFFD660200" + $"060238D3D7BB32E13B32E138D3D7C0800048975C75583A1AFF8C694402000602" + $"377EB8B940A33940A3377EB8C4014745066600C70505FEFF6E6E036E02020200" + $"0602399F5CB4C7AD34C7AD399F5C48C5EB4A988F00B50404FEE5060602010602" + $"BB0000000000000000BA000048C0004B000000E3C9A3FFAE762510060AFF7F05" + $"5E565E56585C4E5A4E5AC443C9934656C333C90B4656425A4256BF3756384EBD" + $"E352BF7B4E4E4EC2674E4E4E5E56CD81C6B35E56565656060CFFFF574C584C58" + $"4E595256505856525A435A495A40573D593EC443BCB1342FBF9DBAD5322E2E30" + $"312E2A332641263B264429482747BB3BC50F4C58BFE1C72F4C58585858060CFF" + $"FF574C584C584E595256505856525A435A495A40573D593EC443BCB1342FBF9D" + $"BAD5322E2E30312E2A332641263B264429482747BB3BC50F4C58BFE1C72F4C58" + $"5858580608FF57C3A6C68BC3A6C68BC3A6C8FAC684C7EFC515C954C7F4C68BC9" + $"63C153C963C36AC963BF3EC684BFEFC7F4BE8BC515C153C3A6C68BC3A6C41BC3" + $"A6C68BC68BC68BC68B0608FF574A524A524A5952564E5A56525A435A495A3D52" + $"3F563B4E434A524A4B4A525252520608FF5746364636C003BA6F362CBDE3B91B" + $"BAB3B9E72E3CB9A3BC07B9E7BED13841BB3BBF7B3B344636C210BBC046363636" + $"360612FFFFFF7F05C210BBC0C210BBC0BFF7BA6E362CBDDDB91ABAB3B9E72E3C" + $"B9A3BC07B8D7BE49303DB91BBE6BB9A3BE6B323CB9E7BE4932BE6B323E32BEAF" + $"BA6FBED1343DBAB3BEAF34BED1343F34BF15BB3BBF37363EBB7FBF1536BF3736" + $"4036BF7BBC07BF9D383FBC4BBF7B38BF9D384138BFE1BCD3C0033A40BD17BFE1" + $"3AC0033A423AC047BF28BBDDC210BBC0C19ABBBCC210BBC0BBC0BBC0BBC00608" + $"FF573A423A42BE6BC19B424ABF7BC2AB42464E3E4A3EC443BDE34636C333BCD3" + $"46363A423F383A424242420607FF15394439443F364B384B38C377BC4B4636C2" + $"CDBC07463639443E3539444444440614FFFFFEFF572E2A2E2A322C2A3B2A392A" + $"3D2C3D2C3D2F37352B3231352B3428362932272E2530262C242B262B26B651B7" + $"832336B541B9A3223824392738263A273727352736B60DBB3B2934B651BB1929" + $"3329312932B6D9B9A32B30B71DB9812B2F2B2D2B2EB7A5B80B2D2CB7E9B7E9B8" + $"4FB7832E2AB871B73F2E2A2A2A2A0614FFFFFEFF57302B302B342D2C3C2C3A2C" + $"3E2E3E2E3E3138372C3432372C3629382A3428302632272E252D272D27B71DB7" + $"E92537B60DBA092439263A2939283B293829362937B6D9BBA12B35B71DBB7F2B" + $"342B322B33B7A5BA092D31B7E9B9E72D302D2E2D2FB871B8712F2DB8B5B84FB9" + $"1BB7E9302BB93DB7A5302B2B2B2B060CFFFF572E252E252C242B262B26B651B7" + $"832336B541B9A3223824392439B4DBBD17263AB51FBD39263A25372439B60DBA" + $"092D27B71DB7E92D2730262E25B91BB5412E25B8D7B51F2E25252525060AFF7F" + $"05B8AFB70AB8AFB70ABA48B7D6B717BDCFB717BD03B717BE2DB771BE79B744BE" + $"5FB7ABBE97B81FBED2B7E6BEB4B7F2BEB52C3C2CBE832C3A302B342DB924B744" + $"B8AFB70AB8EAB726B8AFB70AB70AB70AB70A0614FFFFFEFF57302B302B342D2C" + $"3C2C3A2C3E2E3E2E3E3138372C3432372C3629382A3428302632272E252D272D" + $"27B71DB7E92537B60DBA092439263A2939283B293829362937B6D9BBA12B35B7" + $"1DBB7F2B342B322B33B7A5BA092D31B7E9B9E72D302D2E2D2FB871B8712F2DB8" + $"B5B84FB91BB7E9302BB93DB7A5302B2B2B2B060AFB6F053A4A3A4A3C50405440" + $"583E56425A38583A56365A3054345636523450345038503A4A4A4A4A060AFB6F" + $"053A4A3A4A3C50405440583E56425A38583A56365A3054345636523450345038" + $"503A4A4A4A4A100A000100000A0101011001178400040A020102000A03010310" + $"01178300040A040104000A0101051001178400040A050106000A060107000A01" + $"0108000A0101091001178400040A01010A1001178400040A07010B000A08010C" + $"000A09010D000A01010E1001178400040A0A010F00" +}; diff --git a/kde-apps/ksystemlog/ksystemlog-22.04.3.recipe b/kde-apps/ksystemlog/ksystemlog-22.04.3.recipe new file mode 100644 index 000000000..b5b3c2b77 --- /dev/null +++ b/kde-apps/ksystemlog/ksystemlog-22.04.3.recipe @@ -0,0 +1,136 @@ +SUMMARY="KDE SystemLog Application" +DESCRIPTION="Long ProjectX description. +Spanning several paragraphs, maybe + - containing + - bullet points etc. +You can also have really long lines that do not fit in 80 characters and use \ +a backslash to wrap the line." +HOMEPAGE="https://apps.kde.org/nl/ksystemlog/" +COPYRIGHT="2010-2022 KDE Organisation" +LICENSE="BSD (3-clause) + CC0 v1.0 + GNU GPL v2" +REVISION="1" +SOURCE_URI="https://github.com/KDE/ksystemlog/archive/refs/tags/v$portVersion.tar.gz" +CHECKSUM_SHA256="0d0b6fc2c103beac39a170eae2f62cbfc85c15634d778fab215118c83d866a0c" +SOURCE_FILENAME="ksystemlog-v$portVersion.tar.gz" +ADDITIONAL_FILES="ksystemlog.rdef.in" + +ARCHITECTURES="all !x86_gcc2" +SECONDARY_ARCHITECTURES="x86" + +libVersion="5.20.3" +libVersionCompat="$libVersion compat >= ${libVersion%%.*}" + +PROVIDES=" + ksystemlog$secondaryArchSuffix = $portVersion + app:KSystemlog$secondaryArchSuffix = $portVersion + " +REQUIRES=" + haiku$secondaryArchSuffix + lib:libKF5Archive$secondaryArchSuffix + lib:libKF5Auth$secondaryArchSuffix + lib:libKF5Codecs$secondaryArchSuffix + lib:libKF5Completion$secondaryArchSuffix + lib:libKF5ConfigCore$secondaryArchSuffix + lib:libKF5ConfigGui$secondaryArchSuffix + lib:libKF5ConfigWidgets$secondaryArchSuffix + lib:libKF5CoreAddons$secondaryArchSuffix + lib:libKF5I18n$secondaryArchSuffix + lib:libKF5ItemViews$secondaryArchSuffix + lib:libKF5KIOCore$secondaryArchSuffix + lib:libKF5JobWidgets$secondaryArchSuffix + lib:libKF5Service$secondaryArchSuffix + lib:libKF5Solid$secondaryArchSuffix + lib:libKF5SonnetCore$secondaryArchSuffix + lib:libKF5WidgetsAddons$secondaryArchSuffix + lib:libKF5WindowSystem$secondaryArchSuffix + lib:libKF5TextWidgets$secondaryArchSuffix + lib:libKF5XmlGui$secondaryArchSuffix + lib:libQt5Concurrent$secondaryArchSuffix + lib:libQt5Core$secondaryArchSuffix + lib:libQt5DBus$secondaryArchSuffix + lib:libQt5Gui$secondaryArchSuffix + lib:libQt5Network$secondaryArchSuffix + lib:libQt5PrintSupport$secondaryArchSuffix + lib:libQt5Widgets$secondaryArchSuffix + lib:libQt5Xml$secondaryArchSuffix + " + +BUILD_REQUIRES=" + haiku${secondaryArchSuffix}_devel + extra_cmake_modules$secondaryArchSuffix >= 5.93.0 + devel:libKF5Archive$secondaryArchSuffix + devel:libKF5Auth$secondaryArchSuffix + devel:libKF5Bookmarks$secondaryArchSuffix + devel:libKF5Codecs$secondaryArchSuffix + devel:libKF5Completion$secondaryArchSuffix + devel:libKF5ConfigCore$secondaryArchSuffix + devel:libKF5ConfigWidgets$secondaryArchSuffix + devel:libKF5CoreAddons$secondaryArchSuffix + devel:libKF5I18n$secondaryArchSuffix + devel:libKF5ItemViews$secondaryArchSuffix + devel:libKF5JobWidgets$secondaryArchSuffix + devel:libKF5KIOCore$secondaryArchSuffix + devel:libKF5Service$secondaryArchSuffix + devel:libKF5Solid$secondaryArchSuffix + devel:libKF5SonnetCore$secondaryArchSuffix + devel:libKF5TextWidgets$secondaryArchSuffix + devel:libKF5WidgetsAddons$secondaryArchSuffix + devel:libKF5WindowSystem$secondaryArchSuffix + devel:libKF5XmlGui$secondaryArchSuffix + devel:libQt5Concurrent$secondaryArchSuffix + devel:libQt5Core$secondaryArchSuffix + devel:libQt5Gui$secondaryArchSuffix + devel:libQt5Network$secondaryArchSuffix + devel:libQt5PrintSupport$secondaryArchSuffix + devel:libQt5Widgets$secondaryArchSuffix + devel:libQt5Xml$secondaryArchSuffix + " +BUILD_PREREQUIRES=" + cmd:cmake + cmd:g++$secondaryArchSuffix + cmd:make + cmd:msgmerge + cmd:python3 + cmd:pkg_config$secondaryArchSuffix + cmd:qdbuscpp2xml$secondaryArchSuffix >= 5 + " + +BUILD() +{ + cmake -Bbuild -S. $cmakeDirArgs \ + -DCMAKE_BUILD_TYPE=Release \ + -DECM_DIR=/system/data/cmake/Modules/ECM/cmake + make -C build $jobArgs +} + +INSTALL() +{ + make -C build install + + mkdir $appsDir + mv $prefix/bin/ksystemlog $appsDir/KSystemlog + + # cleanup + rm -rf $dataDir/{applications,metainfo,qlogging-categories5} + + local MAJOR="`echo "$portVersion" | cut -d. -f1`" + local MIDDLE="`echo "$portVersion" | cut -d. -f2`" + local MINOR="`echo "$portVersion" | cut -d. -f3`" + local APP_NAME="KSystemlog" + local LONG_INFO="$SUMMARY" + local APP_SIGNATURE="application/x-vnd.ksystemlog" + 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/ksystemlog.rdef.in > ksystemlog.rdef + + addResourcesToBinaries ksystemlog.rdef $appsDir/KSystemlog + + addAppDeskbarSymlink $appsDir/KSystemlog +} diff --git a/kde-apps/ksystemlog/licenses/CC0 v1.0 b/kde-apps/ksystemlog/licenses/CC0 v1.0 new file mode 100644 index 000000000..a343ccd43 --- /dev/null +++ b/kde-apps/ksystemlog/licenses/CC0 v1.0 @@ -0,0 +1,119 @@ +Creative Commons Legal Code + +CC0 1.0 Universal CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES +NOT PROVIDE LEGAL SERVICES. DISTRIBUTION OF THIS DOCUMENT DOES NOT CREATE +AN ATTORNEY-CLIENT RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS INFORMATION +ON AN "AS-IS" BASIS. CREATIVE COMMONS MAKES NO WARRANTIES REGARDING THE USE +OF THIS DOCUMENT OR THE INFORMATION OR WORKS PROVIDED HEREUNDER, AND DISCLAIMS +LIABILITY FOR DAMAGES RESULTING FROM THE USE OF THIS DOCUMENT OR THE INFORMATION +OR WORKS PROVIDED HEREUNDER. + +Statement of Purpose + +The laws of most jurisdictions throughout the world automatically confer exclusive +Copyright and Related Rights (defined below) upon the creator and subsequent +owner(s) (each and all, an "owner") of an original work of authorship and/or +a database (each, a "Work"). + +Certain owners wish to permanently relinquish those rights to a Work for the +purpose of contributing to a commons of creative, cultural and scientific +works ("Commons") that the public can reliably and without fear of later claims +of infringement build upon, modify, incorporate in other works, reuse and +redistribute as freely as possible in any form whatsoever and for any purposes, +including without limitation commercial purposes. These owners may contribute +to the Commons to promote the ideal of a free culture and the further production +of creative, cultural and scientific works, or to gain reputation or greater +distribution for their Work in part through the use and efforts of others. + +For these and/or other purposes and motivations, and without any expectation +of additional consideration or compensation, the person associating CC0 with +a Work (the "Affirmer"), to the extent that he or she is an owner of Copyright +and Related Rights in the Work, voluntarily elects to apply CC0 to the Work +and publicly distribute the Work under its terms, with knowledge of his or +her Copyright and Related Rights in the Work and the meaning and intended +legal effect of CC0 on those rights. + +1. Copyright and Related Rights. A Work made available under CC0 may be protected +by copyright and related or neighboring rights ("Copyright and Related Rights"). +Copyright and Related Rights include, but are not limited to, the following: + +i. the right to reproduce, adapt, distribute, perform, display, communicate, +and translate a Work; + + ii. moral rights retained by the original author(s) and/or performer(s); + +iii. publicity and privacy rights pertaining to a person's image or likeness +depicted in a Work; + +iv. rights protecting against unfair competition in regards to a Work, subject +to the limitations in paragraph 4(a), below; + +v. rights protecting the extraction, dissemination, use and reuse of data +in a Work; + +vi. database rights (such as those arising under Directive 96/9/EC of the +European Parliament and of the Council of 11 March 1996 on the legal protection +of databases, and under any national implementation thereof, including any +amended or successor version of such directive); and + +vii. other similar, equivalent or corresponding rights throughout the world +based on applicable law or treaty, and any national implementations thereof. + +2. Waiver. To the greatest extent permitted by, but not in contravention of, +applicable law, Affirmer hereby overtly, fully, permanently, irrevocably and +unconditionally waives, abandons, and surrenders all of Affirmer's Copyright +and Related Rights and associated claims and causes of action, whether now +known or unknown (including existing as well as future claims and causes of +action), in the Work (i) in all territories worldwide, (ii) for the maximum +duration provided by applicable law or treaty (including future time extensions), +(iii) in any current or future medium and for any number of copies, and (iv) +for any purpose whatsoever, including without limitation commercial, advertising +or promotional purposes (the "Waiver"). Affirmer makes the Waiver for the +benefit of each member of the public at large and to the detriment of Affirmer's +heirs and successors, fully intending that such Waiver shall not be subject +to revocation, rescission, cancellation, termination, or any other legal or +equitable action to disrupt the quiet enjoyment of the Work by the public +as contemplated by Affirmer's express Statement of Purpose. + +3. Public License Fallback. Should any part of the Waiver for any reason be +judged legally invalid or ineffective under applicable law, then the Waiver +shall be preserved to the maximum extent permitted taking into account Affirmer's +express Statement of Purpose. In addition, to the extent the Waiver is so +judged Affirmer hereby grants to each affected person a royalty-free, non +transferable, non sublicensable, non exclusive, irrevocable and unconditional +license to exercise Affirmer's Copyright and Related Rights in the Work (i) +in all territories worldwide, (ii) for the maximum duration provided by applicable +law or treaty (including future time extensions), (iii) in any current or +future medium and for any number of copies, and (iv) for any purpose whatsoever, +including without limitation commercial, advertising or promotional purposes +(the "License"). The License shall be deemed effective as of the date CC0 +was applied by Affirmer to the Work. Should any part of the License for any +reason be judged legally invalid or ineffective under applicable law, such +partial invalidity or ineffectiveness shall not invalidate the remainder of +the License, and in such case Affirmer hereby affirms that he or she will +not (i) exercise any of his or her remaining Copyright and Related Rights +in the Work or (ii) assert any associated claims and causes of action with +respect to the Work, in either case contrary to Affirmer's express Statement +of Purpose. + + 4. Limitations and Disclaimers. + +a. No trademark or patent rights held by Affirmer are waived, abandoned, surrendered, +licensed or otherwise affected by this document. + +b. Affirmer offers the Work as-is and makes no representations or warranties +of any kind concerning the Work, express, implied, statutory or otherwise, +including without limitation warranties of title, merchantability, fitness +for a particular purpose, non infringement, or the absence of latent or other +defects, accuracy, or the present or absence of errors, whether or not discoverable, +all to the greatest extent permissible under applicable law. + +c. Affirmer disclaims responsibility for clearing rights of other persons +that may apply to the Work or any use thereof, including without limitation +any person's Copyright and Related Rights in the Work. Further, Affirmer disclaims +responsibility for obtaining any necessary consents, permissions or other +rights required for any use of the Work. + +d. Affirmer understands and acknowledges that Creative Commons is not a party +to this document and has no duty or obligation with respect to this CC0 or +use of the Work.