public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "David Seifert" <soap@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: app-editors/fte/
Date: Sat,  1 Oct 2016 20:11:41 +0000 (UTC)	[thread overview]
Message-ID: <1475352683.f2adc93f628e14bf3eaca67b340141213c291c7f.soap@gentoo> (raw)

commit:     f2adc93f628e14bf3eaca67b340141213c291c7f
Author:     Kacper Kołodziej <kacper <AT> kolodziej <DOT> in>
AuthorDate: Sat Oct  1 12:05:29 2016 +0000
Commit:     David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Sat Oct  1 20:11:23 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f2adc93f

app-editors/fte: upgrade to EAPI=6

Package-Manager: portage-2.3.1
Closes: https://github.com/gentoo/gentoo/pull/2411

Signed-off-by: David Seifert <soap <AT> gentoo.org>

 ...{fte-20110708.ebuild => fte-20110708-r1.ebuild} | 38 ++++++++++------------
 1 file changed, 17 insertions(+), 21 deletions(-)

diff --git a/app-editors/fte/fte-20110708.ebuild b/app-editors/fte/fte-20110708-r1.ebuild
similarity index 76%
rename from app-editors/fte/fte-20110708.ebuild
rename to app-editors/fte/fte-20110708-r1.ebuild
index 19c53c6..900419f 100644
--- a/app-editors/fte/fte-20110708.ebuild
+++ b/app-editors/fte/fte-20110708-r1.ebuild
@@ -1,8 +1,8 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2016 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
-EAPI="5"
+EAPI=6
 
 inherit eutils toolchain-funcs
 
@@ -20,7 +20,7 @@ IUSE="gpm slang X"
 S="${WORKDIR}/${PN}"
 
 RDEPEND="
-	>=sys-libs/ncurses-5.2
+	sys-libs/ncurses:0=
 	X? (
 		x11-libs/libXdmcp
 		x11-libs/libXau
@@ -32,6 +32,8 @@ DEPEND="${RDEPEND}
 	slang? ( >=sys-libs/slang-2.1.3 )
 	app-arch/unzip"
 
+HTML_DOCS=( doc/. )
+
 set_targets() {
 	export TARGETS=""
 	use slang && TARGETS="${TARGETS} s${PN}"
@@ -43,14 +45,12 @@ set_targets() {
 }
 
 src_prepare() {
-	# Do not apply anymore, posibly deprecated. TODO: Check and clean up.
-	# epatch "${FILESDIR}"/${PN}-gcc34
-	# epatch "${FILESDIR}"/${PN}-new_keyword.patch
-	# epatch "${FILESDIR}"/${PN}-slang.patch
-	# epatch "${FILESDIR}"/${PN}-interix.patch
+	default
 
-	[[ -e /usr/include/linux/keyboard.h ]] && \
-		sed /usr/include/linux/keyboard.h -e '/wait.h/d' > src/hacked_keyboard.h
+	if [[ -e "${EPREFIX}"/usr/include/linux/keyboard.h ]]; then
+		sed "${EPREFIX}"/usr/include/linux/keyboard.h \
+			-e '/wait.h/d' > src/hacked_keyboard.h || die
+	fi
 
 	sed \
 		-e "s:<linux/keyboard.h>:\"hacked_keyboard.h\":" \
@@ -90,35 +90,31 @@ src_compile() {
 		DEFAULT_FTE_CONFIG=../config/main.${PN} UOS=${os}"
 
 	set_targets
-	emake CXX=$(tc-getCXX) OPTIMIZE="${CXXFLAGS}" ${DEFFLAGS} TARGETS="${TARGETS}" all
+	emake CXX="$(tc-getCXX)" OPTIMIZE="${CXXFLAGS}" "${DEFFLAGS}" TARGETS="${TARGETS}" all
 }
 
 src_install() {
-	local files
-
 	keepdir /etc/${PN}
-
 	into /usr
 
 	set_targets
-	files="${TARGETS} c${PN}"
 
+	local i files="${TARGETS} c${PN}"
 	for i in ${files}; do
-		dobin src/$i
+		dobin src/${i}
 	done
 
-	dobin "${FILESDIR}"/${PN}
+	dobin "${FILESDIR}/${PN}"
 
-	dodoc BUGS README TODO
-	dohtml doc/*
+	einstalldocs
 
 	insinto /usr/share/${PN}
-	doins -r config/*
+	doins -r config/.
 }
 
 pkg_postinst() {
 	ebegin "Compiling configuration"
 	cd "${EPREFIX}"/usr/share/${PN} || die "missing configuration dir"
-	"${EPREFIX}"/usr/bin/c${PN} main.${PN} "${EPREFIX}"/etc/${PN}/system.${PN}rc
+	"${EPREFIX}"/usr/bin/c${PN} main.${PN} "${EPREFIX}"/etc/${PN}/system.${PN}rc || die
 	eend $?
 }


             reply	other threads:[~2016-10-01 20:11 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-10-01 20:11 David Seifert [this message]
  -- strict thread matches above, loose matches on Subject: below --
2017-01-29 14:38 [gentoo-commits] repo/gentoo:master commit in: app-editors/fte/ Fabian Groffen
2019-01-27 14:09 Sergei Trofimovich
2019-02-07 12:15 Mikle Kolyada
2019-02-07 12:15 Mikle Kolyada

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1475352683.f2adc93f628e14bf3eaca67b340141213c291c7f.soap@gentoo \
    --to=soap@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox