d05a921e9022ce0fed824577bd17aeadb6590d35
[portage-overlay.git] / app-crypt / msva-perl / msva-perl-0.9.2.ebuild
1 # Copyright 1999-2013 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: $
4
5 EAPI="5"
6
7 inherit perl-module
8
9 SRC_URI="http://archive.monkeysphere.info/debian/pool/monkeysphere/m/msva-perl/msva-perl_${PV}.orig.tar.gz"
10
11 DESCRIPTION="Monkeysphere public key validation daemon"
12 HOMEPAGE="http://web.monkeysphere.info/validation-agent/"
13
14 LICENSE="GPL-3"
15 SLOT="0"
16 IUSE=""
17 DEPEND="virtual/perl-Module-Build"
18
19 KEYWORDS="~amd64 ~x86"
20
21 RDEPEND="
22         dev-perl/Crypt-X509
23         dev-perl/File-HomeDir
24         dev-perl/File-ShareDir
25         dev-perl/GnuPG-Interface
26         dev-perl/HTTP-Server-Simple
27         dev-perl/HTTP-Message
28         dev-perl/JSON
29         dev-perl/config-general
30         dev-perl/libwww-perl
31         dev-perl/net-server
32         dev-perl/regexp-common
33         "
34
35 src_prepare() {
36         epatch "${FILESDIR}/${P}-makefile-version.patch"
37         sed -i "s/##VERSION##/${PV}/" Makefile
38         epatch "${FILESDIR}/${P}-makefile-install-target.patch"
39         sed -i 's/##PERL##/${ED}usr\/local\/lib\/site_perl/' Makefile
40 }
41
42 src_install() {
43         mytargets="install doc=/usr/share/doc/${P}"
44         perl-module_src_install
45         dodir "/etc/profile.d"
46         insinto "/etc/profile.d"
47         insopts -m755
48         doins "${FILESDIR}/10-msva-perl.sh"
49 }