public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: dev-embedded/mavlink_c/
@ 2022-05-29 17:55 Steve Arnold
  0 siblings, 0 replies; only message in thread
From: Steve Arnold @ 2022-05-29 17:55 UTC (permalink / raw
  To: gentoo-commits

commit:     60230c9931c898d349692a973748b66fd7c10821
Author:     Steve Arnold <nerdboy <AT> gentoo <DOT> org>
AuthorDate: Sun May 29 17:54:23 2022 +0000
Commit:     Steve Arnold <nerdboy <AT> gentoo <DOT> org>
CommitDate: Sun May 29 17:55:15 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=60230c99

dev-embedded/mavlink_c: new ebuild for v2 reference library

* baseline dependency for building/regenerating mavlink headers

Package-Manager: Portage-3.0.20, Repoman-3.0.3
Signed-off-by: Steve Arnold <nerdboy <AT> gentoo.org>

 dev-embedded/mavlink_c/Manifest                  |  1 +
 dev-embedded/mavlink_c/mavlink_c-20220518.ebuild | 32 ++++++++++++++++++++++++
 dev-embedded/mavlink_c/metadata.xml              | 13 ++++++++++
 3 files changed, 46 insertions(+)

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>


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2022-05-29 17:55 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-05-29 17:55 [gentoo-commits] repo/gentoo:master commit in: dev-embedded/mavlink_c/ Steve Arnold

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox