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

EAPI=3

inherit eutils

DESCRIPTION="Perl scripts to parse Windows registry files"
HOMEPAGE="http://regripper.wordpress.com/"
SRC_URI="http://regripper.googlecode.com/files/plugins20130429.zip"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""

DEPEND="app-text/dos2unix"

S="${WORKDIR}/${P/_/}"


src_prepare() {
    rm -rf plugins *.exe rr.pl *.dll
}

src_compile() {
    dos2unix *.pl
}

src_install () {
    insinto /usr/share/regripper
    doins *.pl
}