# Copyright 1999-2014 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: blshkv$ EAPI=5 USE_RUBY="ruby20" inherit ruby-ng git-2 DESCRIPTION="Next generation web scanner, identifies what software websites are running" HOMEPAGE="http://www.morningstarsecurity.com/research/whatweb" #SRC_URI="http://www.morningstarsecurity.com/downloads/${P}.tar.gz" EGIT_REPO_URI="https://github.com/urbanadventurer/WhatWeb.git" EGIT_COMMIT="b495eda4c8f567047b62be25a82c879e6772f5e1" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="json" DEPEND="dev-lang/ruby" RDEPEND="${DEPEND} json? ( dev-ruby/json )" #future rdepend: #dns: em-resolv-replace #mongodb: bison bson_ext mongo rchardet ruby-ng_src_prepare() { # fix install sed -i 's|plugins-disabled||g' Makefile || die sed -i 's|$(DOCPATH)/$(NAME)|$(DOCPATH)/${PF}|g' Makefile || die # sed -i -e 's:#!/usr/bin/env ruby:#!/usr/bin/env ruby18:' whatweb || die } ruby-ng_src_install() { dodir /usr/share/doc/"${PF}" DESTDIR="${D}" emake install || die "install failed" dodoc CHANGELOG README whatweb.xsl || die }