diff options
Diffstat (limited to 'dev-python/gmpy/gmpy-1.01.ebuild')
-rw-r--r-- | dev-python/gmpy/gmpy-1.01.ebuild | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/dev-python/gmpy/gmpy-1.01.ebuild b/dev-python/gmpy/gmpy-1.01.ebuild new file mode 100644 index 000000000000..758e11c881ba --- /dev/null +++ b/dev-python/gmpy/gmpy-1.01.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/gmpy/gmpy-1.01.ebuild,v 1.1 2005/11/27 23:36:26 sbriesen Exp $ + +inherit distutils + +MY_PV=${PV//.} + +DESCRIPTION="Python bindings for dev-libs/gmp" +HOMEPAGE="http://gmpy.sourceforge.net/" +SRC_URI="mirror://sourceforge/gmpy/${PN}-sources-${MY_PV}.zip" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~x86 ~amd64" +IUSE="" + +S="${WORKDIR}/${PN}" + +DEPEND="virtual/python + dev-libs/gmp" + +src_unpack() { + unpack ${A} + cd "${S}" + + # HACK: distutils only support 'setup.py', so + # we symlink what we need to 'setup.py' later + mv setup.py setmp.py +} + +src_compile() { + local i + for i in mp es; do + ln -snf "set${i}.py" "setup.py" && distutils_src_compile + done +} + +src_install() { + local i + for i in mp es; do + ln -snf "set${i}.py" "setup.py" && distutils_src_install + done + dohtml doc/index.html + dodoc doc/gmpydoc.txt +} |