2016-02-18 15:14:11 +01:00
|
|
|
# Copyright 1999-2016 Gentoo Foundation
|
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
# $Header: $
|
|
|
|
|
|
|
|
EAPI=5
|
|
|
|
|
2016-02-19 16:03:39 +01:00
|
|
|
inherit mercurial qmake-utils gnome2-utils fdo-mime
|
2016-02-18 15:14:11 +01:00
|
|
|
|
|
|
|
DESCRIPTION="Cloth patternmaking software"
|
2017-09-01 16:04:19 +02:00
|
|
|
HOMEPAGE="https://valentinaproject.bitbucket.io/"
|
2016-02-18 15:14:11 +01:00
|
|
|
SRC_URI=""
|
|
|
|
EHG_REPO_URI="https://bitbucket.org/dismine/valentina"
|
|
|
|
EHG_REVISION="develop"
|
|
|
|
|
|
|
|
LICENSE="GPL-3"
|
|
|
|
SLOT="1"
|
|
|
|
KEYWORDS="~amd64 ~x86"
|
2016-02-19 16:03:39 +01:00
|
|
|
IUSE="gnome"
|
2016-02-18 15:14:11 +01:00
|
|
|
|
2016-02-18 19:14:57 +01:00
|
|
|
# en_IN not supported in Gentoo so not added here
|
|
|
|
LANGS="ru_RU uk_UA de_DE cs_CZ he_IL fr_FR it_IT nl_NL id_ID es_ES fi_FI en_US en_CA ro_RO zh_CN"
|
|
|
|
|
|
|
|
for LANG in ${LANGS}; do
|
|
|
|
IUSE="${IUSE} linguas_${LANG}"
|
2016-02-18 15:14:11 +01:00
|
|
|
done
|
|
|
|
|
|
|
|
CDEPEND="
|
|
|
|
dev-qt/qtcore:5
|
|
|
|
dev-qt/qtgui:5
|
|
|
|
dev-qt/qtwidgets:5
|
|
|
|
dev-qt/qtxml:5
|
|
|
|
dev-qt/qtsvg:5
|
|
|
|
dev-qt/linguist:5
|
|
|
|
dev-qt/qtxmlpatterns:5
|
|
|
|
dev-qt/qtprintsupport:5
|
|
|
|
dev-qt/qtnetwork:5
|
2018-01-24 12:16:29 +01:00
|
|
|
dev-qt/qtconcurrent:5
|
2018-03-10 15:39:37 +01:00
|
|
|
dev-qt/qtopengl:5
|
2016-02-18 16:35:47 +01:00
|
|
|
app-text/poppler"
|
2016-10-20 21:18:06 +02:00
|
|
|
RDEPEND="${CDEPEND}"
|
2016-02-18 15:14:11 +01:00
|
|
|
DEPEND="${CDEPEND}
|
|
|
|
dev-util/ccache"
|
|
|
|
|
|
|
|
src_configure() {
|
2016-02-18 19:14:57 +01:00
|
|
|
local locales=""
|
|
|
|
|
|
|
|
for LANG in ${LANGS}; do
|
|
|
|
if use linguas_${LANG}; then
|
|
|
|
locales="${locales} ${LANG}"
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
eqmake5 LOCALES="${locales}" Valentina.pro -r
|
2016-02-18 15:14:11 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
|
|
|
emake install INSTALL_ROOT="${D}"
|
2016-02-19 16:03:39 +01:00
|
|
|
|
|
|
|
dodoc LICENSE_GPL.txt ChangeLog.txt README.txt
|
|
|
|
|
|
|
|
doman dist/debian/${PN}.1
|
|
|
|
doman dist/debian/tape.1
|
2021-05-20 09:35:40 +02:00
|
|
|
doman dist/debian/puzzle.1
|
2016-02-19 16:03:39 +01:00
|
|
|
|
|
|
|
cp dist/debian/valentina.sharedmimeinfo dist/debian/${PN}.xml || die
|
|
|
|
insinto /usr/share/mime/packages
|
|
|
|
doins dist/debian/${PN}.xml
|
|
|
|
}
|
|
|
|
|
|
|
|
pkg_postinst() {
|
|
|
|
fdo-mime_desktop_database_update
|
|
|
|
|
|
|
|
if use gnome ; then
|
|
|
|
gnome2_icon_cache_update
|
|
|
|
fi
|
2016-02-18 15:14:11 +01:00
|
|
|
}
|