summaryrefslogtreecommitdiff
path: root/media-gfx/valentina
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /media-gfx/valentina
reinit the tree, so we can have metadata
Diffstat (limited to 'media-gfx/valentina')
-rw-r--r--media-gfx/valentina/Manifest12
-rw-r--r--media-gfx/valentina/files/disable-tests-compilation.patch35
-rw-r--r--media-gfx/valentina/files/fix-insecure-runpaths.patch56
-rw-r--r--media-gfx/valentina/files/locales.patch48
-rw-r--r--media-gfx/valentina/metadata.xml11
-rw-r--r--media-gfx/valentina/valentina-0.4.2-r3.ebuild77
-rw-r--r--media-gfx/valentina/valentina-0.4.5.ebuild77
-rw-r--r--media-gfx/valentina/valentina-0.5.0.ebuild79
-rw-r--r--media-gfx/valentina/valentina-9999.ebuild70
9 files changed, 465 insertions, 0 deletions
diff --git a/media-gfx/valentina/Manifest b/media-gfx/valentina/Manifest
new file mode 100644
index 000000000000..c4510c67c101
--- /dev/null
+++ b/media-gfx/valentina/Manifest
@@ -0,0 +1,12 @@
+AUX disable-tests-compilation.patch 638 SHA256 e0470715543dc081a633a4dfa2d656fe225f2e547d2f8c922c440a4867db7a09 SHA512 865c32420acd1d406e1e1a896d520d399960bcc834ad467cb93fd66d6a9f25559e52a06e780050214601a78e630ebd0c236f66b3cdce6db4f5f511f217898bc2 WHIRLPOOL baa2ef5cb5cb301c6b71799ec6d6e1b0d560385bd3cd9233abe513b0c4c91537ca59e0beeb8225853bed4ddd981d9da014354ea40c87253042247739370fe71e
+AUX fix-insecure-runpaths.patch 2338 SHA256 8577b422ca3e2003799fc9d7589101ed6bdc36ea0c470cddff62db83936fdb38 SHA512 2f175c1b787cff5e565b896de1c23199230c87dc84eb0b5837b1fed4166b84d4d3430b953fc6dd04c0276593fcf4db9190b2346fa8d62b9b2f0443f435e786fb WHIRLPOOL 6828629adf6de488e981ec17545dfba186bd9e02f40eb20c7ccf17c805c53481ffedddac7663fa7ece1e8a37fedadebf8190119c592953ce07bfd355413d4fcc
+AUX locales.patch 962 SHA256 e9c938a3e1958f4a1697dc1a434c38352a1be4728553ecd23697484c164275f4 SHA512 5d5d10d9cfd13738126ef3bff9083ebd6c63f5c9c6902ded0d664214451739eae0da43e5f7059cebf672342e400d5cf71d2b9fd104ac4d2e118bd1a2f20d6bd7 WHIRLPOOL 49f75bcaec9ad57cccc88356831b2d8e73cde503b0d64f9feddf2c9e5640d36313db823b5bc9a69285811c4aea00384510951123dd3adc8e078647d40ece4c8e
+DIST valentina-0.4.2.zip 21431337 SHA256 7d80d7cf49250cc48f7ae791e1ee3a8de2216f818fe100b883302099d984de05 SHA512 e04615fe0d79e8d0adebaea1808ee123d979babcd9f9320e897921aeda811ece37aff20575fb4bc033f21a91b498f409dbf1a4b8999e8b3c841c2f842ce41263 WHIRLPOOL 59714a19dee39cadc86f5542e52b4424fd7724bbbf5c9e3f6f33ebc48c313bc2b7c5f3f11f82b660f9a2619d05e76bc91f65201c95ae1473efaa540e132020d9
+DIST valentina-0.4.5.zip 21431337 SHA256 7d80d7cf49250cc48f7ae791e1ee3a8de2216f818fe100b883302099d984de05 SHA512 e04615fe0d79e8d0adebaea1808ee123d979babcd9f9320e897921aeda811ece37aff20575fb4bc033f21a91b498f409dbf1a4b8999e8b3c841c2f842ce41263 WHIRLPOOL 59714a19dee39cadc86f5542e52b4424fd7724bbbf5c9e3f6f33ebc48c313bc2b7c5f3f11f82b660f9a2619d05e76bc91f65201c95ae1473efaa540e132020d9
+DIST valentina-0.5.0.zip 21431337 SHA256 7d80d7cf49250cc48f7ae791e1ee3a8de2216f818fe100b883302099d984de05 SHA512 e04615fe0d79e8d0adebaea1808ee123d979babcd9f9320e897921aeda811ece37aff20575fb4bc033f21a91b498f409dbf1a4b8999e8b3c841c2f842ce41263 WHIRLPOOL 59714a19dee39cadc86f5542e52b4424fd7724bbbf5c9e3f6f33ebc48c313bc2b7c5f3f11f82b660f9a2619d05e76bc91f65201c95ae1473efaa540e132020d9
+EBUILD valentina-0.4.2-r3.ebuild 1680 SHA256 694ed67737d623eadc5106ef05d995fd04b99b44431ea7fbcb8780111eec7591 SHA512 7c052a184d6908c43e04550b21f15ad6599ebd600ab814aa5ea55e3fd07823452310e473d4c5f940ef05b125bfe0e714ee345e6adf739c4ec109990fd8c93ffc WHIRLPOOL 6989393484bbf8065537b3e27cb70dcd02c638af3765bd1ba18c13ff1b5665f20f1373761cec3489db516651320b3e63ace4d527f7601de9f196e11d8cfe3878
+EBUILD valentina-0.4.5.ebuild 1680 SHA256 694ed67737d623eadc5106ef05d995fd04b99b44431ea7fbcb8780111eec7591 SHA512 7c052a184d6908c43e04550b21f15ad6599ebd600ab814aa5ea55e3fd07823452310e473d4c5f940ef05b125bfe0e714ee345e6adf739c4ec109990fd8c93ffc WHIRLPOOL 6989393484bbf8065537b3e27cb70dcd02c638af3765bd1ba18c13ff1b5665f20f1373761cec3489db516651320b3e63ace4d527f7601de9f196e11d8cfe3878
+EBUILD valentina-0.5.0.ebuild 1691 SHA256 e00a88d4684586cc421da43acde0f003a73ee0932a25787942e621fbe6f12ff2 SHA512 1e3b91959f0c1cbd51d5db5e301ee57472697ebaa62d26fa5319f59c8d94ed48c870b01acff835200b1a35834eab8ac725d89ecfa012229a08a678832eb1e5fd WHIRLPOOL c4f9c9c076159ec7d10979c8b428b1a24a8203c00fbae24de1940431e6608f1d2de6cfb5db5180fbb0ef9b4d7bfa23f66bfdab6ab3b36b4aff18cac9187e5571
+EBUILD valentina-9999.ebuild 1495 SHA256 f25593ebdc9dbf28a86de5d9a10724b333f06005755a2bff39357b3a38b36012 SHA512 bf83b96f858211faefd67240eda8718467d456edca4e0ef8524fb4603a33057f9eacad0b4e2b584e36d385ba29c52f5c2f8dd157a9816ec6fd94f7356a5eaf44 WHIRLPOOL 68d8c42a7b0c99d80b586e893769d45a81727f584762c6425a420673016f659056c3bd553a02a5a14c0c9a21aa424aa28f586fbf191af6a844d54a9251e23871
+MISC ChangeLog 1824 SHA256 c9cd62e8638f7b0a07eaffd1480f4beb5aa1db6a91e3d1508c4c375376acf2a8 SHA512 6b38eca5b440d9447012a9df4c07c37a55a3dd080ee5574ee0206887699aed67bff99c62b030f34af0b70a781c5500b20b52478682d5cab8fec58aa0ffe550c1 WHIRLPOOL 9c5ece1064115966c6d77ea73b33431ccfc6eb0235327de98aa400ea5e0f8125a85a5c60f4063f42824c779476b7011ca5628cf940d37199a021f10d55a675a5
+MISC metadata.xml 334 SHA256 2dc8bd9c92e9635eb050e38cf27a44747254780fee228c02851d6bf81cb9107c SHA512 d1264aa0d26ba75466c5572c37ca6fd384d4e6db392aca0e47d4b1d0bd3ef7e035fed51c460af1bb258c500d1cc9211ec2e85db3e3aa158d378fb1389a3ebf03 WHIRLPOOL 8f46171b3aa2ba25836342ea2cd509b1e08fdf6f3126747931b9392ba3fef549f47cb33f68fd4bfb633b04cb884e4d494ba86d2c37a287cce57d0ad8172426a9
diff --git a/media-gfx/valentina/files/disable-tests-compilation.patch b/media-gfx/valentina/files/disable-tests-compilation.patch
new file mode 100644
index 000000000000..a819a02a336b
--- /dev/null
+++ b/media-gfx/valentina/files/disable-tests-compilation.patch
@@ -0,0 +1,35 @@
+# HG changeset patch
+# User Roman Telezhynskyi <kroluku@gmail.com>
+# Date 1455906661 -7200
+# Branch develop
+# Node ID 8edb1b0f161a5f472a0e6a8a8b5b8a1ae7cf33c5
+# Parent 42a73e7a17757ce9d12e16f616a41f52efdf4b91
+CONFIG key to disable building tests.
+
+diff --git a/src/src.pro b/src/src.pro
+--- a/src/src.pro
++++ b/src/src.pro
+@@ -1,8 +1,17 @@
+ TEMPLATE = subdirs
+-SUBDIRS = \
+- libs \
+- app \
+- test
+
+-app.depends = libs
+-test.depends = libs
++noTests{ # For enable run qmake with CONFIG+=noTests
++ SUBDIRS = \
++ libs \
++ app
++
++} else {
++ SUBDIRS = \
++ libs \
++ app \
++ test
++
++ test.depends = libs
++}
++
++app.depends = libs
diff --git a/media-gfx/valentina/files/fix-insecure-runpaths.patch b/media-gfx/valentina/files/fix-insecure-runpaths.patch
new file mode 100644
index 000000000000..a98a069dfb5a
--- /dev/null
+++ b/media-gfx/valentina/files/fix-insecure-runpaths.patch
@@ -0,0 +1,56 @@
+# HG changeset patch
+# User Roman Telezhynskyi <kroluku@gmail.com>
+# Date 1455895311 -7200
+# Branch develop
+# Node ID ebb8c53b8fdc09d2542ec6b8a63585be63c02725
+# Parent a29fbab1f3ac59fda0e81bf1e99d153b5f47bd7c
+CONFIG key to disable setting custom rpath option.
+
+diff --git a/src/app/tape/tape.pro b/src/app/tape/tape.pro
+--- a/src/app/tape/tape.pro
++++ b/src/app/tape/tape.pro
+@@ -348,10 +348,16 @@
+ # Path to recource file.
+ win32:RC_FILE = share/resources/tape.rc
+
+-unix:!macx{
+- # suppress the default RPATH
+- QMAKE_LFLAGS_RPATH =
+- QMAKE_LFLAGS += "-Wl,-rpath,\'\$$ORIGIN\' -Wl,-rpath,$${OUT_PWD}/../../libs/qmuparser/$${DESTDIR} -Wl,-rpath,$${OUT_PWD}/../../libs/vpropertyexplorer/$${DESTDIR}"
++noRunPath{ # For enable run qmake with CONFIG+=noRunPath
++ # do nothing
++} else {
++ unix:!macx{
++ # suppress the default RPATH
++ # helps to run the program without Qt Creator
++ # see problem with path to libqmuparser and libpropertybrowser
++ QMAKE_LFLAGS_RPATH =
++ QMAKE_LFLAGS += "-Wl,-rpath,\'\$$ORIGIN\' -Wl,-rpath,$${OUT_PWD}/../../libs/qmuparser/$${DESTDIR} -Wl,-rpath,$${OUT_PWD}/../../libs/vpropertyexplorer/$${DESTDIR}"
++ }
+ }
+
+ # When the GNU linker sees a library, it discards all symbols that it doesn't need.
+diff --git a/src/app/valentina/valentina.pro b/src/app/valentina/valentina.pro
+--- a/src/app/valentina/valentina.pro
++++ b/src/app/valentina/valentina.pro
+@@ -476,10 +476,16 @@
+ copyToDestdir($$pdftops_path, $$shell_path($${OUT_PWD}/$$DESTDIR))
+ }
+
+-unix:!macx{
+- # suppress the default RPATH
+- QMAKE_LFLAGS_RPATH =
+- QMAKE_LFLAGS += "-Wl,-rpath,\'\$$ORIGIN\' -Wl,-rpath,$${OUT_PWD}/../../libs/qmuparser/$${DESTDIR} -Wl,-rpath,$${OUT_PWD}/../../libs/vpropertyexplorer/$${DESTDIR}"
++noRunPath{ # For enable run qmake with CONFIG+=noRunPath
++ # do nothing
++} else {
++ unix:!macx{
++ # suppress the default RPATH
++ # helps to run the program without Qt Creator
++ # see problem with path to libqmuparser and libpropertybrowser
++ QMAKE_LFLAGS_RPATH =
++ QMAKE_LFLAGS += "-Wl,-rpath,\'\$$ORIGIN\' -Wl,-rpath,$${OUT_PWD}/../../libs/qmuparser/$${DESTDIR} -Wl,-rpath,$${OUT_PWD}/../../libs/vpropertyexplorer/$${DESTDIR}"
++ }
+ }
+
+ # When the GNU linker sees a library, it discards all symbols that it doesn't need.
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..2cb24851e365
--- /dev/null
+++ b/media-gfx/valentina/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fordfrog@gentoo.org</email>
+ <name>Miroslav Ć ulc</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="bitbucket">dismine/valentina</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/media-gfx/valentina/valentina-0.4.2-r3.ebuild b/media-gfx/valentina/valentina-0.4.2-r3.ebuild
new file mode 100644
index 000000000000..d64507ced9aa
--- /dev/null
+++ b/media-gfx/valentina/valentina-0.4.2-r3.ebuild
@@ -0,0 +1,77 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit qmake-utils gnome2-utils fdo-mime
+
+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"
+IUSE="gnome"
+
+# 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" \
+ "${FILESDIR}/fix-insecure-runpaths.patch" \
+ "${FILESDIR}/disable-tests-compilation.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 no_ccache noRunPath noTests" Valentina.pro -r
+}
+
+src_install() {
+ emake install INSTALL_ROOT="${D}"
+
+ dodoc LICENSE_GPL.txt ChangeLog.txt README.txt
+
+ doman dist/debian/${PN}.1
+ doman dist/debian/tape.1
+
+ 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
+}
diff --git a/media-gfx/valentina/valentina-0.4.5.ebuild b/media-gfx/valentina/valentina-0.4.5.ebuild
new file mode 100644
index 000000000000..d64507ced9aa
--- /dev/null
+++ b/media-gfx/valentina/valentina-0.4.5.ebuild
@@ -0,0 +1,77 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit qmake-utils gnome2-utils fdo-mime
+
+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"
+IUSE="gnome"
+
+# 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" \
+ "${FILESDIR}/fix-insecure-runpaths.patch" \
+ "${FILESDIR}/disable-tests-compilation.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 no_ccache noRunPath noTests" Valentina.pro -r
+}
+
+src_install() {
+ emake install INSTALL_ROOT="${D}"
+
+ dodoc LICENSE_GPL.txt ChangeLog.txt README.txt
+
+ doman dist/debian/${PN}.1
+ doman dist/debian/tape.1
+
+ 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
+}
diff --git a/media-gfx/valentina/valentina-0.5.0.ebuild b/media-gfx/valentina/valentina-0.5.0.ebuild
new file mode 100644
index 000000000000..172cf895fa38
--- /dev/null
+++ b/media-gfx/valentina/valentina-0.5.0.ebuild
@@ -0,0 +1,79 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit epatch qmake-utils gnome2-utils fdo-mime
+
+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"
+IUSE="gnome"
+
+# 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"
+
+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" \
+ "${FILESDIR}/fix-insecure-runpaths.patch" \
+ "${FILESDIR}/disable-tests-compilation.patch"
+
+ default
+}
+
+src_configure() {
+ local locales=""
+
+ for LANG in ${LANGS}; do
+ if use linguas_${LANG}; then
+ locales="${locales} ${LANG}"
+ fi
+ done
+
+ eqmake5 LOCALES="${locales}" "CONFIG+=noStripDebugSymbols no_ccache noRunPath noTests" Valentina.pro -r
+}
+
+src_install() {
+ emake install INSTALL_ROOT="${D}"
+
+ dodoc LICENSE_GPL.txt ChangeLog.txt README.txt
+
+ doman dist/debian/${PN}.1
+ doman dist/debian/tape.1
+
+ 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
+}
diff --git a/media-gfx/valentina/valentina-9999.ebuild b/media-gfx/valentina/valentina-9999.ebuild
new file mode 100644
index 000000000000..26d48b1311b8
--- /dev/null
+++ b/media-gfx/valentina/valentina-9999.ebuild
@@ -0,0 +1,70 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit mercurial qmake-utils gnome2-utils fdo-mime
+
+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=""
+IUSE="gnome"
+
+# en_IN not supported in Gentoo so not added here
+LANGS="cs_CZ de_DE el_GR en_CA en_US es_ES fi_FI fr_FR he_IL id_ID it_IT nl_NL pt_BR 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+=noStripDebugSymbols no_ccache noRunPath noTests" Valentina.pro -r
+}
+
+src_install() {
+ emake install INSTALL_ROOT="${D}"
+
+ dodoc LICENSE_GPL.txt ChangeLog.txt README.txt
+
+ doman dist/debian/${PN}.1
+ doman dist/debian/tape.1
+
+ 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
+}