From c4add12d4770041a2059332ccaddd5e6678b977c Mon Sep 17 00:00:00 2001 From: Yury Martynov Date: Wed, 1 Apr 2020 09:37:38 +0300 Subject: [PATCH] app-crypt/elfcrypt: bump to 20200224 Package-Manager: Portage-2.3.89, Repoman-2.3.20 Signed-off-by: Yury Martynov --- app-crypt/elfcrypt/Manifest | 1 + app-crypt/elfcrypt/elfcrypt-20200224.ebuild | 37 +++++++++++++++++++++ app-crypt/elfcrypt/elfcrypt-99999999.ebuild | 5 +-- 3 files changed, 41 insertions(+), 2 deletions(-) create mode 100644 app-crypt/elfcrypt/Manifest create mode 100644 app-crypt/elfcrypt/elfcrypt-20200224.ebuild diff --git a/app-crypt/elfcrypt/Manifest b/app-crypt/elfcrypt/Manifest new file mode 100644 index 000000000..8237a6eef --- /dev/null +++ b/app-crypt/elfcrypt/Manifest @@ -0,0 +1 @@ +DIST elfcrypt-20200224.tar.gz 8632 BLAKE2B 20ac419ea9061aaf414bf2aca97c247fa040512cde7b2b9ae584dc41f7ca51f063152c0046acd87d61e4c37d6938da0e3ecdc6b89d9876743664467600f41161 SHA512 15da3fcd10e294fbfcca1c7b2eeb99dce9536b59d219d0e7795077dbfac47ad12e27fa081bfcb1a939f9d1f597d2489af598db395019e0cdb153f445e724ac60 diff --git a/app-crypt/elfcrypt/elfcrypt-20200224.ebuild b/app-crypt/elfcrypt/elfcrypt-20200224.ebuild new file mode 100644 index 000000000..62b976c0e --- /dev/null +++ b/app-crypt/elfcrypt/elfcrypt-20200224.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit toolchain-funcs + +DESCRIPTION="A Simple ELF crypter" +HOMEPAGE="https://github.com/droberson/ELFcrypt" + +if [[ ${PV} == *9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/droberson/ELFcrypt" +else + HASH_COMMIT="f3c0121dc153d49756403cad83cbd160933edf78" + + SRC_URI="https://github.com/droberson/ELFcrypt/archive/${HASH_COMMIT}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64 ~x86" + S="${WORKDIR}/ELFcrypt-${HASH_COMMIT}" +fi + +LICENSE="MIT" +SLOT="0" + +src_prepare() { + sed -e "s/gcc/$(tc-getCC)/" \ + -e "s/-o ELFcrypt2/${CFLAGS} -o ELFcrypt2/" \ + -e "s/^\(all:.*\)example/\1/" \ + -i Makefile || die + + default +} + +src_install() { + dobin ELFcrypt + dodoc README.md +} diff --git a/app-crypt/elfcrypt/elfcrypt-99999999.ebuild b/app-crypt/elfcrypt/elfcrypt-99999999.ebuild index 5ebb16773..62b976c0e 100644 --- a/app-crypt/elfcrypt/elfcrypt-99999999.ebuild +++ b/app-crypt/elfcrypt/elfcrypt-99999999.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2019 Gentoo Authors +# Copyright 1999-2020 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 @@ -12,7 +12,7 @@ if [[ ${PV} == *9999 ]]; then inherit git-r3 EGIT_REPO_URI="https://github.com/droberson/ELFcrypt" else - HASH_COMMIT="340873de5547857e37e0fc48e8fea5a8c6a04b77" + HASH_COMMIT="f3c0121dc153d49756403cad83cbd160933edf78" SRC_URI="https://github.com/droberson/ELFcrypt/archive/${HASH_COMMIT}.tar.gz -> ${P}.tar.gz" KEYWORDS="~amd64 ~x86" @@ -25,6 +25,7 @@ SLOT="0" src_prepare() { sed -e "s/gcc/$(tc-getCC)/" \ -e "s/-o ELFcrypt2/${CFLAGS} -o ELFcrypt2/" \ + -e "s/^\(all:.*\)example/\1/" \ -i Makefile || die default