From 08f339ccb13631e357bee13cdeca1b8b55f13867 Mon Sep 17 00:00:00 2001 From: David Seifert Date: Sat, 2 Dec 2017 17:11:22 +0100 Subject: sys-apps/ccs-tools: Port to EAPI 6 Package-Manager: Portage-2.3.16, Repoman-2.3.6 --- .../ccs-tools/ccs-tools-1.8.3_p20130214.ebuild | 48 +++++++++++++--------- 1 file changed, 29 insertions(+), 19 deletions(-) (limited to 'sys-apps/ccs-tools/ccs-tools-1.8.3_p20130214.ebuild') diff --git a/sys-apps/ccs-tools/ccs-tools-1.8.3_p20130214.ebuild b/sys-apps/ccs-tools/ccs-tools-1.8.3_p20130214.ebuild index d39fc9d54c65..4e3640cdef0a 100644 --- a/sys-apps/ccs-tools/ccs-tools-1.8.3_p20130214.ebuild +++ b/sys-apps/ccs-tools/ccs-tools-1.8.3_p20130214.ebuild @@ -1,10 +1,12 @@ -# Copyright 1999-2013 Gentoo Foundation +# Copyright 1999-2017 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -EAPI=3 -inherit eutils multilib toolchain-funcs +EAPI=6 + +inherit flag-o-matic toolchain-funcs MY_P="${P/_p/-}" + DESCRIPTION="TOMOYO Linux tools" HOMEPAGE="http://tomoyo.sourceforge.jp/" SRC_URI="mirror://sourceforge.jp/tomoyo/49693/${MY_P}.tar.gz" @@ -13,35 +15,43 @@ LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="" - RESTRICT="test" -DEPEND="sys-libs/ncurses - sys-libs/readline" -RDEPEND="${DEPEND} +CDEPEND=" + sys-libs/ncurses:0= + sys-libs/readline:0=" +RDEPEND="${CDEPEND} sys-apps/which" +DEPEND="${CDEPEND} + virtual/pkgconfig" -S="${WORKDIR}/ccs-tools" +S="${WORKDIR}/${PN}" +PATCHES=( + "${FILESDIR}"/${P}-warnings.patch + "${FILESDIR}"/${P}-ncurses-underlinking.patch + "${FILESDIR}"/${P}-GNU_SOURCE.patch +) src_prepare() { - epatch "${FILESDIR}"/${P}-warnings.patch + default sed -i \ - -e "s:gcc:$(tc-getCC):" \ - -e "s/\(CFLAGS.*:=\).*/\1 ${CFLAGS}/" \ -e "s:/usr/lib:/usr/$(get_libdir):g" \ -e "s:= /:= ${EPREFIX}/:g" \ Include.make || die } -src_test() { - cd "${S}/kernel_test" - emake || die - ./testall.sh || die +src_configure() { + append-cflags -Wall -Wno-unused-but-set-variable + append-cppflags "$($(tc-getPKG_CONFIG) --cflags ncurses)" + append-libs "$($(tc-getPKG_CONFIG) --libs ncurses)" + + tc-export CC } -src_install() { - emake INSTALLDIR="${D}" install || die - dodoc README.ccs +src_test() { + cd kernel_test || die + emake + ./testall.sh || die } pkg_postinst() { @@ -57,5 +67,5 @@ pkg_postinst() { } pkg_config() { - /usr/$(get_libdir)/ccs/init_policy + "${EPREFIX}"/usr/$(get_libdir)/ccs/init_policy } -- cgit v1.2.3