diff options
author | Michael Weber <xmw@gentoo.org> | 2017-03-02 18:33:52 +0100 |
---|---|---|
committer | Michael Weber <xmw@gentoo.org> | 2017-03-02 18:35:45 +0100 |
commit | 34875e6198672313e1e0e679d2c6768e077f5e0d (patch) | |
tree | 6d99739a5c8136b1746110df6a5eac813578a2ad | |
parent | media-libs/libdcp: Initial import (for dcpomatic). (diff) | |
download | gentoo-34875e6198672313e1e0e679d2c6768e077f5e0d.tar.gz gentoo-34875e6198672313e1e0e679d2c6768e077f5e0d.tar.bz2 gentoo-34875e6198672313e1e0e679d2c6768e077f5e0d.zip |
media-libs/libsub: Initial import (required for dcpomatic).
Package-Manager: Portage-2.3.4, Repoman-2.3.2
-rw-r--r-- | media-libs/libsub/Manifest | 2 | ||||
-rw-r--r-- | media-libs/libsub/files/libsub-1.1.12-no-ldconfig.patch | 9 | ||||
-rw-r--r-- | media-libs/libsub/files/libsub-1.1.13-respect-cxxflags.patch | 14 | ||||
-rw-r--r-- | media-libs/libsub/files/libsub-1.2.4-no-ldconfig.patch | 12 | ||||
-rw-r--r-- | media-libs/libsub/libsub-1.1.13.ebuild | 46 | ||||
-rw-r--r-- | media-libs/libsub/libsub-1.2.4.ebuild | 46 | ||||
-rw-r--r-- | media-libs/libsub/metadata.xml | 8 |
7 files changed, 137 insertions, 0 deletions
diff --git a/media-libs/libsub/Manifest b/media-libs/libsub/Manifest new file mode 100644 index 000000000000..e1efd00785d9 --- /dev/null +++ b/media-libs/libsub/Manifest @@ -0,0 +1,2 @@ +DIST libsub-1.1.13.tar.bz2 178168 SHA256 3ec6e40e3f45fc67b61e0746cb509c1e251fc22c639785deeba0b8459f657af2 SHA512 85785ce69e52ce8d5746a9cf15178a9e98d13f63a4c899d13ff5df40ab871fd8ddbea0261b7e01ab9220973c0f9b6f0faeefe94c7f0755eaf43ae2674c367ea6 WHIRLPOOL cfdbad5596870b0b266037a329c3baab207e86451c9413b4612831bc699e9690920448279b268837a6f1d31ce26e73965ade49fa58bb762e2e51c26248e87ed7 +DIST libsub-1.2.4.tar.bz2 179025 SHA256 0c37a37d5445598bba2088006b1542155d1a7528a62fd95cd094acbc44eb5d61 SHA512 c7e5f73b5e46322434c5ad3235c374311e30df0e4d794645a716867e696683883b1576fb206e85db6aebe649c9e59299abac86a513c9ac93bd5ebefec826a63e WHIRLPOOL c954910e43252aba9d9dfa060493f41a3ac605d6f1b8e8cda4f110cea56937db30599b93345e593ee676828b317f73734b29a1aa7ba291f25252042f044faf13 diff --git a/media-libs/libsub/files/libsub-1.1.12-no-ldconfig.patch b/media-libs/libsub/files/libsub-1.1.12-no-ldconfig.patch new file mode 100644 index 000000000000..b0752b28e1ec --- /dev/null +++ b/media-libs/libsub/files/libsub-1.1.12-no-ldconfig.patch @@ -0,0 +1,9 @@ +--- libsub-1.1.12/wscript ++++ libsub-1.1.12/wscript +@@ -148,5 +148,4 @@ + sys.exit(-1) + + def post(ctx): +- if ctx.cmd == 'install': +- ctx.exec_command('/sbin/ldconfig') ++ pass diff --git a/media-libs/libsub/files/libsub-1.1.13-respect-cxxflags.patch b/media-libs/libsub/files/libsub-1.1.13-respect-cxxflags.patch new file mode 100644 index 000000000000..59687755c653 --- /dev/null +++ b/media-libs/libsub/files/libsub-1.1.13-respect-cxxflags.patch @@ -0,0 +1,14 @@ +--- libsub-1.1.13/wscript ++++ libsub-1.1.13/wscript +@@ -24,11 +24,6 @@ + conf.env.DISABLE_TESTS = conf.options.disable_tests + conf.env.API_VERSION = API_VERSION + +- if conf.options.enable_debug: +- conf.env.append_value('CXXFLAGS', '-g') +- else: +- conf.env.append_value('CXXFLAGS', '-O3') +- + # Disable libxml++ deprecation warnings for now + conf.env.append_value('CXXFLAGS', ['-Wno-deprecated-declarations']) + diff --git a/media-libs/libsub/files/libsub-1.2.4-no-ldconfig.patch b/media-libs/libsub/files/libsub-1.2.4-no-ldconfig.patch new file mode 100644 index 000000000000..cfb645d0d894 --- /dev/null +++ b/media-libs/libsub/files/libsub-1.2.4-no-ldconfig.patch @@ -0,0 +1,12 @@ +--- libsub-1.2.4/wscript ++++ libsub-1.2.4/wscript +@@ -151,8 +151,7 @@ + sys.exit(-1) + + def post(ctx): +- if ctx.cmd == 'install': +- ctx.exec_command('/sbin/ldconfig') ++ pass + + def tags(bld): + os.system('etags src/*.cc src/*.h') diff --git a/media-libs/libsub/libsub-1.1.13.ebuild b/media-libs/libsub/libsub-1.1.13.ebuild new file mode 100644 index 000000000000..5d20b0e6fe7e --- /dev/null +++ b/media-libs/libsub/libsub-1.1.13.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python2_7 python3_4 python3_5 python3_6 ) +PYTHON_REQ_USE="threads(+)" +inherit python-any-r1 waf-utils + +DESCRIPTION="read and write subtitles in a few different formats" +HOMEPAGE="http://carlh.net/libsub" +SRC_URI="http://carlh.net/downloads/${PN}/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="1.0" +KEYWORDS="~amd64" +IUSE="" + +RDEPEND="dev-cpp/glibmm:2 + dev-cpp/libxmlpp:2.6 + dev-libs/boost:= + <dev-libs/libcxml-0.15.4 + dev-libs/openssl:0 + media-libs/libasdcp-cth" +DEPEND="${RDEPEND} + dev-util/waf + virtual/pkgconfig" + +PATCHES=( "${FILESDIR}"/${PN}-1.1.12-no-ldconfig.patch + "${FILESDIR}"/${PN}-1.1.13-respect-cxxflags.patch ) + +src_prepare() { + rm -v waf || die + export WAF_BINARY=${EROOT}usr/bin/waf + + ewarn "Some tests failing due missing files/certs are disabled." + sed -e '/ssa_reader_test.cc/d' \ + -e '/subrip_reader_test.cc/d' \ + -i test/wscript || die + + default +} + +src_test() { + ./run/tests || die +} diff --git a/media-libs/libsub/libsub-1.2.4.ebuild b/media-libs/libsub/libsub-1.2.4.ebuild new file mode 100644 index 000000000000..f95dc0902219 --- /dev/null +++ b/media-libs/libsub/libsub-1.2.4.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python2_7 python3_4 python3_5 python3_6 ) +PYTHON_REQ_USE="threads(+)" +inherit python-any-r1 waf-utils + +DESCRIPTION="read and write subtitles in a few different formats" +HOMEPAGE="http://carlh.net/libsub" +SRC_URI="http://carlh.net/downloads/${PN}/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="1.0" +KEYWORDS="~amd64" +IUSE="" + +RDEPEND="dev-cpp/glibmm:2 + dev-cpp/libxmlpp:2.6 + dev-libs/boost:= + >=dev-libs/libcxml-0.15.4 + dev-libs/openssl:0 + >=media-libs/libasdcp-cth-0.1.3" +DEPEND="${RDEPEND} + dev-util/waf + virtual/pkgconfig" + +PATCHES=( "${FILESDIR}"/${PN}-1.2.4-no-ldconfig.patch + "${FILESDIR}"/${PN}-1.1.13-respect-cxxflags.patch ) + +src_prepare() { + rm -v waf || die + export WAF_BINARY=${EROOT}usr/bin/waf + + ewarn "Some tests failing due missing files/certs are disabled." + sed -e '/ssa_reader_test.cc/d' \ + -e '/dcp_to_stl_binary_test.cc/d' \ + -i test/wscript || die + + default +} + +src_test() { + ./run/tests || die +} diff --git a/media-libs/libsub/metadata.xml b/media-libs/libsub/metadata.xml new file mode 100644 index 000000000000..a535b8852829 --- /dev/null +++ b/media-libs/libsub/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer type="person"> +<email>xmw@gentoo.org</email> +<name>Michael Weber</name> +</maintainer> +</pkgmetadata> |