summaryrefslogtreecommitdiff
blob: 4fd8544d36fcad57c065cb40b159a600f5100724 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-i18n/jfbterm/jfbterm-0.4.0.ebuild,v 1.2 2003/09/04 01:47:36 usata Exp $

inherit flag-o-matic
replace-flags "-march=pentium3" "-mcpu=pentium3"

DESCRIPTION="The J Framebuffer Terminal/Multilingual Enhancement"
HOMEPAGE="http://jfbterm.sourceforge.jp/"
SRC_URI="mirror://sourceforge.jp/${PN}/5792/${P}.tar.gz"

LICENSE="BSD"
SLOT="0"
KEYWORDS="~x86 ~ppc ~sparc"

DEPEND="virtual/glibc
	>=sys-apps/sed-4
	sys-devel/autoconf
	sys-devel/automake
	sys-libs/ncurses"
RDEPEND="virtual/glibc"

src_compile() {

	# do some odd stuff ;-(
	OCC="${CC}"
	OCFLAGS="${CFLAGS}"
	unset CC CFLAGS
	econf || die "econf failed"
	# jfbterm peculiarly needs to be compiled twice.
	make CC="${OCC}" CFLAGS="${OCFLAGS}" || die "make failed"
	make CC="${OCC}" CFLAGS="${OCFLAGS}" || die "make failed"
	sed -i -e 's/a18/8x16/' jfbterm.conf.sample
}

src_install() {

	dodir /etc
	einstall || die

	if [ ! -e /usr/share/terminfo/j/jfbterm ] ; then
		dodir /usr/share/terminfo
		tic terminfo.jfbterm -o${D}/usr/share/terminfo || die
	fi

	mv ${D}/etc/jfbterm.conf{.sample,}

	doman jfbterm.1 jfbterm.conf.5

	dodoc AUTHORS ChangeLog INSTALL* NEWS README*
	dodoc jfbterm.conf.sample*
}