summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-embedded')
-rw-r--r--dev-embedded/mavlink_c/Manifest1
-rw-r--r--dev-embedded/mavlink_c/mavlink_c-20220518.ebuild32
-rw-r--r--dev-embedded/mavlink_c/metadata.xml13
3 files changed, 46 insertions, 0 deletions
diff --git a/dev-embedded/mavlink_c/Manifest b/dev-embedded/mavlink_c/Manifest
new file mode 100644
index 000000000000..e9599ebf7272
--- /dev/null
+++ b/dev-embedded/mavlink_c/Manifest
@@ -0,0 +1 @@
+DIST mavlink_c-20220518.tar.gz 875511 BLAKE2B d7776e8200b00802d77a07fac68625a9c72c9c6bec4d35be309235d31731581f7f5faf4b94792cc6158cc69ab56607ab4abb40ffd9879f24c861145fe5aded33 SHA512 9dd29cc6d8efb0d3e18a5d992741fa29ff986c328fb56f73f4e49d31787ced4185d76da98e6efecb9ad25e3e620683bba139f9d30e94c2ef457f9d3f22e5dc62
diff --git a/dev-embedded/mavlink_c/mavlink_c-20220518.ebuild b/dev-embedded/mavlink_c/mavlink_c-20220518.ebuild
new file mode 100644
index 000000000000..5e9873b2d6a0
--- /dev/null
+++ b/dev-embedded/mavlink_c/mavlink_c-20220518.ebuild
@@ -0,0 +1,32 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="7"
+
+MY_PN="c_library_v2"
+MY_P="${MY_PN}-${PV}"
+
+# sadly no upstream tags or releases from gh for ref snapshots
+GIT_COMMIT="241907e288b43513b28f83595d0de3b2088bce0f"
+SRC_URI="https://github.com/mavlink/${MY_PN}/archive/${GIT_COMMIT}.tar.gz -> ${P}.tar.gz"
+KEYWORDS="~amd64 ~arm ~arm64 ~x86"
+S="${WORKDIR}"
+
+DESCRIPTION="Official reference C library for the v2 protocol"
+HOMEPAGE="https://github.com/mavlink/c_library_v2"
+
+LICENSE="MIT"
+SLOT="0"
+IUSE="test"
+
+RESTRICT="test"
+
+src_install() {
+ einfo "Installing base headers required for v2 reference library"
+ mkdir -p "${MY_PN}-${GIT_COMMIT}"/message_definitions/v1.0
+ mv "${MY_PN}-${GIT_COMMIT}"/message_definitions/*.xml \
+ "${MY_PN}-${GIT_COMMIT}"/message_definitions/v1.0/
+ mv "${MY_PN}-${GIT_COMMIT}" mavlink
+
+ doheader -r mavlink
+}
diff --git a/dev-embedded/mavlink_c/metadata.xml b/dev-embedded/mavlink_c/metadata.xml
new file mode 100644
index 000000000000..142eb38b7019
--- /dev/null
+++ b/dev-embedded/mavlink_c/metadata.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>embedded@gentoo.org</email>
+ <name>Embedded Gentoo</name>
+ </maintainer>
+ <upstream>
+ <bugs-to>https://github.com/mavlink/mavlink/issues</bugs-to>
+ <doc lang="en">https://mavlink.io/en/</doc>
+ <remote-id type="github">mavlink/mavlink</remote-id>
+ </upstream>
+</pkgmetadata>