summaryrefslogtreecommitdiff
path: root/sys-apps/dtc
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-06-06 15:39:49 +0100
committerV3n3RiX <venerix@koprulu.sector>2023-06-06 15:39:49 +0100
commita52a3a626c1d57fc0b3dbf58e79a23e88c3dd4ff (patch)
tree82d493ce372e412edd2cd56af2108b00677d5f74 /sys-apps/dtc
parent996d1cba721b044876526a7f3c1d2ef1fcc90bb4 (diff)
gentoo auto-resync : 06:06:2023 - 15:39:49
Diffstat (limited to 'sys-apps/dtc')
-rw-r--r--sys-apps/dtc/Manifest4
-rw-r--r--sys-apps/dtc/dtc-1.7.0.ebuild18
-rw-r--r--sys-apps/dtc/dtc-9999.ebuild18
3 files changed, 30 insertions, 10 deletions
diff --git a/sys-apps/dtc/Manifest b/sys-apps/dtc/Manifest
index 3994e063817f..edb0a5cd0024 100644
--- a/sys-apps/dtc/Manifest
+++ b/sys-apps/dtc/Manifest
@@ -3,6 +3,6 @@ AUX dtc-1.7.0-meson-tests.patch 1265 BLAKE2B f121b676e2f711e6be75ff4f2c7a077b7e9
DIST dtc-1.6.0.tar.xz 158584 BLAKE2B 47b15b5df7f5d87369d6daaad87f2989a80865f2fab19f89d050d390a9f8319bcd86a36e12f7cc8d62947bb4d1335769071d0e3ea0a6e16861aea163e78f4696 SHA512 15433b24f1d6b7ed1f8066d050bd1bcbf988731aa38147564e3dd04b5f69af8d69e03befdc621a768526c620425a9bdd24aad4f9ff135930d6a1eeb0625f7de3
DIST dtc-1.7.0.tar.xz 165548 BLAKE2B de433a1034b7ef75559bf39f85695d0b275cfd17bf100c12b6186e226a65659053f9b5a053f20e64a5a0670ea3e728edd0e624c26287bd264594569408065bab SHA512 d3ba6902a9a2f2cdbaff55f12fca3cfe4a1ec5779074a38e3d8b88097c7abc981835957e8ce72971e10c131e05fde0b1b961768e888ff96d89e42c75edb53afb
EBUILD dtc-1.6.0.ebuild 1492 BLAKE2B 957458c9146b49b9b2955a657ec63dbc152730b35012ff5ac6e9160fd4950af173878aa3922a3d73217f4e4fb29436443984b6fcddc94e71110e4d5c75e4149d SHA512 0161cd769f265b60e458e945e780181b91efeaf1c16f7f38149f6488bcf8167381d0fa820b8aebfd15fd1c5bd4be773a852621fd6ceae58c7e17ba9d92f98f45
-EBUILD dtc-1.7.0.ebuild 1287 BLAKE2B 7d2c6b74ff73e622efbb4c7c8fdac1ac56024146faefeb36491ef139e09bc224d1b0f8ba2d6027267be137a554d1d9d56d847e082a3b969eb492882622641b07 SHA512 71653acdd0790fc9d9fc8218d2a7914a1ace2abfd0a23ff2b8e5dc5fd9eb86dcc46e537792f77fe15a0b13576daec2805a41c62deefd5c8b3cc61490ca165b5d
-EBUILD dtc-9999.ebuild 1206 BLAKE2B d4ac187a42e2229e08d874caff22528f519c4a9b7aaf23a4d3b1c00e8f4d38f49265402a073873559278bf940b8988da704ed818c9ee24fa64a178ff6da162f8 SHA512 018cb68787651cd419b9962be649926cf1614f5d18d5e7edb0dda1556b8ddcf9a1ad5cf2ad668b8aabe36c6fe79329be36906f91d8216e151fb75402bdec6732
+EBUILD dtc-1.7.0.ebuild 1519 BLAKE2B 2928bfdb686153af8e3351d64b4581e33c8d3f0113360d3f9c917ab991a56865ed15196f8267e7ab46c439cf66e1287d0931441f4974e863d9fba5616c4d2258 SHA512 29cfd7405992b79f32585e9a09b83c5a0017b9e77adbb883e79d21cb0ff76db7b1ed842d1490f0b6600aa319aea9b139cd51d89e59722de349c9140eef4cf5eb
+EBUILD dtc-9999.ebuild 1438 BLAKE2B c577f50a247166285d34203d9acc36b7fb8392e3a715c5c68dac5c6c6393fa12c08ebb7b0a93fe2a263a2c7661c6efaf8946e9c32564f03f3f2ccbb82b1f3117 SHA512 eaf9b13a03113d2d40d59579ad11378a69ba438f306f3b0c49cfe7a6988647e462d8a6f2db0a79847d3badae0c3010ee790b170705afad6df2f9030a0218caa4
MISC metadata.xml 492 BLAKE2B dc331e157119b6db3bb419e04722511406295b39ee40bcae29dbbe3f8fa3737aa221c2d61b16b45b8361c1b6ffadd634ffa65377d33cc808d11a8128389bdfd0 SHA512 cf2441cf6ea1075cf633edf903a54a637cbaff2545ccd65290c1c1b3f5452ce3d74df5ce4ffe68ab15857eaea1ffeac7f3e80b42fb4dae3af1c3636e4b0766fb
diff --git a/sys-apps/dtc/dtc-1.7.0.ebuild b/sys-apps/dtc/dtc-1.7.0.ebuild
index 117f6b36238e..6427393029fc 100644
--- a/sys-apps/dtc/dtc-1.7.0.ebuild
+++ b/sys-apps/dtc/dtc-1.7.0.ebuild
@@ -3,7 +3,8 @@
EAPI=8
-inherit meson
+PYTHON_COMPAT=( python3_{10..11} )
+inherit meson python-single-r1
if [[ ${PV} == 9999 ]] ; then
EGIT_REPO_URI="https://git.kernel.org/pub/scm/utils/dtc/dtc.git"
@@ -18,15 +19,20 @@ HOMEPAGE="https://devicetree.org/ https://git.kernel.org/cgit/utils/dtc/dtc.git/
LICENSE="GPL-2"
SLOT="0"
-IUSE="static-libs test yaml"
+IUSE="python static-libs test yaml"
RESTRICT="!test? ( test )"
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
BDEPEND="
sys-devel/bison
sys-devel/flex
virtual/pkgconfig
+ python? ( dev-lang/swig )
+"
+RDEPEND="
+ python? ( ${PYTHON_DEPS} )
+ yaml? ( dev-libs/libyaml )
"
-RDEPEND="yaml? ( dev-libs/libyaml )"
DEPEND="${RDEPEND}"
DOCS=(
@@ -40,6 +46,10 @@ PATCHES=(
"${FILESDIR}"/${P}-meson-macos.patch
)
+pkg_setup() {
+ use python && python-single-r1_pkg_setup
+}
+
src_prepare() {
default
@@ -51,9 +61,9 @@ src_prepare() {
src_configure() {
local emesonargs=(
-Ddefault_library=$(usex static-libs both shared)
- -Dpython=disabled
-Dtools=true
-Dvalgrind=disabled # only used for some tests
+ $(meson_feature python)
$(meson_feature yaml)
)
diff --git a/sys-apps/dtc/dtc-9999.ebuild b/sys-apps/dtc/dtc-9999.ebuild
index ce10f9e3b775..72cf9d539b46 100644
--- a/sys-apps/dtc/dtc-9999.ebuild
+++ b/sys-apps/dtc/dtc-9999.ebuild
@@ -3,7 +3,8 @@
EAPI=8
-inherit meson
+PYTHON_COMPAT=( python3_{10..11} )
+inherit meson python-single-r1
if [[ ${PV} == 9999 ]] ; then
EGIT_REPO_URI="https://git.kernel.org/pub/scm/utils/dtc/dtc.git"
@@ -18,15 +19,20 @@ HOMEPAGE="https://devicetree.org/ https://git.kernel.org/cgit/utils/dtc/dtc.git/
LICENSE="GPL-2"
SLOT="0"
-IUSE="static-libs test yaml"
+IUSE="python static-libs test yaml"
RESTRICT="!test? ( test )"
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
BDEPEND="
sys-devel/bison
sys-devel/flex
virtual/pkgconfig
+ python? ( dev-lang/swig )
+"
+RDEPEND="
+ python? ( ${PYTHON_DEPS} )
+ yaml? ( >=dev-libs/libyaml-0.2.3 )
"
-RDEPEND="yaml? ( >=dev-libs/libyaml-0.2.3 )"
DEPEND="${RDEPEND}"
DOCS=(
@@ -35,6 +41,10 @@ DOCS=(
Documentation/manual.txt
)
+pkg_setup() {
+ use python && python-single-r1_pkg_setup
+}
+
src_prepare() {
default
@@ -46,9 +56,9 @@ src_prepare() {
src_configure() {
local emesonargs=(
-Ddefault_library=$(usex static-libs both shared)
- -Dpython=disabled
-Dtools=true
-Dvalgrind=disabled # only used for some tests
+ $(meson_feature python)
$(meson_feature yaml)
)