summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'media-gfx/valentina/valentina-0.4.2-r1.ebuild')
-rw-r--r--media-gfx/valentina/valentina-0.4.2-r1.ebuild58
1 files changed, 58 insertions, 0 deletions
diff --git a/media-gfx/valentina/valentina-0.4.2-r1.ebuild b/media-gfx/valentina/valentina-0.4.2-r1.ebuild
new file mode 100644
index 000000000000..a3e8021d0772
--- /dev/null
+++ b/media-gfx/valentina/valentina-0.4.2-r1.ebuild
@@ -0,0 +1,58 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit qmake-utils
+
+DESCRIPTION="Cloth patternmaking software"
+HOMEPAGE="http://valentinaproject.bitbucket.org/"
+SRC_URI="https://bitbucket.org/dismine/valentina/get/v0.4.2.zip -> ${P}.zip"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+# en_IN not supported in Gentoo so not added here
+LANGS="cs_CZ de_DE en_CA en_US es_ES fi_FI fr_FR he_IL id_ID it_IT nl_NL ro_RO ru_RU uk_UA zh_CN"
+
+for LANG in ${LANGS}; do
+ IUSE="${IUSE} linguas_${LANG}"
+done
+
+CDEPEND="
+ app-text/poppler
+ dev-qt/qtcore:5
+ dev-qt/qtgui:5
+ dev-qt/qtnetwork:5
+ dev-qt/qtprintsupport:5
+ dev-qt/qtsvg:5
+ dev-qt/qtwidgets:5
+ dev-qt/qtxml:5
+ dev-qt/qtxmlpatterns:5"
+RDEPEND="${CDEPEND}"
+DEPEND="${CDEPEND}
+ app-arch/unzip"
+
+S=${WORKDIR}/dismine-${PN}-44d43351cb59
+
+src_prepare() {
+ epatch "${FILESDIR}/locales.patch"
+}
+
+src_configure() {
+ local locales=""
+
+ for LANG in ${LANGS}; do
+ if use linguas_${LANG}; then
+ locales="${locales} ${LANG}"
+ fi
+ done
+
+ eqmake5 LOCALES="${locales}" CONFIG+=noStripDebugSymbols CONFIG+=no_ccache Valentina.pro -r
+}
+
+src_install() {
+ emake install INSTALL_ROOT="${D}"
+}