guru/dev-crystal/webdrivers/webdrivers-0.4.2.ebuild
Anna (cybertailor) Vyalkova 087a6d5662
dev-crystal/webdrivers: add 0.4.2
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
2023-07-09 06:24:32 +05:00

32 lines
721 B
Bash

# Copyright 2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit shards
MY_PN="${PN}.cr"
DESCRIPTION="Helps manage drivers for Selenium, such as the Chromedriver"
HOMEPAGE="https://github.com/matthewmcgarvey/webdrivers.cr"
SRC_URI="https://github.com/matthewmcgarvey/${MY_PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/${MY_PN}-${PV}"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
RDEPEND="
dev-crystal/crystar
dev-crystal/habitat
"
src_prepare() {
default
# remove tests that use network
rm \
spec/webdrivers/chromedriver_spec.cr \
spec/webdrivers/geckodriver_spec.cr \
spec/webdrivers/chrome/driver_remote_version_finder_spec.cr || die
}