summaryrefslogtreecommitdiff
path: root/media-gfx/uniconvertor
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/uniconvertor
reinit the tree, so we can have metadata
Diffstat (limited to 'media-gfx/uniconvertor')
-rw-r--r--media-gfx/uniconvertor/Manifest10
-rw-r--r--media-gfx/uniconvertor/files/uniconvertor-2.0_pre379-ImageMagick7.patch72
-rw-r--r--media-gfx/uniconvertor/files/uniconvertor-2.0_pre379-import.patch30
-rw-r--r--media-gfx/uniconvertor/files/uniconvertor-2.0_pre379-libimg.patch30
-rw-r--r--media-gfx/uniconvertor/files/uniconvertor-2.0_pre379-test.patch37
-rw-r--r--media-gfx/uniconvertor/metadata.xml11
-rw-r--r--media-gfx/uniconvertor/uniconvertor-2.0_pre379-r1.ebuild54
-rw-r--r--media-gfx/uniconvertor/uniconvertor-2.0_pre379-r2.ebuild62
8 files changed, 306 insertions, 0 deletions
diff --git a/media-gfx/uniconvertor/Manifest b/media-gfx/uniconvertor/Manifest
new file mode 100644
index 000000000000..80dbebece6be
--- /dev/null
+++ b/media-gfx/uniconvertor/Manifest
@@ -0,0 +1,10 @@
+AUX uniconvertor-2.0_pre379-ImageMagick7.patch 2158 SHA256 5c022bdd3492a219cce4881bdde806c4938bab56e2083b29e81a0b1053728a4a SHA512 dcc828944a6458fd479906952afc81830777eb38dc58cd461ab8da560c24ec73016be0d318e2b416b29ca2cb04d2cb61dbb16fec41360a86d4a32224e1645029 WHIRLPOOL 073ab92c79c3142cc6b64bec4f883f370c31aeb67f092df3320535ef36230472335edd1fed5e3009e2df18b8eabc6b820eba07c421bb77989709debb71c2fa17
+AUX uniconvertor-2.0_pre379-import.patch 935 SHA256 418f162528d4d53d4393b2b0b0d38447f4d6e36163ffffe74ad23e0e57fd8cf3 SHA512 a51a182f5fb7694a935553b85174e4f32136046eb45cb7246fc4beb071bf9b953124ffd8d6eeb6d33bda5d53b8733236dca8d5f4a2dd3bad28ec1664976337fc WHIRLPOOL a497723f6e7735fd6dd6db001161002d39feb20c89bffe93787f984c629e450a49b53518184eaa6e2d611b74bbf28c5fb1cc154dd71993410551b39302fb1da7
+AUX uniconvertor-2.0_pre379-libimg.patch 1201 SHA256 efcbb1ab90e25ad4f7aa1d9770fcc1f6a18f99d87dc0c833019bc2db77725213 SHA512 ff373151caf0c10e9a833ab68cf153d024706293c8000af248cb11a12582216c20f79e0998bdaabce0cc47d3248f786aa55ce9ba8814b1f4bb33e07670dd3136 WHIRLPOOL 7222f8b43acd7c190a972ce2d54f744f53f556d9a66ba66e58e37d3e5661b1df306861edfdf79f81ddb78fe6fa0fc88dd093af7f3490dad85ea2689d5ea3c5f2
+AUX uniconvertor-2.0_pre379-test.patch 1544 SHA256 b750ea1f5e368d3c45c4333b5f06068214c6f5025b9d860a832785e9169d3108 SHA512 760ea5ced19040d0d29230f9d6fdafafd7f6fcdd727e18261730b7696d0e9a85037cdceab8e20f202a79bd7b8c84edfa7f21619bfde1320bbdc1e1d0c6d298db WHIRLPOOL 5764cb5cb1492a7f36f065e250755b19129a9b328b4275c8e82a71c9c41fcc0ebdf4f9c851149f196feedc667f1e24ceefd3f5eef73f333e9bb3846b226b7cb2
+DIST uniconvertor-2.0_pre379.tar.xz 1844780 SHA256 96ab27fd19743bcb12385ffd15a586033e8a4a3aa1958eecf1c5cdee67a73fa5 SHA512 3a0dd8e52addb391225ae148a673e3464a04e0d36e5955e496ef78e91597408706e5cbc06113b3e959446c6dd89aefa821f32ef81a5d1837a2a3d405a5a63dea WHIRLPOOL 53c78ec1fdc64445467ea9a9ab04923a9447b428c37f1d43789e03ece61361a00db7686e0ce566805313c7298334c35a1d4fa0939d81d9962f072d5daece36df
+EBUILD uniconvertor-2.0_pre379-r1.ebuild 1382 SHA256 3ed3ed4a6b53fb62d799fe579a006534c88894db465c77290a54237cf70c7508 SHA512 786189be2c6579b24c77bb03d6251c9f38c20aabb2aabfa3bda653fa755565e33557a09352827bed04ea3f53c75d1c25276831d75120ecc1d223558dbbf5929f WHIRLPOOL e49582251931b67b7468b3d5a9c6f429f8fd5505e0586e9075246db8414738a667cfed7900526c8c30fd254660d64ab5705365cd2dba66e52412b3732819055a
+EBUILD uniconvertor-2.0_pre379-r2.ebuild 1687 SHA256 a9cae0b87a0a4c6489e83b693b07dc22c5a892458bece7f8eb0bce2d7dab1ecc SHA512 5fc899704ddc1eaf57bac23b283e36c0d10b68d6c2d96f8bc9dce68c3de107ebf187363461a49e6f785c708922b7f913314e2d2052ef8fc7319f5255768ef2ea WHIRLPOOL fc17497ed754402a6f83859abdd9cbf85f2963b10a857157cd4e553b276c5a0d926669f5ddbb57aacad6f818e88b5b9212d0f8e4e8925caff8a0b702a504a505
+MISC ChangeLog 3295 SHA256 f7fc8d4c8f94738eb40ff23e1a38a80ce8c89bef769a03f7a969a7811f81ca05 SHA512 dded8b075bb50b3d74d84f5f154cadb350c071a2694ff371ae7a75b43ade779718620e6c3022ce58577f3059ca6bb14e6b21b798c69352fb08e05e442e2b85af WHIRLPOOL 1668b9d749abd662ece00ba1a76470b4a750e4e9871c8334b0a39b4e211c3419fb521367642a81e94ec1d4e2bd6c4c175095da8fa8a50e5c13f81de2db7bc8fd
+MISC ChangeLog-2015 4604 SHA256 fad7808afeb096595a6241f3eac302c76e5348f4e8dfd61c499f24c4102cf32d SHA512 e83598ed119c44263be7842947e594243be8fce628bd6f1bff5c4d5751dc2a5468d2655b1f14c84c7bec2a6b72852c3cf90025b125d7ff75ad1322048acd32d3 WHIRLPOOL 9e69ae4314f094bb449299eab32b65868399fb62169ed685fe17886e76cf6c11121af8938fffe5819c01a5734f2cf140c0ccb9e01cda51b3560a82dda89a9f19
+MISC metadata.xml 351 SHA256 4834b22a641725bd62e2c69d59aee1820850063ecc04c24a0328687965de8e08 SHA512 e32a8fa76ddded4f43429346182fb7bcaedbd4338838886c08193c909e4d0a0a08ae2da821513228a8eda554930b777fe9408a3cf2706b4b5e6ad2b62bfbf8fa WHIRLPOOL 3e3eff253fe23c9c207970bf87c6fd81e7c62b409a389d0b1952fc16a50e3f73612e205ea4250cf61543c5e58b13ea533857cb72b9c3007ea4b2fc0e238eab62
diff --git a/media-gfx/uniconvertor/files/uniconvertor-2.0_pre379-ImageMagick7.patch b/media-gfx/uniconvertor/files/uniconvertor-2.0_pre379-ImageMagick7.patch
new file mode 100644
index 000000000000..c79b79231587
--- /dev/null
+++ b/media-gfx/uniconvertor/files/uniconvertor-2.0_pre379-ImageMagick7.patch
@@ -0,0 +1,72 @@
+--- a/src/uc2/libimg/_libimg.c 2013-02-25 11:20:00.000000000 +0100
++++ b/src/uc2/libimg/_libimg.c 2016-07-11 09:41:03.721305655 +0200
+@@ -16,8 +16,8 @@
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+
++#include <MagickWand/MagickWand.h>
+ #include <Python.h>
+-#include <wand/MagickWand.h>
+
+ static PyObject *
+ im_InitMagick(PyObject *self, PyObject *args) {
+@@ -184,33 +184,18 @@
+ else if (img_type == GrayscaleType){
+ return Py_BuildValue("s", "GrayscaleType");
+ }
+- else if (img_type == GrayscaleMatteType){
+- return Py_BuildValue("s", "GrayscaleMatteType");
+- }
+ else if (img_type == PaletteType){
+ return Py_BuildValue("s", "PaletteType");
+ }
+- else if (img_type == PaletteMatteType){
+- return Py_BuildValue("s", "PaletteMatteType");
+- }
+ else if (img_type == TrueColorType){
+ return Py_BuildValue("s", "TrueColorType");
+ }
+- else if (img_type == TrueColorMatteType){
+- return Py_BuildValue("s", "TrueColorMatteType");
+- }
+ else if (img_type == ColorSeparationType){
+ return Py_BuildValue("s", "ColorSeparationType");
+ }
+- else if (img_type == ColorSeparationMatteType){
+- return Py_BuildValue("s", "ColorSeparationMatteType");
+- }
+ else if (img_type == OptimizeType){
+ return Py_BuildValue("s", "OptimizeType");
+ }
+- else if (img_type == PaletteBilevelMatteType){
+- return Py_BuildValue("s", "PaletteBilevelMatteType");
+- }
+ else {
+ return Py_BuildValue("s", "UndefinedType");
+ }
+@@ -235,9 +220,7 @@
+ //HSBColorspace,
+ //HSLColorspace,
+ //HWBColorspace,
+-//Rec601LumaColorspace,
+ //Rec601YCbCrColorspace,
+-//Rec709LumaColorspace,
+ //Rec709YCbCrColorspace,
+ //LogColorspace,
+ //CMYColorspace
+@@ -305,15 +288,9 @@
+ else if (cs == HWBColorspace){
+ return Py_BuildValue("s", "HWBColorspace");
+ }
+- else if (cs == Rec601LumaColorspace){
+- return Py_BuildValue("s", "Rec601LumaColorspace");
+- }
+ else if (cs == Rec601YCbCrColorspace){
+ return Py_BuildValue("s", "Rec601YCbCrColorspace");
+ }
+- else if (cs == Rec709LumaColorspace){
+- return Py_BuildValue("s", "Rec709LumaColorspace");
+- }
+ else if (cs == Rec709YCbCrColorspace){
+ return Py_BuildValue("s", "Rec709YCbCrColorspace");
+ }
diff --git a/media-gfx/uniconvertor/files/uniconvertor-2.0_pre379-import.patch b/media-gfx/uniconvertor/files/uniconvertor-2.0_pre379-import.patch
new file mode 100644
index 000000000000..fae5535c6492
--- /dev/null
+++ b/media-gfx/uniconvertor/files/uniconvertor-2.0_pre379-import.patch
@@ -0,0 +1,30 @@
+ src/uc2/formats/sk1/model.py | 2 +-
+ src/unittests/image_tests/__init__.py | 2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/src/uc2/formats/sk1/model.py b/src/uc2/formats/sk1/model.py
+index 33e2b55..59aecf2 100644
+--- a/src/uc2/formats/sk1/model.py
++++ b/src/uc2/formats/sk1/model.py
+@@ -16,7 +16,7 @@
+ # along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+ from copy import deepcopy
+-import Image
++from PIL import Image
+
+ from uc2 import _, uc2const
+ from uc2.formats.pdxf import const
+diff --git a/src/unittests/image_tests/__init__.py b/src/unittests/image_tests/__init__.py
+index 031cd9f..6165129 100644
+--- a/src/unittests/image_tests/__init__.py
++++ b/src/unittests/image_tests/__init__.py
+@@ -16,7 +16,7 @@
+ # along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+ import unittest, os, shutil
+-import Image
++from PIL import Image
+
+
+ _pkgdir = __path__[0]
diff --git a/media-gfx/uniconvertor/files/uniconvertor-2.0_pre379-libimg.patch b/media-gfx/uniconvertor/files/uniconvertor-2.0_pre379-libimg.patch
new file mode 100644
index 000000000000..f84b332ec63e
--- /dev/null
+++ b/media-gfx/uniconvertor/files/uniconvertor-2.0_pre379-libimg.patch
@@ -0,0 +1,30 @@
+ setup.py | 16 ++++++++--------
+ 1 file changed, 8 insertions(+), 8 deletions(-)
+
+diff --git a/setup.py b/setup.py
+index 46cda83..5cfd22a 100644
+--- a/setup.py
++++ b/setup.py
+@@ -184,14 +184,14 @@ modules.append(cairo_module)
+ # libraries=['potrace'])
+ #modules.append(trace_module)
+
+-#libimg_src = os.path.join(src_path, 'uc2', 'libimg')
+-#files = make_source_list(libimg_src, ['_libimg.c', ])
+-#include_dirs = make_source_list(include_path, ['ImageMagick', ])
+-#libimg_module = Extension('uc2.libimg._libimg',
+-# define_macros=[('MAJOR_VERSION', '1'), ('MINOR_VERSION', '0')],
+-# sources=files, include_dirs=include_dirs,
+-# libraries=['MagickWand'])
+-#modules.append(libimg_module)
++libimg_src = os.path.join(src_path, 'uc2', 'libimg')
++files = make_source_list(libimg_src, ['_libimg.c', ])
++include_dirs = make_source_list(include_path, ['ImageMagick-6', ])
++libimg_module = Extension('uc2.libimg._libimg',
++ define_macros=[('MAJOR_VERSION', '1'), ('MINOR_VERSION', '0')],
++ sources=files, include_dirs=include_dirs,
++ libraries=['MagickWand'])
++modules.append(libimg_module)
+
+ if os.path.isfile(os.path.join(include_path, 'lcms2.h')):
+ pycms_src = os.path.join(src_path, 'uc2', 'cms')
diff --git a/media-gfx/uniconvertor/files/uniconvertor-2.0_pre379-test.patch b/media-gfx/uniconvertor/files/uniconvertor-2.0_pre379-test.patch
new file mode 100644
index 000000000000..2a3e3a00601f
--- /dev/null
+++ b/media-gfx/uniconvertor/files/uniconvertor-2.0_pre379-test.patch
@@ -0,0 +1,37 @@
+ src/unittests/_libimg_tests/__init__.py | 2 +-
+ src/unittests/image_tests/__init__.py | 4 +++-
+ 2 files changed, 4 insertions(+), 2 deletions(-)
+
+diff --git a/src/unittests/_libimg_tests/__init__.py b/src/unittests/_libimg_tests/__init__.py
+index 3891290..cdc7dd6 100644
+--- a/src/unittests/_libimg_tests/__init__.py
++++ b/src/unittests/_libimg_tests/__init__.py
+@@ -84,7 +84,7 @@ class TestCoreLibImgFunctions(unittest.TestCase):
+ def test07_image_type(self):
+ names = []
+ names.append(['type_bilevel.png', 'BilevelType'])
+- names.append(['type_grayscale.png', 'GrayscaleType'])
++ names.append(['type_grayscale.png', 'BilevelType'])
+ names.append(['type_palette.png', 'PaletteType'])
+ names.append(['type_palettematte.png', 'PaletteMatteType'])
+ names.append(['type_truecolor.png', 'TrueColorType'])
+diff --git a/src/unittests/image_tests/__init__.py b/src/unittests/image_tests/__init__.py
+index 031cd9f..265743a 100644
+--- a/src/unittests/image_tests/__init__.py
++++ b/src/unittests/image_tests/__init__.py
+@@ -42,6 +42,7 @@ class TestImageFunctions(unittest.TestCase):
+ def tearDown(self):pass
+ # shutil.rmtree(self.save_dir)
+
++ @unittest.skip("Broken")
+ def test01_create_new_image(self):
+ for mode in MODES:
+ image = Image.new(mode, (100, 100))
+@@ -77,6 +78,7 @@ class TestImageFunctions(unittest.TestCase):
+ result = False
+ self.assertNotEquals(False, result)
+
++ @unittest.skip("Broken")
+ def test04_load_unsupported_images(self):
+ for name in FILES2:
+ filename = os.path.join(self.load_dir, name)
diff --git a/media-gfx/uniconvertor/metadata.xml b/media-gfx/uniconvertor/metadata.xml
new file mode 100644
index 000000000000..7f355f6a39e9
--- /dev/null
+++ b/media-gfx/uniconvertor/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="project">
+ <email>graphics@gentoo.org</email>
+ <name>Gentoo Graphics Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="google-code">uniconvertor</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/media-gfx/uniconvertor/uniconvertor-2.0_pre379-r1.ebuild b/media-gfx/uniconvertor/uniconvertor-2.0_pre379-r1.ebuild
new file mode 100644
index 000000000000..b47553d2eb61
--- /dev/null
+++ b/media-gfx/uniconvertor/uniconvertor-2.0_pre379-r1.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python2_7 )
+
+inherit distutils-r1
+
+DESCRIPTION="Commandline tool for popular vector formats convertion"
+HOMEPAGE="http://sk1project.org/modules.php?name=Products&product=uniconvertor https://code.google.com/p/uniconvertor/"
+SRC_URI="https://dev.gentoo.org/~jlec/distfiles/${P}.tar.xz"
+
+KEYWORDS="amd64 ~arm hppa ppc ppc64 x86 ~amd64-linux ~x86-linux ~x64-macos ~sparc-solaris ~x86-solaris"
+SLOT="0"
+LICENSE="GPL-2 LGPL-2"
+IUSE=""
+
+RDEPEND="
+ dev-python/pycairo[${PYTHON_USEDEP}]
+ media-gfx/imagemagick:=
+ media-libs/lcms:2
+ dev-python/pillow[${PYTHON_USEDEP}]"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ app-text/ghostscript-gpl"
+
+PATCHES=(
+ "${FILESDIR}"/${P}-import.patch
+ "${FILESDIR}"/${P}-libimg.patch
+ "${FILESDIR}"/${P}-test.patch
+ )
+
+python_prepare_all() {
+ local wand
+ wand=$(pkg-config --libs MagickWand | sed -e "s:^ *::g" -e "s: *$::g" -e "s:-l:\':g" -e "s: :',:g" -e "s:$:':g" -e "s:,'$::g")
+
+ distutils-r1_python_prepare_all
+
+ sed \
+ -e "/libraries/s:'MagickWand':${wand}:g" \
+ -i setup.py || die
+
+ ln -sf \
+ "${EPREFIX}"/usr/share/imagemagick/sRGB.icm \
+ src/unittests/cms_tests/cms_data/sRGB.icm || die
+}
+
+python_test() {
+ einfo ${PYTHONPATH}
+ #distutils_install_for_testing
+ cd src/unittests || die
+ ${EPYTHON} all_tests.py || die
+}
diff --git a/media-gfx/uniconvertor/uniconvertor-2.0_pre379-r2.ebuild b/media-gfx/uniconvertor/uniconvertor-2.0_pre379-r2.ebuild
new file mode 100644
index 000000000000..b859714fe1cf
--- /dev/null
+++ b/media-gfx/uniconvertor/uniconvertor-2.0_pre379-r2.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python2_7 )
+
+inherit distutils-r1 eutils
+
+DESCRIPTION="Commandline tool for popular vector formats convertion"
+HOMEPAGE="http://sk1project.org/modules.php?name=Products&product=uniconvertor https://code.google.com/p/uniconvertor/"
+SRC_URI="https://dev.gentoo.org/~jlec/distfiles/${P}.tar.xz"
+
+KEYWORDS="~amd64 ~arm ~hppa ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~x64-macos ~sparc-solaris ~x86-solaris"
+SLOT="0"
+LICENSE="GPL-2 LGPL-2"
+IUSE=""
+
+RDEPEND="
+ dev-python/pycairo[${PYTHON_USEDEP}]
+ media-gfx/imagemagick:=
+ media-libs/lcms:2
+ dev-python/pillow[${PYTHON_USEDEP}]"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ app-text/ghostscript-gpl"
+
+PATCHES=(
+ "${FILESDIR}"/${P}-import.patch
+ "${FILESDIR}"/${P}-libimg.patch
+ "${FILESDIR}"/${P}-test.patch
+ )
+
+python_prepare_all() {
+ local wand
+ wand=$(pkg-config --libs MagickWand | sed -e "s:^ *::g" -e "s: *$::g" -e "s:-l:\':g" -e "s: :',:g" -e "s:$:':g" -e "s:,'$::g")
+
+ distutils-r1_python_prepare_all
+
+ sed \
+ -e "s@/usr/include@${EPREFIX}/usr/include@" \
+ -e "s@/usr/share@${EPREFIX}/usr/share@" \
+ -e "/libraries/s:'MagickWand':${wand}:g" \
+ -i setup.py || die
+
+ # https://bugs.gentoo.org/581816
+ if has_version ">=media-gfx/imagemagick-7.0" ; then
+ sed -e "s:ImageMagick-6:ImageMagick-7:" -i setup.py || die
+ eapply "${FILESDIR}"/${P}-ImageMagick7.patch
+ fi
+
+ ln -sf \
+ "${EPREFIX}"/usr/share/imagemagick/sRGB.icm \
+ src/unittests/cms_tests/cms_data/sRGB.icm || die
+}
+
+python_test() {
+ einfo ${PYTHONPATH}
+ #distutils_install_for_testing
+ cd src/unittests || die
+ ${EPYTHON} all_tests.py || die
+}