1 # Copyright 1999-2007 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 inherit eutils qt4 toolchain-funcs
10 MY_PN=JapaneseVocabulary
12 DESCRIPTION="A simple vocabulary program for studying Japanese."
13 HOMEPAGE="http://code.google.com/p/japanese-vocabulary/"
14 SRC_URI="http://${PN}.googlecode.com/files/${MY_PN}-${PV}-src.tar.gz"
19 DEPEND=">=x11-libs/qt-4.2:4"
22 QT4_BUILT_WITH_USE_CHECK="sqlite3"
27 emake || die "emake failed"
32 keepdir /usr/share/${PN}
36 elog "To fetch an up-to-date vocabulary file, run:"
37 elog " emerge --config =${CATEGORY}/${PF}"
41 cd "${ROOT}usr/share/${PN}"
42 wget "http://japanese-vocabulary.googlecode.com/files/jlpt.vocab"
43 einfo "The vocabulary database is in:"
44 einfo " /usr/share/${PN}"
48 # do not leave orphaned cruft behind
49 [[ -e ${ROOT}/usr/share/${PN} ]] && rm -rf /usr/share/${PN}