diff options
author | Heath Caldwell <hncaldwell@gentoo.org> | 2008-10-02 23:13:39 +0000 |
---|---|---|
committer | Heath Caldwell <hncaldwell@gentoo.org> | 2008-10-02 23:13:39 +0000 |
commit | 385974e699b830efb6187eac05fa6081cba021ec (patch) | |
tree | 56dd2cf967aea933cc7234cfba44df6d80b8de96 /app-misc/anki | |
parent | Sparc stable, originally part of Bug #230919, and now suggested by Bug #239368. (diff) | |
download | gentoo-2-385974e699b830efb6187eac05fa6081cba021ec.tar.gz gentoo-2-385974e699b830efb6187eac05fa6081cba021ec.tar.bz2 gentoo-2-385974e699b830efb6187eac05fa6081cba021ec.zip |
New ebuild for anki. Fixes bug #214472.
(Portage version: 2.2_rc11/cvs/Linux 2.6.25-gentoo-r6-grey01 x86_64)
Diffstat (limited to 'app-misc/anki')
-rw-r--r-- | app-misc/anki/ChangeLog | 10 | ||||
-rw-r--r-- | app-misc/anki/Manifest | 4 | ||||
-rw-r--r-- | app-misc/anki/anki-0.9.8.1.ebuild | 61 | ||||
-rw-r--r-- | app-misc/anki/metadata.xml | 25 |
4 files changed, 100 insertions, 0 deletions
diff --git a/app-misc/anki/ChangeLog b/app-misc/anki/ChangeLog new file mode 100644 index 000000000000..374a55f723d6 --- /dev/null +++ b/app-misc/anki/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for app-misc/anki +# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/app-misc/anki/ChangeLog,v 1.1 2008/10/02 23:13:39 hncaldwell Exp $ + +*anki-0.9.8.1 (02 Oct 2008) + + 02 Oct 2008; Heath Caldwell (hncaldwell) <hncaldwell@csupomona.edu> + +metadata.xml, +anki-0.9.8.1.ebuild: + New ebuild for anki. Ebuild written by me. Fixes bug #214472. + diff --git a/app-misc/anki/Manifest b/app-misc/anki/Manifest new file mode 100644 index 000000000000..c3875a54a5fe --- /dev/null +++ b/app-misc/anki/Manifest @@ -0,0 +1,4 @@ +DIST anki-0.9.8.1.tgz 3348467 RMD160 f4c9ba8c65a260dd69241470d98a866e7499a745 SHA1 a80d548980d2c7737a7fe316c867de775de82b05 SHA256 94f24cf511a92de19d1cdfc429ab0f029d74c77cbbf952527d6a2c3e0bd74d10 +EBUILD anki-0.9.8.1.ebuild 1534 RMD160 2c37e59fc192658449797502574292771bfcaf27 SHA1 45f2bbc4b945f04523e5b50a39a40a2ca797cfbc SHA256 6822a3c74ec7e2971912d85fa7d308e5a8b79a35aa83bea92469a7713bf07e96 +MISC ChangeLog 317 RMD160 cf27a6e3e1370ca63a9813afaff2849e4af8aeff SHA1 431a3fafa52c918467c91b5b6ad2bbd4b55429c8 SHA256 722e43d747a97110858c01c9cfec3f28f10abe4d13856dcfec5a0489e5b53506 +MISC metadata.xml 727 RMD160 f152e5c834b44751bcb7f541a594abb55f63fbe3 SHA1 bde4a8f042ac830622379a7a0be48d0d05471b51 SHA256 2a29d931b7b1a5849249c229e737f8e4d24585b0b032e13130ce500b7e828a8d diff --git a/app-misc/anki/anki-0.9.8.1.ebuild b/app-misc/anki/anki-0.9.8.1.ebuild new file mode 100644 index 000000000000..90e0fd353da0 --- /dev/null +++ b/app-misc/anki/anki-0.9.8.1.ebuild @@ -0,0 +1,61 @@ +# 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 + app-text/dvipng + graph? ( + dev-python/numpy + >=dev-python/matplotlib-0.91.2 + ) + sound? ( dev-python/pygame ) + kakasi? ( app-i18n/kakasi )" + +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" +} + +pkg_postinst() { + python_version + python_mod_optimize /usr/$(get_libdir)/python${PYVER}/site-packages/ankiqt + python_mod_optimize /usr/$(get_libdir)/python${PYVER}/site-packages/anki + + if use x86 && ! has_version dev-python/psyco; then + elog "Installing dev-python/psyco is strongly recommended." + fi +} + +pkg_postrm() { + python_version + python_mod_cleanup /usr/$(get_libdir)/python${PYVER}/site-packages/ankiqt + python_mod_cleanup /usr/$(get_libdir)/python${PYVER}/site-packages/anki +} diff --git a/app-misc/anki/metadata.xml b/app-misc/anki/metadata.xml new file mode 100644 index 000000000000..08a0914bb6d4 --- /dev/null +++ b/app-misc/anki/metadata.xml @@ -0,0 +1,25 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>no-herd</herd> + <maintainer> + <email>hncaldwell@gentoo.org</email> + <name>Heath Caldwell</name> + </maintainer> + <longdescription lang="en"> + Anki is a program designed to help you remember facts + (such as words and phrases in a foreign language) as + easily, quickly and efficiently as possible. + </longdescription> + <use> + <flag name="graph"> + Enable support for making graphs + </flag> + <flag name="kakasi"> + Enable <pkg>app-i18n/kakasi</pkg> support for furigana generation + </flag> + <flag name="sound"> + Enable support for adding sound to cards + </flag> + </use> +</pkgmetadata> |