summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Seifert <soap@gentoo.org>2017-12-02 17:11:22 +0100
committerDavid Seifert <soap@gentoo.org>2017-12-02 17:15:14 +0100
commit08f339ccb13631e357bee13cdeca1b8b55f13867 (patch)
treeac64cf03394a1cada05c97b0974846e76e49f7c4 /sys-apps/ccs-tools/ccs-tools-1.8.3_p20130214.ebuild
parentsys-apps/byld: Port to EAPI 6 (diff)
downloadgentoo-08f339ccb13631e357bee13cdeca1b8b55f13867.tar.gz
gentoo-08f339ccb13631e357bee13cdeca1b8b55f13867.tar.bz2
gentoo-08f339ccb13631e357bee13cdeca1b8b55f13867.zip
sys-apps/ccs-tools: Port to EAPI 6
Package-Manager: Portage-2.3.16, Repoman-2.3.6
Diffstat (limited to 'sys-apps/ccs-tools/ccs-tools-1.8.3_p20130214.ebuild')
-rw-r--r--sys-apps/ccs-tools/ccs-tools-1.8.3_p20130214.ebuild48
1 files changed, 29 insertions, 19 deletions
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
}