2021-10-21 15:16:28 +00:00
|
|
|
# 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}"
|
2021-10-25 15:15:30 +00:00
|
|
|
RUBY_TG="2.5.0"
|
2021-10-21 15:16:28 +00:00
|
|
|
DEB_ARCH="amd64"
|
|
|
|
|
|
|
|
DESCRIPTION="Wallarm Web Application Firewall - ruby bindings"
|
|
|
|
HOMEPAGE="http://wallarm.com"
|
2021-10-25 10:08:32 +00:00
|
|
|
SRC_URI="https://repo.wallarm.com/debian/wallarm-node/buster/3.2/pool/ruby-${PN}_${MY_PV}_${DEB_ARCH}.deb"
|
2021-10-21 15:16:28 +00:00
|
|
|
|
|
|
|
LICENSE=""
|
|
|
|
SLOT="0"
|
|
|
|
KEYWORDS="amd64"
|
|
|
|
IUSE=""
|
|
|
|
|
|
|
|
DEPEND=""
|
|
|
|
RDEPEND="dev-libs/libconfig
|
|
|
|
>=dev-libs/libproton-3.2.0
|
2021-10-25 15:15:30 +00:00
|
|
|
dev-lang/ruby:2.5
|
2021-10-21 15:16:28 +00:00
|
|
|
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/
|
2021-10-25 15:15:30 +00:00
|
|
|
doins -r usr/lib/x86_64-linux-gnu/ruby/vendor_ruby/${RUBY_TG}/${PN}
|
2021-10-21 15:16:28 +00:00
|
|
|
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}
|
2021-10-25 15:15:30 +00:00
|
|
|
doins usr/lib/ruby/vendor_ruby/${RUBY_TG}/${PN}.rb
|
|
|
|
doins -r usr/lib/ruby/vendor_ruby/${RUBY_TG}/${PN}
|
2021-10-21 15:16:28 +00:00
|
|
|
}
|