summaryrefslogtreecommitdiff
path: root/app-arch
diff options
context:
space:
mode:
authorGluzskiy Alexandr <sss@sss.chaoslab.ru>2017-08-09 15:51:42 +0300
committerGluzskiy Alexandr <sss@sss.chaoslab.ru>2017-08-09 15:51:42 +0300
commit998d792cd06071d743d50183c31983f625a50492 (patch)
tree0b8d4cab8061490067057e568e48e31470b9b3a2 /app-arch
parent0b879a28e9ca59100b1c4eca426b0a96175a323a (diff)
upx-ucl-scm
Diffstat (limited to 'app-arch')
-rw-r--r--app-arch/upx-ucl/metadata.xml9
-rw-r--r--app-arch/upx-ucl/upx-ucl-scm.ebuild43
2 files changed, 52 insertions, 0 deletions
diff --git a/app-arch/upx-ucl/metadata.xml b/app-arch/upx-ucl/metadata.xml
new file mode 100644
index 0000000..a9b5374
--- /dev/null
+++ b/app-arch/upx-ucl/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <!-- maintainer-needed -->
+ <longdescription>UPX is a versatile executable packer with a excellent compression ratio</longdescription>
+ <upstream>
+ <remote-id type="sourceforge">sevenzip</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-arch/upx-ucl/upx-ucl-scm.ebuild b/app-arch/upx-ucl/upx-ucl-scm.ebuild
new file mode 100644
index 0000000..fe152dd
--- /dev/null
+++ b/app-arch/upx-ucl/upx-ucl-scm.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+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
+}