summaryrefslogtreecommitdiff
path: root/media-libs/libsub
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /media-libs/libsub
reinit the tree, so we can have metadata
Diffstat (limited to 'media-libs/libsub')
-rw-r--r--media-libs/libsub/Manifest15
-rw-r--r--media-libs/libsub/files/libsub-1.1.12-no-ldconfig.patch9
-rw-r--r--media-libs/libsub/files/libsub-1.1.13-respect-cxxflags.patch14
-rw-r--r--media-libs/libsub/files/libsub-1.2.4-no-ldconfig.patch12
-rw-r--r--media-libs/libsub/files/libsub-9999-boost.patch31
-rw-r--r--media-libs/libsub/files/libsub-9999-iostream.patch90
-rw-r--r--media-libs/libsub/files/libsub-9999-libcxml-9999.patch21
-rw-r--r--media-libs/libsub/files/libsub-9999-no-ldconfig.patch9
-rw-r--r--media-libs/libsub/files/libsub-9999-respect-cxxflags.patch13
-rw-r--r--media-libs/libsub/files/libsub-9999-test-boost.patch_15
-rw-r--r--media-libs/libsub/libsub-1.1.13.ebuild47
-rw-r--r--media-libs/libsub/libsub-1.2.4.ebuild47
-rw-r--r--media-libs/libsub/libsub-9999.ebuild51
-rw-r--r--media-libs/libsub/metadata.xml8
14 files changed, 382 insertions, 0 deletions
diff --git a/media-libs/libsub/Manifest b/media-libs/libsub/Manifest
new file mode 100644
index 000000000000..66ccfdbefbf2
--- /dev/null
+++ b/media-libs/libsub/Manifest
@@ -0,0 +1,15 @@
+AUX libsub-1.1.12-no-ldconfig.patch 196 SHA256 9273a92f8f9ad958a877d9c56eeb3e781a2aa7f005116d66bf714586a2bd6ce4 SHA512 75e9412a12761f9d98033c8e2a4df0fed90379d4688ec28534db92163beb2cc0677a57ba79dce952de27f6b1c350e6001dcf34cd0422aa1e015b8ec05593d0f7 WHIRLPOOL 554289db86ccdd3b76a44fc3c1595754cb8a70d0148cc539778ff2152abc76e29596b2d22c0082ade6f36cf3fe2670d2c2ca4d53e4099156efe899fe0d32dd56
+AUX libsub-1.1.13-respect-cxxflags.patch 445 SHA256 a4aa1721ca264560a5bbb4b607e5f0cd3bc71b3cbe71249095d416aff9faab4b SHA512 9c0d4ee9995dd91715c8e8404eb2f685849a1125133f5f13f259e89e298fe6b55b3702d6f5d0cbaa80ca9bb50fb091ed2281ae5e46b69d235d1c126deeeae8d3 WHIRLPOOL bbaa505f18f4544d289114c9325c17f808e59db7ee2d298c5c458a865e168fc39e3bf518198d271fd506dc2ff412b329b124763edd0d5fedf5081f9d04c22b2c
+AUX libsub-1.2.4-no-ldconfig.patch 253 SHA256 1912044026473b1338f177d8f4dcbba80baacba09dbfc9b87a9f29b2415ea21e SHA512 1791882bf490c01a03a799e065562ba27b65bc14ce92a6ddab910bc8a0acafafc58db64baa11267d40c4aadabd34bffb68772adbc4b2a8b5855ab38ba3965ed8 WHIRLPOOL 88156cee56f683d6d08202db516f3d0b795f7ac4c10356dfc59d4727f7c4437630d98e2a8914f21984a6527d74a15337f2a965d7b8f60b129debc54795d44d0b
+AUX libsub-9999-boost.patch 945 SHA256 5791369b78a4dc78b7eca88577c0521aafff750cdff86796072ab97aabd3c064 SHA512 44b83444dadd21db782d0ad3b7a4b139f984a7161be48f4a20c9484e489cdcdfa15b60e74da3ab9cbbbc334305a34953d9c010be63ccfb2bbd89cb7ef27f9096 WHIRLPOOL 8c98c752f08e4d45895de554231e5f3b70358b66bd431680bc3d0f485c4e09f9b7451c62333e7a7c0095e3e9e2e90661c39bb67066d3be7677b16ad011d98f02
+AUX libsub-9999-iostream.patch 2097 SHA256 cb5d5876db50c320fe414811ca491545dd25130bf1d1e35049d7999c32292956 SHA512 45937927690f847981c331423716cdae322c2bf35984028364bdf40e9d5ed8b3c7b2e09a4daa1521dc2f898916a7cbac6c5a1d25a140fc9979e7d1d5967f5ad3 WHIRLPOOL afc18ff8e7434ded85efec0b449d9c866aec8f3d4c0633fdfadb6d1820aed06be99e610fcbd5f927da7e63fd86333b174af9733835024e347b212fa1d6a0afb2
+AUX libsub-9999-libcxml-9999.patch 433 SHA256 0281b8131826a26f6b57d483e38ab074c96ae863fdd2bb81836512f0299b9fcb SHA512 e24858f1cc1a46e744fcdbc3b06c775a2e04521676d000d138bc05f625e48f4b66c5a81f5cf071a4dffef0265a2df1d94cd782ad8f4ff04b2358c0aaa5389d5b WHIRLPOOL 8b282866dc0249f040f88dbfd56d72c43217022a6d58489480f7228b44716aecae978b84e4bac636fc0fa3a409619723b96eb69f87f12d39b95c0a84ffe79fab
+AUX libsub-9999-no-ldconfig.patch 196 SHA256 652355af3ca61860a83d02bea1139a66141a3ac6aa76b231cc9bf7151f5447ed SHA512 543f8f5d0ef6e855fc43eafd594d8bf1259abc23a878108a7ec28353a05430ec05b1e05627b7a2f0a7993512bb4867066d2ca533a48950683c022d3283b0a62f WHIRLPOOL 2ac1a0edeec82987efd65c9b87327289268dc088a239518284da983e689a42a17618c714bcf9d263dcc38a34ad40a010ce344bacd1288f1c134cee398b18cafb
+AUX libsub-9999-respect-cxxflags.patch 418 SHA256 d5f4a72d12062734c31ae8ed86fbbc99b6f373893e10634f51811d24bf6182f1 SHA512 1a0d6cff7c3d8bb04d4f71f7c05b1f74cd7f7b3cfed98aff1b2f5ba9b484b7a5040f26849a93eaa5d0de35dfbb22ad8d34e3038e4e3204bf2dcbcb07cd640179 WHIRLPOOL 5eb6020452ff55defda1ccc8acbaef453b542da7f74ad3dd87ea8acf59cdd545289facb866d69b2d25595c512c13ba5d78c1bcddbf218a34946294d305ac5949
+AUX libsub-9999-test-boost.patch_ 740 SHA256 d581e83e08e78c8a93e611b31c66d1366ee745222954543f011e4f2d3c2f707c SHA512 41e848f3a1f4a891352a405b1e63f2df6b1affda813bb64c64befe86478e3056158ca578f29e9476b1043bfb44778e632de9668e1905b40eba1c9d4f2764ea2a WHIRLPOOL 1378da5bb683f45cee73d88c33376f63650eded3865d1a21a50fc356bcc181995cd4d34e16d297747119704ea951d9615f06b06642a5d127fc8a1d0100f04a88
+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
+EBUILD libsub-1.1.13.ebuild 1045 SHA256 af33f2cbbde6b461f57b1d95009f80199290113413671accc2747f1b41478ad6 SHA512 81167be1b26e4180385954640511f9eafdf7bfb0f55d28d50a47384c981486609f06598f79d48ec60957bc1627150a5a23309ce596c8e869b2994bfd1054d2b5 WHIRLPOOL ee20c970ad6a6557df2009863b50ce954d5a64b93e556536c73844d22484e9c81740b23ceb47e64c859eb64f4a75e812bb1511c39f1f09e9e49d95ac9de02c53
+EBUILD libsub-1.2.4.ebuild 1057 SHA256 00483bafd43cede25e256f6c766f7edc384a028f152601d661273fbc8494ba89 SHA512 460d8cf7d7ebe9fc40245a869f601194d51ca8fc3bc0c0857e58b12099cd2b312f439bf86230379a2ca03481e58f4009677f0a3a2c6b69b621c075a877d60e63 WHIRLPOOL f4698eb9f8ccc41713f7092b4db1dfe4ccc78cd43f75523e43051edbef42be43814dd803525e03a77c873b6cb6b35b36219dd8170906f3c11571518910ccab7e
+EBUILD libsub-9999.ebuild 1163 SHA256 f8f58083bcd76827cb7c894a3c65912553f3b98e05a0fc57b2e76032be01e849 SHA512 7268af4529c0f9b81a56e0b82fb568fc87f95b9f30a2504ccca23d1b304a597aa6135082f26460bb9235a2ac5c61fbb350a46b3c0b7363744aeea3749df5d7e8 WHIRLPOOL 16375d96bc4ebb671f7a8f060c572e944b09881d4d170ab0159b54cf56e0189108ab855ea4fc86e510fe758f814002490489bdad1220b43e5f993b99b103b6e9
+MISC metadata.xml 237 SHA256 ffb571839c57797d282263369646d2bba2662601a45f7bb3251bb97f716554a6 SHA512 ae2360aa6b1b00c67e0acea4935c02b64585b9a15e126fec9d5d99637021c542c0a495e5116205f3da287def46fa5b19cb1a7f3042c12c5f7a78d66d92fcb03f WHIRLPOOL 60d6da846c983457e038ea5ba3c0bf48f939c9586610985a14cac9772fd1d45d781a643abc16482f232f3028e44fe99fe1a382deaebf6589602fc244a4460e3f
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/files/libsub-9999-boost.patch b/media-libs/libsub/files/libsub-9999-boost.patch
new file mode 100644
index 000000000000..347610f58545
--- /dev/null
+++ b/media-libs/libsub/files/libsub-9999-boost.patch
@@ -0,0 +1,31 @@
+--- libsub-9999/test/dcp_reader_test.cc
++++ libsub-9999/test/dcp_reader_test.cc
+@@ -19,6 +19,7 @@
+
+ #include "interop_dcp_reader.h"
+ #include "collect.h"
++#include <boost/optional/optional_io.hpp>
+ #include <boost/test/unit_test.hpp>
+ #include <fstream>
+ #include <iostream>
+--- libsub-9999/test/wscript
++++ libsub-9999/test/wscript
+@@ -17,7 +17,7 @@
+ def build(bld):
+ obj = bld(features='cxx cxxprogram')
+ obj.name = 'tests'
+- obj.uselib = 'BOOST_TEST DCP CXML'
++ obj.uselib = 'BOOST_TEST BOOST_FILESYSTEM DCP CXML'
+ obj.use = 'libsub-1.0'
+ obj.source = """
+ dcp_reader_test.cc
+--- libsub-9999/tools/wscript
++++ libsub-9999/tools/wscript
+@@ -1,6 +1,6 @@
+ def build(bld):
+ obj = bld(features = 'cxx cxxprogram')
+ obj.use = ['libsub-1.0']
+- obj.uselib = 'OPENJPEG DCP CXML'
++ obj.uselib = 'OPENJPEG DCP CXML BOOST_FILESYSTEM'
+ obj.source = 'dumpsubs.cc'
+ obj.target = 'dumpsubs'
diff --git a/media-libs/libsub/files/libsub-9999-iostream.patch b/media-libs/libsub/files/libsub-9999-iostream.patch
new file mode 100644
index 000000000000..48a94c9737d4
--- /dev/null
+++ b/media-libs/libsub/files/libsub-9999-iostream.patch
@@ -0,0 +1,90 @@
+--- libsub-1.9999/src/stl_text_reader.cc
++++ libsub-1.9999/src/stl_text_reader.cc
+@@ -22,6 +22,7 @@
+ #include <boost/algorithm/string.hpp>
+ #include <boost/lexical_cast.hpp>
+ #include <vector>
++#include <iostream>
+
+ using std::list;
+ using std::ostream;
+--- libsub-9999/src/dcp_reader.cc
++++ libsub-9999/src/dcp_reader.cc
+@@ -26,6 +26,7 @@
+ #include "dcp/subtitle.h"
+ #include <libcxml/cxml.h>
+ #include <libxml++/libxml++.h>
++#include <iostream>
+
+ using std::list;
+ using std::cout;
+--- libsub-9999/src/sub_time.cc
++++ libsub-9999/src/sub_time.cc
+@@ -21,6 +21,7 @@
+ #include "exceptions.h"
+ #include <cmath>
+ #include <iomanip>
++#include <iostream>
+
+ using std::ostream;
+ using std::cout;
+--- libsub-9999/test/dcp_reader_test.cc
++++ libsub-9999/test/dcp_reader_test.cc
+@@ -21,6 +21,7 @@
+ #include "collect.h"
+ #include <boost/test/unit_test.hpp>
+ #include <fstream>
++#include <iostream>
+
+ using std::list;
+ using std::cout;
+--- libsub-9999/test/stl_binary_reader_test.cc
++++ libsub-9999/test/stl_binary_reader_test.cc
+@@ -24,7 +24,6 @@
+ #include "test.h"
+
+ using std::list;
+-using std::cout;
+ using std::ifstream;
+
+ /* Test reading of a binary STL file */
+--- libsub-9999/test/subrip_reader_test.cc
++++ libsub-9999/test/subrip_reader_test.cc
+@@ -24,6 +24,7 @@
+ #include <boost/test/unit_test.hpp>
+ #include <boost/filesystem.hpp>
+ #include <fstream>
++#include <iostream>
+
+ using std::list;
+ using std::cerr;
+--- libsub-9999/test/test.cc
++++ libsub-9999/test/test.cc
+@@ -22,6 +22,7 @@
+ #include <boost/test/unit_test.hpp>
+ #include <boost/filesystem.hpp>
+ #include <fstream>
++#include <iostream>
+ #include <string>
+ #include "iso6937_tables.h"
+
+--- libsub-9999/tools/dumpsubs.cc
++++ libsub-9999/tools/dumpsubs.cc
+@@ -23,6 +23,7 @@
+ #include <getopt.h>
+ #include <boost/filesystem.hpp>
+ #include <map>
++#include <iostream>
+
+ using std::string;
+ using std::cerr;
+--- libsub-9999/asdcplib/src/h__Writer.cpp
++++ libsub-9999/asdcplib/src/h__Writer.cpp
+@@ -32,7 +32,6 @@
+ #include "AS_DCP_internal.h"
+ #include "KLV.h"
+
+-using std::cout;
+ using namespace ASDCP;
+ using namespace ASDCP::MXF;
+
diff --git a/media-libs/libsub/files/libsub-9999-libcxml-9999.patch b/media-libs/libsub/files/libsub-9999-libcxml-9999.patch
new file mode 100644
index 000000000000..9937b138742d
--- /dev/null
+++ b/media-libs/libsub/files/libsub-9999-libcxml-9999.patch
@@ -0,0 +1,21 @@
+--- libsub-9999/src/smpte_dcp_reader.cc
++++ libsub-9999/src/smpte_dcp_reader.cc
+@@ -29,7 +29,6 @@
+
+ using std::string;
+ using std::list;
+-using std::stringstream;
+ using boost::shared_ptr;
+ using namespace sub;
+
+@@ -46,9 +45,7 @@
+
+ string s;
+ reader.ReadTimedTextResource (s, 0, 0);
+- stringstream t;
+- t << s;
+- xml->read_stream (t);
++ xml->read_string (s);
+
+ ASDCP::WriterInfo info;
+ reader.FillWriterInfo (info);
diff --git a/media-libs/libsub/files/libsub-9999-no-ldconfig.patch b/media-libs/libsub/files/libsub-9999-no-ldconfig.patch
new file mode 100644
index 000000000000..46851bf833ea
--- /dev/null
+++ b/media-libs/libsub/files/libsub-9999-no-ldconfig.patch
@@ -0,0 +1,9 @@
+--- libsub-1.9999/wscript
++++ libsub-1.9999/wscript
+@@ -128,5 +128,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-9999-respect-cxxflags.patch b/media-libs/libsub/files/libsub-9999-respect-cxxflags.patch
new file mode 100644
index 000000000000..992ef6bccce0
--- /dev/null
+++ b/media-libs/libsub/files/libsub-9999-respect-cxxflags.patch
@@ -0,0 +1,13 @@
+--- libsub-9999/wscript
++++ libsub-9999/wscript
+@@ -23,10 +23,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')
+
+ conf.check_cfg(package='openssl', args='--cflags --libs', uselib_store='OPENSSL', mandatory=True)
+
diff --git a/media-libs/libsub/files/libsub-9999-test-boost.patch_ b/media-libs/libsub/files/libsub-9999-test-boost.patch_
new file mode 100644
index 000000000000..eacc5ea65ca6
--- /dev/null
+++ b/media-libs/libsub/files/libsub-9999-test-boost.patch_
@@ -0,0 +1,15 @@
+--- libsub-9999/test/wscript
++++ libsub-9999/test/wscript
+@@ -6,10 +6,11 @@
+ conf.check_cxx(fragment="""
+ #define BOOST_TEST_MODULE Config test\n
+ #include <boost/test/unit_test.hpp>\n
++ #include <boost/filesystem.hpp>\n
+ int main() {}
+ """,
+ msg='Checking for boost unit testing library',
+- lib='boost_unit_test_framework%s' % boost_lib_suffix,
++ lib='boost_unit_test_framework%s boost_filesystem%s' % (boost_lib_suffix, boost_lib_suffix),
+ uselib_store='BOOST_TEST')
+
+ conf.env.prepend_value('LINKFLAGS', '-Lsrc')
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..82342db5c408
--- /dev/null
+++ b/media-libs/libsub/libsub-1.1.13.ebuild
@@ -0,0 +1,47 @@
+# 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
+ ${PYTHON_DEPS}"
+
+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..9bfbce8a6305
--- /dev/null
+++ b/media-libs/libsub/libsub-1.2.4.ebuild
@@ -0,0 +1,47 @@
+# 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
+ ${PYTHON_DEPS}"
+
+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/libsub-9999.ebuild b/media-libs/libsub/libsub-9999.ebuild
new file mode 100644
index 000000000000..8772a9cff0d2
--- /dev/null
+++ b/media-libs/libsub/libsub-9999.ebuild
@@ -0,0 +1,51 @@
+# 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 git-r3 python-any-r1 waf-utils
+
+DESCRIPTION="read and write subtitles in a few different formats"
+HOMEPAGE="http://carlh.net/libsub"
+EGIT_REPO_URI="https://github.com/cth103/${PN}.git"
+EGIT_BRANCH="1.0"
+
+LICENSE="GPL-2"
+SLOT="1.0"
+KEYWORDS=""
+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
+ ${PYTHON_DEPS}"
+
+PATCHES=( "${FILESDIR}"/${P}-no-ldconfig.patch
+ "${FILESDIR}"/${P}-respect-cxxflags.patch
+ "${FILESDIR}"/${P}-iostream.patch
+ "${FILESDIR}"/${P}-libcxml-9999.patch
+ "${FILESDIR}"/${P}-boost.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>