whatweb-6.0.1.ebuild

This commit is contained in:
Anton Bolshakov 2025-08-02 23:08:51 +08:00
parent 15b6ea879b
commit d924a7d6fd
No known key found for this signature in database
GPG key ID: 32BDCED870788F04
6 changed files with 86 additions and 2 deletions

1
dev-ruby/mongo/Manifest Normal file
View file

@ -0,0 +1 @@
DIST mongo-2.21.2.gem 451072 BLAKE2B 2db7a4a35c6e485e3b391ebc3949e1838d479317025bc0ac5cd48766e7822ed8e422e02963bcd050b5bc750fb5943eb02a30dfc6088c43fbe2a581141a5d15c5 SHA512 366c01a1bc3abdccd638d5fde76b41e3e55d6e9e6a135255e5b92389e7e5979956da9ad89535ed82106f1ce52c9cf99432fd531077b240971b16e9e33fd57172

View file

@ -0,0 +1,20 @@
# Copyright 2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
USE_RUBY="ruby32 ruby33"
inherit ruby-fakegem
DESCRIPTION="Ruby driver for connecting to, querying, and manipulating MongoDB databases"
HOMEPAGE="https://rubygems.org/gems/mongo"
KEYWORDS="amd64 ~arm64 ~x86"
LICENSE="Apache-2.0"
SLOT="0"
ruby_add_rdepend "
dev-ruby/base64
>=dev-ruby/bson-4.14.1
"

View file

@ -1,9 +1,9 @@
# Copyright 1999-2022 Gentoo Authors
# Copyright 2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
USE_RUBY="ruby31 ruby32"
USE_RUBY="ruby32 ruby33"
inherit ruby-fakegem

View file

@ -1 +1,2 @@
DIST whatweb-0.5.5.tar.gz 3644694 BLAKE2B 264abda3e1eece992576ec57bfd79d0eb376e6503ffdf480a167eb12feb2234401e4b2e5772e7250bcbcfec9c1116a76fba69dddd35ff8d1756bbfbd572c7439 SHA512 0d1afb0eea2dab3a359d9bd80ef9884af780e28e74946dedf70e92066378be26321fd917dd4abb3e91b888b5ef87231ff4db2724daa9275f4332f21b48752b37
DIST whatweb-6.0.1.tar.gz 3659205 BLAKE2B b2ec2898686a060f3320e1945fbedbc2818f4dafa94ccfaddbd6b311543a013d0c9d6892d48fdc38cf7483bba65f9655a9a1b9561960830885370e9338981aa9 SHA512 340648fb47adb6b3b273221150c23be6fe65025fddf869ec85d7cb81d3e8b1ef93eb2a4071eb67e00bfc7aec4cb7af34074ecd54cb80ce601c80e650b84577b2

View file

@ -0,0 +1,60 @@
# Copyright 2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
USE_RUBY="ruby32 ruby33"
inherit ruby-single
DESCRIPTION="Next generation web scanner, identifies what software websites are running"
HOMEPAGE="http://www.morningstarsecurity.com/research/whatweb"
SRC_URI="https://github.com/urbanadventurer/WhatWeb/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
# https://github.com/urbanadventurer/WhatWeb/archive/refs/tags/v6.0.1.tar.gz
S="${WORKDIR}/WhatWeb-${PV}"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ~arm64 x86"
IUSE="json"
DEPEND="dev-ruby/bundler:2"
RDEPEND="${DEPEND}
${RUBY_DEPS}
dev-ruby/addressable
dev-ruby/ipaddr
dev-ruby/mongo
dev-ruby/rchardet
json? ( dev-ruby/json )"
#future rdepend:
#dns: em-resolv-replace
#mongodb: bison bson_ext mongo rchardet
src_prepare() {
# fix installation
sed -i '/gzip/d' Makefile || die
# sed -i 's|plugins-disabled||g' Makefile || die
sed -i 's|$(DOCPATH)/$(NAME)|$(DOCPATH)/${PF}|g' Makefile || die
sed -i '/bundle install/d' Makefile || die
sed -i -e "/^group :test do/,/^end$/d" Gemfile || die
sed -i -e "/^group :development do/,/^end$/d" Gemfile || die
if [ -f Gemfile ]; then
GEM_HOME="${T}" BUNDLE_GEMFILE=Gemfile ruby -S bundle install --local || die
GEM_HOME="${T}" BUNDLE_GEMFILE=Gemfile ruby -S bundle check || die
fi
eapply_user
}
src_compile() {
einfo "Nothing to compile"
}
all_ruby_install() {
dodir /usr/share/doc/"${PF}"
dodir /usr/bin
DESTDIR="${D}" emake install
dodoc CHANGELOG.md README.md whatweb.xsl
}

View file

@ -210,3 +210,5 @@ dev-ruby/typhoeus:1
#required by whatweb
=dev-ruby/ipaddr-1.2*
=dev-ruby/bson-5*