working ebuild, but still lacks translation files

master
Denes Matetelki 14 years ago
parent d7b96d6a8b
commit 06e9d8ed95

@ -3,14 +3,15 @@ KEYWORDS="~x86"
EAPI="3"
inherit qt4-r2
LANGS="hu"
IUSE="linguas_hu"
LANGS="hu nb"
IUSE="linguas_hu linguas_nb"
DESCRIPTION="MindMap software written in Qt"
HOMEPAGE="https://gitorious.org/qtmindmap"
SRC_URI="http://matetelki.com/qtmindmap/qtmindmap-qtmindmap-master.tar.gz"
LICENSE="GPL-2"
# some functions introduced in qt 4.6
DEPEND=">=x11-libs/qt-core-4.6
>=x11-libs/qt-gui-4.6
>=x11-libs/qt-svg-4.6
@ -18,16 +19,20 @@ DEPEND=">=x11-libs/qt-core-4.6
>=x11-libs/qt-xmlpatterns-4.6"
RDEPEND="${DEPEND}"
src_configure() {
eqmake4 "${S}"/qtmindmap-qtmindmap/qtmindmap.pro
# lrelease /qtmindmap-qtmindmap/lang/qtmindmap_hu.ts
# lrelease /qtmindmap-qtmindmap/lang/qtmindmap_nb_NO.ts
}
src_install() {
# do normal installation
# qt4-r2_src_install
# cp qtmindmap /usr/bin/
emake INSTALL_ROOT="${D}" DESTDIR="${D}" install || die "emake install failed"
# Install translations
# TODO how?
insopts -m0755
insinto /usr/bin
doins qtmindmap
# insinto /usr/share/qtmindmap/i18n
# doins /qtmindmap-qtmindmap/lang/qtmindmap_hu.ts
# doins /qtmindmap-qtmindmap/lang/qtmindmap_nb_NO.ts
}

@ -38,4 +38,4 @@ TRANSLATIONS += lang/qtmindmap_hu.ts \
CODECFORTR = UTF-8
DESTDIR = usr/bin
#DESTDIR = usr/bin

Loading…
Cancel
Save