mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-10 15:45:15 -04:00
dev-libs/dmd_core: new package
Package-Manager: Portage-3.0.22, Repoman-3.0.3 Signed-off-by: Vladislav Dudar <seal331gentoo@gmail.com>
This commit is contained in:
3
dev-libs/dmd_core/Manifest
Normal file
3
dev-libs/dmd_core/Manifest
Normal file
@@ -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
|
||||
51
dev-libs/dmd_core/dmd_core-0.6.2.ebuild
Normal file
51
dev-libs/dmd_core/dmd_core-0.6.2.ebuild
Normal file
@@ -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"
|
||||
}
|
||||
8
dev-libs/dmd_core/files/dmd_core.pc
Normal file
8
dev-libs/dmd_core/files/dmd_core.pc
Normal file
@@ -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
|
||||
9
dev-libs/dmd_core/metadata.xml
Normal file
9
dev-libs/dmd_core/metadata.xml
Normal file
@@ -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>seal331gentoo@gmail.com</email>
|
||||
<name>Vladislav Dudar</name>
|
||||
<description>Primary maintainer</description>
|
||||
</maintainer>
|
||||
</pkgmetadata>
|
||||
Reference in New Issue
Block a user