app-arch/7-zip: 24.05, use Github sources
This commit is contained in:
parent
9d0b0758db
commit
a72b08001b
3 changed files with 61 additions and 1 deletions
|
@ -7,7 +7,7 @@ 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"
|
||||
SRC_URI="https://github.com/ip7z/7zip/releases/download/${PV}/7z$(ver_rs 1 '')-src.tar.xz"
|
||||
RESTRICT="primaryuri"
|
||||
S="${WORKDIR}"
|
||||
|
||||
|
|
59
app-arch/7-zip/7-zip-24.05.ebuild
Normal file
59
app-arch/7-zip/7-zip-24.05.ebuild
Normal file
|
@ -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="https://github.com/ip7z/7zip/releases/download/${PV}/7z$(ver_rs 1 '')-src.tar.xz"
|
||||
RESTRICT="primaryuri"
|
||||
S="${WORKDIR}"
|
||||
|
||||
LICENSE="LGPL-2.1 BSD rar? ( unRAR )"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 arm64"
|
||||
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
|
||||
}
|
|
@ -1 +1,2 @@
|
|||
DIST 7z2301-src.tar.xz 1378588 BLAKE2B 348484b24b39db70e513fe50d79954ea0e2dd669f83e3601fa796c8f0ca4734132ca20fac8cda9b8ba550bad9146627fc0ae07056abb99028ef6d825b6a533bd SHA512 e39f660c023aa65e55388be225b5591fe2a5c9138693f3c9107e2eb4ce97fafde118d3375e01ada99d29de9633f56221b5b3d640c982178884670cd84c8aa986
|
||||
DIST 7z2405-src.tar.xz 1486772 BLAKE2B 609c7ae8b89e56e747ebfecb25108d8918138f48f0f2ed73183c76101ddd3615aafb9eb7823be0de2a434b450587e01f476d2ed092628a311b6e4ed091e06260 SHA512 d340adfa68e818dd3d3aa411780c81532fa37b6649178b81ec3739725f83e0bc3c01744612b2d467f4d0c2cc984dd35488406d7baee185cf372acebd9c0123a7
|
||||
|
|
Loading…
Add table
Reference in a new issue