Gentoo Archives: gentoo-commits

From: Michael Weber <xmw@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/libsub/, media-libs/libsub/files/
Date: Thu, 02 Mar 2017 17:36:44
Message-Id: 1488476145.34875e6198672313e1e0e679d2c6768e077f5e0d.xmw@gentoo
1 commit: 34875e6198672313e1e0e679d2c6768e077f5e0d
2 Author: Michael Weber <xmw <AT> gentoo <DOT> org>
3 AuthorDate: Thu Mar 2 17:33:52 2017 +0000
4 Commit: Michael Weber <xmw <AT> gentoo <DOT> org>
5 CommitDate: Thu Mar 2 17:35:45 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=34875e61
7
8 media-libs/libsub: Initial import (required for dcpomatic).
9
10 Package-Manager: Portage-2.3.4, Repoman-2.3.2
11
12 media-libs/libsub/Manifest | 2 +
13 .../libsub/files/libsub-1.1.12-no-ldconfig.patch | 9 +++++
14 .../files/libsub-1.1.13-respect-cxxflags.patch | 14 +++++++
15 .../libsub/files/libsub-1.2.4-no-ldconfig.patch | 12 ++++++
16 media-libs/libsub/libsub-1.1.13.ebuild | 46 ++++++++++++++++++++++
17 media-libs/libsub/libsub-1.2.4.ebuild | 46 ++++++++++++++++++++++
18 media-libs/libsub/metadata.xml | 8 ++++
19 7 files changed, 137 insertions(+)
20
21 diff --git a/media-libs/libsub/Manifest b/media-libs/libsub/Manifest
22 new file mode 100644
23 index 00000000000..e1efd00785d
24 --- /dev/null
25 +++ b/media-libs/libsub/Manifest
26 @@ -0,0 +1,2 @@
27 +DIST libsub-1.1.13.tar.bz2 178168 SHA256 3ec6e40e3f45fc67b61e0746cb509c1e251fc22c639785deeba0b8459f657af2 SHA512 85785ce69e52ce8d5746a9cf15178a9e98d13f63a4c899d13ff5df40ab871fd8ddbea0261b7e01ab9220973c0f9b6f0faeefe94c7f0755eaf43ae2674c367ea6 WHIRLPOOL cfdbad5596870b0b266037a329c3baab207e86451c9413b4612831bc699e9690920448279b268837a6f1d31ce26e73965ade49fa58bb762e2e51c26248e87ed7
28 +DIST libsub-1.2.4.tar.bz2 179025 SHA256 0c37a37d5445598bba2088006b1542155d1a7528a62fd95cd094acbc44eb5d61 SHA512 c7e5f73b5e46322434c5ad3235c374311e30df0e4d794645a716867e696683883b1576fb206e85db6aebe649c9e59299abac86a513c9ac93bd5ebefec826a63e WHIRLPOOL c954910e43252aba9d9dfa060493f41a3ac605d6f1b8e8cda4f110cea56937db30599b93345e593ee676828b317f73734b29a1aa7ba291f25252042f044faf13
29
30 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
31 new file mode 100644
32 index 00000000000..b0752b28e1e
33 --- /dev/null
34 +++ b/media-libs/libsub/files/libsub-1.1.12-no-ldconfig.patch
35 @@ -0,0 +1,9 @@
36 +--- libsub-1.1.12/wscript
37 ++++ libsub-1.1.12/wscript
38 +@@ -148,5 +148,4 @@
39 + sys.exit(-1)
40 +
41 + def post(ctx):
42 +- if ctx.cmd == 'install':
43 +- ctx.exec_command('/sbin/ldconfig')
44 ++ pass
45
46 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
47 new file mode 100644
48 index 00000000000..59687755c65
49 --- /dev/null
50 +++ b/media-libs/libsub/files/libsub-1.1.13-respect-cxxflags.patch
51 @@ -0,0 +1,14 @@
52 +--- libsub-1.1.13/wscript
53 ++++ libsub-1.1.13/wscript
54 +@@ -24,11 +24,6 @@
55 + conf.env.DISABLE_TESTS = conf.options.disable_tests
56 + conf.env.API_VERSION = API_VERSION
57 +
58 +- if conf.options.enable_debug:
59 +- conf.env.append_value('CXXFLAGS', '-g')
60 +- else:
61 +- conf.env.append_value('CXXFLAGS', '-O3')
62 +-
63 + # Disable libxml++ deprecation warnings for now
64 + conf.env.append_value('CXXFLAGS', ['-Wno-deprecated-declarations'])
65 +
66
67 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
68 new file mode 100644
69 index 00000000000..cfb645d0d89
70 --- /dev/null
71 +++ b/media-libs/libsub/files/libsub-1.2.4-no-ldconfig.patch
72 @@ -0,0 +1,12 @@
73 +--- libsub-1.2.4/wscript
74 ++++ libsub-1.2.4/wscript
75 +@@ -151,8 +151,7 @@
76 + sys.exit(-1)
77 +
78 + def post(ctx):
79 +- if ctx.cmd == 'install':
80 +- ctx.exec_command('/sbin/ldconfig')
81 ++ pass
82 +
83 + def tags(bld):
84 + os.system('etags src/*.cc src/*.h')
85
86 diff --git a/media-libs/libsub/libsub-1.1.13.ebuild b/media-libs/libsub/libsub-1.1.13.ebuild
87 new file mode 100644
88 index 00000000000..5d20b0e6fe7
89 --- /dev/null
90 +++ b/media-libs/libsub/libsub-1.1.13.ebuild
91 @@ -0,0 +1,46 @@
92 +# Copyright 1999-2017 Gentoo Foundation
93 +# Distributed under the terms of the GNU General Public License v2
94 +
95 +EAPI=6
96 +
97 +PYTHON_COMPAT=( python2_7 python3_4 python3_5 python3_6 )
98 +PYTHON_REQ_USE="threads(+)"
99 +inherit python-any-r1 waf-utils
100 +
101 +DESCRIPTION="read and write subtitles in a few different formats"
102 +HOMEPAGE="http://carlh.net/libsub"
103 +SRC_URI="http://carlh.net/downloads/${PN}/${P}.tar.bz2"
104 +
105 +LICENSE="GPL-2"
106 +SLOT="1.0"
107 +KEYWORDS="~amd64"
108 +IUSE=""
109 +
110 +RDEPEND="dev-cpp/glibmm:2
111 + dev-cpp/libxmlpp:2.6
112 + dev-libs/boost:=
113 + <dev-libs/libcxml-0.15.4
114 + dev-libs/openssl:0
115 + media-libs/libasdcp-cth"
116 +DEPEND="${RDEPEND}
117 + dev-util/waf
118 + virtual/pkgconfig"
119 +
120 +PATCHES=( "${FILESDIR}"/${PN}-1.1.12-no-ldconfig.patch
121 + "${FILESDIR}"/${PN}-1.1.13-respect-cxxflags.patch )
122 +
123 +src_prepare() {
124 + rm -v waf || die
125 + export WAF_BINARY=${EROOT}usr/bin/waf
126 +
127 + ewarn "Some tests failing due missing files/certs are disabled."
128 + sed -e '/ssa_reader_test.cc/d' \
129 + -e '/subrip_reader_test.cc/d' \
130 + -i test/wscript || die
131 +
132 + default
133 +}
134 +
135 +src_test() {
136 + ./run/tests || die
137 +}
138
139 diff --git a/media-libs/libsub/libsub-1.2.4.ebuild b/media-libs/libsub/libsub-1.2.4.ebuild
140 new file mode 100644
141 index 00000000000..f95dc090221
142 --- /dev/null
143 +++ b/media-libs/libsub/libsub-1.2.4.ebuild
144 @@ -0,0 +1,46 @@
145 +# Copyright 1999-2017 Gentoo Foundation
146 +# Distributed under the terms of the GNU General Public License v2
147 +
148 +EAPI=6
149 +
150 +PYTHON_COMPAT=( python2_7 python3_4 python3_5 python3_6 )
151 +PYTHON_REQ_USE="threads(+)"
152 +inherit python-any-r1 waf-utils
153 +
154 +DESCRIPTION="read and write subtitles in a few different formats"
155 +HOMEPAGE="http://carlh.net/libsub"
156 +SRC_URI="http://carlh.net/downloads/${PN}/${P}.tar.bz2"
157 +
158 +LICENSE="GPL-2"
159 +SLOT="1.0"
160 +KEYWORDS="~amd64"
161 +IUSE=""
162 +
163 +RDEPEND="dev-cpp/glibmm:2
164 + dev-cpp/libxmlpp:2.6
165 + dev-libs/boost:=
166 + >=dev-libs/libcxml-0.15.4
167 + dev-libs/openssl:0
168 + >=media-libs/libasdcp-cth-0.1.3"
169 +DEPEND="${RDEPEND}
170 + dev-util/waf
171 + virtual/pkgconfig"
172 +
173 +PATCHES=( "${FILESDIR}"/${PN}-1.2.4-no-ldconfig.patch
174 + "${FILESDIR}"/${PN}-1.1.13-respect-cxxflags.patch )
175 +
176 +src_prepare() {
177 + rm -v waf || die
178 + export WAF_BINARY=${EROOT}usr/bin/waf
179 +
180 + ewarn "Some tests failing due missing files/certs are disabled."
181 + sed -e '/ssa_reader_test.cc/d' \
182 + -e '/dcp_to_stl_binary_test.cc/d' \
183 + -i test/wscript || die
184 +
185 + default
186 +}
187 +
188 +src_test() {
189 + ./run/tests || die
190 +}
191
192 diff --git a/media-libs/libsub/metadata.xml b/media-libs/libsub/metadata.xml
193 new file mode 100644
194 index 00000000000..a535b885282
195 --- /dev/null
196 +++ b/media-libs/libsub/metadata.xml
197 @@ -0,0 +1,8 @@
198 +<?xml version="1.0" encoding="UTF-8"?>
199 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
200 +<pkgmetadata>
201 +<maintainer type="person">
202 +<email>xmw@g.o</email>
203 +<name>Michael Weber</name>
204 +</maintainer>
205 +</pkgmetadata>