-# Copyright 1999-2008 Gentoo Foundation
+# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
-EAPI="1"
-inherit eutils qt4 toolchain-funcs
+EAPI="2"
+inherit eutils qt4-r2 toolchain-funcs
-KEYWORDS="~x86"
+KEYWORDS="~amd64 ~x86"
MY_PN=JapaneseVocabulary
SLOT="0"
IUSE=""
-DEPEND=">=x11-libs/qt-4.2:4"
+DEPEND="dev-qt/qtgui:4
+ dev-qt/qtsql:4[sqlite]"
RDEPEND="${DEPEND}"
-QT4_BUILT_WITH_USE_CHECK="sqlite3"
S=${WORKDIR}/${PN}
-src_compile() {
- eqmake4 ${MY_PN}.pro
- emake || die "emake failed"
-}
-
src_install() {
dobin ${MY_PN}
keepdir /usr/share/${PN}
pkg_postrm() {
# do not leave orphaned cruft behind
- [[ -e ${ROOT}/usr/share/${PN} ]] && rm -rf /usr/share/${PN}
+ if ! has_version ${CATEGORY}/${PN} ; then
+ [[ -d ${ROOT}/usr/share/${PN} ]] && rm -rf "${ROOT}"/usr/share/${PN}
+ fi
}