# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI="2"

DESCRIPTION="Generates domain-specific passwords"
HOMEPAGE="http://github.com/ehahn/pwdhash/tree/master"
SRC_URI="http://github.com/ehahn/${PN}/tarball/${PV} -> ${P}.tar.gz"

LICENSE="BSD-2"
SLOT="0"
KEYWORDS="~x86"
IUSE=""

DEPEND="dev-lang/spidermonkey"
RDEPEND="${DEPEND}"

src_install() {
	cd *
	PREFIX="${D}/usr" ./install.sh
	sed -ie "s:${D}::" "${D}"/usr/share/man/man1/pwdhash.1
	dodoc README
}