diff --git a/.github/workflows/overlay.toml b/.github/workflows/overlay.toml index 059615af26..14b9881b83 100644 --- a/.github/workflows/overlay.toml +++ b/.github/workflows/overlay.toml @@ -810,6 +810,13 @@ use_latest_release = true prefix = "v" autobump = true +["app-text/stirling-pdf-bin"] +source = "github" +github = "Stirling-Tools/Stirling-PDF" +use_latest_release = true +prefix = "v" +github_account = "AmberisMyShiba" + ["app-text/xreader"] source = "github" github = "linuxmint/xreader" diff --git a/app-text/stirling-pdf-bin/Manifest b/app-text/stirling-pdf-bin/Manifest new file mode 100644 index 0000000000..2641e02c95 --- /dev/null +++ b/app-text/stirling-pdf-bin/Manifest @@ -0,0 +1 @@ +DIST stirling-pdf-bin-3.0.0.deb 320654976 BLAKE2B 8fe907d250687e020b179d958450b3e5fdece76c1ba1b9528bbcebdc61e4df87b8c221fe4f9e264613414e2035e5c9000a5699126a93dd5735a1786be133e85f SHA512 b4dc2f9a6e18eb15a1b8bade00e260ed8a180b54edc61961efe58d4f7e776da1c5476caab07f5d0973cf41135d52ea8ea54ac3b474c5f957a15f7a771d9bd7ba diff --git a/app-text/stirling-pdf-bin/metadata.xml b/app-text/stirling-pdf-bin/metadata.xml new file mode 100644 index 0000000000..451dd7292f --- /dev/null +++ b/app-text/stirling-pdf-bin/metadata.xml @@ -0,0 +1,15 @@ + + + + + AmberisMyShiba + tefiszx@gmail.com + + Stirling-PDF is a locally hosted, web-based PDF manipulation tool. This is the official Tauri desktop application built by Stirling PDF Inc, bundling the Stirling-PDF server with an embedded Java runtime. + + Stirling-PDF 是一款本地托管的基于 Web 的 PDF 处理工具。本包为 Stirling PDF Inc 官方构建的 Tauri 桌面应用,内置 Stirling-PDF 服务端与嵌入式 Java 运行时。 + + + Stirling-Tools/Stirling-PDF + + diff --git a/app-text/stirling-pdf-bin/stirling-pdf-bin-3.0.0.ebuild b/app-text/stirling-pdf-bin/stirling-pdf-bin-3.0.0.ebuild new file mode 100644 index 0000000000..fbf5a5b548 --- /dev/null +++ b/app-text/stirling-pdf-bin/stirling-pdf-bin-3.0.0.ebuild @@ -0,0 +1,41 @@ +# Copyright 2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit desktop unpacker xdg + +DESCRIPTION="Locally hosted, web-based PDF manipulation tool (Tauri desktop app)" +HOMEPAGE="https://www.stirling.com https://github.com/Stirling-Tools/Stirling-PDF" +SRC_URI="https://github.com/Stirling-Tools/Stirling-PDF/releases/download/v${PV}/Stirling-PDF-linux-x86_64.deb -> ${P}.deb" + +S="${WORKDIR}" +LICENSE="MIT Stirling-PDF GPL-2-with-classpath-exception" +SLOT="0" +KEYWORDS="-* ~amd64" + +RESTRICT="bindist mirror strip" + +RDEPEND=" + net-libs/webkit-gtk:4.1 + x11-libs/gtk+:3 +" + +src_install() { + insinto /usr/lib + doins -r "usr/lib/Stirling PDF" + fperms +x \ + "/usr/lib/Stirling PDF/runtime/jre/bin/java" \ + "/usr/lib/Stirling PDF/runtime/jre/bin/jrunscript" \ + "/usr/lib/Stirling PDF/runtime/jre/bin/keytool" \ + "/usr/lib/Stirling PDF/runtime/jre/bin/rmiregistry" \ + "/usr/lib/Stirling PDF/runtime/jre/lib/jexec" \ + "/usr/lib/Stirling PDF/runtime/jre/lib/jspawnhelper" + + dobin usr/bin/Stirling-PDF + domenu "usr/share/applications/Stirling PDF.desktop" + local size + for size in 16 32 64 128 192 512; do + doicon -s ${size} "usr/share/icons/hicolor/${size}x${size}/apps/Stirling-PDF.png" + done +} diff --git a/licenses/Stirling-PDF b/licenses/Stirling-PDF new file mode 100644 index 0000000000..d268556808 --- /dev/null +++ b/licenses/Stirling-PDF @@ -0,0 +1,51 @@ +Stirling PDF User License + +Copyright (c) 2025 Stirling PDF Inc. + +License Scope & Usage Rights + +Production use of the Stirling PDF Software is only permitted with a valid Stirling PDF User License. + +For purposes of this license, “the Software” refers to the Stirling PDF application and any associated documentation files +provided by Stirling PDF Inc. You or your organization may not use the Software in production, at scale, or for business-critical +processes unless you have agreed to, and remain in compliance with, the Stirling PDF Subscription Terms of Service +(https://www.stirlingpdf.com/terms) or another valid agreement with Stirling PDF, and hold an active User License subscription +covering the appropriate number of licensed users. + +Trial and Minimal Use + +You may use the Software without a paid subscription for the sole purposes of internal trial, evaluation, or minimal use, provided that: +* Use is limited to the capabilities and restrictions defined by the Software itself; +* You do not copy, distribute, sublicense, reverse-engineer, or use the Software in client-facing or commercial contexts. + +Continued use beyond this scope requires a valid Stirling PDF User License. + +Modifications and Derivative Works + +You may modify the Software only for development or internal testing purposes. Any such modifications or derivative works: + +* May not be deployed in production environments without a valid User License; +* May not be distributed or sublicensed; +* Remain the intellectual property of Stirling PDF and/or its licensors; +* May only be used, copied, or exploited in accordance with the terms of a valid Stirling PDF User License subscription. + +Prohibited Actions + +Unless explicitly permitted by a paid license or separate agreement, you may not: + +* Use the Software in production environments; +* Copy, merge, distribute, sublicense, or sell the Software; +* Remove or alter any licensing or copyright notices; +* Circumvent access restrictions or licensing requirements. + +Third-Party Components + +The Stirling PDF Software may include components subject to separate open source licenses. Such components remain governed by +their original license terms as provided by their respective owners. + +Disclaimer + +THE SOFTWARE IS PROVIDED “AS IS,” WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +LIABLE FOR ANY CLAIM, DAMAGES, OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT, OR OTHERWISE, ARISING FROM, OUT OF, OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.