wallarm-overlay/dev-ruby/proton/proton-3.2.0-r2.ebuild
2021-10-25 18:15:30 +03:00

54 lines
1.3 KiB
Bash

# Copyright 2019 RBK.MONEY
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit unpacker
DEB_PL="1"
MY_PV="${PV}-${DEB_PL}"
RUBY_TG="2.5.0"
DEB_ARCH="amd64"
DESCRIPTION="Wallarm Web Application Firewall - ruby bindings"
HOMEPAGE="http://wallarm.com"
SRC_URI="https://repo.wallarm.com/debian/wallarm-node/buster/3.2/pool/ruby-${PN}_${MY_PV}_${DEB_ARCH}.deb"
LICENSE=""
SLOT="0"
KEYWORDS="amd64"
IUSE=""
DEPEND=""
RDEPEND="dev-libs/libconfig
>=dev-libs/libproton-3.2.0
dev-lang/ruby:2.5
dev-libs/libwlog
dev-ruby/msgpack
dev-ruby/murmurhash3
dev-ruby/parser-generator"
BDEPEND=""
src_unpack() {
mkdir "${WORKDIR}/${P}" && cd "${WORKDIR}/${P}"
unpack_deb ${A}
}
src_prepare() {
eapply_user
unpack usr/share/doc/ruby-${PN}/changelog.Debian.gz
}
src_install() {
dodoc usr/share/doc/ruby-${PN}/copyright
dodoc changelog.Debian
insinto /usr/$(get_libdir)/ruby/vendor_ruby/${RUBY_TG}/x86_64-linux/
doins -r usr/lib/x86_64-linux-gnu/ruby/vendor_ruby/${RUBY_TG}/${PN}
fperms 755 /usr/$(get_libdir)/ruby/vendor_ruby/${RUBY_TG}/x86_64-linux/${PN}/${PN}.so
insinto /usr/$(get_libdir)/ruby/vendor_ruby/${RUBY_TG}
doins usr/lib/ruby/vendor_ruby/${RUBY_TG}/${PN}.rb
doins -r usr/lib/ruby/vendor_ruby/${RUBY_TG}/${PN}
}