commit: e78a00f599163e85f972264d6b5616f54a20c1b8 Author: Vladislav Dudar <seal331gentoo <AT> gmail <DOT> com> AuthorDate: Sun Oct 24 17:01:59 2021 +0000 Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org> CommitDate: Sun Oct 24 17:05:26 2021 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=e78a00f5
dev-libs/dmd_core: new package Package-Manager: Portage-3.0.22, Repoman-3.0.3 Signed-off-by: Vladislav Dudar <seal331gentoo <AT> gmail.com> dev-libs/dmd_core/Manifest | 3 ++ dev-libs/dmd_core/dmd_core-0.6.2.ebuild | 51 +++++++++++++++++++++++++++++++++ dev-libs/dmd_core/files/dmd_core.pc | 8 ++++++ dev-libs/dmd_core/metadata.xml | 9 ++++++ 4 files changed, 71 insertions(+) diff --git a/dev-libs/dmd_core/Manifest b/dev-libs/dmd_core/Manifest new file mode 100644 index 000000000..39bb1b231 --- /dev/null +++ b/dev-libs/dmd_core/Manifest @@ -0,0 +1,3 @@ +DIST dmd_core-0.6.2.tar.gz 137040 BLAKE2B 1aa707a653ea82d14c85aa3ad14accbc8d807a2ba3900e70682d1799a0ba1de496dfc3d06c0d54fcf43300a91003acf7ee85db4f383705df04c562b7f4929247 SHA512 7ea07ae20ab63b396544836217e6b8c5fd9d74acd92a5a1bb3b51c10db0a4ef2c92d0dc8f935997157c98dcd6eaaeca33c0cfaf4d00bf30afd9b424df50d8a79 +DIST lazy_static-1.4.0.crate 10443 BLAKE2B 25b2e61bbac48f0dcbc79c81d7bf01f2403d8269ecb6be3ea6147bd00f7a588df15a91f44dfc18ada19b21faa71de4637c7d493a8628cbecd0e547d74e616a23 SHA512 e124c0521ec7c950f3c4a066821918da7a9c6e711115d98009ae7c351928fdddead852e7596fea5937a9c30e4e4ce8eee7099b20248b5d6e3b2494b6a6d88cb8 +DIST libc-0.2.103.crate 540563 BLAKE2B cc99ae88783e6f3044ecec5154e0de81a7f792b89415cc2736eb4a436edd316277d690971c4aa0eff7935b5a355c8966805c4ee72c5fec8caecf65a29c13caf9 SHA512 79e1c99bfeb30283f85742cf17867000301bbe022c6b2ace415b4a767068dd64b09581bcc802d42150e45849f5adf8ee2720a0c695324d87d3d96a5c554a216d diff --git a/dev-libs/dmd_core/dmd_core-0.6.2.ebuild b/dev-libs/dmd_core/dmd_core-0.6.2.ebuild new file mode 100644 index 000000000..102995cba --- /dev/null +++ b/dev-libs/dmd_core/dmd_core-0.6.2.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +CRATES=" +lazy_static-1.4.0 +libc-0.2.103 +" + +inherit cargo toolchain-funcs + +DESCRIPTION="Core logic for an AT&T / Teletype DMD 5620 terminal emulator" +HOMEPAGE="https://github.com/sethm/dmd_core" +SRC_URI="https://github.com/sethm/dmd_core/archive/v${PV}.tar.gz -> ${P}.tar.gz + $(cargo_crate_uris ${CRATES})" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64" + +RESTRICT="test mirror" + +BDEPEND=">=virtual/rust-1.47.0" + +set_target_arch() { + case "$(tc-arch)" in + amd64) target_arch=x86_64 ;; + esac +} + +src_compile() { + local target_arch + set_target_arch + cargo_src_compile --target ${target_arch}-unknown-linux-gnu +} + +src_install() { + local target_arch + set_target_arch + dolib.a "${S}"/target/${target_arch}-unknown-linux-gnu/release/lib${PN}.a + insinto /usr/$(get_libdir)/pkgconfig + cp "${FILESDIR}/dmd_core.pc" "${S}" + sed -i "s/%VERSION%/${PV}/g" "${S}/dmd_core.pc" + doins "${S}/dmd_core.pc" + + sed -e "s:^libdir.*:libdir=${EPREFIX}/usr/$(get_libdir):" \ + -i "${ED}"/usr/$(get_libdir)/pkgconfig/dmd_core.pc + dodoc "${S}/LICENSE.txt" + dodoc "${S}/README.md" +} diff --git a/dev-libs/dmd_core/files/dmd_core.pc b/dev-libs/dmd_core/files/dmd_core.pc new file mode 100644 index 000000000..1b920ca4b --- /dev/null +++ b/dev-libs/dmd_core/files/dmd_core.pc @@ -0,0 +1,8 @@ +prefix=/usr +exec_prefix=${prefix} +libdir=${exec_prefix}/lib + +Name: dmd_core +Description: Core logic for an AT&T / Teletype DMD 5620 terminal emulator +Version: %VERSION% +Libs: ${libdir}/libdmd_core.a diff --git a/dev-libs/dmd_core/metadata.xml b/dev-libs/dmd_core/metadata.xml new file mode 100644 index 000000000..75d3b66ba --- /dev/null +++ b/dev-libs/dmd_core/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>seal331gen...@gmail.com</email> + <name>Vladislav Dudar</name> + <description>Primary maintainer</description> + </maintainer> +</pkgmetadata>