1 # Copyright 1999-2007 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
5 inherit eutils qt4 toolchain-funcs
9 MY_PN=JapaneseVocabulary
11 DESCRIPTION="A simple vocabulary program for studying Japanese."
12 HOMEPAGE="http://code.google.com/p/japanese-vocabulary/"
13 SRC_URI="http://${PN}.googlecode.com/files/${MY_PN}-${PV}-src.tar.gz"
18 DEPEND="$(qt4_min_version 4.2)"
21 QT4_BUILT_WITH_USE_CHECK="sqlite3"
26 emake || die "emake failed"
31 keepdir /usr/share/${PN}
35 elog "To fetch an up-to-date vocabulary file, run:"
36 elog " emerge --config =${CATEGORY}/${PF}"
40 cd "${ROOT}usr/share/${PN}"
41 wget "http://japanese-vocabulary.googlecode.com/files/jlpt.vocab"
42 einfo "The vocabulary database is in:"
43 einfo " /usr/share/${PN}"
47 # do not leave orphaned cruft behind
48 [[ -e ${ROOT}/usr/share/${PN} ]] && rm -rf /usr/share/${PN}