forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
lzma-19.00.ebuild
41 lines (32 loc) · 1011 Bytes
/
lzma-19.00.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
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit toolchain-funcs
MY_P="${PN}${PV//.}"
DESCRIPTION="LZMA Stream Compressor from the SDK"
HOMEPAGE="https://www.7-zip.org/sdk.html"
SRC_URI="mirror://sourceforge/sevenzip/${MY_P}.7z -> ${P}.7z"
LICENSE="public-domain"
SLOT="0"
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~mips ppc ppc64 ~riscv sparc x86 ~amd64-linux ~x86-linux ~ppc-macos"
IUSE="doc"
BDEPEND="app-arch/p7zip"
S=${WORKDIR}
src_compile() {
cd CPP/7zip/Bundles/LzmaCon || die
emake -f makefile.gcc \
CXX="$(tc-getCXX) ${CXXFLAGS} ${CPPFLAGS}" \
CXX_C="$(tc-getCC) ${CFLAGS} ${CPPFLAGS}"
}
src_install() {
newbin CPP/7zip/Bundles/LzmaCon/lzma lzmacon
dodoc DOC/lzma.txt DOC/lzma-history.txt
use doc && dodoc DOC/7zC.txt \
DOC/7zFormat.txt \
DOC/Methods.txt \
DOC/lzma-sdk.txt \
DOC/lzma-specification.txt
}
pkg_postinst() {
einfo "The lzma binary is now 'lzmacon' to avoid xz-utils conflicts #218459"
}