forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
unar-1.10.1.ebuild
49 lines (40 loc) · 1.12 KB
/
unar-1.10.1.ebuild
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
44
45
46
47
48
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
}