blob: c87e1a891d4ea22bd7ff746ba385f95693da7fb3 (
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-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI="6"
inherit eutils toolchain-funcs flag-o-matic git-r3
#LZMA_VER=465
LZMA_VER=920
#MY_P="${P/-ucl}-src"
DESCRIPTION="Ultimate Packer for eXecutables (free version using UCL compression and not NRV)"
HOMEPAGE="http://upx.sourceforge.net/"
SRC_URI="lzma? ( mirror://sourceforge/sevenzip/lzma${LZMA_VER}.tar.bz2 )"
EGIT_REPO_URI="git://github.com/upx/upx.git"
LICENSE="GPL-2+ UPX-exception" # Read the exception before applying any patches
SLOT="0"
KEYWORDS=""
IUSE="lzma zlib"
RDEPEND=">=dev-libs/ucl-1.02
!app-arch/upx
!app-arch/upx-bin"
DEPEND="${RDEPEND}
dev-lang/perl"
#S="${WORKDIR}/${MY_P}"
src_configure() {
use zlib && append-cppflags -DWITH_ZLIB=1
}
src_compile() {
tc-export CXX
emake UPX_LZMADIR="${WORKDIR}" all
}
src_install() {
newbin src/upx.out upx
dodoc BUGS NEWS PROJECTS README* THANKS doc/*.txt
dohtml doc/upx.html
doman doc/upx.1
}
|