diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
commit | 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch) | |
tree | 7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /dev-util/cunit/cunit-2.1_p3.ebuild | |
parent | 30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff) |
gentoo resync : 14.07.2018
Diffstat (limited to 'dev-util/cunit/cunit-2.1_p3.ebuild')
-rw-r--r-- | dev-util/cunit/cunit-2.1_p3.ebuild | 56 |
1 files changed, 56 insertions, 0 deletions
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 +} |