From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 383DD139694 for ; Sat, 5 Aug 2017 13:15:59 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5A2CBE0D8F; Sat, 5 Aug 2017 13:15:58 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 36191E0D88 for ; Sat, 5 Aug 2017 13:15:58 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 1ECB8341784 for ; Sat, 5 Aug 2017 13:15:57 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 6CD6875F3 for ; Sat, 5 Aug 2017 13:15:55 +0000 (UTC) From: "Akinori Hattori" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Akinori Hattori" Message-ID: <1501938763.95a831d738dae3bfb016f4ac2f1e2cb0eeee70b1.hattya@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-i18n/fbterm/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-i18n/fbterm/fbterm-1.7-r2.ebuild X-VCS-Directories: app-i18n/fbterm/ X-VCS-Committer: hattya X-VCS-Committer-Name: Akinori Hattori X-VCS-Revision: 95a831d738dae3bfb016f4ac2f1e2cb0eeee70b1 X-VCS-Branch: master Date: Sat, 5 Aug 2017 13:15:55 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 1f430899-cb59-4888-94f7-b5893ac37610 X-Archives-Hash: 98cbafb7462f23c742ae82b995230b5e commit: 95a831d738dae3bfb016f4ac2f1e2cb0eeee70b1 Author: Akinori Hattori gentoo org> AuthorDate: Sat Aug 5 13:12:43 2017 +0000 Commit: Akinori Hattori gentoo org> CommitDate: Sat Aug 5 13:12:43 2017 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=95a831d7 app-i18n/fbterm: inherit fcaps Gentoo-Bug: 566458 Package-Manager: Portage-2.3.6, Repoman-2.3.1 app-i18n/fbterm/fbterm-1.7-r2.ebuild | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/app-i18n/fbterm/fbterm-1.7-r2.ebuild b/app-i18n/fbterm/fbterm-1.7-r2.ebuild index a371d7db068..f23bea99932 100644 --- a/app-i18n/fbterm/fbterm-1.7-r2.ebuild +++ b/app-i18n/fbterm/fbterm-1.7-r2.ebuild @@ -3,7 +3,7 @@ EAPI="6" -inherit autotools +inherit autotools fcaps DESCRIPTION="Fast terminal emulator for the Linux framebuffer" HOMEPAGE="https://code.google.com/p/fbterm" @@ -12,11 +12,10 @@ SRC_URI="https://storage.googleapis.com/google-code-archive-downloads/v2/code.go LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~arm ~arm64 ~x86" -IUSE="caps gpm video_cards_vesa" +IUSE="gpm video_cards_vesa" RDEPEND="media-libs/fontconfig media-libs/freetype:2 - caps? ( sys-libs/libcap ) gpm? ( sys-libs/gpm ) video_cards_vesa? ( dev-libs/libx86 )" DEPEND="${RDEPEND} @@ -25,6 +24,10 @@ DEPEND="${RDEPEND} PATCHES=( "${FILESDIR}"/${PN}-gcc6.patch ) +FILECAPS=( + cap_sys_tty_config+ep usr/bin/${PN} +) + src_prepare() { sed -i "s|tic|tic -o '\$(DESTDIR)\$(datadir)/terminfo'|" terminfo/Makefile.am @@ -41,14 +44,12 @@ src_configure() { src_install() { default - if use caps; then - setcap "cap_sys_tty_config+ep" "${ED}"/usr/bin/${PN} - else - fperms u+s /usr/bin/${PN} - fi + use filecaps || fperms u+s /usr/bin/${PN} } pkg_postinst() { + fcaps_pkg_postinst + elog "${PN} won't work with vga16fb. You have to use other native" elog "framebuffer drivers or vesa driver." elog "See ${EPREFIX}/usr/share/doc/${P}/README for details."