summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'media-gfx/nomacs')
-rw-r--r--media-gfx/nomacs/Manifest2
-rw-r--r--media-gfx/nomacs/files/nomacs-2.4.2-include.patch10
-rw-r--r--media-gfx/nomacs/metadata.xml14
-rw-r--r--media-gfx/nomacs/nomacs-2.4.2.ebuild55
-rw-r--r--media-gfx/nomacs/nomacs-2.4.4.ebuild57
5 files changed, 138 insertions, 0 deletions
diff --git a/media-gfx/nomacs/Manifest b/media-gfx/nomacs/Manifest
new file mode 100644
index 00000000000..8925a44092a
--- /dev/null
+++ b/media-gfx/nomacs/Manifest
@@ -0,0 +1,2 @@
+DIST nomacs-2.4.2-source.tar.bz2 1443270 SHA256 b0f52b919025a48a0e0300ea15c90b40d6ad892b055088fca02a8137e229bc3a SHA512 e3fae11ae8c385f9548bda32b2364967a457e9645fa4375da9d1cf85dc8fb150a56a19c3eab12ddef90d58f20a57d02a8720ddb8fef22c569ab6c28d54654f02 WHIRLPOOL ac21dd3afe3b45324daa6e07030203611c9f2de4ad1427ce4bb388d84ade5e38a686b42e0d757adbaa3a91fbb658d94f9f47de61e9ccf4ccc339af4ce1c4fd8d
+DIST nomacs-2.4.4-source.tar.bz2 1448716 SHA256 01b0cb48936ca0214c120a126069c50a9b8fe7ecbdb69bb4e5fe283d6b198257 SHA512 76cd5efaba09584757843e895b5b8293adcdab7df68a7d5bdcf38e9e5df04e38382944cf64293c9820815b9e6328793dd8e46afef5ffeaa80ddc4f7d43290fc2 WHIRLPOOL d858887f66cbbed858c1985313107839a8162052bfb825bc48f344516444a1e184e839c9a067283d7503b98a6993126ade3f39c0a85b50ca534f963335c85513
diff --git a/media-gfx/nomacs/files/nomacs-2.4.2-include.patch b/media-gfx/nomacs/files/nomacs-2.4.2-include.patch
new file mode 100644
index 00000000000..abf3d406ce5
--- /dev/null
+++ b/media-gfx/nomacs/files/nomacs-2.4.2-include.patch
@@ -0,0 +1,10 @@
+--- src/DkMath.h
++++ src/DkMath.h
+@@ -29,6 +29,7 @@
+
+ #pragma warning(push, 0) // no warnings from includes - begin
+ #include <cmath>
++#include <float.h>
+ #include <QDebug>
+ #include <QPointF>
+ #include <QPolygonF>
diff --git a/media-gfx/nomacs/metadata.xml b/media-gfx/nomacs/metadata.xml
new file mode 100644
index 00000000000..0025d46170c
--- /dev/null
+++ b/media-gfx/nomacs/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>qt</herd>
+ <upstream>
+ <remote-id type="sourceforge">nomacs</remote-id>
+ <bugs-to>http://www.nomacs.org/redmine/projects/nomacs</bugs-to>
+ </upstream>
+ <use>
+ <flag name="opencv">Build support for <pkg>media-libs/opencv</pkg></flag>
+ <flag name="webp">Build support for WEBP image format</flag>
+ <flag name="zip">Build support for zip archives</flag>
+ </use>
+</pkgmetadata>
diff --git a/media-gfx/nomacs/nomacs-2.4.2.ebuild b/media-gfx/nomacs/nomacs-2.4.2.ebuild
new file mode 100644
index 00000000000..b3ef73bdc75
--- /dev/null
+++ b/media-gfx/nomacs/nomacs-2.4.2.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit cmake-utils fdo-mime
+
+DESCRIPTION="Qt4-based image viewer"
+HOMEPAGE="http://www.nomacs.org/"
+SRC_URI="mirror://sourceforge/${PN}/${P}-source.tar.bz2"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="amd64 ~amd64-linux"
+IUSE="opencv raw tiff webp zip"
+
+REQUIRED_USE="raw? ( opencv ) tiff? ( opencv )"
+
+RDEPEND="
+ >=media-gfx/exiv2-0.20[zlib]
+ >=dev-qt/qtcore-4.7.0:4
+ >=dev-qt/qtgui-4.7.0:4
+ opencv? ( >=media-libs/opencv-2.4.0[qt4] )
+ raw? ( >=media-libs/libraw-0.14 )
+ tiff? ( media-libs/tiff:0= )
+ webp? ( >=media-libs/libwebp-0.3.1:= )
+ zip? ( dev-libs/quazip )
+"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+"
+
+PATCHES=( "${FILESDIR}/${P}-include.patch" )
+
+src_configure() {
+ local mycmakeargs=(
+ -DUSE_SYSTEM_WEBP=true
+ -DUSE_SYSTEM_QUAZIP=true
+ $(cmake-utils_use_enable opencv)
+ $(cmake-utils_use_enable raw)
+ $(cmake-utils_use_enable tiff)
+ $(cmake-utils_use_enable webp)
+ $(cmake-utils_use_enable zip QUAZIP)
+ )
+ cmake-utils_src_configure
+}
+
+pkg_postinst() {
+ fdo-mime_desktop_database_update
+}
+
+pkg_postrm() {
+ fdo-mime_desktop_database_update
+}
diff --git a/media-gfx/nomacs/nomacs-2.4.4.ebuild b/media-gfx/nomacs/nomacs-2.4.4.ebuild
new file mode 100644
index 00000000000..dee2bc0a009
--- /dev/null
+++ b/media-gfx/nomacs/nomacs-2.4.4.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit cmake-utils fdo-mime
+
+DESCRIPTION="Qt4-based image viewer"
+HOMEPAGE="http://www.nomacs.org/"
+SRC_URI="mirror://sourceforge/${PN}/${P}-source.tar.bz2"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~amd64-linux"
+IUSE="opencv raw tiff webp zip"
+
+REQUIRED_USE="
+ raw? ( opencv )
+ tiff? ( opencv )
+"
+
+RDEPEND="
+ dev-qt/qtcore:4
+ dev-qt/qtgui:4
+ >=media-gfx/exiv2-0.20:=[zlib]
+ opencv? ( >=media-libs/opencv-2.4:=[qt4] )
+ raw? ( >=media-libs/libraw-0.14:= )
+ tiff? ( media-libs/tiff:0 )
+ webp? ( >=media-libs/libwebp-0.3.1:= )
+ zip? ( dev-libs/quazip )
+"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+"
+
+src_configure() {
+ local mycmakeargs=(
+ -DENABLE_QT5=OFF
+ $(cmake-utils_use_enable opencv)
+ $(cmake-utils_use_enable raw)
+ $(cmake-utils_use_enable tiff)
+ $(cmake-utils_use_enable webp)
+ $(cmake-utils_use_enable zip QUAZIP)
+ -DUSE_SYSTEM_WEBP=ON
+ -DUSE_SYSTEM_QUAZIP=ON
+ )
+ cmake-utils_src_configure
+}
+
+pkg_postinst() {
+ fdo-mime_desktop_database_update
+}
+
+pkg_postrm() {
+ fdo-mime_desktop_database_update
+}