From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id BBBF915800A for ; Mon, 28 Aug 2023 16:33:38 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B0BA42BC02C; Mon, 28 Aug 2023 16:33:35 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 93BB92BC02C for ; Mon, 28 Aug 2023 16:33:35 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 44693340DD5 for ; Mon, 28 Aug 2023 16:33:34 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 758EA10DB for ; Mon, 28 Aug 2023 16:33:31 +0000 (UTC) From: "David Roman" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "David Roman" Message-ID: <1693192231.9033c9230b8c6a3b6f21713229a128c91714be56.davidroman@gentoo> Subject: [gentoo-commits] repo/proj/guru:master commit in: app-arch/7zip/ X-VCS-Repository: repo/proj/guru X-VCS-Files: app-arch/7zip/7zip-23.01.ebuild app-arch/7zip/Manifest app-arch/7zip/metadata.xml X-VCS-Directories: app-arch/7zip/ X-VCS-Committer: davidroman X-VCS-Committer-Name: David Roman X-VCS-Revision: 9033c9230b8c6a3b6f21713229a128c91714be56 X-VCS-Branch: master Date: Mon, 28 Aug 2023 16:33:31 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 93188b31-8e29-45cb-b913-d970f0002cf1 X-Archives-Hash: 182382bd9ed66c532c9ed93083697aa5 commit: 9033c9230b8c6a3b6f21713229a128c91714be56 Author: Martin Matouš matous dev> AuthorDate: Mon Aug 28 03:10:31 2023 +0000 Commit: David Roman gmail com> CommitDate: Mon Aug 28 03:10:31 2023 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=9033c923 app-arch/7zip: new package, add 23.01 Signed-off-by: Martin Matouš matous.dev> app-arch/7zip/7zip-23.01.ebuild | 63 +++++++++++++++++++++++++++++++++++++++++ app-arch/7zip/Manifest | 1 + app-arch/7zip/metadata.xml | 19 +++++++++++++ 3 files changed, 83 insertions(+) diff --git a/app-arch/7zip/7zip-23.01.ebuild b/app-arch/7zip/7zip-23.01.ebuild new file mode 100644 index 0000000000..191ccaaeee --- /dev/null +++ b/app-arch/7zip/7zip-23.01.ebuild @@ -0,0 +1,63 @@ +# Copyright 2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit toolchain-funcs + +NO_DOT_PV=$(ver_rs 1- '') +DESCRIPTION="A free file archiver for extremely high compression" +HOMEPAGE="https://www.7-zip.org/ https://sourceforge.net/projects/sevenzip/" +SRC_URI="https://sourceforge.net/projects/sevenzip/files/7-Zip/${PV}/7z${NO_DOT_PV}-src.tar.xz/download -> ${PN}-${PV}.tar.xz" +LICENSE="LGPL-2 BSD" + +IUSE="asm" +SLOT="0" +KEYWORDS="~amd64" + +S="${WORKDIR}/CPP/7zip/" +RESTRICT="mirror" + +RDEPEND="" +DEPEND="${RDEPEND}" +BDEPEND="asm? ( dev-lang/jwasm )" + +pkg_setup() { + # instructions in DOC/readme.txt, Compiling 7-Zip for Unix/Linux + # TLDR; every combination of options (clang|gcc)+(asm/noasm) + # has a dedicated makefile & builddir + mfile="cmpl" + if tc-is-clang; then + mfile="${mfile}_clang" + bdir=c + elif tc-is-gcc; then + mfile="${mfile}_gcc" + bdir=g + else + die "Unsupported compiler: $(tc-getCC)" + fi + if use asm ; then + mfile="${mfile}_x64" + bdir="${bdir}_x64" + fi + export mfile="${mfile}.mak" + export bdir +} + +src_prepare() { + default + sed -i -e 's/-Werror //g' ./7zip_gcc.mak || die "Error removing -Werror" + sed -i -e 's/$(LFLAGS_STRIP)//g' ./7zip_gcc.mak \ + || die "Error removing hardcoded strip" +} + +src_compile() { + pushd "./Bundles/Alone2" || die "Unable to switch directory" + # USE_JWASM=1 - if asm: use JWasm assembler instead of Asmc (not a gentoo package) + emake DISABLE_RAR=1 USE_JWASM=1 --file "../../${mfile}" + popd > /dev/null || die "Unable to switch directory" +} + +src_install() { + dobin "./Bundles/Alone2/b/${bdir}/7zz" +} diff --git a/app-arch/7zip/Manifest b/app-arch/7zip/Manifest new file mode 100644 index 0000000000..0f23ebee40 --- /dev/null +++ b/app-arch/7zip/Manifest @@ -0,0 +1 @@ +DIST 7zip-23.01.tar.xz 1378588 BLAKE2B 348484b24b39db70e513fe50d79954ea0e2dd669f83e3601fa796c8f0ca4734132ca20fac8cda9b8ba550bad9146627fc0ae07056abb99028ef6d825b6a533bd SHA512 e39f660c023aa65e55388be225b5591fe2a5c9138693f3c9107e2eb4ce97fafde118d3375e01ada99d29de9633f56221b5b3d640c982178884670cd84c8aa986 diff --git a/app-arch/7zip/metadata.xml b/app-arch/7zip/metadata.xml new file mode 100644 index 0000000000..099821269c --- /dev/null +++ b/app-arch/7zip/metadata.xml @@ -0,0 +1,19 @@ + + + + + Use dev-lang/jwasm to include optimized code + + + m@matous.dev + Martin Matouš + + + + Igor Pavlov + + sevenzip + https://www.7-zip.org/history.txt + https://sourceforge.net/p/sevenzip/bugs/ + +