6d9530b42dba1ce32fc33d52abf3a0b5c4b5a1c9
[portage-overlay.git] / app-crypt / msva-perl / msva-perl-0.9.2.ebuild
1 # Copyright 1999-2012 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="X"
17 DEPEND="
18         virtual/perl-Module-Build
19         "
20
21 KEYWORDS="~amd64 ~x86"
22
23 RDEPEND="
24         dev-perl/Crypt-X509
25         dev-perl/File-HomeDir
26         dev-perl/File-ShareDir
27         dev-perl/GnuPG-Interface
28         dev-perl/HTTP-Server-Simple
29         dev-perl/HTTP-Message
30         dev-perl/JSON
31         dev-perl/config-general
32         dev-perl/libwww-perl
33         dev-perl/net-server
34         dev-perl/regexp-common
35         "
36
37 src_prepare() {
38         epatch "${FILESDIR}/01_Makefile.patch"
39         sed -i "s/##VERSION##/${PV}/" Makefile
40         epatch "${FILESDIR}/02_Makefile.patch"
41         sed -i 's/##PERL##/${ED}usr\/local\/lib\/site_perl/' Makefile
42 }
43
44 src_install() {
45     mytargets="install doc=/usr/share/doc/${P}"
46         perl-module_src_install
47         mkdir -p "${D}/etc/profile.d/" || die
48         cp "${FILESDIR}/10-msva-perl.sh" "${D}/etc/profile.d/" || die
49         chmod 0555  "${D}/etc/profile.d/10-msva-perl.sh" || die
50 }
51
52 pkg_postinst()
53 {
54         use 'X' && elog "You seem to be using X. msva-perl has been set up to invoke and set env variables in /etc/profile.d/10-msva-perl.sh. If using another window manager you might want to set this for your window manager."
55 }