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

Loading…
Cancel
Save