Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Add sys-process/glance
- Loading branch information
Showing
3 changed files
with
57 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,6 +13,7 @@ net-im | |
net-misc | ||
net-wireless | ||
sys-apps | ||
sys-process | ||
www-apps | ||
www-client | ||
x11-misc | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
DIST glances-1.3.7.tar.gz 381405 RMD160 6e56a38ca49198ac0e79a3ddf4eb5a21a23b4d5e SHA1 b0e7875875c2df130b76d195889a43befdf50bbb SHA256 4d04a6bac3cf32a2cfdacc9a4b0bed163f419e1acf07ef961ea519cd41cbf226 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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" |