summaryrefslogtreecommitdiff
blob: 6774610a978ee46a1c84dd1fba08ca730179d1e0 (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.8 2004/03/12 15:17:01 aliz 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

}