summaryrefslogtreecommitdiff
blob: 733df9d41b93d67de371cf9fdf13d4916eb3e18d (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
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-arch/lha/lha-114i-r1.ebuild,v 1.7 2004/01/11 22:04:10 weeve Exp $

DESCRIPTION="Utility for creating and opening lzh archives."
HOMEPAGE="http://sourceforge.jp/projects/lha/"
LICENSE="lha"

DEPEND="virtual/glibc"
IUSE="nls"

SLOT="0"
KEYWORDS="x86 ~ppc sparc alpha ~amd64"

MY_P="${P}.autoconf"
SRC_URI="http://downloads.sourceforge.jp/lha/1548/${MY_P}-20020903.tar.gz"
S="${WORKDIR}/${MY_P}"

src_compile() {

	local myconf=""

	use nls \
		&& myconf="${myconf} --enable-multibyte-filename=auto" \
		|| myconf="${myconf} --disable-multibyte-filename"

	./configure \
		--prefix=/usr \
		--mandir=/usr/share/man/ja \
		${myconf} || die "./configure failed"

	#make check || die "make check failed"

	emake || die

}

src_install() {

	make DESTDIR=${D} install || die
	dodoc *.txt *.euc *.eng ChangeLog 00readme.autoconf

}