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 AE63615810F for ; Sat, 3 Jun 2023 17:21:20 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A6C28E081B; Sat, 3 Jun 2023 17:21:19 +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 889CDE081B for ; Sat, 3 Jun 2023 17:21:19 +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 8C70A341092 for ; Sat, 3 Jun 2023 17:21:18 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id B2B5AA85 for ; Sat, 3 Jun 2023 17:21:16 +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: <1685812585.fdae662fec725b6134a7091052c3de734408008b.arthurzam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/libbytesize/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-libs/libbytesize/Manifest dev-libs/libbytesize/libbytesize-2.8.ebuild X-VCS-Directories: dev-libs/libbytesize/ X-VCS-Committer: arthurzam X-VCS-Committer-Name: Arthur Zamarin X-VCS-Revision: fdae662fec725b6134a7091052c3de734408008b X-VCS-Branch: master Date: Sat, 3 Jun 2023 17:21:16 +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: 0635482f-f03f-4f11-85c2-e435f68b2a94 X-Archives-Hash: 1294957a2d9f125796334a7fa1f84ca4 commit: fdae662fec725b6134a7091052c3de734408008b Author: Arthur Zamarin gentoo org> AuthorDate: Sat Jun 3 17:16:25 2023 +0000 Commit: Arthur Zamarin gentoo org> CommitDate: Sat Jun 3 17:16:25 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fdae662f dev-libs/libbytesize: add 2.8 Signed-off-by: Arthur Zamarin gentoo.org> dev-libs/libbytesize/Manifest | 1 + dev-libs/libbytesize/libbytesize-2.8.ebuild | 92 +++++++++++++++++++++++++++++ 2 files changed, 93 insertions(+) diff --git a/dev-libs/libbytesize/Manifest b/dev-libs/libbytesize/Manifest index 44b25f50477b..438ac24f5831 100644 --- a/dev-libs/libbytesize/Manifest +++ b/dev-libs/libbytesize/Manifest @@ -1,2 +1,3 @@ DIST libbytesize-2.6.tar.gz 444795 BLAKE2B 5f89b2c614ebdd8efd3ac0841ad99c32309bdb33236373a0c9b007415a2f40ff30a0edcecb56947f2f41403cabb6a6bff68c2e4ce52e322df15d6daa3e10d2af SHA512 f6e72b763216c54c08318d090d604791c61cd5a3e683ffbe6e9d01de850661bd4e8a3adeb85c6fd0fb60244e2e128292cbae06c0aa2d1fe9f34104e64af8210e DIST libbytesize-2.7.tar.gz 445367 BLAKE2B de5e48b4e17364308c19bbf8e8d68f88ee9e79c9b99d77a81f9f7a1b65e09c2af0ca1ae28ac30ad1b1820335afc1aa4a2596cff487cfd770f04fda0fb38258cd SHA512 3f2bdebad1e145227d7c81b25b8832ab9f984513c35d81254f68c0cb50b1883f3b96fbb258d7c8223fb284d79dc4ec8b01beae3f7687cded629b269ef5b7210e +DIST libbytesize-2.8.tar.gz 458581 BLAKE2B 55726f5a83ecda96be58bd5fe650555b0ebd210d73673b7ced6476689c7d37a5d9107f917ac8b0b15b4e2e8cee0a0da8711e718baa07de166979f44287432a14 SHA512 96543b75dd5a3409e0316b46725409bc5b04acb0d6c85875bbc2eb8cfd842c543ace99ffe84c09c16daa3fd1346d2aa64df20ed171bb4540642fdba7499922ca diff --git a/dev-libs/libbytesize/libbytesize-2.8.ebuild b/dev-libs/libbytesize/libbytesize-2.8.ebuild new file mode 100644 index 000000000000..69cad4e8a433 --- /dev/null +++ b/dev-libs/libbytesize/libbytesize-2.8.ebuild @@ -0,0 +1,92 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{9..11} ) + +inherit autotools python-r1 + +DESCRIPTION="Tiny library providing a C \"class\" for working with arbitrary big sizes in bytes" +HOMEPAGE="https://github.com/storaged-project/libbytesize" +SRC_URI="https://github.com/storaged-project/libbytesize/releases/download/${PV}/${P}.tar.gz" +LICENSE="LGPL-2+" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86" +IUSE="doc python test tools" + +REQUIRED_USE=" + python? ( ${PYTHON_REQUIRED_USE} ) + tools? ( python ) +" + +RDEPEND=" + dev-libs/gmp:0= + dev-libs/mpfr:= + dev-libs/libpcre2:= + python? ( ${PYTHON_DEPS} ) +" + +DEPEND="${RDEPEND}" + +BDEPEND=" + sys-devel/gettext + doc? ( + dev-util/gtk-doc + virtual/pkgconfig + ) + test? ( + dev-python/pocketlint[${PYTHON_USEDEP}] + dev-python/polib[${PYTHON_USEDEP}] + ) +" + +DOCS=( README.md ) + +RESTRICT="test" + +PATCHES=( + "${FILESDIR}/${PN}-2.4-no_Werror.patch" +) + +python_do() { + if use python ; then + python_foreach_impl run_in_build_dir "$@" + else + "$@" + fi +} + +src_prepare() { + default + eautoreconf +} + +src_configure() { + local myeconfargs=( + $(use_with doc gtk-doc) + $(use_with python python3) + $(use_with tools) + ) + local ECONF_SOURCE="${S}" + python_do econf "${myeconfargs[@]}" +} + +src_compile() { + python_do emake +} + +src_test() { + python_do emake check +} + +install_helper() { + emake DESTDIR="${D}" install + use python && python_optimize +} + +src_install() { + python_do install_helper + einstalldocs + find "${ED}" -name "*.la" -type f -delete || die +}