Gentoo Logo
Gentoo Spaceship

Installation:
Gentoo Handbook
Installation Docs

Documentation:
Home
Listing
About Gentoo
Philosophy
Social Contract

Resources:
Bug Tracker
Developer List
Discussion Forums
Gentoo BitTorrents
Gentoo Linux Enhancement Proposals
IRC Channels
Mailing Lists
Mirrors
Name and Logo Guidelines
Online Package Database
Security Announcements
Staffing Needs
Supporting Vendors
View our CVS

Graphics:
Logos and themes
Icons
ScreenShots

Miscellaneous Resources:
Gentoo Linux Store
Gentoo-hosted projects
IBM dW/Intel article archive




List Archive: gentoo-dev
Navigation:
Lists: gentoo-dev: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-dev@g.o
From: Thomas Sachau <tommy@g.o>
Subject: Re: Re: [gentoo-commits] gentoo-x86 commit in app-misc/anki: metadata.xml Manifest anki-0.9.8.1.ebuild ChangeLog
Date: Sat, 04 Oct 2008 00:19:44 +0200
Christian Faulhammer schrieb:
> Hi,
> 
> welcome to your mentor reviews. :)
> 
> "Heath Caldwell (hncaldwell)" <hncaldwell@g.o>:
> 
>> Index: metadata.xml
>> 		<flag name="kakasi">
>> 			Enable <pkg>app-i18n/kakasi</pkg> support for
>> furigana generation </flag>
> 
>  I tend to call it furigana instead of kakasi, as USE flags should
> describe a purpose/function not the needed software to achieve it.
> 
>> Index: anki-0.9.8.1.ebuild
>> ===================================================================
>> # Copyright 1999-2008 Gentoo Foundation
>> # Distributed under the terms of the GNU General Public License v2
>> #
>> $Header: /var/cvsroot/gentoo-x86/app-misc/anki/anki-0.9.8.1.ebuild,v
>> 1.1 2008/10/02 23:13:39 hncaldwell Exp $
>>
>> EAPI=1
>>
>> NEED_PYTHON=2.4
>> inherit eutils multilib python
>>
>> DESCRIPTION="A spaced-repetition memory training program (flash
>> cards)" HOMEPAGE="http://ichi2.net/anki/index.html"
>> SRC_URI="http://ichi2.net/anki/download/${P}.tgz"
>> LICENSE="GPL-3"
>> SLOT="0"
>> KEYWORDS="~amd64 ~x86"
>> IUSE="+graph kakasi +sound"
>>
>> RDEPEND=">=dev-python/PyQt4-4.3
>> 	>=dev-python/sqlalchemy-0.4.1
>> 	>=dev-python/simplejson-1.7.3
>> 	>=dev-python/pysqlite-2.3.0
> 
>  pysqlite is included with Python 2.5 (USE=sqlite enabled), so you
> might upgrade to EAPI=2 and use USE dependencies or add a
> built_with_use check into pkg_config.  Or ask the Python team how to
> handle it in the best way.
> 
>> src_install() {
>> 	dodoc CREDITS
>>
>> 	python_version
>>
>> 	insinto "/usr/$(get_libdir)/python${PYVER}/site-packages"
>> 	doins -r ankiqt libanki/anki
>>
>> 	insinto "/usr/$(get_libdir)/python${PYVER}/site-packages/anki"
>> 	doins -r designer icons icons.qrc icons_rc.py libanki/samples
>>
>> 	dobin ${PN}
>>
>> 	doicon icons/${PN}.png
>> 	make_desktop_entry ${PN} ${PN} ${PN}.png "Education"
>> }
> 
>  No installation routine available?
> 
> V-Li
> 

Imho you should also add a " || die" to at least all functions that add nesessary files to run the
app, so probably at least the first "doins -r" and "dobin".

-- 
Thomas Sachau

Gentoo Linux Developer

Attachment:
signature.asc (OpenPGP digital signature)
References:
Re: [gentoo-commits] gentoo-x86 commit in app-misc/anki: metadata.xml Manifest anki-0.9.8.1.ebuild ChangeLog
-- Christian Faulhammer
Navigation:
Lists: gentoo-dev: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
Re: [gentoo-commits] gentoo-x86 commit in app-misc/anki: metadata.xml Manifest anki-0.9.8.1.ebuild ChangeLog
Next by thread:
Re: Re: [gentoo-commits] gentoo-x86 commit in app-misc/anki: metadata.xml Manifest anki-0.9.8.1.ebuild ChangeLog
Previous by date:
Re: Testing is not a valid reason to package.mask
Next by date:
[RFC] Label profiles with EAPI for compatibility checks


Updated Jun 17, 2009

Donate to support our development efforts.

Gentoo Centric Hosting: vr.org

VR Hosted

Tek Alchemy

Tek Alchemy

SevenL.net

SevenL.net

php|architect

php|architect

Copyright 2001-2007 Gentoo Foundation, Inc. Questions, Comments? Email www@gentoo.org.