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 7709815838C for ; Fri, 19 Jan 2024 10:31:54 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 61A5DE2A0C; Fri, 19 Jan 2024 10:31:51 +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 4A8D9E2A0C for ; Fri, 19 Jan 2024 10:31:51 +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 98B0E3433DE for ; Fri, 19 Jan 2024 10:31:50 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 30F1214D1 for ; Fri, 19 Jan 2024 10:31:47 +0000 (UTC) From: "Arthur Zamarin" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Arthur Zamarin" Message-ID: <1705646309.6f58218d8627bee47953cd47f6a70a1fb9b48175.arthurzam@gentoo> Subject: [gentoo-commits] repo/proj/guru:master commit in: sys-fs/dwarfs/ X-VCS-Repository: repo/proj/guru X-VCS-Files: sys-fs/dwarfs/Manifest sys-fs/dwarfs/dwarfs-0.7.5.ebuild X-VCS-Directories: sys-fs/dwarfs/ X-VCS-Committer: arthurzam X-VCS-Committer-Name: Arthur Zamarin X-VCS-Revision: 6f58218d8627bee47953cd47f6a70a1fb9b48175 X-VCS-Branch: master Date: Fri, 19 Jan 2024 10:31:47 +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: 35af8a67-a138-4d5e-8760-ab855e3507ee X-Archives-Hash: 170fe2510d1b4d7b211b9172346ca86c commit: 6f58218d8627bee47953cd47f6a70a1fb9b48175 Author: YiFei Zhu gmail com> AuthorDate: Fri Jan 19 06:37:49 2024 +0000 Commit: Arthur Zamarin gentoo org> CommitDate: Fri Jan 19 06:38:29 2024 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=6f58218d sys-fs/dwarfs: add 0.7.5 Signed-off-by: YiFei Zhu gmail.com> sys-fs/dwarfs/Manifest | 1 + sys-fs/dwarfs/dwarfs-0.7.5.ebuild | 140 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 141 insertions(+) diff --git a/sys-fs/dwarfs/Manifest b/sys-fs/dwarfs/Manifest index 1bf8f607a2..afc7b5de72 100644 --- a/sys-fs/dwarfs/Manifest +++ b/sys-fs/dwarfs/Manifest @@ -1 +1,2 @@ DIST dwarfs-0.7.4.tar.xz 15112544 BLAKE2B 904c5f089589630ac10441ec86feb3a4df30ad901a809e93942970fbc32f05499d6996f73769d3ada10e7aa224ec71a50144d9d605d5df852c86116efc82c090 SHA512 b78e0544ea04200089efd970250417ace6a354ba3090f7f8cbe4b901c5575f752968d1720cdd6e35109920f1e363cf3b70d777a46addd2214c2f5fdf83f90e19 +DIST dwarfs-0.7.5.tar.xz 15110268 BLAKE2B c40d3fd74d750a3da2073ac75a9ddc6c0bf11e9aeb1c7718f0181b33820e6d5ca09ba25be7d6b7224036e02665115f4d43378b5dfe0975a4eea83eb866cfab01 SHA512 95efa1125470cfdbd7f2841a55516ec14c517019b4e38ba7c0627e7d12904f1313a4bc61637362459be3f366da11754a8091a73b241949269f6425404094813a diff --git a/sys-fs/dwarfs/dwarfs-0.7.5.ebuild b/sys-fs/dwarfs/dwarfs-0.7.5.ebuild new file mode 100644 index 0000000000..bda556248d --- /dev/null +++ b/sys-fs/dwarfs/dwarfs-0.7.5.ebuild @@ -0,0 +1,140 @@ +# Copyright 1999-2024 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}" + +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 + +src_prepare() { + rm -r zstd xxHash parallel-hashmap || die + sed "s/DESTINATION lib/DESTINATION $(get_libdir)/" -i CMakeLists.txt || die + + # Bug #900016, but upstream discourages O3 + sed '/FLAGS_RELEASE/s# -O2 -g##' -i CMakeLists.txt || die + sed '/CMAKE_CXX_FLAGS_COMMON/s#-g ##' -i folly/CMake/FollyCompilerUnix.cmake || die + sed '/^\s*-g$/d' -i folly/CMake/FollyCompilerUnix.cmake || die + replace-flags -O3 -O2 + + cmake_src_prepare +} + +src_configure() { + append-cxxflags "-I/usr/include" + append-ldflags $(no-as-needed) + + 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 + -DDISABLE_CCACHE=ON # Use FEATURES=ccache + ) + use python && mycmakeargs+=( "-DWITH_PYTHON_VERSION=${EPYTHON#python}" ) + cmake_src_configure +} + +src_install() { + local libs=( + libdwarfs.so + libdwarfs_main.so + libdwarfs_tool.so + libdwarfs_compression.so + libthrift_light.so + libmetadata_thrift.so + libmkdwarfs_main.so + libdwarfsbench_main.so + libdwarfsck_main.so + libdwarfsextract_main.so + libdwarfsck_main.so + libdwarfsextract_main.so + folly/libfolly.so + folly/libfolly.so.0.58.0-dev + ) + + cmake_src_install + + for lib in "${libs[@]}"; do + # TODO: figure out how to remove this with cmake + patchelf --remove-rpath "$lib" || die + dolib.so "$lib" + done +} + +src_test() { + local CMAKE_SKIP_TESTS=( + # Tests don't work in sandbox + # fuse: failed to open /dev/fuse: Permission denied + dwarfs/tools_test + ) + cmake_src_test +} + +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" +}