# Copyright 2002 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License, v2 or later # $Header: $ MY_P="${P}.autoconf" S="${WORKDIR}/${MY_P}" DESCRIPTION="Utility for creating and opening lzh archives." HOMEPAGE="http://sourceforge.jp/projects/lha/" SRC_URI="http://downloads.sourceforge.jp/lha/1548/${MY_P}-20020903.tar.gz" SLOT="0" LICENSE="lha" KEYWORDS="~x86 ~ppc ~sparc ~sparc64" IUSE="nls" DEPEND="virtual/glibc" src_unpack() { unpack ${A} } 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" emake || die # make check || die "make check failed" } src_install () { make DESTDIR=${D} install || die dodoc *.txt *.euc *.eng ChangeLog 00readme.autoconf }