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 A65B915803E for ; Tue, 2 Jan 2024 16:02:39 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E8F812BC01E; Tue, 2 Jan 2024 16:02:38 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (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 D11302BC01E for ; Tue, 2 Jan 2024 16:02:38 +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) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 0897134069F for ; Tue, 2 Jan 2024 16:02:38 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 221FDAC2 for ; Tue, 2 Jan 2024 16:02:36 +0000 (UTC) From: "Denis Reva" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Denis Reva" Message-ID: <1704211342.c8800882066b974e94ad272703459fe81be31e1f.RarogCmex@gentoo> Subject: [gentoo-commits] repo/proj/guru:dev commit in: sys-fs/dwarfs/ X-VCS-Repository: repo/proj/guru X-VCS-Files: sys-fs/dwarfs/Manifest sys-fs/dwarfs/dwarfs-0.7.4.ebuild X-VCS-Directories: sys-fs/dwarfs/ X-VCS-Committer: RarogCmex X-VCS-Committer-Name: Denis Reva X-VCS-Revision: c8800882066b974e94ad272703459fe81be31e1f X-VCS-Branch: dev Date: Tue, 2 Jan 2024 16:02:36 +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: 9747acb0-5be1-4e4e-912d-9163531e264d X-Archives-Hash: d7c22307e11df7cca9765a6460ebeda3 commit: c8800882066b974e94ad272703459fe81be31e1f Author: Denis Reva gmail com> AuthorDate: Tue Jan 2 16:02:22 2024 +0000 Commit: Denis Reva gmail com> CommitDate: Tue Jan 2 16:02:22 2024 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=c8800882 sys-fs/dwarfs: version bump Signed-off-by: Denis Reva gmail.com> sys-fs/dwarfs/Manifest | 1 + sys-fs/dwarfs/dwarfs-0.7.4.ebuild | 121 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 122 insertions(+) diff --git a/sys-fs/dwarfs/Manifest b/sys-fs/dwarfs/Manifest index 7b9306fda0..7219d4f076 100644 --- a/sys-fs/dwarfs/Manifest +++ b/sys-fs/dwarfs/Manifest @@ -1 +1,2 @@ DIST dwarfs-0.7.2.tar.xz 15108504 BLAKE2B 85cb90ea7d20c3c067c126dc7f7a65145041f6ef2853f96a89ca425a8a1dab9d49a0a21daa9590037aa0a9fcfc4f11fbb91d4417213318a699472532400017bb SHA512 5f455b4e15ac3ef5fba8cf26295c4bce19b613d5bc09781ed0a0fd77c2ae73b197e50dce411a21b856aababb59a1800e767c40d55f0f86d88badf021042c1fd6 +DIST dwarfs-0.7.4.tar.xz 15112544 BLAKE2B 904c5f089589630ac10441ec86feb3a4df30ad901a809e93942970fbc32f05499d6996f73769d3ada10e7aa224ec71a50144d9d605d5df852c86116efc82c090 SHA512 b78e0544ea04200089efd970250417ace6a354ba3090f7f8cbe4b901c5575f752968d1720cdd6e35109920f1e363cf3b70d777a46addd2214c2f5fdf83f90e19 diff --git a/sys-fs/dwarfs/dwarfs-0.7.4.ebuild b/sys-fs/dwarfs/dwarfs-0.7.4.ebuild new file mode 100644 index 0000000000..983d49b3c8 --- /dev/null +++ b/sys-fs/dwarfs/dwarfs-0.7.4.ebuild @@ -0,0 +1,121 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{10..12} ) + +inherit check-reqs cmake flag-o-matic python-single-r1 + +DESCRIPTION="A fast very high compression read-only FUSE file system" +HOMEPAGE="https://github.com/mhx/dwarfs" +SRC_URI="https://github.com/mhx/dwarfs/releases/download/v${PV}/${P}.tar.xz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64" +IUSE="python +jemalloc test man" +S="${WORKDIR}/dwarfs-${PV}" + +PATCHES=() + +RDEPEND=" + ${PYTHON_DEPS} + app-arch/libarchive + app-arch/lz4 + app-arch/snappy + app-arch/xz-utils + app-arch/zstd + dev-cpp/gflags + dev-cpp/glog[gflags] + dev-cpp/parallel-hashmap:= + dev-libs/boost[context,python?] + dev-libs/double-conversion + dev-libs/libevent + dev-libs/libfmt + dev-libs/utfcpp + dev-libs/xxhash + sys-fs/fuse:3 + dev-libs/fsst + sys-libs/binutils-libs + sys-libs/libunwind + sys-libs/zlib + !dev-cpp/fbthrift + !dev-cpp/fizz + !dev-cpp/folly + !dev-cpp/wangle + jemalloc? ( >=dev-libs/jemalloc-5.3.0-r1 ) +" + +DEPEND="${RDEPEND}" +BDEPEND=" + dev-util/patchelf + sys-devel/bison + sys-devel/flex + virtual/pkgconfig + man? ( app-text/ronn-ng ) + test? ( dev-cpp/gtest ) +" + +DOCS=( "README.md" "CHANGES.md" "TODO" ) +RESTRICT="!test? ( test )" +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" + +CHECKREQS_DISK_BUILD="1300M" +CMAKE_IN_SOURCE_BUILD=1 +CMAKE_WARN_UNUSED_CLI=0 +#These files supposed to have no symlink +QA_SONAME=( +"/usr/sbin/dwarfs" +"/usr/bin/dwarfsbench" +"/usr/bin/dwarfsck" +"/usr/bin/dwarfsextract" +"/usr/bin/mkdwarfs" +) +src_prepare(){ + rm -r zstd xxHash parallel-hashmap || die + cmake_src_prepare + sed "s/DESTINATION lib/DESTINATION $(get_libdir)/" -i CMakeLists.txt || die +} + +src_configure(){ + append-cxxflags "-I/usr/include" + + mycmakeargs=( + -DUSE_JEMALLOC=$(usex jemalloc ON OFF) + -DWITH_PYTHON=$(usex python ON OFF) + -DWITH_TESTS=$(usex test ON OFF) + -DWITH_MAN_PAGES=$(usex man ON OFF) + -DPREFER_SYSTEM_ZSTD=ON + -DPREFER_SYSTEM_XXHASH=ON + -DPREFER_SYSTEM_GTEST=ON + -DPREFER_SYSTEM_LIBFMT=ON + -DWITH_LEGACY_FUSE=OFF + ) + use python && mycmakeargs+=( "-DWITH_PYTHON_VERSION=${EPYTHON#python}" ) + cmake_src_configure +} +src_compile(){ + cmake_src_compile + # Remove insecure RPATH from bundled lib + patchelf --remove-rpath libdwarfs.so || die + patchelf --remove-rpath libdwarfs_tool.so || die + patchelf --remove-rpath libmetadata_thrift.so || die + patchelf --remove-rpath libdwarfs_compression.so || die + patchelf --remove-rpath libthrift_light.so || die + patchelf --remove-rpath libdwarfs_main.so || die + # TODO: make it proper +} +src_install(){ + # Perform install + cmake_src_install + dolib.so libdwarfs.so libdwarfs_main.so libdwarfs_tool.so libdwarfs_compression.so libthrift_light.so libmetadata_thrift.so || die "Install failed" + dolib.so folly/libfolly.so folly/libfolly.so.0.58.0-dev libmkdwarfs_main.so libdwarfsbench_main.so libdwarfsck_main.so libdwarfsextract_main.so || die "Install failed" +} + +pkg_postinst(){ + elog "You may find more information in the" + elog "${HOMEPAGE}" + elog "About creating: ${HOMEPAGE}/blob/main/doc/mkdwarfs.md" + elog "About mounting: ${HOMEPAGE}/blob/main/doc/dwarfs.md" +}