diff options
author | 2016-12-11 17:50:39 -0500 | |
---|---|---|
committer | 2016-12-11 17:52:58 -0500 | |
commit | 55f34a44a67fd5b299bf909078e63b70deb3ebaf (patch) | |
tree | e54718dd348f424523c9f94b06111b353afcd410 /dev-util/aap/aap-1.091-r3.ebuild | |
parent | sys-power/cpupower: bump to 4.9.0 (diff) | |
download | gentoo-55f34a44a67fd5b299bf909078e63b70deb3ebaf.tar.gz gentoo-55f34a44a67fd5b299bf909078e63b70deb3ebaf.tar.bz2 gentoo-55f34a44a67fd5b299bf909078e63b70deb3ebaf.zip |
dev-util/aap: install like a normal python module
Diffstat (limited to 'dev-util/aap/aap-1.091-r3.ebuild')
-rw-r--r-- | dev-util/aap/aap-1.091-r3.ebuild | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/dev-util/aap/aap-1.091-r3.ebuild b/dev-util/aap/aap-1.091-r3.ebuild new file mode 100644 index 000000000000..be196aa48e30 --- /dev/null +++ b/dev-util/aap/aap-1.091-r3.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 +PYTHON_COMPAT=( python2_7 ) + +inherit python-single-r1 + +DESCRIPTION="Bram Moolenaar's super-make program" +HOMEPAGE="http://www.a-a-p.org/" +SRC_URI="mirror://sourceforge/a-a-p/${P}.zip" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~ia64 ~mips ~ppc ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos" +IUSE="doc" + +DEPEND="app-arch/unzip" +RDEPEND="${PYTHON_DEPS}" + +REQUIRED_USE="${PYTHON_REQUIRED_USE}" +S=${WORKDIR} + +PATCHES=( "${FILESDIR}"/${P}-module-install.patch ) + +src_test() { + "${PYTHON}" aap || die "tests failed" + rm -r AAPDIR || die +} + +src_install() { + rm -r rectest unittest test.aap || die + rm doc/*.sgml doc/*.pdf COPYING README.txt || die + if use doc; then + docinto html + dodoc -r doc/*.html doc/images + fi + rm -r doc/*.html doc/images || die + + docinto / + dodoc doc/* + doman aap.1 + rm -r doc aap.1 || die + + python_doscript aap + rm aap aap.py aap.bat || die + + python_moduleinto aap + python_domodule . +} |