Gentoo Archives: gentoo-commits

From: David Seifert <soap@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/libxspf/files/, media-libs/libxspf/
Date: Sat, 29 Aug 2020 18:47:03
Message-Id: 1598726749.24ef580cd345d68698b4ae7ac2211e81f601e525.soap@gentoo
1 commit: 24ef580cd345d68698b4ae7ac2211e81f601e525
2 Author: David Seifert <soap <AT> gentoo <DOT> org>
3 AuthorDate: Sat Aug 29 18:45:49 2020 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Sat Aug 29 18:45:49 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=24ef580c
7
8 media-libs/libxspf: Port to EAPI 7
9
10 * Fix building against Clang/LLVM
11
12 Bug: https://bugs.gentoo.org/731048
13 Package-Manager: Portage-3.0.4, Repoman-3.0.1
14 Signed-off-by: David Seifert <soap <AT> gentoo.org>
15
16 .../libxspf/files/libxspf-1.2.0-autotools.patch | 191 +++++++++++++++++++++
17 media-libs/libxspf/libxspf-1.2.0-r1.ebuild | 46 +++++
18 2 files changed, 237 insertions(+)
19
20 diff --git a/media-libs/libxspf/files/libxspf-1.2.0-autotools.patch b/media-libs/libxspf/files/libxspf-1.2.0-autotools.patch
21 new file mode 100644
22 index 00000000000..93a4c1c7f2e
23 --- /dev/null
24 +++ b/media-libs/libxspf/files/libxspf-1.2.0-autotools.patch
25 @@ -0,0 +1,191 @@
26 +--- a/bindings/c/doc/configure.ac
27 ++++ b/bindings/c/doc/configure.ac
28 +@@ -1,8 +1,8 @@
29 + # Process this file with autoconf to produce a configure script.
30 + AC_PREREQ(2.61)
31 +-AC_INIT(Doxyfile.in)
32 ++AC_INIT(libxspf, 1.2.0)
33 + AC_CONFIG_AUX_DIR([../../../build-aux])
34 +-AM_INIT_AUTOMAKE(xspf_c-doc, 1.2.0)
35 ++AM_INIT_AUTOMAKE
36 +
37 +
38 + ## Doxygen
39 +--- a/bindings/c/doc/Makefile.am
40 ++++ b/bindings/c/doc/Makefile.am
41 +@@ -28,7 +28,7 @@
42 + ## Install doc files
43 + install-data-local:
44 + $(MKDIR_P) "$(DESTDIR)$(docdir)/html" ## Didn't work with installdirs-local
45 +- $(INSTALL_DATA) html/*.{css,gif,html,png} "$(DESTDIR)$(docdir)/html/"
46 ++ $(INSTALL_DATA) html/*.{css,html,png} "$(DESTDIR)$(docdir)/html/"
47 + $(INSTALL_DATA) *.qch "$(DESTDIR)$(docdir)/"
48 +
49 +
50 +--- a/configure.ac
51 ++++ b/configure.ac
52 +@@ -1,16 +1,15 @@
53 + # Process this file with autoconf to produce a configure script.
54 + AC_PREREQ(2.61)
55 +-AC_INIT(src/XspfReader.cpp)
56 ++AC_INIT(libxspf, 1.2.0)
57 + AC_CONFIG_AUX_DIR([build-aux])
58 +-AM_INIT_AUTOMAKE(libxspf, 1.2.0)
59 ++AM_INIT_AUTOMAKE
60 +
61 +-AC_PROG_LIBTOOL
62 +-AC_PROG_INSTALL
63 + AC_PROG_CC
64 + AC_PROG_CXX
65 + PKG_PROG_PKG_CONFIG
66 +
67 + AC_HEADER_STDC
68 ++LT_INIT
69 +
70 +
71 +
72 +@@ -29,40 +28,6 @@
73 +
74 +
75 +
76 +-# Expat
77 +-AC_ARG_WITH(expat, [
78 +-===========================================================================
79 +-Extra options:
80 +-AS_HELP_STRING([--with-expat=DIR], [override path of Expat])
81 +-AS_HELP_STRING([], [("/lib" and "/include" is appended)]
82 +-)], [
83 +- if test "x${withval}" = "x"; then
84 +- AC_MSG_ERROR([No path given for option --with-expat])
85 +- fi
86 +- LDFLAGS="-L${withval}/lib ${LDFLAGS}"
87 +- CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
88 +-], [])
89 +-
90 +-AC_ARG_WITH(expat-inc, [AS_HELP_STRING(
91 +- [--with-expat-inc=DIR], [override include path of Expat]
92 +-)], [
93 +- if test "x${withval}" = "x"; then
94 +- AC_MSG_ERROR([No path given for option --with-expat-inc])
95 +- fi
96 +- CPPFLAGS="-I${withval} ${CPPFLAGS}"
97 +-], [])
98 +-
99 +-AC_ARG_WITH(expat-lib, [AS_HELP_STRING(
100 +- [--with-expat-lib=DIR], [override library path of Expat]
101 +-)], [
102 +- if test "x${withval}" = "x"; then
103 +- AC_MSG_ERROR([No path given for option --with-expat-lib])
104 +- fi
105 +- LDFLAGS="-L${withval} ${LDFLAGS}"
106 +-], [])
107 +-
108 +-
109 +-
110 + # uriparser
111 + AC_ARG_WITH(uriparser, [AS_HELP_STRING(
112 + [--with-uriparser=DIR], [override path of uriparser])
113 +@@ -110,29 +75,8 @@
114 +
115 +
116 +
117 +-# Local headers must come very first. Otherwise we
118 +-# risk including headers of an already installed
119 +-# libxspf version if its path is in CPPFLAGS
120 +-CPPFLAGS="-I${srcdir}/include ${CPPFLAGS}"
121 +-
122 +-
123 +-
124 +-# Append $prefix as a fallback at the very end
125 +-if test "x${prefix}" != "xNONE"; then
126 +- WORKING_PREFIX=${prefix}
127 +-else
128 +- WORKING_PREFIX=${ac_default_prefix}
129 +-fi
130 +-LDFLAGS="${LDFLAGS} -L${WORKING_PREFIX}/lib"
131 +-CPPFLAGS="${CPPFLAGS} -I${WORKING_PREFIX}/include"
132 +-
133 +-
134 +-
135 + # Check presence
136 +-EXPAT_MISSING="Please install expat 1.95.8 or later.
137 +- On a Debian-based system enter 'sudo apt-get install libexpat-dev'."
138 +-AC_CHECK_LIB(expat, XML_ResumeParser,, AC_MSG_ERROR(${EXPAT_MISSING}))
139 +-AC_CHECK_HEADER(expat.h,, AC_MSG_ERROR(${EXPAT_MISSING}))
140 ++PKG_CHECK_MODULES([EXPAT], [expat])
141 +
142 + PKG_CHECK_MODULES([URIPARSER], [
143 + liburiparser >= 0.7.5
144 +--- a/doc/configure.ac
145 ++++ b/doc/configure.ac
146 +@@ -1,8 +1,8 @@
147 + ## Process this file with autoconf to produce a configure script.
148 + AC_PREREQ(2.61)
149 +-AC_INIT(Doxyfile.in)
150 ++AC_INIT(libxspf, 1.2.0)
151 + AC_CONFIG_AUX_DIR([../build-aux])
152 +-AM_INIT_AUTOMAKE(libxspf-doc, 1.2.0)
153 ++AM_INIT_AUTOMAKE
154 +
155 +
156 + ## Doxygen
157 +@@ -30,7 +30,6 @@
158 + fi
159 + AC_SUBST(GENERATE_HTMLHELP)
160 + AC_SUBST(QHG_LOCATION)
161 +-AC_SUBST(srcdir, [${ac_abs_confdir}])
162 +
163 +
164 + AC_CONFIG_FILES([
165 +--- a/doc/Makefile.am
166 ++++ b/doc/Makefile.am
167 +@@ -26,7 +26,7 @@
168 + ## Install doc files
169 + install-data-local:
170 + $(MKDIR_P) "$(DESTDIR)$(docdir)/html" ## Didn't work with installdirs-local
171 +- $(INSTALL_DATA) html/*.{css,gif,html,png} "$(DESTDIR)$(docdir)/html/"
172 ++ $(INSTALL_DATA) html/*.{css,html,png} "$(DESTDIR)$(docdir)/html/"
173 + $(INSTALL_DATA) *.qch "$(DESTDIR)$(docdir)/"
174 +
175 +
176 +--- a/Makefile.am
177 ++++ b/Makefile.am
178 +@@ -1,8 +1,10 @@
179 + ## Process this file with automake to produce Makefile.in
180 +-AUTOMAKE_OPTIONS = 1.10.1 gnu dist-zip dist-bzip2 dist-lzma subdir-objects
181 ++AUTOMAKE_OPTIONS = 1.10.1 gnu dist-zip dist-bzip2 subdir-objects
182 +
183 + ACLOCAL_AMFLAGS = -I m4
184 +
185 ++AM_CPPFLAGS = -I$(top_srcdir)/include
186 ++
187 + if GENERATE_DOC
188 + SUBDIRS = \
189 + . \
190 +@@ -39,9 +41,10 @@
191 + endif
192 +
193 +
194 +-libxspf_la_CFLAGS = @URIPARSER_CFLAGS@
195 ++libxspf_la_CFLAGS = $(URIPARSER_CFLAGS) $(EXPAT_CFLAGS)
196 ++libxspf_la_LIBADD = $(URIPARSER_LIBS) $(EXPAT_LIBS)
197 +
198 +-libxspf_la_LDFLAGS = @URIPARSER_LIBS@ -version-info 4:1:0
199 ++libxspf_la_LDFLAGS = -version-info 4:1:0
200 +
201 + libxspf_la_SOURCES = \
202 + src/XspfChunkCallback.cpp \
203 +@@ -146,11 +149,9 @@
204 + if XSPF_TEST_ENABLED
205 + test_xspf_test_CFLAGS = @CPPTEST_CFLAGS@
206 +
207 +-test_xspf_test_LDFLAGS = @CPPTEST_LIBS@
208 +-
209 +-test_xspf_test_LDADD = libxspf.la
210 ++test_xspf_test_LDADD = libxspf.la @CPPTEST_LIBS@
211 +
212 +-test_xspf_test_CPPFLAGS = -DXSPF_SRCDIR=\"${srcdir}\"
213 ++test_xspf_test_CPPFLAGS = -DXSPF_SRCDIR=\"${srcdir}\" -I$(top_srcdir)/include
214 +
215 + test_xspf_test_SOURCES = \
216 + test/ProjectOpus/ProjectOpusSuite.cpp \
217
218 diff --git a/media-libs/libxspf/libxspf-1.2.0-r1.ebuild b/media-libs/libxspf/libxspf-1.2.0-r1.ebuild
219 new file mode 100644
220 index 00000000000..7912dd3d9ca
221 --- /dev/null
222 +++ b/media-libs/libxspf/libxspf-1.2.0-r1.ebuild
223 @@ -0,0 +1,46 @@
224 +# Copyright 1999-2020 Gentoo Authors
225 +# Distributed under the terms of the GNU General Public License v2
226 +
227 +EAPI=7
228 +
229 +inherit autotools
230 +
231 +DESCRIPTION="Playlist handling library"
232 +HOMEPAGE="http://libspiff.sourceforge.net/"
233 +SRC_URI="mirror://sourceforge/libspiff/${P}.tar.bz2"
234 +
235 +LICENSE="BSD LGPL-2.1"
236 +SLOT="0"
237 +KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x86-solaris"
238 +IUSE="test"
239 +RESTRICT="!test? ( test )"
240 +
241 +RDEPEND="
242 + >=dev-libs/expat-2
243 + >=dev-libs/uriparser-0.7.5"
244 +DEPEND="${RDEPEND}
245 + test? ( >=dev-util/cpptest-1.1 )"
246 +BDEPEND="virtual/pkgconfig"
247 +
248 +PATCHES=(
249 + "${FILESDIR}"/${P}-gcc44.patch
250 + "${FILESDIR}"/${P}-gcc47.patch
251 + "${FILESDIR}"/${P}-autotools.patch
252 +)
253 +
254 +src_prepare() {
255 + default
256 + eautoreconf
257 +}
258 +
259 +src_configure() {
260 + econf \
261 + --disable-doc \
262 + --disable-static \
263 + $(use_enable test)
264 +}
265 +
266 +src_install() {
267 + default
268 + find "${ED}" -name '*.la' -delete || die
269 +}