diff options
Diffstat (limited to 'dev-util/cunit')
-rw-r--r-- | dev-util/cunit/Manifest | 5 | ||||
-rw-r--r-- | dev-util/cunit/cunit-2.1_p2-r1.ebuild | 54 | ||||
-rw-r--r-- | dev-util/cunit/cunit-2.1_p3.ebuild | 56 | ||||
-rw-r--r-- | dev-util/cunit/metadata.xml | 8 |
4 files changed, 123 insertions, 0 deletions
diff --git a/dev-util/cunit/Manifest b/dev-util/cunit/Manifest new file mode 100644 index 000000000000..0cd59e6dff41 --- /dev/null +++ b/dev-util/cunit/Manifest @@ -0,0 +1,5 @@ +DIST CUnit-2.1-2-src.tar.bz2 349037 BLAKE2B 51122ae79f15ebaf3b4a4f46acc8f1e08e918097d1308409b02e722e6eb7e0147d14461dd834dfbdb95ad8bc230076c05b3700348781e2a9b31bf29898c61435 SHA512 c0af37b9f3a00fd7bb971f33e94373699d0380c28fad12f6db860739990a9ffffe0bb0a71c0e3531529b9952128c11248b8f365875d0315c16637a0b7e91642d +DIST CUnit-2.1-3.tar.bz2 514500 BLAKE2B 919ff3345c06de44662deb3c43700dc14f3c6b0b1557e162f1f527b782874082bc866b3bbc3fd18869b975d7a0a6b4730eab87ed36847249ff8fa5cbede27797 SHA512 547b417109332446dfab8fda17bf4ccd2da841dc93f824dc90a20635bcf1fb80fb2176500d8a0906940f3f3d3e2f77b2d70a71090c9ab84ad9af43f3582bc487 +EBUILD cunit-2.1_p2-r1.ebuild 1373 BLAKE2B df6b3baa7a39d9db5f8dcab29a3956457d14b2d3d03374a93bacb6efe5ff8ab683e92c922155cbcb6a4e56830efd5afa5be69b19a59c728dd5b49a840d9788a0 SHA512 c166a390e38e30e9416cf287c8f29d94e777f65e3375c46056b58f21aba0f923608b7b875100c5cdf175eed07d9d2deb5e0f2ac4364fc49480e612708b5ee7d4 +EBUILD cunit-2.1_p3.ebuild 1384 BLAKE2B 7cbcf32948969a5669c8f17cbf428f19f848bfac875a9230cfa87f0dc703ba2547e97c4451a982320f7c6e0995d221869c076a1863a79bcceceb4e5e81b459f5 SHA512 62a6c3d04d65a41fdb3f9546c0455666411674548d63335be1e427f56471647dc5e956d26ca7116370dca804ddf8dc1e6fc301c7c40017a36c644a324805428a +MISC metadata.xml 242 BLAKE2B c9bc0f1e188dab4f0b4f1027441888c15919ad52adb639905a71471645438c94957a45ec043038fc19a829a6ec6b236eeb026560728dc231e5aeb484a467177a SHA512 3171a680f18023cbeeb73331a33942ddf076e0b8abc2c40284e4a4cb1803ad7264f8e38ffaf182d1f38ba28ad60e65a0ddf96c66a60e0f9a935aa941c49df87d diff --git a/dev-util/cunit/cunit-2.1_p2-r1.ebuild b/dev-util/cunit/cunit-2.1_p2-r1.ebuild new file mode 100644 index 000000000000..4b8d7f86d7b4 --- /dev/null +++ b/dev-util/cunit/cunit-2.1_p2-r1.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +inherit autotools eutils flag-o-matic multilib-minimal toolchain-funcs + +MY_PN='CUnit' +MY_PV="${PV/_p*}-2" +MY_P="${MY_PN}-${MY_PV}" + +DESCRIPTION="CUnit - C Unit Test Framework" +SRC_URI="mirror://sourceforge/cunit/${MY_P}-src.tar.bz2" +HOMEPAGE="http://cunit.sourceforge.net" + +SLOT="0" +LICENSE="LGPL-2" +KEYWORDS="alpha amd64 arm arm64 hppa ia64 ~mips ppc ppc64 ~s390 ~sh sparc x86 ~amd64-fbsd ~amd64-linux ~x86-linux ~ppc-macos" +IUSE="ncurses static-libs" + +RDEPEND="ncurses? ( >=sys-libs/ncurses-5.9-r3[${MULTILIB_USEDEP}] )" +DEPEND="${RDEPEND}" + +S=${WORKDIR}/${MY_P} + +DOCS=( AUTHORS NEWS README ChangeLog ) + +src_prepare() { + sed -e "/^docdir/d" -i doc/Makefile.am || die + sed -e '/^dochdrdir/{s:$(prefix)/doc/@PACKAGE@:$(docdir):}' \ + -i doc/headers/Makefile.am || die + sed -e "s/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/" -i configure.in || die + eautoreconf + + append-cppflags -D_BSD_SOURCE + + # unable to find headers otherwise + multilib_copy_sources +} + +multilib_src_configure() { + local LIBS=${LIBS} + append-libs $($(tc-getPKG_CONFIG) --libs ncurses) + + econf \ + --docdir="${EPREFIX}"/usr/share/doc/${PF} \ + $(use_enable static-libs static) \ + --disable-debug \ + $(use_enable ncurses curses) +} + +multilib_src_install_all() { + einstalldocs + prune_libtool_files +} diff --git a/dev-util/cunit/cunit-2.1_p3.ebuild b/dev-util/cunit/cunit-2.1_p3.ebuild new file mode 100644 index 000000000000..297393113af6 --- /dev/null +++ b/dev-util/cunit/cunit-2.1_p3.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit autotools eutils flag-o-matic multilib-minimal toolchain-funcs + +MY_PN="CUnit" +MY_PV="${PV/_p*}-3" +MY_P="${MY_PN}-${MY_PV}" + +DESCRIPTION="C Unit Test Framework" +SRC_URI="mirror://sourceforge/cunit/${MY_P}.tar.bz2" +HOMEPAGE="http://cunit.sourceforge.net" + +LICENSE="LGPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~amd64-linux ~x86-linux ~ppc-macos" +IUSE="ncurses static-libs" + +RDEPEND="ncurses? ( >=sys-libs/ncurses-5.9-r3:0=[${MULTILIB_USEDEP}] )" +DEPEND="${RDEPEND}" + +S=${WORKDIR}/${MY_P} + +DOCS=( AUTHORS NEWS README ChangeLog ) + +src_prepare() { + default + + sed -e "/^docdir/d" -i doc/Makefile.am || die + sed -e '/^dochdrdir/{s:$(prefix)/doc/@PACKAGE@:$(docdir):}' \ + -i doc/headers/Makefile.am || die + sed -e "s/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/" -i configure.in || die + eautoreconf + + append-cppflags -D_BSD_SOURCE + + # unable to find headers otherwise + multilib_copy_sources +} + +multilib_src_configure() { + local LIBS=${LIBS} + append-libs $($(tc-getPKG_CONFIG) --libs ncurses) + + econf \ + --docdir="${EPREFIX}"/usr/share/doc/${PF} \ + $(use_enable static-libs static) \ + --disable-debug \ + $(use_enable ncurses curses) +} + +multilib_src_install_all() { + einstalldocs + prune_libtool_files +} diff --git a/dev-util/cunit/metadata.xml b/dev-util/cunit/metadata.xml new file mode 100644 index 000000000000..4d2f287374f8 --- /dev/null +++ b/dev-util/cunit/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <!-- maintainer-needed --> + <upstream> + <remote-id type="sourceforge">cunit</remote-id> + </upstream> +</pkgmetadata> |