mirror of
https://github.com/gentoo-mirror/guru.git
synced 2025-04-19 15:59:00 -04:00
dev-util/gshards: new package, add 0.1
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
This commit is contained in:
parent
2b2b505431
commit
582cf2584b
10
dev-util/gshards/files/0.1/gshards-get-pkgname.cr
Normal file
10
dev-util/gshards/files/0.1/gshards-get-pkgname.cr
Normal file
@ -0,0 +1,10 @@
|
||||
# Copyright 2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
require "yaml"
|
||||
|
||||
yaml = File.open("shard.yml") do |file|
|
||||
YAML.parse(file)
|
||||
end
|
||||
|
||||
puts yaml["name"].as_s
|
14
dev-util/gshards/files/0.1/gshards-has-targets.cr
Normal file
14
dev-util/gshards/files/0.1/gshards-has-targets.cr
Normal file
@ -0,0 +1,14 @@
|
||||
# Copyright 2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
require "yaml"
|
||||
|
||||
yaml = File.open("shard.yml") do |file|
|
||||
YAML.parse(file)
|
||||
end
|
||||
|
||||
if yaml["targets"]?
|
||||
exit(0)
|
||||
end
|
||||
|
||||
exit(1)
|
39
dev-util/gshards/gshards-0.1.ebuild
Normal file
39
dev-util/gshards/gshards-0.1.ebuild
Normal file
@ -0,0 +1,39 @@
|
||||
# Copyright 2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit crystal-utils multiprocessing toolchain-funcs
|
||||
|
||||
DESCRIPTION="Small helper tools to aid installing Crystal packages in Gentoo"
|
||||
HOMEPAGE="https://wiki.gentoo.org/wiki/No_homepage"
|
||||
S="${WORKDIR}"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
RDEPEND="
|
||||
dev-libs/boehm-gc
|
||||
dev-libs/libevent:=
|
||||
dev-libs/libyaml
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
BDEPEND="${CRYSTAL_DEPS}"
|
||||
|
||||
QA_FLAGS_IGNORED='.*'
|
||||
|
||||
src_configure() {
|
||||
crystal_configure
|
||||
tc-export CC
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
for prog in "${FILESDIR}"/${PV}/gshards-*.cr; do
|
||||
ecrystal build "${prog}" --verbose --threads=$(makeopts_jobs)
|
||||
done
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin gshards-*
|
||||
}
|
8
dev-util/gshards/metadata.xml
Normal file
8
dev-util/gshards/metadata.xml
Normal file
@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>cyber+gentoo@sysrq.in</email>
|
||||
<name>Anna</name>
|
||||
</maintainer>
|
||||
</pkgmetadata>
|
Loading…
x
Reference in New Issue
Block a user