logo

overlay

Personnal gentoo overlay
commit: 4b8a4f8a198ea0e42b72afafd008f1e76c05032b
parent: 56f5c3e782983d77a8cfaaf190dd3bf2829e94b7
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Wed, 27 Dec 2017 23:01:02 +0100

app-arch/unar: Import from ::gentoo

Diffstat:

app-arch/unar/Manifest | 1+
app-arch/unar/metadata.xml | 11+++++++++++
app-arch/unar/unar-1.10.1.ebuild | 49+++++++++++++++++++++++++++++++++++++++++++++++++
3 files changed, 61 insertions(+), 0 deletions(-)

diff --git a/app-arch/unar/Manifest b/app-arch/unar/Manifest @@ -0,0 +1 @@ +DIST unar1.10.1_src.zip 2552535 SHA256 40967014a505b7a27864c49dc3b5d30b98ae4e6d4873783b2ef9ef9215fd092b SHA512 2755f1e2dcca68912f748587f195887d785d5c30933ca0d7a7de1dd35c6c1c115571e49f462fe15722e1b34560f02503382727e1df19a1f23d4a3cc75750434e WHIRLPOOL 980cc9224d2146a79c4e42c7890b4ca1f81824c2f04cb6c076c5a60a5a2e2dc98012c9076deb653cf0d4766533081b37baa0c0494ad6da355923b286ae51621f diff --git a/app-arch/unar/metadata.xml b/app-arch/unar/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <name>Haelwenn (lanodan) Monnier</name> + <email>contact@hacktivis.me</email> + </maintainer> + <upstream> + <remote-id type="google-code">theunarchiver</remote-id> + </upstream> +</pkgmetadata> diff --git a/app-arch/unar/unar-1.10.1.ebuild b/app-arch/unar/unar-1.10.1.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +inherit toolchain-funcs + +DESCRIPTION="unpacker for various archiving formats, e.g. rar v3" +HOMEPAGE="https://unarchiver.c3.cx/" +SRC_URI="https://unarchiver.c3.cx/downloads/${PN}${PV}_src.zip" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="amd64" +IUSE="" + +RDEPEND="gnustep-base/gnustep-base + dev-libs/icu:= + sys-libs/zlib + app-arch/bzip2" +DEPEND="${RDEPEND} + >=gnustep-base/gnustep-make-2.6.0[native-exceptions] + sys-devel/gcc[objc]" + +S="${WORKDIR}/The Unarchiver/XADMaster" + +src_prepare() { + # avoid jobserver warning, upstream bug: + # https://bitbucket.org/WAHa_06x36/theunarchiver/issues/918/dont-call-make-from-makefile + sed -i -e 's:make:$(MAKE):g' Makefile.linux +} + +src_compile() { + emake -f Makefile.linux \ + AR="$(tc-getAR)" \ + CC="$(tc-getCC)" \ + CXX="$(tc-getCXX)" \ + OBJCC="$(tc-getCC)" \ + CFLAGS="${CFLAGS}" \ + CXXFLAGS="${CXXFLAGS}" \ + OBJCFLAGS="${CFLAGS}" \ + LD="$(tc-getCXX)" \ + LDFLAGS="-Wl,--whole-archive -fexceptions -fgnu-runtime ${LDFLAGS}" +} + +src_install() { + dobin {ls,un}ar + doman ../Extra/{ls,un}ar.1 +}