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 2BFBB158094 for ; Thu, 23 Jun 2022 05:35:36 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 221F4E0B4A; Thu, 23 Jun 2022 05:35: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) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 02CE2E0B4A for ; Thu, 23 Jun 2022 05:35:34 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (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 F0127341388 for ; Thu, 23 Jun 2022 05:35:33 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 66F10510 for ; Thu, 23 Jun 2022 05:35:32 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1655962497.9d41061cf0a2f1f85399bc1442098bb97fe96386.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/redo/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-util/redo/Manifest dev-util/redo/redo-0.42d.ebuild X-VCS-Directories: dev-util/redo/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 9d41061cf0a2f1f85399bc1442098bb97fe96386 X-VCS-Branch: master Date: Thu, 23 Jun 2022 05:35:32 +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: 80f36d76-5f06-4524-9257-1f89016d217d X-Archives-Hash: 78a6bfcf0dadd8f6ac9c032d8519dcea commit: 9d41061cf0a2f1f85399bc1442098bb97fe96386 Author: Sam James gentoo org> AuthorDate: Thu Jun 23 05:34:22 2022 +0000 Commit: Sam James gentoo org> CommitDate: Thu Jun 23 05:34:57 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9d41061c dev-util/redo: add 0.42d Bug: https://bugs.gentoo.org/775212 Bug: https://bugs.gentoo.org/671840 Closes: https://bugs.gentoo.org/832245 Closes: https://bugs.gentoo.org/764068 Closes: https://bugs.gentoo.org/671842 Closes: https://bugs.gentoo.org/678988 Signed-off-by: Sam James gentoo.org> dev-util/redo/Manifest | 1 + dev-util/redo/redo-0.42d.ebuild | 63 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 64 insertions(+) diff --git a/dev-util/redo/Manifest b/dev-util/redo/Manifest index 3f16c673454c..dc0b3f604565 100644 --- a/dev-util/redo/Manifest +++ b/dev-util/redo/Manifest @@ -1 +1,2 @@ DIST redo-0.42c.tar.gz 195232 BLAKE2B b24969d71b247d02642340cebbf325e2ae68d4893d02e489930120e6aac76bd3099fd42e7dc36dae1fdea5c7825657957291876b906c2671a6319f8eb45a9d91 SHA512 3196ff5941d9e62084c7332a6771edd0db0082a499ba16fb6de273295c65b734e7dadb29a9fca3e6266421bc964369a8e725ef55f59ade2ecfb5e8bcc446ced0 +DIST redo-0.42d.tar.gz 195186 BLAKE2B 2f36dc8380d9e20475788b8d94ce02d6375ddf0a0e745dc68b7e350c427522088243bca16bd8d7c760ada17de75560e9cfdf5282a5e39081fee395a142164c82 SHA512 2749a1a1046f8edd63c4b4e2b0f4d95988dfcf8c776b264007914e583fc21ff51447be34ffc2c136c343ace8c38147d6a43c0c0dd01a681b6283a38d5d8f3fb7 diff --git a/dev-util/redo/redo-0.42d.ebuild b/dev-util/redo/redo-0.42d.ebuild new file mode 100644 index 000000000000..3eb879fff843 --- /dev/null +++ b/dev-util/redo/redo-0.42d.ebuild @@ -0,0 +1,63 @@ +# Copyright 2018-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{8..11} ) +PYTHON_REQ_USE="sqlite" +inherit edo multiprocessing python-single-r1 + +DESCRIPTION="Smaller, easier, more powerful, and more reliable than make" +HOMEPAGE="https://github.com/apenwarr/redo" +SRC_URI="https://github.com/apenwarr/redo/archive/${P}.tar.gz" +S="${WORKDIR}"/${PN}-${P} + +LICENSE="LGPL-2" +SLOT="0" +KEYWORDS="~amd64 ~hppa ~x86" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +BDEPEND=" + $(python_gen_cond_dep ' + dev-python/beautifulsoup4[${PYTHON_USEDEP}] + dev-python/markdown[${PYTHON_USEDEP}] + ') + ${PYTHON_DEPS} +" +RDEPEND="${BDEPEND}" + +src_prepare() { + default + + sed -i -e "s:which:command -v:" redo/sh.do || die + sed -i "1s;^;#!${PYTHON}\n;" docs/md2man.py || die +} + +src_configure() { + echo ${PYTHON} > redo/whichpython || die +} + +src_compile() { + edo ./do -j$(makeopts_jobs) build +} + +src_test() { + local ARCH= CFLAGS= CXXFLAGS= LDFLAGS= + edo ./do -j$(makeopts_jobs) test +} + +src_install() { + DESTDIR="${D}" \ + DOCDIR="${D}/usr/share/doc/${PF}" \ + LIBDIR="${D}/$(python_get_sitedir)/${PN}" \ + edo ./do -j$(makeopts_jobs) \ + install + + python_fix_shebang "${D}" + + sed -i \ + -e 's|/lib/|/'"$(get_libdir)"'/|g' \ + "${D}"/usr/bin/* || die + + python_optimize +}