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 B08AB15817D for ; Thu, 13 Jun 2024 08:39:39 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 84B5EE2AC0; Thu, 13 Jun 2024 08:39:35 +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) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 3C8FDE2A9F for ; Thu, 13 Jun 2024 08:39:35 +0000 (UTC) From: Florian Schmaus To: gentoo-dev@lists.gentoo.org Cc: pacho@gentoo.org, Florian Schmaus Subject: [gentoo-dev] [PATCH v3 0/1] greadme.eclass: new eclass Date: Thu, 13 Jun 2024 10:39:24 +0200 Message-ID: <20240613083928.165509-1-flow@gentoo.org> X-Mailer: git-send-email 2.44.2 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Archives-Salt: d7b396ca-6dd0-451a-a7ff-4bef497eeaa1 X-Archives-Hash: ccaa0e6d98ffb50f93d75fcf9920cd8b Following up on the discussion of the last patchset, this - moves the functionally into a new eclass, as adjusting the existing eclass to export new phase functions is not viable. - excludes the README.gentoo from decompression, as all other presented approaches add complexity and cause additional disk space consumption. While on the other hand, README.gentoo files are typically very small because they should be suitable as pkg_postinst output, so ther is often not much gained by compressing them. - adds a GREADME_SHOW show option, to manually override the behavior (as requested by ionen). Note that I choose greadme.eclass as the name for the new eclass for aesthetic reasons. I find readme.gentoo-r2 a mouthful, and it leads to an ugly combination of dot, hyphen, and underscores. However, if anyone wants to have function names like 'readme.gentoo-r2_pkg_postinst', then we can go with that. Florian Schmaus (1): greadme.eclass: new eclass eclass/greadme.eclass | 223 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 223 insertions(+) create mode 100644 eclass/greadme.eclass -- 2.44.2