summaryrefslogtreecommitdiff
blob: 6b4b51d7baa4ec6ca3e7c61d892844cfd61a89d6 (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
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-arch/lha/lha-114i.ebuild,v 1.9 2003/02/10 07:12:50 seemant Exp $

DESCRIPTION="Utility for creating and opening lzh archives."
HOMEPAGE="http://www2m.biglobe.ne.jp/~dolphin/lha/lha-unix.htm"
SRC_URI="http://www2m.biglobe.ne.jp/~dolphin/lha/prog/${P}.tar.gz"

SLOT="0"
LICENSE="lha"
KEYWORDS="x86 ppc sparc"

DEPEND="virtual/glibc"

src_unpack () {
	unpack ${A} ; cd ${S}
	sed -e "/^OPTIMIZE/ s:-O2:${CFLAGS}:" < Makefile > Makefile.hacked
	mv Makefile.hacked Makefile
}

src_compile() {
	emake || die
}

src_install() {
	dodir /usr/bin
	dodir /usr/share/man/ja/man1
	make \
		BINDIR=${D}/usr/bin \
		MANDIR=${D}/usr/share/man/ja \
		install MANSECT=1 || die

	dodoc *.txt *.euc *.eng
}