# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=6
-inherit autotools eutils flag-o-matic multilib-minimal toolchain-funcs
+EAPI=7
+inherit autotools 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"
+SRC_URI="mirror://sourceforge/cunit/${MY_P}.tar.bz2"
LICENSE="LGPL-2"
SLOT="0"
RDEPEND="ncurses? ( >=sys-libs/ncurses-5.9-r3:0=[${MULTILIB_USEDEP}] )"
DEPEND="${RDEPEND}"
+BDEPEND=""
-S=${WORKDIR}/${MY_P}
-
-DOCS=( AUTHORS NEWS README ChangeLog )
+S="${WORKDIR}/${MY_P}"
src_prepare() {
default
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
+
+ mv configure.{in,ac} || die
eautoreconf
append-cppflags -D_BSD_SOURCE
multilib_src_install_all() {
einstalldocs
- prune_libtool_files
+ find "${D}" -name '*.la' -type f -delete || die
}