/[gentoo-x86]/net-misc/arm/arm-1.4.5.0_p20140714-r1.ebuild
Gentoo

Contents of /net-misc/arm/arm-1.4.5.0_p20140714-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Wed Jul 23 02:59:16 2014 UTC (6 years, 2 months ago) by mrueg
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Fix unicode error.

(Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key )

1 # Copyright 1999-2014 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-misc/arm/arm-1.4.5.0_p20140714-r1.ebuild,v 1.1 2014/07/23 01:32:12 mrueg Exp $
4
5 EAPI=5
6 PYTHON_COMPAT=(python2_7)
7 PYTHON_REQ_USE="ncurses"
8 inherit vcs-snapshot distutils-r1
9
10 DESCRIPTION="A ncurses-based status monitor for Tor relays"
11 HOMEPAGE="http://www.atagar.com/arm/"
12 COMMIT_ID="ac7923e31f52d3cf51b538ddf799162d67c04ecc"
13 SRC_URI="https://gitweb.torproject.org/arm.git/snapshot/${COMMIT_ID}.tar.gz -> ${P}.tar.gz"
14
15 LICENSE="GPL-3"
16 SLOT="0"
17 KEYWORDS="~amd64"
18 IUSE="test"
19
20 DEPEND="test? ( dev-python/mock[${PYTHON_USEDEP}] )
21 dev-python/setuptools[${PYTHON_USEDEP}]"
22 RDEPEND=">=net-libs/stem-1.2.2_p20140718[${PYTHON_USEDEP}]
23 net-misc/tor"
24
25 python_prepare_all() {
26 sed -i -e "s/.version import VERSION/ import __version__ as VERSION/"\
27 -e "s/, 'arm.cli'//"\
28 -e "s/arm.cli/arm/g"\
29 -e "s/'arm.stem'//"\
30 -e "/gui/d"\
31 -e "s/\"arm\/settings.cfg\",//"\
32 -e "/install-purelib/d"\
33 -e "/eggPath/d" setup.py || die
34 sed -i -e "s/1.4.6_dev/${PV}/" arm/__init__.py || die
35 distutils-r1_python_prepare_all
36 }
37
38 python_install() {
39 distutils-r1_python_install --docPath "${EPREFIX}"/usr/share/doc/${PF}
40 # Workaround until setup.py is fixed upstream
41 python_moduleinto arm
42 python_domodule arm/config
43 python_replicate_script "${ED}"/usr/bin/run_arm
44 }
45 python_install_all() {
46 distutils-r1_python_install_all --docPath "${EPREFIX}"/usr/share/doc/${PF}
47 }
48
49 python_test() {
50 ${PYTHON} run_tests.py || die
51 }
52
53 pkg_postinst() {
54 elog "Some graphing data issues have been noted in testing"
55 elog "when run as root. It is not recommended to run arm as"
56 elog "root until those issues have been isolated and fixed."
57 elog
58 elog "Trouble with graphs under app-misc/screen? Try:"
59 elog 'TERM="rxvt-unicode" arm'
60 }

  ViewVC Help
Powered by ViewVC 1.1.20