Files
guru/dev-crystal/protodec/protodec-0.1.5.ebuild
Anna (cybertailor) Vyalkova d1505558b9 dev-crystal/protodec: add 0.1.5
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
2022-12-02 11:13:11 +05:00

31 lines
685 B
Bash

# Copyright 2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit shards
DESCRIPTION="Command-line tool to encode and decode arbitrary protobuf data"
HOMEPAGE="https://github.com/iv-org/protodec"
SRC_URI="https://github.com/iv-org/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64"
DEPEND="
dev-libs/boehm-gc
dev-libs/libevent:=
dev-libs/libpcre
"
RDEPEND="${DEPEND}"
src_prepare() {
default
sed -i src/protodec.cr \
-e 's/\(CURRENT_BRANCH \) = .*/\1 = "master"/' \
-e 's/\(CURRENT_COMMIT \) = .*/\1 = "gentoo"/' \
-e "s/\(CURRENT_VERSION\) = .*/\1 = \"v${PV}\"/" || die
}