summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAzamat H. Hackimov <azamat.hackimov@gmail.com>2019-08-06 21:07:58 +0300
committerJoonas Niilola <juippis@gentoo.org>2019-08-07 06:07:51 +0300
commitdfd75bb94194a6e260391fef86df20f35307d57e (patch)
tree4e29eb031671aa6e9600872c2b977475a25a6d9a /app-arch/upx
parentapp-emulation/skopeo: Bump to version 0.1.39 (diff)
downloadgentoo-dfd75bb94194a6e260391fef86df20f35307d57e.tar.gz
gentoo-dfd75bb94194a6e260391fef86df20f35307d57e.tar.bz2
gentoo-dfd75bb94194a6e260391fef86df20f35307d57e.zip
Rename app-arch/upx-ucl to app-arch/upx
Renaming package to more common name. Fixed all (R)DEPENDS in tree. This PR is part of https://github.com/gentoo/gentoo/pull/12087 Signed-off-by: Azamat H. Hackimov <azamat.hackimov@gmail.com> Closes: https://github.com/gentoo/gentoo/pull/12624 Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'app-arch/upx')
-rw-r--r--app-arch/upx/Manifest2
-rw-r--r--app-arch/upx/metadata.xml9
-rw-r--r--app-arch/upx/upx-3.91.ebuild42
3 files changed, 53 insertions, 0 deletions
diff --git a/app-arch/upx/Manifest b/app-arch/upx/Manifest
new file mode 100644
index 000000000000..c31e4a5d396c
--- /dev/null
+++ b/app-arch/upx/Manifest
@@ -0,0 +1,2 @@
+DIST lzma465.tar.bz2 288122 BLAKE2B 93fa080e6539bef79d8d0baff781b9e41329f649724991f608cfa9ee651e79b20cf38d27efa96fe848e61111ff355f58dfde81f0743e1d5f0d701d72e512c70d SHA512 690f005cfa9d3a65db03baddad57cf8dd79f861ac72d2e1bc18a151f3673d5f8043e3331f5dc3fba713dfd7b01ebf0817a2c0b6a1b22e1f7d8255a42b85ea4ac
+DIST upx-3.91-src.tar.bz2 904747 BLAKE2B e9888368e5ddb62dc3cf14bd39a6101c31621c9a1ce2529957cb5c96bd70845db01a2e2f73a5b64dd7b33c9e18679f8e134fffdea41bc5b3663ff350c6de3a6c SHA512 7e9a392fe11daf7baf9632f2c448ef9936da7dfab215f86ba417e9f097770949acb653aaabe6cc5ed812efc486cb35e0c1e128c80026b02825713d8b12251cf5
diff --git a/app-arch/upx/metadata.xml b/app-arch/upx/metadata.xml
new file mode 100644
index 000000000000..a9b5374e66fe
--- /dev/null
+++ b/app-arch/upx/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/upx-3.91.ebuild b/app-arch/upx/upx-3.91.ebuild
new file mode 100644
index 000000000000..f9921d66e9a0
--- /dev/null
+++ b/app-arch/upx/upx-3.91.ebuild
@@ -0,0 +1,42 @@
+# 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
+
+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="http://upx.sourceforge.net/download/${MY_P}.tar.bz2
+ lzma? ( mirror://sourceforge/sevenzip/lzma${LZMA_VER}.tar.bz2 )"
+
+LICENSE="GPL-2+ UPX-exception" # Read the exception before applying any patches
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~sparc ~x86 ~x86-fbsd"
+IUSE="lzma zlib"
+
+RDEPEND=">=dev-libs/ucl-1.02
+ !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 TODO doc/*.txt
+ dohtml doc/upx.html
+ doman doc/upx.1
+}