Gentoo Archives: gentoo-commits

From: David Seifert <soap@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-editors/fte/
Date: Sat, 01 Oct 2016 20:11:47
Message-Id: 1475352683.f2adc93f628e14bf3eaca67b340141213c291c7f.soap@gentoo
1 commit: f2adc93f628e14bf3eaca67b340141213c291c7f
2 Author: Kacper KoƂodziej <kacper <AT> kolodziej <DOT> in>
3 AuthorDate: Sat Oct 1 12:05:29 2016 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Sat Oct 1 20:11:23 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f2adc93f
7
8 app-editors/fte: upgrade to EAPI=6
9
10 Package-Manager: portage-2.3.1
11 Closes: https://github.com/gentoo/gentoo/pull/2411
12
13 Signed-off-by: David Seifert <soap <AT> gentoo.org>
14
15 ...{fte-20110708.ebuild => fte-20110708-r1.ebuild} | 38 ++++++++++------------
16 1 file changed, 17 insertions(+), 21 deletions(-)
17
18 diff --git a/app-editors/fte/fte-20110708.ebuild b/app-editors/fte/fte-20110708-r1.ebuild
19 similarity index 76%
20 rename from app-editors/fte/fte-20110708.ebuild
21 rename to app-editors/fte/fte-20110708-r1.ebuild
22 index 19c53c6..900419f 100644
23 --- a/app-editors/fte/fte-20110708.ebuild
24 +++ b/app-editors/fte/fte-20110708-r1.ebuild
25 @@ -1,8 +1,8 @@
26 -# Copyright 1999-2015 Gentoo Foundation
27 +# Copyright 1999-2016 Gentoo Foundation
28 # Distributed under the terms of the GNU General Public License v2
29 # $Id$
30
31 -EAPI="5"
32 +EAPI=6
33
34 inherit eutils toolchain-funcs
35
36 @@ -20,7 +20,7 @@ IUSE="gpm slang X"
37 S="${WORKDIR}/${PN}"
38
39 RDEPEND="
40 - >=sys-libs/ncurses-5.2
41 + sys-libs/ncurses:0=
42 X? (
43 x11-libs/libXdmcp
44 x11-libs/libXau
45 @@ -32,6 +32,8 @@ DEPEND="${RDEPEND}
46 slang? ( >=sys-libs/slang-2.1.3 )
47 app-arch/unzip"
48
49 +HTML_DOCS=( doc/. )
50 +
51 set_targets() {
52 export TARGETS=""
53 use slang && TARGETS="${TARGETS} s${PN}"
54 @@ -43,14 +45,12 @@ set_targets() {
55 }
56
57 src_prepare() {
58 - # Do not apply anymore, posibly deprecated. TODO: Check and clean up.
59 - # epatch "${FILESDIR}"/${PN}-gcc34
60 - # epatch "${FILESDIR}"/${PN}-new_keyword.patch
61 - # epatch "${FILESDIR}"/${PN}-slang.patch
62 - # epatch "${FILESDIR}"/${PN}-interix.patch
63 + default
64
65 - [[ -e /usr/include/linux/keyboard.h ]] && \
66 - sed /usr/include/linux/keyboard.h -e '/wait.h/d' > src/hacked_keyboard.h
67 + if [[ -e "${EPREFIX}"/usr/include/linux/keyboard.h ]]; then
68 + sed "${EPREFIX}"/usr/include/linux/keyboard.h \
69 + -e '/wait.h/d' > src/hacked_keyboard.h || die
70 + fi
71
72 sed \
73 -e "s:<linux/keyboard.h>:\"hacked_keyboard.h\":" \
74 @@ -90,35 +90,31 @@ src_compile() {
75 DEFAULT_FTE_CONFIG=../config/main.${PN} UOS=${os}"
76
77 set_targets
78 - emake CXX=$(tc-getCXX) OPTIMIZE="${CXXFLAGS}" ${DEFFLAGS} TARGETS="${TARGETS}" all
79 + emake CXX="$(tc-getCXX)" OPTIMIZE="${CXXFLAGS}" "${DEFFLAGS}" TARGETS="${TARGETS}" all
80 }
81
82 src_install() {
83 - local files
84 -
85 keepdir /etc/${PN}
86 -
87 into /usr
88
89 set_targets
90 - files="${TARGETS} c${PN}"
91
92 + local i files="${TARGETS} c${PN}"
93 for i in ${files}; do
94 - dobin src/$i
95 + dobin src/${i}
96 done
97
98 - dobin "${FILESDIR}"/${PN}
99 + dobin "${FILESDIR}/${PN}"
100
101 - dodoc BUGS README TODO
102 - dohtml doc/*
103 + einstalldocs
104
105 insinto /usr/share/${PN}
106 - doins -r config/*
107 + doins -r config/.
108 }
109
110 pkg_postinst() {
111 ebegin "Compiling configuration"
112 cd "${EPREFIX}"/usr/share/${PN} || die "missing configuration dir"
113 - "${EPREFIX}"/usr/bin/c${PN} main.${PN} "${EPREFIX}"/etc/${PN}/system.${PN}rc
114 + "${EPREFIX}"/usr/bin/c${PN} main.${PN} "${EPREFIX}"/etc/${PN}/system.${PN}rc || die
115 eend $?
116 }