commit: 81cd012f0dc9829d7864c73ff9697c2673749da4 Author: Pavel Sobolev <contact <AT> paveloom <DOT> dev> AuthorDate: Sun Nov 16 09:56:02 2025 +0000 Commit: Pavel Sobolev <contact <AT> paveloom <DOT> dev> CommitDate: Sun Nov 16 10:03:11 2025 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=81cd012f
app-text/sup2srt: new package, add 1.0.6_p20250518 Signed-off-by: Pavel Sobolev <contact <AT> paveloom.dev> app-text/sup2srt/Manifest | 1 + ...rt-1.0.6-build-the-pgs-library-statically.patch | 17 ++++++++++++ app-text/sup2srt/metadata.xml | 12 ++++++++ app-text/sup2srt/sup2srt-1.0.6_p20250518.ebuild | 32 ++++++++++++++++++++++ 4 files changed, 62 insertions(+) diff --git a/app-text/sup2srt/Manifest b/app-text/sup2srt/Manifest new file mode 100644 index 0000000000..4b35778526 --- /dev/null +++ b/app-text/sup2srt/Manifest @@ -0,0 +1 @@ +DIST sup2srt-1.0.6_p20250518.tar.gz 28427 BLAKE2B 85065f966177d6c9517cb16281b6572e51a3482906d928ff8e1c6d3b9880ba4f7e175a29f3ead27fca942a35c864ac6af8886be9385cf5bb4bb175802f878344 SHA512 9ff990cf8e3059e305a86eb54bc7979b22a82c52ec99484fb246800f1db591898050c689bc5abdf192372737f8c7117f922fe10202191f66ad12cb87ec8ab18b diff --git a/app-text/sup2srt/files/sup2srt-1.0.6-build-the-pgs-library-statically.patch b/app-text/sup2srt/files/sup2srt-1.0.6-build-the-pgs-library-statically.patch new file mode 100644 index 0000000000..f97c1f2cdc --- /dev/null +++ b/app-text/sup2srt/files/sup2srt-1.0.6-build-the-pgs-library-statically.patch @@ -0,0 +1,17 @@ +From: Pavel Sobolev <[email protected]> +Subject: [PATCH] Build the `pgs` library statically. + +Signed-off-by: Pavel Sobolev <[email protected]> + +--- a/src/pgs/CMakeLists.txt ++++ b/src/pgs/CMakeLists.txt +@@ -2,6 +2,6 @@ find_package(TIFF REQUIRED COMPONENTS CXX) + include_directories( ${TIFF_INCLUDE_DIRS} ) + link_directories( ${TIFF_LIBRARY_DIRS} ) + +-add_library(pgs compositionObject.cpp displaySegment.cpp objectDefinitionSegment.cpp paletteDefinitionSegment.cpp paletteSegment.cpp pgsParser.cpp pgsSegment.cpp pgsSegmentHeader.cpp pgsUtil.cpp presentationCompositionSegment.cpp windowDefinitionSegment.cpp windowSegment.cpp) ++add_library(pgs STATIC compositionObject.cpp displaySegment.cpp objectDefinitionSegment.cpp paletteDefinitionSegment.cpp paletteSegment.cpp pgsParser.cpp pgsSegment.cpp pgsSegmentHeader.cpp pgsUtil.cpp presentationCompositionSegment.cpp windowDefinitionSegment.cpp windowSegment.cpp) + + target_link_libraries(pgs "${TIFF_LIBRARIES}") +\ No newline at end of file + diff --git a/app-text/sup2srt/metadata.xml b/app-text/sup2srt/metadata.xml new file mode 100644 index 0000000000..b1b58ffc09 --- /dev/null +++ b/app-text/sup2srt/metadata.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <name>Pavel Sobolev</name> + <email>[email protected]</email> + </maintainer> + <upstream> + <bugs-to>https://github.com/retrontology/sup2srt/issues</bugs-to> + <remote-id type="github">retrontology/sup2srt</remote-id> + </upstream> +</pkgmetadata> diff --git a/app-text/sup2srt/sup2srt-1.0.6_p20250518.ebuild b/app-text/sup2srt/sup2srt-1.0.6_p20250518.ebuild new file mode 100644 index 0000000000..2318a47af6 --- /dev/null +++ b/app-text/sup2srt/sup2srt-1.0.6_p20250518.ebuild @@ -0,0 +1,32 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake + +EGIT_COMMIT="b40c5aa8022772d977006417ac60bd067ce5504e" + +DESCRIPTION="Convert SUP graphic subtitles to text-based SRT format" +HOMEPAGE="https://github.com/retrontology/sup2srt" +SRC_URI="https://github.com/retrontology/sup2srt/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz" + +S="${WORKDIR}/${PN}-${EGIT_COMMIT}" + +LICENSE="GPL-3+" +SLOT="0" +KEYWORDS="~amd64" + +RDEPEND=" + app-text/tesseract + media-libs/leptonica + media-libs/tiff[cxx] + media-video/ffmpeg:= +" +BDEPEND=" + virtual/pkgconfig +" + +PATCHES=( + "${FILESDIR}/${PN}-1.0.6-build-the-pgs-library-statically.patch" +)
