Donnie Berkholz wrote:

> On 19:54 Mon 21 Jan     , Joel D. Martin (kanaka) wrote:
>> 1.1                  dev-util/qmtest/qmtest-2.4.ebuild
>> 
>> file :
>>
http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/qmtest/qmtest-2.4.ebuild?rev=1.1&view=markup
>> plain:
>>
http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/qmtest/qmtest-2.4.ebuild?rev=1.1&content-type=text/plain
>> 
>> Index: qmtest-2.4.ebuild
>> ===================================================================
>> # Copyright 1999-2008 Gentoo Foundation
>> # Distributed under the terms of the GNU General Public License v2
>> # $Header: /var/cvsroot/gentoo-x86/dev-util/qmtest/qmtest-2.4.ebuild,v
>> # 1.1 2008/01/21 19:54:35 kanaka Exp $
>> 
>> inherit eutils
>> DESCRIPTION="CodeSourcery's test harness system"
>> HOMEPAGE="http://www.codesourcery.com/qmtest/";
>> SRC_URI="http://www.codesourcery.com/public/${PN}/${PF}/${PF}.tar.gz";
>> LICENSE="GPL-2"
>> SLOT="0"
>> 
>> KEYWORDS="~amd64 ~x86"
>> IUSE=""
>> 
>> DEPEND="dev-lang/python"
>> 
>> src_compile() {
>> python setup.py build || die "setup.py build failed"
>> }
>> 
>> src_install() {
>> python setup.py install --root ${D} \
>> || die "setup.py install failed"
>> 
>> sed -i "[EMAIL PROTECTED]@/usr@" 
>> ${D}/usr/lib*/python2.4/site-packages/qm/config.py
>> \ || die "Could not adjust install path in config.py"
>> }
> 
> This looks like it should use distutils.eclass.

And it will fail with python-2.5. You should definitely use the
distutils.eclass which also handles the byte-compilation/-cleanup.

Please also implement a src_test to run the provided tests. If unsure on how
to do that correctly, check other python ebuilds or join #gentoo-python.


-- 
gentoo-dev@lists.gentoo.org mailing list

Reply via email to