mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-09 15:13:31 -04:00
app-text/sup2srt: new package, add 1.0.6_p20250518
Signed-off-by: Pavel Sobolev <contact@paveloom.dev>
This commit is contained in:
1
app-text/sup2srt/Manifest
Normal file
1
app-text/sup2srt/Manifest
Normal file
@@ -0,0 +1 @@
|
||||
DIST sup2srt-1.0.6_p20250518.tar.gz 28427 BLAKE2B 85065f966177d6c9517cb16281b6572e51a3482906d928ff8e1c6d3b9880ba4f7e175a29f3ead27fca942a35c864ac6af8886be9385cf5bb4bb175802f878344 SHA512 9ff990cf8e3059e305a86eb54bc7979b22a82c52ec99484fb246800f1db591898050c689bc5abdf192372737f8c7117f922fe10202191f66ad12cb87ec8ab18b
|
||||
@@ -0,0 +1,17 @@
|
||||
From: Pavel Sobolev <contact@paveloom.dev>
|
||||
Subject: [PATCH] Build the `pgs` library statically.
|
||||
|
||||
Signed-off-by: Pavel Sobolev <contact@paveloom.dev>
|
||||
|
||||
--- 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
|
||||
|
||||
12
app-text/sup2srt/metadata.xml
Normal file
12
app-text/sup2srt/metadata.xml
Normal file
@@ -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>contact@paveloom.dev</email>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<bugs-to>https://github.com/retrontology/sup2srt/issues</bugs-to>
|
||||
<remote-id type="github">retrontology/sup2srt</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
32
app-text/sup2srt/sup2srt-1.0.6_p20250518.ebuild
Normal file
32
app-text/sup2srt/sup2srt-1.0.6_p20250518.ebuild
Normal file
@@ -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"
|
||||
)
|
||||
Reference in New Issue
Block a user