Skip to content

Commit

Permalink
app-i18n/jfbterm: Modernise to EAPI 6
Browse files Browse the repository at this point in the history
Package-Manager: Portage-2.3.3, Repoman-2.3.1
  • Loading branch information
SoapGentoo committed Feb 12, 2017
1 parent f802519 commit 409741f
Showing 1 changed file with 24 additions and 18 deletions.
42 changes: 24 additions & 18 deletions app-i18n/jfbterm/jfbterm-0.4.7-r4.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
# Distributed under the terms of the GNU General Public License v2
# $Id$

inherit flag-o-matic eutils autotools
EAPI=6

inherit autotools flag-o-matic

DESCRIPTION="The J Framebuffer Terminal/Multilingual Enhancement with UTF-8 support"
HOMEPAGE="http://jfbterm.sourceforge.jp/"
Expand All @@ -13,35 +15,39 @@ SLOT="0"
KEYWORDS="amd64 ppc ppc64 sparc x86"
IUSE="debug"

DEPEND=">=sys-libs/ncurses-5.6"
RDEPEND="media-fonts/unifont
DEPEND="sys-libs/ncurses:0"
RDEPEND="
media-fonts/unifont
media-fonts/font-misc-misc
media-fonts/intlfonts"

src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}/${P}-sigchld-debian.patch"
epatch "${FILESDIR}/${P}-no-kernel-headers.patch"
epatch "${FILESDIR}/${P}-gentoo.patch"
epatch "${FILESDIR}/${P}-wrong-inline-gcc5.patch"
PATCHES=(
"${FILESDIR}"/${P}-sigchld-debian.patch
"${FILESDIR}"/${P}-no-kernel-headers.patch
"${FILESDIR}"/${P}-gentoo.patch
"${FILESDIR}"/${P}-wrong-inline-gcc5.patch
)

src_prepare() {
default
mv configure.{in,ac} || die
eautoreconf
}

src_compile() {
econf $(use_enable debug) || die "econf failed"
emake || die "emake failed"
src_configure() {
econf $(use_enable debug)
}

src_install() {
dodir /etc /usr/share/fonts/jfbterm
emake -j1 DESTDIR="${D}" install || die "emake install failed"
default

mv "${D}"/etc/jfbterm.conf{.sample,}
mv "${ED%/}"/etc/jfbterm.conf{.sample,} || die

doman jfbterm.1 jfbterm.conf.5 || die "doman failed"
doman jfbterm.1 jfbterm.conf.5

dodoc AUTHORS ChangeLog NEWS README* jfbterm.conf.sample* \
|| die "dodoc failed"
# install example config files
docinto examples
dodoc jfbterm.conf.sample*
docompress -x /usr/share/doc/${PF}/examples
}

0 comments on commit 409741f

Please sign in to comment.