Hopefully enable 32 bit support for xul-ext-monkeysphere as /usr/lib is symlink to...
[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         dev-perl/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         virtual/perl-Module-Build
46         "
47
48 src_prepare() {
49         epatch "${FILESDIR}/01_Makefile.patch"
50         sed -i "s/##VERSION##/${PV}/" Makefile
51         epatch "${FILESDIR}/02_Makefile.patch"
52         sed -i 's/##PERL##/${ED}usr\/local\/lib\/site_perl/' Makefile
53 }
54
55 src_install() {
56     mytargets="install doc=/usr/share/doc/${P}"
57         perl-module_src_install
58         mkdir -p "${D}/etc/profile.d/"
59         cp "${FILESDIR}/10-msva-perl.sh" "${D}/etc/profile.d/"
60         chmod 0555  "${D}/etc/profile.d/10-msva-perl.sh"
61 }
62
63 pkg_postinst()
64 {
65         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."
66 }