1 |
commit: d896f2aa2e96bf9f86237af9ae802f52bb2a444b |
2 |
Author: Haelwenn (lanodan) Monnier <contact <AT> hacktivis <DOT> me> |
3 |
AuthorDate: Tue Jun 29 07:40:13 2021 +0000 |
4 |
Commit: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jun 29 14:42:28 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d896f2aa |
7 |
|
8 |
media-libs/raptor: make multilib |
9 |
|
10 |
Required for multilib on media-libs/liblrdf |
11 |
which itself is required by >=media-plugins/gst-plugins-ladspa-1.18.4 |
12 |
|
13 |
Signed-off-by: Haelwenn (lanodan) Monnier <contact <AT> hacktivis.me> |
14 |
Closes: https://github.com/gentoo/gentoo/pull/21468/commits/aa373bca83f261d22bf637225e31a1703a5a74a1 |
15 |
Signed-off-by: Miroslav Šulc <fordfrog <AT> gentoo.org> |
16 |
|
17 |
media-libs/raptor/raptor-2.0.15-r4.ebuild | 76 +++++++++++++++++++++++++++++++ |
18 |
1 file changed, 76 insertions(+) |
19 |
|
20 |
diff --git a/media-libs/raptor/raptor-2.0.15-r4.ebuild b/media-libs/raptor/raptor-2.0.15-r4.ebuild |
21 |
new file mode 100644 |
22 |
index 00000000000..f32b2698b01 |
23 |
--- /dev/null |
24 |
+++ b/media-libs/raptor/raptor-2.0.15-r4.ebuild |
25 |
@@ -0,0 +1,76 @@ |
26 |
+# Copyright 1999-2021 Gentoo Authors |
27 |
+# Distributed under the terms of the GNU General Public License v2 |
28 |
+ |
29 |
+EAPI=7 |
30 |
+ |
31 |
+inherit autotools libtool multilib-minimal |
32 |
+ |
33 |
+MY_PN=${PN}2 |
34 |
+MY_P=${MY_PN}-${PV} |
35 |
+ |
36 |
+DESCRIPTION="The RDF Parser Toolkit" |
37 |
+HOMEPAGE="http://librdf.org/raptor/" |
38 |
+SRC_URI="http://download.librdf.org/source/${MY_P}.tar.gz" |
39 |
+ |
40 |
+LICENSE="Apache-2.0 GPL-2 LGPL-2.1" |
41 |
+SLOT="2" |
42 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
43 |
+IUSE="+curl debug json static-libs unicode" |
44 |
+ |
45 |
+DEPEND=" |
46 |
+ dev-libs/libxml2[${MULTILIB_USEDEP}] |
47 |
+ dev-libs/libxslt[${MULTILIB_USEDEP}] |
48 |
+ curl? ( net-misc/curl[${MULTILIB_USEDEP}] ) |
49 |
+ json? ( dev-libs/yajl[${MULTILIB_USEDEP}] ) |
50 |
+ unicode? ( dev-libs/icu:=[${MULTILIB_USEDEP}] ) |
51 |
+" |
52 |
+RDEPEND="${DEPEND} |
53 |
+ !media-libs/raptor:0 |
54 |
+" |
55 |
+BDEPEND=" |
56 |
+ >=sys-devel/bison-3 |
57 |
+ >=sys-devel/flex-2.5.36 |
58 |
+ virtual/pkgconfig |
59 |
+" |
60 |
+ |
61 |
+S="${WORKDIR}/${MY_P}" |
62 |
+ |
63 |
+DOCS=( AUTHORS ChangeLog NEWS NOTICE README ) |
64 |
+HTML_DOCS=( {NEWS,README,RELEASE,UPGRADING}.html ) |
65 |
+ |
66 |
+PATCHES=( |
67 |
+ "${FILESDIR}/${P}-heap-overflow.patch" |
68 |
+ "${FILESDIR}/${P}-dont_use_curl-config.patch" #552474 |
69 |
+ "${FILESDIR}/0001-CVE-2020-25713-raptor2-malformed-input-file-can-lead.patch" |
70 |
+) |
71 |
+ |
72 |
+src_prepare() { |
73 |
+ default |
74 |
+ eautoreconf #552474 |
75 |
+ elibtoolize # Keep this for ~*-fbsd |
76 |
+ multilib_copy_sources |
77 |
+} |
78 |
+ |
79 |
+multilib_src_configure() { |
80 |
+ # FIXME: It should be possible to use net-nntp/inn for libinn.h and -linn! |
81 |
+ |
82 |
+ local myeconfargs=( |
83 |
+ --with-html-dir="${EPREFIX}"/usr/share/gtk-doc/html |
84 |
+ $(usex curl --with-www=curl --with-www=xml) |
85 |
+ $(use_enable debug) |
86 |
+ $(use_with json yajl) |
87 |
+ $(use_enable static-libs static) |
88 |
+ $(usex unicode --with-icu-config="${EPREFIX}"/usr/bin/icu-config '') |
89 |
+ ) |
90 |
+ |
91 |
+ econf "${myeconfargs[@]}" |
92 |
+} |
93 |
+ |
94 |
+multilib_src_test() { |
95 |
+ emake -j1 test |
96 |
+} |
97 |
+ |
98 |
+multilib_src_install() { |
99 |
+ default |
100 |
+ find "${ED}" -name '*.la' -delete || die |
101 |
+} |