summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2024-11-13 19:47:11 +0000
committerSam James <sam@gentoo.org>2024-11-13 19:48:35 +0000
commit391b81f99d578887755bac0df5ecc719334b1505 (patch)
treeaf5a44966d3abf8cf561abdad001f3a4cfc50a52
parentmedia-libs/alsa-ucm-conf: add 1.2.13 (diff)
downloadgentoo-391b81f99d578887755bac0df5ecc719334b1505.tar.gz
gentoo-391b81f99d578887755bac0df5ecc719334b1505.tar.bz2
gentoo-391b81f99d578887755bac0df5ecc719334b1505.zip
sys-apps/dtc: add 1.7.2
Signed-off-by: Sam James <sam@gentoo.org>
-rw-r--r--sys-apps/dtc/Manifest1
-rw-r--r--sys-apps/dtc/dtc-1.7.2.ebuild66
-rw-r--r--sys-apps/dtc/dtc-9999.ebuild4
3 files changed, 69 insertions, 2 deletions
diff --git a/sys-apps/dtc/Manifest b/sys-apps/dtc/Manifest
index 331bf1ab5539..df415dd5bae2 100644
--- a/sys-apps/dtc/Manifest
+++ b/sys-apps/dtc/Manifest
@@ -1 +1,2 @@
DIST dtc-1.7.1.tar.xz 169524 BLAKE2B c9d9d7c60ce13c8e138ab8ddf3e8166d7cf3867ca4e5ea53621bf73514319faf6a6bac09fb96c971554db9f77dd3428e01d53990586041092a64849685d8854b SHA512 3195924b374680e367d7be6b9793691efc0441858068c8bc8d8a908db00bbae781a99184b5c5e272af39045ec58cb0f92adbdd00ff808480b635bd632aa74719
+DIST dtc-1.7.2.tar.xz 169668 BLAKE2B d345027614a4caff9912b39286e35c1a889bbfd88630bac1c9c48223a6171bd6a8661342c89355e63301b395d1c238be82d21d870b0dd5fc05ae5dd552e730a6 SHA512 30f3611175a5c29556282f3f2894701a5837eb869608d89d78c280af448bbc3a5b6c83f51c28f991847c0eb7c42aa57599bbc31433f1b3b2c8d162cb2169b91f
diff --git a/sys-apps/dtc/dtc-1.7.2.ebuild b/sys-apps/dtc/dtc-1.7.2.ebuild
new file mode 100644
index 000000000000..29954f8a0e3b
--- /dev/null
+++ b/sys-apps/dtc/dtc-1.7.2.ebuild
@@ -0,0 +1,66 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{10..12} )
+inherit meson python-single-r1
+
+if [[ ${PV} == 9999 ]] ; then
+ EGIT_REPO_URI="https://git.kernel.org/pub/scm/utils/dtc/dtc.git"
+ inherit git-r3
+else
+ SRC_URI="https://www.kernel.org/pub/software/utils/${PN}/${P}.tar.xz"
+ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
+fi
+
+DESCRIPTION="Open Firmware device tree compiler"
+HOMEPAGE="https://devicetree.org/ https://git.kernel.org/cgit/utils/dtc/dtc.git/"
+
+LICENSE="GPL-2"
+SLOT="0"
+IUSE="python static-libs test yaml"
+RESTRICT="!test? ( test )"
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
+
+BDEPEND="
+ app-alternatives/yacc
+ app-alternatives/lex
+ virtual/pkgconfig
+ python? ( dev-lang/swig )
+"
+RDEPEND="
+ python? ( ${PYTHON_DEPS} )
+ yaml? ( >=dev-libs/libyaml-0.2.3[static-libs?] )
+"
+DEPEND="
+ ${RDEPEND}
+"
+
+DOCS=(
+ Documentation/dt-object-internal.txt
+ Documentation/dts-format.txt
+ Documentation/manual.txt
+)
+
+pkg_setup() {
+ if use python ; then
+ export SETUPTOOLS_SCM_PRETEND_VERSION=${PV}
+ python-single-r1_pkg_setup
+ fi
+}
+
+src_configure() {
+ local emesonargs=(
+ -Dtools=true
+ -Dvalgrind=disabled # only used for some tests
+ $(meson_feature python)
+ $(meson_use test tests)
+ $(meson_feature yaml)
+ )
+
+ # bug #909366
+ use static-libs && emesonargs+=( -Dstatic-build=true )
+
+ meson_src_configure
+}
diff --git a/sys-apps/dtc/dtc-9999.ebuild b/sys-apps/dtc/dtc-9999.ebuild
index 6da2ddea52c2..27573a122636 100644
--- a/sys-apps/dtc/dtc-9999.ebuild
+++ b/sys-apps/dtc/dtc-9999.ebuild
@@ -11,7 +11,7 @@ if [[ ${PV} == 9999 ]] ; then
inherit git-r3
else
SRC_URI="https://www.kernel.org/pub/software/utils/${PN}/${P}.tar.xz"
- KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
+ KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 ~sparc x86"
fi
DESCRIPTION="Open Firmware device tree compiler"
@@ -31,7 +31,7 @@ BDEPEND="
"
RDEPEND="
python? ( ${PYTHON_DEPS} )
- yaml? ( >=dev-libs/libyaml-0.2.3 )
+ yaml? ( >=dev-libs/libyaml-0.2.3[static-libs?] )
"
DEPEND="
${RDEPEND}