1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 inherit eutils qt4-r2 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="dev-libs/qtgui:4
20 dev-libs/qtsql:4[sqlite]"
27 keepdir /usr/share/${PN}
31 elog "To fetch an up-to-date vocabulary file, run:"
32 elog " emerge --config =${CATEGORY}/${PF}"
36 cd "${ROOT}usr/share/${PN}"
37 wget "http://japanese-vocabulary.googlecode.com/files/jlpt.vocab"
38 einfo "The vocabulary database is in:"
39 einfo " /usr/share/${PN}"
43 # do not leave orphaned cruft behind
44 if ! has_version ${CATEGORY}/${PN} ; then
45 [[ -d ${ROOT}/usr/share/${PN} ]] && rm -rf "${ROOT}"/usr/share/${PN}