blob: 4d214e429cd46ceecafe145ad0d63713b092d4ce (
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
|
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-arch/lha/lha-114i-r5.ebuild,v 1.1 2005/10/30 05:33:27 vapier Exp $
inherit eutils flag-o-matic
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"
LICENSE="lha"
SLOT="0"
KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc-macos ppc64 s390 sparc x86"
IUSE=""
DEPEND=""
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}"/${P}-malloc.patch
epatch "${FILESDIR}"/${P}-sec.patch
epatch "${FILESDIR}"/${P}-sec2.patch
epatch "${FILESDIR}"/${P}-symlink.patch
epatch "${FILESDIR}"/${P}-dir_length_bounds_check.patch
epatch "${FILESDIR}"/${P}-build.patch
epatch "${FILESDIR}"/${P}-detect-cmd-extract-fail.patch
}
src_compile() {
use ppc-macos && append-flags -DHAVE_NO_LCHOWN
emake || die
}
src_install() {
make install DESTDIR="${D}" || die
use linguas_jp || rm -r "${D}"/usr/share/man
dodoc *.txt *.euc *.eng
}
|