msva-perl make more robust
[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="4"
6
7 inherit perl-module
8
9 if [[ ${PV} == "9999" ]] ; then
10         inherit git-2
11         EGIT_BRANCH="master"
12         #EGIT_REPO_URI="git://git.monkeysphere.info/${PN}"
13         EGIT_REPO_URI="git://tremily.us/monkeysphere-validation-agent.git
14                 http://http-git.tremily.us/monkeysphere-validation-agent.git"
15         SRC_URI=""
16 else
17         MY_P="${PN}_${PV}"
18         SRC_URI="http://archive.monkeysphere.info/debian/pool/monkeysphere/m/${PN}/${MY_P}.orig.tar.gz"
19 fi
20
21 DESCRIPTION="Monkeysphere public key validation daemon"
22 HOMEPAGE="http://web.monkeysphere.info/validation-agent/"
23
24 LICENSE="GPL-3"
25 SLOT="0"
26 KEYWORDS="~amd64 ~x86"
27 IUSE="X"
28
29 #RESTRICT="test" # ssh connection failed
30
31 RDEPEND="
32         perl-gcpan/Crypt-X509
33         dev-perl/File-HomeDir
34         dev-perl/File-ShareDir
35         dev-perl/GnuPG-Interface
36         dev-perl/HTTP-Server-Simple
37         dev-perl/HTTP-Message
38         dev-perl/JSON
39         dev-perl/config-general
40         dev-perl/libwww-perl
41         dev-perl/net-server
42         dev-perl/regexp-common
43         "
44 DEPEND="
45         app-portage/g-cpan
46         virtual/perl-Module-Build
47         "
48
49 src_prepare() {
50         epatch "${FILESDIR}/01_Makefile.patch"
51         sed -i "s/##VERSION##/${PV}/" Makefile
52         epatch "${FILESDIR}/02_Makefile.patch"
53         sed -i 's/##PERL##/${ED}usr\/local\/lib\/site_perl/' Makefile
54 }
55
56 src_install() {
57     mytargets="install doc=/usr/share/doc/${P}"
58         perl-module_src_install
59 }
60
61 pkg_postinst()
62 {
63         use 'X' && elog "You seem to be using X. Make sure to edit Xsessions to start msva-perl"
64 }