diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-libs/check |
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-libs/check')
-rw-r--r-- | dev-libs/check/Manifest | 12 | ||||
-rw-r--r-- | dev-libs/check/check-0.10.0-r1.ebuild | 63 | ||||
-rw-r--r-- | dev-libs/check/check-0.10.0-r2.ebuild | 59 | ||||
-rw-r--r-- | dev-libs/check/check-0.11.0.ebuild | 62 | ||||
-rw-r--r-- | dev-libs/check/check-0.9.11.ebuild | 54 | ||||
-rw-r--r-- | dev-libs/check/files/check-0.9.10-AM_PATH_CHECK.patch | 33 | ||||
-rw-r--r-- | dev-libs/check/metadata.xml | 11 |
7 files changed, 294 insertions, 0 deletions
diff --git a/dev-libs/check/Manifest b/dev-libs/check/Manifest new file mode 100644 index 000000000000..335fa66589b1 --- /dev/null +++ b/dev-libs/check/Manifest @@ -0,0 +1,12 @@ +AUX check-0.9.10-AM_PATH_CHECK.patch 1287 SHA256 7da055a54dfdb5cb7f3d413d05e1561163422f72191ad52b6a5f84c1833a9177 SHA512 c8c4d667032b62ddc49dee04034a9f6007a13795540b55088df49037d0aa238e0685eaf2b57cd16e6df3ef1e3fc3714a90cf3e40a6972f8c6b164b775aa53c73 WHIRLPOOL 1b6f02cb93139f3c43bf7e61542834e71c3ef7eacb8b52945d4203591a0c43e597686c90feacc4250f734817a3f87cd50fde96b0041d321a02a90b940acb6052 +DIST check-0.10.0-github.tar.gz 257887 SHA256 38daf46cc8bf9081d63970b6ea371e8462beb5e77c03443f275cf4b10ac3a0c2 SHA512 d4a5881e07c9285a5ca4eff6f63172b19c968bab3cd5cfc06c2be54fd25ef71d63b0bd6b425c7af5cfe89d7bc3fae17e56b8648cad1db58a9972e6de1b6fd96f WHIRLPOOL f254b3cd77db9735388f482aaf0d93be24a6bbea08558632d28eeb9d0573ea73ef4d9c36b2e0571fa7c938e288d8261a51dede5bb0ccd8a2671f5788512a230a +DIST check-0.10.0.tar.gz 769119 SHA256 f5f50766aa6f8fe5a2df752666ca01a950add45079aa06416b83765b1cf71052 SHA512 82103a98382c41cf16f172ded66c0399d3da6eceb6728aab11120c028e8796f6d545a98dc4aa5f76ee68c0bfd1f842a4dd371f5d670c8ba84ce4209812bf1ac5 WHIRLPOOL d3399a2500a4a1f6fa8865fe75af67e98a22587edd2525d144f4f403dd313cc59b7622cd77cfd885b9e3dfd737e2bef5366d28062b2975c882ffac6253b02b29 +DIST check-0.11.0-github.tar.gz 275579 SHA256 df18bb72ba31eed2e06c21dd97402174500a211645e4b3748e9e277551acc97d SHA512 829adee2a5793dda6ac88162e355268019dd82e7a8ad95f1287bd262c3a7764425fba6a8347f1aeebdad642a972043b70aa59d54c87b3c46e1b5b569290dc359 WHIRLPOOL a37225f70a27bf78e6d6d1eb27596f9778ef809aaee834d0a75de407daa160d8c98ab6aaebc98fa18dddf332a0d110faff073c62dc37f037ed7923ea6507b563 +DIST check-0.9.11.tar.gz 691146 SHA256 ea4e8c7ffb00bb4ffb3f59f11744a71f1cc4212c79f3083c7d9a4b0953976936 SHA512 10883709463b76f6650197db989c348d9d07ccaa2cacc0bd6bd177bbcc1e9e0d88746c2e110e620ab18c23cb5f41b95797d60d77de279af1a810a42b355b742e WHIRLPOOL 9559104a68b2f1215e9b00affb4711a69bf3e4e94e0ec894de66f0f77b5637187bb183560e29d0a889ff04d0e07f2785fc407128dee1ba74d584ce9a0ff9a3b1 +EBUILD check-0.10.0-r1.ebuild 1798 SHA256 5bc1f705487f976c74d5f867e176770969079fa58caa08ae9bdf9efce0d3e8ed SHA512 ab0c17c8cebc36734e0fc59a1fc9c8683bb383bedafe1891beb6cb38d5ff816143c1ef2ecc7b5308ba516e23b416982eea880780eae7028a24e16a7790e16017 WHIRLPOOL f2d748a489c69098a51e1b7916a03e92c52ea22e49de3d8d52580d3bf5ade6704b7a9a0cc4701955fc449edc30f33a86ece7eef6153bd6a02617c252b9d7b271 +EBUILD check-0.10.0-r2.ebuild 1683 SHA256 c850cb06502e7475295bd63e11912b46ec5c753dc3b745900d8aaa1c7bf1e584 SHA512 6e4671a3ad2a6ea6367b61ed0b935771007d12c09d1d47f95f2aaebfcf984f4823c252f8751a64df05093f87df4bbba29e0654a44e5dbd64f80a447acaa8e59b WHIRLPOOL 9ebb12d84a1500c6473fe71b2ba973d87be94dc866b8214b071c910e88a48fa47c524862670b44e7e2423062d2cc6e1692d01f6a2832c33a0dae8624c437c089 +EBUILD check-0.11.0.ebuild 1693 SHA256 0c84723c0be1ef56f334f6e7e5b10bd96b67d09a3fa3bd4e7ab983f3e6715fd1 SHA512 cbb7df0b56cb70d2f50333419fec040d49aebf08c2ed60e247d26305e66b6bae15f969faa848da0cd5c428bcb7cd68d0ee84182ddbb3424e445d71cb7ef74414 WHIRLPOOL 418b8dc03cc128d0923a3ffea1796e9b9450478c98d1c91992d6bcf63405bb59b721e3eaf3ef12a2b0b299459c8dc1ddbf51d98908cc6c7fe5c79f089b5f6ee4 +EBUILD check-0.9.11.ebuild 1392 SHA256 f8298ab896666739b2ddd2139ffd2ee05e7d04007f94ecb8b6d389052fdb8d38 SHA512 22f33ad3999c3ce2d9279f214e15c711ec0ce01f50005d6beb5bb6662d04f114a2faa8d295ba31c173755262e10251e6b064fc3815abf299f5153fa0e84304d8 WHIRLPOOL 1bdd6565f3dc0bb7e3e9cffee025c90d155a84e466011e8205ccdc548e25c204e3bb76376397648d1fd9832b62e7440d921ca7affb7123ec8c52593556d748d3 +MISC ChangeLog 3979 SHA256 1202da3ac2cb2736da6f82a36d0b9fee00a8ee7f96879056d446d901c841465b SHA512 514910be30832ddfb3f43f0cd562093a560a2a7d883d6e7c4ae20f51ba875728eb3f75d5cbd3ebfdbd525037b7a3769574f80b4bee046218e2fe63656f036864 WHIRLPOOL 7a362d4bf332c192aa1aa7198c9b8530f65db727a77cc8c872b9ebbb0bf3de8a41b7601e9aceaea2ff358c391cd5047a3e1af8476100949a228a7d7b8a918199 +MISC ChangeLog-2015 11960 SHA256 b3e62fc21ea12728d11cad15cbba7ee0365015c94fbdbdc161929f0dfbe31069 SHA512 42263c3cd16cdee1bf65d09691d1c9b300f5c921cf184ee58d7b2313df5dd03d9070b0d84951e8d66d52b789b1d0b1755cd188694918f2ae99a4e165912fd190 WHIRLPOOL 2a8386fd20378b4acc2a5ac79bbcc479dfcbbf1286983617c1a17a0ad07824eb404058bd5c307a0447b9a100757eb73278f4843bd637b531a3db48978854241f +MISC metadata.xml 363 SHA256 1077af075555b764c1bc2116d1256aafae1fa80ceb948e720f381aa41bddd75f SHA512 b025f88785c7d2f4eb01ccc5f9730c2ef81171fc94a01802f7832088eb20aae42aff7cf4ecd89c3de6e87cf583f873fe5ed9dc4c7fab9f124ce3ebc8441ccfaa WHIRLPOOL ec41a0b44c37ed506bb68751a370efaf4f5df0272b2cb59cf8d6f4e4eca02a7b0e6722be55e5a56b0cc5cabfdb8cee7351e18f75294c06b575d4c0552d91a68c diff --git a/dev-libs/check/check-0.10.0-r1.ebuild b/dev-libs/check/check-0.10.0-r1.ebuild new file mode 100644 index 000000000000..33798f356d28 --- /dev/null +++ b/dev-libs/check/check-0.10.0-r1.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +AUTOTOOLS_PRUNE_LIBTOOL_FILES="all" + +inherit autotools autotools-multilib + +DESCRIPTION="A unit test framework for C" +HOMEPAGE="https://sourceforge.net/projects/check/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh ~sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris" +IUSE="static-libs subunit" + +RDEPEND="subunit? ( >=dev-python/subunit-0.0.10-r1[${MULTILIB_USEDEP}] )" +DEPEND="${RDEPEND} + sys-apps/texinfo + virtual/pkgconfig" + +pkg_setup() { + # See multilib_src_test(), disable sleep()-based tests because they + # just take a long time doing pretty much nothing. + export CPPFLAGS="-DTIMEOUT_TESTS_ENABLED=0 ${CPPFLAGS}" +} + +src_prepare() { + sed -i -e '/^docdir =/d' {.,doc}/Makefile.am \ + || die 'failed to unset docdir in Makefile.am' + + # fix out-of-sourcedir build having inconsistent check.h files, for + # example breaks USE=subunit. + rm src/check.h || die 'failed to remove src/check.h' + + eautoreconf +} + +src_configure() { + local myeconfargs=( + --disable-dependency-tracking + $(use_enable subunit) + --docdir="${EPREFIX}/usr/share/doc/${PF}" + ) + autotools-multilib_src_configure +} + +multilib_src_test() { + elog "-DTIMEOUT_TESTS_ENABLED=0 has been prepended to CPPFLAGS. To run the" + elog "entire testsuite for dev-libs/check, ensure that" + elog "-DTIMEOUT_TESTS_ENABLED=1 is in your CPPFLAGS." + default_src_test +} + +src_install() { + autotools-multilib_src_install + dodoc AUTHORS *ChangeLog* NEWS README THANKS TODO + + rm -f "${ED}/usr/share/doc/${PF}"/COPYING* || \ + die 'failed to remove COPYING files' +} diff --git a/dev-libs/check/check-0.10.0-r2.ebuild b/dev-libs/check/check-0.10.0-r2.ebuild new file mode 100644 index 000000000000..7bd022c8e059 --- /dev/null +++ b/dev-libs/check/check-0.10.0-r2.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +AUTOTOOLS_PRUNE_LIBTOOL_FILES="all" + +inherit autotools autotools-multilib + +DESCRIPTION="A unit test framework for C" +HOMEPAGE="https://libcheck.github.io/check/" +SRC_URI="https://github.com/lib${PN}/${PN}/archive/${PV}.tar.gz -> ${P}-github.tar.gz" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris" +IUSE="static-libs subunit" + +RDEPEND="subunit? ( >=dev-python/subunit-0.0.10-r1[${MULTILIB_USEDEP}] )" +DEPEND="${RDEPEND} + sys-apps/texinfo + virtual/pkgconfig" + +pkg_setup() { + # See multilib_src_test(), disable sleep()-based tests because they + # just take a long time doing pretty much nothing. + export CPPFLAGS="-DTIMEOUT_TESTS_ENABLED=0 ${CPPFLAGS}" +} + +src_prepare() { + sed -i -e '/^docdir =/d' {.,doc}/Makefile.am \ + || die 'failed to unset docdir in Makefile.am' + + eautoreconf +} + +src_configure() { + local myeconfargs=( + --disable-dependency-tracking + $(use_enable subunit) + --docdir="${EPREFIX}/usr/share/doc/${PF}" + ) + autotools-multilib_src_configure +} + +multilib_src_test() { + elog "-DTIMEOUT_TESTS_ENABLED=0 has been prepended to CPPFLAGS. To run the" + elog "entire testsuite for dev-libs/check, ensure that" + elog "-DTIMEOUT_TESTS_ENABLED=1 is in your CPPFLAGS." + default_src_test +} + +src_install() { + autotools-multilib_src_install + dodoc AUTHORS *ChangeLog* NEWS README THANKS TODO + + rm -f "${ED}/usr/share/doc/${PF}"/COPYING* || \ + die 'failed to remove COPYING files' +} diff --git a/dev-libs/check/check-0.11.0.ebuild b/dev-libs/check/check-0.11.0.ebuild new file mode 100644 index 000000000000..4a1f73cca3a6 --- /dev/null +++ b/dev-libs/check/check-0.11.0.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit autotools multilib-minimal + +DESCRIPTION="A unit test framework for C" +HOMEPAGE="https://libcheck.github.io/check/" +SRC_URI="https://github.com/lib${PN}/${PN}/archive/${PV}.tar.gz -> ${P}-github.tar.gz" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris" +IUSE="static-libs subunit" + +RDEPEND="subunit? ( >=dev-python/subunit-0.0.10-r1[${MULTILIB_USEDEP}] )" +DEPEND="${RDEPEND} + sys-apps/texinfo + virtual/pkgconfig" + +DOCS=( AUTHORS ChangeLog NEWS README.md THANKS TODO ) + +pkg_setup() { + # See multilib_src_test(), disable sleep()-based tests because they + # just take a long time doing pretty much nothing. + export CPPFLAGS="-DTIMEOUT_TESTS_ENABLED=0 ${CPPFLAGS}" +} + +src_prepare() { + default + + sed -i -e '/^docdir =/d' {.,doc}/Makefile.am \ + || die 'failed to unset docdir in Makefile.am' + + eautoreconf +} + +multilib_src_configure() { + local myeconfargs=( + --disable-dependency-tracking + $(use_enable subunit) + ) + ECONF_SOURCE="${S}" \ + econf "${myeconfargs[@]}" +} + +multilib_src_install_all() { + default + + rm -f "${ED}/usr/share/doc/${PF}"/COPYING* || \ + die 'failed to remove COPYING files' + + find "${ED}" \( -name "*.a" -o -name "*.la" \) -delete || die +} + +multilib_src_test() { + elog "-DTIMEOUT_TESTS_ENABLED=0 has been prepended to CPPFLAGS. To run the" + elog "entire testsuite for dev-libs/check, ensure that" + elog "-DTIMEOUT_TESTS_ENABLED=1 is in your CPPFLAGS." + default_src_test +} diff --git a/dev-libs/check/check-0.9.11.ebuild b/dev-libs/check/check-0.9.11.ebuild new file mode 100644 index 000000000000..b1e035273875 --- /dev/null +++ b/dev-libs/check/check-0.9.11.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=4 + +AUTOTOOLS_PRUNE_LIBTOOL_FILES="all" + +inherit autotools autotools-multilib eutils + +DESCRIPTION="A unit test framework for C" +HOMEPAGE="https://sourceforge.net/projects/check/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="alpha amd64 arm arm64 hppa ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris" +IUSE="static-libs subunit" + +DEPEND="subunit? ( dev-python/subunit ) + sys-apps/texinfo +" +RDEPEND="${DEPEND}" + +src_prepare() { + epatch \ + "${FILESDIR}"/${PN}-0.9.10-AM_PATH_CHECK.patch + + sed -i -e '/^docdir =/d' {.,doc}/Makefile.am || die + + # fix out-of-sourcedir build having inconsistent check.h files, for + # example breaks USE=subunit. + rm src/check.h || die + + # Fix automake warnings being treated as errors, bug #420373 + sed -i -e s/-Werror// configure.ac || die + + eautoreconf +} + +src_configure() { + local myeconfargs=( + --disable-dependency-tracking + $(use_enable subunit) + --docdir="${EPREFIX}"/usr/share/doc/${PF} + ) + autotools-multilib_src_configure +} + +src_install() { + autotools-multilib_src_install + dodoc AUTHORS *ChangeLog* NEWS README THANKS TODO + + rm -f "${ED}"/usr/share/doc/${PF}/COPYING* || die +} diff --git a/dev-libs/check/files/check-0.9.10-AM_PATH_CHECK.patch b/dev-libs/check/files/check-0.9.10-AM_PATH_CHECK.patch new file mode 100644 index 000000000000..a433549a3639 --- /dev/null +++ b/dev-libs/check/files/check-0.9.10-AM_PATH_CHECK.patch @@ -0,0 +1,33 @@ +Index: doc/example/tests/Makefile.am +=================================================================== +--- doc/example/tests/Makefile.am (revision 747) ++++ doc/example/tests/Makefile.am (working copy) +@@ -3,5 +3,5 @@ + TESTS = check_money + check_PROGRAMS = check_money + check_money_SOURCES = check_money.c $(top_builddir)/src/money.h +-check_money_CFLAGS = @CHECK_CFLAGS@ +-check_money_LDADD = $(top_builddir)/src/libmoney.la @CHECK_LIBS@ ++check_money_CFLAGS = $(CHECK_CFLAGS) ++check_money_LDADD = $(top_builddir)/src/libmoney.la $(CHECK_LIBS) +Index: doc/example/configure.ac +=================================================================== +--- doc/example/configure.ac (revision 747) ++++ doc/example/configure.ac (working copy) +@@ -20,12 +20,10 @@ + + # Checks for libraries. + +-# This macro is defined in check.m4 and tests if check.h and +-# libcheck.a are installed in your system. It sets CHECK_CFLAGS and +-# CHECK_LIBS accordingly. +-# AM_PATH_CHECK([MINIMUM-VERSION, +-# [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]]) +-AM_PATH_CHECK() ++# Use pkg-config instead of upstream-provided and possibly-broken ++# AM_PATH_CHECK. This command sets CHECK_CFLAGS and CHECK_LIBS ++# appropriately. ++PKG_CHECK_MODULES([CHECK], [check]) + + # Checks for header files. + AC_HEADER_STDC diff --git a/dev-libs/check/metadata.xml b/dev-libs/check/metadata.xml new file mode 100644 index 000000000000..47e04f841c0d --- /dev/null +++ b/dev-libs/check/metadata.xml @@ -0,0 +1,11 @@ +<?xml version='1.0' encoding='UTF-8'?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <use> + <flag name="subunit">Enable support for the subunit unit test protocol</flag> + </use> + <upstream> + <remote-id type="sourceforge">check</remote-id> + <remote-id type="github">libcheck/check</remote-id> + </upstream> +</pkgmetadata> |