summaryrefslogtreecommitdiff
blob: f6e585eb0b68b0870936d390690550b644051bdb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit distutils

DESCRIPTION="Sophisticated flash-card tool also used for long-term memory research"
HOMEPAGE="http://www.mnemosyne-proj.org/"
SRC_URI="mirror://sourceforge/${PN}-proj/${P}-r1.tgz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86"
IUSE="latex"

DEPEND="latex? ( app-text/dvipng )
	dev-python/PyQt
	dev-python/pygame"
RDEPEND=${DEPEND}

src_unpack() {
	distutils_src_unpack

	if ! use latex ; then
	sed -i \
		-e "s/process_latex(latex_command):/process_latex(latex_command):\n    return latex_command/" \
		mnemosyne/core/mnemosyne_core.py || die "sed failed"
	fi
}