Gentoo Archives: gentoo-commits

From: Joonas Niilola <juippis@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/check/, dev-libs/check/files/
Date: Sun, 02 Feb 2020 08:08:22
Message-Id: 1580630883.37cad266778683a94016f0f77877464f248af6c4.juippis@gentoo
1 commit: 37cad266778683a94016f0f77877464f248af6c4
2 Author: Joonas Niilola <juippis <AT> gentoo <DOT> org>
3 AuthorDate: Sun Feb 2 07:55:23 2020 +0000
4 Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
5 CommitDate: Sun Feb 2 08:08:03 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=37cad266
7
8 dev-libs/check: bump to 0.14.0
9
10 Closes: https://bugs.gentoo.org/603234
11 Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
12
13 dev-libs/check/Manifest | 1 +
14 dev-libs/check/check-0.14.0.ebuild | 66 +++++++++++++++++++++++
15 dev-libs/check/files/check-0.14-xfail-tests.patch | 13 +++++
16 3 files changed, 80 insertions(+)
17
18 diff --git a/dev-libs/check/Manifest b/dev-libs/check/Manifest
19 index 1a02283e0aa..9171a0811f9 100644
20 --- a/dev-libs/check/Manifest
21 +++ b/dev-libs/check/Manifest
22 @@ -1,3 +1,4 @@
23 DIST check-0.10.0.tar.gz 769119 BLAKE2B d5e256bef4aa010322844ce748e620ce884658d74b14e1ea5b0e1bbd4565ef7b0cb7b86d315a36f7a5e4d225e40f242ff9730790bd55fc036757b4296396d153 SHA512 82103a98382c41cf16f172ded66c0399d3da6eceb6728aab11120c028e8796f6d545a98dc4aa5f76ee68c0bfd1f842a4dd371f5d670c8ba84ce4209812bf1ac5
24 DIST check-0.12.0-github.tar.gz 281127 BLAKE2B d7dc89c10022594a37e9a4bc6b9fe1e8f355af864a5012c292cc3f1152e9e3e9be01fa34b39e5168f65650e540f36dbc8195952908a871d1c111283429f2f538 SHA512 f7b6452b69f999a90e86a8582d980c0c1b74ba5629ee34455724463ba62bfe3501ad0415aa771170f5c638a7a253f123bf87cbef25aadc6569a7a3a4d10fce90
25 DIST check-0.13.0.tar.gz 301386 BLAKE2B fbc79ad9f0bacd7c7461cde631a499d92e004233b5d35ba35cb0791195362e12fc21ca059e2019280cbf256215528af239de988755e0183cb6e332a5b145624e SHA512 7943021c5bc3b5ca7bc552f6fe1287e384724d69e5bb128d58256692e810b194e506fc1b65ea4fed27d065e2176e7371483e918beb48125abfe3b6f1ca68eb8f
26 +DIST check-0.14.0.tar.gz 303471 BLAKE2B d602bb56d205eccf06e4177e3f6d3f7270c3a0cba0e1d397480f0409a916ec4118c48340ad6f6a8955ea30d9e22252ff8381a687d000c3f8e62828cf656f1245 SHA512 54ad175c00cf0c73b4386cf6b3d6a404a5da4f57897d099e772f148f410108c44767c3266a940113be73a6861b3f3ee1706c558cc71ec51df99687f19f3a3bb4
27
28 diff --git a/dev-libs/check/check-0.14.0.ebuild b/dev-libs/check/check-0.14.0.ebuild
29 new file mode 100644
30 index 00000000000..c1de319b23d
31 --- /dev/null
32 +++ b/dev-libs/check/check-0.14.0.ebuild
33 @@ -0,0 +1,66 @@
34 +# Copyright 1999-2020 Gentoo Authors
35 +# Distributed under the terms of the GNU General Public License v2
36 +
37 +EAPI=7
38 +
39 +inherit autotools multilib-minimal
40 +
41 +DESCRIPTION="A unit test framework for C"
42 +HOMEPAGE="https://libcheck.github.io/check/"
43 +SRC_URI="https://github.com/lib${PN}/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
44 +
45 +LICENSE="LGPL-2.1+"
46 +SLOT="0"
47 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
48 +IUSE="doc static-libs subunit test"
49 +
50 +RESTRICT="!test? ( test )"
51 +
52 +RDEPEND="subunit? ( dev-python/subunit[${MULTILIB_USEDEP}] )"
53 +DEPEND="${RDEPEND}
54 + sys-apps/texinfo"
55 +BDEPEND="doc? ( app-doc/doxygen )"
56 +
57 +PATCHES=(
58 + "${FILESDIR}"/check-0.12.0-fp.patch
59 + "${FILESDIR}"/check-0.14-xfail-tests.patch
60 +)
61 +
62 +src_prepare() {
63 + default
64 + eautoreconf
65 +}
66 +
67 +multilib_src_configure() {
68 + local myeconfargs=(
69 + --disable-dependency-tracking
70 + $(use_enable doc build-docs)
71 + $(use_enable subunit)
72 + $(use_enable test timeout-tests)
73 + )
74 + ECONF_SOURCE="${S}" econf "${myeconfargs[@]}"
75 +}
76 +
77 +multilib_src_compile() {
78 + default
79 +}
80 +
81 +src_compile() {
82 + if use doc; then
83 + cd doc/ || die "Failed to switch directories."
84 + doxygen "." || die "Failed to run doxygen to generate docs."
85 + fi
86 +}
87 +
88 +multilib_src_test() {
89 + # Note: test-phase takes a long time.
90 + emake -k check
91 +}
92 +
93 +multilib_src_install_all() {
94 + use doc && local HTML_DOCS=( doc/html/. )
95 + default
96 +
97 + rm -r "${ED}/usr/share/doc/check/" || die "Failed to remove COPYING* files"
98 + find "${ED}" \( -name "*.a" -o -name "*.la" \) -delete || die
99 +}
100
101 diff --git a/dev-libs/check/files/check-0.14-xfail-tests.patch b/dev-libs/check/files/check-0.14-xfail-tests.patch
102 new file mode 100644
103 index 00000000000..ea2ffe10aa4
104 --- /dev/null
105 +++ b/dev-libs/check/files/check-0.14-xfail-tests.patch
106 @@ -0,0 +1,13 @@
107 +--- a/tests/Makefile.am 2020-02-02 09:33:17.807391927 +0200
108 ++++ b/tests/Makefile.am.1 2020-02-02 09:34:01.267166205 +0200
109 +@@ -19,6 +19,10 @@
110 + # XFAIL_TESTS = \
111 + # check_thread_stress
112 +
113 ++XFAIL_TESTS = \
114 ++ check_check_export \
115 ++ check_check
116 ++
117 + noinst_PROGRAMS = \
118 + check_check_export \
119 + check_check \