summaryrefslogtreecommitdiff
blob: 0b0ddd8e04e2fc82bc5bfd3f890cdae353c13e38 (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
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-arch/upx/upx-3.04.ebuild,v 1.1 2010/03/20 03:52:53 matsuu Exp $

DESCRIPTION="Ultimate Packer for eXecutables"
HOMEPAGE="http://upx.sourceforge.net/"
SRC_URI="x86? ( http://upx.sourceforge.net/download/${P}-i386_linux.tar.bz2 )
	amd64? ( http://upx.sourceforge.net/download/${P}-amd64_linux.tar.bz2 )
	ppc? ( http://upx.sourceforge.net/download/${P}-powerpc_linux.tar.bz2 )
	arm? ( http://upx.sourceforge.net/download/${P}-armeb_linux.tar.bz2 )
	mips? ( http://upx.sourceforge.net/download/${P}-mipsel_linux.tar.bz2 )"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"
IUSE=""
RESTRICT="strip"

DEPEND="!app-arch/upx-ucl"

S="${WORKDIR}"

src_install() {
	#the pre-compiled version works on gcc-3.2 systems
	# source version won't compile.
	cd ${P}*
	into /opt
	dobin upx || die
	doman upx.1 || die
	dodoc upx.doc BUGS NEWS README* THANKS TODO || die
	dohtml upx.html || die
}