summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiroslav Šulc <fordfrog@gentoo.org>2016-02-18 18:58:42 +0100
committerMiroslav Šulc <fordfrog@gentoo.org>2016-02-18 18:58:42 +0100
commitf6d9becf7de6e4345543d98d9badea17043a2963 (patch)
tree93d1493128540697583112f1741353f00cac92d6 /media-gfx
parentdev-python/doit-py: Bump (diff)
downloadgentoo-f6d9becf7de6e4345543d98d9badea17043a2963.tar.gz
gentoo-f6d9becf7de6e4345543d98d9badea17043a2963.tar.bz2
gentoo-f6d9becf7de6e4345543d98d9badea17043a2963.zip
media-gfx/valentina: new package
Package-Manager: portage-2.2.27
Diffstat (limited to 'media-gfx')
-rw-r--r--media-gfx/valentina/Manifest1
-rw-r--r--media-gfx/valentina/files/locales.patch48
-rw-r--r--media-gfx/valentina/metadata.xml8
-rw-r--r--media-gfx/valentina/valentina-0.4.2.ebuild58
-rw-r--r--media-gfx/valentina/valentina-9999.ebuild53
5 files changed, 168 insertions, 0 deletions
diff --git a/media-gfx/valentina/Manifest b/media-gfx/valentina/Manifest
new file mode 100644
index 000000000000..dd83a3029656
--- /dev/null
+++ b/media-gfx/valentina/Manifest
@@ -0,0 +1 @@
+DIST valentina-0.4.2.zip 21431337 SHA256 7d80d7cf49250cc48f7ae791e1ee3a8de2216f818fe100b883302099d984de05 SHA512 e04615fe0d79e8d0adebaea1808ee123d979babcd9f9320e897921aeda811ece37aff20575fb4bc033f21a91b498f409dbf1a4b8999e8b3c841c2f842ce41263 WHIRLPOOL 59714a19dee39cadc86f5542e52b4424fd7724bbbf5c9e3f6f33ebc48c313bc2b7c5f3f11f82b660f9a2619d05e76bc91f65201c95ae1473efaa540e132020d9
diff --git a/media-gfx/valentina/files/locales.patch b/media-gfx/valentina/files/locales.patch
new file mode 100644
index 000000000000..a9084627df57
--- /dev/null
+++ b/media-gfx/valentina/files/locales.patch
@@ -0,0 +1,48 @@
+diff --git a/src/app/translations.pri b/src/app/translations.pri
+index b2dd2c4..87c55f7 100755
+--- a/src/app/translations.pri
++++ b/src/app/translations.pri
+@@ -9,22 +9,27 @@ PMSYSTEMS += \
+ p0 p1 p2 p3 p4 p5 p6 p7 p8 p9 p10 p11 p12 p13 p14 p15 p16 p17 p18 p19 p20 p21 p22 p23 p24 p25 p26 p27 p28 p29 p30 \
+ p31 p32 p33 p34 p35 p36 p37 p38 p39 p40 p41 p42 p43 p44 p45 p46 p47 p48 p49 p50 p51 p52 p53 p54 p998
+
+-LANGUAGES += \
+- 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 \
+- en_IN \
+- ro_RO
++isEmpty(LOCALES){
++ LANGUAGES += \
++ 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 \
++ en_IN \
++ ro_RO \
++ zh_CN
++ } else {
++ LANGUAGES = $${LOCALES}
++ }
+
+ for(lang, LANGUAGES) {
+ INSTALL_TRANSLATIONS += $${TRANSLATIONS_PATH}/valentina_$${lang}.qm
diff --git a/media-gfx/valentina/metadata.xml b/media-gfx/valentina/metadata.xml
new file mode 100644
index 000000000000..7208ccb4cb55
--- /dev/null
+++ b/media-gfx/valentina/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer>
+ <email>fordfrog@gentoo.org</email>
+ <name>Miroslav Šulc</name>
+</maintainer>
+</pkgmetadata>
diff --git a/media-gfx/valentina/valentina-0.4.2.ebuild b/media-gfx/valentina/valentina-0.4.2.ebuild
new file mode 100644
index 000000000000..a82b3f15595f
--- /dev/null
+++ b/media-gfx/valentina/valentina-0.4.2.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+=no_ccache Valentina.pro -r
+}
+
+src_install() {
+ emake install INSTALL_ROOT="${D}"
+}
diff --git a/media-gfx/valentina/valentina-9999.ebuild b/media-gfx/valentina/valentina-9999.ebuild
new file mode 100644
index 000000000000..bb08d8f66ef6
--- /dev/null
+++ b/media-gfx/valentina/valentina-9999.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit mercurial qmake-utils
+
+DESCRIPTION="Cloth patternmaking software"
+HOMEPAGE="http://valentinaproject.bitbucket.org/"
+SRC_URI=""
+EHG_REPO_URI="https://bitbucket.org/dismine/valentina"
+EHG_REVISION="develop"
+
+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}"
+
+src_configure() {
+ local locales=""
+
+ for LANG in ${LANGS}; do
+ if use linguas_${LANG}; then
+ locales="${locales} ${LANG}"
+ fi
+ done
+
+ eqmake5 LOCALES="${locales}" CONFIG+=no_ccache Valentina.pro -r
+}
+
+src_install() {
+ emake install INSTALL_ROOT="${D}"
+}