Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add sys-process/glance
  • Loading branch information
laurentb committed Mar 13, 2012
1 parent a17d0a7 commit f9e0f41
Show file tree
Hide file tree
Showing 3 changed files with 57 additions and 0 deletions.
1 change: 1 addition & 0 deletions profiles/categories
Expand Up @@ -13,6 +13,7 @@ net-im
net-misc
net-wireless
sys-apps
sys-process
www-apps
www-client
x11-misc
Expand Down
1 change: 1 addition & 0 deletions sys-process/glances/Manifest
@@ -0,0 +1 @@
DIST glances-1.3.7.tar.gz 381405 RMD160 6e56a38ca49198ac0e79a3ddf4eb5a21a23b4d5e SHA1 b0e7875875c2df130b76d195889a43befdf50bbb SHA256 4d04a6bac3cf32a2cfdacc9a4b0bed163f419e1acf07ef961ea519cd41cbf226
55 changes: 55 additions & 0 deletions sys-process/glances/glances-1.3.7.ebuild
@@ -0,0 +1,55 @@
# Copyright 2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI=4
PYTHON_DEPEND="2:2.6"
SUPPORT_PYTHON_ABIS="1"
RESTRICT_PYTHON_ABIS="3.*"

inherit base distutils
GH_USER="nicolargo"
if [ "$PV" == "9999" ]; then
EGIT_REPO_URI="git://github.com/${GH_USER}/${PN}.git
https://github.com/${GH_USER}/${PN}.git"
inherit git-2
fi

DESCRIPTION="CLI curses-based monitoring tool"
HOMEPAGE="https://github.com/nicolargo/glances
http://blog.nicolargo.com/tag/glances"
if [ "$PV" != "9999" ]; then
SRC_URI="http://github.com/downloads/${GH_USER}/${PN}/${P}.tar.gz"
KEYWORDS="~amd64 ~x86"
DOCS=""
else
SRC_URI=""
KEYWORDS=""
DOCS=""
fi

LICENSE="LGPL-3"
SLOT="0"
IUSE=""

DEPEND=""
RDEPEND=">=dev-python/pystatgrab-0.5"

src_configure() {
# avoid installing in /site-packages/src/
# there's probably a better fix
mv src glances
sed -i "s/'src'/'glances'/" setup.py

# create the console script. we need setuptools for that.
sed -i 's/distutils\.core/setuptools/' setup.py
sed -i 's/^)$/,entry_points={"console_scripts": ["glances = glances.glances:main"]})/' setup.py

# it's a symlink, and portage tries to install it anyway
rm README.md
}

distutils_src_install_post_hook() {
doman man/glances.1
}

DOCS="AUTHORS COPYING ChangeLog NEWS README README-fr TODO"

0 comments on commit f9e0f41

Please sign in to comment.