diff options
author | Steve Arnold <nerdboy@gentoo.org> | 2022-05-29 10:54:23 -0700 |
---|---|---|
committer | Steve Arnold <nerdboy@gentoo.org> | 2022-05-29 10:55:15 -0700 |
commit | 60230c9931c898d349692a973748b66fd7c10821 (patch) | |
tree | 541ce368f77ed09c7153f1b8099518d61f8b161b /dev-embedded/mavlink_c | |
parent | sys-cluster/kube-scheduler: add 1.24.1 (diff) | |
download | gentoo-60230c9931c898d349692a973748b66fd7c10821.tar.gz gentoo-60230c9931c898d349692a973748b66fd7c10821.tar.bz2 gentoo-60230c9931c898d349692a973748b66fd7c10821.zip |
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@gentoo.org>
Diffstat (limited to 'dev-embedded/mavlink_c')
-rw-r--r-- | dev-embedded/mavlink_c/Manifest | 1 | ||||
-rw-r--r-- | dev-embedded/mavlink_c/mavlink_c-20220518.ebuild | 32 | ||||
-rw-r--r-- | dev-embedded/mavlink_c/metadata.xml | 13 |
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> |