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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Sat Nov 15 19:28:27 2014 UTC (5 years, 2 months ago) by blueness
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +2 -2 lines
Keyword ~x86, bug #517838

(Portage version: 2.2.8-r2/cvs/Linux x86_64, signed Manifest commit with key 0xF52D4BBA)

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-r2.ebuild,v 1.4 2014/07/24 02:23:35 naota 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 ~arm ~mips ~ppc ~ppc64 ~x86 ~x86-fbsd"
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 sed -i -e "s/line.replace(/line.replace(u/" arm/util/ui_tools.py || die
36 distutils-r1_python_prepare_all
37 }
38
39 python_install() {
40 distutils-r1_python_install --docPath "${EPREFIX}"/usr/share/doc/${PF}
41 # Workaround until setup.py is fixed upstream
42 python_moduleinto arm
43 python_domodule arm/config
44 python_replicate_script "${ED}"/usr/bin/run_arm
45 }
46 python_install_all() {
47 distutils-r1_python_install_all --docPath "${EPREFIX}"/usr/share/doc/${PF}
48 }
49
50 python_test() {
51 ${PYTHON} run_tests.py || die
52 }
53
54 pkg_postinst() {
55 elog "Some graphing data issues have been noted in testing"
56 elog "when run as root. It is not recommended to run arm as"
57 elog "root until those issues have been isolated and fixed."
58 elog
59 elog "Trouble with graphs under app-misc/screen? Try:"
60 elog 'TERM="rxvt-unicode" arm'
61 }

  ViewVC Help
Powered by ViewVC 1.1.20