summaryrefslogtreecommitdiff
blob: bddaf1a00da3ba368e2b1973ce5bde6c9e1aa112 (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
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-i18n/jless-iso254/jless-iso254-358.ebuild,v 1.5 2003/02/13 08:01:53 vapier Exp $

KEYWORDS="x86"
A=less-${PV}.tar.gz
S=${WORKDIR}/less-${PV}
DESCRIPTION="Japanese enabled pager -- less-iso254"

SRC_URI="ftp://ftp.gnu.org/pub/gnu/less/less-${PV}.tar.gz
	http://www.io.com/~kazushi/less/less-358-iso254.patch.gz"
HOMEPAGE="http://www.io.com/~kazushi/less/"
DEPEND="virtual/glibc
	>=sys-libs/ncurses-5.2"
LICENSE="as-is"
SLOT="0"


src_unpack() {
	unpack ${A}
	cd ${S}
	zcat ${DISTDIR}/less-${PV}-iso254.patch | \
		patch -s -p1 || die "Patch failed"
}

src_compile() {
	cd ${S}

	./configure \
		--host=${CHOST} \
		--prefix=/usr \
		--without-cs-regex \
		--enable-msb \
		--enable-jisx0213 \
		--with-regex=auto \
		--with-editor=/usr/bin/nano || die "Configure failed"

	emake || die "Make failed"
}

src_install() {
	make prefix=${D}/usr					\
	     binprefix=j					\
	     manprefix=j install			||	\
	     die "Install failed"
	dodoc COPYING LICENSE NEWS README README.iso README.iso.jp
	exeinto /usr/bin
	newexe ${FILESDIR}/lesspipe.sh-r1 lesspipe.sh
}