Skip to content

Commit

Permalink
app-arch/7-zip: add
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredallard committed Oct 29, 2023
1 parent 28b6740 commit 89bb699
Show file tree
Hide file tree
Showing 2 changed files with 61 additions and 0 deletions.
59 changes: 59 additions & 0 deletions app-arch/7-zip/7-zip-23.01.ebuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit toolchain-funcs

DESCRIPTION="A file archiver with a high compression ratio"
HOMEPAGE="https://7-zip.org"
SRC_URI="mirror://sourceforge/project/sevenzip/7-Zip/${PV}/7z$(ver_rs 1 '')-src.tar.xz"
RESTRICT="primaryuri"
S="${WORKDIR}"

LICENSE="LGPL-2.1 BSD rar? ( unRAR )"
SLOT="0"
KEYWORDS="~amd64"
IUSE="asm rar static"

RDEPEND=""
DEPEND="${RDEPEND}"
BDEPEND="
asm? ( dev-lang/asmc )
"

DOCS=(
DOC/7zC.txt
DOC/7zFormat.txt
DOC/lzma.txt
DOC/Methods.txt
DOC/readme.txt
DOC/src-history.txt
)

src_prepare() {
sed -e 's: -\(O2\|s\) ::' -i CPP/7zip/7zip_gcc.mak
default
}

src_compile() {
local myemakeargs=(
CFLAGS_BASE2="${CFLAGS}"
CXXFLAGS_BASE2="${CXXFLAGS}"
CFLAGS_WARN_WALL='-Wall -Wextra'
IS_X64=1
USE_ASM=$(usex asm 1 '')
COMPL_STATIC=$(usex static 1 '')
O="${S}"
DISABLE_RAR=$(usex rar '' 1)
)
tc-env_build emake \
-C CPP/7zip/Bundles/Alone2 \
-f makefile.gcc \
"${myemakeargs[@]}"
}

src_install() {
dobin 7zz$(usex static 's' '')
einstalldocs
}
2 changes: 2 additions & 0 deletions app-arch/7-zip/Manifest
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
DIST 7z2301-src.tar.xz 1378588 BLAKE2B 348484b24b39db70e513fe50d79954ea0e2dd669f83e3601fa796c8f0ca4734132ca20fac8cda9b8ba550bad9146627fc0ae07056abb99028ef6d825b6a533bd SHA512 e39f660c023aa65e55388be225b5591fe2a5c9138693f3c9107e2eb4ce97fafde118d3375e01ada99d29de9633f56221b5b3d640c982178884670cd84c8aa986
EBUILD 7-zip-23.01.ebuild 1143 BLAKE2B 782264f6ffe91bda3e57ea56d908370a27fdf058afde21623c34e968a4c83071abbed3c260520e8801259b8a7f2414b439a7ba0e442e1d53363621a03e8d983c SHA512 851df830699f86d11c8e1cd081c0cadc9ba5384449020f1312512b3374a52dd05f0c030b00648e1546edd2aaba204f5a5d987fc663f8434d522d9e9e18d64080

0 comments on commit 89bb699

Please sign in to comment.