summaryrefslogtreecommitdiff
path: root/dev-util/libtypec-utils
diff options
context:
space:
mode:
Diffstat (limited to 'dev-util/libtypec-utils')
-rw-r--r--dev-util/libtypec-utils/Manifest1
-rw-r--r--dev-util/libtypec-utils/libtypec-utils-0.5.2.ebuild35
-rw-r--r--dev-util/libtypec-utils/metadata.xml24
3 files changed, 60 insertions, 0 deletions
diff --git a/dev-util/libtypec-utils/Manifest b/dev-util/libtypec-utils/Manifest
new file mode 100644
index 000000000000..d6f2aad1b60b
--- /dev/null
+++ b/dev-util/libtypec-utils/Manifest
@@ -0,0 +1 @@
+DIST libtypec-0.5.2.tar.gz 37224 BLAKE2B 691c62e4be16cb02143cec3f4391272bb54bd8eafa36b43614b96a4cd086069ed41f74741f0c36d8b39e3386384f0147551754e24e2742fff9452ec410f3b4ef SHA512 9dc71ba9a6f74f04fe96f4b5b632c83c52aa2ed693b743074b4943b5a9899433cad615770f527abdfa0d86008e7b326a028d8cd50dcd2caecf9805889f286c6f
diff --git a/dev-util/libtypec-utils/libtypec-utils-0.5.2.ebuild b/dev-util/libtypec-utils/libtypec-utils-0.5.2.ebuild
new file mode 100644
index 000000000000..cf60464aaed3
--- /dev/null
+++ b/dev-util/libtypec-utils/libtypec-utils-0.5.2.ebuild
@@ -0,0 +1,35 @@
+# Copyright 2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit meson
+
+DESCRIPTION="Library to interface with USB Type-C/Power Delivery devices"
+HOMEPAGE="https://github.com/libtypec/libtypec"
+SRC_URI="https://github.com/libtypec/libtypec/archive/refs/tags/libtypec-${PV}.tar.gz"
+
+S="${WORKDIR}/libtypec-libtypec-${PV}"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64"
+
+BDEPEND="
+ virtual/pkgconfig
+"
+DEPEND="
+ dev-libs/libtypec
+ virtual/udev
+"
+RDEPEND="${DEPEND}"
+
+src_compile() {
+ # Build just the utils subproject
+ meson setup --reconfigure utils utils_build --prefix="${EPREFIX}/usr" || die
+}
+
+src_install() {
+ # Install just the utils subproject
+ cd utils_build && DESTDIR="${D}" meson install || die
+}
diff --git a/dev-util/libtypec-utils/metadata.xml b/dev-util/libtypec-utils/metadata.xml
new file mode 100644
index 000000000000..d94282567731
--- /dev/null
+++ b/dev-util/libtypec-utils/metadata.xml
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://liguros.gitlab.io/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>adrian.ratiu@collabora.com</email>
+ <name>Adrian Ratiu</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+ </maintainer>
+ <longdescription>
+ “libtypec-utils” provides a set of diagnostic and debug tools
+ to debug system issues around USB-C/USB PD topology, based on
+ the libtypec project.
+ </longdescription>
+ <upstream>
+ <maintainer>
+ <email>rajaram.regupathy@gmail.com</email>
+ <name>Rajaram Regupathy</name>
+ </maintainer>
+ </upstream>
+ <origin>gentoo-guru-overlay</origin>
+</pkgmetadata> \ No newline at end of file