summaryrefslogtreecommitdiff
path: root/media-gfx
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
reinit the tree, so we can have metadata
Diffstat (limited to 'media-gfx')
-rw-r--r--media-gfx/aaphoto/Manifest7
-rw-r--r--media-gfx/aaphoto/aaphoto-0.43.1.ebuild31
-rw-r--r--media-gfx/aaphoto/aaphoto-0.45.ebuild29
-rw-r--r--media-gfx/aaphoto/metadata.xml16
-rw-r--r--media-gfx/aewan/Manifest7
-rw-r--r--media-gfx/aewan/aewan-1.0.01-r1.ebuild28
-rw-r--r--media-gfx/aewan/files/aewan-1.0.01-debug_aewl-warnings.patch10
-rw-r--r--media-gfx/aewan/files/aewan-1.0.01-tinfo.patch15
-rw-r--r--media-gfx/aewan/metadata.xml16
-rw-r--r--media-gfx/album/Manifest8
-rw-r--r--media-gfx/album/album-4.07.ebuild39
-rw-r--r--media-gfx/album/album-4.13-r1.ebuild39
-rw-r--r--media-gfx/album/metadata.xml12
-rw-r--r--media-gfx/aoi/Manifest9
-rw-r--r--media-gfx/aoi/aoi-2.5.ebuild48
-rw-r--r--media-gfx/aoi/aoi-2.7.2.ebuild49
-rw-r--r--media-gfx/aoi/metadata.xml11
-rw-r--r--media-gfx/apng2gif/Manifest7
-rw-r--r--media-gfx/apng2gif/apng2gif-1.8.ebuild40
-rw-r--r--media-gfx/apng2gif/files/apng2gif-1.8-makefile.patch18
-rw-r--r--media-gfx/apng2gif/files/apng2gif-1.8-zlib.patch12
-rw-r--r--media-gfx/apng2gif/metadata.xml11
-rw-r--r--media-gfx/apngasm/Manifest9
-rw-r--r--media-gfx/apngasm/apngasm-2.7.ebuild36
-rw-r--r--media-gfx/apngasm/apngasm-2.91.ebuild52
-rw-r--r--media-gfx/apngasm/files/apngasm-2.7-string_h.patch16
-rw-r--r--media-gfx/apngasm/files/apngasm-2.91-makefile.patch22
-rw-r--r--media-gfx/apngasm/metadata.xml15
-rw-r--r--media-gfx/apngdis/Manifest7
-rw-r--r--media-gfx/apngdis/apngdis-2.9.ebuild39
-rw-r--r--media-gfx/apngdis/files/apngdis-2.9-makefile.patch18
-rw-r--r--media-gfx/apngdis/files/apngdis-2.9-zlib.patch12
-rw-r--r--media-gfx/apngdis/metadata.xml11
-rw-r--r--media-gfx/apngopt/Manifest6
-rw-r--r--media-gfx/apngopt/apngopt-1.4.ebuild39
-rw-r--r--media-gfx/apngopt/files/apngopt-1.4-makefile.patch27
-rw-r--r--media-gfx/apngopt/metadata.xml11
-rw-r--r--media-gfx/aqsis/Manifest10
-rw-r--r--media-gfx/aqsis/aqsis-1.8.2.ebuild61
-rw-r--r--media-gfx/aqsis/files/aqsis-1.8.2-boost-join-moc.patch568
-rw-r--r--media-gfx/aqsis/files/aqsis-1.8.2-gcc6.patch23
-rw-r--r--media-gfx/aqsis/files/aqsis-1.8.2-openexr-compat.patch15
-rw-r--r--media-gfx/aqsis/files/aqsis-1.8.2-pfto-boost-1.59.patch41
-rw-r--r--media-gfx/aqsis/files/aqsis-1.8.2-unbundle-tinyxml.patch57
-rw-r--r--media-gfx/aqsis/metadata.xml11
-rw-r--r--media-gfx/argyllcms/Manifest14
-rw-r--r--media-gfx/argyllcms/argyllcms-1.7.0.ebuild90
-rw-r--r--media-gfx/argyllcms/argyllcms-1.8.2.ebuild91
-rw-r--r--media-gfx/argyllcms/argyllcms-1.8.3.ebuild91
-rw-r--r--media-gfx/argyllcms/argyllcms-1.9.1.ebuild93
-rw-r--r--media-gfx/argyllcms/argyllcms-1.9.2.ebuild93
-rw-r--r--media-gfx/argyllcms/files/argyllcms-1.8.0-gcc5.patch20
-rw-r--r--media-gfx/argyllcms/metadata.xml8
-rw-r--r--media-gfx/arss/Manifest6
-rw-r--r--media-gfx/arss/arss-0.2.3-r1.ebuild24
-rw-r--r--media-gfx/arss/arss-0.2.3.ebuild24
-rw-r--r--media-gfx/arss/metadata.xml8
-rw-r--r--media-gfx/asymptote/Manifest26
-rw-r--r--media-gfx/asymptote/asymptote-2.32.ebuild213
-rw-r--r--media-gfx/asymptote/asymptote-2.36.ebuild210
-rw-r--r--media-gfx/asymptote/asymptote-2.38.ebuild210
-rw-r--r--media-gfx/asymptote/asymptote-2.41-r1.ebuild214
-rw-r--r--media-gfx/asymptote/files/64asymptote-gentoo.el9
-rw-r--r--media-gfx/asymptote/files/asy-ftd.vim2
-rw-r--r--media-gfx/asymptote/files/asymptote-2.32-configure-ac.patch32
-rw-r--r--media-gfx/asymptote/files/asymptote-2.32-ghostscript-9.15.patch24
-rw-r--r--media-gfx/asymptote/files/asymptote-2.32-info.patch13
-rw-r--r--media-gfx/asymptote/files/asymptote-2.32-xdg-utils.patch23
-rw-r--r--media-gfx/asymptote/files/asymptote-2.36-configure-ac.patch32
-rw-r--r--media-gfx/asymptote/files/asymptote-2.36-info.patch13
-rw-r--r--media-gfx/asymptote/files/asymptote-2.36-xdg-utils.patch23
-rw-r--r--media-gfx/asymptote/files/asymptote-2.38-configure-ac.patch13
-rw-r--r--media-gfx/asymptote/files/asymptote-2.38-info.patch13
-rw-r--r--media-gfx/asymptote/files/asymptote-2.38-xdg-utils.patch23
-rw-r--r--media-gfx/asymptote/files/asymptote-2.41-configure-ac.patch13
-rw-r--r--media-gfx/asymptote/files/asymptote-2.41-info.patch13
-rw-r--r--media-gfx/asymptote/files/asymptote-2.41-xdg-utils.patch23
-rw-r--r--media-gfx/asymptote/metadata.xml35
-rw-r--r--media-gfx/autopano-sift-C/Manifest6
-rw-r--r--media-gfx/autopano-sift-C/autopano-sift-C-2.5.1.ebuild30
-rw-r--r--media-gfx/autopano-sift-C/files/autopano-sift-C-2.5.1-lm.patch14
-rw-r--r--media-gfx/autopano-sift-C/metadata.xml13
-rw-r--r--media-gfx/aview/Manifest10
-rw-r--r--media-gfx/aview/aview-1.3.0_rc1-r1.ebuild37
-rw-r--r--media-gfx/aview/aview-1.3.0_rc1-r3.ebuild42
-rw-r--r--media-gfx/aview/files/aview-1.3.0_rc1-asciiview.patch76
-rw-r--r--media-gfx/aview/files/aview-1.3.0_rc1-filename-spaces.patch53
-rw-r--r--media-gfx/aview/files/aview-1.3.0_rc1-includes.patch11
-rw-r--r--media-gfx/aview/files/aview-1.3.0_rc1-tmp_creation.patch46
-rw-r--r--media-gfx/aview/metadata.xml8
-rw-r--r--media-gfx/birdfont/Manifest4
-rw-r--r--media-gfx/birdfont/birdfont-2.18.3.ebuild88
-rw-r--r--media-gfx/birdfont/metadata.xml11
-rw-r--r--media-gfx/blender/Manifest18
-rw-r--r--media-gfx/blender/blender-2.72b-r4.ebuild290
-rw-r--r--media-gfx/blender/blender-2.78-r1.ebuild296
-rw-r--r--media-gfx/blender/blender-2.78a-r1.ebuild295
-rw-r--r--media-gfx/blender/files/blender-2.68-doxyfile.patch19
-rw-r--r--media-gfx/blender/files/blender-2.68-fix-install-rules.patch26
-rw-r--r--media-gfx/blender/files/blender-2.70-sse2.patch35
-rw-r--r--media-gfx/blender/files/blender-2.72-T42797.diff13
-rw-r--r--media-gfx/blender/files/blender-2.72b-fix-util_simd.patch10
-rw-r--r--media-gfx/blender/files/blender-2.72b-gcc6-fixes.patch126
-rw-r--r--media-gfx/blender/files/blender-2.78-C++11-build-fix.patch11
-rw-r--r--media-gfx/blender/files/blender-2.78-eigen-3.3.1.patch25
-rw-r--r--media-gfx/blender/files/blender-fix-install-rules.patch16
-rw-r--r--media-gfx/blender/metadata.xml101
-rw-r--r--media-gfx/bootsplash-themes/Manifest180
-rw-r--r--media-gfx/bootsplash-themes/bootsplash-themes-20060913.ebuild297
-rw-r--r--media-gfx/bootsplash-themes/metadata.xml5
-rw-r--r--media-gfx/cairosvg/Manifest11
-rw-r--r--media-gfx/cairosvg/cairosvg-1.0.22.ebuild30
-rw-r--r--media-gfx/cairosvg/cairosvg-1.0.7.ebuild30
-rw-r--r--media-gfx/cairosvg/cairosvg-1.0.ebuild29
-rw-r--r--media-gfx/cairosvg/cairosvg-2.0.3.ebuild32
-rw-r--r--media-gfx/cairosvg/metadata.xml11
-rw-r--r--media-gfx/cellwriter/Manifest7
-rw-r--r--media-gfx/cellwriter/cellwriter-1.3.4.ebuild29
-rw-r--r--media-gfx/cellwriter/cellwriter-1.3.5.ebuild31
-rw-r--r--media-gfx/cellwriter/metadata.xml8
-rw-r--r--media-gfx/clockphoto/Manifest4
-rw-r--r--media-gfx/clockphoto/clockphoto-1.1.ebuild26
-rw-r--r--media-gfx/clockphoto/metadata.xml8
-rw-r--r--media-gfx/colorhug-client/Manifest5
-rw-r--r--media-gfx/colorhug-client/colorhug-client-0.2.8.ebuild51
-rw-r--r--media-gfx/colorhug-client/metadata.xml8
-rw-r--r--media-gfx/comix/Manifest6
-rw-r--r--media-gfx/comix/comix-4.0.4-r1.ebuild78
-rw-r--r--media-gfx/comix/files/comix-4.0.4-pillow.patch153
-rw-r--r--media-gfx/comix/metadata.xml16
-rw-r--r--media-gfx/converseen/Manifest7
-rw-r--r--media-gfx/converseen/converseen-0.6.4-r1.ebuild48
-rw-r--r--media-gfx/converseen/converseen-0.6.8-r1.ebuild49
-rw-r--r--media-gfx/converseen/metadata.xml11
-rw-r--r--media-gfx/cptutils/Manifest6
-rw-r--r--media-gfx/cptutils/cptutils-1.68.ebuild42
-rw-r--r--media-gfx/cptutils/files/cptutils-1.68-parallel-make.patch30
-rw-r--r--media-gfx/cptutils/metadata.xml8
-rw-r--r--media-gfx/cropgui/Manifest11
-rw-r--r--media-gfx/cropgui/cropgui-0.1.1-r3.ebuild52
-rw-r--r--media-gfx/cropgui/cropgui-0.2-r1.ebuild53
-rw-r--r--media-gfx/cropgui/cropgui-9999.ebuild39
-rw-r--r--media-gfx/cropgui/files/cropgui-0.1.1-PIL.patch29
-rw-r--r--media-gfx/cropgui/files/cropgui-0.2-PIL.patch26
-rw-r--r--media-gfx/cropgui/files/cropgui-0.2-tobytes.patch40
-rw-r--r--media-gfx/cropgui/metadata.xml11
-rw-r--r--media-gfx/crwinfo/Manifest6
-rw-r--r--media-gfx/crwinfo/crwinfo-0.2.ebuild30
-rw-r--r--media-gfx/crwinfo/files/crwinfo-0.2.patch17
-rw-r--r--media-gfx/crwinfo/metadata.xml12
-rw-r--r--media-gfx/cthumb/Manifest5
-rw-r--r--media-gfx/cthumb/cthumb-4.2.ebuild31
-rw-r--r--media-gfx/cthumb/metadata.xml8
-rw-r--r--media-gfx/cura/Manifest15
-rw-r--r--media-gfx/cura/cura-0.15.04.4.ebuild74
-rw-r--r--media-gfx/cura/cura-0.15.04.5_rc5.ebuild74
-rw-r--r--media-gfx/cura/cura-2.1.0_beta.ebuild64
-rw-r--r--media-gfx/cura/cura-2.3.1.ebuild65
-rw-r--r--media-gfx/cura/cura-2.6.0.ebuild65
-rw-r--r--media-gfx/cura/files/cura-0.15.04.4-nopower.patch90
-rw-r--r--media-gfx/cura/files/cura-2.1.0_beta-fix-install-paths.patch38
-rw-r--r--media-gfx/cura/files/cura-2.3.1-fix-install-paths.patch38
-rw-r--r--media-gfx/cura/metadata.xml22
-rw-r--r--media-gfx/curaengine/Manifest11
-rw-r--r--media-gfx/curaengine/curaengine-0.15.04.6.ebuild49
-rw-r--r--media-gfx/curaengine/curaengine-2.1.0_beta.ebuild41
-rw-r--r--media-gfx/curaengine/curaengine-2.3.1.ebuild41
-rw-r--r--media-gfx/curaengine/curaengine-2.6.0.ebuild41
-rw-r--r--media-gfx/curaengine/files/curaengine-0.15.04.6-cflags.patch27
-rw-r--r--media-gfx/curaengine/metadata.xml19
-rw-r--r--media-gfx/darktable/Manifest9
-rw-r--r--media-gfx/darktable/darktable-2.2.4.ebuild142
-rw-r--r--media-gfx/darktable/darktable-2.2.5.ebuild142
-rw-r--r--media-gfx/darktable/darktable-9999.ebuild129
-rw-r--r--media-gfx/darktable/metadata.xml22
-rw-r--r--media-gfx/dawn/Manifest6
-rw-r--r--media-gfx/dawn/dawn-3.90b.ebuild57
-rw-r--r--media-gfx/dawn/files/dawn-3.90b-no-interactive.patch158
-rw-r--r--media-gfx/dawn/metadata.xml26
-rw-r--r--media-gfx/dcraw/Manifest9
-rw-r--r--media-gfx/dcraw/dcraw-9.27.0.ebuild108
-rw-r--r--media-gfx/dcraw/files/conversion-examples.txt18
-rw-r--r--media-gfx/dcraw/files/dcwrap27
-rw-r--r--media-gfx/dcraw/metadata.xml16
-rw-r--r--media-gfx/digikam/Manifest8
-rw-r--r--media-gfx/digikam/digikam-5.5.0.ebuild169
-rw-r--r--media-gfx/digikam/digikam-5.7.0.ebuild168
-rw-r--r--media-gfx/digikam/files/digikam-5.5.0-cmake-3.9.patch170
-rw-r--r--media-gfx/digikam/metadata.xml20
-rw-r--r--media-gfx/displaycal/Manifest6
-rw-r--r--media-gfx/displaycal/displaycal-3.3.3.0.ebuild54
-rw-r--r--media-gfx/displaycal/displaycal-3.3.4.1.ebuild54
-rw-r--r--media-gfx/displaycal/metadata.xml11
-rw-r--r--media-gfx/ditaa/Manifest3
-rw-r--r--media-gfx/ditaa/ditaa-0.10.ebuild36
-rw-r--r--media-gfx/ditaa/metadata.xml11
-rw-r--r--media-gfx/dpic/Manifest9
-rw-r--r--media-gfx/dpic/dpic-20130310.ebuild34
-rw-r--r--media-gfx/dpic/dpic-20160712.ebuild33
-rw-r--r--media-gfx/dpic/dpic-20160824.ebuild33
-rw-r--r--media-gfx/dpic/metadata.xml17
-rw-r--r--media-gfx/duhdraw/Manifest7
-rw-r--r--media-gfx/duhdraw/duhdraw-2.8.13-r1.ebuild30
-rw-r--r--media-gfx/duhdraw/files/duhdraw-2.8.13-macos.patch12
-rw-r--r--media-gfx/duhdraw/files/duhdraw-2.8.13-prestrip.patch18
-rw-r--r--media-gfx/duhdraw/metadata.xml8
-rw-r--r--media-gfx/ebdftopcf/Manifest5
-rw-r--r--media-gfx/ebdftopcf/ebdftopcf-2.ebuild23
-rw-r--r--media-gfx/ebdftopcf/metadata.xml12
-rw-r--r--media-gfx/enblend/Manifest14
-rw-r--r--media-gfx/enblend/enblend-4.1.3-r1.ebuild78
-rw-r--r--media-gfx/enblend/enblend-4.1.3-r2.ebuild86
-rw-r--r--media-gfx/enblend/enblend-4.2.0_p20161007-r1.ebuild78
-rw-r--r--media-gfx/enblend/files/enblend-4.1.3-cmake.patch22
-rw-r--r--media-gfx/enblend/files/enblend-4.1.3-texinfo-5-more.patch82
-rw-r--r--media-gfx/enblend/files/enblend-4.1.3-texinfo-5-upstream.patch633
-rw-r--r--media-gfx/enblend/files/enblend-4.1.3-vigra_check.patch11
-rw-r--r--media-gfx/enblend/files/enblend-4.2-doc-install-dir-fix.patch66
-rw-r--r--media-gfx/enblend/files/enblend-4.2.0_p20161007-cmake.patch11
-rw-r--r--media-gfx/enblend/metadata.xml15
-rw-r--r--media-gfx/engauge/Manifest5
-rw-r--r--media-gfx/engauge/engauge-5.2.ebuild48
-rw-r--r--media-gfx/engauge/metadata.xml11
-rw-r--r--media-gfx/entangle/Manifest5
-rw-r--r--media-gfx/entangle/entangle-0.6.0.ebuild41
-rw-r--r--media-gfx/entangle/metadata.xml11
-rw-r--r--media-gfx/eog-plugins/Manifest5
-rw-r--r--media-gfx/eog-plugins/eog-plugins-3.16.6.ebuild65
-rw-r--r--media-gfx/eog-plugins/metadata.xml13
-rw-r--r--media-gfx/eog/Manifest7
-rw-r--r--media-gfx/eog/eog-3.20.5.ebuild55
-rw-r--r--media-gfx/eog/eog-3.24.1.ebuild55
-rw-r--r--media-gfx/eog/metadata.xml13
-rw-r--r--media-gfx/eom/Manifest12
-rw-r--r--media-gfx/eom/eom-1.12.2-r3.ebuild83
-rw-r--r--media-gfx/eom/eom-1.14.2.ebuild83
-rw-r--r--media-gfx/eom/eom-1.16.0.ebuild83
-rw-r--r--media-gfx/eom/eom-1.18.2.ebuild65
-rw-r--r--media-gfx/eom/files/eom-1.12.2-gtk3-svg.patch33
-rw-r--r--media-gfx/eom/metadata.xml14
-rw-r--r--media-gfx/esci-interpreter-gt-s80/Manifest6
-rw-r--r--media-gfx/esci-interpreter-gt-s80/esci-interpreter-gt-s80-0.2.1.1.ebuild79
-rw-r--r--media-gfx/esci-interpreter-gt-s80/metadata.xml16
-rw-r--r--media-gfx/evoluspencil/Manifest6
-rw-r--r--media-gfx/evoluspencil/evoluspencil-2.0.5.ebuild44
-rw-r--r--media-gfx/evoluspencil/files/launcher9
-rw-r--r--media-gfx/evoluspencil/metadata.xml10
-rw-r--r--media-gfx/exact-image/Manifest8
-rw-r--r--media-gfx/exact-image/exact-image-0.8.1-r3.ebuild105
-rw-r--r--media-gfx/exact-image/files/exact-image-0.7.5-libpng14.patch69
-rw-r--r--media-gfx/exact-image/files/exact-image-0.8.1-gcc6.patch139
-rw-r--r--media-gfx/exact-image/files/exact-image-0.8.1-libpng15.patch34
-rw-r--r--media-gfx/exact-image/metadata.xml11
-rw-r--r--media-gfx/exif/Manifest5
-rw-r--r--media-gfx/exif/exif-0.6.21.ebuild23
-rw-r--r--media-gfx/exif/metadata.xml11
-rw-r--r--media-gfx/exiftags/Manifest5
-rw-r--r--media-gfx/exiftags/exiftags-1.01.ebuild25
-rw-r--r--media-gfx/exiftags/metadata.xml8
-rw-r--r--media-gfx/exiv2/Manifest23
-rw-r--r--media-gfx/exiv2/exiv2-0.25-r2.ebuild127
-rw-r--r--media-gfx/exiv2/exiv2-0.26.ebuild133
-rw-r--r--media-gfx/exiv2/files/exiv2-0.25-fix-docs.patch71
-rw-r--r--media-gfx/exiv2/files/exiv2-0.25-fix-install-dirs.patch64
-rw-r--r--media-gfx/exiv2/files/exiv2-0.25-fix-without-zlib.patch22
-rw-r--r--media-gfx/exiv2/files/exiv2-0.25-fvisibility-hidden.patch19
-rw-r--r--media-gfx/exiv2/files/exiv2-0.25-hide-symbols.patch97
-rw-r--r--media-gfx/exiv2/files/exiv2-0.25-tools-optional.patch27
-rw-r--r--media-gfx/exiv2/files/exiv2-0.26-CVE-2017-9239.patch22
-rw-r--r--media-gfx/exiv2/files/exiv2-0.26-cmake1.patch22
-rw-r--r--media-gfx/exiv2/files/exiv2-0.26-cmake2.patch65
-rw-r--r--media-gfx/exiv2/files/exiv2-0.26-cmake3.patch53
-rw-r--r--media-gfx/exiv2/files/exiv2-0.26-cmake4.patch24
-rw-r--r--media-gfx/exiv2/files/exiv2-0.26-cmake5.patch33
-rw-r--r--media-gfx/exiv2/files/exiv2-0.26-cmake6.patch27
-rw-r--r--media-gfx/exiv2/files/exiv2-0.26-cmake7.patch38
-rw-r--r--media-gfx/exiv2/files/exiv2-0.26-fix-docs.patch70
-rw-r--r--media-gfx/exiv2/files/exiv2-0.26-tools-optional.patch27
-rw-r--r--media-gfx/exiv2/metadata.xml19
-rw-r--r--media-gfx/farbfeld/Manifest8
-rw-r--r--media-gfx/farbfeld/farbfeld-2.ebuild44
-rw-r--r--media-gfx/farbfeld/farbfeld-3.ebuild44
-rw-r--r--media-gfx/farbfeld/farbfeld-9999.ebuild41
-rw-r--r--media-gfx/farbfeld/files/farbfeld-3-as-needed.patch11
-rw-r--r--media-gfx/farbfeld/metadata.xml8
-rw-r--r--media-gfx/fbgrab/Manifest9
-rw-r--r--media-gfx/fbgrab/fbgrab-1.0-r2.ebuild36
-rw-r--r--media-gfx/fbgrab/fbgrab-1.3.ebuild33
-rw-r--r--media-gfx/fbgrab/files/fbgrab-1.0-Makefile.patch14
-rw-r--r--media-gfx/fbgrab/files/fbgrab-1.0-zlib_h.patch10
-rw-r--r--media-gfx/fbgrab/metadata.xml12
-rw-r--r--media-gfx/fbida/Manifest16
-rw-r--r--media-gfx/fbida/fbida-2.12.ebuild125
-rw-r--r--media-gfx/fbida/fbida-2.13-r1.ebuild121
-rw-r--r--media-gfx/fbida/fbida-2.14.ebuild120
-rw-r--r--media-gfx/fbida/fbida-9999.ebuild134
-rw-r--r--media-gfx/fbida/files/fbida-2.10-fprintf-format.patch11
-rw-r--r--media-gfx/fbida/files/fbida-2.10-giflib-4.2.patch17
-rw-r--r--media-gfx/fbida/files/fbida-2.13-Autoconf.patch11
-rw-r--r--media-gfx/fbida/files/fbida-2.14-Autoconf.patch11
-rw-r--r--media-gfx/fbida/files/ida-desktop.patch17
-rw-r--r--media-gfx/fbida/metadata.xml13
-rw-r--r--media-gfx/fblogo/Manifest6
-rw-r--r--media-gfx/fblogo/fblogo-0.5.2.ebuild39
-rw-r--r--media-gfx/fblogo/files/fblogo-0.5.2-cross.patch36
-rw-r--r--media-gfx/fblogo/metadata.xml5
-rw-r--r--media-gfx/feh/Manifest12
-rw-r--r--media-gfx/feh/feh-2.18.3.ebuild56
-rw-r--r--media-gfx/feh/feh-2.19.3.ebuild56
-rw-r--r--media-gfx/feh/feh-2.20.ebuild56
-rw-r--r--media-gfx/feh/feh-2.21.ebuild56
-rw-r--r--media-gfx/feh/files/feh-2.6.2-debug-cflags.patch11
-rw-r--r--media-gfx/feh/metadata.xml15
-rw-r--r--media-gfx/figurine/Manifest6
-rw-r--r--media-gfx/figurine/figurine-1.0.5-r1.ebuild26
-rw-r--r--media-gfx/figurine/figurine-1.0.5.ebuild23
-rw-r--r--media-gfx/figurine/metadata.xml8
-rw-r--r--media-gfx/fim/Manifest6
-rw-r--r--media-gfx/fim/files/fim-0.4_rc3-poppler031.patch12
-rw-r--r--media-gfx/fim/fim-0.4_rc3-r2.ebuild93
-rw-r--r--media-gfx/fim/metadata.xml13
-rw-r--r--media-gfx/flam3/Manifest9
-rw-r--r--media-gfx/flam3/files/flam3-3.0.1-libpng15.patch76
-rw-r--r--media-gfx/flam3/flam3-3.0.1.ebuild45
-rw-r--r--media-gfx/flam3/flam3-3.1.1.ebuild42
-rw-r--r--media-gfx/flam3/flam3-9999.ebuild37
-rw-r--r--media-gfx/flam3/metadata.xml11
-rw-r--r--media-gfx/fondu/Manifest6
-rw-r--r--media-gfx/fondu/files/fondu-20060102-build-fix.patch70
-rw-r--r--media-gfx/fondu/fondu-20060102-r1.ebuild32
-rw-r--r--media-gfx/fondu/metadata.xml11
-rw-r--r--media-gfx/fontforge/Manifest14
-rw-r--r--media-gfx/fontforge/files/fontforge-dummy-spiro.patch25
-rw-r--r--media-gfx/fontforge/fontforge-20150612-r1.ebuild126
-rw-r--r--media-gfx/fontforge/fontforge-20150824.ebuild116
-rw-r--r--media-gfx/fontforge/fontforge-20160404.ebuild113
-rw-r--r--media-gfx/fontforge/fontforge-20161005.ebuild110
-rw-r--r--media-gfx/fontforge/fontforge-20170731.ebuild114
-rw-r--r--media-gfx/fontforge/metadata.xml25
-rw-r--r--media-gfx/fontypython/Manifest9
-rw-r--r--media-gfx/fontypython/files/0001-Do-not-crash-on-empty-pogs-list.patch21
-rw-r--r--media-gfx/fontypython/files/0002-Removed-unused-code-which-causes-crash-with-wx-3.0.patch134
-rw-r--r--media-gfx/fontypython/files/0003-Adapt-to-wxpython-3.0-which-enforces-assertions-on-L.patch28
-rw-r--r--media-gfx/fontypython/files/fontypython-pillow.patch41
-rw-r--r--media-gfx/fontypython/fontypython-0.4.4-r3.ebuild38
-rw-r--r--media-gfx/fontypython/metadata.xml12
-rw-r--r--media-gfx/fotowall/Manifest5
-rw-r--r--media-gfx/fotowall/fotowall-1.0.ebuild53
-rw-r--r--media-gfx/fotowall/metadata.xml14
-rw-r--r--media-gfx/fotoxx/Manifest12
-rw-r--r--media-gfx/fotoxx/files/fotoxx-13.11.1.patch44
-rw-r--r--media-gfx/fotoxx/files/fotoxx-15.04.1.patch13
-rw-r--r--media-gfx/fotoxx/files/fotoxx-15.05.patch13
-rw-r--r--media-gfx/fotoxx/fotoxx-13.11.1.ebuild54
-rw-r--r--media-gfx/fotoxx/fotoxx-15.04.1.ebuild54
-rw-r--r--media-gfx/fotoxx/fotoxx-15.05.ebuild54
-rw-r--r--media-gfx/fotoxx/metadata.xml18
-rw-r--r--media-gfx/fr0st/Manifest6
-rw-r--r--media-gfx/fr0st/files/fr0st-1.4-colour.patch9
-rw-r--r--media-gfx/fr0st/fr0st-1.4-r2.ebuild57
-rw-r--r--media-gfx/fr0st/metadata.xml11
-rw-r--r--media-gfx/freecad/Manifest16
-rw-r--r--media-gfx/freecad/files/freecad-0.14.3702-install-paths.patch21
-rw-r--r--media-gfx/freecad/files/freecad-0.15.4671-boost-1.60.patch16
-rw-r--r--media-gfx/freecad/files/freecad.sharedmimeinfo8
-rw-r--r--media-gfx/freecad/freecad-0.15.4671.ebuild145
-rw-r--r--media-gfx/freecad/freecad-0.16-r1.ebuild132
-rw-r--r--media-gfx/freecad/freecad-0.16.6712.ebuild132
-rw-r--r--media-gfx/freecad/freecad-0.16.ebuild135
-rw-r--r--media-gfx/freecad/freecad-0.17_pre.ebuild132
-rw-r--r--media-gfx/freecad/freecad-9999.ebuild129
-rw-r--r--media-gfx/freecad/metadata.xml12
-rw-r--r--media-gfx/freepv/Manifest12
-rw-r--r--media-gfx/freepv/files/freepv-0.3.0-gcc44.patch60
-rw-r--r--media-gfx/freepv/files/freepv-0.3.0-gcc46.patch10
-rw-r--r--media-gfx/freepv/files/freepv-0.3.0-libpng14.patch20
-rw-r--r--media-gfx/freepv/files/freepv-0.3.0-noplugin.patch30
-rw-r--r--media-gfx/freepv/files/freepv-0.3.0-stringh.patch10
-rw-r--r--media-gfx/freepv/files/freepv-0.3.0-unsigned_short.patch47
-rw-r--r--media-gfx/freepv/freepv-0.3.0-r4.ebuild39
-rw-r--r--media-gfx/freepv/freepv-0.3.0-r5.ebuild43
-rw-r--r--media-gfx/freepv/metadata.xml12
-rw-r--r--media-gfx/freewrl/Manifest15
-rw-r--r--media-gfx/freewrl/files/freewrl-1.22.13-desktop.patch11
-rw-r--r--media-gfx/freewrl/files/freewrl-1.22.13-fontconfig-match.patch19
-rw-r--r--media-gfx/freewrl/files/freewrl-1.22.13-java-fix.patch54
-rw-r--r--media-gfx/freewrl/files/freewrl-1.22.13-mozjs187-config.patch10
-rw-r--r--media-gfx/freewrl/files/freewrl-2.3.3-ld.gold.patch35
-rw-r--r--media-gfx/freewrl/freewrl-1.22.13-r5.ebuild141
-rw-r--r--media-gfx/freewrl/freewrl-2.3.3-r2.ebuild138
-rw-r--r--media-gfx/freewrl/freewrl-3.0.0-r1.ebuild143
-rw-r--r--media-gfx/freewrl/freewrl-9999.ebuild146
-rw-r--r--media-gfx/freewrl/metadata.xml27
-rw-r--r--media-gfx/galleryadd/Manifest5
-rw-r--r--media-gfx/galleryadd/galleryadd-2.30.ebuild19
-rw-r--r--media-gfx/galleryadd/metadata.xml7
-rw-r--r--media-gfx/geeqie/Manifest13
-rw-r--r--media-gfx/geeqie/files/geeqie-1.2.2-fix_keywords_gtk3.patch12
-rw-r--r--media-gfx/geeqie/files/geeqie-1.2.3-fix_keywords_gtk3.patch88
-rw-r--r--media-gfx/geeqie/files/geeqie-1.3-stdstring.patch63
-rw-r--r--media-gfx/geeqie/geeqie-1.2.2-r2.ebuild75
-rw-r--r--media-gfx/geeqie/geeqie-1.2.3-r1.ebuild77
-rw-r--r--media-gfx/geeqie/geeqie-1.3-r1.ebuild82
-rw-r--r--media-gfx/geeqie/geeqie-1.3.ebuild82
-rw-r--r--media-gfx/geeqie/metadata.xml14
-rw-r--r--media-gfx/gif2apng/Manifest6
-rw-r--r--media-gfx/gif2apng/files/gif2apng-1.9-makefile.patch18
-rw-r--r--media-gfx/gif2apng/gif2apng-1.9-r1.ebuild38
-rw-r--r--media-gfx/gif2apng/metadata.xml11
-rw-r--r--media-gfx/gif2png/Manifest12
-rw-r--r--media-gfx/gif2png/files/gif2png-2.5.11-makefile.patch39
-rw-r--r--media-gfx/gif2png/gif2png-2.5.10.ebuild19
-rw-r--r--media-gfx/gif2png/gif2png-2.5.11.ebuild27
-rw-r--r--media-gfx/gif2png/gif2png-2.5.8.ebuild19
-rw-r--r--media-gfx/gif2png/gif2png-2.5.9.ebuild19
-rw-r--r--media-gfx/gif2png/metadata.xml8
-rw-r--r--media-gfx/gifsicle/Manifest7
-rw-r--r--media-gfx/gifsicle/gifsicle-1.86.ebuild24
-rw-r--r--media-gfx/gifsicle/gifsicle-1.90.ebuild21
-rw-r--r--media-gfx/gifsicle/metadata.xml8
-rw-r--r--media-gfx/gimageview/Manifest10
-rw-r--r--media-gfx/gimageview/files/gimageview-0.2.27-gtk12_fix.diff11
-rw-r--r--media-gfx/gimageview/files/gimageview-0.2.27-gtk2.patch24
-rw-r--r--media-gfx/gimageview/files/gimageview-0.2.27-libpng15.patch24
-rw-r--r--media-gfx/gimageview/files/gimageview-0.2.27-sort_fix.diff30
-rw-r--r--media-gfx/gimageview/gimageview-0.2.27-r3.ebuild67
-rw-r--r--media-gfx/gimageview/gimageview-0.2.27-r4.ebuild76
-rw-r--r--media-gfx/gimageview/metadata.xml11
-rw-r--r--media-gfx/gimmage/Manifest9
-rw-r--r--media-gfx/gimmage/files/gimmage-0.2.3-as-needed.patch11
-rw-r--r--media-gfx/gimmage/files/gimmage-0.2.3-desktop-entry.patch16
-rw-r--r--media-gfx/gimmage/files/gimmage-0.2.3-gcc43.patch11
-rw-r--r--media-gfx/gimmage/files/gimmage-0.2.3-gcc47.patch19
-rw-r--r--media-gfx/gimmage/gimmage-0.2.3-r1.ebuild40
-rw-r--r--media-gfx/gimmage/metadata.xml14
-rw-r--r--media-gfx/gimp-arrow-brushes/Manifest13
-rw-r--r--media-gfx/gimp-arrow-brushes/gimp-arrow-brushes-20120122.ebuild33
-rw-r--r--media-gfx/gimp-arrow-brushes/metadata.xml8
-rw-r--r--media-gfx/gimp/Manifest27
-rw-r--r--media-gfx/gimp/files/gimp-2.7.4-no-deprecation.patch36
-rw-r--r--media-gfx/gimp/files/gimp-2.8.10-clang.patch204
-rw-r--r--media-gfx/gimp/files/gimp-2.8.14-blend-center.patch30
-rw-r--r--media-gfx/gimp/files/gimp-2.8.6-uclibc.patch45
-rw-r--r--media-gfx/gimp/files/gimp-2.9.2-CVE-2016-4994.patch88
-rw-r--r--media-gfx/gimp/files/gimp-2.9.2-gegl-0.3.8.patch54
-rw-r--r--media-gfx/gimp/files/gimp-2.9.2-no-deprecation.patch50
-rw-r--r--media-gfx/gimp/files/gimp-2.9.2-version.patch28
-rw-r--r--media-gfx/gimp/files/gimp-2.9.4-CVE-2007-3126.patch291
-rw-r--r--media-gfx/gimp/files/gimp-2.9.4-gegl-bin.patch28
-rw-r--r--media-gfx/gimp/files/gimp-2.9.4-mkdir-makefile.patch36
-rw-r--r--media-gfx/gimp/files/gimp-2.9.6-underlinking.patch20
-rw-r--r--media-gfx/gimp/gimp-2.8.14-r2.ebuild170
-rw-r--r--media-gfx/gimp/gimp-2.8.14-r4.ebuild170
-rw-r--r--media-gfx/gimp/gimp-2.8.20-r1.ebuild169
-rw-r--r--media-gfx/gimp/gimp-2.8.22.ebuild168
-rw-r--r--media-gfx/gimp/gimp-2.9.4-r3.ebuild191
-rw-r--r--media-gfx/gimp/gimp-2.9.6.ebuild197
-rw-r--r--media-gfx/gimp/gimp-9999.ebuild209
-rw-r--r--media-gfx/gimp/metadata.xml15
-rw-r--r--media-gfx/gliv/Manifest10
-rw-r--r--media-gfx/gliv/files/gliv-1.9.6-as-needed.patch99
-rw-r--r--media-gfx/gliv/files/gliv-1.9.7-as-needed.patch87
-rw-r--r--media-gfx/gliv/files/gliv-1.9.7-destdir.patch15
-rw-r--r--media-gfx/gliv/gliv-1.9.6.ebuild43
-rw-r--r--media-gfx/gliv/gliv-1.9.7.ebuild43
-rw-r--r--media-gfx/gliv/metadata.xml8
-rw-r--r--media-gfx/gmic/Manifest12
-rw-r--r--media-gfx/gmic/files/gmic-1.7.8-cmake.patch76
-rw-r--r--media-gfx/gmic/files/gmic-1.7.9-flags.patch15
-rw-r--r--media-gfx/gmic/files/gmic-1.7.9-man.patch17
-rw-r--r--media-gfx/gmic/gmic-1.7.8.ebuild91
-rw-r--r--media-gfx/gmic/gmic-1.7.9.ebuild86
-rw-r--r--media-gfx/gmic/gmic-2.0.0.ebuild91
-rw-r--r--media-gfx/gmic/metadata.xml15
-rw-r--r--media-gfx/gnofract4d/Manifest9
-rw-r--r--media-gfx/gnofract4d/files/gnofract4d-3.14-desktop.patch19
-rw-r--r--media-gfx/gnofract4d/files/gnofract4d-3.14-manual.patch25
-rw-r--r--media-gfx/gnofract4d/gnofract4d-3.14-r1.ebuild40
-rw-r--r--media-gfx/gnofract4d/gnofract4d-3.14.1.ebuild53
-rw-r--r--media-gfx/gnofract4d/metadata.xml12
-rw-r--r--media-gfx/gnome-font-viewer/Manifest7
-rw-r--r--media-gfx/gnome-font-viewer/gnome-font-viewer-3.22.0.ebuild26
-rw-r--r--media-gfx/gnome-font-viewer/gnome-font-viewer-3.24.0.ebuild26
-rw-r--r--media-gfx/gnome-font-viewer/metadata.xml8
-rw-r--r--media-gfx/gnome-photos/Manifest9
-rw-r--r--media-gfx/gnome-photos/gnome-photos-3.22.6.ebuild65
-rw-r--r--media-gfx/gnome-photos/gnome-photos-3.24.2.ebuild66
-rw-r--r--media-gfx/gnome-photos/gnome-photos-3.24.3.ebuild66
-rw-r--r--media-gfx/gnome-photos/metadata.xml11
-rw-r--r--media-gfx/gnome-raw-thumbnailer/Manifest9
-rw-r--r--media-gfx/gnome-raw-thumbnailer/files/gnome-raw-thumbnailer-3.0.0-deprecation-warning.patch63
-rw-r--r--media-gfx/gnome-raw-thumbnailer/files/gnome-raw-thumbnailer-3.0.0-fix-downscale.patch35
-rw-r--r--media-gfx/gnome-raw-thumbnailer/files/gnome-raw-thumbnailer-3.0.0-libopenraw-0.1.patch25
-rw-r--r--media-gfx/gnome-raw-thumbnailer/gnome-raw-thumbnailer-3.0.0-r1.ebuild42
-rw-r--r--media-gfx/gnome-raw-thumbnailer/gnome-raw-thumbnailer-3.0.0.ebuild30
-rw-r--r--media-gfx/gnome-raw-thumbnailer/metadata.xml8
-rw-r--r--media-gfx/gnome-screenshot/Manifest5
-rw-r--r--media-gfx/gnome-screenshot/gnome-screenshot-3.22.0.ebuild48
-rw-r--r--media-gfx/gnome-screenshot/metadata.xml8
-rw-r--r--media-gfx/gnome-specimen/Manifest5
-rw-r--r--media-gfx/gnome-specimen/gnome-specimen-0.4-r1.ebuild36
-rw-r--r--media-gfx/gnome-specimen/metadata.xml8
-rw-r--r--media-gfx/gnuclad/Manifest3
-rw-r--r--media-gfx/gnuclad/gnuclad-0.2.4.ebuild24
-rw-r--r--media-gfx/gnuclad/metadata.xml11
-rw-r--r--media-gfx/gozer/Manifest6
-rw-r--r--media-gfx/gozer/gozer-0.7-r2.ebuild34
-rw-r--r--media-gfx/gozer/gozer-0.7-r3.ebuild35
-rw-r--r--media-gfx/gozer/metadata.xml5
-rw-r--r--media-gfx/gphoto2/Manifest9
-rw-r--r--media-gfx/gphoto2/gphoto2-2.5.10.ebuild58
-rw-r--r--media-gfx/gphoto2/gphoto2-2.5.11.ebuild62
-rw-r--r--media-gfx/gphoto2/gphoto2-2.5.14.ebuild62
-rw-r--r--media-gfx/gphoto2/metadata.xml15
-rw-r--r--media-gfx/gphotofs/Manifest5
-rw-r--r--media-gfx/gphotofs/gphotofs-0.5.ebuild20
-rw-r--r--media-gfx/gphotofs/metadata.xml15
-rw-r--r--media-gfx/gpicview/Manifest7
-rw-r--r--media-gfx/gpicview/gpicview-0.2.4.ebuild25
-rw-r--r--media-gfx/gpicview/gpicview-0.2.5.ebuild25
-rw-r--r--media-gfx/gpicview/metadata.xml15
-rw-r--r--media-gfx/gqview/Manifest7
-rw-r--r--media-gfx/gqview/files/gqview-2.1.5-glibc.patch39
-rw-r--r--media-gfx/gqview/files/gqview-2.1.5-windows.patch16
-rw-r--r--media-gfx/gqview/gqview-2.1.5-r1.ebuild44
-rw-r--r--media-gfx/gqview/metadata.xml15
-rw-r--r--media-gfx/graphicsmagick/Manifest10
-rw-r--r--media-gfx/graphicsmagick/files/graphicsmagick-1.3.19-flags.patch56
-rw-r--r--media-gfx/graphicsmagick/files/graphicsmagick-1.3.19-perl.patch13
-rw-r--r--media-gfx/graphicsmagick/graphicsmagick-1.3.25.ebuild128
-rw-r--r--media-gfx/graphicsmagick/graphicsmagick-1.3.26.ebuild134
-rw-r--r--media-gfx/graphicsmagick/graphicsmagick-9999.ebuild134
-rw-r--r--media-gfx/graphicsmagick/metadata.xml27
-rw-r--r--media-gfx/graphite2/Manifest6
-rw-r--r--media-gfx/graphite2/files/graphite2-1.3.5-includes-libs-perl.patch14
-rw-r--r--media-gfx/graphite2/graphite2-1.3.10.ebuild118
-rw-r--r--media-gfx/graphite2/metadata.xml11
-rw-r--r--media-gfx/graphviz/Manifest10
-rw-r--r--media-gfx/graphviz/files/graphviz-2.34.0-Xaw-configure.patch81
-rw-r--r--media-gfx/graphviz/files/graphviz-2.34.0-dot-pangocairo-link.patch17
-rw-r--r--media-gfx/graphviz/files/graphviz-2.38.0-ghostscript-9.18.patch32
-rw-r--r--media-gfx/graphviz/graphviz-2.38.0-r1.ebuild267
-rw-r--r--media-gfx/graphviz/graphviz-2.40.1.ebuild275
-rw-r--r--media-gfx/graphviz/metadata.xml49
-rw-r--r--media-gfx/greycstoration/Manifest7
-rw-r--r--media-gfx/greycstoration/files/greycstoration-2.9-gcc6.patch11
-rw-r--r--media-gfx/greycstoration/files/greycstoration-2.9-libpng14.patch22
-rw-r--r--media-gfx/greycstoration/greycstoration-2.9-r2.ebuild68
-rw-r--r--media-gfx/greycstoration/metadata.xml11
-rw-r--r--media-gfx/grub-splashes/Manifest7
-rw-r--r--media-gfx/grub-splashes/grub-splashes-20091109.ebuild39
-rw-r--r--media-gfx/grub-splashes/metadata.xml11
-rw-r--r--media-gfx/gscan2pdf/Manifest5
-rw-r--r--media-gfx/gscan2pdf/gscan2pdf-1.8.6.ebuild62
-rw-r--r--media-gfx/gscan2pdf/gscan2pdf-1.8.7.ebuild63
-rw-r--r--media-gfx/gscan2pdf/metadata.xml15
-rw-r--r--media-gfx/gthumb/Manifest7
-rw-r--r--media-gfx/gthumb/gthumb-3.4.4.1.ebuild90
-rw-r--r--media-gfx/gthumb/gthumb-3.4.5.ebuild85
-rw-r--r--media-gfx/gthumb/metadata.xml14
-rw-r--r--media-gfx/gtkam/Manifest6
-rw-r--r--media-gfx/gtkam/files/gtkam-0.1.18-desktop-validation.patch15
-rw-r--r--media-gfx/gtkam/gtkam-1.0.ebuild46
-rw-r--r--media-gfx/gtkam/metadata.xml15
-rw-r--r--media-gfx/gtkimageview/Manifest5
-rw-r--r--media-gfx/gtkimageview/gtkimageview-1.6.4.ebuild54
-rw-r--r--media-gfx/gtkimageview/metadata.xml8
-rw-r--r--media-gfx/hp2xx/Manifest8
-rw-r--r--media-gfx/hp2xx/files/hp2xx-3.4.4-docbuild.patch14
-rw-r--r--media-gfx/hp2xx/files/hp2xx-3.4.4-r1.patch137
-rw-r--r--media-gfx/hp2xx/hp2xx-3.4.4-r1.ebuild69
-rw-r--r--media-gfx/hp2xx/hp2xx-3.4.4.ebuild44
-rw-r--r--media-gfx/hp2xx/metadata.xml16
-rw-r--r--media-gfx/hugin/Manifest8
-rw-r--r--media-gfx/hugin/hugin-2016.2.0.ebuild87
-rw-r--r--media-gfx/hugin/hugin-2017.0.ebuild87
-rw-r--r--media-gfx/hugin/hugin-9999.ebuild89
-rw-r--r--media-gfx/hugin/metadata.xml16
-rw-r--r--media-gfx/icc_examin/Manifest7
-rw-r--r--media-gfx/icc_examin/files/icc_examin-0.55-fix-xrandr-test.patch25
-rw-r--r--media-gfx/icc_examin/icc_examin-0.55-r1.ebuild45
-rw-r--r--media-gfx/icc_examin/icc_examin-9999.ebuild43
-rw-r--r--media-gfx/icc_examin/metadata.xml12
-rw-r--r--media-gfx/icon-slicer/Manifest5
-rw-r--r--media-gfx/icon-slicer/icon-slicer-0.3.ebuild24
-rw-r--r--media-gfx/icon-slicer/metadata.xml8
-rw-r--r--media-gfx/icoutils/Manifest11
-rw-r--r--media-gfx/icoutils/files/icoutils-0.29.1-gettext.patch13
-rw-r--r--media-gfx/icoutils/files/icoutils-0.29.1-locale.patch39
-rw-r--r--media-gfx/icoutils/icoutils-0.31.0.ebuild39
-rw-r--r--media-gfx/icoutils/icoutils-0.31.1.ebuild39
-rw-r--r--media-gfx/icoutils/icoutils-0.31.3.ebuild49
-rw-r--r--media-gfx/icoutils/metadata.xml16
-rw-r--r--media-gfx/igal/Manifest5
-rw-r--r--media-gfx/igal/igal-2.0-r1.ebuild40
-rw-r--r--media-gfx/igal/metadata.xml13
-rw-r--r--media-gfx/imagemagick/Manifest13
-rw-r--r--media-gfx/imagemagick/imagemagick-6.9.9.0.ebuild184
-rw-r--r--media-gfx/imagemagick/imagemagick-6.9.9.18.ebuild185
-rw-r--r--media-gfx/imagemagick/imagemagick-6.9.9.9.ebuild185
-rw-r--r--media-gfx/imagemagick/imagemagick-7.0.6.9.ebuild185
-rw-r--r--media-gfx/imagemagick/imagemagick-7.0.7.6.ebuild185
-rw-r--r--media-gfx/imagemagick/metadata.xml19
-rw-r--r--media-gfx/imageworsener/Manifest7
-rw-r--r--media-gfx/imageworsener/imageworsener-1.3.1.ebuild49
-rw-r--r--media-gfx/imageworsener/imageworsener-1.3.2.ebuild49
-rw-r--r--media-gfx/imageworsener/metadata.xml11
-rw-r--r--media-gfx/img2pdf/Manifest3
-rw-r--r--media-gfx/img2pdf/img2pdf-0.2.4.ebuild25
-rw-r--r--media-gfx/img2pdf/metadata.xml28
-rw-r--r--media-gfx/imv/Manifest5
-rw-r--r--media-gfx/imv/imv-2.1.3.ebuild34
-rw-r--r--media-gfx/imv/imv-9999.ebuild34
-rw-r--r--media-gfx/imv/metadata.xml15
-rw-r--r--media-gfx/inkscape/Manifest17
-rw-r--r--media-gfx/inkscape/files/inkscape-0.48.4-epython.patch11
-rw-r--r--media-gfx/inkscape/files/inkscape-0.91-fix-gtkmm-2.48.patch63
-rw-r--r--media-gfx/inkscape/files/inkscape-0.91_pre3-automagic.patch154
-rw-r--r--media-gfx/inkscape/files/inkscape-0.91_pre3-cppflags.patch14
-rw-r--r--media-gfx/inkscape/files/inkscape-0.91_pre3-desktop.patch20
-rw-r--r--media-gfx/inkscape/files/inkscape-0.91_pre3-exif.patch12
-rw-r--r--media-gfx/inkscape/files/inkscape-0.91_pre3-sk-man.patch15
-rw-r--r--media-gfx/inkscape/files/inkscape-0.92.1-automagic.patch154
-rw-r--r--media-gfx/inkscape/files/inkscape-0.92.1-desktop.patch12
-rw-r--r--media-gfx/inkscape/inkscape-0.91-r3.ebuild176
-rw-r--r--media-gfx/inkscape/inkscape-0.92.1-r1.ebuild173
-rw-r--r--media-gfx/inkscape/inkscape-0.92.1.ebuild171
-rw-r--r--media-gfx/inkscape/metadata.xml19
-rw-r--r--media-gfx/ipe/Manifest8
-rw-r--r--media-gfx/ipe/files/ipe-7.1.3-gold.patch30
-rw-r--r--media-gfx/ipe/ipe-7.1.2.ebuild77
-rw-r--r--media-gfx/ipe/ipe-7.1.3.ebuild80
-rw-r--r--media-gfx/ipe/metadata.xml17
-rw-r--r--media-gfx/iscan-data/Manifest7
-rw-r--r--media-gfx/iscan-data/iscan-data-1.22.0.1.ebuild42
-rw-r--r--media-gfx/iscan-data/iscan-data-1.36.0.1.ebuild46
-rw-r--r--media-gfx/iscan-data/metadata.xml17
-rw-r--r--media-gfx/iscan-plugin-esdip/Manifest6
-rw-r--r--media-gfx/iscan-plugin-esdip/iscan-plugin-esdip-1.0.0.5-r1.ebuild41
-rw-r--r--media-gfx/iscan-plugin-esdip/metadata.xml11
-rw-r--r--media-gfx/iscan-plugin-gt-f500/Manifest5
-rw-r--r--media-gfx/iscan-plugin-gt-f500/iscan-plugin-gt-f500-1.0.0.1-r1.ebuild84
-rw-r--r--media-gfx/iscan-plugin-gt-f500/metadata.xml23
-rw-r--r--media-gfx/iscan-plugin-gt-f720/Manifest7
-rw-r--r--media-gfx/iscan-plugin-gt-f720/iscan-plugin-gt-f720-0.0.1.2.ebuild68
-rw-r--r--media-gfx/iscan-plugin-gt-f720/iscan-plugin-gt-f720-0.0.1.ebuild66
-rw-r--r--media-gfx/iscan-plugin-gt-f720/metadata.xml12
-rw-r--r--media-gfx/iscan-plugin-gt-x770/Manifest6
-rw-r--r--media-gfx/iscan-plugin-gt-x770/iscan-plugin-gt-x770-2.1.2.1-r3.ebuild89
-rw-r--r--media-gfx/iscan-plugin-gt-x770/metadata.xml20
-rw-r--r--media-gfx/iscan-plugin-gt-x820/Manifest6
-rw-r--r--media-gfx/iscan-plugin-gt-x820/iscan-plugin-gt-x820-2.2.0.1.ebuild90
-rw-r--r--media-gfx/iscan-plugin-gt-x820/metadata.xml20
-rw-r--r--media-gfx/iscan-plugin-perfection-v370/Manifest6
-rw-r--r--media-gfx/iscan-plugin-perfection-v370/iscan-plugin-perfection-v370-1.0.0.2.ebuild93
-rw-r--r--media-gfx/iscan-plugin-perfection-v370/metadata.xml16
-rw-r--r--media-gfx/iscan/Manifest19
-rw-r--r--media-gfx/iscan/files/iscan-2.25.0-drop-ltdl.patch64
-rw-r--r--media-gfx/iscan/files/iscan-2.25.0-fix-g++-test.patch13
-rw-r--r--media-gfx/iscan/files/iscan-2.26.2-libpng15.patch51
-rw-r--r--media-gfx/iscan/files/iscan-2.26.2-png-libs.patch37
-rw-r--r--media-gfx/iscan/files/iscan-2.28.1.3+libpng-1.5.patch48
-rw-r--r--media-gfx/iscan/files/iscan-2.29.1-drop-ltdl.patch64
-rw-r--r--media-gfx/iscan/files/iscan-2.29.1-png-libs.patch37
-rw-r--r--media-gfx/iscan/files/iscan-2.30.1-fix-g++-test.patch45
-rw-r--r--media-gfx/iscan/files/iscan-2.30.1.1-gcc6.patch11
-rw-r--r--media-gfx/iscan/files/iscan-usb.sh26
-rw-r--r--media-gfx/iscan/iscan-2.30.1.1.ebuild179
-rw-r--r--media-gfx/iscan/iscan-2.30.2.2.ebuild177
-rw-r--r--media-gfx/iscan/metadata.xml19
-rw-r--r--media-gfx/jhead/Manifest8
-rw-r--r--media-gfx/jhead/files/jhead-2.90-mkstemp_respect_flags.patch26
-rw-r--r--media-gfx/jhead/jhead-2.97.ebuild31
-rw-r--r--media-gfx/jhead/jhead-3.00.ebuild32
-rw-r--r--media-gfx/jhead/metadata.xml8
-rw-r--r--media-gfx/jigl/Manifest5
-rw-r--r--media-gfx/jigl/jigl-2.0.1.ebuild21
-rw-r--r--media-gfx/jigl/metadata.xml8
-rw-r--r--media-gfx/jp2a/Manifest5
-rw-r--r--media-gfx/jp2a/jp2a-1.0.6-r1.ebuild29
-rw-r--r--media-gfx/jp2a/metadata.xml11
-rw-r--r--media-gfx/jpeg2ps/Manifest6
-rw-r--r--media-gfx/jpeg2ps/files/jpeg2ps-1.9-include.diff11
-rw-r--r--media-gfx/jpeg2ps/jpeg2ps-1.9-r1.ebuild51
-rw-r--r--media-gfx/jpeg2ps/metadata.xml13
-rw-r--r--media-gfx/jpeginfo/Manifest6
-rw-r--r--media-gfx/jpeginfo/files/jpeginfo-1.6.0-parallel_install.patch11
-rw-r--r--media-gfx/jpeginfo/jpeginfo-1.6.1.ebuild31
-rw-r--r--media-gfx/jpeginfo/metadata.xml8
-rw-r--r--media-gfx/jpegoptim/Manifest7
-rw-r--r--media-gfx/jpegoptim/jpegoptim-1.4.3.ebuild15
-rw-r--r--media-gfx/jpegoptim/jpegoptim-1.4.4.ebuild15
-rw-r--r--media-gfx/jpegoptim/metadata.xml8
-rw-r--r--media-gfx/jpegpixi/Manifest5
-rw-r--r--media-gfx/jpegpixi/jpegpixi-1.1.1.ebuild21
-rw-r--r--media-gfx/jpegpixi/metadata.xml12
-rw-r--r--media-gfx/jpegtoavi/Manifest6
-rw-r--r--media-gfx/jpegtoavi/files/jpegtoavi-1.5-Makefile.patch31
-rw-r--r--media-gfx/jpegtoavi/jpegtoavi-1.5.ebuild29
-rw-r--r--media-gfx/jpegtoavi/metadata.xml14
-rw-r--r--media-gfx/k3d/Manifest6
-rw-r--r--media-gfx/k3d/files/k3d-0.8.0.5-multilib-strict.patch25
-rw-r--r--media-gfx/k3d/k3d-0.8.0.5.ebuild97
-rw-r--r--media-gfx/k3d/metadata.xml19
-rw-r--r--media-gfx/kcoloredit/Manifest6
-rw-r--r--media-gfx/kcoloredit/files/kcoloredit-2.0.0-underlinking.patch11
-rw-r--r--media-gfx/kcoloredit/kcoloredit-2.0.0-r1.ebuild27
-rw-r--r--media-gfx/kcoloredit/metadata.xml8
-rw-r--r--media-gfx/kfax/Manifest7
-rw-r--r--media-gfx/kfax/files/kfax-3.3.6-kde45.patch12
-rw-r--r--media-gfx/kfax/files/kfax-3.3.6-underlinking.patch12
-rw-r--r--media-gfx/kfax/kfax-3.3.6-r1.ebuild38
-rw-r--r--media-gfx/kfax/metadata.xml8
-rw-r--r--media-gfx/kgraphviewer/Manifest5
-rw-r--r--media-gfx/kgraphviewer/kgraphviewer-2.4.2.ebuild38
-rw-r--r--media-gfx/kgraphviewer/metadata.xml8
-rw-r--r--media-gfx/kphotoalbum/Manifest5
-rw-r--r--media-gfx/kphotoalbum/kphotoalbum-5.2.ebuild66
-rw-r--r--media-gfx/kphotoalbum/metadata.xml13
-rw-r--r--media-gfx/kpovmodeler/Manifest8
-rw-r--r--media-gfx/kpovmodeler/files/kpovmodeler-1.1.3-desktop.patch17
-rw-r--r--media-gfx/kpovmodeler/files/kpovmodeler-1.1.3-freetype-include.patch15
-rw-r--r--media-gfx/kpovmodeler/files/kpovmodeler-1.1.3-underlinking.patch12
-rw-r--r--media-gfx/kpovmodeler/kpovmodeler-1.1.3-r1.ebuild38
-rw-r--r--media-gfx/kpovmodeler/metadata.xml12
-rw-r--r--media-gfx/krita/Manifest9
-rw-r--r--media-gfx/krita/files/krita-3.1.4-qt-5.9.patch24
-rw-r--r--media-gfx/krita/files/krita-3.2.0-tests-optional.patch282
-rw-r--r--media-gfx/krita/files/krita-vc-fix-gcc49-abi.patch14
-rw-r--r--media-gfx/krita/krita-3.1.4.ebuild95
-rw-r--r--media-gfx/krita/krita-3.2.1.ebuild92
-rw-r--r--media-gfx/krita/metadata.xml13
-rw-r--r--media-gfx/kuickshow/Manifest4
-rw-r--r--media-gfx/kuickshow/files/kuickshow-0.9.1-gcc6-compile-fix.patch15
-rw-r--r--media-gfx/kuickshow/kuickshow-0.9.1-r2.ebuild33
-rw-r--r--media-gfx/kuickshow/metadata.xml12
-rw-r--r--media-gfx/kxstitch/Manifest5
-rw-r--r--media-gfx/kxstitch/kxstitch-2.0.0.ebuild39
-rw-r--r--media-gfx/kxstitch/metadata.xml8
-rw-r--r--media-gfx/libimagequant/Manifest3
-rw-r--r--media-gfx/libimagequant/libimagequant-2.10.1.ebuild47
-rw-r--r--media-gfx/libimagequant/metadata.xml15
-rw-r--r--media-gfx/librecad/Manifest13
-rw-r--r--media-gfx/librecad/files/iota-fix-2.1.1.patch10
-rw-r--r--media-gfx/librecad/librecad-2.0.3.ebuild37
-rw-r--r--media-gfx/librecad/librecad-2.0.9-r1.ebuild67
-rw-r--r--media-gfx/librecad/librecad-2.1.1.ebuild69
-rw-r--r--media-gfx/librecad/librecad-2.1.3.ebuild69
-rw-r--r--media-gfx/librecad/librecad-9999.ebuild69
-rw-r--r--media-gfx/librecad/metadata.xml14
-rw-r--r--media-gfx/llgal/Manifest7
-rw-r--r--media-gfx/llgal/llgal-0.13.17-r2.ebuild40
-rw-r--r--media-gfx/llgal/llgal-0.13.18.ebuild40
-rw-r--r--media-gfx/llgal/metadata.xml12
-rw-r--r--media-gfx/luminance-hdr/Manifest11
-rw-r--r--media-gfx/luminance-hdr/files/luminance-hdr-2.3.1-docs.patch17
-rw-r--r--media-gfx/luminance-hdr/files/luminance-hdr-2.3.1-no-git.patch54
-rw-r--r--media-gfx/luminance-hdr/files/luminance-hdr-2.3.1-openmp-automagic.patch40
-rw-r--r--media-gfx/luminance-hdr/files/luminance-hdr-2.4.0-fits-automagic.patch36
-rw-r--r--media-gfx/luminance-hdr/files/luminance-hdr-2.4.0-qtprinter.patch99
-rw-r--r--media-gfx/luminance-hdr/files/luminance-hdr-2.4.0-qtquick.patch13
-rw-r--r--media-gfx/luminance-hdr/luminance-hdr-2.4.0.ebuild86
-rw-r--r--media-gfx/luminance-hdr/metadata.xml38
-rw-r--r--media-gfx/lximage-qt/Manifest7
-rw-r--r--media-gfx/lximage-qt/lximage-qt-0.4.0.ebuild46
-rw-r--r--media-gfx/lximage-qt/lximage-qt-0.5.0.ebuild45
-rw-r--r--media-gfx/lximage-qt/metadata.xml8
-rw-r--r--media-gfx/maim/Manifest6
-rw-r--r--media-gfx/maim/files/maim-3.4.47-no-gengetopt.patch24
-rw-r--r--media-gfx/maim/maim-3.4.47.ebuild26
-rw-r--r--media-gfx/maim/maim-5.4.63.ebuild30
-rw-r--r--media-gfx/maim/metadata.xml18
-rw-r--r--media-gfx/mandelbulber/Manifest12
-rw-r--r--media-gfx/mandelbulber/files/mandelbulber-1.11-qa.patch37
-rw-r--r--media-gfx/mandelbulber/files/mandelbulber-1.12.1-memcpy_and_memset.patch22
-rw-r--r--media-gfx/mandelbulber/files/mandelbulber-1.21.1-qa.patch30
-rw-r--r--media-gfx/mandelbulber/mandelbulber-1.11.ebuild45
-rw-r--r--media-gfx/mandelbulber/mandelbulber-1.12.1.ebuild46
-rw-r--r--media-gfx/mandelbulber/mandelbulber-1.21.1.ebuild47
-rw-r--r--media-gfx/mandelbulber/metadata.xml17
-rw-r--r--media-gfx/mcomix/Manifest5
-rw-r--r--media-gfx/mcomix/mcomix-1.2.1.ebuild69
-rw-r--r--media-gfx/mcomix/metadata.xml15
-rw-r--r--media-gfx/meshlab/Manifest38
-rw-r--r--media-gfx/meshlab/files/1.3.2/01_crash-on-save.patch29
-rw-r--r--media-gfx/meshlab/files/1.3.2/02_cstddef.patch46
-rw-r--r--media-gfx/meshlab/files/1.3.2/03_disable-updates.patch21
-rw-r--r--media-gfx/meshlab/files/1.3.2/05_externals.patch25
-rw-r--r--media-gfx/meshlab/files/1.3.2/06_format-security.patch44
-rw-r--r--media-gfx/meshlab/files/1.3.2/07_gcc47.patch105
-rw-r--r--media-gfx/meshlab/files/1.3.2/08_lib3ds.patch32
-rw-r--r--media-gfx/meshlab/files/1.3.2/09_libbz2.patch31
-rw-r--r--media-gfx/meshlab/files/1.3.2/10_muparser.patch30
-rw-r--r--media-gfx/meshlab/files/1.3.2/11_openctm.patch31
-rw-r--r--media-gfx/meshlab/files/1.3.2/12_overflow.patch23
-rw-r--r--media-gfx/meshlab/files/1.3.2/13_pluginsdir.patch21
-rw-r--r--media-gfx/meshlab/files/1.3.2/14_ply_numeric.patch32
-rw-r--r--media-gfx/meshlab/files/1.3.2/15_qhull.patch67
-rw-r--r--media-gfx/meshlab/files/1.3.2/16_shadersdir.patch49
-rw-r--r--media-gfx/meshlab/files/1.3.2/17_structuresynth.patch48
-rw-r--r--media-gfx/meshlab/files/1.3.2/18_glew.c18p1.patch146
-rw-r--r--media-gfx/meshlab/files/1.3.2/19_CONFLICTS_IN_rpath.patch32
-rw-r--r--media-gfx/meshlab/files/1.3.2/20_rpath.c18p2.patch43
-rw-r--r--media-gfx/meshlab/files/1.3.2/21_RESOLUTION.patch29
-rw-r--r--media-gfx/meshlab/files/1.3.2/22_aliasing.patch43
-rw-r--r--media-gfx/meshlab/files/1.3.3/gcc-4.7.patch12
-rw-r--r--media-gfx/meshlab/files/1.3.3/lapack.patch11
-rw-r--r--media-gfx/meshlab/files/1.3.3/meshrender.patch15
-rw-r--r--media-gfx/meshlab/files/1.3.3/mpir.patch10
-rw-r--r--media-gfx/meshlab/files/1.3.3/pluginmanager.patch14
-rw-r--r--media-gfx/meshlab/files/1.3.3/qt-4.8.patch11
-rw-r--r--media-gfx/meshlab/files/1.3.3/rfx.patch14
-rw-r--r--media-gfx/meshlab/files/1.3.3/rmmeshrender.patch15
-rw-r--r--media-gfx/meshlab/files/1.3.3/rpath.patch39
-rw-r--r--media-gfx/meshlab/files/1.3.3/structuresynth.patch11
-rw-r--r--media-gfx/meshlab/meshlab-1.3.2.ebuild83
-rw-r--r--media-gfx/meshlab/meshlab-1.3.3-r1.ebuild72
-rw-r--r--media-gfx/meshlab/metadata.xml20
-rw-r--r--media-gfx/metadata.xml32
-rw-r--r--media-gfx/metapixel/Manifest8
-rw-r--r--media-gfx/metapixel/files/metapixel-1.0.2-giflib5.patch21
-rw-r--r--media-gfx/metapixel/files/metapixel-1.0.2-libpng15.patch141
-rw-r--r--media-gfx/metapixel/metadata.xml8
-rw-r--r--media-gfx/metapixel/metapixel-1.0.2-r1.ebuild44
-rw-r--r--media-gfx/metapixel/metapixel-1.0.2.ebuild37
-rw-r--r--media-gfx/mirage/Manifest6
-rw-r--r--media-gfx/mirage/files/mirage-0.9.3-stop_cleaning_up.patch27
-rw-r--r--media-gfx/mirage/metadata.xml8
-rw-r--r--media-gfx/mirage/mirage-0.9.5.2-r1.ebuild35
-rw-r--r--media-gfx/mkgallery/Manifest5
-rw-r--r--media-gfx/mkgallery/metadata.xml8
-rw-r--r--media-gfx/mkgallery/mkgallery-1.1.ebuild20
-rw-r--r--media-gfx/monica/Manifest7
-rw-r--r--media-gfx/monica/files/monica-3.6-makefile-cleanup.patch33
-rw-r--r--media-gfx/monica/files/monica-3.7-gcc44.patch11
-rw-r--r--media-gfx/monica/metadata.xml17
-rw-r--r--media-gfx/monica/monica-3.7.ebuild38
-rw-r--r--media-gfx/mscgen/Manifest5
-rw-r--r--media-gfx/mscgen/metadata.xml8
-rw-r--r--media-gfx/mscgen/mscgen-0.20.ebuild42
-rw-r--r--media-gfx/mypaint/Manifest12
-rw-r--r--media-gfx/mypaint/files/mypaint-1.1.0-build-env-vars.patch53
-rw-r--r--media-gfx/mypaint/files/mypaint-1.1.0-desktop.patch24
-rw-r--r--media-gfx/mypaint/files/mypaint-1.1.0-json-c-0.11.patch15
-rw-r--r--media-gfx/mypaint/metadata.xml11
-rw-r--r--media-gfx/mypaint/mypaint-1.1.0-r2.ebuild91
-rw-r--r--media-gfx/mypaint/mypaint-1.2.0.ebuild86
-rw-r--r--media-gfx/mypaint/mypaint-1.2.1.ebuild91
-rw-r--r--media-gfx/nip2/Manifest5
-rw-r--r--media-gfx/nip2/metadata.xml14
-rw-r--r--media-gfx/nip2/nip2-7.38.1.ebuild77
-rw-r--r--media-gfx/nomacs/Manifest7
-rw-r--r--media-gfx/nomacs/files/nomacs-3.6.1-batch-resize.patch23
-rw-r--r--media-gfx/nomacs/metadata.xml17
-rw-r--r--media-gfx/nomacs/nomacs-3.6.1-r1.ebuild78
-rw-r--r--media-gfx/nomacs/nomacs-3.6.1.ebuild73
-rw-r--r--media-gfx/nvidia-cg-toolkit/Manifest11
-rw-r--r--media-gfx/nvidia-cg-toolkit/files/80cgc-opt6
-rw-r--r--media-gfx/nvidia-cg-toolkit/files/80cgc-opt-29
-rw-r--r--media-gfx/nvidia-cg-toolkit/files/nvidia-cg-toolkit-gl.pc.in10
-rw-r--r--media-gfx/nvidia-cg-toolkit/files/nvidia-cg-toolkit.pc.in9
-rw-r--r--media-gfx/nvidia-cg-toolkit/metadata.xml15
-rw-r--r--media-gfx/nvidia-cg-toolkit/nvidia-cg-toolkit-3.1.0013-r3.ebuild146
-rw-r--r--media-gfx/nvidia-cg-toolkit/nvidia-cg-toolkit-3.1.0013-r5.ebuild139
-rw-r--r--media-gfx/nvidia-texture-tools/Manifest11
-rw-r--r--media-gfx/nvidia-texture-tools/files/nvidia-texture-tools-2.0.8-cg.patch39
-rw-r--r--media-gfx/nvidia-texture-tools/files/nvidia-texture-tools-2.0.8-clang.patch18
-rw-r--r--media-gfx/nvidia-texture-tools/files/nvidia-texture-tools-2.0.8-cpp14.patch58
-rw-r--r--media-gfx/nvidia-texture-tools/files/nvidia-texture-tools-2.0.8-gcc-4.7.patch16
-rw-r--r--media-gfx/nvidia-texture-tools/files/nvidia-texture-tools-2.0.8-openexr.patch93
-rw-r--r--media-gfx/nvidia-texture-tools/metadata.xml10
-rw-r--r--media-gfx/nvidia-texture-tools/nvidia-texture-tools-2.0.8-r3.ebuild71
-rw-r--r--media-gfx/opcion/Manifest6
-rw-r--r--media-gfx/opcion/files/opcion-1.1.1-fix-source.patch15
-rw-r--r--media-gfx/opcion/metadata.xml11
-rw-r--r--media-gfx/opcion/opcion-1.1.1-r2.ebuild57
-rw-r--r--media-gfx/openclipart/Manifest5
-rw-r--r--media-gfx/openclipart/metadata.xml11
-rw-r--r--media-gfx/openclipart/openclipart-0.20.ebuild48
-rw-r--r--media-gfx/opencsg/Manifest6
-rw-r--r--media-gfx/opencsg/files/opencsg-1.4.2-includepath.patch25
-rw-r--r--media-gfx/opencsg/metadata.xml19
-rw-r--r--media-gfx/opencsg/opencsg-1.4.2.ebuild42
-rw-r--r--media-gfx/openexr_viewers/Manifest17
-rw-r--r--media-gfx/openexr_viewers/files/openexr_viewers-1.0.1-gcc43.patch55
-rw-r--r--media-gfx/openexr_viewers/files/openexr_viewers-1.0.1-gcc44.patch37
-rw-r--r--media-gfx/openexr_viewers/files/openexr_viewers-1.0.2-nvidia-automagic.patch16
-rw-r--r--media-gfx/openexr_viewers/files/openexr_viewers-2.0.0-nvidia-automagic.patch14
-rw-r--r--media-gfx/openexr_viewers/files/openexr_viewers-2.2.0-Remove-nVidia-automagic.patch28
-rw-r--r--media-gfx/openexr_viewers/metadata.xml13
-rw-r--r--media-gfx/openexr_viewers/openexr_viewers-1.0.2.ebuild57
-rw-r--r--media-gfx/openexr_viewers/openexr_viewers-2.0.1.ebuild55
-rw-r--r--media-gfx/openexr_viewers/openexr_viewers-2.1.0.ebuild55
-rw-r--r--media-gfx/openexr_viewers/openexr_viewers-2.2.0-r1.ebuild58
-rw-r--r--media-gfx/openexr_viewers/openexr_viewers-2.2.0.ebuild55
-rw-r--r--media-gfx/openmesh/Manifest5
-rw-r--r--media-gfx/openmesh/metadata.xml13
-rw-r--r--media-gfx/openmesh/openmesh-4.1.ebuild68
-rw-r--r--media-gfx/openscad/Manifest8
-rw-r--r--media-gfx/openscad/files/50openscad-gentoo.el3
-rw-r--r--media-gfx/openscad/metadata.xml11
-rw-r--r--media-gfx/openscad/openscad-2015.03_p2-r1.ebuild53
-rw-r--r--media-gfx/openscad/openscad-2015.03_p2-r2.ebuild69
-rw-r--r--media-gfx/openscad/openscad-9999.ebuild64
-rw-r--r--media-gfx/opentoonz/Manifest4
-rw-r--r--media-gfx/opentoonz/files/opentoonz-1.1.2-gcc6-no-throw-in-destructors.patch38
-rw-r--r--media-gfx/opentoonz/metadata.xml15
-rw-r--r--media-gfx/opentoonz/opentoonz-1.1.2.ebuild93
-rw-r--r--media-gfx/openvdb/Manifest15
-rw-r--r--media-gfx/openvdb/files/openvdb-3.2.0-fix-build-system.patch262
-rw-r--r--media-gfx/openvdb/files/openvdb-3.2.0-numpy-fix.patch17
-rw-r--r--media-gfx/openvdb/files/openvdb-4.0.0-build-docs-once.patch32
-rw-r--r--media-gfx/openvdb/files/openvdb-4.0.0-make-docs-optional.patch71
-rw-r--r--media-gfx/openvdb/files/openvdb-4.0.0-namespace-fixes.patch65
-rw-r--r--media-gfx/openvdb/files/openvdb-4.0.0-python-module-install-dir-fix.patch16
-rw-r--r--media-gfx/openvdb/metadata.xml35
-rw-r--r--media-gfx/openvdb/openvdb-3.2.0.ebuild161
-rw-r--r--media-gfx/openvdb/openvdb-4.0.0.ebuild77
-rw-r--r--media-gfx/openvdb/openvdb-4.0.2.ebuild74
-rw-r--r--media-gfx/optipng/Manifest6
-rw-r--r--media-gfx/optipng/files/optipng-0.7.5-estonian.patch34
-rw-r--r--media-gfx/optipng/metadata.xml11
-rw-r--r--media-gfx/optipng/optipng-0.7.6.ebuild55
-rw-r--r--media-gfx/panini/Manifest7
-rw-r--r--media-gfx/panini/files/panini-0.71.104-glu.patch10
-rw-r--r--media-gfx/panini/files/panini.desktop10
-rw-r--r--media-gfx/panini/metadata.xml11
-rw-r--r--media-gfx/panini/panini-0.71.104.ebuild36
-rw-r--r--media-gfx/pdf2svg/Manifest7
-rw-r--r--media-gfx/pdf2svg/metadata.xml8
-rw-r--r--media-gfx/pdf2svg/pdf2svg-0.2.1.ebuild31
-rw-r--r--media-gfx/pdf2svg/pdf2svg-0.2.2.ebuild28
-rw-r--r--media-gfx/pencil/Manifest6
-rw-r--r--media-gfx/pencil/files/pencil-0.4.4_beta-gcc461.patch14
-rw-r--r--media-gfx/pencil/metadata.xml8
-rw-r--r--media-gfx/pencil/pencil-0.4.4_beta.ebuild41
-rw-r--r--media-gfx/peps/Manifest6
-rw-r--r--media-gfx/peps/metadata.xml12
-rw-r--r--media-gfx/peps/peps-2.0-r1.ebuild54
-rw-r--r--media-gfx/peps/peps-2.0.ebuild53
-rw-r--r--media-gfx/photivo/Manifest10
-rw-r--r--media-gfx/photivo/metadata.xml16
-rw-r--r--media-gfx/photivo/photivo-0_pre20121006.ebuild68
-rw-r--r--media-gfx/photivo/photivo-0_pre20121212.ebuild68
-rw-r--r--media-gfx/photivo/photivo-0_pre20131115.ebuild69
-rw-r--r--media-gfx/photivo/photivo-9999.ebuild70
-rw-r--r--media-gfx/photopc/Manifest5
-rw-r--r--media-gfx/photopc/metadata.xml8
-rw-r--r--media-gfx/photopc/photopc-3.07.ebuild25
-rw-r--r--media-gfx/photoqt/Manifest5
-rw-r--r--media-gfx/photoqt/metadata.xml13
-rw-r--r--media-gfx/photoqt/photoqt-1.5.1-r1.ebuild59
-rw-r--r--media-gfx/phototonic/Manifest5
-rw-r--r--media-gfx/phototonic/metadata.xml11
-rw-r--r--media-gfx/phototonic/phototonic-1.6.17.ebuild35
-rw-r--r--media-gfx/pictureflow/Manifest5
-rw-r--r--media-gfx/pictureflow/metadata.xml8
-rw-r--r--media-gfx/pictureflow/pictureflow-0.1.0.ebuild24
-rw-r--r--media-gfx/pinta/Manifest7
-rw-r--r--media-gfx/pinta/files/pinta-1.6-mono-4.patch70
-rw-r--r--media-gfx/pinta/metadata.xml28
-rw-r--r--media-gfx/pinta/pinta-1.6-r2.ebuild46
-rw-r--r--media-gfx/pinta/pinta-9999.ebuild46
-rw-r--r--media-gfx/pixels2pgf/Manifest6
-rw-r--r--media-gfx/pixels2pgf/metadata.xml16
-rw-r--r--media-gfx/pixels2pgf/pixels2pgf-0.1.ebuild17
-rw-r--r--media-gfx/pixels2pgf/pixels2pgf-9999.ebuild25
-rw-r--r--media-gfx/pixie/Manifest8
-rw-r--r--media-gfx/pixie/files/Makefile.shaders15
-rw-r--r--media-gfx/pixie/files/pixie-2.2.6-autotools.patch22
-rw-r--r--media-gfx/pixie/files/pixie-2.2.6-zlib-1.2.5.2.patch73
-rw-r--r--media-gfx/pixie/metadata.xml14
-rw-r--r--media-gfx/pixie/pixie-2.2.6-r1.ebuild102
-rw-r--r--media-gfx/plantuml/Manifest5
-rw-r--r--media-gfx/plantuml/metadata.xml21
-rw-r--r--media-gfx/plantuml/plantuml-8046.ebuild30
-rw-r--r--media-gfx/png2ico/Manifest6
-rw-r--r--media-gfx/png2ico/files/png2ico-2002.12.08-memset_and_strcmp.patch13
-rw-r--r--media-gfx/png2ico/metadata.xml8
-rw-r--r--media-gfx/png2ico/png2ico-2002.12.08.ebuild40
-rw-r--r--media-gfx/pngcheck/Manifest5
-rw-r--r--media-gfx/pngcheck/metadata.xml11
-rw-r--r--media-gfx/pngcheck/pngcheck-2.3.0.ebuild29
-rw-r--r--media-gfx/pngcrush/Manifest12
-rw-r--r--media-gfx/pngcrush/metadata.xml19
-rw-r--r--media-gfx/pngcrush/pngcrush-1.8.11.ebuild40
-rw-r--r--media-gfx/pngcrush/pngcrush-1.8.12.ebuild40
-rw-r--r--media-gfx/pngcrush/pngcrush-1.8.13.ebuild40
-rw-r--r--media-gfx/pngnq/Manifest7
-rw-r--r--media-gfx/pngnq/files/pngnq-1.0-libpng14.patch13
-rw-r--r--media-gfx/pngnq/files/pngnq-1.0-libpng15.patch13
-rw-r--r--media-gfx/pngnq/metadata.xml8
-rw-r--r--media-gfx/pngnq/pngnq-1.1.ebuild25
-rw-r--r--media-gfx/pngquant/Manifest7
-rw-r--r--media-gfx/pngquant/metadata.xml17
-rw-r--r--media-gfx/pngquant/pngquant-2.5.2.ebuild39
-rw-r--r--media-gfx/pngquant/pngquant-2.7.2.ebuild39
-rw-r--r--media-gfx/pngrewrite/Manifest8
-rw-r--r--media-gfx/pngrewrite/files/pngrewrite-1.3.0-gcc44.patch19
-rw-r--r--media-gfx/pngrewrite/metadata.xml8
-rw-r--r--media-gfx/pngrewrite/pngrewrite-1.3.0.ebuild29
-rw-r--r--media-gfx/pngrewrite/pngrewrite-1.4.0.ebuild30
-rw-r--r--media-gfx/pngtoico/Manifest7
-rw-r--r--media-gfx/pngtoico/files/pngtoico-1.0.1-Makefile.patch15
-rw-r--r--media-gfx/pngtoico/files/pngtoico-1.0.1-libpng15.patch11
-rw-r--r--media-gfx/pngtoico/metadata.xml8
-rw-r--r--media-gfx/pngtoico/pngtoico-1.0.1-r1.ebuild32
-rw-r--r--media-gfx/pngtools/Manifest8
-rw-r--r--media-gfx/pngtools/files/pngtools-0.3-implicit-declarations.patch40
-rw-r--r--media-gfx/pngtools/files/pngtools-0.4-libpng14.patch34
-rw-r--r--media-gfx/pngtools/files/pngtools-0.4-libpng15-fixes.patch190
-rw-r--r--media-gfx/pngtools/metadata.xml11
-rw-r--r--media-gfx/pngtools/pngtools-0.4-r2.ebuild34
-rw-r--r--media-gfx/pornview/Manifest6
-rw-r--r--media-gfx/pornview/metadata.xml8
-rw-r--r--media-gfx/pornview/pornview-0.2.2-r1.ebuild51
-rw-r--r--media-gfx/pornview/pornview-0.2.2.ebuild52
-rw-r--r--media-gfx/postr/Manifest5
-rw-r--r--media-gfx/postr/metadata.xml8
-rw-r--r--media-gfx/postr/postr-0.13.1.ebuild63
-rw-r--r--media-gfx/potrace/Manifest9
-rw-r--r--media-gfx/potrace/metadata.xml20
-rw-r--r--media-gfx/potrace/potrace-1.13.ebuild32
-rw-r--r--media-gfx/potrace/potrace-1.14.ebuild32
-rw-r--r--media-gfx/potrace/potrace-1.15.ebuild33
-rw-r--r--media-gfx/povray/Manifest12
-rw-r--r--media-gfx/povray/files/povray-3.7.0.0-automagic.patch27
-rw-r--r--media-gfx/povray/files/povray-3.7.0.0-boost-1.50.patch72
-rw-r--r--media-gfx/povray/files/povray-3.7.0.0-r1-boost-1.50.patch108
-rw-r--r--media-gfx/povray/files/povray-3.7.0.0-user-conf.patch27
-rw-r--r--media-gfx/povray/files/povray-3.7.0_rc6-darwin-defaults.patch21
-rw-r--r--media-gfx/povray/metadata.xml14
-rw-r--r--media-gfx/povray/povray-3.7.0.0-r1.ebuild141
-rw-r--r--media-gfx/povray/povray-3.7.0.0.ebuild146
-rw-r--r--media-gfx/povtree/Manifest6
-rw-r--r--media-gfx/povtree/files/povtree11
-rw-r--r--media-gfx/povtree/metadata.xml8
-rw-r--r--media-gfx/povtree/povtree-1.5-r1.ebuild28
-rw-r--r--media-gfx/pqiv/Manifest6
-rw-r--r--media-gfx/pqiv/metadata.xml18
-rw-r--r--media-gfx/pqiv/pqiv-2.9.ebuild79
-rw-r--r--media-gfx/pqiv/pqiv-9999.ebuild79
-rw-r--r--media-gfx/pqstego/Manifest5
-rw-r--r--media-gfx/pqstego/metadata.xml11
-rw-r--r--media-gfx/pqstego/pqstego-0.0.1.ebuild26
-rw-r--r--media-gfx/printrun/Manifest9
-rw-r--r--media-gfx/printrun/files/printrun-gtk3.patch291
-rw-r--r--media-gfx/printrun/files/printrun-x11.patch39
-rw-r--r--media-gfx/printrun/metadata.xml20
-rw-r--r--media-gfx/printrun/printrun-20150310-r1.ebuild34
-rw-r--r--media-gfx/printrun/printrun-20150310-r2.ebuild39
-rw-r--r--media-gfx/printrun/printrun-99999999.ebuild34
-rw-r--r--media-gfx/propaganda/Manifest20
-rw-r--r--media-gfx/propaganda/metadata.xml5
-rw-r--r--media-gfx/propaganda/propaganda-1.0-r1.ebuild47
-rw-r--r--media-gfx/propaganda/propaganda-1.0.ebuild67
-rw-r--r--media-gfx/psftools/Manifest5
-rw-r--r--media-gfx/psftools/metadata.xml8
-rw-r--r--media-gfx/psftools/psftools-1.0.7.ebuild19
-rw-r--r--media-gfx/pstoedit/Manifest7
-rw-r--r--media-gfx/pstoedit/files/pstoedit-3.60-libdl.patch13
-rw-r--r--media-gfx/pstoedit/files/pstoedit-3.70-pkgconfig.patch14
-rw-r--r--media-gfx/pstoedit/metadata.xml20
-rw-r--r--media-gfx/pstoedit/pstoedit-3.70-r1.ebuild64
-rw-r--r--media-gfx/pycam/Manifest8
-rw-r--r--media-gfx/pycam/files/fix-export-toolpath.patch25
-rw-r--r--media-gfx/pycam/metadata.xml10
-rw-r--r--media-gfx/pycam/pycam-0.5.1.ebuild22
-rw-r--r--media-gfx/pycam/pycam-0.6_pre20130416-r1.ebuild29
-rw-r--r--media-gfx/qingy-themes/Manifest22
-rw-r--r--media-gfx/qingy-themes/metadata.xml5
-rw-r--r--media-gfx/qingy-themes/qingy-themes-20050816.ebuild64
-rw-r--r--media-gfx/qiv/Manifest7
-rw-r--r--media-gfx/qiv/metadata.xml11
-rw-r--r--media-gfx/qiv/qiv-2.2.4.ebuild43
-rw-r--r--media-gfx/qiv/qiv-2.3.1.ebuild63
-rw-r--r--media-gfx/qiviewer/Manifest6
-rw-r--r--media-gfx/qiviewer/files/qiviewer-use-system-webp.patch41
-rw-r--r--media-gfx/qiviewer/metadata.xml14
-rw-r--r--media-gfx/qiviewer/qiviewer-0.5.0-r1.ebuild59
-rw-r--r--media-gfx/qosmic/Manifest5
-rw-r--r--media-gfx/qosmic/metadata.xml15
-rw-r--r--media-gfx/qosmic/qosmic-1.5.0.ebuild28
-rw-r--r--media-gfx/qrencode-python/Manifest5
-rw-r--r--media-gfx/qrencode-python/metadata.xml9
-rw-r--r--media-gfx/qrencode-python/qrencode-python-1.02_pre140921.ebuild23
-rw-r--r--media-gfx/qrencode/Manifest8
-rw-r--r--media-gfx/qrencode/files/qrencode-3.2.0-pngregenfix.patch44
-rw-r--r--media-gfx/qrencode/metadata.xml12
-rw-r--r--media-gfx/qrencode/qrencode-3.4.4-r1.ebuild26
-rw-r--r--media-gfx/qrencode/qrencode-4.0.0.ebuild39
-rw-r--r--media-gfx/quat/Manifest6
-rw-r--r--media-gfx/quat/metadata.xml5
-rw-r--r--media-gfx/quat/quat-1.20-r1.ebuild34
-rw-r--r--media-gfx/quat/quat-1.20.ebuild34
-rw-r--r--media-gfx/qvv/Manifest5
-rw-r--r--media-gfx/qvv/metadata.xml8
-rw-r--r--media-gfx/qvv/qvv-4.02.ebuild28
-rw-r--r--media-gfx/raw-thumbnailer/Manifest5
-rw-r--r--media-gfx/raw-thumbnailer/metadata.xml12
-rw-r--r--media-gfx/raw-thumbnailer/raw-thumbnailer-0.2.1.ebuild21
-rw-r--r--media-gfx/rawtherapee/Manifest9
-rw-r--r--media-gfx/rawtherapee/metadata.xml16
-rw-r--r--media-gfx/rawtherapee/rawtherapee-5.1.ebuild64
-rw-r--r--media-gfx/rawtherapee/rawtherapee-5.2.ebuild65
-rw-r--r--media-gfx/rawtherapee/rawtherapee-5.3.ebuild66
-rw-r--r--media-gfx/recoverjpeg/Manifest13
-rw-r--r--media-gfx/recoverjpeg/metadata.xml8
-rw-r--r--media-gfx/recoverjpeg/recoverjpeg-2.0-r2.ebuild21
-rw-r--r--media-gfx/recoverjpeg/recoverjpeg-2.1.1-r1.ebuild21
-rw-r--r--media-gfx/recoverjpeg/recoverjpeg-2.2.1-r1.ebuild21
-rw-r--r--media-gfx/recoverjpeg/recoverjpeg-2.2.2-r1.ebuild21
-rw-r--r--media-gfx/recoverjpeg/recoverjpeg-2.2.3-r1.ebuild21
-rw-r--r--media-gfx/replicatorg/Manifest8
-rw-r--r--media-gfx/replicatorg/files/replicatorg2
-rw-r--r--media-gfx/replicatorg/metadata.xml7
-rw-r--r--media-gfx/replicatorg/replicatorg-37-r2.ebuild84
-rw-r--r--media-gfx/replicatorg/replicatorg-40-r1.ebuild84
-rw-r--r--media-gfx/ristretto/Manifest11
-rw-r--r--media-gfx/ristretto/files/ristretto-0.8.0-fix-appdata-validation.patch25
-rw-r--r--media-gfx/ristretto/files/ristretto-0.8.0-fix-icon-installation.patch20
-rw-r--r--media-gfx/ristretto/metadata.xml8
-rw-r--r--media-gfx/ristretto/ristretto-0.8.0-r1.ebuild41
-rw-r--r--media-gfx/ristretto/ristretto-0.8.2.ebuild36
-rw-r--r--media-gfx/ristretto/ristretto-0.8.2_p20170821.ebuild42
-rw-r--r--media-gfx/rotoscope/Manifest5
-rw-r--r--media-gfx/rotoscope/metadata.xml11
-rw-r--r--media-gfx/rotoscope/rotoscope-0.2.ebuild23
-rw-r--r--media-gfx/sam2p/Manifest15
-rw-r--r--media-gfx/sam2p/files/sam2p-0.45-fbsd.patch14
-rw-r--r--media-gfx/sam2p/files/sam2p-0.49-glibc-2.20.patch18
-rw-r--r--media-gfx/sam2p/files/sam2p-0.49.1-build.patch42
-rw-r--r--media-gfx/sam2p/files/sam2p-0.49.1-gcc48.patch39
-rw-r--r--media-gfx/sam2p/files/sam2p-0.49.3-build-fixes.patch160
-rw-r--r--media-gfx/sam2p/files/sam2p-0.49.3-perl526.patch23
-rw-r--r--media-gfx/sam2p/metadata.xml12
-rw-r--r--media-gfx/sam2p/sam2p-0.49.1.ebuild43
-rw-r--r--media-gfx/sam2p/sam2p-0.49.2.ebuild42
-rw-r--r--media-gfx/sam2p/sam2p-0.49.3.ebuild47
-rw-r--r--media-gfx/sane-backends/Manifest15
-rw-r--r--media-gfx/sane-backends/files/sane-backends-1.0.24-saned_pidfile_location.patch11
-rw-r--r--media-gfx/sane-backends/files/sane-backends-1.0.25-disable-usb-tests.patch14
-rw-r--r--media-gfx/sane-backends/files/sane-backends-1.0.27-disable-usb-tests.patch11
-rw-r--r--media-gfx/sane-backends/files/saned10
-rw-r--r--media-gfx/sane-backends/files/saned.confd2
-rw-r--r--media-gfx/sane-backends/files/saned.initd11
-rw-r--r--media-gfx/sane-backends/files/saned.socket10
-rw-r--r--media-gfx/sane-backends/files/saned_at.service18
-rw-r--r--media-gfx/sane-backends/metadata.xml5
-rw-r--r--media-gfx/sane-backends/sane-backends-1.0.25-r1.ebuild346
-rw-r--r--media-gfx/sane-backends/sane-backends-1.0.27.ebuild349
-rw-r--r--media-gfx/sane-frontends/Manifest7
-rw-r--r--media-gfx/sane-frontends/files/MissingCapsFlag.patch12
-rw-r--r--media-gfx/sane-frontends/metadata.xml5
-rw-r--r--media-gfx/sane-frontends/sane-frontends-1.0.14-r1.ebuild54
-rw-r--r--media-gfx/sane-frontends/sane-frontends-1.0.14.ebuild55
-rw-r--r--media-gfx/scantailor/Manifest5
-rw-r--r--media-gfx/scantailor/metadata.xml11
-rw-r--r--media-gfx/scantailor/scantailor-0.9.12.2.ebuild54
-rw-r--r--media-gfx/scour/Manifest5
-rw-r--r--media-gfx/scour/metadata.xml8
-rw-r--r--media-gfx/scour/scour-0.35-r1.ebuild24
-rw-r--r--media-gfx/scour/scour-0.36.ebuild24
-rw-r--r--media-gfx/scrot/Manifest10
-rw-r--r--media-gfx/scrot/files/scrot.bash-completion40
-rw-r--r--media-gfx/scrot/metadata.xml8
-rw-r--r--media-gfx/scrot/scrot-0.8-r1.ebuild27
-rw-r--r--media-gfx/scrot/scrot-0.8_p13-r1.ebuild38
-rw-r--r--media-gfx/scrot/scrot-0.8_p13.ebuild37
-rw-r--r--media-gfx/sfftobmp/Manifest7
-rw-r--r--media-gfx/sfftobmp/files/sfftobmp-3.1.1-gcc44-and-boost-1_37.patch33
-rw-r--r--media-gfx/sfftobmp/files/sfftobmp-3.1.2-boost_fs3.patch21
-rw-r--r--media-gfx/sfftobmp/metadata.xml12
-rw-r--r--media-gfx/sfftobmp/sfftobmp-3.1.2-r1.ebuild37
-rw-r--r--media-gfx/shotwell/Manifest17
-rw-r--r--media-gfx/shotwell/metadata.xml26
-rw-r--r--media-gfx/shotwell/shotwell-0.24.6.ebuild60
-rw-r--r--media-gfx/shotwell/shotwell-0.25.0.1.ebuild62
-rw-r--r--media-gfx/shotwell/shotwell-0.26.0.ebuild62
-rw-r--r--media-gfx/shotwell/shotwell-0.26.1.ebuild62
-rw-r--r--media-gfx/shotwell/shotwell-0.26.2.ebuild63
-rw-r--r--media-gfx/shotwell/shotwell-0.26.3.ebuild63
-rw-r--r--media-gfx/shotwell/shotwell-0.27.0.ebuild63
-rw-r--r--media-gfx/simple-scan/Manifest7
-rw-r--r--media-gfx/simple-scan/metadata.xml20
-rw-r--r--media-gfx/simple-scan/simple-scan-3.22.0.1.ebuild55
-rw-r--r--media-gfx/simple-scan/simple-scan-3.24.1.ebuild55
-rw-r--r--media-gfx/slic3r/Manifest11
-rw-r--r--media-gfx/slic3r/files/slic3r-1.1.7-adjust_var_path.patch11
-rw-r--r--media-gfx/slic3r/files/slic3r-1.2.9-adjust_var_path.patch11
-rw-r--r--media-gfx/slic3r/files/slic3r-1.2.9-c++11.patch38
-rw-r--r--media-gfx/slic3r/files/slic3r-9999-no-locallib.patch609
-rw-r--r--media-gfx/slic3r/metadata.xml29
-rw-r--r--media-gfx/slic3r/slic3r-1.1.7.ebuild114
-rw-r--r--media-gfx/slic3r/slic3r-1.2.9-r2.ebuild103
-rw-r--r--media-gfx/slic3r/slic3r-9999.ebuild112
-rw-r--r--media-gfx/splash-themes-gentoo/Manifest9
-rw-r--r--media-gfx/splash-themes-gentoo/metadata.xml5
-rw-r--r--media-gfx/splash-themes-gentoo/splash-themes-gentoo-20101212-r1.ebuild40
-rw-r--r--media-gfx/splash-themes-gentoo/splash-themes-gentoo-20101212-r2.ebuild47
-rw-r--r--media-gfx/splash-themes-livecd/Manifest16
-rw-r--r--media-gfx/splash-themes-livecd/files/use-new-path-for-functions.sh.patch11
-rw-r--r--media-gfx/splash-themes-livecd/metadata.xml8
-rw-r--r--media-gfx/splash-themes-livecd/splash-themes-livecd-2004.3.ebuild20
-rw-r--r--media-gfx/splash-themes-livecd/splash-themes-livecd-2005.0.ebuild29
-rw-r--r--media-gfx/splash-themes-livecd/splash-themes-livecd-2005.1.ebuild30
-rw-r--r--media-gfx/splash-themes-livecd/splash-themes-livecd-2006.0.ebuild29
-rw-r--r--media-gfx/splash-themes-livecd/splash-themes-livecd-2006.1.ebuild29
-rw-r--r--media-gfx/splash-themes-livecd/splash-themes-livecd-2007.0-r3.ebuild31
-rw-r--r--media-gfx/splash-themes-livedvd/Manifest7
-rw-r--r--media-gfx/splash-themes-livedvd/files/use-new-path-for-functions.sh.patch11
-rw-r--r--media-gfx/splash-themes-livedvd/metadata.xml15
-rw-r--r--media-gfx/splash-themes-livedvd/splash-themes-livedvd-12.0-r1.ebuild32
-rw-r--r--media-gfx/splash-themes-livedvd/splash-themes-livedvd-12.0-r2.ebuild33
-rw-r--r--media-gfx/splashutils/Manifest17
-rw-r--r--media-gfx/splashutils/files/splashutils-1.5.4.4-freetype-bz2.patch15
-rw-r--r--media-gfx/splashutils/files/splashutils-1.5.4.4-ft25.patch42
-rw-r--r--media-gfx/splashutils/files/splashutils-1.5.4.4-gentoo-typo-fix.patch19
-rw-r--r--media-gfx/splashutils/files/splashutils-1.5.4.4-multi-keyboard.patch381
-rw-r--r--media-gfx/splashutils/files/splashutils-1.5.4.4-no-la.patch12
-rw-r--r--media-gfx/splashutils/files/splashutils-1.5.4.4-sys-queue.patch8
-rw-r--r--media-gfx/splashutils/metadata.xml19
-rw-r--r--media-gfx/splashutils/splashutils-1.5.4.4-r7.ebuild239
-rw-r--r--media-gfx/springgraph/Manifest6
-rw-r--r--media-gfx/springgraph/metadata.xml14
-rw-r--r--media-gfx/springgraph/springgraph-88.ebuild37
-rw-r--r--media-gfx/structure-synth/Manifest5
-rw-r--r--media-gfx/structure-synth/metadata.xml11
-rw-r--r--media-gfx/structure-synth/structure-synth-1.5.0.ebuild38
-rw-r--r--media-gfx/svg2rlg/Manifest8
-rw-r--r--media-gfx/svg2rlg/files/svg2rlg-issue-3.patch19
-rw-r--r--media-gfx/svg2rlg/files/svg2rlg-issue-6.patch47
-rw-r--r--media-gfx/svg2rlg/files/svg2rlg-issue-7.patch16
-rw-r--r--media-gfx/svg2rlg/metadata.xml12
-rw-r--r--media-gfx/svg2rlg/svg2rlg-0.3.ebuild37
-rw-r--r--media-gfx/swftools/Manifest9
-rw-r--r--media-gfx/swftools/files/swftools-0.9.2_general.patch28
-rw-r--r--media-gfx/swftools/files/swftools-0.9.2_giflib.patch89
-rw-r--r--media-gfx/swftools/files/swftools-0.9.2_giflib5.patch26
-rw-r--r--media-gfx/swftools/files/swftools-0.9.2_nopdf.patch40
-rw-r--r--media-gfx/swftools/metadata.xml12
-rw-r--r--media-gfx/swftools/swftools-0.9.2-r1.ebuild47
-rw-r--r--media-gfx/sxiv/Manifest7
-rw-r--r--media-gfx/sxiv/metadata.xml11
-rw-r--r--media-gfx/sxiv/sxiv-1.3.2-r2.ebuild77
-rw-r--r--media-gfx/sxiv/sxiv-1.3.2.ebuild53
-rw-r--r--media-gfx/sxiv/sxiv-9999.ebuild66
-rw-r--r--media-gfx/symboleditor/Manifest5
-rw-r--r--media-gfx/symboleditor/metadata.xml8
-rw-r--r--media-gfx/symboleditor/symboleditor-2.0.0.ebuild46
-rw-r--r--media-gfx/synnefo/Manifest3
-rw-r--r--media-gfx/synnefo/metadata.xml11
-rw-r--r--media-gfx/synnefo/synnefo-1.1.0.ebuild33
-rw-r--r--media-gfx/tachyon/Manifest7
-rw-r--r--media-gfx/tachyon/files/tachyon-0.99_beta6-ldflags.patch13
-rw-r--r--media-gfx/tachyon/files/tachyon-0.99_beta6-shared.patch179
-rw-r--r--media-gfx/tachyon/metadata.xml11
-rw-r--r--media-gfx/tachyon/tachyon-0.99_beta6-r1.ebuild134
-rw-r--r--media-gfx/tgif/Manifest7
-rw-r--r--media-gfx/tgif/files/tgif-4.2.5-wformat-security.patch500
-rw-r--r--media-gfx/tgif/metadata.xml5
-rw-r--r--media-gfx/tgif/tgif-4.2.5-r1.ebuild46
-rw-r--r--media-gfx/tgif/tgif-4.2.5.ebuild45
-rw-r--r--media-gfx/tic98/Manifest8
-rw-r--r--media-gfx/tic98/files/tic98-1.01-gentoo.diff205
-rw-r--r--media-gfx/tic98/files/tic98-1.01-glibc-2.10.patch20
-rw-r--r--media-gfx/tic98/files/tic98-1.01-macos.patch26
-rw-r--r--media-gfx/tic98/metadata.xml8
-rw-r--r--media-gfx/tic98/tic98-1.01-r3.ebuild45
-rw-r--r--media-gfx/tif22pnm/Manifest7
-rw-r--r--media-gfx/tif22pnm/files/tif22pnm-0.14-gentoo.patch44
-rw-r--r--media-gfx/tif22pnm/files/tif22pnm-0.14-math.patch31
-rw-r--r--media-gfx/tif22pnm/metadata.xml11
-rw-r--r--media-gfx/tif22pnm/tif22pnm-0.14.ebuild29
-rw-r--r--media-gfx/tintii/Manifest5
-rw-r--r--media-gfx/tintii/metadata.xml8
-rw-r--r--media-gfx/tintii/tintii-2.10.0.ebuild24
-rw-r--r--media-gfx/transfig/Manifest21
-rw-r--r--media-gfx/transfig/files/transfig-3.2.5-solaris.patch12
-rw-r--r--media-gfx/transfig/files/transfig-3.2.5c-maxfontsize.patch44
-rw-r--r--media-gfx/transfig/files/transfig-3.2.5d-MAXWIDTH.patch19
-rw-r--r--media-gfx/transfig/files/transfig-3.2.5d-fig2mpdf-r1.patch1425
-rw-r--r--media-gfx/transfig/files/transfig-3.2.5d-leadspace.patch19
-rw-r--r--media-gfx/transfig/files/transfig-3.2.5d-libpng-1.5.patch39
-rw-r--r--media-gfx/transfig/files/transfig-3.2.5d-precision.patch45
-rw-r--r--media-gfx/transfig/files/transfig-3.2.5e-fprintf_format_warnings.patch55
-rw-r--r--media-gfx/transfig/files/transfig-3.2.5e-man-hyphen.patch530
-rw-r--r--media-gfx/transfig/files/transfig-3.2.5e-typos.patch25
-rw-r--r--media-gfx/transfig/files/transfig-ru_RU.CP1251.ps298
-rw-r--r--media-gfx/transfig/files/transfig-ru_RU.KOI8-R.ps298
-rw-r--r--media-gfx/transfig/files/transfig-uk_UA.KOI8-U.ps298
-rw-r--r--media-gfx/transfig/metadata.xml7
-rw-r--r--media-gfx/transfig/transfig-3.2.5d-r1.ebuild94
-rw-r--r--media-gfx/transfig/transfig-3.2.5e.ebuild93
-rw-r--r--media-gfx/tuxpaint-stamps/Manifest6
-rw-r--r--media-gfx/tuxpaint-stamps/files/tuxpaint-stamps-20090628-make-382.patch15
-rw-r--r--media-gfx/tuxpaint-stamps/metadata.xml14
-rw-r--r--media-gfx/tuxpaint-stamps/tuxpaint-stamps-20090628.ebuild32
-rw-r--r--media-gfx/tuxpaint/Manifest9
-rw-r--r--media-gfx/tuxpaint/files/tuxpaint-0.9.20-gentoo.patch136
-rw-r--r--media-gfx/tuxpaint/files/tuxpaint-0.9.21-LDFLAGS.patch22
-rw-r--r--media-gfx/tuxpaint/files/tuxpaint-0.9.21-libpng1.5.patch19
-rw-r--r--media-gfx/tuxpaint/files/tuxpaint-0.9.21-underlinking.patch17
-rw-r--r--media-gfx/tuxpaint/metadata.xml18
-rw-r--r--media-gfx/tuxpaint/tuxpaint-0.9.21-r2.ebuild82
-rw-r--r--media-gfx/ufraw/Manifest11
-rw-r--r--media-gfx/ufraw/files/ufraw-0.17-cfitsio-automagic.patch28
-rw-r--r--media-gfx/ufraw/files/ufraw-0.22-crashfix.patch15
-rw-r--r--media-gfx/ufraw/files/ufraw-0.22-drop_superfluous_abs.patch16
-rw-r--r--media-gfx/ufraw/files/ufraw-0.22-fix-unsigned-char.patch20
-rw-r--r--media-gfx/ufraw/files/ufraw-0.22-jasper-automagic.patch21
-rw-r--r--media-gfx/ufraw/metadata.xml16
-rw-r--r--media-gfx/ufraw/ufraw-0.22-r1.ebuild92
-rw-r--r--media-gfx/ufraw/ufraw-0.22.ebuild79
-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
-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
-rw-r--r--media-gfx/videorbits/Manifest10
-rw-r--r--media-gfx/videorbits/files/videorbits-2.201-libpng15.patch30
-rw-r--r--media-gfx/videorbits/files/videorbits-2.205-fix-buildsystem.patch19
-rw-r--r--media-gfx/videorbits/files/videorbits-2.205-qa-implicit-declarations.patch23
-rw-r--r--media-gfx/videorbits/metadata.xml8
-rw-r--r--media-gfx/videorbits/videorbits-2.201.ebuild39
-rw-r--r--media-gfx/videorbits/videorbits-2.205.ebuild36
-rw-r--r--media-gfx/viewer/Manifest5
-rw-r--r--media-gfx/viewer/metadata.xml5
-rw-r--r--media-gfx/viewer/viewer-0.8.0-r1.ebuild43
-rw-r--r--media-gfx/viewnior/Manifest5
-rw-r--r--media-gfx/viewnior/metadata.xml7
-rw-r--r--media-gfx/viewnior/viewnior-1.6.ebuild46
-rw-r--r--media-gfx/w3mimgfb/Manifest5
-rw-r--r--media-gfx/w3mimgfb/metadata.xml5
-rw-r--r--media-gfx/w3mimgfb/w3mimgfb-0.9.1.ebuild35
-rw-r--r--media-gfx/wally/Manifest6
-rw-r--r--media-gfx/wally/files/wally-2.2.0-disable_popup.patch9
-rw-r--r--media-gfx/wally/metadata.xml15
-rw-r--r--media-gfx/wally/wally-2.4.5.ebuild54
-rw-r--r--media-gfx/wings/Manifest9
-rw-r--r--media-gfx/wings/files/wings.sh4
-rw-r--r--media-gfx/wings/files/wings.sh-r14
-rw-r--r--media-gfx/wings/metadata.xml24
-rw-r--r--media-gfx/wings/wings-1.1.1.ebuild44
-rw-r--r--media-gfx/wings/wings-2.1.5.ebuild54
-rw-r--r--media-gfx/wkhtmltopdf/Manifest7
-rw-r--r--media-gfx/wkhtmltopdf/files/wkhtmltopdf-0.12.4-build.patch21
-rw-r--r--media-gfx/wkhtmltopdf/files/wkhtmltopdf-0.12.4-gcc6-warn.patch33
-rw-r--r--media-gfx/wkhtmltopdf/metadata.xml11
-rw-r--r--media-gfx/wkhtmltopdf/wkhtmltopdf-0.12.4-r1.ebuild50
-rw-r--r--media-gfx/xdot/Manifest9
-rw-r--r--media-gfx/xdot/metadata.xml14
-rw-r--r--media-gfx/xdot/xdot-0.5.ebuild28
-rw-r--r--media-gfx/xdot/xdot-0.6.ebuild28
-rw-r--r--media-gfx/xdot/xdot-0.7.ebuild28
-rw-r--r--media-gfx/xdot/xdot-9999.ebuild23
-rw-r--r--media-gfx/xfig/Manifest23
-rw-r--r--media-gfx/xfig/files/xfig-3.2.5b-app-defaults.patch24
-rw-r--r--media-gfx/xfig/files/xfig-3.2.5b-mkstemp.patch32
-rw-r--r--media-gfx/xfig/files/xfig-3.2.5b-network_images.patch371
-rw-r--r--media-gfx/xfig/files/xfig-3.2.5b-papersize_b1.patch27
-rw-r--r--media-gfx/xfig/files/xfig-3.2.5b-pdfimport_mediabox.patch37
-rw-r--r--media-gfx/xfig/files/xfig-3.2.5b-solaris.patch26
-rw-r--r--media-gfx/xfig/files/xfig-3.2.5b-urwfonts.patch79
-rw-r--r--media-gfx/xfig/files/xfig-3.2.5c-XAW3D1_5E_notlocal.patch70
-rw-r--r--media-gfx/xfig/files/xfig-3.2.5c-crash-on-exit.patch19
-rw-r--r--media-gfx/xfig/files/xfig-3.2.5c-darwin.patch26
-rw-r--r--media-gfx/xfig/files/xfig-3.2.5c-png16.patch18
-rw-r--r--media-gfx/xfig/files/xfig-3.2.5c-spelling.patch17
-rw-r--r--media-gfx/xfig/files/xfig-3.2.6a-app-defaults.patch14
-rw-r--r--media-gfx/xfig/files/xfig-3.2.6a-solaris.patch26
-rw-r--r--media-gfx/xfig/files/xfig-3.2.6a-urwfonts.patch79
-rw-r--r--media-gfx/xfig/metadata.xml7
-rw-r--r--media-gfx/xfig/xfig-3.2.5c-r1.ebuild111
-rw-r--r--media-gfx/xfig/xfig-3.2.5c.ebuild109
-rw-r--r--media-gfx/xfig/xfig-3.2.6a.ebuild47
-rw-r--r--media-gfx/xli/Manifest9
-rw-r--r--media-gfx/xli/files/Xli.ad2
-rw-r--r--media-gfx/xli/files/xli-1.17.0-fix-scale-zoom.patch61
-rw-r--r--media-gfx/xli/files/xli-1.17.0-libpng14.patch14
-rw-r--r--media-gfx/xli/files/xli-security-gentoo.diff199
-rw-r--r--media-gfx/xli/metadata.xml8
-rw-r--r--media-gfx/xli/xli-1.17.0-r5.ebuild75
-rw-r--r--media-gfx/xloadimage/Manifest14
-rw-r--r--media-gfx/xloadimage/files/xloadimage-4.1-bracket.patch13
-rw-r--r--media-gfx/xloadimage/files/xloadimage-4.1-endif.patch11
-rw-r--r--media-gfx/xloadimage/files/xloadimage-4.1-include-errno_h.patch13
-rw-r--r--media-gfx/xloadimage/files/xloadimage-4.1-ldflags_and_exit.patch23
-rw-r--r--media-gfx/xloadimage/files/xloadimage-4.1-libpng15.patch29
-rw-r--r--media-gfx/xloadimage/files/xloadimage-4.1-unaligned-access.patch51
-rw-r--r--media-gfx/xloadimage/files/xloadimage-4.1-zio-shell-meta-char.diff36
-rw-r--r--media-gfx/xloadimage/files/xloadimage-gentoo.patch258
-rw-r--r--media-gfx/xloadimage/metadata.xml8
-rw-r--r--media-gfx/xloadimage/xloadimage-4.1-r11.ebuild94
-rw-r--r--media-gfx/xpaint/Manifest13
-rw-r--r--media-gfx/xpaint/files/xpaint-2.9.10.2-QA2.patch67
-rw-r--r--media-gfx/xpaint/files/xpaint-2.9.10.2-tiff.patch37
-rw-r--r--media-gfx/xpaint/files/xpaint-2.9.10.3-Fix-build-with-clang.patch25
-rw-r--r--media-gfx/xpaint/files/xpaint-2.9.9.4-QA1.patch91
-rw-r--r--media-gfx/xpaint/files/xpaint-2.9.9.4-parallel-make.patch25
-rw-r--r--media-gfx/xpaint/files/xpaint-2.9.9.4-submake.patch29
-rw-r--r--media-gfx/xpaint/metadata.xml30
-rw-r--r--media-gfx/xpaint/xpaint-2.9.10.2.ebuild84
-rw-r--r--media-gfx/xpaint/xpaint-2.9.10.3.ebuild85
-rw-r--r--media-gfx/xsane/Manifest8
-rw-r--r--media-gfx/xsane/files/xsane-0.999-lcms2.patch372
-rw-r--r--media-gfx/xsane/metadata.xml15
-rw-r--r--media-gfx/xsane/xsane-0.999-r2.ebuild91
-rw-r--r--media-gfx/xv/Manifest15
-rw-r--r--media-gfx/xv/files/xv-3.10a-add-ldflags-20070520.patch27
-rw-r--r--media-gfx/xv/files/xv-3.10a-disable-jp2k-20070520.patch23
-rw-r--r--media-gfx/xv/files/xv-3.10a-fix-wait-20070520.patch40
-rw-r--r--media-gfx/xv/files/xv-3.10a-libpng15-r1.patch520
-rw-r--r--media-gfx/xv/files/xv-3.10a-osx-bsd-20070520.patch38
-rw-r--r--media-gfx/xv/files/xv-3.10a-vdcomp-osx-20070520.patch11
-rw-r--r--media-gfx/xv/files/xv-3.10a-wformat-security.patch19
-rw-r--r--media-gfx/xv/metadata.xml8
-rw-r--r--media-gfx/xv/xv-3.10a-r17.ebuild91
-rw-r--r--media-gfx/xv/xv-3.10a-r19.ebuild85
-rw-r--r--media-gfx/xzgv/Manifest6
-rw-r--r--media-gfx/xzgv/files/xzgv-0.9-asneeded-and-cflags.patch35
-rw-r--r--media-gfx/xzgv/metadata.xml11
-rw-r--r--media-gfx/xzgv/xzgv-0.9.1.ebuild33
-rw-r--r--media-gfx/yafaray/Manifest6
-rw-r--r--media-gfx/yafaray/metadata.xml15
-rw-r--r--media-gfx/yafaray/yafaray-0.1.1.ebuild84
-rw-r--r--media-gfx/zbar/Manifest13
-rw-r--r--media-gfx/zbar/files/zbar-0.10-errors.patch10
-rw-r--r--media-gfx/zbar/files/zbar-0.10-no-v4l1-check.patch74
-rw-r--r--media-gfx/zbar/files/zbar-0.10-python-crash.patch19
-rw-r--r--media-gfx/zbar/files/zbar-0.10-v4l2-uvcvideo.patch49
-rw-r--r--media-gfx/zbar/files/zbar-0.10_p20121015-ImageMagick-7.diff24
-rw-r--r--media-gfx/zbar/metadata.xml11
-rw-r--r--media-gfx/zbar/zbar-0.10-r6.ebuild72
-rw-r--r--media-gfx/zbar/zbar-0.10_p20121015-r1.ebuild100
-rw-r--r--media-gfx/zbar/zbar-0.10_p20121015-r2.ebuild114
-rw-r--r--media-gfx/zgv/Manifest8
-rw-r--r--media-gfx/zgv/files/zgv-5.9-Makefile-QA.patch56
-rw-r--r--media-gfx/zgv/files/zgv-5.9-cmyk-yccl-fix.diff64
-rw-r--r--media-gfx/zgv/files/zgv-5.9-libpng15.patch22
-rw-r--r--media-gfx/zgv/metadata.xml5
-rw-r--r--media-gfx/zgv/zgv-5.9.ebuild56
1454 files changed, 61569 insertions, 0 deletions
diff --git a/media-gfx/aaphoto/Manifest b/media-gfx/aaphoto/Manifest
new file mode 100644
index 000000000000..45cbb6a428b7
--- /dev/null
+++ b/media-gfx/aaphoto/Manifest
@@ -0,0 +1,7 @@
+DIST aaphoto-0.43.1.tar.gz 135261 SHA256 35a21d075d297872e35f52c9e92ab8e7ee403f5ecf4927634f22b56bb401b5ca SHA512 272a949051cd7efbb092d5d115100376ffe17012b6d02d68b5b8251b75ebab3449b2f5c889aac60a3790c20137ffc4ea69452751d04a8e65c0cb39af84e1034d WHIRLPOOL bebf332bf7eeb711c34740acc78c02a285aac291d49fdc13526e86f6f1ae01c6ccac142abbbf5ed5842cf349fc56758071034f8714734f5053eccf59682d020c
+DIST aaphoto_sources_0.45.tar.gz 134057 SHA256 d3a92824cee335516a560aa0e8198e67be1fa2a93aca3508167c142f33d9e20a SHA512 203343a51a64a0422f4af2f80523bb7cb90aa04c10b64bd3aa3091460cf5de1bb86d677c564809813703a2c65f15736bc8d4e3c9273b3f3a72ca7c89f3311599 WHIRLPOOL 107d48b9b5d7f915e1883622bc5553883ed9440f15507a857f0af2988962b505a6d2c67ca1b06cb080c438df59f9e4644d5ee7ff45b8a494c292e08b398cc12c
+EBUILD aaphoto-0.43.1.ebuild 892 SHA256 b9fabce00a06aac4aa24b68ebe96529908cd9000ddef9a0f2eb44bc9b39033a0 SHA512 9f8699ac45e05a1be21d28e7d0f9aca15cf13884f93932c0f1349153bcdb586295e4e41ed5b155e794eb2cb0402929a445e85734ddd692ea0cd1af7d32df6d69 WHIRLPOOL fe5bdd8747ca41fb1f4d167e299e27b0fb4dfcc20134f869547adb30c4f8221d941622d2745ddcc32f6b2e2cba88d0810800dc41047c511c0012f4b06b70f250
+EBUILD aaphoto-0.45.ebuild 773 SHA256 96beee464a23f2daabca22a65365714db0e12b980468cb974ee56663907f3cc7 SHA512 5b14a1f1b07417bade253fc21badc0b6eeeba6a0cfa20c1e2e91089f78a11cfd689039ab6c3c03b40d2fb91de0593db725fb69c846a735dec7fb829e672a5dbd WHIRLPOOL c03fb637488e59bcd52bc91cbb4f939632ec17bbadb1903b76237e5fdba1922deaf1b302420e68644fd85d5a3917ebe86612f20be96862aaec85b5ba47a5e12b
+MISC ChangeLog 2723 SHA256 fdd6df9ee21e6bf3be9452b3a90992b228718e58d1b7dc839539ac8b9a59451c SHA512 99b5b44d0c482f98333da010078142c60b311d3b3db613173b76579e1f7e1b8751c8f903ba08bf5ac903d052c66d7c3127232e7d4baecc63da2792566d58987a WHIRLPOOL ff5823af749aec20b39355c7f4b8d58e4adfdc969ac56c76cbdf0ab3370b9e6399dd8bf93f8ac385f68d398642d259c77a5a093da137265f7676f906e07ba702
+MISC ChangeLog-2015 580 SHA256 8a8d2fc3b7398608225ca88fac563a48c809bbed5c9b248e37dca7a1b083f1e6 SHA512 da5e4adfef4d3d7aa285752b6466cc18c9904cf81ede96e61ae41df656579a3196e6b18a1d4db8eb79677016866f5a127ce584d6e434cb6dbf6ffedb0327eaf6 WHIRLPOOL 212a47ef7350d97a6e840010a4a431df601b54f58026157cc75fb8808607a2b08e68cb4bffd2537e5fdfdc8bab68ee153789d9aa757b8d628381d9cd93511c7c
+MISC metadata.xml 502 SHA256 d47c88e1009a48c0b86887e09323f405a2b1511cf03a3aced89791ef08306529 SHA512 84b4ba57110fa35e756fe06e137b3c891cb3595b2c240533b147184e4a24fc3987edbe818a12d5a2313be06367dce9445b44e9ca73d20445d0c154b1aa344160 WHIRLPOOL cc4c5f618c7e5aa322260541f38dab79d8b7baad2449e1f26e7d4d7dbe09a2d7c9895c67637fdcc5f843fa1bb27924f4085bb1b658d4e72e42aa7246ac817b51
diff --git a/media-gfx/aaphoto/aaphoto-0.43.1.ebuild b/media-gfx/aaphoto/aaphoto-0.43.1.ebuild
new file mode 100644
index 000000000000..cb936bc0a1cb
--- /dev/null
+++ b/media-gfx/aaphoto/aaphoto-0.43.1.ebuild
@@ -0,0 +1,31 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+AUTOTOOLS_AUTORECONF=1
+AM_OPTS="--force-missing" # overwrite old 'missing' script
+inherit autotools-utils
+
+DESCRIPTION="Automatic color correction and resizing of photos"
+HOMEPAGE="http://log69.com/aaphoto.html https://github.com/log69/aaphoto"
+SRC_URI="https://github.com/log69/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="amd64 x86"
+
+RDEPEND="media-libs/jasper:=[jpeg]
+ media-libs/libpng:0=
+ sys-libs/zlib
+ virtual/jpeg:0"
+DEPEND="${RDEPEND}"
+
+pkg_setup() {
+ if [[ ${MERGE_TYPE} != binary ]]; then
+ [[ $(gcc-major-version) -lt 4 ]] || \
+ ( [[ $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 2 ]] ) \
+ && die "Sorry, but gcc 4.2 or higher is required"
+ tc-has-openmp || die "Please switch to an openmp compatible compiler"
+ fi
+}
diff --git a/media-gfx/aaphoto/aaphoto-0.45.ebuild b/media-gfx/aaphoto/aaphoto-0.45.ebuild
new file mode 100644
index 000000000000..4d3d37cab6f8
--- /dev/null
+++ b/media-gfx/aaphoto/aaphoto-0.45.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit toolchain-funcs
+
+DESCRIPTION="Automatic color correction and resizing of photos"
+HOMEPAGE="http://log69.com/aaphoto.html https://github.com/log69/aaphoto"
+SRC_URI="http://log69.com/downloads/${PN}_sources_${PV}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND="
+ media-libs/libpng:0=
+ sys-libs/zlib
+ virtual/jpeg:0"
+DEPEND="${RDEPEND}"
+
+pkg_setup() {
+ if [[ ${MERGE_TYPE} != binary ]]; then
+ [[ $(gcc-major-version) -lt 4 ]] || \
+ ( [[ $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 2 ]] ) \
+ && die "Sorry, but gcc 4.2 or higher is required"
+ tc-has-openmp || die "Please switch to an openmp compatible compiler"
+ fi
+}
diff --git a/media-gfx/aaphoto/metadata.xml b/media-gfx/aaphoto/metadata.xml
new file mode 100644
index 000000000000..e15c53d9908b
--- /dev/null
+++ b/media-gfx/aaphoto/metadata.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>erkiferenc@gmail.com</email>
+ <name>Ferenc Erki</name>
+ <description>Maintainer. Assign bugs to him</description>
+ </maintainer>
+ <maintainer type="project">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">log69/aaphoto</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/media-gfx/aewan/Manifest b/media-gfx/aewan/Manifest
new file mode 100644
index 000000000000..f18f14421cf3
--- /dev/null
+++ b/media-gfx/aewan/Manifest
@@ -0,0 +1,7 @@
+AUX aewan-1.0.01-debug_aewl-warnings.patch 195 SHA256 2aff2930e714a7fe3108fa55c4534828a3f9f5401e3c6694fec02a7ea11bb7a6 SHA512 2693a0a64f458ae93b6edaaa0c930ac8a09e3af8d193e4d84577eb0ef542c01e376ea6972e411f45e1599581d225952db7f02a4ff787018f9df1bab42bf9462e WHIRLPOOL b546a227afa188f204943179554ed2547e1b4631dce8643be3673503236b1de663f4fefd5b4f5c1357ef9bdb888ac6a92c66a7be763e8f577a4a55ca2a3f3d78
+AUX aewan-1.0.01-tinfo.patch 546 SHA256 326ef14befa17e8717b5805ac3623a76b3d76eb0f821a1ef126e010c7c11b5f1 SHA512 226780e4176490798f82e8f8184c0d8a44df8958c793925bbd7ccc87a4640e8ea1a09f47a7bdb90f7b94ef6abdda55d8ec4ad2623da26c4ac6cab11838e93277 WHIRLPOOL f1be2da7f316a3345abdf3c80d75853c95d49cded5d48e18e4c8dda3dcf20d101cbf62df175bd91c763c2de1f7f619913e1b23d5636d5d0fc35d07d152e97f2f
+DIST aewan-1.0.01.tar.gz 122880 SHA256 5266dec5e185e530b792522821c97dfa5f9e3892d0dca5e881d0c30ceac21817 SHA512 8c7e81ed3e2c4d0848e36ed60922c920471c7bc46a7127f529be3f5a9c3c66a6e0dff06bca7b5cb21eb0a93d03ba31fd4ef07fc48e2e39f2224956801fe322f3 WHIRLPOOL d432ad982507324a2467bc88b6158d1365e6d2abd50eacf52814ed9d16c5569f1e59cf08c9cd2f14ed80381c1e9fa71c1451145daf8f92677e9af235d3e12880
+EBUILD aewan-1.0.01-r1.ebuild 550 SHA256 211f076dabcaba10d3f6a3880988483cb3c1586f35dd8eaf4c6e48905710fe4a SHA512 ad3f0a5e22aa886a4db2b407e0f96c490ab9b725a462ad6fbbbe79c42d727cd4ffa46969383d7ada2744218c1232aae4551953c0f0187350dd06f48d3bcb5cd3 WHIRLPOOL a5468be6d15f9628da68b71a2f23816af6ad1f1479f38bede9adb9789112d0052b2869a614e074f4cfc723696dfab0e45d24ee561dd870b1a1281018a49a3701
+MISC ChangeLog 2261 SHA256 ceb3c9de034e52c4b0f6572d454e7426e0c674ccbb16401774fc9dc651dc27f2 SHA512 eca370eb459e31ae3ad28f30ec7775cf5919fd0bc3f1089dc07803b38ce64c4a48e875b3469ad4da2e26c4122fd010a84fb8bde4cfd7f58595ed8318ca727144 WHIRLPOOL 63b0bf20c3a1ab0a21665b726bc3560bb17a9abd2dd3ad688be513128e3464aa741f9a33626e19bc607ae7f91965fb78ac918085793f0e73deb767f29326659e
+MISC ChangeLog-2015 1797 SHA256 4d45eb37f64e8c748a7cd852e15c220b0cf3e75465c340bb827eee0f14565369 SHA512 1d3327f4e306b0116763b8032b2b2486dbbb75c9605d25dbe6cb0c7d6b4abf390d61fe2de2c12d72c3294c14477c8b73ed614ca507ccae0cef9871507850b148 WHIRLPOOL 26414e600db83197a90e2c06d31a5e5807a3bfb3d8e533e273c18b2c6d3a5d0f0acc86e4dc635ea939e062e2240c9b28dbc1ab590d85f4fe3a11067a4537c58d
+MISC metadata.xml 547 SHA256 a7d5c8df33305f6559a3465b558ea7cf68ace6e5d0030c7749588e29174c36bb SHA512 29ea4312f9f18274b6304c2ec632289746b35f3259af821bf89c0e6be5777fc5166db06d3d4456af07e2edcfbee6afb0b75a826f9d87c38bc873a6692532a8a2 WHIRLPOOL 94ae47b55218d285fc580487e8ef42a0d3f24e4969355b8997aef33f27879edf1abb867850162f0471810472db59e3922e433c945ff5b772dc77241eef83eadc
diff --git a/media-gfx/aewan/aewan-1.0.01-r1.ebuild b/media-gfx/aewan/aewan-1.0.01-r1.ebuild
new file mode 100644
index 000000000000..85aeae9dc11f
--- /dev/null
+++ b/media-gfx/aewan/aewan-1.0.01-r1.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit autotools eutils
+
+DESCRIPTION="A curses-based ascii-art editor"
+HOMEPAGE="http://aewan.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+
+DOCS=( CHANGELOG README TODO )
+
+DEPEND="sys-libs/zlib
+ >=sys-libs/ncurses-5.0"
+
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ epatch \
+ "${FILESDIR}/${P}-debug_aewl-warnings.patch" \
+ "${FILESDIR}/${P}-tinfo.patch"
+ eautoreconf
+}
diff --git a/media-gfx/aewan/files/aewan-1.0.01-debug_aewl-warnings.patch b/media-gfx/aewan/files/aewan-1.0.01-debug_aewl-warnings.patch
new file mode 100644
index 000000000000..4d96f487741f
--- /dev/null
+++ b/media-gfx/aewan/files/aewan-1.0.01-debug_aewl-warnings.patch
@@ -0,0 +1,10 @@
+--- aewan-1.0.01.orig/debug_aewl.c
++++ aewan-1.0.01/debug_aewl.c
+@@ -8,6 +8,7 @@
+ #include "aewl/label.h"
+
+ #include "keys.h"
++#include "filedlg.h"
+
+ #include <ncurses.h>
+ #include <stdbool.h>
diff --git a/media-gfx/aewan/files/aewan-1.0.01-tinfo.patch b/media-gfx/aewan/files/aewan-1.0.01-tinfo.patch
new file mode 100644
index 000000000000..b4edfd1b990c
--- /dev/null
+++ b/media-gfx/aewan/files/aewan-1.0.01-tinfo.patch
@@ -0,0 +1,15 @@
+--- a/configure.ac
++++ b/configure.ac
+@@ -13,9 +13,10 @@
+
+ # Checks for libraries.
+ AC_CHECK_LIB([ncurses], [initscr], [],
+- AC_MSG_ERROR([Can't find ncurses library. Install it first.]))
++ AC_MSG_ERROR([Cannot find ncurses library. Install it first.]))
++AC_SEARCH_LIBS([define_key], [tinfo])
+ AC_CHECK_LIB([z], [gzopen], [],
+- AC_MSG_ERROR([Can't find zlib library. Install it first.]))
++ AC_MSG_ERROR([Cannot find zlib library. Install it first.]))
+
+ # Checks for header files.
+ AC_HEADER_STDC
diff --git a/media-gfx/aewan/metadata.xml b/media-gfx/aewan/metadata.xml
new file mode 100644
index 000000000000..d9683f346d31
--- /dev/null
+++ b/media-gfx/aewan/metadata.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>zlogene@gentoo.org</email>
+ <name>Mikle Kolyada</name>
+ </maintainer>
+ <longdescription lang="en">
+Aewan is a multi-layered ascii-art/animation editor that produces both
+stand-alone cat-able art files and an easy-to-parse format for integration in
+your terminal applications.
+</longdescription>
+ <upstream>
+ <remote-id type="sourceforge">aewan</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/media-gfx/album/Manifest b/media-gfx/album/Manifest
new file mode 100644
index 000000000000..1d8995b74ca5
--- /dev/null
+++ b/media-gfx/album/Manifest
@@ -0,0 +1,8 @@
+DIST album-4.07.tar.gz 619238 SHA256 eed9a3abe206397afaf21f445178845aa38159f359dc0dffd3174dd8b26ae0e8 SHA512 dde914a8a0f0dd5896d069ad22c47db645f1acefc9c2d1a7047862185e3b96b0c4fb2c9681d8838eaf3de40b49082b9c06d848340aa92ecb8f398d9fd31273ba WHIRLPOOL 2fbcf5ce69a45b8b1005e2aa4642be17066eea74f5a9573ac074106595eedf1d69bc72135ae1939e80400c98afd4347964662d6380cf629046317dfd6bc1b4e0
+DIST album-4.13.tar.gz 667760 SHA256 b25c4d27546b710175f1a482f5222371fa6deefa011d31c68035f46b94f19b06 SHA512 c22bbc5ad154f35d50d28e5331911d0fd32c5e7f25b659e48274baa1ccc9e3e8b9f771a1bfdf39078c9e959c3fd84b3ccd8528f20f7a80baa7c59bc579579756 WHIRLPOOL 56ba2457a5e583e0228b563e0d1d9443a1ef0a1b83a7444ed31368814b3e21bc017d421a8f080a639f72dfb563ec062f132dc082d9dafd137a773c5883f2396f
+DIST data-4.05.tar.gz 6468036 SHA256 e1ee211d652f886494b84e957cd9a2f34b8a6b1fb3adad320484a62ce30debc6 SHA512 a7c577df6d10dc2db53fa6d469d2cf9c5115de99df47e79f31ecc0b009bd12e654e4ca7b9e6e78abe90a8a87d5f52ca9946a2d632e3f219d9bcb5ab7838ce42e WHIRLPOOL 00831d65b611652301310b743276cdd5434a9702c8a92a220267aa8ccf28783aaef7e9de57f8493f446e261c14eb7020ea4edd1a2dfdf4942d17f88c051b6800
+EBUILD album-4.07.ebuild 898 SHA256 99d16f37c5b8090a31dd5f713da2c7f357ff7817b80347470e8c5b9b06f2069a SHA512 ad9aae9a19a84cfe0afb7ad39950025e435abfc3d3ff7d09122801975ea70c436973ecab74ec2fe9bc4717ae216c062d17aefce86e6520db4ae5b4fae90a0964 WHIRLPOOL 2d442cbcdb5bc3ab62811f097da9ebb492bb5c36b6d4f0014fc6f41896fc61f57518f93461af6469b1bcbb2e300564240d765cfaaf71ad72d69155ff06ff6f91
+EBUILD album-4.13-r1.ebuild 904 SHA256 e786b75d95344ebd8f0ec8ed2adf5f5f75deb2f128171c25de85edfacb30bea8 SHA512 6473b1e92e7385804f2d438d18f66b8c0d64556149600c6657160aa7699a66408b8ea17362f089e332da16f1fd66bc2e1fc476d0ca38fb0960baad145a933aa3 WHIRLPOOL 642081a9ba7e0dce5845186124383350e0c2bcc5b771a645a959a549f50d42a7d329a99a1dbafd1d798758d6bfdabc713b524e769e6da38785cd61ce9e7637e5
+MISC ChangeLog 2466 SHA256 4dd607ff6f629eab005770178c2772bfdaccc5e63565c40281135d5e95ee9837 SHA512 8f2ad86697fab23e8d46c55a8ec02029715b217ed225604a606182abb90c5d22458af2fbce9813e82eae871a7420be5ddfc2da66100372273c7c730e11952d03 WHIRLPOOL 5c8763da27ad610f994245a2e952e81ae10352eca874923cd7bcda74cd81be12051b38ef0d6dbd96cede801af2bda09f4dc48f319d3571477503f5d9890cc67c
+MISC ChangeLog-2015 5250 SHA256 de9ba291d42fb907ca5cdf137f4b9d18dfe7031afdf6a6ce9c0d2ef6caa2d304 SHA512 1174ace5f5974f35bea1dd8418f4776118a65391f1d636d7832e900824c76fdb152146ed2f599bc31ba4b87132eafacff43e308a2bb4089b4fcc21bdcd2cc95d WHIRLPOOL d14616c4607273cce43458c188cc2ff9aea924ea226b5891b5a0fffb907e851deeea8591fce17650e1d77882076cbcc8cb2fbe291e6aaccda846e8021424a285
+MISC metadata.xml 374 SHA256 152531bc583f9d379e89d1c23cd8c348a0d922cac121bd36a38c4970fe2ac942 SHA512 b0e38d10966a2d98b1f8d8235e9f8c96c294037e503179531e795ffedcf8517ddcab991d692fc7dae7d64e354510a36e07671fb216b94a62b3d78c938667d530 WHIRLPOOL 3286b758eeafeac514095c68431890367f5211ddcd698b136a5447188d27bb5be184bf61ca092ac1c243c7e7c2b244205f45b04ba8f1ce2d708327ef8b59b421
diff --git a/media-gfx/album/album-4.07.ebuild b/media-gfx/album/album-4.07.ebuild
new file mode 100644
index 000000000000..ad085a0788f8
--- /dev/null
+++ b/media-gfx/album/album-4.07.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+
+DESCRIPTION="HTML photo album generator"
+HOMEPAGE="http://MarginalHacks.com/Hacks/album/"
+SRC_URI="http://marginalhacks.com/bin/album.versions/${P}.tar.gz
+ http://marginalhacks.com/bin/album.versions/data-4.05.tar.gz"
+
+LICENSE="marginalhacks"
+SLOT="0"
+KEYWORDS="amd64 ~ppc ~ppc64 x86"
+IUSE="doc ffmpeg plugins themes"
+
+DEPEND=""
+RDEPEND="dev-lang/perl
+ media-gfx/imagemagick
+ media-gfx/jhead
+ ffmpeg? ( virtual/ffmpeg )"
+
+src_install() {
+ dobin album
+ doman album.1
+ dodoc License.txt CHANGELOG
+ use doc && dohtml -r Docs/*
+
+ dodir /usr/share/album
+ insinto /usr/share/album
+ cd ..
+ doins -r lang
+ use themes && doins -r Themes
+ use plugins && doins -r plugins
+}
+
+pkg_postinst() {
+ elog "For some optional tools please browse:"
+ elog "http://MarginalHacks.com/Hacks/album/tools/"
+}
diff --git a/media-gfx/album/album-4.13-r1.ebuild b/media-gfx/album/album-4.13-r1.ebuild
new file mode 100644
index 000000000000..b837918881df
--- /dev/null
+++ b/media-gfx/album/album-4.13-r1.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+DESCRIPTION="HTML photo album generator"
+HOMEPAGE="http://MarginalHacks.com/Hacks/album/"
+SRC_URI="http://marginalhacks.com/bin/album.versions/${P}.tar.gz
+ http://marginalhacks.com/bin/album.versions/data-4.05.tar.gz"
+
+LICENSE="marginalhacks"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
+IUSE="doc ffmpeg plugins themes"
+
+DEPEND=""
+RDEPEND="dev-lang/perl
+ media-gfx/jhead
+ virtual/imagemagick-tools
+ ffmpeg? ( virtual/ffmpeg )"
+
+src_install() {
+ dobin album
+ doman album.1
+ dodoc License.txt CHANGELOG
+ use doc && dohtml -r Docs/*
+
+ dodir /usr/share/album
+ insinto /usr/share/album
+ cd ..
+ doins -r lang
+ use themes && doins -r Themes
+ use plugins && doins -r plugins
+}
+
+pkg_postinst() {
+ elog "For some optional tools please browse:"
+ elog "http://MarginalHacks.com/Hacks/album/tools/"
+}
diff --git a/media-gfx/album/metadata.xml b/media-gfx/album/metadata.xml
new file mode 100644
index 000000000000..dbfe02dd7ccd
--- /dev/null
+++ b/media-gfx/album/metadata.xml
@@ -0,0 +1,12 @@
+<?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>
+<use>
+ <flag name="plugins">Install optional plugins</flag>
+ <flag name="themes">Install optional themes</flag>
+</use>
+</pkgmetadata>
diff --git a/media-gfx/aoi/Manifest b/media-gfx/aoi/Manifest
new file mode 100644
index 000000000000..510a528c1cab
--- /dev/null
+++ b/media-gfx/aoi/Manifest
@@ -0,0 +1,9 @@
+DIST aoi25.zip 4529346 SHA256 4b2fef9afa9015fda0d6b7e8fa684d83081f0c83f184330c9432cbd5ccda5231 SHA512 3374c687426c2b62fa5fbf5f8440f2b3f299972968376e262f06da0eddf420876cf3f9f3c817c0ab7fc1f2f2804dee918752364f7fbff61e417042f4c868a524 WHIRLPOOL 085447fe38cf5152a7038f2386a580a40f60239a397c51f764cab4445e0717f4fc2215ea8d087d2b1ced8542b19a3022abfb1dadc2b7a25fdab6a9fd38681f68
+DIST aoi272.zip 4733701 SHA256 d5850d13f8fda8f7708676492c9bc9e3471889a7f19f28cae6f1e191de17325e SHA512 8dadbc23e795700b625d83f00bf15b79a923ed083de63e0f18579706baa8af9c3cbad3c08e0e7e5156190e257941f2499a3a49259295a52c586a54f19e4af182 WHIRLPOOL dc2594bd8fdd6e9b6da0d4d2976a54ebc68e1a711e3be7c270bcf98b1bdd20cb62e628ad46072b0d32aea37e05a72cdd41657959092938950625ff800955cad3
+DIST manual2.3.zip 11511867 SHA256 d517bf915c5382cec7ef98aff84f9d6eea60e137cbd7e4a83c9d2e02d7b56de3 SHA512 b8d11eba570f854d621622a6ef30e26194913b2069c4cd5bc00090521120dc9d1c20d4dae4ef8cf900dbaf9ef94f7afc2d88dc88c4dc6e2e0064db08e2567366 WHIRLPOOL 28cdf964a2b23c69b7cce37ae26a77e52299fc3e1614bc652c1ad138b1fb03f9e02f9835762edc0b76629094a99178a4e243c2e9ead841e8d191a31c43f949c8
+DIST manual2.6.zip 13402007 SHA256 b99d249af1e578ebaaa6e4270eed8062e4c9cd2f50e60cd2c26f646076d575e0 SHA512 ef8d1bce3cbd1f8f5a7f55f5d296f4cd3694af8aafc88579f3c514104ae2ded4f0c1bbe8379dfc91a865042ce459b336b4630718f6b293216d9577b3eb5765f1 WHIRLPOOL 136745ada40d1bdac9cd6f70945d1efdeb26321d8ac92bc50e776dcce7a1f4d3223cc61f10464ffcd44bbff5b9ba1f2ce2bdb866dd9f30b929007cb14ed951a9
+EBUILD aoi-2.5.ebuild 1081 SHA256 ffad3eb34eeca38d6392a4247eef44b01221c527b1d9d2fa672c0683aa2ac18d SHA512 b465d9439331e3df57004153816a39e8ffeb8b6f9f589d4307d7e4e160c27dd267aa5724ff7fcc6c0b4c4970993f535266c9053d7f91a2e8f04989d16d9c101b WHIRLPOOL ba7adbdcac9675817a5b8f7f75fc4ef2a1bd045d1e903d87580ecf10a4b56b39e43a0705c78283cd47cb696a106d843305dc96deb4f08965a7df656d37e5f8a4
+EBUILD aoi-2.7.2.ebuild 1142 SHA256 a289ef4fafc3c04ea57ae1db9f297e752748f19d72ba36b6c63b24376ca507c9 SHA512 6d6e94c97d17d27f604649c33856ae56d12e16f8f1ad014094fe74d8a122b88a38de69760d0db9c74c110ce3e470b9ce552f0983b3efded024f97090b34a08e3 WHIRLPOOL 88c04b19fb8cbaaeedc380c05a19c4249bb71f617982f7da0a3e9477eff32f2c02f8b68f4d18b6e0cd10f79fdff0eb6b8527a3abc753d903b6ef760e763c973d
+MISC ChangeLog 2620 SHA256 fbc66fbb3a0414a3e7520c4e1d02207aa1c509a2136b995a7db0be7843e90411 SHA512 dedd3375749a1c1080f64387667f675f4911d37c8a5b69995e6c4c3aa6787abceedae5d8ebd074d0026070de6dc9efd5fa740f34b71d2ccc36039d45b7217bc2 WHIRLPOOL c9e35efc119851d932188bd934c1b09869a272c6fb3f85a711f6b54e63adc65afde12283993de002326ab3033e4e21776dc5f499c54149026fbedcf083ba262a
+MISC ChangeLog-2015 3942 SHA256 0e3e08066e396f125c46eea5eb8e15e88c28296f368055e2c5f9facc3ff8d8ed SHA512 ee1dce11fc833ffe35db97a3dd0958b214a29d3b32e92b41191fc205ea69c49a15fdca347b7f7e21473755ec9f4a1842767ff76fd931cb932bd496bde94c664f WHIRLPOOL 353ba304fb747dfb860d383e5b35463f0a5571407ea737e83c6d059222b1e5abf45bedf4291cf76c7e3cd812ec25112537e82c7fc62f12bb0e677bd4ab088957
+MISC metadata.xml 332 SHA256 52308d8602d23d8c654c838ca0cc09e9131dc0f70bd589050de57bb149cfcb4c SHA512 794201c962be68e01de8bfb5ce9312702bccf64100de79f3d778237334d0a1099b0469cd892707b9d5f2a4c236dd9e4b49eadbfb7867cec550b779de40d0d742 WHIRLPOOL 3aeba19533d7e694f2b178d27c5e425135c171327898aa602f4803bc2e602483aa69c0adc262e46cbc6ecb07c84b7e8b869ad51a7fa51db4a81f757acd66ab5a
diff --git a/media-gfx/aoi/aoi-2.5.ebuild b/media-gfx/aoi/aoi-2.5.ebuild
new file mode 100644
index 000000000000..f5d4a06ed893
--- /dev/null
+++ b/media-gfx/aoi/aoi-2.5.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+inherit java-pkg-2 eutils
+
+MY_P="aoi25"
+MY_MANUAL_V="2.3"
+S="${WORKDIR}/ArtOfIllusion25"
+DESCRIPTION="A free, open-source 3D modelling and rendering studio"
+SRC_URI="mirror://sourceforge/aoi/${MY_P}.zip
+ doc? ( mirror://sourceforge/aoi/manual${MY_MANUAL_V}.zip )"
+HOMEPAGE="http://aoi.sourceforge.net/index"
+KEYWORDS="~amd64 x86"
+LICENSE="GPL-2"
+SLOT="0"
+DEPEND="app-arch/unzip"
+RDEPEND=">=virtual/jre-1.4"
+IUSE="doc"
+
+src_install() {
+ # documentation
+ dodoc HISTORY README
+ if use doc ; then
+ mv "${WORKDIR}"/AoI\ Manual/ "${WORKDIR}"/aoi_manual
+ dohtml -r "${WORKDIR}"/aoi_manual/
+ fi
+
+ # main app
+ java-pkg_dojar ArtOfIllusion.jar
+
+ # run script
+ java-pkg_dolauncher aoi \
+ --jar ArtOfIllusion.jar \
+ --java_args -Xmx128M
+
+ # plugins
+ mv Plugins "${D}"/usr/share/${PN}/lib
+
+ # scripts
+ mv Scripts "${D}"/usr/share/${PN}/lib
+
+ # icon
+ mv Icons/64x64.png Icons/aoi.png
+ doicon Icons/aoi.png
+
+ # desktop entry
+ make_desktop_entry aoi "Art of Illusion" aoi "Graphics"
+}
diff --git a/media-gfx/aoi/aoi-2.7.2.ebuild b/media-gfx/aoi/aoi-2.7.2.ebuild
new file mode 100644
index 000000000000..8ca8c4773ae4
--- /dev/null
+++ b/media-gfx/aoi/aoi-2.7.2.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+inherit java-pkg-2 eutils versionator
+
+MY_V=$(delete_all_version_separators)
+MY_P="aoi${MY_V}"
+MY_MANUAL_V="2.6"
+S="${WORKDIR}/ArtOfIllusion${MY_V}"
+DESCRIPTION="A free, open-source 3D modelling and rendering studio"
+SRC_URI="mirror://sourceforge/aoi/${MY_P}.zip
+ doc? ( mirror://sourceforge/aoi/manual${MY_MANUAL_V}.zip )"
+HOMEPAGE="http://aoi.sourceforge.net/index"
+KEYWORDS="~amd64 ~x86"
+LICENSE="GPL-2"
+SLOT="0"
+DEPEND="app-arch/unzip"
+RDEPEND=">=virtual/jre-1.5"
+IUSE="doc"
+
+src_install() {
+ # documentation
+ dodoc HISTORY README
+ if use doc ; then
+ mv "${WORKDIR}"/AoI\ Manual/ "${WORKDIR}"/aoi_manual
+ dohtml -r "${WORKDIR}"/aoi_manual/
+ fi
+
+ # main app
+ java-pkg_dojar ArtOfIllusion.jar
+
+ # run script
+ java-pkg_dolauncher aoi \
+ --jar ArtOfIllusion.jar \
+ --java_args -Xmx128M
+
+ # plugins
+ mv Plugins "${D}"/usr/share/${PN}/lib
+
+ # scripts
+ mv Scripts "${D}"/usr/share/${PN}/lib
+
+ # icon
+ mv Icons/64x64.png Icons/aoi.png
+ doicon Icons/aoi.png
+
+ # desktop entry
+ make_desktop_entry aoi "Art of Illusion" aoi "Graphics"
+}
diff --git a/media-gfx/aoi/metadata.xml b/media-gfx/aoi/metadata.xml
new file mode 100644
index 000000000000..b75d613c6085
--- /dev/null
+++ b/media-gfx/aoi/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="sourceforge">aoi</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/media-gfx/apng2gif/Manifest b/media-gfx/apng2gif/Manifest
new file mode 100644
index 000000000000..c205c739c566
--- /dev/null
+++ b/media-gfx/apng2gif/Manifest
@@ -0,0 +1,7 @@
+AUX apng2gif-1.8-makefile.patch 454 SHA256 d72bc502155b05c40403e5470eb666ff6426138b4765e96d55efcc90e4ac33d5 SHA512 4a95faf9a272f887e47981e7d426227f13c5c6a0212850b611a3d244a57fe93ed3da9e7cf57fa795d8743055ac92cbc9f3ecb7247884130a5afd553a52709847 WHIRLPOOL 03fb094b678b491114e2c9671664c6a340e0df2f3f4a48ade96b39c78c30f8897cb0d8d09e3c22c71fcb925107d87763861127602cf2b0ab80d5eb237e043231
+AUX apng2gif-1.8-zlib.patch 313 SHA256 4c812bfa779524b37684729c251a7f99b007b2e4d8a4977c12c15ae6189cbc8f SHA512 7b3501e6a9f0640aee5afbc3abaa13ee53829081bd800edd007b69af65132b3ee51e4c10c7b8bde748dafe944d478be8b3f0125ec8d3c6ff96836be1c92f00c2 WHIRLPOOL c08e36f185f1c1d943d7f654d3ffc152cbb6a41c1b38b9a64635696ecf447d2734953e50d5058815e85cbeaf43c5af2fff6fb3dc375bf4b0e5d6b9bb74e5bf62
+DIST apng2gif-1.8-src.zip 476207 SHA256 9a07e386017dc696573cd7bc7b46b2575c06da0bc68c3c4f1c24a4b39cdedd4d SHA512 54fee0bf1e5448531298a816562a611cb5f2f661d40ade622e2d24e58a30de96fa69254ee891c5329e8b065c999b95620215d6e1ae276f0c596ffe69b0b31cda WHIRLPOOL 202e314d0ceb731c669349cef3217c7ce520436481694e889beda0f674c624f5c39a6e97df8f8d288259643939b719ff21bcb689c28c6bf6d771adf305c829b5
+EBUILD apng2gif-1.8.ebuild 651 SHA256 fef6ce66fd05fc35766e70f1fe88da4a25d626999d36b7bc527633749367a674 SHA512 7fcb961abee160a1f009640ff4947316936f42ed54262aa731de1873cff46884b22b396f6c497b1ed408342fc5c98fa3e315073fd00ad0667e6860f2b367ee0f WHIRLPOOL 19a558148010724ca0589026e1f5a5dc4b725e8be914ae143ce2bd3f342174ad2ac096aaa2c22196585107d94d6f399e6b31f4a11ec71a505743f2b2ba0a6b16
+MISC ChangeLog 2989 SHA256 19e70bfb8426e0e8dec55da3f418bdc59632111c2981497faf55138590cd6633 SHA512 b686ec1255c9b4f452c58d16b7f428d896a70907b1a16b9c47dacb644474c71097cfbcb2376d401f1149675bcf0ea7279615ceba393745aac36d7ffa25d6258f WHIRLPOOL 9edbcc53fea79dc8c606cc49b66b6017f63f0a43704f7c687a3a4dd25aec4bce6e40d3bb2facbe26f646a383e17222cd17454a496cbeb5a815c69b1ce252c3e7
+MISC ChangeLog-2015 1185 SHA256 966eb897873ec065615eb996995124f2ebaf5a604a8b915b717432dab1509da9 SHA512 d52f4ecc25d5ea5a1bdf9d8361a7b971c477566c82166b57e9a5d9010ffbdb7e4ae17076c693f735aceeb19dcb3d4514a22ae29f96352892c3732634aea7f83d WHIRLPOOL 776a7c66fa5d37699bb7f78020e3b120b03079e6b3eb23188a7b0b2a9cdbcfedde8fd26d4f1073f05dbe15b5a97c8d0c09a166581afd5689794af06fdab6e27e
+MISC metadata.xml 337 SHA256 ca80b907d462bd50af07275b03be50e17d7cbc8d5c4500707bae32e2fa736df7 SHA512 1d3615284e3ad59728df120923dae4e8c7ab1e97968a192495ff781dda33ee98078eeb70cc40dba5901330c42993b4dd025ce5e8a02231e48e0cd81991c2975e WHIRLPOOL 45fdeaba3de632d221a6d5a4bd2e76093b1680afe22e86a310d2999a9188443de396d4d52092c32bc5fbd47ec6e511e1cdbce8ce66f23a70adf352d56c63fbba
diff --git a/media-gfx/apng2gif/apng2gif-1.8.ebuild b/media-gfx/apng2gif/apng2gif-1.8.ebuild
new file mode 100644
index 000000000000..83fb20c4a942
--- /dev/null
+++ b/media-gfx/apng2gif/apng2gif-1.8.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit toolchain-funcs
+
+DESCRIPTION="create a GIF from an APNG"
+HOMEPAGE="https://sourceforge.net/projects/apng2gif/"
+SRC_URI="mirror://sourceforge/${PN}/${PV}/${P}-src.zip"
+
+LICENSE="ZLIB"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="media-libs/libpng:0="
+DEPEND="${RDEPEND}
+ app-arch/unzip"
+
+S=${WORKDIR}
+
+PATCHES=(
+ "${FILESDIR}"/${P}-makefile.patch
+ "${FILESDIR}"/${P}-zlib.patch
+)
+
+src_prepare() {
+ default
+
+ # remove bundled libs
+ rm -r libpng zlib || die
+
+ tc-export CC
+}
+
+src_install() {
+ dobin ${PN}
+ dodoc readme.txt
+}
diff --git a/media-gfx/apng2gif/files/apng2gif-1.8-makefile.patch b/media-gfx/apng2gif/files/apng2gif-1.8-makefile.patch
new file mode 100644
index 000000000000..c0e778cf1de7
--- /dev/null
+++ b/media-gfx/apng2gif/files/apng2gif-1.8-makefile.patch
@@ -0,0 +1,18 @@
+--- apng2gif-1.8-src/Makefile
++++ apng2gif-1.8-src/Makefile
+@@ -1,11 +1,10 @@
+ PACKAGE = apng2gif
+-CC = gcc
+-CFLAGS = -Wall -pedantic
+-CFLAGS_OPT = -O2
+-LIBS = -lstdc++ -lm -lpng -lz
++CC ?= gcc
++CFLAGS += -Wall -pedantic
++LIBS = -lstdc++ -lm -lpng
+
+ all :
+- $(CC) $(CFLAGS) $(CFLAGS_OPT) -o $(PACKAGE) $(PACKAGE).cpp -s $(LIBS)
++ $(CC) $(CFLAGS) $(LDFLAGS) -o $(PACKAGE) $(PACKAGE).cpp $(LIBS)
+
+ .PHONY : clean
+
diff --git a/media-gfx/apng2gif/files/apng2gif-1.8-zlib.patch b/media-gfx/apng2gif/files/apng2gif-1.8-zlib.patch
new file mode 100644
index 000000000000..47d7e77cb89f
--- /dev/null
+++ b/media-gfx/apng2gif/files/apng2gif-1.8-zlib.patch
@@ -0,0 +1,12 @@
+Drop unused zlib header.
+
+--- apng2gif-1.8-src/apng2gif.cpp
++++ apng2gif-1.8-src/apng2gif.cpp
+@@ -33,7 +33,6 @@
+ #include <string.h>
+ #include <vector>
+ #include "png.h" /* original (unpatched) libpng is ok */
+-#include "zlib.h"
+
+ #define notabc(c) ((c) < 65 || (c) > 122 || ((c) > 90 && (c) < 97))
+
diff --git a/media-gfx/apng2gif/metadata.xml b/media-gfx/apng2gif/metadata.xml
new file mode 100644
index 000000000000..3310d1f94177
--- /dev/null
+++ b/media-gfx/apng2gif/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="sourceforge">apng2gif</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/media-gfx/apngasm/Manifest b/media-gfx/apngasm/Manifest
new file mode 100644
index 000000000000..d5cf0fcb1cfb
--- /dev/null
+++ b/media-gfx/apngasm/Manifest
@@ -0,0 +1,9 @@
+AUX apngasm-2.7-string_h.patch 411 SHA256 fa86aadb490f26752fead9781cc88a7b461e91dd3019d6c2e002f5b59265943d SHA512 00605660094af0c8f7bbd96a94e02b0ed505f0e2d8bf6643fc6d6d5f92e40411f409630c1d0c538bf874dfd31ccfea2363fea7640edadde5fe2c4d9e15e3e524 WHIRLPOOL 206de9b93e7ad2dc22b72e5447703aaacee9cfb2fadb62dcb44e5d2790523d2f7d5f29b84cdd0e47d91314be23b2fc9e63830360d56d0d535bf00d63e1dcc3f0
+AUX apngasm-2.91-makefile.patch 585 SHA256 63a1f4b30ab5d9421485848ebee7234a88881bb712df171410f0341b5d364f7d SHA512 f3b9b89ee3071c01bdc08f8a09864956d258abf14aac147a754f6259297ce8a479a067ee5d37225b7dee0f4f419bef53e127266ae770063cdafa478c78d6eda2 WHIRLPOOL 0466d91788dce619285ec2f09339c2d149f4f250f370d44f5f33b64f4e80b966f723d3ff4a647cb3637d1e9fcdf496ebc054d5eaffb926e57b2a9d67865fa388
+DIST apngasm-2.7-src.zip 11448 SHA256 af42569666cab268a20a0754191396c9d48f4e01d6e8f93c3ae1164c3c821cc3 SHA512 28ec70a4ac02021ff85390ad6863aaca5451937209345128ecd5baf76bef9495168c3c4ee5d823afbeb569ca673328673a81b807e7985c3d5d1843c056af7810 WHIRLPOOL e2cd3c937af8010672cb3866903df084c52e37e7c05c0933f0e7bf2be69ee74a78c5367c463a07d2314e5d416c3616e6e218060298f349be0eab944d4e6af2eb
+DIST apngasm-2.91-src.zip 597267 SHA256 4534b82a7339a0fa250f13445ad6e83fe878db5f3223b8276339581e7344a987 SHA512 2415389a989f7a7ff7f3e1328f7920c7515c9a492c89ef216ff53db68fe2f1a674ff60d5f4bfd5a8c710f625456557ae7d5b25f486ac826e3113976cd9fc11dc WHIRLPOOL d43671c6324fac64ae3633f337cf470bf9e69bee1c25af7e5fa855d04028c2251303a15b5f497be3ce8b1b5e33d7fd918d05e4f7ae6cfebd8f3f2bb1d8bb91cd
+EBUILD apngasm-2.7.ebuild 716 SHA256 4bf2c5e9737afaa6d3f5f388b98472a7ffa58b7287434371704cc634cf687928 SHA512 52952bcdc1e070979037174b0477ec6f51c661368f436282eb3556db4a10b63c593e607b284d52ad7ba29ef6732d8b6714a56ed4b2ee310c4b728b6698d09df1 WHIRLPOOL 27b0d729bd731956700c48681634457c91b5bf73fe4be88927aa504916c404b11db8b9e1d685d93c2f6c4f2e716f6365fdc0887af9d51cb60797c84a6f57b62e
+EBUILD apngasm-2.91.ebuild 979 SHA256 0e998d53c76a695251de20b456a90812e2f51e3925429f7238a7b2738683742b SHA512 d67116f62f8a94d5e1cdebd2a44a3690925f532de6cae2d512ae952c5258ef3088070d75a55808f9aab92c30fe6adca79e8fd2ba777e74db1ba491fc44d2fbfc WHIRLPOOL c245744e3c1e1ff8ab82aaf115f6842fdc4fd45b80670cbde704dde36e40ffce5fef0e6e80a20dc6e42470f1b0a1b3993b49351dab52947eafb6bae5006fce9c
+MISC ChangeLog 2709 SHA256 84b1ce59df2e5cf868014e138d102c673de7602bde24ac08cb1a5eccd77220da SHA512 904a9662ced6a8e9822984e7f21563a68be34e51ac5e36d9c85cefb9b597b4b785e456374046b8dc287e17bba8b3c416c00cdef63c1514314e76b6db6c2b4245 WHIRLPOOL 3327b25e550bda13b338d360470bec521470ba7428c569d2b8ccdcaa173ada8e4c879d805703074e3a82f22b586350d8bfc6aa686c1cb71729ed2eaa1229fb9a
+MISC ChangeLog-2015 1633 SHA256 2f5915e2aac1b53856c1d482754fde15a8ac244b31ca1431640101d4d3d06a7d SHA512 b27a688d9893326ae2257c6edd3d5bd08f5caa02ed3199aea9d6710ee8981e080bc07db608ca1ac4b4c2c1b1c31e847755f20e98c61733339a39b40c2a936c5e WHIRLPOOL ab50cf1b141bef9e3fc4aa1db43453931b30074d5bb46d19feaa32760f92f93e0fda8e796f1421bacd674c51204e511759b5721530f9c3344eb7694b93c325a2
+MISC metadata.xml 479 SHA256 a077a3f7c3cfff89a3012a58e238e9b0cefe4fcc624b5e96790fd8b0552c5292 SHA512 a630460ee809f9bb4e7ac231cf5d53b9b560926eb515d9a698a1e2d5f6f4318f771cf77e3f47f256b7458a9b1dba67bbc654cf6f9d4bd9e194490b2cd32c8e31 WHIRLPOOL 7edf90fa50f614fe3c28f2d880be993de5ab2e47c0eeb9a3e00d4c96293f7515a8fb7c990ed27b5419795ed033fb5a89e0b7c36a385bc7247b7c121a9d38ad68
diff --git a/media-gfx/apngasm/apngasm-2.7.ebuild b/media-gfx/apngasm/apngasm-2.7.ebuild
new file mode 100644
index 000000000000..49660f693fc4
--- /dev/null
+++ b/media-gfx/apngasm/apngasm-2.7.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+inherit eutils toolchain-funcs
+
+DESCRIPTION="create an APNG from multiple PNG files"
+HOMEPAGE="https://sourceforge.net/projects/apngasm/"
+SRC_URI="mirror://sourceforge/${PN}/${PV}/${P}-src.zip"
+
+LICENSE="ZLIB"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+RDEPEND="media-libs/libpng:0=[apng]
+ sys-libs/zlib:="
+DEPEND="${RDEPEND}
+ app-arch/unzip
+ virtual/pkgconfig"
+
+S=${WORKDIR}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-string_h.patch #465780
+}
+
+src_compile() {
+ emake CC="$(tc-getCC)" LDLIBS="$($(tc-getPKG_CONFIG) --libs libpng --libs zlib)" ${PN}
+}
+
+src_install() {
+ dobin ${PN}
+ dodoc readme.txt
+}
diff --git a/media-gfx/apngasm/apngasm-2.91.ebuild b/media-gfx/apngasm/apngasm-2.91.ebuild
new file mode 100644
index 000000000000..e5d8debea7bf
--- /dev/null
+++ b/media-gfx/apngasm/apngasm-2.91.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit flag-o-matic toolchain-funcs
+
+DESCRIPTION="create an APNG from multiple PNG files"
+HOMEPAGE="https://sourceforge.net/projects/apngasm/"
+SRC_URI="mirror://sourceforge/${PN}/${PV}/${P}-src.zip"
+
+LICENSE="ZLIB 7z? ( LGPL-2.1 )"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="7z zopfli"
+
+RDEPEND="media-libs/libpng:0=[apng]
+ sys-libs/zlib
+ zopfli? ( app-arch/zopfli:= )"
+DEPEND="${RDEPEND}
+ app-arch/unzip"
+
+S=${WORKDIR}
+
+PATCHES=( "${FILESDIR}"/${P}-makefile.patch )
+
+src_prepare() {
+ default
+
+ # remove bundled libs
+ rm -r zopfli zlib libpng || die
+
+ if use 7z; then
+ append-cflags -DFEATURE_7ZIP
+ else
+ sed -i '/^SRC_DIRS\s\+=/s/7z//' Makefile || die
+ fi
+
+ if use zopfli; then
+ append-cflags -DFEATURE_ZOPFLI
+ sed -i '/^LIBS\s\+=/s/$/ -lzopfli/' Makefile || die
+ fi
+}
+
+src_compile() {
+ emake CC="$(tc-getCC)"
+}
+
+src_install() {
+ dobin ${PN}
+ dodoc readme.txt
+}
diff --git a/media-gfx/apngasm/files/apngasm-2.7-string_h.patch b/media-gfx/apngasm/files/apngasm-2.7-string_h.patch
new file mode 100644
index 000000000000..303e832b37c5
--- /dev/null
+++ b/media-gfx/apngasm/files/apngasm-2.7-string_h.patch
@@ -0,0 +1,16 @@
+http://bugs.gentoo.org/465780
+
+Same for all of memcpy(), memset(), strlen() and strcpy():
+
+apngasm.c:141:11: warning: incompatible implicit declaration of built-in function ‘memcpy’ [enabled by default]
+
+--- apngasm.c
++++ apngasm.c
+@@ -29,6 +29,7 @@
+ */
+ #include <stdio.h>
+ #include <stdlib.h>
++#include <string.h>
+ #include "png.h" /* original (unpatched) libpng is ok */
+ #include "zlib.h"
+
diff --git a/media-gfx/apngasm/files/apngasm-2.91-makefile.patch b/media-gfx/apngasm/files/apngasm-2.91-makefile.patch
new file mode 100644
index 000000000000..b9fb9c20ee89
--- /dev/null
+++ b/media-gfx/apngasm/files/apngasm-2.91-makefile.patch
@@ -0,0 +1,22 @@
+--- apngasm-2.91-src/Makefile
++++ apngasm-2.91-src/Makefile
+@@ -1,8 +1,7 @@
+ PACKAGE = apngasm
+ CC = gcc
+-SRC_DIRS = . 7z zopfli
+-CFLAGS = -Wall -pedantic -DFEATURE_7ZIP -DFEATURE_ZOPFLI
+-CFLAGS_OPT = -O2
++SRC_DIRS = . 7z
++CFLAGS += -Wall -pedantic
+ CFLAGS_7Z = -Wno-sign-compare -Wno-reorder -Wno-maybe-uninitialized -Wno-parentheses
+ LIBS = -lstdc++ -lm -lpng -lz
+
+@@ -16,7 +15,7 @@
+ all : $(PACKAGE)
+
+ $(PACKAGE) : objdirs $(OBJECTS)
+- $(CC) -o $@ $(OBJECTS) -s $(LIBS)
++ $(CC) -o $@ $(OBJECTS) $(LDFLAGS) $(LIBS)
+
+ objdirs :
+ mkdir -p $(OBJ_DIRS)
diff --git a/media-gfx/apngasm/metadata.xml b/media-gfx/apngasm/metadata.xml
new file mode 100644
index 000000000000..d5affd1eebaf
--- /dev/null
+++ b/media-gfx/apngasm/metadata.xml
@@ -0,0 +1,15 @@
+<?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>
+ <use>
+ <flag name="7z">Enable support for 7zip compression</flag>
+ <flag name="zopfli">Enable support for Zopfli compression</flag>
+ </use>
+ <upstream>
+ <remote-id type="sourceforge">apngasm</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/media-gfx/apngdis/Manifest b/media-gfx/apngdis/Manifest
new file mode 100644
index 000000000000..07d7d88480f2
--- /dev/null
+++ b/media-gfx/apngdis/Manifest
@@ -0,0 +1,7 @@
+AUX apngdis-2.9-makefile.patch 451 SHA256 b45e20fbf836f32df0721f20ab516e8240c03a1af8312f2cb0fe1786ed3531ea SHA512 0b65a55d08e536b9783c2c9a427df9c8f89cbc1acd2d7dd688a409c0b71a7fb1d4c6d6664a6c996b24ce489ef138565f667ce345fa074a2bfd06dc6260ecce16 WHIRLPOOL b12b28dc69117b85bae41623cd6e4734a3de3b8e171bd3f2f957c30a44bbbff1b32a1f93b8d4b6e46b749103e71f09f2b1bf7d027bcdd2e48ac50b420018d21b
+AUX apngdis-2.9-zlib.patch 309 SHA256 65b0c8f5004058c6cae44f3f3053359c5bb563dea7b99c46a204a80a603ca211 SHA512 e3c3df7e29cab787302d8afada3d8a5509b445ba136aa3b4ac08e15dc9148bcab2b22d4871203461cd67f21aa90b46c17507241c94631fd3701fb00b659671e0 WHIRLPOOL f419ba39264daf050d04105941dcff60a2cef7dab4823cb0ee9a567f18ce846abb89e80015e3dc6e8158adcd3417fa2394650a7332394c33c909e2d9b19f87b8
+DIST apngdis-2.9-src.zip 470989 SHA256 9d20082e770ab94b28ff5b989c5d8b7e723a23e32bc804e1638953bf5ba943f2 SHA512 4bcce5066c37ea5e4db0bfaf2f6a81e4d3ba7f5b6c952f598facff27f84cc1a3af778f4db096119cb9f4aa57c0193c90acf7bed28f283b6930f5b3121dd9cf32 WHIRLPOOL 717aab043e5c750fc1011d9ab73430157aef2dd1e0aa6cb0a464c70f57e951052304fa0161325d0207a137e4df9c18bcc34b3190d7302cce898d7bdf07565a73
+EBUILD apngdis-2.9.ebuild 648 SHA256 28207a6bfd7b900222144979287be0913c8e18c7109af1e62a0502aee5a7589e SHA512 879c2f669557667d30475e7901c6469c5eb1e7666d8ff86ae98b5c414995cafc25ad50ad68c5707bf84354d4e44227570d73e6404607565ee50960cbcb3d5625 WHIRLPOOL 432141c81e575d689a312ba402e40781c6c06fc25628cf04f037d6be0d5ed2df739dd283f3eda727440dc2be6c8c4cd4ce0556f9e3d91beea0399d36d39b3a81
+MISC ChangeLog 2778 SHA256 a9aeaba9cd9f08cb5464a0857cf3bc13d1ddd1de5a42301d8157b4c07c7d5992 SHA512 ad5388bdd7a91c5ba3e25275e0c9888b1521c160e1dd9ae6d7e450ec961f304c5cd551f2f5caf7eb42052e071158058182960d177d9c9c108f02cffac09905c4 WHIRLPOOL 0150ba02e38948a56cff7d5962baf394d7a8588725b2b5e4a53121452a161ea8d0ac90d958670fd6bcdd5e74d3693501982506312a797000d7b3a5ccd1099196
+MISC ChangeLog-2015 1328 SHA256 29afab85e5bcab6c78ebbda9da83fbaa99b619d4474a32f376f80d1973ce19db SHA512 5075cc929a5d69153c7273c207ce3f057aa46117a4d973d6d536e2f4745aa21fb57a09f2b197ee67814ebf6f8860bb6259aed2ea612f0561927b6e943f7f0022 WHIRLPOOL c2972231a6a1d79cae0999968cf2ee57f67068f03b329c1a68d33fe180672b4cb533dba8549f45c327dfb93ec7a314ec1fd46607e329e9d3f6a142d8e964efd8
+MISC metadata.xml 336 SHA256 6fba501220d8676e03e04c8f6b3f0bf7a060e60ad872a28ca692cf47ccde66ac SHA512 9c81f32fdffb922866ffb1b28b334fc11a4958bfcd400d3cd5e43ddc309b61e12e1fcdff79c2997de5f3e158350abfdb50747eaba363b5d194b113d826c4c51b WHIRLPOOL 6fdecdb0014d817747fc259cc51125389aa362c984a8068f560b7998bbfef65056c4b5a914e6f188e7fcbf8a1c620252aad048bc2efe7399fcfba12468c8213b
diff --git a/media-gfx/apngdis/apngdis-2.9.ebuild b/media-gfx/apngdis/apngdis-2.9.ebuild
new file mode 100644
index 000000000000..dd459b169f4c
--- /dev/null
+++ b/media-gfx/apngdis/apngdis-2.9.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit toolchain-funcs
+
+DESCRIPTION="extract PNG frames from an APNG"
+HOMEPAGE="https://sourceforge.net/projects/apngdis/"
+SRC_URI="mirror://sourceforge/${PN}/${PV}/${P}-src.zip"
+
+LICENSE="ZLIB"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND="media-libs/libpng:0="
+DEPEND="${RDEPEND}
+ app-arch/unzip"
+
+S=${WORKDIR}
+
+PATCHES=(
+ "${FILESDIR}"/${P}-makefile.patch
+ "${FILESDIR}"/${P}-zlib.patch
+)
+
+src_prepare() {
+ default
+
+ # remove bundled libs
+ rm -r libpng zlib || die
+
+ tc-export CC
+}
+
+src_install() {
+ dobin ${PN}
+ dodoc readme.txt
+}
diff --git a/media-gfx/apngdis/files/apngdis-2.9-makefile.patch b/media-gfx/apngdis/files/apngdis-2.9-makefile.patch
new file mode 100644
index 000000000000..08e6b02e4fde
--- /dev/null
+++ b/media-gfx/apngdis/files/apngdis-2.9-makefile.patch
@@ -0,0 +1,18 @@
+--- apngdis-2.9-src/Makefile
++++ apngdis-2.9-src/Makefile
+@@ -1,11 +1,10 @@
+ PACKAGE = apngdis
+-CC = gcc
+-CFLAGS = -Wall -pedantic
+-CFLAGS_OPT = -O2
+-LIBS = -lstdc++ -lm -lpng -lz
++CC ?= gcc
++CFLAGS += -Wall -pedantic
++LIBS = -lstdc++ -lm -lpng
+
+ all :
+- $(CC) $(CFLAGS) $(CFLAGS_OPT) -o $(PACKAGE) $(PACKAGE).cpp -s $(LIBS)
++ $(CC) $(CFLAGS) $(LDFLAGS) -o $(PACKAGE) $(PACKAGE).cpp $(LIBS)
+
+ .PHONY : clean
+
diff --git a/media-gfx/apngdis/files/apngdis-2.9-zlib.patch b/media-gfx/apngdis/files/apngdis-2.9-zlib.patch
new file mode 100644
index 000000000000..d9ce01007cfb
--- /dev/null
+++ b/media-gfx/apngdis/files/apngdis-2.9-zlib.patch
@@ -0,0 +1,12 @@
+Drop unused zlib header.
+
+--- apngdis-2.9-src/apngdis.cpp
++++ apngdis-2.9-src/apngdis.cpp
+@@ -32,7 +32,6 @@
+ #include <string.h>
+ #include <vector>
+ #include "png.h" /* original (unpatched) libpng is ok */
+-#include "zlib.h"
+
+ #define notabc(c) ((c) < 65 || (c) > 122 || ((c) > 90 && (c) < 97))
+
diff --git a/media-gfx/apngdis/metadata.xml b/media-gfx/apngdis/metadata.xml
new file mode 100644
index 000000000000..8fc352524266
--- /dev/null
+++ b/media-gfx/apngdis/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="sourceforge">apngdis</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/media-gfx/apngopt/Manifest b/media-gfx/apngopt/Manifest
new file mode 100644
index 000000000000..f50502e2a3bc
--- /dev/null
+++ b/media-gfx/apngopt/Manifest
@@ -0,0 +1,6 @@
+AUX apngopt-1.4-makefile.patch 714 SHA256 e968457c7fb941c78b22860775049557faab78e6a91f25e77c1afe24d5673bef SHA512 5a6366bc4810295810bd1bd3f0a709f0e78d4d7ac8f3e3ca0b10d8aeb5fd89115a41c835a7d6c2ae878b68ca7dccc5ce1cea96f5e6b4e75c191357e4d4e6a0f1 WHIRLPOOL 90541bcd8fd31b2fbd5281c3b5f8b4692a9b9c297f8e8792807a4f3667fa5cbf6c79b37a48c5769e1604fbedd12885830432aee56c1400c08f05e40245c4eeb2
+DIST apngopt-1.4-src.zip 577703 SHA256 c96047a893645fbd4afa5631b5d1728db3e6874ba8d76637de34355294a38bcf SHA512 8dd97ca6fdd10b1285c3a850ab0f6e14113df0b4a607877a6fb7c5bacded02432504e3af87a43c4aa660bad7226f300af8e0967368ca1eef00c9df7f624d578c WHIRLPOOL d860b109bf897e27168af1b68f3b8c8365830434f1eeca69e42a53276e2d413adbf8f824d1812312b6bf7100af3a9ede1560fc4c5918dfb34610813b5b664a35
+EBUILD apngopt-1.4.ebuild 670 SHA256 995d519d132f1b39ece2f2ebb8bcb15da14630328b9a8683db1cad7d3ea4779c SHA512 684bdc63e0fa407734b9c427c8eb5beb3474c6934cc4b7a35afc5f597639d3202abf3416bb5bca3b90347e7be85d7c6fa6b92ac971ad3fb87decca86863c4bdc WHIRLPOOL 045caf6c3728631cf9b9b9a1627f8890f871400044765eba864852242f037555281f2d7fd00448f19b54468b93ea5d52b96b63f82d28ddc6d06d869a029bdb46
+MISC ChangeLog 2791 SHA256 1470a83ffc8f1fa2b2f2efd902f37561da22245539c8c4c683c0682a180d7ef4 SHA512 b84d20964e21867b60bd3f8fffd221d3fc95b616d698ba77caa9ea46e97e74112a1854098b0f12dec411430d33cda626e2473a2d01f007e6604c228b9f91eeea WHIRLPOOL 2982f9bb0ec99f3889fdf9d37f0dba1dec303235894f6ec6bb0750a0ee75c5a5889976f6253bf315e0a159f9f44cf6a60430a54b43d973294e04555c3add9f8d
+MISC ChangeLog-2015 1065 SHA256 0c014daeeb1620ac30aa226777a2c9eb7856ae81ebe491d3195a65e30a74a0df SHA512 01c99bfa51b2149b77bd0f914c94f1caa6c61d3d9d3ddd326bc037e3b99488610fa7e861242f8ab6145edeb6fe7736c80587e6055b5425c0b6984c948e8f5534 WHIRLPOOL 6dbe6e1a298d9caa48fc62152a014792a99b7b637115ffd4d247211144a78354db474068148f77d79be67d9ff223423402e74833cde034e495d6db47cd4dde64
+MISC metadata.xml 333 SHA256 6945303d34a32f329e1c60da6ce7b065ef0c70ffd8c78f9110da7891c688b197 SHA512 eea45a9bda635af8b0f721251a1c99cb804236b9d37da04b7f5b7209a1ddd0c62a8bb8b5e2dc7783dbace5c557a1d403d1c5d5d41388b7fb5d5c84a1b6116664 WHIRLPOOL 414b166561f73db15aebbe42f186c527f3e67fc136c3e303e17411dc93daa23d8698b1d0bd3ec0a7983e9fbf067e4ef81246e562fd5ef19f8b4251333b2663dc
diff --git a/media-gfx/apngopt/apngopt-1.4.ebuild b/media-gfx/apngopt/apngopt-1.4.ebuild
new file mode 100644
index 000000000000..d8c6b4c2f53b
--- /dev/null
+++ b/media-gfx/apngopt/apngopt-1.4.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit toolchain-funcs
+
+DESCRIPTION="optimize APNG images"
+HOMEPAGE="https://sourceforge.net/projects/apng/"
+SRC_URI="mirror://sourceforge/apng/${P}-src.zip"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="sys-libs/zlib
+ >=app-arch/zopfli-1.0.1-r2:=
+ media-libs/libpng:0="
+DEPEND="${RDEPEND}
+ app-arch/unzip"
+
+S=${WORKDIR}
+
+PATCHES=( "${FILESDIR}"/${P}-makefile.patch )
+
+src_prepare() {
+ default
+ rm -rf libpng zlib zopfli || die
+}
+
+src_compile() {
+ emake CC="$(tc-getCC)" ${PN}
+}
+
+src_install() {
+ dobin ${PN}
+ dodoc readme.txt
+}
diff --git a/media-gfx/apngopt/files/apngopt-1.4-makefile.patch b/media-gfx/apngopt/files/apngopt-1.4-makefile.patch
new file mode 100644
index 000000000000..4ec6084139a0
--- /dev/null
+++ b/media-gfx/apngopt/files/apngopt-1.4-makefile.patch
@@ -0,0 +1,27 @@
+Use system zopfli library and respect CFLAGS.
+
+--- apngopt-1.4-src/Makefile
++++ apngopt-1.4-src/Makefile
+@@ -1,10 +1,10 @@
+ PACKAGE = apngopt
+ CC = gcc
+-SRC_DIRS = . 7z zopfli
++SRC_DIRS = . 7z
+ CFLAGS = -Wall -pedantic
+-CFLAGS_OPT = -O2
++#CFLAGS_OPT = -O2
+ CFLAGS_7Z = -Wno-sign-compare -Wno-reorder -Wno-maybe-uninitialized -Wno-parentheses
+-LIBS = -lstdc++ -lm -lpng -lz
++LIBS = -lstdc++ -lm -lpng -lz -lzopfli
+
+ INCUDE_DIRS := $(addprefix -I./, $(SRC_DIRS))
+ OBJ_DIRS := $(addprefix obj/, $(SRC_DIRS))
+@@ -16,7 +16,7 @@
+ all : $(PACKAGE)
+
+ $(PACKAGE) : objdirs $(OBJECTS)
+- $(CC) -o $@ $(OBJECTS) -s $(LIBS)
++ $(CC) -o $@ $(OBJECTS) $(LIBS)
+
+ objdirs :
+ mkdir -p $(OBJ_DIRS)
diff --git a/media-gfx/apngopt/metadata.xml b/media-gfx/apngopt/metadata.xml
new file mode 100644
index 000000000000..0ccb02731a52
--- /dev/null
+++ b/media-gfx/apngopt/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="sourceforge">apng</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/media-gfx/aqsis/Manifest b/media-gfx/aqsis/Manifest
new file mode 100644
index 000000000000..e38c130ed72a
--- /dev/null
+++ b/media-gfx/aqsis/Manifest
@@ -0,0 +1,10 @@
+AUX aqsis-1.8.2-boost-join-moc.patch 13879 SHA256 82babf014959d3929e17436a36bb1f2c2a9e666c15705cf0e43202e0f07042b9 SHA512 dcc0cd94c7239b210fddf93a4eac52ae87a1f6197e025b08d6e727ad96c1f6d1299edaf411c02c3b0e62d09bca311300282b7bc05725550306764dc7bc8a588a WHIRLPOOL 3a3b60eb3a15c387102d5b7f5eb3cfea827d4caef818162c410baed3def45dbcb3a0da0b2036795b22ac15cdf9d7754ad68b63eb98d9b7738f31f620c1f1dd45
+AUX aqsis-1.8.2-gcc6.patch 1037 SHA256 2227dab638d2f7214447da6d9deec040f5144392d3b835d07669ea58d4d11c94 SHA512 44d0b6c581666cfa904112d28a75abf082d462419b0ed7871d4e82bae4a50e68cb4b470966a50866fdcc606b9e51be0d6640b647222573b1c2dd26b5bea52aba WHIRLPOOL d9f916d095e89042ac5a7cf6ae4bab918061419f1a32d78f7e8f24ae8aff67622c85c7a30fafff1dfd6a94845c36ea03be52124609e12f962b0989c9d8b81668
+AUX aqsis-1.8.2-openexr-compat.patch 384 SHA256 c0dc89b88ad1faed2ecf55dd978210583f5202cf1808f8d39e461a9e11997183 SHA512 43e903cf2e81b1581c1e391b18aabe1aa5538187c2cb54fc5b105bcbad0e44ac51e5b8c50f6f5e8d4b18b96931ec79870e3e68a5970d270b47a93d22cdb8e332 WHIRLPOOL 8c292a0a8ef293ddc7afe910da045b5a63165dabe160083e7997d875c7cb55bf3e9ee447d9611484964ed2d5f0d5e365494b7d2545f3f2d7b8d9425b7bf6d80d
+AUX aqsis-1.8.2-pfto-boost-1.59.patch 2024 SHA256 64dc1f7b4cf08faa80f1215c17589d5132dd3687e55a635ab463bf7b838d6faa SHA512 2510fc40b617c8a54603950894a14329be8a3fc6292c1e000331e0e90a664abd2f1895c90a63595b3513ec6b3210912c6b6378f8ee78ee5339af0b38bcf36545 WHIRLPOOL 253cc1cd200539f32bb420f8becba682fd1ffd46aadcbc7346029285278aee87806f4213e89d8e49db5da6a7b65518d2efe893bd8c0ad808a56f55ef1cb5fbac
+AUX aqsis-1.8.2-unbundle-tinyxml.patch 1835 SHA256 7952a88118edd3b2356ec149a56c32cca1c044ea880d41bc8963b8c6da6a0a3f SHA512 836b5f19544c04c245d4772f64ba689a6590e90bf510c1aad11560589fb9b6f11821716bfb15f2e366a1439a401de08b13f39398d18f95eeb1b42afaa458bccc WHIRLPOOL 875993ca1b46ecf7fde6cc9a808e136af4e7b1e62a96915ece0754b8ac92d162665f72ceb577279d7b869497c5bf1cd8cfa24d593c391f6f44b29e7917da46f2
+DIST aqsis-1.8.2.tar.gz 5669285 SHA256 25f644eb69dfe6f89c76f95615e897c6d74053fe72cc2069713855f80e791098 SHA512 b571f9cfa46c0f1e659b054835698fe90f4d9bf43bea54caea257ac0b9d1d65fca68a0ea874772d18c98194630e13528acefb0e852ef398f353b1d1bb545cecc WHIRLPOOL 57514e5943f48946db78f1fe88fd884d844318c7dd92a7d260beb0c6302f5c2fa71d0e97b0a58f0f9f16388eec5b0097106e6142906aa503a7b9f5f833377079
+EBUILD aqsis-1.8.2.ebuild 1333 SHA256 9d98abfe0845435dfd4e543249db223cc7e41e2ccdbf99a6c573b631aeb5d4a5 SHA512 af53b6ef5b042e831cf132f79f6dfd8de534c925907990d2b228fc574cc3b2d3af6dee3f5c1129ac50ee5cb2f5995c6a0f86dddb2af95daf90878f0ad35f5f53 WHIRLPOOL d9c337425ce9818227d2a0211b591871611f9d14b560f2942c686dc55423bc93de3807d788c73af8aa38f77d76a84b9939c808f3e1a2539022032d3bb10a5b56
+MISC ChangeLog 2826 SHA256 4f53e13a51c6ff0fba6c2a70a1efbf4162999721f68d91aa7490210e91868adb SHA512 5103d621406bd1ba6958a5b5161a51a9bf5a2d4d1916421b6ad9e12df6e3454eefbf5f7dec61c919ad7694b18d527cae45fbb89a87d21404188284a15b15b18f WHIRLPOOL 88711c2f1f6d9fdb891b8823d0bf3d6d46330c33b2a6ac914e193f5e3ab5702dd4c792e71b9cebf7dc823f55530385e1083a8da392f33b29f84ad09725edea96
+MISC ChangeLog-2015 3964 SHA256 8eed6e036042c96c6410c31fae03fff0078ce7debaa07f47e246c9de8d797789 SHA512 70c180359000ceb3f7dc7802cd01383e2d7976589553a3056b1ac5fc1ec705e91a6f35865be50c39e6989e4643dd3e2f59064dce05546fac443e35c849951c65 WHIRLPOOL 1eda74f8c0a8cf9c801ab5942c30422ed7041a479073b7e07782bb64ea689727985c64b4a383707f234bec53a3c8e88995eeb29d074c0dac6cc1e2a2d7bfa838
+MISC metadata.xml 334 SHA256 7c4bc5470c81bf19458a32bb75054bb6d5bbee6869f773a050ddb480e4e83c11 SHA512 77c45ef76b18a09a1e492cbc1ebf6d3dfbf3183d7c7eccc88ae4ab6233acacd7529cec677352236bc489ee83619c9cbdd0f1896f6887b260a5bebb794a8118c7 WHIRLPOOL 5f8ed6c3b26fb59586dfcc4fba6e74ef1e02828201cbafff04c63ba5be79c1fd503d855fc91c646262f329e7cad7efaa3d64cce03388ff546fcec6b6fcfa9c27
diff --git a/media-gfx/aqsis/aqsis-1.8.2.ebuild b/media-gfx/aqsis/aqsis-1.8.2.ebuild
new file mode 100644
index 000000000000..18ee7fcbed1d
--- /dev/null
+++ b/media-gfx/aqsis/aqsis-1.8.2.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit cmake-utils multilib
+
+DESCRIPTION="Open source RenderMan-compliant 3D rendering solution"
+HOMEPAGE="http://www.aqsis.org"
+SRC_URI="mirror://sourceforge/aqsis/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE="png qt4"
+
+# OpenEXR currently can not be optional dependency, despite build system options
+RDEPEND="
+ dev-libs/boost:=
+ dev-libs/tinyxml
+ media-libs/tiff:0
+ sys-libs/zlib
+ media-libs/openexr:=
+ png? ( media-libs/libpng:0= )
+ qt4? ( dev-qt/qtgui:4 )
+"
+
+DEPEND="${RDEPEND}
+ dev-libs/libxslt
+ sys-devel/bison
+ sys-devel/flex
+"
+
+DOCS=( AUTHORS INSTALL README )
+
+PATCHES=(
+ "${FILESDIR}/${P}-openexr-compat.patch"
+ "${FILESDIR}/${P}-unbundle-tinyxml.patch"
+ "${FILESDIR}/${P}-pfto-boost-1.59.patch"
+ "${FILESDIR}/${P}-boost-join-moc.patch"
+ "${FILESDIR}/${P}-gcc6.patch"
+)
+
+src_configure() {
+ local mycmakeargs=(
+ $(cmake-utils_use png AQSIS_USE_PNG)
+ $(cmake-utils_use qt4 AQSIS_USE_QT)
+ -DAQSIS_ENABLE_DOCS=OFF
+ -DAQSIS_USE_EXTERNAL_TINYXML=ON
+ -DAQSIS_USE_OPENEXR=ON
+ -DAQSIS_USE_RPATH=OFF
+ -DLIBDIR="$(get_libdir)"
+ -DSYSCONFDIR="/etc"
+ )
+ cmake-utils_src_configure
+}
+
+src_install() {
+ newdoc "release-notes/1.8/summary-1.8.0.txt" ReleaseNotes
+ cmake-utils_src_install
+}
diff --git a/media-gfx/aqsis/files/aqsis-1.8.2-boost-join-moc.patch b/media-gfx/aqsis/files/aqsis-1.8.2-boost-join-moc.patch
new file mode 100644
index 000000000000..ce579d12242f
--- /dev/null
+++ b/media-gfx/aqsis/files/aqsis-1.8.2-boost-join-moc.patch
@@ -0,0 +1,568 @@
+Add include guards to all boost includes, as qt's moc trips
+over nested BOOST_JOIN macros:
+* /usr/lib64/qt4/bin/moc @/var/tmp/portage/media-gfx/aqsis-1.8.2/work/aqsis-1.8.2_build/tools/piqsl/moc_piqsl_ui.cxx_parameters
+* /usr/include/boost/type_traits/detail/has_binary_operator.hp:50: Parse error at "BOOST_JOIN"
+See also: https://bugs.gentoo.org/show_bug.cgi?id=574560
+
+--- aqsis-1.8.2/tools/piqsl/piqsl_ui.cpp
++++ aqsis-1.8.2/tools/piqsl/piqsl_ui.cpp
+@@ -42,7 +42,9 @@
+ #include <QtGui/QPainter>
+ #include <QtGui/QImage>
+
++#ifndef Q_MOC_RUN
+ #include <boost/thread.hpp>
++#endif
+
+ #include <aqsis/version.h>
+ #include <aqsis/math/math.h>
+--- aqsis-1.8.2/tools/piqsl/piqsl_ui.h
++++ aqsis-1.8.2/tools/piqsl/piqsl_ui.h
+@@ -37,7 +37,9 @@
+
+ #include <QtGui/QStyledItemDelegate>
+
++#ifndef Q_MOC_RUN
+ #include <boost/shared_ptr.hpp>
++#endif
+
+ #include "image.h"
+
+--- aqsis-1.8.2/tools/piqsl/displayserverimage.cpp
++++ aqsis-1.8.2/tools/piqsl/displayserverimage.cpp
+@@ -39,11 +39,13 @@
+ #include <map>
+ #include <algorithm>
+
++#ifndef Q_MOC_RUN
+ #include <boost/archive/iterators/base64_from_binary.hpp>
+ #include <boost/archive/iterators/transform_width.hpp>
+ #include <boost/archive/iterators/insert_linebreaks.hpp>
+ #include <boost/format.hpp>
+ #include <boost/filesystem.hpp>
++#endif
+
+ #include "displayserverimage.h"
+
+--- aqsis-1.8.2/tools/piqsl/image.cpp
++++ aqsis-1.8.2/tools/piqsl/image.cpp
+@@ -38,7 +38,9 @@
+
+ #include <float.h>
+
++#ifndef Q_MOC_RUN
+ #include <boost/format.hpp>
++#endif
+
+ #include <aqsis/version.h>
+ #include <aqsis/util/logging.h>
+--- aqsis-1.8.2/tools/piqsl/image.h
++++ aqsis-1.8.2/tools/piqsl/image.h
+@@ -46,10 +46,12 @@
+ #include <QtCore/QObject>
+ #include <QtGui/QImage>
+
++#ifndef Q_MOC_RUN
+ #include <boost/shared_ptr.hpp>
+ #include <boost/shared_array.hpp>
+ #include <boost/filesystem/path.hpp>
+ #include <boost/thread/mutex.hpp>
++#endif
+
+ #include "tinyxml.h"
+
+--- aqsis-1.8.2/tools/piqsl/imagelistmodel.cpp
++++ aqsis-1.8.2/tools/piqsl/imagelistmodel.cpp
+@@ -37,11 +37,13 @@
+ #include <QtCore/QSocketNotifier>
+ #include <QtGui/QMessageBox>
+
++#ifndef Q_MOC_RUN
+ #include <boost/thread/mutex.hpp>
+ #include <boost/archive/iterators/binary_from_base64.hpp>
+ #include <boost/archive/iterators/transform_width.hpp>
+ #include <boost/archive/iterators/remove_whitespace.hpp>
+ #include <boost/version.hpp>
++#endif
+
+
+ #include "displayserverimage.h"
+--- aqsis-1.8.2/tools/piqsl/imagelistmodel.h
++++ aqsis-1.8.2/tools/piqsl/imagelistmodel.h
+@@ -33,8 +33,10 @@
+
+ #include <QtCore/QAbstractListModel>
+
++#ifndef Q_MOC_RUN
+ #include <boost/shared_ptr.hpp>
+ #include <boost/thread/thread.hpp>
++#endif
+
+ #include <aqsis/util/socket.h>
+ #include "image.h"
+--- aqsis-1.8.2/include/aqsis/core/interfacefwd.h
++++ aqsis-1.8.2/include/aqsis/core/interfacefwd.h
+@@ -13,7 +13,9 @@
+ #ifndef ___interfacefwd_Loaded___
+ #define ___interfacefwd_Loaded___
+
++#ifndef Q_MOC_RUN
+ #include <boost/shared_ptr.hpp>
++#endif
+
+ namespace Aqsis {
+
+--- aqsis-1.8.2/include/aqsis/core/ioptions.h
++++ aqsis-1.8.2/include/aqsis/core/ioptions.h
+@@ -29,7 +29,9 @@
+
+ #include <aqsis/aqsis.h>
+
++#ifndef Q_MOC_RUN
+ #include <boost/filesystem/path.hpp>
++#endif
+
+ #include <aqsis/riutil/primvartype.h>
+ #include <aqsis/ri/ritypes.h>
+--- aqsis-1.8.2/include/aqsis/core/irenderer.h
++++ aqsis-1.8.2/include/aqsis/core/irenderer.h
+@@ -14,7 +14,9 @@
+ #include <iosfwd>
+ #include <string>
+
++#ifndef Q_MOC_RUN
+ #include <boost/function.hpp>
++#endif
+
+ #include <aqsis/math/matrix.h>
+ #include <aqsis/core/itransform.h>
+--- aqsis-1.8.2/include/aqsis/core/isurface.h
++++ aqsis-1.8.2/include/aqsis/core/isurface.h
+@@ -12,7 +12,10 @@
+ #define ___isurface_Loaded___
+
+ #include <vector>
++
++#ifndef Q_MOC_RUN
+ #include <boost/shared_ptr.hpp>
++#endif
+
+ #include <aqsis/aqsis.h>
+ #include <aqsis/math/matrix.h>
+--- aqsis-1.8.2/include/aqsis/core/itransform.h
++++ aqsis-1.8.2/include/aqsis/core/itransform.h
+@@ -12,7 +12,10 @@
+ #define ___itransform_Loaded___
+
+ #include <aqsis/aqsis.h>
++
++#ifndef Q_MOC_RUN
+ #include <boost/shared_ptr.hpp>
++#endif
+
+ namespace Aqsis {
+
+--- aqsis-1.8.2/include/aqsis/math/math.h
++++ aqsis-1.8.2/include/aqsis/math/math.h
+@@ -30,8 +30,10 @@
+ #include <cmath>
+ #include <limits>
+
++#ifndef Q_MOC_RUN
+ #include <boost/utility/enable_if.hpp>
+ #include <boost/type_traits/arithmetic_traits.hpp>
++#endif
+
+ namespace Aqsis {
+ // These inline functions are intended to eventually replace all the old macros
+--- aqsis-1.8.2/include/aqsis/riutil/ricxxutil.h
++++ aqsis-1.8.2/include/aqsis/riutil/ricxxutil.h
+@@ -48,7 +48,9 @@
+ #include <aqsis/riutil/interpclasscounts.h>
+ #include <aqsis/util/exception.h>
+
++#ifndef Q_MOC_RUN
+ #include <boost/function.hpp>
++#endif
+
+ namespace Aqsis {
+
+--- aqsis-1.8.2/include/aqsis/shadervm/ishaderexecenv.h
++++ aqsis-1.8.2/include/aqsis/shadervm/ishaderexecenv.h
+@@ -28,7 +28,9 @@
+
+ #include <aqsis/aqsis.h>
+
++#ifndef Q_MOC_RUN
+ #include <boost/shared_ptr.hpp>
++#endif
+
+ #include <aqsis/shadervm/ishaderdata.h>
+ #include <aqsis/math/vector3d.h>
+--- aqsis-1.8.2/include/aqsis/shadervm/ishader.h
++++ aqsis-1.8.2/include/aqsis/shadervm/ishader.h
+@@ -19,7 +19,9 @@
+ #include <vector>
+ #include <iosfwd>
+
++#ifndef Q_MOC_RUN
+ #include <boost/shared_ptr.hpp>
++#endif
+
+ #include <aqsis/core/interfacefwd.h>
+ #include <aqsis/riutil/primvartype.h>
+--- aqsis-1.8.2/include/aqsis/tex/buffers/channellist.h
++++ aqsis-1.8.2/include/aqsis/tex/buffers/channellist.h
+@@ -43,7 +43,9 @@
+ #include <iosfwd>
+ #include <vector>
+
++#ifndef Q_MOC_RUN
+ #include <boost/format.hpp>
++#endif
+
+ #include <aqsis/tex/buffers/channelinfo.h>
+ #include <aqsis/tex/texexception.h>
+--- aqsis-1.8.2/include/aqsis/tex/buffers/mixedimagebuffer.h
++++ aqsis-1.8.2/include/aqsis/tex/buffers/mixedimagebuffer.h
+@@ -45,9 +45,11 @@
+ #include <string>
+ #include <vector>
+
++#ifndef Q_MOC_RUN
+ #include <boost/shared_array.hpp>
+ #include <boost/shared_ptr.hpp>
+ #include <boost/utility.hpp>
++#endif
+
+ #include <aqsis/math/math.h>
+ #include <aqsis/tex/buffers/channellist.h>
+--- aqsis-1.8.2/include/aqsis/tex/buffers/texturebuffer.h
++++ aqsis-1.8.2/include/aqsis/tex/buffers/texturebuffer.h
+@@ -42,7 +42,9 @@
+
+ #include <aqsis/aqsis.h>
+
++#ifndef Q_MOC_RUN
+ #include <boost/shared_array.hpp>
++#endif
+
+ #include <aqsis/tex/buffers/channellist.h>
+ #include <aqsis/tex/buffers/samplevector.h>
+--- aqsis-1.8.2/include/aqsis/tex/buffers/tilearray.h
++++ aqsis-1.8.2/include/aqsis/tex/buffers/tilearray.h
+@@ -43,10 +43,12 @@
+
+ #include <vector>
+
++#ifndef Q_MOC_RUN
+ #include <boost/intrusive_ptr.hpp>
+ #include <boost/scoped_ptr.hpp>
+ #include <boost/scoped_array.hpp>
+ #include <boost/noncopyable.hpp>
++#endif
+
+ //#include <aqsis/util/memorysentry.h>
+ #include <aqsis/tex/io/itiledtexinputfile.h>
+--- aqsis-1.8.2/include/aqsis/tex/filtering/ienvironmentsampler.h
++++ aqsis-1.8.2/include/aqsis/tex/filtering/ienvironmentsampler.h
+@@ -40,7 +40,9 @@
+
+ #include <aqsis/aqsis.h>
+
++#ifndef Q_MOC_RUN
+ #include <boost/shared_ptr.hpp>
++#endif
+
+ #include <aqsis/tex/filtering/samplequad.h>
+ #include <aqsis/tex/filtering/texturesampleoptions.h>
+--- aqsis-1.8.2/include/aqsis/tex/filtering/iocclusionsampler.h
++++ aqsis-1.8.2/include/aqsis/tex/filtering/iocclusionsampler.h
+@@ -40,7 +40,9 @@
+
+ #include <aqsis/aqsis.h>
+
++#ifndef Q_MOC_RUN
+ #include <boost/shared_ptr.hpp>
++#endif
+
+ #include <aqsis/math/matrix.h>
+ #include <aqsis/tex/filtering/samplequad.h>
+--- aqsis-1.8.2/include/aqsis/tex/filtering/ishadowsampler.h
++++ aqsis-1.8.2/include/aqsis/tex/filtering/ishadowsampler.h
+@@ -40,7 +40,9 @@
+
+ #include <aqsis/aqsis.h>
+
++#ifndef Q_MOC_RUN
+ #include <boost/shared_ptr.hpp>
++#endif
+
+ #include <aqsis/math/matrix.h>
+ #include <aqsis/tex/filtering/samplequad.h>
+--- aqsis-1.8.2/include/aqsis/tex/filtering/itexturecache.h
++++ aqsis-1.8.2/include/aqsis/tex/filtering/itexturecache.h
+@@ -40,8 +40,10 @@
+
+ #include <aqsis/aqsis.h>
+
++#ifndef Q_MOC_RUN
+ #include <boost/function.hpp>
+ #include <boost/shared_ptr.hpp>
++#endif
+
+ namespace Aqsis {
+
+--- aqsis-1.8.2/include/aqsis/tex/filtering/itexturesampler.h
++++ aqsis-1.8.2/include/aqsis/tex/filtering/itexturesampler.h
+@@ -40,7 +40,9 @@
+
+ #include <aqsis/aqsis.h>
+
++#ifndef Q_MOC_RUN
+ #include <boost/shared_ptr.hpp>
++#endif
+
+ #include <aqsis/tex/filtering/samplequad.h>
+ #include <aqsis/tex/filtering/texturesampleoptions.h>
+--- aqsis-1.8.2/include/aqsis/tex/io/itiledtexinputfile.h
++++ aqsis-1.8.2/include/aqsis/tex/io/itiledtexinputfile.h
+@@ -40,7 +40,9 @@
+
+ #include <aqsis/aqsis.h>
+
++#ifndef Q_MOC_RUN
+ #include <boost/shared_ptr.hpp>
++#endif
+
+ #include <aqsis/util/file.h>
+ #include <aqsis/tex/io/imagefiletype.h>
+--- aqsis-1.8.2/include/aqsis/tex/io/texfileheader.h
++++ aqsis-1.8.2/include/aqsis/tex/io/texfileheader.h
+@@ -44,8 +44,10 @@
+ #include <iostream>
+ #include <map>
+
++#ifndef Q_MOC_RUN
+ #include <boost/any.hpp>
+ #include <boost/shared_ptr.hpp>
++#endif
+
+ #include <aqsis/tex/io/texfileattributes.h>
+
+--- aqsis-1.8.2/include/aqsis/util/autobuffer.h
++++ aqsis-1.8.2/include/aqsis/util/autobuffer.h
+@@ -41,7 +41,9 @@
+
+ #include <aqsis/aqsis.h>
+
++#ifndef Q_MOC_RUN
+ #include <boost/scoped_array.hpp>
++#endif
+
+ namespace Aqsis {
+
+--- aqsis-1.8.2/include/aqsis/util/enum.h
++++ aqsis-1.8.2/include/aqsis/util/enum.h
+@@ -122,7 +122,9 @@
+ #include <string>
+ #include <vector>
+
++#ifndef Q_MOC_RUN
+ #include <boost/static_assert.hpp>
++#endif
+
+ #include <aqsis/util/sstring.h> // for CqString::hash()
+
+--- aqsis-1.8.2/include/aqsis/util/execute.h
++++ aqsis-1.8.2/include/aqsis/util/execute.h
+@@ -30,7 +30,9 @@
+
+ #include <aqsis/aqsis.h>
+
++#ifndef Q_MOC_RUN
+ #include <boost/function.hpp>
++#endif
+
+ #include <string>
+ #include <vector>
+--- aqsis-1.8.2/include/aqsis/util/file.h
++++ aqsis-1.8.2/include/aqsis/util/file.h
+@@ -32,8 +32,10 @@
+
+ #include <string>
+
++#ifndef Q_MOC_RUN
+ #include <boost/filesystem/path.hpp>
+ #include <boost/tokenizer.hpp>
++#endif
+
+ namespace Aqsis {
+
+--- aqsis-1.8.2/include/aqsis/util/popen.h
++++ aqsis-1.8.2/include/aqsis/util/popen.h
+@@ -41,9 +41,11 @@
+ #include <string>
+ #include <vector>
+
++#ifndef Q_MOC_RUN
+ #include <boost/iostreams/concepts.hpp>
+ #include <boost/iostreams/stream.hpp>
+ #include <boost/shared_ptr.hpp>
++#endif
+
+ #ifndef AQSIS_POPEN_H_INCLUDED
+ #define AQSIS_POPEN_H_INCLUDED
+--- aqsis-1.8.2/include/aqsis/util/socket.h
++++ aqsis-1.8.2/include/aqsis/util/socket.h
+@@ -32,7 +32,9 @@
+
+ #include <sstream>
+
++#ifndef Q_MOC_RUN
+ #include <boost/utility.hpp>
++#endif
+
+ #ifdef AQSIS_SYSTEM_WIN32
+ # include <winsock2.h>
+--- aqsis-1.8.2/include/aqsis/util/timer.h
++++ aqsis-1.8.2/include/aqsis/util/timer.h
+@@ -39,8 +39,10 @@
+ #include <ctime>
+ #include <vector>
+
++#ifndef Q_MOC_RUN
+ #include <boost/shared_ptr.hpp>
+ #include <boost/timer.hpp>
++#endif
+
+ namespace Aqsis {
+
+--- aqsis-1.8.2/tools/aqsl/aqsl.cpp
++++ aqsis-1.8.2/tools/aqsl/aqsl.cpp
+@@ -36,7 +36,10 @@
+ #include <cstring>
+ #include <string>
+ #include <vector>
++
++#ifndef Q_MOC_RUN
+ #include <boost/scoped_ptr.hpp>
++#endif
+
+ #ifdef AQSIS_SYSTEM_WIN32
+ #include "io.h"
+--- aqsis-1.8.2/tools/displays/exr/d_exr.cpp
++++ aqsis-1.8.2/tools/displays/exr/d_exr.cpp
+@@ -98,7 +98,9 @@
+
+ #include <assert.h>
+
++#ifndef Q_MOC_RUN
+ #include <boost/shared_ptr.hpp>
++#endif
+
+ // Lower the warning level to eliminate unavoidable warnings from the OpenEXR headers.
+ #if AQSIS_SYSTEM_WIN32 && (defined(AQSIS_COMPILER_MSVC6) || defined(AQSIS_COMPILER_MSVC7))
+--- aqsis-1.8.2/tools/displays/piqsl/piqsldisplay.cpp
++++ aqsis-1.8.2/tools/displays/piqsl/piqsldisplay.cpp
+@@ -33,10 +33,12 @@
+ #include <map>
+ #include <vector>
+
++#ifndef Q_MOC_RUN
+ #include <boost/archive/iterators/base64_from_binary.hpp>
+ #include <boost/archive/iterators/transform_width.hpp>
+ #include <boost/archive/iterators/insert_linebreaks.hpp>
+ #include <boost/shared_ptr.hpp>
++#endif
+
+ #ifdef AQSIS_SYSTEM_WIN32
+ #include <winsock2.h>
+--- aqsis-1.8.2/tools/eqsl/eqsl.cpp
++++ aqsis-1.8.2/tools/eqsl/eqsl.cpp
+@@ -55,9 +55,11 @@
+ #include <QtGui/QStatusBar>
+ #include <QtGui/QTabWidget>
+
++#ifndef Q_MOC_RUN
+ #include <boost/thread.hpp>
+ #include <boost/regex.hpp>
+ #include <boost/lexical_cast.hpp>
++#endif
+
+ #include <aqsis/version.h>
+ #include <aqsis/util/execute.h>
+--- aqsis-1.8.2/tools/miqser/miqser.cpp
++++ aqsis-1.8.2/tools/miqser/miqser.cpp
+@@ -44,7 +44,9 @@
+ #include <cstring>
+ #include <cstdlib>
+
++#ifndef Q_MOC_RUN
+ #include <boost/shared_ptr.hpp>
++#endif
+
+ #include <aqsis/util/argparse.h>
+ #include <aqsis/util/exception.h>
+--- aqsis-1.8.2/tools/procedurals/hairgen/hair.cpp
++++ aqsis-1.8.2/tools/procedurals/hairgen/hair.cpp
+@@ -37,8 +37,10 @@
+ #include <aqsis/math/math.h>
+ #include <aqsis/math/matrix.h>
+
++#ifndef Q_MOC_RUN
+ #include <boost/tokenizer.hpp>
+ #include <boost/algorithm/string/trim.hpp>
++#endif
+
+ // project includes
+ #include "primvar.h"
+--- aqsis-1.8.2/tools/procedurals/hairgen/parenthairs.h
++++ aqsis-1.8.2/tools/procedurals/hairgen/parenthairs.h
+@@ -35,7 +35,9 @@
+ #include <vector>
+ #include <iosfwd>
+
++#ifndef Q_MOC_RUN
+ #include <boost/scoped_ptr.hpp>
++#endif
+
+ #include "kdtree/kdtree2.hpp"
+ #include "primvar.h"
+--- aqsis-1.8.2/tools/procedurals/hairgen/primvar.h
++++ aqsis-1.8.2/tools/procedurals/hairgen/primvar.h
+@@ -37,7 +37,9 @@
+ #include <vector>
+ #include <stdexcept>
+
++#ifndef Q_MOC_RUN
+ #include <boost/shared_ptr.hpp>
++#endif
+
+ #include <aqsis/riutil/primvartoken.h>
+ #include <aqsis/ri/ri.h>
+--- aqsis-1.8.2/tools/ptview/ptview.cpp
++++ aqsis-1.8.2/tools/ptview/ptview.cpp
+@@ -38,7 +38,9 @@
+ #include <QtGui/QFileDialog>
+ #include <QtGui/QColorDialog>
+
++#ifndef Q_MOC_RUN
+ #include <boost/program_options.hpp>
++#endif
+
+ #define NOMINMAX
+ #include <OpenEXR/ImathVec.h>
+--- aqsis-1.8.2/tools/ptview/ptview.h
++++ aqsis-1.8.2/tools/ptview/ptview.h
+@@ -33,8 +33,10 @@
+ #include <cmath>
+ #include <vector>
+
++#ifndef Q_MOC_RUN
+ #include <boost/shared_ptr.hpp>
+ #include <boost/shared_array.hpp>
++#endif
+
+ #include <QtGui/QMainWindow>
+ #include <QtOpenGL/QGLWidget>
diff --git a/media-gfx/aqsis/files/aqsis-1.8.2-gcc6.patch b/media-gfx/aqsis/files/aqsis-1.8.2-gcc6.patch
new file mode 100644
index 000000000000..c51f669c09b5
--- /dev/null
+++ b/media-gfx/aqsis/files/aqsis-1.8.2-gcc6.patch
@@ -0,0 +1,23 @@
+From d450f4aac8c107f82b18df7789afb52b502eaba0 Mon Sep 17 00:00:00 2001
+From: Hodorgasm <nsane457@gmail.com>
+Date: Mon, 19 Sep 2016 22:58:44 -0400
+Subject: [PATCH] Use "!file.fail()" instead of "file != NULL"
+
+Pre-C++11 defined an implicit cast from ifstream to "void *" and post C++11 replaced it with an explicit cast of ifstream to "bool". Testing an ifstream with "!ifstream.fail()" should work regardless of the C++ dialect.
+---
+ libs/core/texturing_old/shadowmap_old.cpp | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/libs/core/texturing_old/shadowmap_old.cpp b/libs/core/texturing_old/shadowmap_old.cpp
+index 1a22491..fbcac59 100644
+--- a/libs/core/texturing_old/shadowmap_old.cpp
++++ b/libs/core/texturing_old/shadowmap_old.cpp
+@@ -176,7 +176,7 @@ void CqShadowMapOld::LoadZFile()
+ {
+ std::ifstream file( m_strName.c_str(), std::ios::in | std::ios::binary );
+
+- if ( file != NULL )
++ if ( !file.fail() )
+ {
+ // Save a file type and version marker
+ TqPchar origHeader = tokenCast(ZFILE_HEADER);
diff --git a/media-gfx/aqsis/files/aqsis-1.8.2-openexr-compat.patch b/media-gfx/aqsis/files/aqsis-1.8.2-openexr-compat.patch
new file mode 100644
index 000000000000..155c93ebb295
--- /dev/null
+++ b/media-gfx/aqsis/files/aqsis-1.8.2-openexr-compat.patch
@@ -0,0 +1,15 @@
+--- libs/tex/io/exrinputfile.h.orig 2012-08-24 16:26:50.000000000 +0400
++++ libs/tex/io/exrinputfile.h 2014-02-14 16:26:47.293497092 +0400
+@@ -48,10 +48,9 @@
+
+ #include <aqsis/tex/io/itexinputfile.h>
+
++#include <OpenEXR/ImfInputFile.h>
++
+ //------------------------------------------------------------------------------
+-namespace Imf {
+- class InputFile;
+-}
+
+ namespace Aqsis {
+
diff --git a/media-gfx/aqsis/files/aqsis-1.8.2-pfto-boost-1.59.patch b/media-gfx/aqsis/files/aqsis-1.8.2-pfto-boost-1.59.patch
new file mode 100644
index 000000000000..621853e245e5
--- /dev/null
+++ b/media-gfx/aqsis/files/aqsis-1.8.2-pfto-boost-1.59.patch
@@ -0,0 +1,41 @@
+Remove BOOST_MAKE_PFTO_WRAPPER macros, which were long deprecated
+and finally removed with boost-1.59.
+
+diff -aur package.pristine/tools/displays/piqsl/piqsldisplay.cpp package.new/tools/displays/piqsl/piqsldisplay.cpp
+--- package.pristine/tools/displays/piqsl/piqsldisplay.cpp 2015-12-12 12:52:50.455773602 +0100
++++ package.new/tools/displays/piqsl/piqsldisplay.cpp 2015-12-12 12:54:31.291661954 +0100
+@@ -450,8 +450,8 @@
+
+ TiXmlElement* bucketDataXML = new TiXmlElement("BucketData");
+ std::stringstream base64Data;
+- std::copy( base64_text(BOOST_MAKE_PFTO_WRAPPER(data)),
+- base64_text(BOOST_MAKE_PFTO_WRAPPER(data + bufferlength)),
++ std::copy( base64_text(data),
++ base64_text(data + bufferlength),
+ std::ostream_iterator<char>(base64Data));
+ TiXmlText* dataTextXML = new TiXmlText(base64Data.str());
+ dataTextXML->SetCDATA(true);
+diff -aur package.pristine/tools/piqsl/imagelistmodel.cpp package.new/tools/piqsl/imagelistmodel.cpp
+--- package.pristine/tools/piqsl/imagelistmodel.cpp 2015-12-12 12:52:50.465773524 +0100
++++ package.new/tools/piqsl/imagelistmodel.cpp 2015-12-12 12:53:26.088831765 +0100
+@@ -42,11 +42,6 @@
+ #include <boost/archive/iterators/transform_width.hpp>
+ #include <boost/archive/iterators/remove_whitespace.hpp>
+ #include <boost/version.hpp>
+-#if BOOST_VERSION < 103700
+-# include <boost/pfto.hpp>
+-#else
+-# include <boost/serialization/pfto.hpp>
+-#endif
+
+
+ #include "displayserverimage.h"
+@@ -286,7 +281,7 @@
+ std::string data = dataText->Value();
+ std::vector<unsigned char> binaryData;
+ binaryData.reserve(count);
+- base64_binary ti_begin = base64_binary(BOOST_MAKE_PFTO_WRAPPER(data.begin()));
++ base64_binary ti_begin = base64_binary(data.begin());
+ std::size_t padding = 2 - count % 3;
+ while(--count > 0)
+ {
diff --git a/media-gfx/aqsis/files/aqsis-1.8.2-unbundle-tinyxml.patch b/media-gfx/aqsis/files/aqsis-1.8.2-unbundle-tinyxml.patch
new file mode 100644
index 000000000000..158c96aeabce
--- /dev/null
+++ b/media-gfx/aqsis/files/aqsis-1.8.2-unbundle-tinyxml.patch
@@ -0,0 +1,57 @@
+--- CMakeLists.txt.orig 2014-02-14 16:55:38.894647998 +0400
++++ CMakeLists.txt 2014-02-14 16:56:14.017651059 +0400
+@@ -134,15 +134,15 @@
+ endif()
+ endif()
+
+-## find tinyxml. If not found we use the version distributed with the aqsis
+-## source.
+-#if(AQSIS_USE_EXTERNAL_TINYXML)
+-# find_package(TinyXML)
+-# if(NOT TINYXML_FOUND)
+-# message("** Cannot find external tinyxml library - using version included with the aqsis source.")
+-# set(AQSIS_USE_EXTERNAL_TINYXML OFF)
+-# endif()
+-#endif()
++# find tinyxml. If not found we use the version distributed with the aqsis
++# source.
++if(AQSIS_USE_EXTERNAL_TINYXML)
++ find_package(TinyXML)
++ if(NOT AQSIS_TINYXML_FOUND)
++ message("** Cannot find external tinyxml library - using version included with the aqsis source.")
++ set(AQSIS_USE_EXTERNAL_TINYXML OFF)
++ endif()
++endif()
+
+
+ #-------------------------------------------------------------------------------
+@@ -274,7 +274,9 @@
+ )
+
+ # Thirdparty libs
+-declare_subproject(thirdparty/tinyxml)
++if(NOT AQSIS_USE_EXTERNAL_TINYXML)
++ declare_subproject(thirdparty/tinyxml)
++endif()
+ declare_subproject(thirdparty/partio)
+ declare_subproject(libs/pointrender)
+ if(AQSIS_USE_PDIFF)
+--- tools/piqsl/CMakeLists.txt.orig 2014-02-16 11:18:43.308699170 +0400
++++ tools/piqsl/CMakeLists.txt 2014-02-16 11:18:52.620699981 +0400
+@@ -5,8 +5,6 @@
+ message(FATAL_ERROR "Piqsl requires boost thread and Qt4 to build")
+ endif()
+
+-include_subproject(tinyxml)
+-
+ set(piqsl_hdrs
+ displayserverimage.h
+ image.h
+--- tools/displays/piqsl/CMakeLists.txt.orig 2014-02-16 11:21:25.820713332 +0400
++++ tools/displays/piqsl/CMakeLists.txt 2014-02-16 11:21:34.676714104 +0400
+@@ -1,5 +1,4 @@
+ include_subproject(dspyutil)
+-include_subproject(tinyxml)
+
+ aqsis_add_display(piqsl piqsldisplay.cpp ${dspyutil_srcs}
+ ${tinyxml_srcs} ${tinyxml_hdrs}
diff --git a/media-gfx/aqsis/metadata.xml b/media-gfx/aqsis/metadata.xml
new file mode 100644
index 000000000000..db7d814b78af
--- /dev/null
+++ b/media-gfx/aqsis/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="sourceforge">aqsis</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/media-gfx/argyllcms/Manifest b/media-gfx/argyllcms/Manifest
new file mode 100644
index 000000000000..7de28987725a
--- /dev/null
+++ b/media-gfx/argyllcms/Manifest
@@ -0,0 +1,14 @@
+AUX argyllcms-1.8.0-gcc5.patch 530 SHA256 de9b8a90e249070d457291c29ae3c732f89c51bc6f6296cb6aa7e800ba31a0e5 SHA512 1b9b49e704f2c0e00398cdbe6be3fa7bc17858ed69374cd255bb3a4925bab84d401edbaaaefabfa8286ad7361c8e0afef27b7e41e115644f1430c5ec78a28a9a WHIRLPOOL b13be5747af0178b5858e4ed67e42bef7fe6b7e10bd7632139d1315d64d67bbb8aee4f61b1c9cf93cfebc4d5100698f459453e5d35d5207ca4afdc82cf096018
+DIST Argyll_V1.7.0_src.zip 13935712 SHA256 dac51cf5d8f6d04bb02f2f5b119fa0e8b773a010e6377116768b082ef018f663 SHA512 644683c8a73d36583d607b5d51c543dca8f1e3fb3db8138a164f9ed7f994df7739ee7d810b7136a7cf0eba7b54fe53b35ffbdd4e6915ec20b271325119ce369c WHIRLPOOL e08c6e311856716ee6b49e37c583d8d4275629fb746f018e0d7c768d4c907644dc60545ff2c709217988c668b198dfc95396af3fdf0ccd40d320514854b1c087
+DIST Argyll_V1.8.2_src.zip 13946428 SHA256 59bdfaeace35d2007c90fc53234ba33bf8a64cffc08f7b27a297fc5f85455377 SHA512 fb5a9fcfe558ce0593cc63d43751693dcaca8ed9dc202372bea5d8d54e19c004de0cb80382ffd2b570d9eeeb58584c7466b725d35377c72cbbde414625613d9c WHIRLPOOL 1a7f32f5ac203ae69773c8f40540aed4c2d36b1878ac7e7cc703df8809faa6ca086a249c1f20f5c2b8bb3db652add330b8a555dd34570c79b1da74cd5bb372ed
+DIST Argyll_V1.8.3_src.zip 13933565 SHA256 60494176785f6c2e4e4daefb9452d83859880449040b2a843ed81de3bd0c558e SHA512 19bdba20313ec62b5b3c461d29a4f1eefbeb799ded06a1e0b568013b606547bf97b23c1b69f27d415e0052a7a2b747273131624e725ee21781b261568822b3a7 WHIRLPOOL d0f65bfdee48dcb29c887f371fe787aebac8c9577a1db0f386bb4a17e379ab99d2c0f94bc7474e753b3fd49548028928aeb48d9c0021b8ee5a76ab55575d5ce8
+DIST Argyll_V1.9.1_src.zip 13497142 SHA256 5e910b1fafa53498747bee6128adfb1b4a2418801728ad466ebd65fa7fa29823 SHA512 28cc7f686a841a8ef6d6594b71a9a8c8be9370395fd1385abdc4b8388b699266966b21385056933670e233a085edbe9ee58cbe854f18c980408a89b45e807179 WHIRLPOOL 70592c405e584b186225a7c1427c94d73b45dfcfd1080f91b71583d044b77130d9531e3b30c7d9f24802539cc3a02ebba661c15af5229569183351134d29a7ef
+DIST Argyll_V1.9.2_src.zip 13624924 SHA256 4d61ae0b91686dea721d34df2e44eaf36c88da87086fd50ccc4e999a58e9ce90 SHA512 f21fc2385b643dd6c32d1b1b0ab208a79ad8bc4319ac644d96e69ebc4c4e333d38b41e4516742816da9a91145e4f00bffb7f8b61a827859d5e14c1a8867b5a41 WHIRLPOOL 2b1bf8997a029bea711f42b7dec51c645834e7429430c6ad187a0b26f903ff58cfea27a072e28fb703be7ef2bcfa96d20f0f7ba6d1d809052eeb10d52013b430
+EBUILD argyllcms-1.7.0.ebuild 1996 SHA256 bba28fca4c9f5e7154a82bb6d06be0f31314761cbe8fc8f2c7b671cc95d86865 SHA512 f1af90fe3218a96ecea33dc887611b8d879e703bba0b26e2487869cfc867b20b265376ef59dc3e2b4198c4da83bc42f3180b8d8a487c804b8b71475cf60cffa2 WHIRLPOOL 48c847f2da12c7869713de21da76d96630d36df03c6d139f38f8290743f547955008682fc57bcfdb3b16c8f8a081e686e6568eaa9d53902d6b1db3da47196613
+EBUILD argyllcms-1.8.2.ebuild 2037 SHA256 2b67309340f719d4e97f01401e6edbb163535cad561ab39fd86fc63d6522f242 SHA512 f9630b84d345c2497fd6669aa8607e2a53575fcae9c5d970303a6cc6f4f84c22e24eb58c783536eda1edad351b993e93141123f69bb94222a95ed407978c8801 WHIRLPOOL 871b49e38063a0167fc68675178763a0e7be21c85f669052736c0c505709d5f95a299522ca3f42f9cad0b75f1d47229c72bfe7ae9c98a951901a97bf9c326007
+EBUILD argyllcms-1.8.3.ebuild 2051 SHA256 5a41ccba98d05032eb542ecc8f27f0ac50185c8edfe1bdef158823d29ad0cc14 SHA512 312c89bc98791a3a9d3909cae46098403ddcee92fe330caa5e53e088d102f6c5dc91e6ef044421b103e57d2c73cc4045485e787e70a80dc4737e7143f020ea06 WHIRLPOOL b49003b90e514c3ef4cffa44dae6f577628b90a5374896a90219a25472f9db82ad3a4aa8ecd8a62bf547773d1919715f13acbec2c1d36b5890c79290b19df4e0
+EBUILD argyllcms-1.9.1.ebuild 2087 SHA256 6700425b72b5f9b1a4459fa3d71823a9963f475581bf406b40847aab1be675ea SHA512 ee83d3157337c8358908105e91ac82940cd955c4372f0afcaf295cd4b5e4cb5ae1e5a1117bf7cec1207ac806cae1a74b96e276775f95e41538673ef88967ab75 WHIRLPOOL 39f3d89505dd519619acd835c6cec7c9c428f7d1257cc9fad8feb018da71c647c7999a01c66d4cbd123888d93ddc79b0f3b86985e26fe7fcb37bd0ea764181b4
+EBUILD argyllcms-1.9.2.ebuild 2091 SHA256 b6e30a8f265f2dd6b05c89a062455913b3921f627b7cd01fd4be1aa392407bbe SHA512 965976aa88fea6cf5455a778e0e36559db03e7a073d05d65f1fe5305b5d9ac86652da77ed2085d38a5d025349ead3248e5e041aeabbec4446aef348b5339b950 WHIRLPOOL cf537d71c1ab6d8cdf161d2c3da8fc2d93a3674c8c52ff116c7b27312d66238484873ad434b43749527d67c52b2822b723e9a0d43bccaed7aa17b86d71a9079f
+MISC ChangeLog 5289 SHA256 a796e426f5e404d43883414de187655a84877f15ad989279e1deb19daf2e9bc8 SHA512 d367cfc1c007a05f61669169d18583cb0b21a7ff4bb26990cc3daab345339ac74c1989df2593fc8e0522bdce55e2f856ff40241d9de9bbfd12233e7cd97069af WHIRLPOOL 457292142ee5e900ee54bbf7f42ade7933dd61d51ef443f2bc56497010e09d821890c515138bfcdaf9cd391aad76c15e8f841648def32c0c2692c5dbdd71324f
+MISC ChangeLog-2015 7367 SHA256 f1c31555d0abb29fbe5fd4de4613678503f70c96dd4b88285b138f40a9096a3d SHA512 71d4b83c83ea2cfa7b22d8c0279f0ab20297234302fbefe175d7ece4f352e9cf8c1c15c0fd6c73b5dbfc920451b5bc3131ebdfe725e299a9fde6802269c01578 WHIRLPOOL 168bd18956259166e384210501e6eef741c84528bc3c211ada7fd1125234f6e7cc8e004d0b930f1126015a71dc4e4a2ce4de912bda94f447894c9d0ae632cdf6
+MISC metadata.xml 252 SHA256 f09077829bd604b153aecd586b23fe39af2279d2b5871eb74391c7b7e9496404 SHA512 6a56c24e3731dd9512fa264d3dce1fe36ace891a17394c483586e0be1fffd153e901228d3ee9c471a226b04cec27d3f78ed2de491e46238de4b06538dab7e724 WHIRLPOOL 5da21d058640f220853befb609832550c9078b8879264a87ffb4b845b89e557ae43f04975c4e7b65531b2b843f6a6cd5b139648b72574b555e8cf6610ffd610e
diff --git a/media-gfx/argyllcms/argyllcms-1.7.0.ebuild b/media-gfx/argyllcms/argyllcms-1.7.0.ebuild
new file mode 100644
index 000000000000..031d59b3ec5d
--- /dev/null
+++ b/media-gfx/argyllcms/argyllcms-1.7.0.ebuild
@@ -0,0 +1,90 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit base flag-o-matic multiprocessing toolchain-funcs udev
+
+MY_P="Argyll_V${PV}"
+
+DESCRIPTION="Open source, ICC compatible color management system"
+HOMEPAGE="http://www.argyllcms.com/"
+SRC_URI="http://www.argyllcms.com/${MY_P}_src.zip"
+
+LICENSE="AGPL-3"
+SLOT="0"
+KEYWORDS="amd64 hppa x86"
+IUSE="doc"
+
+RDEPEND="
+ media-libs/tiff:0
+ sys-libs/zlib
+ virtual/jpeg:0
+ x11-libs/libX11
+ x11-libs/libXau
+ x11-libs/libXdmcp
+ x11-libs/libXext
+ x11-libs/libXinerama
+ x11-libs/libXrandr
+ x11-libs/libXxf86vm
+ x11-libs/libXScrnSaver"
+DEPEND="${RDEPEND}
+ app-arch/unzip
+ dev-util/ftjam"
+
+S="${WORKDIR}/${MY_P}"
+
+PATCHES=(
+ )
+
+src_compile() {
+ # Make it respect LDFLAGS
+ echo "LINKFLAGS += ${LDFLAGS} ;" >> Jamtop
+
+ # Evil hack to get --as-needed working. The build system unfortunately lists all
+ # the shared libraries by default on the command line _before_ the object to be built...
+ echo "STDLIBS += -ldl -lrt -lX11 -lXext -lXxf86vm -lXinerama -lXrandr -lXau -lXdmcp -lXss -ltiff -ljpeg ;" >> Jamtop
+
+ append-cflags -DUNIX -D_THREAD_SAFE
+
+ sed \
+ -e 's:CCFLAGS:CFLAGS:g' \
+ -e "s:ar rusc:$(tc-getAR) rusc:g" \
+ -i Jambase || die
+
+ tc-export CC RANLIB
+
+ jam -dx -fJambase "-j$(makeopts_jobs)" || die
+}
+
+src_install() {
+ jam -dx -fJambase install || die
+
+ rm bin/License.txt || die
+
+ pushd bin > /dev/null
+ local binname
+ for binname in * ; do
+ newbin ${binname} argyll-${binname}
+ done
+ popd > /dev/null
+
+ use doc && dohtml doc/*
+
+ dodoc log.txt Readme.txt ttbd.txt notes.txt
+
+ insinto /usr/share/${PN}
+ doins -r ref
+
+ udev_dorules usb/55-Argyll.rules
+}
+
+pkg_postinst() {
+ elog "If you have a Spyder2 you need to extract the firmware"
+ elog "from the CVSpyder.dll of the windows driver package"
+ elog "and store it as /usr/share/color/spyd2PLD.bin"
+ echo
+ elog "For further info on setting up instrument access read"
+ elog "http://www.argyllcms.com/doc/Installing_Linux.html"
+ echo
+}
diff --git a/media-gfx/argyllcms/argyllcms-1.8.2.ebuild b/media-gfx/argyllcms/argyllcms-1.8.2.ebuild
new file mode 100644
index 000000000000..4cd03df13788
--- /dev/null
+++ b/media-gfx/argyllcms/argyllcms-1.8.2.ebuild
@@ -0,0 +1,91 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit base flag-o-matic multiprocessing toolchain-funcs udev
+
+MY_P="Argyll_V${PV}"
+
+DESCRIPTION="Open source, ICC compatible color management system"
+HOMEPAGE="http://www.argyllcms.com/"
+SRC_URI="http://www.argyllcms.com/${MY_P}_src.zip"
+
+LICENSE="AGPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~hppa ~x86"
+IUSE="doc"
+
+RDEPEND="
+ media-libs/tiff:0
+ sys-libs/zlib
+ virtual/jpeg:0
+ x11-libs/libX11
+ x11-libs/libXau
+ x11-libs/libXdmcp
+ x11-libs/libXext
+ x11-libs/libXinerama
+ x11-libs/libXrandr
+ x11-libs/libXxf86vm
+ x11-libs/libXScrnSaver"
+DEPEND="${RDEPEND}
+ app-arch/unzip
+ dev-util/ftjam"
+
+S="${WORKDIR}/${MY_P}"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-1.8.0-gcc5.patch
+ )
+
+src_compile() {
+ # Make it respect LDFLAGS
+ echo "LINKFLAGS += ${LDFLAGS} ;" >> Jamtop
+
+ # Evil hack to get --as-needed working. The build system unfortunately lists all
+ # the shared libraries by default on the command line _before_ the object to be built...
+ echo "STDLIBS += -ldl -lrt -lX11 -lXext -lXxf86vm -lXinerama -lXrandr -lXau -lXdmcp -lXss -ltiff -ljpeg ;" >> Jamtop
+
+ append-cflags -DUNIX -D_THREAD_SAFE
+
+ sed \
+ -e 's:CCFLAGS:CFLAGS:g' \
+ -e "s:ar rusc:$(tc-getAR) rusc:g" \
+ -i Jambase || die
+
+ tc-export CC RANLIB
+
+ jam -dx -fJambase "-j$(makeopts_jobs)" || die
+}
+
+src_install() {
+ jam -dx -fJambase install || die
+
+ rm bin/License.txt || die
+
+ pushd bin > /dev/null
+ local binname
+ for binname in * ; do
+ newbin ${binname} argyll-${binname}
+ done
+ popd > /dev/null
+
+ use doc && dohtml doc/*
+
+ dodoc log.txt Readme.txt ttbd.txt notes.txt
+
+ insinto /usr/share/${PN}
+ doins -r ref
+
+ udev_dorules usb/55-Argyll.rules
+}
+
+pkg_postinst() {
+ elog "If you have a Spyder2 you need to extract the firmware"
+ elog "from the CVSpyder.dll of the windows driver package"
+ elog "and store it as /usr/share/color/spyd2PLD.bin"
+ echo
+ elog "For further info on setting up instrument access read"
+ elog "http://www.argyllcms.com/doc/Installing_Linux.html"
+ echo
+}
diff --git a/media-gfx/argyllcms/argyllcms-1.8.3.ebuild b/media-gfx/argyllcms/argyllcms-1.8.3.ebuild
new file mode 100644
index 000000000000..9a8e15c5c76f
--- /dev/null
+++ b/media-gfx/argyllcms/argyllcms-1.8.3.ebuild
@@ -0,0 +1,91 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit eutils flag-o-matic multiprocessing toolchain-funcs udev
+
+MY_P="Argyll_V${PV}"
+
+DESCRIPTION="Open source, ICC compatible color management system"
+HOMEPAGE="http://www.argyllcms.com/"
+SRC_URI="http://www.argyllcms.com/${MY_P}_src.zip"
+
+LICENSE="AGPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~hppa ~x86"
+IUSE="doc"
+
+RDEPEND="
+ media-libs/tiff:0
+ sys-libs/zlib
+ virtual/jpeg:0
+ x11-libs/libX11
+ x11-libs/libXau
+ x11-libs/libXdmcp
+ x11-libs/libXext
+ x11-libs/libXinerama
+ x11-libs/libXrandr
+ x11-libs/libXxf86vm
+ x11-libs/libXScrnSaver"
+DEPEND="${RDEPEND}
+ app-arch/unzip
+ dev-util/ftjam"
+
+S="${WORKDIR}/${MY_P}"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-1.8.0-gcc5.patch
+}
+
+src_compile() {
+ # Make it respect LDFLAGS
+ echo "LINKFLAGS += ${LDFLAGS} ;" >> Jamtop
+
+ # Evil hack to get --as-needed working. The build system unfortunately lists all
+ # the shared libraries by default on the command line _before_ the object to be built...
+ echo "STDLIBS += -ldl -lrt -lX11 -lXext -lXxf86vm -lXinerama -lXrandr -lXau -lXdmcp -lXss -ltiff -ljpeg ;" >> Jamtop
+
+ append-cflags -DUNIX -D_THREAD_SAFE
+
+ sed \
+ -e 's:CCFLAGS:CFLAGS:g' \
+ -e "s:ar rusc:$(tc-getAR) rusc:g" \
+ -i Jambase || die
+
+ tc-export CC RANLIB
+
+ jam -dx -fJambase "-j$(makeopts_jobs)" || die
+}
+
+src_install() {
+ jam -dx -fJambase install || die
+
+ rm bin/License.txt || die
+
+ pushd bin > /dev/null
+ local binname
+ for binname in * ; do
+ newbin ${binname} argyll-${binname}
+ done
+ popd > /dev/null
+
+ use doc && dohtml doc/*
+
+ dodoc log.txt Readme.txt ttbd.txt notes.txt
+
+ insinto /usr/share/${PN}
+ doins -r ref
+
+ udev_dorules usb/55-Argyll.rules
+}
+
+pkg_postinst() {
+ elog "If you have a Spyder2 you need to extract the firmware"
+ elog "from the CVSpyder.dll of the windows driver package"
+ elog "and store it as /usr/share/color/spyd2PLD.bin"
+ echo
+ elog "For further info on setting up instrument access read"
+ elog "http://www.argyllcms.com/doc/Installing_Linux.html"
+ echo
+}
diff --git a/media-gfx/argyllcms/argyllcms-1.9.1.ebuild b/media-gfx/argyllcms/argyllcms-1.9.1.ebuild
new file mode 100644
index 000000000000..e8f5ffb41b8d
--- /dev/null
+++ b/media-gfx/argyllcms/argyllcms-1.9.1.ebuild
@@ -0,0 +1,93 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit eutils flag-o-matic multiprocessing toolchain-funcs udev
+
+MY_P="Argyll_V${PV}"
+
+DESCRIPTION="Open source, ICC compatible color management system"
+HOMEPAGE="http://www.argyllcms.com/"
+SRC_URI="http://www.argyllcms.com/${MY_P}_src.zip"
+
+LICENSE="AGPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~hppa ~x86"
+IUSE="doc"
+
+RDEPEND="
+ media-libs/tiff:0
+ sys-libs/zlib
+ virtual/jpeg:0
+ x11-libs/libX11
+ x11-libs/libXau
+ x11-libs/libXdmcp
+ x11-libs/libXext
+ x11-libs/libXinerama
+ x11-libs/libXrandr
+ x11-libs/libXxf86vm
+ x11-libs/libXScrnSaver"
+DEPEND="${RDEPEND}
+ app-arch/unzip
+ dev-util/ftjam"
+
+S="${WORKDIR}/${MY_P}"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-1.8.0-gcc5.patch
+ )
+
+src_compile() {
+ # Make it respect LDFLAGS
+ echo "LINKFLAGS += ${LDFLAGS} ;" >> Jamtop
+
+ # Evil hack to get --as-needed working. The build system unfortunately lists all
+ # the shared libraries by default on the command line _before_ the object to be built...
+ echo "STDLIBS += -ldl -lrt -lX11 -lXext -lXxf86vm -lXinerama -lXrandr -lXau -lXdmcp -lXss -ltiff -ljpeg ;" >> Jamtop
+
+ append-cflags -DUNIX -D_THREAD_SAFE
+
+ sed \
+ -e 's:CCFLAGS:CFLAGS:g' \
+ -e "s:ar rusc:$(tc-getAR) rusc:g" \
+ -i Jambase || die
+
+ tc-export CC RANLIB
+
+ jam -dx -fJambase "-j$(makeopts_jobs)" || die
+}
+
+src_install() {
+ jam -dx -fJambase install || die
+
+ rm bin/License.txt || die
+
+ pushd bin > /dev/null
+ local binname
+ for binname in * ; do
+ newbin ${binname} argyll-${binname}
+ done
+ popd > /dev/null
+
+ dodoc log.txt Readme.txt ttbd.txt notes.txt
+ if use doc; then
+ docinto html
+ dodoc doc/*html doc/*jpg doc/*gif
+ fi
+
+ insinto /usr/share/${PN}
+ doins -r ref
+
+ udev_dorules usb/55-Argyll.rules
+}
+
+pkg_postinst() {
+ elog "If you have a Spyder2 you need to extract the firmware"
+ elog "from the CVSpyder.dll of the windows driver package"
+ elog "and store it as /usr/share/color/spyd2PLD.bin"
+ echo
+ elog "For further info on setting up instrument access read"
+ elog "http://www.argyllcms.com/doc/Installing_Linux.html"
+ echo
+}
diff --git a/media-gfx/argyllcms/argyllcms-1.9.2.ebuild b/media-gfx/argyllcms/argyllcms-1.9.2.ebuild
new file mode 100644
index 000000000000..4e1b6da07f5d
--- /dev/null
+++ b/media-gfx/argyllcms/argyllcms-1.9.2.ebuild
@@ -0,0 +1,93 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit eutils flag-o-matic multiprocessing toolchain-funcs udev
+
+MY_P="Argyll_V${PV}"
+
+DESCRIPTION="Open source, ICC compatible color management system"
+HOMEPAGE="http://www.argyllcms.com/"
+SRC_URI="http://www.argyllcms.com/${MY_P}_src.zip"
+
+LICENSE="AGPL-3"
+SLOT="0"
+KEYWORDS="amd64 ~arm64 hppa x86"
+IUSE="doc"
+
+RDEPEND="
+ media-libs/tiff:0
+ sys-libs/zlib
+ virtual/jpeg:0
+ x11-libs/libX11
+ x11-libs/libXau
+ x11-libs/libXdmcp
+ x11-libs/libXext
+ x11-libs/libXinerama
+ x11-libs/libXrandr
+ x11-libs/libXxf86vm
+ x11-libs/libXScrnSaver"
+DEPEND="${RDEPEND}
+ app-arch/unzip
+ dev-util/ftjam"
+
+S="${WORKDIR}/${MY_P}"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-1.8.0-gcc5.patch
+ )
+
+src_compile() {
+ # Make it respect LDFLAGS
+ echo "LINKFLAGS += ${LDFLAGS} ;" >> Jamtop
+
+ # Evil hack to get --as-needed working. The build system unfortunately lists all
+ # the shared libraries by default on the command line _before_ the object to be built...
+ echo "STDLIBS += -ldl -lrt -lX11 -lXext -lXxf86vm -lXinerama -lXrandr -lXau -lXdmcp -lXss -ltiff -ljpeg ;" >> Jamtop
+
+ append-cflags -DUNIX -D_THREAD_SAFE
+
+ sed \
+ -e 's:CCFLAGS:CFLAGS:g' \
+ -e "s:ar rusc:$(tc-getAR) rusc:g" \
+ -i Jambase || die
+
+ tc-export CC RANLIB
+
+ jam -dx -fJambase "-j$(makeopts_jobs)" || die
+}
+
+src_install() {
+ jam -dx -fJambase install || die
+
+ rm bin/License.txt || die
+
+ pushd bin > /dev/null
+ local binname
+ for binname in * ; do
+ newbin ${binname} argyll-${binname}
+ done
+ popd > /dev/null
+
+ dodoc log.txt Readme.txt ttbd.txt notes.txt
+ if use doc; then
+ docinto html
+ dodoc doc/*html doc/*jpg doc/*gif
+ fi
+
+ insinto /usr/share/${PN}
+ doins -r ref
+
+ udev_dorules usb/55-Argyll.rules
+}
+
+pkg_postinst() {
+ elog "If you have a Spyder2 you need to extract the firmware"
+ elog "from the CVSpyder.dll of the windows driver package"
+ elog "and store it as /usr/share/color/spyd2PLD.bin"
+ echo
+ elog "For further info on setting up instrument access read"
+ elog "http://www.argyllcms.com/doc/Installing_Linux.html"
+ echo
+}
diff --git a/media-gfx/argyllcms/files/argyllcms-1.8.0-gcc5.patch b/media-gfx/argyllcms/files/argyllcms-1.8.0-gcc5.patch
new file mode 100644
index 000000000000..28067455c33e
--- /dev/null
+++ b/media-gfx/argyllcms/files/argyllcms-1.8.0-gcc5.patch
@@ -0,0 +1,20 @@
+Description: Fix FTBFS with GCC 5
+Author: James Cowgill <james410@cowgill.org.uk>
+Bug-Debian: https://bugs.debian.org/777779
+Forwarded: no
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+--- a/icc/icc.h
++++ b/icc/icc.h
+@@ -100,7 +100,11 @@
+ #define CF64PREC "LL" /* Constant precision specifier */
+
+ #ifndef ATTRIBUTE_NORETURN
++#ifdef _MSC_VER
+ # define ATTRIBUTE_NORETURN __declspec(noreturn)
++#else
++# define ATTRIBUTE_NORETURN __attribute__((noreturn))
++#endif
+ #endif
+
+ #else /* !__STDC_VERSION__ */
diff --git a/media-gfx/argyllcms/metadata.xml b/media-gfx/argyllcms/metadata.xml
new file mode 100644
index 000000000000..7d273a80ff68
--- /dev/null
+++ b/media-gfx/argyllcms/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 type="person">
+ <email>voyageur@gentoo.org</email>
+ <name>Bernard Cafarelli</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/media-gfx/arss/Manifest b/media-gfx/arss/Manifest
new file mode 100644
index 000000000000..dcdc2cc66e6d
--- /dev/null
+++ b/media-gfx/arss/Manifest
@@ -0,0 +1,6 @@
+DIST arss-0.2.3-src.tar.gz 17597 SHA256 e2faca8b8a3902226353c4053cd9ab71595eec6ead657b5b44c14b4bef52b2b2 SHA512 7ef7115b310c9f4ecb7bdc8f34fb1afadabadb56d50ddef27a7688fd28af511ebaa1468f2c11a91077b8197027f9e31333c22d6b5f39d2a35d7b7dfc5b90658d WHIRLPOOL 40c9ee69cde4eb55b85f5ace0f9b277ef45b517a61b7da7744b547099d1f87a954d10e9024d9df94aa33f54cd6a8e4a5d526680e593955c1f4fb88ff52aa9603
+EBUILD arss-0.2.3-r1.ebuild 489 SHA256 153e6de54e655608cf62610219e02cb628d5ece2673972a9bca0b0a2c5467e85 SHA512 cafea04fc6e0b34ef49f81c69b776af6c1e9535cbc3ce4650c0b8e285b791003ea0b10e6be894a12d8ca50c7e68bf41d6d7f615cc82086b127aef3e85b0e915c WHIRLPOOL 5583ad1be52fc96a350ea0ccb8bbcf7e18cdbc8914c4632c54a4b31ecad41c6ea1adb0bda175238bf7847d0bb6f22f237a73bd5f7746376bfab64daa3f30e314
+EBUILD arss-0.2.3.ebuild 483 SHA256 8434759050aaec88ae9c41965e74b63abea6148d00f34cacfc86ac796e0d0fa4 SHA512 1b18c0df8b30bd0c6d8e897f6922c0968106754da4d747fca47d8d6a5b8157f4751c79c1288ae5816af887940e9bf911773604e31a33c81dc26bca755189eba1 WHIRLPOOL 1150b511e68b010a86ab93cb80aee82351ac24ecc2f525a45eebd65b554b95677205b95442d54294de3d8b5f8d3f27f330432cd03742eb35c10b43f1e729485d
+MISC ChangeLog 2776 SHA256 f1d2381dfaf3552c4c1868801cc0672bfbc9a071313f2daaa7c0a0888b4e3153 SHA512 1440c908a7857d5dbb3c4160670c76363dd475c5d1ff072b3913d73067cb29d285bb04664a844f37cf26edb38455893d105afec8c9d45e9e84d0e79bd101d5b2 WHIRLPOOL 89f1671ba0a8e87ca637234520c96d36369f1e8fad2ed480d7299776744327c8f169256120e56043509c2b32939fd310317260d1fe69f1e6f05868d35d0d7ddb
+MISC ChangeLog-2015 728 SHA256 4e3752054a0248c370471c7a11a5807d577569daf4393f53058c45ff3f8d9d72 SHA512 66eb37bb3eb651cf947b16267647d452c2c5804d67d9b2a33381ce781a60fd2e0ed3899a595f6d048023c158e173781b2df902b673ac426f7b217a2cf6c37690 WHIRLPOOL aacf15ed5c0556fa52d6a0098c39c51915ee636c98d99b325cd5d7ef7e9afa7a5d110b5aca9a0aca8fd280aa520652fe9affae833c919d93694328d860c4a4bf
+MISC metadata.xml 241 SHA256 2214fd764d98d55f20f303fb375e92cb22442a04c597b9b1e434d7b9a4addd5e SHA512 0993824e2e047f0cb6f62a6fbe1a9519c303a1bca222e3e8cd72640ea99d1b17dc3a7fb795fafc7d0ebd075b39b118e8249ade02e3683186f4fa2f6c01c40730 WHIRLPOOL 67c5fbd441ce97c96763e144a1acf313cdb8080f2fff523aeec3720735a6adb486adbaecd019f6d1a680c46faba6e6ef81fc8460cca9c0743bddd720e22dd8c8
diff --git a/media-gfx/arss/arss-0.2.3-r1.ebuild b/media-gfx/arss/arss-0.2.3-r1.ebuild
new file mode 100644
index 000000000000..955a208de675
--- /dev/null
+++ b/media-gfx/arss/arss-0.2.3-r1.ebuild
@@ -0,0 +1,24 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+CMAKE_IN_SOURCE_BUILD="true"
+MY_P=${P}-src
+
+inherit cmake-utils
+
+DESCRIPTION="Analysis & Resynthesis Sound Spectrograph"
+HOMEPAGE="http://arss.sourceforge.net"
+SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE=""
+
+DEPEND="sci-libs/fftw:3.0="
+RDEPEND="${DEPEND}"
+
+S=${WORKDIR}/${MY_P}/src
+
+DOCS=( ../AUTHORS ../ChangeLog )
diff --git a/media-gfx/arss/arss-0.2.3.ebuild b/media-gfx/arss/arss-0.2.3.ebuild
new file mode 100644
index 000000000000..1b79cb1d088b
--- /dev/null
+++ b/media-gfx/arss/arss-0.2.3.ebuild
@@ -0,0 +1,24 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+CMAKE_IN_SOURCE_BUILD="true"
+MY_P=${P}-src
+
+inherit cmake-utils
+
+DESCRIPTION="Analysis & Resynthesis Sound Spectrograph"
+HOMEPAGE="http://arss.sourceforge.net"
+SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE=""
+
+DEPEND="sci-libs/fftw"
+RDEPEND="${DEPEND}"
+
+S=${WORKDIR}/${MY_P}/src
+
+DOCS=( ../AUTHORS ../ChangeLog )
diff --git a/media-gfx/arss/metadata.xml b/media-gfx/arss/metadata.xml
new file mode 100644
index 000000000000..1f6ade8f85de
--- /dev/null
+++ b/media-gfx/arss/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-needed -->
+ <upstream>
+ <remote-id type="sourceforge">arss</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/media-gfx/asymptote/Manifest b/media-gfx/asymptote/Manifest
new file mode 100644
index 000000000000..b0e5f47299b2
--- /dev/null
+++ b/media-gfx/asymptote/Manifest
@@ -0,0 +1,26 @@
+AUX 64asymptote-gentoo.el 337 SHA256 28dde57a1b6b39e583739c387eaef205dc16eea97c5980fddd2e3d0dd7023ed3 SHA512 c8c74d5464f500e9bc3ca2fd89065e4f68a834c1b82a444820efd70abf9d2bd7c52ecbecd7ea5fad916259512acf4aedf8aed803a707733121211e59ef300c86 WHIRLPOOL 895352207681d02e67a81bbb7b35ee22730eaf14d385e5b634a8a939cc187d14fc72fd9ce7146c7a4e10a9b66835b11b1e64f20e9e3a10dab7004f6e0284b3a4
+AUX asy-ftd.vim 60 SHA256 c766fccb0e3e43a6fb78eaa56cf6c45398d48b08566ea4794726f4a6ae3c9dc1 SHA512 f4b62341f1482386d3e402f9d70a0f6b4c103a412a63dd8947aa45a5d43f12970902615b6c13e8cd8123f1cd44bf72e4204118d3bcfa7969fce078924bf150fd WHIRLPOOL 5cf295a065ef2b1fd3ffae13cf60b76f31b62835ac24c580ba31e2c7159d65cb763809c1c3536b67d8ae5e70062bbe312c2f216cf8ac3717dd83d8064d1b7401
+AUX asymptote-2.32-configure-ac.patch 1124 SHA256 9c18c6f135fdc0acb04bd3ee54eaba22bb7acd529578e8deadba3f1d1bd248aa SHA512 507b66175d69c43fe58cf7a856336c461f9b7a0f09edae99ac6cbeb648f1d5f1881a6a2aa1f6a12a90d381aff787e2e0a955a1a342b47aedb8b415e1498c9347 WHIRLPOOL 9b69c05a64fb94195476749a5aa53b301b8c5de232eddc2be95a8fd72fe5d15992cfa7c85927f443e4f2a23eac3bd7d437e4713ebd5269066a636384b3d8d942
+AUX asymptote-2.32-ghostscript-9.15.patch 906 SHA256 d2cb6119969ed17f07b09a5a348698f51fc8f86b11e8f3d9b0e4e9bd50af08e2 SHA512 d5d40d10cead93f73755599aeb0177e65c9d34855b9889cdd603d7334c771b53132acc46c199c872d46b66f541f31326fe5747cd2cc60529b5051cf29e09d904 WHIRLPOOL 3a969631d6bb295d9ee912be7063d5d0ae8a50467159a824b278cd0cc4bc1f577b97a45a298ecf18fbeb79f25ff547316a8f408b8c0839c4001d6d8c36cc2683
+AUX asymptote-2.32-info.patch 436 SHA256 ff2cac5daac0c4efa5d2375cd440791d2843590d07f39e3808b034732e8a49ee SHA512 55283a8103625f1aee32ed3b8b235ff4af6350a2879a9c1289779a9a37ab0d76446dd3b17b731e9e1b8d1bb1c5e37c6c738eb193f00df89ef22b08b084e2ae36 WHIRLPOOL d5b2d599e033eab06e1d96d697f83a1f86e637dc2b613a1ba0ad7b7f2cc3b107cecddf8703c1f4c9fcfae76046806bbdec617dde2acbf02f4474bfd964a0b3cc
+AUX asymptote-2.32-xdg-utils.patch 744 SHA256 c86323f54b475641e62047605ada38c7749a60990fde1a81b589f74a9f9c02d0 SHA512 972be61509145f61537a0b8eab79a7f3b5f866e790bf9b18066235c906ed29621cd32dd0d894458221f3fb2c28ab67199139ba7f8e4753d2b20d5f1f07435b9b WHIRLPOOL 249514ce515990dec942a241a2cdd0269bef07f651a4b1c08c7440eaf7bb7e40d417f9b4629d7fe8ba4cf1514c718c4ed78a3ada61762121c41b49687fffcd46
+AUX asymptote-2.36-configure-ac.patch 1124 SHA256 6dad1267500d06b129e115b470a3a0d7c15f40248684137a28060b76e73092f3 SHA512 3ba2f8290d04f5e7ebb0d0aba4fb8a040b332a5992099d6cef525cc4d1566d4c9a69b7e3ab09bd6b1e5c567dbe266a3f4115f898344f5e3e9507a1ff6916b2c6 WHIRLPOOL 1c851a8745fb5bcedd2ac8340b272e582f07f4f4b30e24471ee6470ee697f7cd95e5cf6d58cdc8e711481cb6b943a9e547631694221cee8d18d62f55b471402f
+AUX asymptote-2.36-info.patch 436 SHA256 c0e41508f5456cce92c3fee5d892877f3b9f91549eda61575b684fe1d24bb2e6 SHA512 cf98ee0840d260ad5e80090405934d80847ae0f7ad2237a7c12cbcccd282b62c2e455b27d60b81bb54f0a7bab3cb148e273d6e5e19b180e19a6c494eb6835032 WHIRLPOOL 99e6824bb1f02f29a3d2aa1f88e1e9ad9436a71d1b2eaa5419e8434a8fb3fd46476fb5610a4b91f99d9d4fee8d9ab23d9c7b25f82317b49152ce614db2cf2657
+AUX asymptote-2.36-xdg-utils.patch 744 SHA256 ad6c438c59e6e797aefbe2ad10793a4ffd87b73e7d8a07c887e58115f6db8e81 SHA512 8752e8b107907f06ba03916aa61ec0ba5ca5d7b5505f7dff482f722962e17f42dbf22acbba8d2b54ead8fc6b3cc57aadb645d3c3a51170225dc84784333d7e81 WHIRLPOOL 979be4dd968a073f9c57b5fc02cda8611942888d767dd37b382ed7be04dcac1c09f02f2e9f22131ea82a74befdd7976b5983e0d70db31fdb94e394469011d6bf
+AUX asymptote-2.38-configure-ac.patch 475 SHA256 af34e95b049945a4c92ac1017f96280262ecffe36a758a8661167a808f990714 SHA512 64627a98caa1d03a274d2e9f009513f1d0cf3b5028c169ff851079a9bf836920cd196a1fd2cf6a31e0f9d0a1e8cd90bd17641fff7daaf478fbceb54c49e2b28e WHIRLPOOL 66b04fcdd7bbb79668a48ba819160eeae44db60be0cbf6532c870f01a6e32a710c69c94452d2c4d826a42cbfa8a10707ce4ffef5dc8a0cca46d6104afecc1ce4
+AUX asymptote-2.38-info.patch 436 SHA256 038acbd6ff38034ab5de8ff85211d06b87ad81d259c831f433efcade037fddb4 SHA512 9980cf8c2c2178d60cd3bae04046f985d42e12322ad480e070a6dd66f56b3704ae64687b8d9e6e912a097fcd10042983a3a7e014c5c3464476ab9b7fc87ba55e WHIRLPOOL fae6b6128239fd564fe5944c3319a736c90293dd5556b1cb8d73c30ddf53ae6976fce99088ac579a9a4aeccac0823b4e6d1d20f504d7721e8a0db2f9236e6751
+AUX asymptote-2.38-xdg-utils.patch 744 SHA256 3f95c9cc59675c397189c0348859cd4672f5781caf59126b1ac073bd964c0b08 SHA512 3b3e2398d705128c2b885ac43cac044c97795c776452687ac33dec336ec32bdc81183e15c717693aa4924620230abb651a6a92775b0f9ec08de5b81a1e925919 WHIRLPOOL 0af2754fba57d9fdf823abfa17897145c570c6a6038e4bc37a05c51c17e55c60333407a81efc962e03cdd50102e4f8ff3aa879356f7d38bf2677859825874b0e
+AUX asymptote-2.41-configure-ac.patch 475 SHA256 4f59616116fe2249884031c8e5214afc8ff39d788383a765c29b9749d072eba6 SHA512 39403fbd218ca5a6c3a565e6f1955467c8e11296c69acfe529aca5566e03bfee395c360746288fe09d768c2cabd46faaa6efcb7e57595f0dc784b4ef2e0c416a WHIRLPOOL 7219bb876fedae8283e9770e3f338f0d4d8a20fa2bd34590797eecdf70d87d307d00fa8f502572463d263baeef18e2199924e1c2bcfd7b7591b2fcfba6a3bc99
+AUX asymptote-2.41-info.patch 436 SHA256 e92ddd03ecc3ed2aea37566912cb885370daa8691e62372e86281b2cd1e484e8 SHA512 7d3ae35b2eb2b226ae3b7326d2e7d50524402d49be90303035a2872b5a109bb104f53376b9da681cc8d6922ddadec6a606540842745109edd3b55ce50725a6fb WHIRLPOOL 17dfa7c8a791f9a1d797bc81fd21e0b3c5c3ddd0333e2404100ada628a3776886caa9d31c24275dbdccc30896324918966c028960ebea9578717c89950efab5d
+AUX asymptote-2.41-xdg-utils.patch 744 SHA256 16e222d9d039645aca3c3bf015d509fa723d31362dc2ed3ae71138b86b39b38a SHA512 370fb078d926185ab7e10cbbc8afc4bfe0829e682fe89729a5d41bb3bda5dda96711f1fdcb99b9da69606563ce120383e5a1211372f3d8dd54ea3ddfc0838d7f WHIRLPOOL 10008a622cbe9b995f2d2e701796bea989c9b4e9fa71bf0ae417a18d1c909e73c2185a87e5a871eb5c6486fbee6940a3b1db243967ef0c52b274b9208c1c38f2
+DIST asymptote-2.32.src.tgz 1794495 SHA256 2035035e02774598312d5588da2685d20fb85a378ea2bbe48b825c5442b18fa5 SHA512 a0663f1768cb4340bb6e9224d4fbc6e2f8b41501b1f59793d84db2e0f99b9ff071d3dd8fa5c4715c1874f8ef1af713a54b27de37ff40d8ca042f0f48579a57f9 WHIRLPOOL 38a8aaa581acb07bcc7ac0c802222501acf77abaf609d5ae758d9b5668ac6b8b1343640259cc3948e62a39862404709ddb64b4bbd11bcf20dbb7ce29d4fc25d1
+DIST asymptote-2.36.src.tgz 3449528 SHA256 cd3276cba498965f8c9e6c56b157d2f22304b0453d175bd9017b4c62b3fd1750 SHA512 18b079829f90561f88ebde0391f5d842d89ea28bf7b00306b908faeeca21b421127423af3a335bab9afa22036b3d93611702a579513d8a458be2f8cdd542222f WHIRLPOOL 532b221d619c8af077e0ef4cda960e6bc1b2c2eab263cfa1eb729df5928f7ae1d9e05459efee18a5a4fa4464b0b3aacd7f5ab42076e8af4e1fc3745f75dd9b6c
+DIST asymptote-2.38.src.tgz 3460789 SHA256 e9c6dbb3fed27cbaf9ba01fd2264f0cff51781466acb29e76418bed801debcb7 SHA512 c54974a0476a33112c7913cfd8962e80a5ff10bc11f65b59a2bc0641f3c2fcfe69ba4592d84b33078d85c43fab7261670195766eca6419f6fd4923fd1ace6904 WHIRLPOOL f1d0a31fe25046c072a4963f64c92f718d980712f46637db65a5664c0a94c1eba162902c9ec4e787685f2250158ecffa9e834564ecbd69c6e3b948c5ad7d7a24
+DIST asymptote-2.41.src.tgz 3516426 SHA256 1d6e7e89fb5293fad7d836fb0477f785a113f689bd71f37a05af18ff0c5eeef0 SHA512 93f737a44b085c2290c4553c765cf49679820e6623bc5b6d0229818409868876275d6f0571abeb76033955fa95ee594e37d10c9901c54755b085e36760fd96cb WHIRLPOOL e75a6a2b4e29c3388f221b86958b6564edb14a46dad014acdc81554e1f0ac6b889c757f5a0626af6fb46783bf02393f73e92d2209080a31d665bc23550714a39
+EBUILD asymptote-2.32.ebuild 4691 SHA256 6254347d0375c6bfafe9c2d77cd9097fd89a6df6512382daeaf20aa4508cac37 SHA512 542341209f454e6c6bb7c38b2efc3075da2a50b2702999e3d5286aec60593264145176b47fca8dad5588e22bc957d069441f2389c074b95619ff2f50dd6ebcf4 WHIRLPOOL cf78bdeb62f783f8bda5db4c1f48528679837740dcc11de1d9ae7b49cce8364368ce8236dcc916b6e1a85f20cd0ce205b934f80aa7aa09c85e6a53c396705787
+EBUILD asymptote-2.36.ebuild 4557 SHA256 93f08f61479f5acb247958512d20b888ee01043ba191b5f62ae864795c8fb27f SHA512 818d94470a0f3b5efa9caea2a505029f3bd9424471e50192b048894ab073146bb455e00578a2e691c5ed3633a037e3fcf2983d1c1c2f81a72db4f7b16b3118ef WHIRLPOOL c0cdad138b661de2438db5e63006cdc5e77b2c76dc501527a0786a11011588adb3690f5acc364fc454b45426e1db3f8648f090ec3dc441f545afd38ccdd602ce
+EBUILD asymptote-2.38.ebuild 4521 SHA256 7bdb0c46047997a43335348457b11cecfbf82cfe2e5e16ffef710f618c8851be SHA512 4580c1f6986557979a24a70a8a2f6e9450abc2edb8f0113ae4728e7af66086d1ec3d1ed40a11f8fc5dec1b9b896db8a9dc9e423c26f9c4909aa5bd1bf15df63b WHIRLPOOL 7517f968fc8bb8725caad371caef3c0ed38e6bc482a0cddc177e7fb97fd13185e5fa7050578a3e05087e0366e5a9f777f2730fef51dfc171ce2b4927b5e58ffb
+EBUILD asymptote-2.41-r1.ebuild 4580 SHA256 040c1fcedcef34d452304eeba9103e0092cf2d951738206ba11de775bf609ea5 SHA512 926aca84b8cff2122a1e93a25e11d7bbc6774f1902ad8234d322be41a688961d6c9641695dbc341bb7ade014ddc46a78884772a500948620da4c5ae3714638cf WHIRLPOOL 08ea9564f28fe065922267ae970aa8c2826e6c4e63816a8b186f2c83c241254202ef1aa9169b14993b0816573bb12b7e5126009c26b389fb31c1022a5257cf2a
+MISC ChangeLog 5493 SHA256 42c19752496aa3f28c7c4ad7539a72e14c8d3c24ec96c4a19a584c9ec42f1a81 SHA512 bea0953d358fb283d6ff7daabdde77b39c2ee1c81f133ee75d9760725a38d0fb8e5828b6d2bbb69b24e5b7b9e5b0535c2a0f07983079979a50ac49b8bcb6dca6 WHIRLPOOL 944056444f36cb4a510f95361c4bd73be17db3f6a196b37b868b16fdb9d75c5ccd8f5f2c61d2377856135e78ff7d1f55a0d7d7d363f637d2eb7d28af6c6a093e
+MISC ChangeLog-2015 31345 SHA256 d8ac4e20f284e917db6fd098648757c19bb67c04036d706d848d799ebc7497c2 SHA512 a10cd2714c8efb07b2d7ef9538951faace408525becbd7b203fa36241c24475cc6d8714f8246a813be4cceca48c71de421aaebd336c1f349bf648d7d176b5908 WHIRLPOOL 67ed17ab8d83fac0512dda190408d7f25ec4789be94d687849e04fbde69f45614b886e4dfc9b89e8e04b2839bfb110d6f2a5cfdb9053ada736fde780b8477fe5
+MISC metadata.xml 1151 SHA256 30058a1aac7241ba11cea8839912fda208d83156f9769b57a877766bd5227328 SHA512 37a7c882ae951dee27c69937621d9385026ec2fb41d771010b48c07cf753fb5233c7edadf1dd937e9f6013c41406c0a3052a1b3d3493d7fa927bc1da9d6d8f3e WHIRLPOOL 173a1e3e82098ad3c846534101a5851d1b71b3d1ab9856a0e97168e49d3542e78c35cf70c236440589ea6a048316faa2c5550f7a8d9824b1559d6933d062d684
diff --git a/media-gfx/asymptote/asymptote-2.32.ebuild b/media-gfx/asymptote/asymptote-2.32.ebuild
new file mode 100644
index 000000000000..62de0fa52ae8
--- /dev/null
+++ b/media-gfx/asymptote/asymptote-2.32.ebuild
@@ -0,0 +1,213 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+PYTHON_COMPAT=( python2_7 )
+
+inherit autotools elisp-common eutils latex-package multilib python-single-r1
+
+DESCRIPTION="A vector graphics language that provides a framework for technical drawing"
+HOMEPAGE="http://asymptote.sourceforge.net/"
+SRC_URI="mirror://sourceforge/asymptote/${P}.src.tgz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="amd64 x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
+IUSE="+boehm-gc doc emacs examples fftw gsl +imagemagick latex offscreen +opengl python sigsegv svg vim-syntax X"
+
+REQUIRED_USE="
+ ${PYTHON_REQUIRED_USE}
+ offscreen? ( opengl )"
+
+RDEPEND="
+ >=sys-libs/ncurses-5.4-r5:0=
+ >=sys-libs/readline-4.3-r5:0=
+ imagemagick? ( media-gfx/imagemagick[png] )
+ opengl? ( >=media-libs/mesa-8 )
+ offscreen? ( media-libs/mesa[osmesa] )
+ svg? ( app-text/dvisvgm )
+ sigsegv? ( dev-libs/libsigsegv )
+ boehm-gc? ( >=dev-libs/boehm-gc-7.0[cxx,threads] )
+ fftw? ( >=sci-libs/fftw-3.0.1 )
+ gsl? ( sci-libs/gsl )
+ python? ( ${PYTHON_DEPS} )
+ X? (
+ ${PYTHON_DEPS}
+ x11-misc/xdg-utils
+ dev-python/pillow[tk,${PYTHON_USEDEP}]
+ )
+ latex? (
+ virtual/latex-base
+ >=dev-texlive/texlive-latexextra-2013
+ )
+ emacs? ( virtual/emacs )
+ vim-syntax? ( || ( app-editors/vim app-editors/gvim ) )"
+DEPEND="${RDEPEND}
+ doc? (
+ dev-lang/perl
+ media-gfx/imagemagick[png]
+ virtual/texi2dvi
+ virtual/latex-base
+ )"
+
+TEXMF=/usr/share/texmf-site
+
+pkg_setup() {
+ (use python || use X) && python-single-r1_pkg_setup
+}
+
+src_prepare() {
+ # Fixing sigsegv enabling
+ epatch "${FILESDIR}/${P}-configure-ac.patch"
+ einfo "Patching configure.ac"
+ sed -e "s:Datadir/doc/asymptote:Datadir/doc/${PF}:" \
+ -i configure.ac \
+ || die "sed configure.ac failed"
+
+ # Changing pdf, ps, image viewers to xdg-open
+ epatch "${FILESDIR}/${P}-xdg-utils.patch"
+
+ # Bug #322473
+ epatch "${FILESDIR}/${P}-info.patch"
+
+ # Bug #528632 - fix from https://www.archlinux.org/packages/extra/x86_64/asymptote/
+ epatch "${FILESDIR}/${P}-ghostscript-9.15.patch"
+
+ eautoreconf
+}
+
+src_configure() {
+ # for the CPPFLAGS see
+ # https://sourceforge.net/forum/forum.php?thread_id=1683277&forum_id=409349
+ econf \
+ CPPFLAGS=-DHAVE_SYS_TYPES_H \
+ CFLAGS="${CXXFLAGS}" \
+ --disable-gc-debug \
+ $(use_enable boehm-gc gc system) \
+ $(use_enable fftw) \
+ $(use_enable gsl) \
+ $(use_enable opengl gl) \
+ $(use_enable offscreen) \
+ $(use_with sigsegv)
+}
+
+src_compile() {
+ default
+
+ cd doc || die
+ emake asy.1
+ if use doc; then
+ # info
+ einfo "Making info"
+ emake ${PN}.info
+ cd FAQ || die
+ emake
+ cd .. || die
+ # pdf
+ einfo "Making pdf docs"
+ export VARTEXFONTS="${T}"/fonts
+ # see bug #260606
+ emake -j1 asymptote.pdf
+ emake CAD.pdf
+ fi
+ cd .. || die
+
+ if use emacs; then
+ einfo "Compiling emacs lisp files"
+ elisp-compile base/*.el
+ fi
+}
+
+src_install() {
+ # the program
+ dobin asy
+
+ # .asy files
+ insinto /usr/share/${PN}
+ doins base/*.asy
+
+ # documentation
+ dodoc BUGS ChangeLog README ReleaseNotes TODO
+ doman doc/asy.1
+
+ # X GUI
+ if use X; then
+ python_scriptinto /usr/share/${PN}/GUI
+ python_doscript GUI/*.py
+ dosym /usr/share/${PN}/GUI/xasy.py /usr/bin/xasy
+ doman doc/xasy.1x
+ fi
+
+ # examples
+ if use examples; then
+ insinto /usr/share/${PN}/examples
+ doins \
+ examples/*.asy \
+ examples/*.eps \
+ doc/*.asy \
+ doc/*.csv \
+ doc/*.dat \
+ doc/extra/*.asy
+ use X && doins GUI/*.asy
+
+ insinto /usr/share/${PN}/examples/animations
+ doins examples/animations/*.asy
+ fi
+
+ # LaTeX style
+ if use latex; then
+ cd doc || die
+ insinto "${TEXMF}"/tex/latex/${PN}
+ doins ${PN}.sty asycolors.sty
+ if use examples; then
+ insinto /usr/share/${PN}/examples
+ doins latexusage.tex
+ fi
+ cd .. || die
+ fi
+
+ # asymptote.py
+ use python && python_domodule base/${PN}.py
+
+ # emacs mode
+ if use emacs; then
+ elisp-install ${PN} base/*.el base/*.elc
+ elisp-site-file-install "${FILESDIR}"/64${PN}-gentoo.el
+ fi
+
+ # vim syntax
+ if use vim-syntax; then
+ insinto /usr/share/vim/vimfiles/syntax
+ doins base/asy.vim
+ insinto /usr/share/vim/vimfiles/ftdetect
+ doins "${FILESDIR}"/asy-ftd.vim
+ fi
+
+ # extra documentation
+ if use doc; then
+ cd doc || die
+ doinfo ${PN}.info*
+ cd FAQ || die
+ dodoc asy-faq.ascii
+ doinfo asy-faq.info
+ insinto /usr/share/doc/${PF}/html/FAQ
+ doins asy-faq.html/*
+ cd .. || die
+ insinto /usr/share/doc/${PF}
+ doins ${PN}.pdf CAD.pdf
+ fi
+}
+
+pkg_postinst() {
+ use latex && latex-package_rehash
+ use emacs && elisp-site-regen
+
+ elog 'Use the variable ASYMPTOTE_PSVIEWER to set the postscript viewer'
+ elog 'Use the variable ASYMPTOTE_PDFVIEWER to set the PDF viewer'
+}
+
+pkg_postrm() {
+ use latex && latex-package_rehash
+ use emacs && elisp-site-regen
+}
diff --git a/media-gfx/asymptote/asymptote-2.36.ebuild b/media-gfx/asymptote/asymptote-2.36.ebuild
new file mode 100644
index 000000000000..ce68c0d99b83
--- /dev/null
+++ b/media-gfx/asymptote/asymptote-2.36.ebuild
@@ -0,0 +1,210 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+PYTHON_COMPAT=( python2_7 )
+
+inherit autotools elisp-common eutils latex-package multilib python-single-r1
+
+DESCRIPTION="A vector graphics language that provides a framework for technical drawing"
+HOMEPAGE="http://asymptote.sourceforge.net/"
+SRC_URI="mirror://sourceforge/asymptote/${P}.src.tgz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
+IUSE="+boehm-gc doc emacs examples fftw gsl +imagemagick latex offscreen +opengl python sigsegv svg vim-syntax X"
+
+REQUIRED_USE="
+ ${PYTHON_REQUIRED_USE}
+ offscreen? ( opengl )"
+
+RDEPEND="
+ >=sys-libs/ncurses-5.4-r5:0=
+ >=sys-libs/readline-4.3-r5:0=
+ imagemagick? ( media-gfx/imagemagick[png] )
+ opengl? ( >=media-libs/mesa-8 )
+ offscreen? ( media-libs/mesa[osmesa] )
+ svg? ( app-text/dvisvgm )
+ sigsegv? ( dev-libs/libsigsegv )
+ boehm-gc? ( >=dev-libs/boehm-gc-7.0[cxx,threads] )
+ fftw? ( >=sci-libs/fftw-3.0.1 )
+ gsl? ( sci-libs/gsl )
+ python? ( ${PYTHON_DEPS} )
+ X? (
+ ${PYTHON_DEPS}
+ x11-misc/xdg-utils
+ dev-python/pillow[tk,${PYTHON_USEDEP}]
+ )
+ latex? (
+ virtual/latex-base
+ >=dev-texlive/texlive-latexextra-2013
+ )
+ emacs? ( virtual/emacs )
+ vim-syntax? ( || ( app-editors/vim app-editors/gvim ) )"
+DEPEND="${RDEPEND}
+ doc? (
+ dev-lang/perl
+ media-gfx/imagemagick[png]
+ virtual/texi2dvi
+ virtual/latex-base
+ )"
+
+TEXMF=/usr/share/texmf-site
+
+pkg_setup() {
+ (use python || use X) && python-single-r1_pkg_setup
+}
+
+src_prepare() {
+ # Fixing sigsegv enabling
+ epatch "${FILESDIR}/${P}-configure-ac.patch"
+ einfo "Patching configure.ac"
+ sed -e "s:Datadir/doc/asymptote:Datadir/doc/${PF}:" \
+ -i configure.ac \
+ || die "sed configure.ac failed"
+
+ # Changing pdf, ps, image viewers to xdg-open
+ epatch "${FILESDIR}/${P}-xdg-utils.patch"
+
+ # Bug #322473
+ epatch "${FILESDIR}/${P}-info.patch"
+
+ eautoreconf
+}
+
+src_configure() {
+ # for the CPPFLAGS see
+ # https://sourceforge.net/forum/forum.php?thread_id=1683277&forum_id=409349
+ econf \
+ CPPFLAGS=-DHAVE_SYS_TYPES_H \
+ CFLAGS="${CXXFLAGS}" \
+ --disable-gc-debug \
+ $(use_enable boehm-gc gc system) \
+ $(use_enable fftw) \
+ $(use_enable gsl) \
+ $(use_enable opengl gl) \
+ $(use_enable offscreen) \
+ $(use_with sigsegv)
+}
+
+src_compile() {
+ default
+
+ cd doc || die
+ emake asy.1
+ if use doc; then
+ # info
+ einfo "Making info"
+ emake ${PN}.info
+ cd FAQ || die
+ emake
+ cd .. || die
+ # pdf
+ einfo "Making pdf docs"
+ export VARTEXFONTS="${T}"/fonts
+ # see bug #260606
+ emake -j1 asymptote.pdf
+ emake CAD.pdf
+ fi
+ cd .. || die
+
+ if use emacs; then
+ einfo "Compiling emacs lisp files"
+ elisp-compile base/*.el
+ fi
+}
+
+src_install() {
+ # the program
+ dobin asy
+
+ # .asy files
+ insinto /usr/share/${PN}
+ doins base/*.asy
+
+ # documentation
+ dodoc BUGS ChangeLog README ReleaseNotes TODO
+ doman doc/asy.1
+
+ # X GUI
+ if use X; then
+ python_scriptinto /usr/share/${PN}/GUI
+ python_doscript GUI/*.py
+ dosym /usr/share/${PN}/GUI/xasy.py /usr/bin/xasy
+ doman doc/xasy.1x
+ fi
+
+ # examples
+ if use examples; then
+ insinto /usr/share/${PN}/examples
+ doins \
+ examples/*.asy \
+ examples/*.eps \
+ doc/*.asy \
+ doc/*.csv \
+ doc/*.dat \
+ doc/extra/*.asy
+ use X && doins GUI/*.asy
+
+ insinto /usr/share/${PN}/examples/animations
+ doins examples/animations/*.asy
+ fi
+
+ # LaTeX style
+ if use latex; then
+ cd doc || die
+ insinto "${TEXMF}"/tex/latex/${PN}
+ doins ${PN}.sty asycolors.sty
+ if use examples; then
+ insinto /usr/share/${PN}/examples
+ doins latexusage.tex
+ fi
+ cd .. || die
+ fi
+
+ # asymptote.py
+ use python && python_domodule base/${PN}.py
+
+ # emacs mode
+ if use emacs; then
+ elisp-install ${PN} base/*.el base/*.elc
+ elisp-site-file-install "${FILESDIR}"/64${PN}-gentoo.el
+ fi
+
+ # vim syntax
+ if use vim-syntax; then
+ insinto /usr/share/vim/vimfiles/syntax
+ doins base/asy.vim
+ insinto /usr/share/vim/vimfiles/ftdetect
+ doins "${FILESDIR}"/asy-ftd.vim
+ fi
+
+ # extra documentation
+ if use doc; then
+ cd doc || die
+ doinfo ${PN}.info*
+ cd FAQ || die
+ dodoc asy-faq.ascii
+ doinfo asy-faq.info
+ insinto /usr/share/doc/${PF}/html/FAQ
+ doins asy-faq.html/*
+ cd .. || die
+ insinto /usr/share/doc/${PF}
+ doins ${PN}.pdf CAD.pdf
+ fi
+}
+
+pkg_postinst() {
+ use latex && latex-package_rehash
+ use emacs && elisp-site-regen
+
+ elog 'Use the variable ASYMPTOTE_PSVIEWER to set the postscript viewer'
+ elog 'Use the variable ASYMPTOTE_PDFVIEWER to set the PDF viewer'
+}
+
+pkg_postrm() {
+ use latex && latex-package_rehash
+ use emacs && elisp-site-regen
+}
diff --git a/media-gfx/asymptote/asymptote-2.38.ebuild b/media-gfx/asymptote/asymptote-2.38.ebuild
new file mode 100644
index 000000000000..7c441dfe2481
--- /dev/null
+++ b/media-gfx/asymptote/asymptote-2.38.ebuild
@@ -0,0 +1,210 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+PYTHON_COMPAT=( python2_7 )
+
+inherit autotools elisp-common eutils latex-package multilib python-single-r1
+
+DESCRIPTION="A vector graphics language that provides a framework for technical drawing"
+HOMEPAGE="http://asymptote.sourceforge.net/"
+SRC_URI="mirror://sourceforge/asymptote/${P}.src.tgz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
+IUSE="+boehm-gc doc emacs examples fftw gsl +imagemagick latex offscreen +opengl python sigsegv svg vim-syntax X"
+
+REQUIRED_USE="
+ ${PYTHON_REQUIRED_USE}
+ offscreen? ( opengl )"
+
+RDEPEND="
+ >=sys-libs/ncurses-5.4-r5:0=
+ >=sys-libs/readline-4.3-r5:0=
+ imagemagick? ( media-gfx/imagemagick[png] )
+ opengl? ( >=media-libs/mesa-8 )
+ offscreen? ( media-libs/mesa[osmesa] )
+ svg? ( app-text/dvisvgm )
+ sigsegv? ( dev-libs/libsigsegv )
+ boehm-gc? ( >=dev-libs/boehm-gc-7.0[cxx,threads] )
+ fftw? ( >=sci-libs/fftw-3.0.1 )
+ gsl? ( sci-libs/gsl )
+ python? ( ${PYTHON_DEPS} )
+ X? (
+ ${PYTHON_DEPS}
+ x11-misc/xdg-utils
+ dev-python/pillow[tk,${PYTHON_USEDEP}]
+ )
+ latex? (
+ virtual/latex-base
+ >=dev-texlive/texlive-latexextra-2013
+ )
+ emacs? ( virtual/emacs )
+ vim-syntax? ( || ( app-editors/vim app-editors/gvim ) )"
+DEPEND="${RDEPEND}
+ doc? (
+ dev-lang/perl
+ media-gfx/imagemagick[png]
+ virtual/texi2dvi
+ virtual/latex-base
+ )"
+
+TEXMF=/usr/share/texmf-site
+
+pkg_setup() {
+ (use python || use X) && python-single-r1_pkg_setup
+}
+
+src_prepare() {
+ # gc.h -> gc/gc.h
+ epatch "${FILESDIR}/${P}-configure-ac.patch"
+
+ sed -e "s:Datadir/doc/asymptote:Datadir/doc/${PF}:" \
+ -i configure.ac \
+ || die "sed configure.ac failed"
+
+ # Changing pdf, ps, image viewers to xdg-open
+ epatch "${FILESDIR}/${P}-xdg-utils.patch"
+
+ # Bug #322473
+ epatch "${FILESDIR}/${P}-info.patch"
+
+ eautoreconf
+}
+
+src_configure() {
+ # for the CPPFLAGS see
+ # https://sourceforge.net/forum/forum.php?thread_id=1683277&forum_id=409349
+ econf \
+ CPPFLAGS=-DHAVE_SYS_TYPES_H \
+ CFLAGS="${CXXFLAGS}" \
+ --disable-gc-debug \
+ $(use_enable boehm-gc gc system) \
+ $(use_enable fftw) \
+ $(use_enable gsl) \
+ $(use_enable opengl gl) \
+ $(use_enable offscreen) \
+ $(use_enable sigsegv)
+}
+
+src_compile() {
+ default
+
+ cd doc || die
+ emake asy.1
+ if use doc; then
+ # info
+ einfo "Making info"
+ emake ${PN}.info
+ cd FAQ || die
+ emake
+ cd .. || die
+ # pdf
+ einfo "Making pdf docs"
+ export VARTEXFONTS="${T}"/fonts
+ # see bug #260606
+ emake -j1 asymptote.pdf
+ emake CAD.pdf
+ fi
+ cd .. || die
+
+ if use emacs; then
+ einfo "Compiling emacs lisp files"
+ elisp-compile base/*.el
+ fi
+}
+
+src_install() {
+ # the program
+ dobin asy
+
+ # .asy files
+ insinto /usr/share/${PN}
+ doins base/*.asy
+
+ # documentation
+ dodoc BUGS ChangeLog README ReleaseNotes TODO
+ doman doc/asy.1
+
+ # X GUI
+ if use X; then
+ python_scriptinto /usr/share/${PN}/GUI
+ python_doscript GUI/*.py
+ dosym /usr/share/${PN}/GUI/xasy.py /usr/bin/xasy
+ doman doc/xasy.1x
+ fi
+
+ # examples
+ if use examples; then
+ insinto /usr/share/${PN}/examples
+ doins \
+ examples/*.asy \
+ examples/*.eps \
+ doc/*.asy \
+ doc/*.csv \
+ doc/*.dat \
+ doc/extra/*.asy
+ use X && doins GUI/*.asy
+
+ insinto /usr/share/${PN}/examples/animations
+ doins examples/animations/*.asy
+ fi
+
+ # LaTeX style
+ if use latex; then
+ cd doc || die
+ insinto "${TEXMF}"/tex/latex/${PN}
+ doins ${PN}.sty asycolors.sty
+ if use examples; then
+ insinto /usr/share/${PN}/examples
+ doins latexusage.tex
+ fi
+ cd .. || die
+ fi
+
+ # asymptote.py
+ use python && python_domodule base/${PN}.py
+
+ # emacs mode
+ if use emacs; then
+ elisp-install ${PN} base/*.el base/*.elc
+ elisp-site-file-install "${FILESDIR}"/64${PN}-gentoo.el
+ fi
+
+ # vim syntax
+ if use vim-syntax; then
+ insinto /usr/share/vim/vimfiles/syntax
+ doins base/asy.vim
+ insinto /usr/share/vim/vimfiles/ftdetect
+ doins "${FILESDIR}"/asy-ftd.vim
+ fi
+
+ # extra documentation
+ if use doc; then
+ cd doc || die
+ doinfo ${PN}.info*
+ cd FAQ || die
+ dodoc asy-faq.ascii
+ doinfo asy-faq.info
+ insinto /usr/share/doc/${PF}/html/FAQ
+ doins asy-faq.html/*
+ cd .. || die
+ insinto /usr/share/doc/${PF}
+ doins ${PN}.pdf CAD.pdf
+ fi
+}
+
+pkg_postinst() {
+ use latex && latex-package_rehash
+ use emacs && elisp-site-regen
+
+ elog 'Use the variable ASYMPTOTE_PSVIEWER to set the postscript viewer'
+ elog 'Use the variable ASYMPTOTE_PDFVIEWER to set the PDF viewer'
+}
+
+pkg_postrm() {
+ use latex && latex-package_rehash
+ use emacs && elisp-site-regen
+}
diff --git a/media-gfx/asymptote/asymptote-2.41-r1.ebuild b/media-gfx/asymptote/asymptote-2.41-r1.ebuild
new file mode 100644
index 000000000000..4dc9ef30750e
--- /dev/null
+++ b/media-gfx/asymptote/asymptote-2.41-r1.ebuild
@@ -0,0 +1,214 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python2_7 )
+
+inherit autotools elisp-common latex-package multilib python-single-r1
+
+DESCRIPTION="A vector graphics language that provides a framework for technical drawing"
+HOMEPAGE="http://asymptote.sourceforge.net/"
+SRC_URI="mirror://sourceforge/asymptote/${P}.src.tgz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
+IUSE="+boehm-gc doc emacs examples fftw gsl +imagemagick latex offscreen +opengl python sigsegv svg test vim-syntax X"
+
+REQUIRED_USE="
+ ${PYTHON_REQUIRED_USE}
+ offscreen? ( opengl )"
+
+RDEPEND="
+ >=sys-libs/ncurses-5.4-r5:0=
+ >=sys-libs/readline-4.3-r5:0=
+ imagemagick? ( media-gfx/imagemagick[png] )
+ opengl? ( >=media-libs/mesa-8 )
+ offscreen? ( media-libs/mesa[osmesa] )
+ svg? ( app-text/dvisvgm )
+ sigsegv? ( dev-libs/libsigsegv )
+ boehm-gc? ( >=dev-libs/boehm-gc-7.0[cxx,threads] )
+ fftw? ( >=sci-libs/fftw-3.0.1 )
+ gsl? ( sci-libs/gsl )
+ python? ( ${PYTHON_DEPS} )
+ X? (
+ ${PYTHON_DEPS}
+ x11-misc/xdg-utils
+ dev-python/pillow[tk,${PYTHON_USEDEP}]
+ )
+ latex? (
+ virtual/latex-base
+ >=dev-texlive/texlive-latexextra-2013
+ )
+ emacs? ( virtual/emacs )
+ vim-syntax? ( || ( app-editors/vim app-editors/gvim ) )"
+DEPEND="${RDEPEND}
+ doc? (
+ dev-lang/perl
+ media-gfx/imagemagick[png]
+ virtual/texi2dvi
+ virtual/latex-base
+ app-text/ghostscript-gpl )
+ test? ( app-text/ghostscript-gpl )"
+
+TEXMF=/usr/share/texmf-site
+
+PATCHES=(
+ # gc.h -> gc/gc.h
+ "${FILESDIR}/${P}-configure-ac.patch"
+
+ # Changing pdf, ps, image viewers to xdg-open
+ "${FILESDIR}/${P}-xdg-utils.patch"
+
+ # Bug #322473
+ "${FILESDIR}/${P}-info.patch"
+)
+
+pkg_setup() {
+ (use python || use X) && python-single-r1_pkg_setup
+}
+
+src_prepare() {
+ sed -e "s:Datadir/doc/asymptote:Datadir/doc/${PF}:" \
+ -i configure.ac \
+ || die "sed configure.ac failed"
+
+ default
+ eautoreconf
+}
+
+src_configure() {
+ # for the CPPFLAGS see
+ # https://sourceforge.net/forum/forum.php?thread_id=1683277&forum_id=409349
+ econf \
+ CPPFLAGS=-DHAVE_SYS_TYPES_H \
+ CFLAGS="${CXXFLAGS}" \
+ --disable-gc-debug \
+ $(use_enable boehm-gc gc system) \
+ $(use_enable fftw) \
+ $(use_enable gsl) \
+ $(use_enable opengl gl) \
+ $(use_enable offscreen) \
+ $(use_enable sigsegv)
+}
+
+src_compile() {
+ default
+
+ cd doc || die
+ emake asy.1
+ if use doc; then
+ # info
+ einfo "Making info"
+ emake ${PN}.info
+ cd FAQ || die
+ emake
+ cd .. || die
+ # pdf
+ einfo "Making pdf docs"
+ export VARTEXFONTS="${T}"/fonts
+ # see bug #260606
+ emake -j1 asymptote.pdf
+ emake CAD.pdf
+ fi
+ cd .. || die
+
+ if use emacs; then
+ einfo "Compiling emacs lisp files"
+ elisp-compile base/*.el
+ fi
+}
+
+src_install() {
+ # the program
+ dobin asy
+
+ # .asy files
+ insinto /usr/share/${PN}
+ doins base/*.asy
+
+ # documentation
+ dodoc BUGS ChangeLog README ReleaseNotes TODO
+ doman doc/asy.1
+
+ # X GUI
+ if use X; then
+ python_scriptinto /usr/share/${PN}/GUI
+ python_doscript GUI/*.py
+ dosym /usr/share/${PN}/GUI/xasy.py /usr/bin/xasy
+ doman doc/xasy.1x
+ fi
+
+ # examples
+ if use examples; then
+ insinto /usr/share/${PN}/examples
+ doins \
+ examples/*.asy \
+ examples/*.eps \
+ doc/*.asy \
+ doc/*.csv \
+ doc/*.dat \
+ doc/extra/*.asy
+ use X && doins GUI/*.asy
+
+ insinto /usr/share/${PN}/examples/animations
+ doins examples/animations/*.asy
+ fi
+
+ # LaTeX style
+ if use latex; then
+ cd doc || die
+ insinto "${TEXMF}"/tex/latex/${PN}
+ doins ${PN}.sty asycolors.sty
+ if use examples; then
+ insinto /usr/share/${PN}/examples
+ doins latexusage.tex
+ fi
+ cd .. || die
+ fi
+
+ # asymptote.py
+ use python && python_domodule base/${PN}.py
+
+ # emacs mode
+ if use emacs; then
+ elisp-install ${PN} base/*.el base/*.elc
+ elisp-site-file-install "${FILESDIR}"/64${PN}-gentoo.el
+ fi
+
+ # vim syntax
+ if use vim-syntax; then
+ insinto /usr/share/vim/vimfiles/syntax
+ doins base/asy.vim
+ insinto /usr/share/vim/vimfiles/ftdetect
+ doins "${FILESDIR}"/asy-ftd.vim
+ fi
+
+ # extra documentation
+ if use doc; then
+ cd doc || die
+ doinfo ${PN}.info*
+ cd FAQ || die
+ dodoc asy-faq.ascii
+ doinfo asy-faq.info
+ insinto /usr/share/doc/${PF}/html/FAQ
+ doins asy-faq.html/*
+ cd .. || die
+ insinto /usr/share/doc/${PF}
+ doins ${PN}.pdf CAD.pdf
+ fi
+}
+
+pkg_postinst() {
+ use latex && latex-package_rehash
+ use emacs && elisp-site-regen
+
+ elog 'Use the variable ASYMPTOTE_PSVIEWER to set the postscript viewer'
+ elog 'Use the variable ASYMPTOTE_PDFVIEWER to set the PDF viewer'
+}
+
+pkg_postrm() {
+ use latex && latex-package_rehash
+ use emacs && elisp-site-regen
+}
diff --git a/media-gfx/asymptote/files/64asymptote-gentoo.el b/media-gfx/asymptote/files/64asymptote-gentoo.el
new file mode 100644
index 000000000000..57cd48d04a64
--- /dev/null
+++ b/media-gfx/asymptote/files/64asymptote-gentoo.el
@@ -0,0 +1,9 @@
+
+;; site-init for media-gfx/asymptote
+
+(add-to-list 'load-path "@SITELISP@")
+
+(autoload 'asy-mode "asy-mode" "Asymptote major mode." t)
+(autoload 'lasy-mode "asy-mode" "Hybrid Asymptote/Latex major mode." t)
+(autoload 'asy-insinuate-latex "asy-mode" "Asymptote insinuate LaTeX." t)
+(add-to-list 'auto-mode-alist '("\\.asy$" . asy-mode))
diff --git a/media-gfx/asymptote/files/asy-ftd.vim b/media-gfx/asymptote/files/asy-ftd.vim
new file mode 100644
index 000000000000..0f5e3957900a
--- /dev/null
+++ b/media-gfx/asymptote/files/asy-ftd.vim
@@ -0,0 +1,2 @@
+au BufNewFile,BufRead *.asy setf asy
+filetype plugin on
diff --git a/media-gfx/asymptote/files/asymptote-2.32-configure-ac.patch b/media-gfx/asymptote/files/asymptote-2.32-configure-ac.patch
new file mode 100644
index 000000000000..597e915539be
--- /dev/null
+++ b/media-gfx/asymptote/files/asymptote-2.32-configure-ac.patch
@@ -0,0 +1,32 @@
+Index: asymptote-2.32/configure.ac
+===================================================================
+--- asymptote-2.32.orig/configure.ac
++++ asymptote-2.32/configure.ac
+@@ -158,7 +158,7 @@ if test "x$ac_cv_use_gc" != "xno" ; then
+ fi
+ CPPFLAGS_SAVE=$CPPFLAGS
+ CPPFLAGS=$CPPFLAGS" $INCL"
+- AC_CHECK_HEADER(gc.h,
++ AC_CHECK_HEADER([gc/gc.h],
+ AC_CHECK_LIB([gc],[GC_malloc],[
+ LIBS=$LIBS"-lgc "
+ AC_MSG_NOTICE([enabling system $GCNAME])],[
+@@ -232,7 +232,17 @@ AC_MSG_ERROR([*** Please install libm on
+ AC_CHECK_LIB([z], [deflate],,
+ AC_MSG_ERROR([*** Please install libz or zlib-devel on your system ***]))
+ AX_PTHREAD
+-AC_CHECK_LIB([sigsegv], [stackoverflow_install_handler])
++
++AC_ARG_WITH(sigsegv,
++ [ --with-sigsegv use libsigsegv],
++ [with_sigsegv=$withval],
++ [with_sigsegv="no"])
++if test "$with_sigsegv" = "yes"; then
++AC_CHECK_HEADER([sigsegv.h],
++ AC_CHECK_LIB([sigsegv], [stackoverflow_install_handler]),
++ AC_MSG_NOTICE([*** Header file sigsegv.h not found ***]))
++fi
++
+ AC_CHECK_LIB([rt], [sched_yield])
+
+ AC_ARG_ENABLE(readline,
diff --git a/media-gfx/asymptote/files/asymptote-2.32-ghostscript-9.15.patch b/media-gfx/asymptote/files/asymptote-2.32-ghostscript-9.15.patch
new file mode 100644
index 000000000000..aa826c5c251f
--- /dev/null
+++ b/media-gfx/asymptote/files/asymptote-2.32-ghostscript-9.15.patch
@@ -0,0 +1,24 @@
+diff -r -U2 asymptote-2.32.orig/runlabel.in asymptote-2.32/runlabel.in
+--- asymptote-2.32.orig/runlabel.in 2014-05-22 23:11:47.000000000 +0700
++++ asymptote-2.32/runlabel.in 2015-01-11 21:41:30.268889133 +0600
+@@ -112,5 +112,5 @@
+ const string null="/dev/null";
+ #endif
+- cmd.push_back("-sDEVICE=epswrite");
++ cmd.push_back("-sDEVICE=eps2write");
+ cmd.push_back("-sOutputFile="+null);
+ cmd.push_back(stripDir(psname));
+@@ -310,5 +310,5 @@
+ cmd.push_back("-dBATCH");
+ if(safe) cmd.push_back("-dSAFER");
+- cmd.push_back("-sDEVICE=epswrite");
++ cmd.push_back("-sDEVICE=eps2write");
+ cmd.push_back("-sOutputFile=-");
+ cmd.push_back(pdfname);
+@@ -399,5 +399,5 @@
+ cmd2.push_back("-P");
+ if(safe) cmd2.push_back("-dSAFER");
+- cmd2.push_back("-sDEVICE=epswrite");
++ cmd2.push_back("-sDEVICE=eps2write");
+ cmd2.push_back("-sOutputFile=-");
+ cmd2.push_back("-");
diff --git a/media-gfx/asymptote/files/asymptote-2.32-info.patch b/media-gfx/asymptote/files/asymptote-2.32-info.patch
new file mode 100644
index 000000000000..8a1e3f464231
--- /dev/null
+++ b/media-gfx/asymptote/files/asymptote-2.32-info.patch
@@ -0,0 +1,13 @@
+Index: asymptote-2.32/doc/asymptote.texi
+===================================================================
+--- asymptote-2.32.orig/doc/asymptote.texi
++++ asymptote-2.32/doc/asymptote.texi
+@@ -21,7 +21,7 @@ file LICENSE in the top-level source dir
+
+ @dircategory Languages
+ @direntry
+-* asymptote: (asymptote/asymptote). Vector graphics language.
++* asymptote: (asymptote). Vector graphics language.
+ @end direntry
+
+ @titlepage
diff --git a/media-gfx/asymptote/files/asymptote-2.32-xdg-utils.patch b/media-gfx/asymptote/files/asymptote-2.32-xdg-utils.patch
new file mode 100644
index 000000000000..2ac59e59f058
--- /dev/null
+++ b/media-gfx/asymptote/files/asymptote-2.32-xdg-utils.patch
@@ -0,0 +1,23 @@
+Index: asymptote-2.32/settings.cc
+===================================================================
+--- asymptote-2.32.orig/settings.cc
++++ asymptote-2.32/settings.cc
+@@ -90,15 +90,15 @@ bool msdos=false;
+ string HOME="HOME";
+ string docdir=ASYMPTOTE_DOCDIR;
+ const char pathSeparator=':';
+-string defaultPSViewer="gv";
++string defaultPSViewer="xdg-open";
+ #ifdef __APPLE__
+ string defaultPDFViewer="open";
+ #else
+-string defaultPDFViewer="acroread";
++string defaultPDFViewer="xdg-open";
+ #endif
+ string defaultGhostscript="gs";
+ string defaultGhostscriptLibrary="/usr/lib/libgs.so";
+-string defaultDisplay="display";
++string defaultDisplay="xdg-open";
+ string defaultAnimate="animate";
+ void queryRegistry() {}
+ const string dirsep="/";
diff --git a/media-gfx/asymptote/files/asymptote-2.36-configure-ac.patch b/media-gfx/asymptote/files/asymptote-2.36-configure-ac.patch
new file mode 100644
index 000000000000..ea8bc4525d22
--- /dev/null
+++ b/media-gfx/asymptote/files/asymptote-2.36-configure-ac.patch
@@ -0,0 +1,32 @@
+Index: asymptote-2.36/configure.ac
+===================================================================
+--- asymptote-2.36.orig/configure.ac
++++ asymptote-2.36/configure.ac
+@@ -156,7 +156,7 @@ if test "x$ac_cv_use_gc" != "xno" ; then
+ fi
+ CPPFLAGS_SAVE=$CPPFLAGS
+ CPPFLAGS=$CPPFLAGS" $INCL"
+- AC_CHECK_HEADER(gc.h,
++ AC_CHECK_HEADER([gc/gc.h],
+ AC_CHECK_LIB([gc],[GC_malloc],[
+ LIBS=$LIBS"-lgc "
+ AC_MSG_NOTICE([enabling system $GCNAME])],[
+@@ -231,7 +231,17 @@ AC_MSG_ERROR([*** Please install libm on
+ AC_CHECK_LIB([z], [deflate],,
+ AC_MSG_ERROR([*** Please install libz or zlib-devel on your system ***]))
+ AX_PTHREAD
+-AC_CHECK_LIB([sigsegv], [stackoverflow_install_handler])
++
++AC_ARG_WITH(sigsegv,
++ [ --with-sigsegv use libsigsegv],
++ [with_sigsegv=$withval],
++ [with_sigsegv="no"])
++if test "$with_sigsegv" = "yes"; then
++AC_CHECK_HEADER([sigsegv.h],
++ AC_CHECK_LIB([sigsegv], [stackoverflow_install_handler]),
++ AC_MSG_NOTICE([*** Header file sigsegv.h not found ***]))
++fi
++
+ AC_CHECK_LIB([rt], [sched_yield])
+
+ AC_ARG_ENABLE(readline,
diff --git a/media-gfx/asymptote/files/asymptote-2.36-info.patch b/media-gfx/asymptote/files/asymptote-2.36-info.patch
new file mode 100644
index 000000000000..950732838e38
--- /dev/null
+++ b/media-gfx/asymptote/files/asymptote-2.36-info.patch
@@ -0,0 +1,13 @@
+Index: asymptote-2.36/doc/asymptote.texi
+===================================================================
+--- asymptote-2.36.orig/doc/asymptote.texi
++++ asymptote-2.36/doc/asymptote.texi
+@@ -21,7 +21,7 @@ file LICENSE in the top-level source dir
+
+ @dircategory Languages
+ @direntry
+-* asymptote: (asymptote/asymptote). Vector graphics language.
++* asymptote: (asymptote). Vector graphics language.
+ @end direntry
+
+ @titlepage
diff --git a/media-gfx/asymptote/files/asymptote-2.36-xdg-utils.patch b/media-gfx/asymptote/files/asymptote-2.36-xdg-utils.patch
new file mode 100644
index 000000000000..4763a52084e5
--- /dev/null
+++ b/media-gfx/asymptote/files/asymptote-2.36-xdg-utils.patch
@@ -0,0 +1,23 @@
+Index: asymptote-2.36/settings.cc
+===================================================================
+--- asymptote-2.36.orig/settings.cc
++++ asymptote-2.36/settings.cc
+@@ -90,15 +90,15 @@ bool msdos=false;
+ string HOME="HOME";
+ string docdir=ASYMPTOTE_DOCDIR;
+ const char pathSeparator=':';
+-string defaultPSViewer="gv";
++string defaultPSViewer="xdg-open";
+ #ifdef __APPLE__
+ string defaultPDFViewer="open";
+ #else
+-string defaultPDFViewer="acroread";
++string defaultPDFViewer="xdg-open";
+ #endif
+ string defaultGhostscript="gs";
+ string defaultGhostscriptLibrary="/usr/lib/libgs.so";
+-string defaultDisplay="display";
++string defaultDisplay="xdg-open";
+ string defaultAnimate="animate";
+ void queryRegistry() {}
+ const string dirsep="/";
diff --git a/media-gfx/asymptote/files/asymptote-2.38-configure-ac.patch b/media-gfx/asymptote/files/asymptote-2.38-configure-ac.patch
new file mode 100644
index 000000000000..3acff863dad9
--- /dev/null
+++ b/media-gfx/asymptote/files/asymptote-2.38-configure-ac.patch
@@ -0,0 +1,13 @@
+Index: asymptote-2.38/configure.ac
+===================================================================
+--- asymptote-2.38.orig/configure.ac
++++ asymptote-2.38/configure.ac
+@@ -156,7 +156,7 @@ if test "x$ac_cv_use_gc" != "xno" ; then
+ fi
+ CPPFLAGS_SAVE=$CPPFLAGS
+ CPPFLAGS=$CPPFLAGS" $INCL"
+- AC_CHECK_HEADER(gc.h,
++ AC_CHECK_HEADER([gc/gc.h],
+ AC_CHECK_LIB([gc],[GC_malloc],[
+ LIBS=$LIBS"-lgc "
+ AC_MSG_NOTICE([enabling system $GCNAME])],[
diff --git a/media-gfx/asymptote/files/asymptote-2.38-info.patch b/media-gfx/asymptote/files/asymptote-2.38-info.patch
new file mode 100644
index 000000000000..7005f152518f
--- /dev/null
+++ b/media-gfx/asymptote/files/asymptote-2.38-info.patch
@@ -0,0 +1,13 @@
+Index: asymptote-2.38/doc/asymptote.texi
+===================================================================
+--- asymptote-2.38.orig/doc/asymptote.texi
++++ asymptote-2.38/doc/asymptote.texi
+@@ -21,7 +21,7 @@ file LICENSE in the top-level source dir
+
+ @dircategory Languages
+ @direntry
+-* asymptote: (asymptote/asymptote). Vector graphics language.
++* asymptote: (asymptote). Vector graphics language.
+ @end direntry
+
+ @titlepage
diff --git a/media-gfx/asymptote/files/asymptote-2.38-xdg-utils.patch b/media-gfx/asymptote/files/asymptote-2.38-xdg-utils.patch
new file mode 100644
index 000000000000..044244e4008a
--- /dev/null
+++ b/media-gfx/asymptote/files/asymptote-2.38-xdg-utils.patch
@@ -0,0 +1,23 @@
+Index: asymptote-2.38/settings.cc
+===================================================================
+--- asymptote-2.38.orig/settings.cc
++++ asymptote-2.38/settings.cc
+@@ -91,15 +91,15 @@ bool msdos=false;
+ string HOME="HOME";
+ string docdir=ASYMPTOTE_DOCDIR;
+ const char pathSeparator=':';
+-string defaultPSViewer="gv";
++string defaultPSViewer="xdg-open";
+ #ifdef __APPLE__
+ string defaultPDFViewer="open";
+ #else
+-string defaultPDFViewer="acroread";
++string defaultPDFViewer="xdg-open";
+ #endif
+ string defaultGhostscript="gs";
+ string defaultGhostscriptLibrary="/usr/lib/libgs.so";
+-string defaultDisplay="display";
++string defaultDisplay="xdg-open";
+ string defaultAnimate="animate";
+ void queryRegistry() {}
+ const string dirsep="/";
diff --git a/media-gfx/asymptote/files/asymptote-2.41-configure-ac.patch b/media-gfx/asymptote/files/asymptote-2.41-configure-ac.patch
new file mode 100644
index 000000000000..984ec7c2e951
--- /dev/null
+++ b/media-gfx/asymptote/files/asymptote-2.41-configure-ac.patch
@@ -0,0 +1,13 @@
+Index: asymptote-2.41/configure.ac
+===================================================================
+--- asymptote-2.41.orig/configure.ac
++++ asymptote-2.41/configure.ac
+@@ -159,7 +159,7 @@ if test "x$ac_cv_use_gc" != "xno" ; then
+ fi
+ CPPFLAGS_SAVE=$CPPFLAGS
+ CPPFLAGS=$CPPFLAGS" $INCL"
+- AC_CHECK_HEADER(gc.h,
++ AC_CHECK_HEADER([gc/gc.h],
+ AC_CHECK_LIB([gc],[GC_malloc],[
+ LIBS=$LIBS"-lgc "
+ AC_MSG_NOTICE([enabling system $GCNAME])],[
diff --git a/media-gfx/asymptote/files/asymptote-2.41-info.patch b/media-gfx/asymptote/files/asymptote-2.41-info.patch
new file mode 100644
index 000000000000..f1dc4309aa8c
--- /dev/null
+++ b/media-gfx/asymptote/files/asymptote-2.41-info.patch
@@ -0,0 +1,13 @@
+Index: asymptote-2.41/doc/asymptote.texi
+===================================================================
+--- asymptote-2.41.orig/doc/asymptote.texi
++++ asymptote-2.41/doc/asymptote.texi
+@@ -21,7 +21,7 @@ file LICENSE in the top-level source dir
+
+ @dircategory Languages
+ @direntry
+-* asymptote: (asymptote/asymptote). Vector graphics language.
++* asymptote: (asymptote). Vector graphics language.
+ @end direntry
+
+ @titlepage
diff --git a/media-gfx/asymptote/files/asymptote-2.41-xdg-utils.patch b/media-gfx/asymptote/files/asymptote-2.41-xdg-utils.patch
new file mode 100644
index 000000000000..7f9b33440352
--- /dev/null
+++ b/media-gfx/asymptote/files/asymptote-2.41-xdg-utils.patch
@@ -0,0 +1,23 @@
+Index: asymptote-2.41/settings.cc
+===================================================================
+--- asymptote-2.41.orig/settings.cc
++++ asymptote-2.41/settings.cc
+@@ -91,15 +91,15 @@ bool msdos=false;
+ string HOME="HOME";
+ string docdir=ASYMPTOTE_DOCDIR;
+ const char pathSeparator=':';
+-string defaultPSViewer="gv";
++string defaultPSViewer="xdg-open";
+ #ifdef __APPLE__
+ string defaultPDFViewer="open";
+ #else
+-string defaultPDFViewer="acroread";
++string defaultPDFViewer="xdg-open";
+ #endif
+ string defaultGhostscript="gs";
+ string defaultGhostscriptLibrary="/usr/lib/libgs.so";
+-string defaultDisplay="display";
++string defaultDisplay="xdg-open";
+ string defaultAnimate="animate";
+ void queryRegistry() {}
+ const string dirsep="/";
diff --git a/media-gfx/asymptote/metadata.xml b/media-gfx/asymptote/metadata.xml
new file mode 100644
index 000000000000..c700a1d698dd
--- /dev/null
+++ b/media-gfx/asymptote/metadata.xml
@@ -0,0 +1,35 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>grozin@gentoo.org</email>
+ <name>Andrey Grozin</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>sci@gentoo.org</email>
+ <name>Gentoo Science Project</name>
+ </maintainer>
+ <longdescription lang="en">
+ Asymptote is a powerful descriptive vector graphics language that
+ provides a natural coordinate-based framework for technical drawing.
+ Labels and equations are typeset with LaTeX, for high-quality PostScript
+ output.
+
+ A major advantage of Asymptote over other graphics packages is that it
+ is a programming language, as opposed to just a graphics program.
+ </longdescription>
+ <use>
+ <flag name="boehm-gc">
+ Enables using the Boehm-Demers-Weiser conservative garbage collector
+ </flag>
+ <flag name="sigsegv">
+ Enables using <pkg>dev-libs/libsigsegv</pkg>
+ </flag>
+ <flag name="offscreen">
+ Enables off-screen rendering
+ </flag>
+ </use>
+ <upstream>
+ <remote-id type="sourceforge">asymptote</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/media-gfx/autopano-sift-C/Manifest b/media-gfx/autopano-sift-C/Manifest
new file mode 100644
index 000000000000..e942ebe8c804
--- /dev/null
+++ b/media-gfx/autopano-sift-C/Manifest
@@ -0,0 +1,6 @@
+AUX autopano-sift-C-2.5.1-lm.patch 512 SHA256 6cb5c72b476a7f7d8e0068d9dcb0bf8ab0d46bc7fa38374e48d648249d5b3b71 SHA512 35eb8d71f770f25a709599528679ac15e9a90c12ca3c34c1cd1411eaba852dbe9e627e4b8d8fb62adda7e2422c0de493538cbcbf14206e408b9921c895761856 WHIRLPOOL 58676b7aa80acecf25988971e246ab410b9e51018426d44a631d7a30c8d7f65109e1f78d3b2230a8015ec138bd8c14c80ecde91b021b8e76efe524679a93fa10
+DIST autopano-sift-C-2.5.1.tar.gz 192267 SHA256 9a9029353f240b105a9c0e31e4053b37b0f9ef4bd9166dcb26be3e819c431337 SHA512 4f3c9e8738c7bc29ff6284033b7b813de61ef440c3d544755be8c4ad715a6e4175801ee4c02642df5e05bac82929c5554d85a5c488a2c27da1e5e81d3cd72931 WHIRLPOOL 95f54d93cf5162b1b88dccb6750ed5b59f88ebbbfa4201d02d0fff14858beb89e98b474465c03104bb4c7a49dc5564fc60d446f185cf0cc9b8012e65d1fac483
+EBUILD autopano-sift-C-2.5.1.ebuild 720 SHA256 859ec1b3845cc8125ec713395caddeb642949abc84a689c33d6c4d0b9fb5c331 SHA512 d08c4e2fe859d9cf1bba338eebe00a64d967e91b5321f2da26ab058889b9c90d464bfc46e06e67961abf2eeb21b2a15fcc8f7f47b7573164e71332383605fe95 WHIRLPOOL 72df83d410a7adfa7fcff03f3199337c15286ec31f7b0fcc5eeccfdc94dd14f4af4c5964ecd06fb11d4fb4dc1e64f437c289c3a9754ba48b45d741b78f08f9e1
+MISC ChangeLog 2493 SHA256 4a0e31c4a55d382f836574b9510dc6f628ca952fbf34c322dcc842a1d0f790ba SHA512 43bd20c07d3887ab99b65aaae1cb20305c2dff2c1ec9da2a6837425b99f06f8c123477b893552af365a940b5cf299f3df8e23f5a823995e44da3aa02bf66b6e7 WHIRLPOOL 26fc3e02439d04bb2679adcd6c0187d50ee0fade8649c677fc4aabe242a66947d37dd6cafde4ced9c7bfce1a42dc66bec0dffc40ec03334620c6da6b0f696515
+MISC ChangeLog-2015 2622 SHA256 d20e62dc37c48749f82580f0259559a3294e4ce34a6cbefa66b965dbd6e0e773 SHA512 4cf6eba7c332997f38f4c50f9ca49183affac8d1097ae349c80a3bd13b59b01b123625bef9a0fdf656b4ebfa200668ffce03fe501d0e76ca337f30a14dbd2b91 WHIRLPOOL 8183e3d3954c31793ad38ee2a93fcc942a1cb0bb4dbec3099d6c33ac236c49fc4eccd6bd1b33b4e720c5b3c3004f8534473d249cf3b00867024ae228145bbbd5
+MISC metadata.xml 472 SHA256 bb08972fa8929d26c0b9bf79871318761fccda0ccc82e5ffc995ce921254c7bb SHA512 28eab06295fba1917784743b7103fca9ce4a54806ac9609172653896426013f0f2b18a6a4428226aeafca8d0a5de6e493e6288985564331cbc3e0a3e3f2fbb6a WHIRLPOOL 95d04ce745c1a22e25d3468449fb1096d7e1321705f45cb32fa5706835ef6f43d6fd7087e816f3d4aa614bbbeba2348f99914ca246bdc8a03f604cf849acb241
diff --git a/media-gfx/autopano-sift-C/autopano-sift-C-2.5.1.ebuild b/media-gfx/autopano-sift-C/autopano-sift-C-2.5.1.ebuild
new file mode 100644
index 000000000000..86f58e7e9b8e
--- /dev/null
+++ b/media-gfx/autopano-sift-C/autopano-sift-C-2.5.1.ebuild
@@ -0,0 +1,30 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit cmake-utils eutils versionator
+
+DESCRIPTION="SIFT algorithm for automatic panorama creation in C"
+HOMEPAGE="http://hugin.sourceforge.net/ http://user.cs.tu-berlin.de/~nowozin/autopano-sift/"
+SRC_URI="mirror://sourceforge/hugin/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ~ppc x86"
+IUSE=""
+
+S=${WORKDIR}/${PN}-"$(get_version_component_range 1-3)"
+
+RDEPEND="!media-gfx/autopano-sift
+ dev-libs/libxml2
+ media-libs/libpano13:0=
+ media-libs/libpng:0=
+ media-libs/tiff:0=
+ sys-libs/zlib
+ virtual/jpeg:0"
+DEPEND="${RDEPEND}"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-lm.patch
+ epatch_user
+}
diff --git a/media-gfx/autopano-sift-C/files/autopano-sift-C-2.5.1-lm.patch b/media-gfx/autopano-sift-C/files/autopano-sift-C-2.5.1-lm.patch
new file mode 100644
index 000000000000..97619975d9b6
--- /dev/null
+++ b/media-gfx/autopano-sift-C/files/autopano-sift-C-2.5.1-lm.patch
@@ -0,0 +1,14 @@
+Link against -lm (mathlib) because ScaleSpace.c (which is part of the internal libsift.a)
+is using the exp() function, see http://bugs.gentoo.org/472150
+
+--- CMakeLists.txt
++++ CMakeLists.txt
+@@ -121,7 +121,7 @@
+
+ ADD_LIBRARY(libsift STATIC ${LIBSIFT_SOURCES})
+
+-set(all_libs libsift ${JPEG_LIBRARIES} ${TIFF_LIBRARIES}
++set(all_libs libsift m ${JPEG_LIBRARIES} ${TIFF_LIBRARIES}
+ ${PNG_LIBRARIES} ${ZLIB_LIBRARIES} ${PANO13_LIBRARIES} ${LIBXML2_LIBRARIES})
+
+ add_executable(generatekeys GenerateKeys.c)
diff --git a/media-gfx/autopano-sift-C/metadata.xml b/media-gfx/autopano-sift-C/metadata.xml
new file mode 100644
index 000000000000..e92e12909010
--- /dev/null
+++ b/media-gfx/autopano-sift-C/metadata.xml
@@ -0,0 +1,13 @@
+<?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>
+ <longdescription>autopano-sift-C is a program to automatically find control points
+ for stitching together panoramas.</longdescription>
+ <upstream>
+ <remote-id type="sourceforge">hugin</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/media-gfx/aview/Manifest b/media-gfx/aview/Manifest
new file mode 100644
index 000000000000..330f5e2c19d4
--- /dev/null
+++ b/media-gfx/aview/Manifest
@@ -0,0 +1,10 @@
+AUX aview-1.3.0_rc1-asciiview.patch 1936 SHA256 b0743c2ec3f374783d83e0e713fba3201f96f7543e8d70e989ce84bb6ae581c7 SHA512 3666e403e5ed8b4be557b8aea314e33e5ad7162c2d7c7291810b4bc6824161f53a5b5b5325c4a4667467f72582303693710750e1d30a3761304346bc335f6299 WHIRLPOOL 04f5333f09ed838f38a790b56215baa4c6a7cf51a6e43bb5a9f6d2f2b986c9b1b8d992666372288fe6b644b399971fd12c57d3091919a65556dc0842774cde70
+AUX aview-1.3.0_rc1-filename-spaces.patch 1393 SHA256 f2db2767fdb8340c2284cc56f00dfabdc084aae5cc36048a8859f28bf42491a8 SHA512 837ecdf7116946baa752db47a446bf48527b3a3aa1457a900a93117f06ee2e2dea3d7bcf8d82f220acf59db21617fb54fa1154802e3f06bcd341ef71780fb6ec WHIRLPOOL 1ceec0a1df389e157302c5b1ff5adbe7433ce67f4939dc0326b552328441df58bf0d9e1eff836678c4019d90799c3cb5b7e88add43e9d1c26b097fb25d3fbfcb
+AUX aview-1.3.0_rc1-includes.patch 281 SHA256 f4f9def04b601ce2e987f3295187c2d4e139408e14424a19fce78d75c919cc5c SHA512 c8a5303be05a9205baba541e286725413fd8e8b161cb7d0bb1a32a8809b4e977ca12b9bd0df2c793be0e72e2353fdf9b09f96d541d361c5df87af7885cc350c7 WHIRLPOOL 04bfa4100b1cf3a05c4f23344479cc8d559a0df0ad2f1b2a54887d38ac78769cf9dc440a4f80a01f8d438ec40bb4904a8ca0385bd0e97026657d6f6e8bc8d71c
+AUX aview-1.3.0_rc1-tmp_creation.patch 1142 SHA256 3d7c40f5ba8369243953206c9e2718277ec5acd091b2898a9fdf45f091e8eb15 SHA512 7fdc336cd2c595754f46948031722f87bb40b0e159950f84ed0959ccdacd01840c0d24dfeac6a9937ab456b8ed66e5c9b8d49a4e98ee45ec64295f8234249d06 WHIRLPOOL a4ab4ea462a946955bae449e94b039b56ceb1c671b42d56cdabb34718d22c74e66026895de34d21e6d1057458f908706770331b408cda58a3ccc3517419b1037
+DIST aview-1.3.0rc1.tar.gz 54317 SHA256 42d61c4194e8b9b69a881fdde698c83cb27d7eda59e08b300e73aaa34474ec99 SHA512 941f2a92aaf3852b403daf688cda4ca2eb82ec32ee6566cd2aef3d121f259f1bb0214f872c4d5020c658bd81adba0577313acc5972d2f44b295f21905e107144 WHIRLPOOL eae555567be4943f16542b75e6f68b7c7548d8028f16cfe12f46648ed27bd8cbd87189d1925e7fe16a7c86247f121aca82fa24f9e901844ec6e9f39c7bcff74d
+EBUILD aview-1.3.0_rc1-r1.ebuild 706 SHA256 9373341aa937ea3e282f136845f4ece76fe3beb39ea6df7c14d287a3c6659e68 SHA512 2620ad6616b15520c0b8392df0c3e5260065641d097c2a9c597f53491fa7bcd23a37b6dcba3f6f85dbf13f3b6eb3ea57adae3c651f1c63604fbd6f0ae82d7d69 WHIRLPOOL 878610f0e7dbb05e097d327cf6614acb978b0917a224fef5dc0fdc656156d605918d6d303a96af81ada3876681fc2a7ca37763ca4cc31f0e2bdf9745d41f860f
+EBUILD aview-1.3.0_rc1-r3.ebuild 801 SHA256 4cf22a3a4aabcf13fc78b52bde2a2225d8ecb50c1932ef9ce2db5c314028e72b SHA512 af951ac253755a996f8eee02a8edeac2bffd7f8e53a3a1b92f24a794cfe41ca7057c8a915ee7089250c4471f63ddd41c7f453fd9c417dc349c254c42017cd6fc WHIRLPOOL 86f31e3d3c71e0b7ceaa1a4decc7f4e5d99dd515e37f6d41f68712d135edeecf8c761dc9e67178c5fe23ff1939cf06e9620cd61d1bf126ae54172da7e46454d3
+MISC ChangeLog 2769 SHA256 bf6720b1a1344cf75c9a522e28117cb819b35117dc1edd4bd0c331f4b52e704b SHA512 180e4ed1ea72f4c25e1b91fca6c3f97f3c75ff450e0a7cd24a9f2840cc3bdc44fd839845d9a055529be43890ea65368a7c700d544f3ab4ce2538cf3ed0844347 WHIRLPOOL e38c29e292f30e1505d28b7ce47346e922e588cc961d189b3bcb395f251c8061f0b69c3526033c02a898bd6a074a782b08cddffeef34d8f6d651a507557cfbe2
+MISC ChangeLog-2015 3047 SHA256 36de70894d8ea261a25b0a06f93477d9c7a9dd4edbd26dc8b51e78d8481253a0 SHA512 3f7c05a73d1321f2acffd8442fde0737dc36fccdd66a517c2ff06a7d89291ae7aa101235284760391ae8ac688251caa495d5bd03033ea2cac6626dda819fa9e5 WHIRLPOOL 59e47881d46a6e6cce0f151782673cdb8d9d6ce08b32ab9c6754b801a6f873cf724ace3556544813ec5e9c6e34e1356afaeb5d21abe63fdd32efe05b90b0ea76
+MISC metadata.xml 252 SHA256 bf654be180aee21270abc2f2fc7d00a15293d1493c8a9f64a7c74921f9b2e48f SHA512 bd3eef9d63a167ed485cb156ca81b53649a9ed2bd4fbaf3f58328cadb09f5b4b65b2343a6f032b7540c445a98bb6c3abb3084f91dc1cf78ecfe9a067732e4385 WHIRLPOOL ccb1a885f19d99f41d153c620fa6abbe524466b30a4dfee62b9562b503ae8d512c5739fe3407443dd20f9a281d4a897186a9b8c48815ffbf6c07423d32600713
diff --git a/media-gfx/aview/aview-1.3.0_rc1-r1.ebuild b/media-gfx/aview/aview-1.3.0_rc1-r1.ebuild
new file mode 100644
index 000000000000..1e5b6b8b0f42
--- /dev/null
+++ b/media-gfx/aview/aview-1.3.0_rc1-r1.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+inherit base
+
+MY_P=${P/_/}
+S=${WORKDIR}/${MY_P/rc*/}
+DESCRIPTION="An ASCII Image Viewer"
+SRC_URI="mirror://sourceforge/aa-project/${MY_P}.tar.gz"
+HOMEPAGE="http://aa-project.sourceforge.net/aview/"
+
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="amd64 ppc x86"
+IUSE=""
+
+DEPEND=">=media-libs/aalib-1.4_rc4"
+RDEPEND="${DEPEND}"
+
+PATCHES=(
+ "${FILESDIR}"/${P}-filename-spaces.patch
+ "${FILESDIR}"/${P}-tmp_creation.patch
+ "${FILESDIR}"/${P}-includes.patch
+)
+
+src_compile() {
+ econf || die
+ make aview || die
+}
+
+src_install() {
+ into /usr
+ dobin aview asciiview
+
+ doman *.1
+ dodoc ANNOUNCE ChangeLog README TODO
+}
diff --git a/media-gfx/aview/aview-1.3.0_rc1-r3.ebuild b/media-gfx/aview/aview-1.3.0_rc1-r3.ebuild
new file mode 100644
index 000000000000..218cb86e9ff3
--- /dev/null
+++ b/media-gfx/aview/aview-1.3.0_rc1-r3.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+
+inherit base
+
+MY_P=${P/_/}
+S=${WORKDIR}/${MY_P/rc*/}
+DESCRIPTION="An ASCII Image Viewer"
+SRC_URI="mirror://sourceforge/aa-project/${MY_P}.tar.gz"
+HOMEPAGE="http://aa-project.sourceforge.net/aview/"
+
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-solaris"
+IUSE=""
+
+DEPEND=">=media-libs/aalib-1.4_rc4"
+RDEPEND="${DEPEND}"
+
+PATCHES=(
+ "${FILESDIR}"/${P}-asciiview.patch
+ "${FILESDIR}"/${P}-includes.patch
+)
+
+src_prepare() {
+ base_src_prepare
+
+ sed -i -e 's:#include <malloc.h>:#include <stdlib.h>:g' "${S}"/*.c || die
+}
+
+src_compile() {
+ make aview
+}
+
+src_install() {
+ dobin aview asciiview
+
+ doman *.1
+ dodoc ANNOUNCE ChangeLog README TODO
+}
diff --git a/media-gfx/aview/files/aview-1.3.0_rc1-asciiview.patch b/media-gfx/aview/files/aview-1.3.0_rc1-asciiview.patch
new file mode 100644
index 000000000000..6d71bbb967b1
--- /dev/null
+++ b/media-gfx/aview/files/aview-1.3.0_rc1-asciiview.patch
@@ -0,0 +1,76 @@
+Support spaces in filenames (bug #39207) based on a patch from
+kyberneticist AT yahoo DOT com with additional fixes to address bug
+#293654 by Kevin McCarthy <signals@gentoo.org>
+
+Fix insecure temporary file permissions (bug #235808) based on a patch from
+Robert Buchholz <rbu@gentoo.org>
+
+Fix ignored interactive keyboard commands when aview is called from the
+asciiview script (bug #293654) by Kevin McCarthy <signals@gentoo.org>
+
+Rollup patch created by Kevin McCarthy <signals@gentoo.org>
+
+--- asciiview
++++ asciiview
+@@ -3,13 +3,13 @@
+ clear()
+ {
+ kill $! 2>/dev/null
+- rm -f /tmp/aview$$.pgm 2>/dev/null
++ rm -rf $tmpdir 2>/dev/null
+ }
+ myconvert()
+ {
+- if anytopnm $1 >/tmp/aview$$.pgm 2>/dev/null ; then
++ if anytopnm "$1" >"$2" 2>/dev/null ; then
+ exit
+- elif convert -colorspace gray $1 pgm:- 2>/dev/null ; then
++ elif convert -colorspace gray "$1" pgm:- 2>/dev/null ; then
+ exit
+ fi
+ echo "Failed to convert file format to PNM by both convert and anytopnm" >&2
+@@ -44,27 +44,34 @@
+ options="$options $1"
+ shift
+ ;;
+- *)
+- filenames="$filenames $1"
++ *)
++ if [ "$filenames" = "" ]
++ then
++ filenames=$1 #avoid leading null
++ else
++ filenames=$(echo -e "$filenames\n$1")
++ fi
+ shift
+ ;;
+ esac
+ done
+ trap clear 0
+-mkfifo /tmp/aview$$.pgm
+-outfile=/tmp/aview$$.pgm
+-for name in $filenames ; do
+-if test -r $name ; then
+-case $name in
++tmpdir=`mktemp -t -d`
++outfile=$tmpdir/aview.pgm
++mkfifo $outfile
++exec 3<&0
++echo "$filenames" | while read name; do
++if test -r "$name" ; then
++case "$name" in
+ *.fli | *.lfc | *.flic )
+ PATH="$PATH:."
+- aaflip $options $name
++ aaflip $options "$name"
+ ;;
+ *)
+- myconvert $name >/tmp/aview$$.pgm &
++ myconvert "$name" "$outfile" >"$outfile" &
+ pid=$!
+ PATH="$PATH:."
+- aview $options /tmp/aview$$.pgm
++ aview $options $outfile <&3
+ kill $pid 2>/dev/null
+ esac
+ else
diff --git a/media-gfx/aview/files/aview-1.3.0_rc1-filename-spaces.patch b/media-gfx/aview/files/aview-1.3.0_rc1-filename-spaces.patch
new file mode 100644
index 000000000000..e42ed0d5c583
--- /dev/null
+++ b/media-gfx/aview/files/aview-1.3.0_rc1-filename-spaces.patch
@@ -0,0 +1,53 @@
+diff -ur aview-1.3.0-orig/asciiview aview-1.3.0/asciiview
+--- aview-1.3.0-orig/asciiview 2005-08-15 21:20:16.000000000 -0400
++++ aview-1.3.0/asciiview 2005-08-15 21:20:19.000000000 -0400
+@@ -7,9 +7,9 @@
+ }
+ myconvert()
+ {
+- if anytopnm $1 >/tmp/aview$$.pgm 2>/dev/null ; then
++ if anytopnm "$1" >/tmp/aview$$.pgm 2>/dev/null ; then
+ exit
+- elif convert -colorspace gray $1 pgm:- 2>/dev/null ; then
++ elif convert -colorspace gray "$1" pgm:- 2>/dev/null ; then
+ exit
+ fi
+ echo "Failed to convert file format to PNM by both convert and anytopnm" >&2
+@@ -44,8 +44,13 @@
+ options="$options $1"
+ shift
+ ;;
+- *)
+- filenames="$filenames $1"
++ *)
++ if [ "$filenames" = "" ]
++ then
++ filenames=$1 #avoid leading null
++ else
++ filenames=$(echo -e "$filenames\000$1")
++ fi
+ shift
+ ;;
+ esac
+@@ -53,15 +58,16 @@
+ trap clear 0
+ mkfifo /tmp/aview$$.pgm
+ outfile=/tmp/aview$$.pgm
+-for name in $filenames ; do
+-if test -r $name ; then
+-case $name in
++IFS=$(echo -e "\000")
++echo $filenames | while read name; do
++if test -r "$name" ; then
++case "$name" in
+ *.fli | *.lfc | *.flic )
+ PATH="$PATH:."
+- aaflip $options $name
++ aaflip $options "$name"
+ ;;
+ *)
+- myconvert $name >/tmp/aview$$.pgm &
++ myconvert "$name" >/tmp/aview$$.pgm &
+ pid=$!
+ PATH="$PATH:."
+ aview $options /tmp/aview$$.pgm
diff --git a/media-gfx/aview/files/aview-1.3.0_rc1-includes.patch b/media-gfx/aview/files/aview-1.3.0_rc1-includes.patch
new file mode 100644
index 000000000000..3e5006b4c549
--- /dev/null
+++ b/media-gfx/aview/files/aview-1.3.0_rc1-includes.patch
@@ -0,0 +1,11 @@
+Index: aview-1.3.0/main.c
+===================================================================
+--- aview-1.3.0.orig/main.c
++++ aview-1.3.0/main.c
+@@ -1,4 +1,6 @@
+ #include <aalib.h>
++#include <string.h>
++#include <stdlib.h>
+ #include "image.h"
+ #include "ui.h"
+ #include "config.h"
diff --git a/media-gfx/aview/files/aview-1.3.0_rc1-tmp_creation.patch b/media-gfx/aview/files/aview-1.3.0_rc1-tmp_creation.patch
new file mode 100644
index 000000000000..f792e8bfebbb
--- /dev/null
+++ b/media-gfx/aview/files/aview-1.3.0_rc1-tmp_creation.patch
@@ -0,0 +1,46 @@
+Fix insecure temporary file creation, see:
+https://bugs.gentoo.org/show_bug.cgi?id=235808
+
+Index: aview-1.3.0/asciiview
+===================================================================
+--- aview-1.3.0.orig/asciiview
++++ aview-1.3.0/asciiview
+@@ -3,11 +3,11 @@
+ clear()
+ {
+ kill $! 2>/dev/null
+- rm -f /tmp/aview$$.pgm 2>/dev/null
++ rm -rf $tmpdir 2>/dev/null
+ }
+ myconvert()
+ {
+- if anytopnm "$1" >/tmp/aview$$.pgm 2>/dev/null ; then
++ if anytopnm "$1" >"$2" 2>/dev/null ; then
+ exit
+ elif convert -colorspace gray "$1" pgm:- 2>/dev/null ; then
+ exit
+@@ -56,8 +56,9 @@ while [ "$1" != "" ]; do
+ esac
+ done
+ trap clear 0
+-mkfifo /tmp/aview$$.pgm
+-outfile=/tmp/aview$$.pgm
++tmpdir=`mktemp -t -d`
++outfile=$tmpdir/aview.pgm
++mkfifo $outfile
+ IFS=$(echo -e "\000")
+ echo $filenames | while read name; do
+ if test -r "$name" ; then
+@@ -67,10 +68,10 @@ case "$name" in
+ aaflip $options "$name"
+ ;;
+ *)
+- myconvert "$name" >/tmp/aview$$.pgm &
++ myconvert "$name" "$outfile" >"$outfile" &
+ pid=$!
+ PATH="$PATH:."
+- aview $options /tmp/aview$$.pgm
++ aview $options $outfile
+ kill $pid 2>/dev/null
+ esac
+ else
diff --git a/media-gfx/aview/metadata.xml b/media-gfx/aview/metadata.xml
new file mode 100644
index 000000000000..89e6ed9726f3
--- /dev/null
+++ b/media-gfx/aview/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-needed -->
+ <upstream>
+ <remote-id type="sourceforge">aa-project</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/media-gfx/birdfont/Manifest b/media-gfx/birdfont/Manifest
new file mode 100644
index 000000000000..41da3bf9f0db
--- /dev/null
+++ b/media-gfx/birdfont/Manifest
@@ -0,0 +1,4 @@
+DIST birdfont-2.18.3.tar.xz 2333612 SHA256 1ef5e4c19f6da423b30a1e33c21b53335c235a6e0a46da86e422f4ebb48bc03d SHA512 c86fff4e40ecfc571e3880cfa99f6adf518daae5476ea1b2a78bab031bc832bc5c8d58ecc928eda4922134fd3ceca312b80cbb8cf2fd35ecb8dc7656addb854e WHIRLPOOL de7d281163f6d668741439f8e452116683ce8a4e928b70a6dcfc9123768d34661c0fddea7ef91fd503ed2ba0be09815a6f666be55def880b068b60336ce5c16e
+EBUILD birdfont-2.18.3.ebuild 1831 SHA256 793daf45ae34ec1340099cd57ede9e70eacc2c880d0ec60a66957beee7d8c46b SHA512 3a6dac916f99c69cff94e4661ccef0fbb651dd95114ebdb9802a32d92551215f1681a6dd7319b2b0fc35a5081daf4658c4228b7554234707b02101f401495832 WHIRLPOOL b4a2cc52beb853977eaa69556aef75f60c90ee433bd0a46a8e8c75d59664441a4eb886c246a8705eb0c0495de729065ed2b5ae1330d4fe8ffa1fb8fbb62d98b3
+MISC ChangeLog 949 SHA256 99c477a2308f240b77314c885db3f3345a598e404420b83d37bee3f6dd6b44fb SHA512 92f14e6879399c4d022d94c5b5d82bda325699a2d37d583b7687850dac52abd33c541240941718edeb55388e790947abca4bbe54ca1fb2f6c20875a8ec74a286 WHIRLPOOL 499868d09d9311d0a447fc2451593f6a7775047f7a8a361ba957df7c568825c94f324b7f409a5eef4d4a4bce2cd3ab2f1d4c21364b067ab99c8d099c06ad7fab
+MISC metadata.xml 352 SHA256 a5eb44b8575ee07ad47283cfc0f069993600ae48cce150d1713c087c086d4864 SHA512 ef910c9c78ad31aff97b15546e892bfa52a18ca9ccbf2b325c96c60f440fa09d5535ea2455e42dba2a11983b4e8b7eb7c3881c47fa6d43df6a22ac4d01535adc WHIRLPOOL 80d73bc750f35972f2c5aa98dd15dcb96904342f57ac67cfac4641d515ec7e2937dbc72581238b66944b16595f2479e28ad9f02f02d1dd94b1930dd4360f4ba1
diff --git a/media-gfx/birdfont/birdfont-2.18.3.ebuild b/media-gfx/birdfont/birdfont-2.18.3.ebuild
new file mode 100644
index 000000000000..cc951a0230fa
--- /dev/null
+++ b/media-gfx/birdfont/birdfont-2.18.3.ebuild
@@ -0,0 +1,88 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} )
+PLOCALES="cs de it nl pt_BR sv"
+
+inherit python-any-r1 vala l10n toolchain-funcs multiprocessing
+
+DESCRIPTION="Font editor for the creation of vector graphics and export TTF, EOT & SVG fonts"
+HOMEPAGE="https://birdfont.org/"
+SRC_URI="https://birdfont.org/releases/${P}.tar.xz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="gtk nls"
+
+RDEPEND="
+ dev-db/sqlite:3
+ dev-libs/libgee:0.8=
+ dev-libs/glib:2
+ media-libs/fontconfig
+ media-libs/freetype:2
+ media-libs/libxmlbird
+ x11-libs/gdk-pixbuf:2
+ gtk? (
+ net-libs/libsoup:2.4
+ net-libs/webkit-gtk:4=
+ x11-libs/cairo
+ x11-libs/gdk-pixbuf:2
+ x11-libs/gtk+:3
+ x11-libs/libnotify
+ )
+"
+DEPEND="${RDEPEND}
+ ${PYTHON_DEPS}
+ $(python_gen_any_dep 'dev-python/doit[${PYTHON_USEDEP}]')
+ $(vala_depend)
+ nls? ( sys-devel/gettext )
+"
+
+src_prepare() {
+ default
+ vala_src_prepare
+ sed -i \
+ -e "s:pkg-config:$(tc-getPKG_CONFIG):" \
+ configure dodo.py || die
+}
+
+v() {
+ echo "$@"
+ "$@" || die
+}
+
+src_configure() {
+ # The build scripts glob all po files to see what's available.
+ # Delete the files for langs we don't want to support.
+ if use nls ; then
+ l10n_find_plocales_changes po "" ".po" || die
+ rm_locale() { rm "po/$1.po" || die ; }
+ l10n_for_each_disabled_locale_do rm_locale
+ else
+ rm po/*.po || die
+ fi
+
+ v ./configure \
+ --prefix "${EPREFIX}/usr" \
+ --gtk $(usex gtk True False) \
+ --gee gee-0.8 \
+ --valac "${VALAC}" \
+ --cc "$(tc-getCC)" \
+ --cflags "${CFLAGS} ${CPPFLAGS}" \
+ --ldflags "${LDFLAGS}"
+}
+
+src_compile() {
+ v doit run -n $(makeopts_jobs)
+}
+
+src_install() {
+ v ./install.py \
+ --dest "${D}" \
+ --nogzip \
+ --libdir "$(get_libdir)" \
+ --manpages-directory "/share/man/man1"
+ einstalldocs
+}
diff --git a/media-gfx/birdfont/metadata.xml b/media-gfx/birdfont/metadata.xml
new file mode 100644
index 000000000000..c0c763874bf4
--- /dev/null
+++ b/media-gfx/birdfont/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>fonts@gentoo.org</email>
+</maintainer>
+<upstream>
+ <bugs-to>https://birdfont.org/bugtracker/</bugs-to>
+ <remote-id type="github">johanmattssonm/birdfont</remote-id>
+</upstream>
+</pkgmetadata>
diff --git a/media-gfx/blender/Manifest b/media-gfx/blender/Manifest
new file mode 100644
index 000000000000..2fadb7d0abe3
--- /dev/null
+++ b/media-gfx/blender/Manifest
@@ -0,0 +1,18 @@
+AUX blender-2.68-doxyfile.patch 732 SHA256 d485da5bdf1f123d945b8f945a84ead947ff123b4126a626bb394256ea07cbec SHA512 5191a25127e24d3ac7b18f6cd0b247e76a3fdeec46640f5d1ecba118fa35abbdaf19642c718e85149a304e9dc2093465b54b96e343f125163d091f045ab09db7 WHIRLPOOL 5cfdb697bf18aa50488495d017feda2e071332996a72e1a3c347291034c7230ad63c89e38670a86df633d3dc8359962e8888e4f0f1a2fa0b478acdb33a8f4d64
+AUX blender-2.68-fix-install-rules.patch 740 SHA256 93ae6cc8cfbb2ce856adf7a0dbf5966843630edaa4d7828de42d1bb5ba76058d SHA512 dd21cb3aa8bf965631132d39ad8a43c15d0c32faeaee00e8b8a970108fba0ab43b2402e3637dcd0b3430b7023ac9203b0395bbd2dc2dd9eb80d8c1d994d89e4f WHIRLPOOL 7c86d7637fdbf1d4c1f631b6a47c7e02399a00976189acaf9fc041765419cd2ffaaaab0d6fb05f4ba67024d14cfc778f3620f9d6cbf89e81b16a467e45beac75
+AUX blender-2.70-sse2.patch 1421 SHA256 b20d9aba206543e765e147e7740aff48ef968b90620d9d4b902cb6c23b9ba28f SHA512 9888110efaab16ec15438ad463c3ffa0bb4f64c23bb162254abe0ddb4acd42935a5fd1fdbf186b1cf1dad042044f8777b5f58c446423894788c655187bfe3cca WHIRLPOOL c3990dac70078a13ba005da5b649b9b72bdf04313551f2e41d639efc6a666006e1af54f11bb8c82608956df03547297303bf7a8a6e8cd03364d994910bde60c7
+AUX blender-2.72-T42797.diff 342 SHA256 b885241c16ec343870053a29f49cfc05af6e61f0959082d24b778a05e9d6e29b SHA512 abe6c6e28a094ef76bad97c979f5927c464a8421a430bde3ea0fadc76eabd7a9049678a5d475363aba5e534fe12c8858ddcfd5e01fa39ba24ea79ebabec71407 WHIRLPOOL 7ebbcf23d9143b2c88e431676303f7f15ffdd203184b5c6ddb29b767f2396235e24299fb74719fbf87e0e6ab0dfb4fc39f0061cadaa16039df6f7ba75edd6df5
+AUX blender-2.72b-fix-util_simd.patch 292 SHA256 2459a744cf9d000fa0cc9cdd6068f58fb44ba3a4c6c6ebe4f1a8d0cc2ed878c1 SHA512 17c328b9c64f1f42b4223d5f0777a68500235f95a85b761fdef216c5af4be17f67455e8044ab52fe6dd3e0bdfc6a7075cc3c21dae135a9cc7d174b6972b0326b WHIRLPOOL 289c336a36f000120568e541391b58ce5ea7d48b883175c006fd4d7385de7744e6b3d5823feae9dcdfb701daca74df3cc3928b9d1c1c52c55288cf7c38f5d401
+AUX blender-2.72b-gcc6-fixes.patch 4828 SHA256 09fde9c5ae83668cd86bc5059a8815b89ae61ed5b23239db975d26e6188bf116 SHA512 886d594a87aafe827ed65c6106c29c727ec31b92a3a2df32023cc2b728719c4e6e7a8418b725201d338331e23cca17a88f518b353735b33e40cee30a754050cc WHIRLPOOL a7e21732151d782c1f56e275e32b52870bb7d971c04050c2d9cae9a342f6cc8d40686ee6e53027c32bf2cc1e7ff53f02e4ae6f6440179b937ca12f5795274da9
+AUX blender-2.78-C++11-build-fix.patch 473 SHA256 07e20c0deeadaabf28ec1ba16902f6f1d0fd6ad7070b1eeb42a76a61e44860d1 SHA512 5d48121124e1f3832d24273b95908922827111fad4449b574908f52c9c02b9d7a0d89502850df4b653ba82b8150f2f4369b2807cddd45ca352f1fe0e74e738ef WHIRLPOOL 08ed7765580d4f2d87c10818af15e760023cfefca2ca3fdc1b43ff98f0ac29f3263f1bdee8518927dbef5b42f0a70121900aa0bc10c103bacaa60f586ce8e5f3
+AUX blender-2.78-eigen-3.3.1.patch 666 SHA256 35900be15f8bb0540050ffab9067122ba87433eecf896095e7ce1e889e54af5b SHA512 9a2ee48fa38e23a5b086514468bd1c96ee2b97228e95cdfaac3c5d3b2c21c4e47a0ced4306d7dc89268d63b60e551b655d6d627790215ad68791fe3f35717bf5 WHIRLPOOL b073ba691ada03ead560a9be8907b8c1111c1029fdc7e6a4f59c24f5771a34bc287800f9458d81488fa19faba662afd876693bd9933600e498b13d95c4f134c6
+AUX blender-fix-install-rules.patch 518 SHA256 4fbdd73c4bb20e316f6a02c7e6a33a90285db787aac5b3baf66394d256fe6e0f SHA512 5343f0e9e6bba2d15a38cb5db95a1aeff0a704c0762e558b9b74d88dd58e2fb5077289f0d8f25a61fa092d083f7db916d27c4642dfd7cf84d4c989258c3253ec WHIRLPOOL 6ae8c113ab1ccac5c1465e0deab3bd101922303c0f60ecdb4d1cbff7dd02d37c299d4897beb5239b60e8724e47b830ecd5b7f6045dd301847f2583d559bdacbb
+DIST blender-2.72b.tar.gz 52018242 SHA256 4436c704afa28e2e5e7b28b2c06981806ddedab70565d40972e422c00644bf47 SHA512 9767797621e443ff9b6810d1713dda110f883c33626d40d7fe5dda676f549e3591516dc24b75feebd85823dd13437c34521ca752139cd31ddacf31ea6b14e124 WHIRLPOOL 3687255bc9f4195b25b66a75630676ee15e67cf10a058dca11b3472617b54aae2bebb1810cc16e19c58ca1c09b1ea8b70f72e30c05632ab0bae8910925a37a54
+DIST blender-2.78.tar.gz 44489809 SHA256 17863e1ccb3bfdcc932d37cf9e525318130064c756cfb92a9ab479780d3ed441 SHA512 9144ce28377271dafe973b59721da41b6e3954736c705e1540be8dba3124e4c32e5cce5fb3ef7158505d45401478d257720350b38fa8e8649cc35cbd28a2f978 WHIRLPOOL a1a70cb723a111d1ae5a33b274a0e23bbd9c1b0777f96c917da1b4854171a88b6abe64c0636613008de68e68200a1d387e940ee592ff87c225745c668508d896
+DIST blender-2.78a.tar.gz 44188123 SHA256 014a14b1ba00c0e651f106469b2e5dd444f11be5a7af48056f0ed59de90cceaf SHA512 57239b6ce473aaef114453f97a6e88535ec0a2f50cfecd221fa6bdcca6fe6559dcbefd48c3f20dc2235c195de13c59a1a155d5b64d777be31812d32e68be9370 WHIRLPOOL 85ea5ea5594716433a5f2f14233a489841598baf80170f01fff3946b4fa6ebc99086396a232f0f3c5f0e8c8d6c16ec27e98b7b58d79d289f5190214dc7efb677
+EBUILD blender-2.72b-r4.ebuild 8113 SHA256 aca67f10be40865a4ebb7566bef6d0d0df5b05f1e71fca1628ace5b3a80a6a4e SHA512 837256447e727e165cb05e733236162ac03a82fa72a41e3a7d894c5efb60a26a959442cdc6eb528ad676b641f127b37d454080392ce54d14676cc8e29487c783 WHIRLPOOL 4e1ca4068f7f7afcdd424290a85331a4cf8703efc737dd7bc9da2d8de87b6b81ecbfba00927ea46d059c3418adc4ee7b99138d538e99ab032887f77d7a846fe6
+EBUILD blender-2.78-r1.ebuild 8410 SHA256 be28f87b07c02a9e59180a9b38b7cec7a8811105825f5eac86c90d98d79a8820 SHA512 0c9da4dd2ec174ce4ca15e548d2a326763b8a58a871c888f1c3c5eee73833a9cf6ffae647390453409f098093df232fb78eed47827ee362c44c61d5394e75242 WHIRLPOOL 9c07a85e7f1a212d033b07994eeb45667c3a53068af49a27984bffca6207b26a360ab8708ecc9f4edc5f744c207096567e20c66f5d1d53a4e5c57eafc104463a
+EBUILD blender-2.78a-r1.ebuild 8378 SHA256 0851714a878f104773bef61ce52a3978464baaa3df878ede15306cdca7ad8838 SHA512 6ec1d4bf323b22c671784018391335c43efa8e8474985d2c94a83a810fdebf617a5b66a1f4bc8d980e60d21be1dc8b46cc1a139f12c39d20c25cc53d290f0dc5 WHIRLPOOL 443bcc518b88d1419458bf1df651b804931221703c76969c4526c5e2825aa45313c12b6f7ffcf778abfd78aa3d3cfb11933f26250bf0119b9c86d8624b86ab43
+MISC ChangeLog 5908 SHA256 bf1e87152917f8d93f12a723a34c44c2981b834e8c0368a117277fab370b7f63 SHA512 4ecfe1e81a3cbef730464ca09ab76cccc3c33ffdeb15e412621e361ea09b61ee9a740635f9c65573ecac02a89dd46a460091a0dda3f31dffd6956918ff190621 WHIRLPOOL e1968db15e6c01e33a99bf4a5c11d4b5852659548bda8cfba6c2b9434e25045d81cee0b1fc1e98c4512a6618d2cde1a2d20d6b4725663170bc22c033581ec7fc
+MISC ChangeLog-2015 51525 SHA256 330dad5cc66f4609a32ce1b9f6900fdada8599500dfc49f5cf83b7f6b37ab4e2 SHA512 8644e1836d99907a8bf2806fd76102ed13e2bd4b8bf382e5fb51bf9e33504502af62bac461d88d99b2c5f0a4f9d5421c08c9a2f6f5c811a798d0cca439aa9087 WHIRLPOOL 3e2e2c4b9ca4b44c27b313dea9fed6cb97540f7f021925e2a2be0afa4bd142493b192f2ecb163281de4506ecfc0b9c75d6b1a51be36739bc2b8ccb2252b2b752
+MISC metadata.xml 3440 SHA256 45cba6ae08884bbca2a5a94993dde5abfd900ead160a2f7eec19a3f4779bb696 SHA512 75c1cfb4998e9bbd2c3d4836bfba2f273d90920a2a72f70b599ee4cdfdfbf02cf1f2508aa24df6c762e3c323000de0a04623b21caaf5843e235888d3906043a8 WHIRLPOOL f20d54a0f468ee3ed1c1d5eca5790f73963d1abceb7fd7ed2040d060882fdf40950e728eea5686f50f60124a1a8ce85c6c5a84da7f67de5660930ce6a3c69c53
diff --git a/media-gfx/blender/blender-2.72b-r4.ebuild b/media-gfx/blender/blender-2.72b-r4.ebuild
new file mode 100644
index 000000000000..ede795b90d16
--- /dev/null
+++ b/media-gfx/blender/blender-2.72b-r4.ebuild
@@ -0,0 +1,290 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+## BUNDLED-DEPS:
+# extern/cuew
+# extern/Eigen3
+# extern/xdnd
+# extern/carve
+# extern/glew
+# extern/libmv
+# extern/clew
+# extern/colamd
+# extern/lzma
+# extern/gtest
+# extern/rangetree
+# extern/libredcode
+# extern/wcwidth
+# extern/binreloc
+# extern/recastnavigation
+# extern/bullet2
+# extern/lzo
+# extern/libopenjpeg
+# extern/libmv/third_party/msinttypes
+# extern/libmv/third_party/ceres
+# extern/libmv/third_party/gflags
+# extern/libmv/third_party/glog
+
+EAPI=6
+PYTHON_COMPAT=( python3_4 )
+#PATCHSET="1"
+
+inherit multilib fdo-mime gnome2-utils cmake-utils eutils python-single-r1 versionator flag-o-matic toolchain-funcs pax-utils check-reqs
+
+DESCRIPTION="3D Creation/Animation/Publishing System"
+HOMEPAGE="http://www.blender.org"
+
+case ${PV} in
+ *_p*)
+ SRC_URI="https://dev.gentoo.org/~lu_zero/${P}.tar.gz" ;;
+ *)
+ SRC_URI="http://download.blender.org/source/${P}.tar.gz" ;;
+esac
+
+if [[ -n ${PATCHSET} ]]; then
+ SRC_URI+=" https://dev.gentoo.org/~flameeyes/${PN}/${P}-patches-${PATCHSET}.tar.xz"
+fi
+
+SLOT="0"
+LICENSE="|| ( GPL-2 BL )"
+KEYWORDS="amd64 x86"
+IUSE="+boost +bullet collada colorio cycles +dds debug doc +elbeem ffmpeg fftw +game-engine jack jpeg2k libav ndof nls openal openimageio +opennl openmp +openexr player redcode sdl sndfile cpu_flags_x86_sse cpu_flags_x86_sse2 tiff"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}
+ player? ( game-engine )
+ redcode? ( jpeg2k ffmpeg )
+ cycles? ( boost openexr tiff )
+ nls? ( boost )
+ colorio? ( boost )
+ openal? ( boost )
+ game-engine? ( boost )
+ ?? ( ffmpeg libav )"
+
+RDEPEND="
+ ${PYTHON_DEPS}
+ dev-python/numpy[${PYTHON_USEDEP}]
+ dev-python/requests[${PYTHON_USEDEP}]
+ >=media-libs/freetype-2.0:2
+ media-libs/glew:0=
+ media-libs/libpng:0
+ media-libs/libsamplerate
+ sys-libs/zlib
+ virtual/glu
+ virtual/jpeg:0
+ virtual/libintl
+ virtual/opengl
+ x11-libs/libX11
+ x11-libs/libXi
+ x11-libs/libXxf86vm
+ boost? ( >=dev-libs/boost-1.44[nls?,threads(+)] )
+ collada? ( >=media-libs/opencollada-1.6.18 )
+ colorio? ( >=media-libs/opencolorio-1.0.9-r2 )
+ cycles? (
+ media-libs/openimageio
+ )
+ ffmpeg? ( media-video/ffmpeg:0=[x264,mp3,encode,theora,jpeg2k?] )
+ libav? ( >=media-video/libav-11.3:0=[x264,mp3,encode,theora,jpeg2k?] )
+ fftw? ( sci-libs/fftw:3.0 )
+ jack? ( media-sound/jack-audio-connection-kit )
+ jpeg2k? ( media-libs/openjpeg:0 )
+ ndof? (
+ app-misc/spacenavd
+ dev-libs/libspnav
+ )
+ nls? ( virtual/libiconv )
+ openal? ( >=media-libs/openal-1.6.372 )
+ openimageio? ( media-libs/openimageio )
+ openexr? ( media-libs/ilmbase media-libs/openexr )
+ sdl? ( media-libs/libsdl[sound,joystick] )
+ sndfile? ( media-libs/libsndfile )
+ tiff? ( media-libs/tiff:0 )"
+DEPEND="${RDEPEND}
+ doc? (
+ app-doc/doxygen[-nodot(-),dot(+)]
+ dev-python/sphinx
+ )
+ nls? ( sys-devel/gettext )"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-2.68-doxyfile.patch
+ "${FILESDIR}"/${PN}-2.68-fix-install-rules.patch
+ "${FILESDIR}"/${PN}-2.70-sse2.patch
+ "${FILESDIR}"/${PN}-2.72-T42797.diff
+ "${FILESDIR}"/${P}-fix-util_simd.patch
+ "${FILESDIR}"/${P}-gcc6-fixes.patch
+)
+
+pkg_pretend() {
+ if use openmp && ! tc-has-openmp; then
+ eerror "You are using gcc built without 'openmp' USE."
+ eerror "Switch CXX to an OpenMP capable compiler."
+ die "Need openmp"
+ fi
+
+ if use doc; then
+ CHECKREQS_DISK_BUILD="4G" check-reqs_pkg_pretend
+ fi
+}
+
+pkg_setup() {
+ python-single-r1_pkg_setup
+}
+
+src_prepare() {
+ default
+
+ # we don't want static glew, but it's scattered across
+ # thousand files
+ # !!!CHECK THIS SED ON EVERY VERSION BUMP!!!
+ sed -i \
+ -e '/-DGLEW_STATIC/d' \
+ $(find . -type f -name "CMakeLists.txt") || die
+
+ # linguas cleanup
+ local i
+ if ! use nls; then
+ rm -r "${S}"/release/datafiles/locale || die
+ else
+ if [[ -n "${LINGUAS+x}" ]] ; then
+ cd "${S}"/release/datafiles/locale/po
+ for i in *.po ; do
+ mylang=${i%.po}
+ has ${mylang} ${LINGUAS} || { rm -r ${i} || die ; }
+ done
+ fi
+ fi
+}
+
+src_configure() {
+ # FIX: forcing '-funsigned-char' fixes an anti-aliasing issue with menu
+ # shadows, see bug #276338 for reference
+ append-flags -funsigned-char
+ append-lfs-flags
+ append-ldflags $(no-as-needed)
+
+ # WITH_PYTHON_SECURITY
+ # WITH_PYTHON_SAFETY
+ local mycmakeargs=(
+ -DCMAKE_INSTALL_PREFIX=/usr
+ -DWITH_INSTALL_PORTABLE=OFF
+ -DWITH_BOOST=$(usex boost ON OFF )
+ -DWITH_CYCLES=$(usex cycles ON OFF )
+ -DWITH_OPENCOLLADA=$(usex collada ON OFF )
+ -DWITH_IMAGE_DDS=$(usex dds ON OFF )
+ -DWITH_MOD_FLUID=$(usex elbeem ON OFF )
+ -DWITH_CODEC_FFMPEG=$(usex ffmpeg ON OFF )
+ -DWITH_FFTW3=$(usex fftw ON OFF )
+ -DWITH_MOD_OCEANSIM=$(usex fftw ON OFF )
+ -DWITH_GAMEENGINE=$(usex game-engine ON OFF )
+ -DWITH_INTERNATIONAL=$(usex nls ON OFF )
+ -DWITH_JACK=$(usex jack ON OFF )
+ -DWITH_IMAGE_OPENJPEG=$(usex jpeg2k ON OFF )
+ -DWITH_OPENIMAGEIO=$(usex openimageio ON OFF )
+ -DWITH_OPENAL=$(usex openal ON OFF )
+ -DWITH_IMAGE_OPENEXR=$(usex openexr ON OFF )
+ -DWITH_OPENMP=$(usex openmp ON OFF )
+ -DWITH_OPENNL=$(usex opennl ON OFF )
+ -DWITH_PLAYER=$(usex player ON OFF )
+ -DWITH_IMAGE_REDCODE=$(usex redcode ON OFF )
+ -DWITH_SDL=$(usex sdl ON OFF )
+ -DWITH_CODEC_SNDFILE=$(usex sndfile ON OFF )
+ -DWITH_RAYOPTIMIZATION=$(usex cpu_flags_x86_sse ON OFF )
+ -DWITH_SSE2=$(usex cpu_flags_x86_sse2 ON OFF )
+ -DWITH_BULLET=$(usex bullet ON OFF )
+ -DWITH_IMAGE_TIFF=$(usex tiff ON OFF )
+ -DWITH_OPENCOLORIO=$(usex colorio ON OFF )
+ -DWITH_INPUT_NDOF=$(usex ndof ON OFF )
+ -DWITH_CXX_GUARDEDALLOC=$(usex debug ON OFF )
+ -DWITH_ASSERT_ABORT=$(usex debug ON OFF )
+ -DWITH_PYTHON_INSTALL=OFF
+ -DWITH_PYTHON_INSTALL_NUMPY=OFF
+ -DWITH_STATIC_LIBS=OFF
+ -DWITH_SYSTEM_GLEW=ON
+ -DWITH_SYSTEM_OPENJPEG=ON
+ -DWITH_SYSTEM_BULLET=OFF
+ -DPYTHON_VERSION="${EPYTHON/python/}"
+ -DPYTHON_LIBRARY="$(python_get_library_path)"
+ -DPYTHON_INCLUDE_DIR="$(python_get_includedir)"
+ )
+ cmake-utils_src_configure
+}
+
+src_compile() {
+ cmake-utils_src_compile
+
+ if use doc; then
+ # Workaround for binary drivers.
+ cards=( /dev/ati/card* /dev/nvidia* )
+ for card in "${cards[@]}"; do addpredict "${card}"; done
+
+ einfo "Generating Blender C/C++ API docs ..."
+ cd "${CMAKE_USE_DIR}"/doc/doxygen || die
+ doxygen -u Doxyfile
+ doxygen || die "doxygen failed to build API docs."
+
+ cd "${CMAKE_USE_DIR}" || die
+ einfo "Generating (BPY) Blender Python API docs ..."
+ "${BUILD_DIR}"/bin/blender --background --python doc/python_api/sphinx_doc_gen.py -noaudio || die "blender failed."
+
+ cd "${CMAKE_USE_DIR}"/doc/python_api || die
+ sphinx-build sphinx-in BPY_API || die "sphinx failed."
+ fi
+}
+
+src_test() { :; }
+
+src_install() {
+ local i
+
+ # Pax mark blender for hardened support.
+ pax-mark m "${CMAKE_BUILD_DIR}"/bin/blender
+
+ if use doc; then
+ docinto "html/API/python"
+ dodoc -r "${CMAKE_USE_DIR}"/doc/python_api/BPY_API/*
+
+ docinto "html/API/blender"
+ dodoc -r "${CMAKE_USE_DIR}"/doc/doxygen/html/*
+ fi
+
+ # fucked up cmake will relink binary for no reason
+ emake -C "${CMAKE_BUILD_DIR}" DESTDIR="${D}" install/fast
+
+ # fix doc installdir
+ docinto "html"
+ dodoc "${CMAKE_USE_DIR}"/release/text/readme.html
+ rm -rf "${ED%/}"/usr/share/doc/blender
+
+ python_fix_shebang "${ED%/}"/usr/bin/blender-thumbnailer.py
+ python_optimize "${ED%/}"/usr/share/blender/${PV}/scripts
+}
+
+pkg_preinst() {
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ elog
+ elog "Blender uses python integration. As such, may have some"
+ elog "inherit risks with running unknown python scripting."
+ elog
+ elog "It is recommended to change your blender temp directory"
+ elog "from /tmp to /home/user/tmp or another tmp file under your"
+ elog "home directory. This can be done by starting blender, then"
+ elog "dragging the main menu down do display all paths."
+ elog
+ ewarn
+ ewarn "This ebuild does not unbundle the massive amount of 3rd party"
+ ewarn "libraries which are shipped with blender. Note that"
+ ewarn "these have caused security issues in the past."
+ ewarn "If you are concerned about security, file a bug upstream:"
+ ewarn " https://developer.blender.org/"
+ ewarn
+
+ gnome2_icon_cache_update
+ fdo-mime_desktop_database_update
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+ fdo-mime_desktop_database_update
+}
diff --git a/media-gfx/blender/blender-2.78-r1.ebuild b/media-gfx/blender/blender-2.78-r1.ebuild
new file mode 100644
index 000000000000..8fa572492341
--- /dev/null
+++ b/media-gfx/blender/blender-2.78-r1.ebuild
@@ -0,0 +1,296 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+PYTHON_COMPAT=( python3_5 )
+
+inherit check-reqs cmake-utils fdo-mime flag-o-matic gnome2-utils \
+ pax-utils python-single-r1 toolchain-funcs versionator
+
+DESCRIPTION="3D Creation/Animation/Publishing System"
+HOMEPAGE="http://www.blender.org"
+
+SRC_URI="http://download.blender.org/source/${P}.tar.gz"
+
+# Blender can have letters in the version string,
+# so strip of the letter if it exists.
+MY_PV="$(get_version_component_range 1-2)"
+
+SLOT="0"
+LICENSE="|| ( GPL-2 BL )"
+KEYWORDS="~amd64 ~x86"
+IUSE="+boost +bullet +dds +elbeem +game-engine +openexr collada colorio \
+ cuda cycles debug doc ffmpeg fftw headless jack jemalloc jpeg2k libav \
+ llvm man ndof nls openal openimageio openmp opensubdiv openvdb \
+ player sdl sndfile test tiff valgrind"
+
+# OpenCL and nVidia performance is rubbish with Blender
+# If you have nVidia, use CUDA.
+REQUIRED_USE="${PYTHON_REQUIRED_USE}
+ player? ( game-engine !headless )
+ cuda? ( cycles )
+ cycles? ( boost openexr tiff openimageio )
+ colorio? ( boost )
+ openvdb? ( boost )
+ opensubdiv? ( cuda )
+ nls? ( boost )
+ openal? ( boost )
+ game-engine? ( boost )
+ ?? ( ffmpeg libav )"
+
+# Since not using OpenCL with nVidia, depend on ATI binary
+# blobs as Cycles with OpenCL does not work with any open
+# source drivers.
+RDEPEND="${PYTHON_DEPS}
+ dev-libs/lzo:2
+ >=dev-python/numpy-1.10.1[${PYTHON_USEDEP}]
+ dev-python/requests[${PYTHON_USEDEP}]
+ media-libs/freetype
+ media-libs/glew:*
+ media-libs/libpng:0=
+ media-libs/libsamplerate
+ sys-libs/zlib
+ virtual/glu
+ virtual/jpeg:0=
+ virtual/libintl
+ virtual/opengl
+ boost? ( >=dev-libs/boost-1.62:=[nls?,threads(+)] )
+ collada? ( >=media-libs/opencollada-1.6.18:= )
+ colorio? ( >=media-libs/opencolorio-1.0.9-r2 )
+ cuda? ( dev-util/nvidia-cuda-toolkit:= )
+ ffmpeg? ( media-video/ffmpeg:=[x264,mp3,encode,theora,jpeg2k?] )
+ libav? ( >=media-video/libav-11.3:=[x264,mp3,encode,theora,jpeg2k?] )
+ fftw? ( sci-libs/fftw:3.0= )
+ !headless? (
+ x11-libs/libX11
+ x11-libs/libXi
+ x11-libs/libXxf86vm
+ )
+ jack? ( media-sound/jack-audio-connection-kit )
+ jemalloc? ( dev-libs/jemalloc:= )
+ jpeg2k? ( media-libs/openjpeg:0 )
+ llvm? ( sys-devel/llvm )
+ ndof? (
+ app-misc/spacenavd
+ dev-libs/libspnav
+ )
+ nls? ( virtual/libiconv )
+ openal? ( media-libs/openal )
+ openimageio? ( >=media-libs/openimageio-1.6.9 )
+ openexr? (
+ >=media-libs/ilmbase-2.2.0:=
+ >=media-libs/openexr-2.2.0:=
+ )
+ opensubdiv? ( media-libs/opensubdiv[cuda=] )
+ openvdb? (
+ media-gfx/openvdb[${PYTHON_USEDEP},abi3-compat(+),openvdb-compression(+)]
+ dev-cpp/tbb
+ >=dev-libs/c-blosc-1.5.2
+ )
+ sdl? ( media-libs/libsdl2[sound,joystick] )
+ sndfile? ( media-libs/libsndfile )
+ tiff? ( media-libs/tiff:0 )
+ valgrind? ( dev-util/valgrind )"
+
+DEPEND="${RDEPEND}
+ >=dev-cpp/eigen-3.2.8:3
+ nls? ( sys-devel/gettext )
+ doc? (
+ app-doc/doxygen[-nodot(-),dot(+),latex]
+ dev-python/sphinx[latex]
+ )"
+
+PATCHES=( "${FILESDIR}"/${P}-C++11-build-fix.patch
+ "${FILESDIR}"/${PN}-fix-install-rules.patch
+ "${FILESDIR}"/${P}-eigen-3.3.1.patch )
+
+blender_check_requirements() {
+ [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
+
+ if use doc; then
+ CHECKREQS_DISK_BUILD="4G" check-reqs_pkg_pretend
+ fi
+}
+
+pkg_pretend() {
+ blender_check_requirements
+}
+
+pkg_setup() {
+ blender_check_requirements
+ python-single-r1_pkg_setup
+}
+
+src_prepare() {
+ default
+
+ # we don't want static glew, but it's scattered across
+ # multiple files that differ from version to version
+ # !!!CHECK THIS SED ON EVERY VERSION BUMP!!!
+ local file
+ while IFS="" read -d $'\0' -r file ; do
+ sed -i -e '/-DGLEW_STATIC/d' "${file}" || die
+ done < <(find . -type f -name "CMakeLists.txt")
+
+ # Disable MS Windows help generation. The variable doesn't do what it
+ # it sounds like.
+ sed -e "s|GENERATE_HTMLHELP = YES|GENERATE_HTMLHELP = NO|" \
+ -i doc/doxygen/Doxyfile || die
+}
+
+src_configure() {
+ # FIX: forcing '-funsigned-char' fixes an anti-aliasing issue with menu
+ # shadows, see bug #276338 for reference
+ append-flags -funsigned-char
+ append-lfs-flags
+ append-cppflags -DOPENVDB_3_ABI_COMPATIBLE
+
+ local mycmakeargs=(
+ -DPYTHON_VERSION="${EPYTHON/python/}"
+ -DPYTHON_LIBRARY="$(python_get_library_path)"
+ -DPYTHON_INCLUDE_DIR="$(python_get_includedir)"
+ -DWITH_INSTALL_PORTABLE=OFF
+ -DWITH_PYTHON_INSTALL=OFF
+ -DWITH_PYTHON_INSTALL_NUMPY=OFF
+ -DWITH_STATIC_LIBS=OFF
+ -DWITH_SYSTEM_GLEW=ON
+ -DWITH_SYSTEM_OPENJPEG=ON
+ -DWITH_SYSTEM_EIGEN3=ON
+ -DWITH_SYSTEM_LZO=ON
+ -DWITH_C11=ON
+ -DWITH_CXX11=ON
+ -DWITH_BOOST=$(usex boost)
+ -DWITH_BULLET=$(usex bullet)
+ -DWITH_CODEC_FFMPEG=$(usex ffmpeg)
+ -DWITH_CODEC_SNDFILE=$(usex sndfile)
+ -DWITH_CUDA=$(usex cuda)
+ -DWITH_CYCLES_DEVICE_CUDA=$(usex cuda TRUE FALSE)
+ -DWITH_CYCLES=$(usex cycles)
+ -DWITH_CYCLES_OSL=OFF
+ -DWITH_LLVM=$(usex llvm)
+ -DWITH_FFTW3=$(usex fftw)
+ -DWITH_GAMEENGINE=$(usex game-engine)
+ -DWITH_HEADLESS=$(usex headless)
+ -DWITH_X11=$(usex !headless)
+ -DWITH_IMAGE_DDS=$(usex dds)
+ -DWITH_IMAGE_OPENEXR=$(usex openexr)
+ -DWITH_IMAGE_OPENJPEG=$(usex jpeg2k)
+ -DWITH_IMAGE_TIFF=$(usex tiff)
+ -DWITH_INPUT_NDOF=$(usex ndof)
+ -DWITH_INTERNATIONAL=$(usex nls)
+ -DWITH_JACK=$(usex jack)
+ -DWITH_MOD_FLUID=$(usex elbeem)
+ -DWITH_MOD_OCEANSIM=$(usex fftw)
+ -DWITH_OPENAL=$(usex openal)
+ -DWITH_OPENCL=OFF
+ -DWITH_CYCLES_DEVICE_OPENCL=OFF
+ -DWITH_OPENCOLORIO=$(usex colorio)
+ -DWITH_OPENCOLLADA=$(usex collada)
+ -DWITH_OPENIMAGEIO=$(usex openimageio)
+ -DWITH_OPENMP=$(usex openmp)
+ -DWITH_OPENSUBDIV=$(usex opensubdiv)
+ -DWITH_OPENVDB=$(usex openvdb)
+ -DWITH_OPENVDB_BLOSC=$(usex openvdb)
+ -DWITH_PLAYER=$(usex player)
+ -DWITH_SDL=$(usex sdl)
+ -DWITH_CXX_GUARDEDALLOC=$(usex debug)
+ -DWITH_ASSERT_ABORT=$(usex debug)
+ -DWITH_GTESTS=$(usex test)
+ -DWITH_DOC_MANPAGE=$(usex man)
+ -DWITH_MEM_JEMALLOC=$(usex jemalloc)
+ -DWITH_MEM_VALGRIND=$(usex valgrind)
+ )
+ cmake-utils_src_configure
+}
+
+src_compile() {
+ cmake-utils_src_compile
+
+ if use doc; then
+ # Workaround for binary drivers.
+ addpredict /dev/ati
+ addpredict /dev/nvidiactl
+
+ einfo "Generating Blender C/C++ API docs ..."
+ cd "${CMAKE_USE_DIR}"/doc/doxygen || die
+ doxygen -u Doxyfile || die
+ doxygen || die "doxygen failed to build API docs."
+
+ cd "${CMAKE_USE_DIR}" || die
+ einfo "Generating (BPY) Blender Python API docs ..."
+ "${BUILD_DIR}"/bin/blender --background --python doc/python_api/sphinx_doc_gen.py -noaudio || die "sphinx failed."
+
+ cd "${CMAKE_USE_DIR}"/doc/python_api || die
+ sphinx-build sphinx-in BPY_API || die "sphinx failed."
+ fi
+}
+
+src_test() {
+ if use test; then
+ einfo "Running Blender Unit Tests ..."
+ cd "${BUILD_DIR}"/bin/tests || die
+ local f
+ for f in *_test; do
+ ./"${f}" || die
+ done
+ fi
+}
+
+src_install() {
+ # Pax mark blender for hardened support.
+ pax-mark m "${CMAKE_BUILD_DIR}"/bin/blender
+
+ if use doc; then
+ docinto "html/API/python"
+ dodoc -r "${CMAKE_USE_DIR}"/doc/python_api/BPY_API/.
+
+ docinto "html/API/blender"
+ dodoc -r "${CMAKE_USE_DIR}"/doc/doxygen/html/.
+ fi
+
+ cmake-utils_src_install
+
+ # fix doc installdir
+ docinto "html"
+ dodoc "${CMAKE_USE_DIR}"/release/text/readme.html
+ rm -r "${ED%/}"/usr/share/doc/blender || die
+
+ python_fix_shebang "${ED%/}/usr/bin/blender-thumbnailer.py"
+ python_optimize "${ED%/}/usr/share/blender/${MY_PV}/scripts"
+}
+
+pkg_preinst() {
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ elog
+ elog "Blender uses python integration. As such, may have some"
+ elog "inherit risks with running unknown python scripts."
+ elog
+ elog "It is recommended to change your blender temp directory"
+ elog "from /tmp to /home/user/tmp or another tmp file under your"
+ elog "home directory. This can be done by starting blender, then"
+ elog "dragging the main menu down do display all paths."
+ elog
+ ewarn
+ ewarn "This ebuild does not unbundle the massive amount of 3rd party"
+ ewarn "libraries which are shipped with blender. Note that"
+ ewarn "these have caused security issues in the past."
+ ewarn "If you are concerned about security, file a bug upstream:"
+ ewarn " https://developer.blender.org/"
+ ewarn
+ gnome2_icon_cache_update
+ fdo-mime_desktop_database_update
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+ fdo-mime_desktop_database_update
+
+ ewarn ""
+ ewarn "You may want to remove the following directory."
+ ewarn "~/.config/${PN}/${MY_PV}/cache/"
+ ewarn "It may contain extra render kernels not tracked by portage"
+ ewarn ""
+}
diff --git a/media-gfx/blender/blender-2.78a-r1.ebuild b/media-gfx/blender/blender-2.78a-r1.ebuild
new file mode 100644
index 000000000000..f61dd89b1184
--- /dev/null
+++ b/media-gfx/blender/blender-2.78a-r1.ebuild
@@ -0,0 +1,295 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+PYTHON_COMPAT=( python3_5 )
+
+inherit check-reqs cmake-utils fdo-mime flag-o-matic gnome2-utils \
+ pax-utils python-single-r1 toolchain-funcs versionator
+
+DESCRIPTION="3D Creation/Animation/Publishing System"
+HOMEPAGE="http://www.blender.org"
+
+SRC_URI="http://download.blender.org/source/${P}.tar.gz"
+
+# Blender can have letters in the version string,
+# so strip of the letter if it exists.
+MY_PV="$(get_version_component_range 1-2)"
+
+SLOT="0"
+LICENSE="|| ( GPL-2 BL )"
+KEYWORDS="~amd64 ~x86"
+IUSE="+boost +bullet +dds +elbeem +game-engine +openexr collada colorio \
+ cuda cycles debug doc ffmpeg fftw headless jack jemalloc jpeg2k libav \
+ llvm man ndof nls openal openimageio openmp opensubdiv openvdb \
+ player sdl sndfile test tiff valgrind"
+
+# OpenCL and nVidia performance is rubbish with Blender
+# If you have nVidia, use CUDA.
+REQUIRED_USE="${PYTHON_REQUIRED_USE}
+ player? ( game-engine !headless )
+ cuda? ( cycles )
+ cycles? ( boost openexr tiff openimageio )
+ colorio? ( boost )
+ openvdb? ( boost )
+ opensubdiv? ( cuda )
+ nls? ( boost )
+ openal? ( boost )
+ game-engine? ( boost )
+ ?? ( ffmpeg libav )"
+
+# Since not using OpenCL with nVidia, depend on ATI binary
+# blobs as Cycles with OpenCL does not work with any open
+# source drivers.
+RDEPEND="${PYTHON_DEPS}
+ dev-libs/lzo:2
+ >=dev-python/numpy-1.10.1[${PYTHON_USEDEP}]
+ dev-python/requests[${PYTHON_USEDEP}]
+ media-libs/freetype
+ media-libs/glew:*
+ media-libs/libpng:0=
+ media-libs/libsamplerate
+ sys-libs/zlib
+ virtual/glu
+ virtual/jpeg:0=
+ virtual/libintl
+ virtual/opengl
+ boost? ( >=dev-libs/boost-1.62:=[nls?,threads(+)] )
+ collada? ( >=media-libs/opencollada-1.6.18:= )
+ colorio? ( >=media-libs/opencolorio-1.0.9-r2 )
+ cuda? ( =dev-util/nvidia-cuda-toolkit-8.0*:= )
+ ffmpeg? ( media-video/ffmpeg:=[x264,mp3,encode,theora,jpeg2k?] )
+ libav? ( >=media-video/libav-11.3:=[x264,mp3,encode,theora,jpeg2k?] )
+ fftw? ( sci-libs/fftw:3.0= )
+ !headless? (
+ x11-libs/libX11
+ x11-libs/libXi
+ x11-libs/libXxf86vm
+ )
+ jack? ( media-sound/jack-audio-connection-kit )
+ jemalloc? ( dev-libs/jemalloc:= )
+ jpeg2k? ( media-libs/openjpeg:0 )
+ llvm? ( sys-devel/llvm )
+ ndof? (
+ app-misc/spacenavd
+ dev-libs/libspnav
+ )
+ nls? ( virtual/libiconv )
+ openal? ( media-libs/openal )
+ openimageio? ( >=media-libs/openimageio-1.6.9 )
+ openexr? (
+ >=media-libs/ilmbase-2.2.0:=
+ >=media-libs/openexr-2.2.0:=
+ )
+ opensubdiv? ( media-libs/opensubdiv[cuda=] )
+ openvdb? (
+ media-gfx/openvdb[${PYTHON_USEDEP},abi3-compat(+),openvdb-compression(+)]
+ dev-cpp/tbb
+ >=dev-libs/c-blosc-1.5.2
+ )
+ sdl? ( media-libs/libsdl2[sound,joystick] )
+ sndfile? ( media-libs/libsndfile )
+ tiff? ( media-libs/tiff:0 )
+ valgrind? ( dev-util/valgrind )"
+
+DEPEND="${RDEPEND}
+ >=dev-cpp/eigen-3.2.8:3
+ nls? ( sys-devel/gettext )
+ doc? (
+ app-doc/doxygen[-nodot(-),dot(+),latex]
+ dev-python/sphinx[latex]
+ )"
+
+PATCHES=( "${FILESDIR}"/${PN}-fix-install-rules.patch
+ "${FILESDIR}"/${PN}-2.78-eigen-3.3.1.patch )
+
+blender_check_requirements() {
+ [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
+
+ if use doc; then
+ CHECKREQS_DISK_BUILD="4G" check-reqs_pkg_pretend
+ fi
+}
+
+pkg_pretend() {
+ blender_check_requirements
+}
+
+pkg_setup() {
+ blender_check_requirements
+ python-single-r1_pkg_setup
+}
+
+src_prepare() {
+ default
+
+ # we don't want static glew, but it's scattered across
+ # multiple files that differ from version to version
+ # !!!CHECK THIS SED ON EVERY VERSION BUMP!!!
+ local file
+ while IFS="" read -d $'\0' -r file ; do
+ sed -i -e '/-DGLEW_STATIC/d' "${file}" || die
+ done < <(find . -type f -name "CMakeLists.txt")
+
+ # Disable MS Windows help generation. The variable doesn't do what it
+ # it sounds like.
+ sed -e "s|GENERATE_HTMLHELP = YES|GENERATE_HTMLHELP = NO|" \
+ -i doc/doxygen/Doxyfile || die
+}
+
+src_configure() {
+ # FIX: forcing '-funsigned-char' fixes an anti-aliasing issue with menu
+ # shadows, see bug #276338 for reference
+ append-flags -funsigned-char
+ append-lfs-flags
+ append-cppflags -DOPENVDB_3_ABI_COMPATIBLE
+
+ local mycmakeargs=(
+ -DPYTHON_VERSION="${EPYTHON/python/}"
+ -DPYTHON_LIBRARY="$(python_get_library_path)"
+ -DPYTHON_INCLUDE_DIR="$(python_get_includedir)"
+ -DWITH_INSTALL_PORTABLE=OFF
+ -DWITH_PYTHON_INSTALL=OFF
+ -DWITH_PYTHON_INSTALL_NUMPY=OFF
+ -DWITH_STATIC_LIBS=OFF
+ -DWITH_SYSTEM_GLEW=ON
+ -DWITH_SYSTEM_OPENJPEG=ON
+ -DWITH_SYSTEM_EIGEN3=ON
+ -DWITH_SYSTEM_LZO=ON
+ -DWITH_C11=ON
+ -DWITH_CXX11=ON
+ -DWITH_BOOST=$(usex boost)
+ -DWITH_BULLET=$(usex bullet)
+ -DWITH_CODEC_FFMPEG=$(usex ffmpeg)
+ -DWITH_CODEC_SNDFILE=$(usex sndfile)
+ -DWITH_CUDA=$(usex cuda)
+ -DWITH_CYCLES_DEVICE_CUDA=$(usex cuda TRUE FALSE)
+ -DWITH_CYCLES=$(usex cycles)
+ -DWITH_CYCLES_OSL=OFF
+ -DWITH_LLVM=$(usex llvm)
+ -DWITH_FFTW3=$(usex fftw)
+ -DWITH_GAMEENGINE=$(usex game-engine)
+ -DWITH_HEADLESS=$(usex headless)
+ -DWITH_X11=$(usex !headless)
+ -DWITH_IMAGE_DDS=$(usex dds)
+ -DWITH_IMAGE_OPENEXR=$(usex openexr)
+ -DWITH_IMAGE_OPENJPEG=$(usex jpeg2k)
+ -DWITH_IMAGE_TIFF=$(usex tiff)
+ -DWITH_INPUT_NDOF=$(usex ndof)
+ -DWITH_INTERNATIONAL=$(usex nls)
+ -DWITH_JACK=$(usex jack)
+ -DWITH_MOD_FLUID=$(usex elbeem)
+ -DWITH_MOD_OCEANSIM=$(usex fftw)
+ -DWITH_OPENAL=$(usex openal)
+ -DWITH_OPENCL=OFF
+ -DWITH_CYCLES_DEVICE_OPENCL=OFF
+ -DWITH_OPENCOLORIO=$(usex colorio)
+ -DWITH_OPENCOLLADA=$(usex collada)
+ -DWITH_OPENIMAGEIO=$(usex openimageio)
+ -DWITH_OPENMP=$(usex openmp)
+ -DWITH_OPENSUBDIV=$(usex opensubdiv)
+ -DWITH_OPENVDB=$(usex openvdb)
+ -DWITH_OPENVDB_BLOSC=$(usex openvdb)
+ -DWITH_PLAYER=$(usex player)
+ -DWITH_SDL=$(usex sdl)
+ -DWITH_CXX_GUARDEDALLOC=$(usex debug)
+ -DWITH_ASSERT_ABORT=$(usex debug)
+ -DWITH_GTESTS=$(usex test)
+ -DWITH_DOC_MANPAGE=$(usex man)
+ -DWITH_MEM_JEMALLOC=$(usex jemalloc)
+ -DWITH_MEM_VALGRIND=$(usex valgrind)
+ )
+ cmake-utils_src_configure
+}
+
+src_compile() {
+ cmake-utils_src_compile
+
+ if use doc; then
+ # Workaround for binary drivers.
+ addpredict /dev/ati
+ addpredict /dev/nvidiactl
+
+ einfo "Generating Blender C/C++ API docs ..."
+ cd "${CMAKE_USE_DIR}"/doc/doxygen || die
+ doxygen -u Doxyfile || die
+ doxygen || die "doxygen failed to build API docs."
+
+ cd "${CMAKE_USE_DIR}" || die
+ einfo "Generating (BPY) Blender Python API docs ..."
+ "${BUILD_DIR}"/bin/blender --background --python doc/python_api/sphinx_doc_gen.py -noaudio || die "sphinx failed."
+
+ cd "${CMAKE_USE_DIR}"/doc/python_api || die
+ sphinx-build sphinx-in BPY_API || die "sphinx failed."
+ fi
+}
+
+src_test() {
+ if use test; then
+ einfo "Running Blender Unit Tests ..."
+ cd "${BUILD_DIR}"/bin/tests || die
+ local f
+ for f in *_test; do
+ ./"${f}" || die
+ done
+ fi
+}
+
+src_install() {
+ # Pax mark blender for hardened support.
+ pax-mark m "${CMAKE_BUILD_DIR}"/bin/blender
+
+ if use doc; then
+ docinto "html/API/python"
+ dodoc -r "${CMAKE_USE_DIR}"/doc/python_api/BPY_API/.
+
+ docinto "html/API/blender"
+ dodoc -r "${CMAKE_USE_DIR}"/doc/doxygen/html/.
+ fi
+
+ cmake-utils_src_install
+
+ # fix doc installdir
+ docinto "html"
+ dodoc "${CMAKE_USE_DIR}"/release/text/readme.html
+ rm -r "${ED%/}"/usr/share/doc/blender || die
+
+ python_fix_shebang "${ED%/}/usr/bin/blender-thumbnailer.py"
+ python_optimize "${ED%/}/usr/share/blender/${MY_PV}/scripts"
+}
+
+pkg_preinst() {
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ elog
+ elog "Blender uses python integration. As such, may have some"
+ elog "inherit risks with running unknown python scripts."
+ elog
+ elog "It is recommended to change your blender temp directory"
+ elog "from /tmp to /home/user/tmp or another tmp file under your"
+ elog "home directory. This can be done by starting blender, then"
+ elog "dragging the main menu down do display all paths."
+ elog
+ ewarn
+ ewarn "This ebuild does not unbundle the massive amount of 3rd party"
+ ewarn "libraries which are shipped with blender. Note that"
+ ewarn "these have caused security issues in the past."
+ ewarn "If you are concerned about security, file a bug upstream:"
+ ewarn " https://developer.blender.org/"
+ ewarn
+ gnome2_icon_cache_update
+ fdo-mime_desktop_database_update
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+ fdo-mime_desktop_database_update
+
+ ewarn ""
+ ewarn "You may want to remove the following directory."
+ ewarn "~/.config/${PN}/${MY_PV}/cache/"
+ ewarn "It may contain extra render kernels not tracked by portage"
+ ewarn ""
+}
diff --git a/media-gfx/blender/files/blender-2.68-doxyfile.patch b/media-gfx/blender/files/blender-2.68-doxyfile.patch
new file mode 100644
index 000000000000..c11c793fda97
--- /dev/null
+++ b/media-gfx/blender/files/blender-2.68-doxyfile.patch
@@ -0,0 +1,19 @@
+commit 62308d9fc24bde22a50497816c44c8ca91f96f63
+Author: hasufell <hasufell@gentoo.org>
+Date: Fri Jul 19 18:36:34 2013 +0200
+
+ remove hhc.exe reference
+
+diff --git a/doc/doxygen/Doxyfile b/doc/doxygen/Doxyfile
+index 397cc30..ac61756 100644
+--- a/doc/doxygen/Doxyfile
++++ b/doc/doxygen/Doxyfile
+@@ -1051,7 +1051,7 @@ CHM_FILE = blender.chm
+ # the HTML help compiler (hhc.exe). If non-empty doxygen will try to run
+ # the HTML help compiler on the generated index.hhp.
+
+-HHC_LOCATION = "C:/Program Files (x86)/HTML Help Workshop/hhc.exe"
++HHC_LOCATION =
+
+ # If the GENERATE_HTMLHELP tag is set to YES, the GENERATE_CHI flag
+ # controls if a separate .chi index file is generated (YES) or that
diff --git a/media-gfx/blender/files/blender-2.68-fix-install-rules.patch b/media-gfx/blender/files/blender-2.68-fix-install-rules.patch
new file mode 100644
index 000000000000..aa8ecc9f6174
--- /dev/null
+++ b/media-gfx/blender/files/blender-2.68-fix-install-rules.patch
@@ -0,0 +1,26 @@
+commit 94eed33f878e35a8c7b69b0c23b3b30026460f33
+Author: hasufell <hasufell@gentoo.org>
+Date: Fri Jul 19 18:50:08 2013 +0200
+
+ remove stupid uninstall snippet
+
+ whoever coded this... it is dangerous
+ uninstall methods have NO PLACE in install rules
+
+diff --git a/source/creator/CMakeLists.txt b/source/creator/CMakeLists.txt
+index c84d944..2b9bf46 100644
+--- a/source/creator/CMakeLists.txt
++++ b/source/creator/CMakeLists.txt
+@@ -268,12 +268,6 @@ endif()
+ # Install Targets (Generic, All Platforms)
+
+
+-# important to make a clean install each time, else old scripts get loaded.
+-install(
+- CODE
+- "file(REMOVE_RECURSE ${TARGETDIR_VER})"
+-)
+-
+ if(WITH_PYTHON)
+ # install(CODE "message(\"copying blender scripts...\")")
+
diff --git a/media-gfx/blender/files/blender-2.70-sse2.patch b/media-gfx/blender/files/blender-2.70-sse2.patch
new file mode 100644
index 000000000000..6fc870ea3258
--- /dev/null
+++ b/media-gfx/blender/files/blender-2.70-sse2.patch
@@ -0,0 +1,35 @@
+commit 0e0b27a589680e10e38a26575ad4dba8f3af2ec6
+Author: hasufell <hasufell@gentoo.org>
+Date: Fri Jul 19 18:50:19 2013 +0200
+
+ add option to explicitly control sse2 optimization
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 78bb3c6..d5f4576 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -86,6 +86,7 @@
+ #-----------------------------------------------------------------------------
+ # Load some macros.
+ include(build_files/cmake/macros.cmake)
++include(CMakeDependentOption)
+
+
+ #-----------------------------------------------------------------------------
+@@ -251,6 +252,7 @@
+ # Misc
+ option(WITH_INPUT_NDOF "Enable NDOF input devices (SpaceNavigator and friends)" ON)
+ option(WITH_RAYOPTIMIZATION "Enable use of SIMD (SSE) optimizations for the raytracer" ON)
++cmake_dependent_option(WITH_SSE2 "SSE2 optimizations" ON WITH_RAYOPTIMIZATION OFF)
+ option(WITH_OPENNL "Enable use of Open Numerical Library" ON)
+ if(UNIX AND NOT APPLE)
+ option(WITH_INSTALL_PORTABLE "Install redistributeable runtime, otherwise install into CMAKE_INSTALL_PREFIX" ON)
+@@ -1950,7 +1952,7 @@
+ set(PLATFORM_CFLAGS " ${COMPILER_SSE_FLAG} ${PLATFORM_CFLAGS}")
+ add_definitions(-D__SSE__ -D__MMX__)
+ endif()
+- if(SUPPORT_SSE2_BUILD)
++ if(WITH_SSE2 AND SUPPORT_SSE2_BUILD)
+ set(PLATFORM_CFLAGS " ${COMPILER_SSE2_FLAG} ${PLATFORM_CFLAGS}")
+ add_definitions(-D__SSE2__)
+ if(NOT SUPPORT_SSE_BUILD) # dont double up
diff --git a/media-gfx/blender/files/blender-2.72-T42797.diff b/media-gfx/blender/files/blender-2.72-T42797.diff
new file mode 100644
index 000000000000..cef03853434c
--- /dev/null
+++ b/media-gfx/blender/files/blender-2.72-T42797.diff
@@ -0,0 +1,13 @@
+--- a/source/blender/blenfont/intern/blf_glyph.c
++++ a/source/blender/blenfont/intern/blf_glyph.c
+@@ -262,8 +262,8 @@
+ g->xoff = -1;
+ g->yoff = -1;
+ bitmap = slot->bitmap;
+- g->width = bitmap.width;
+- g->height = bitmap.rows;
++ g->width = (int)bitmap.width;
++ g->height = (int)bitmap.rows;
+
+ if (g->width && g->height) {
+ if (sharp) {
diff --git a/media-gfx/blender/files/blender-2.72b-fix-util_simd.patch b/media-gfx/blender/files/blender-2.72b-fix-util_simd.patch
new file mode 100644
index 000000000000..8c83ee096284
--- /dev/null
+++ b/media-gfx/blender/files/blender-2.72b-fix-util_simd.patch
@@ -0,0 +1,10 @@
+--- a/intern/cycles/util/util_simd.h 2014-10-20 12:58:22.000000000 +0500
++++ b/intern/cycles/util/util_simd.h 2015-05-17 11:57:37.000000000 +0500
+@@ -19,6 +19,7 @@
+ #define __UTIL_SIMD_TYPES_H__
+
+ #include <limits>
++#include <x86intrin.h>
+
+ #include "util_debug.h"
+ #include "util_types.h"
diff --git a/media-gfx/blender/files/blender-2.72b-gcc6-fixes.patch b/media-gfx/blender/files/blender-2.72b-gcc6-fixes.patch
new file mode 100644
index 000000000000..1c4ab09e62cb
--- /dev/null
+++ b/media-gfx/blender/files/blender-2.72b-gcc6-fixes.patch
@@ -0,0 +1,126 @@
+diff -purN a/source/blender/imbuf/intern/dds/ColorBlock.cpp b/source/blender/imbuf/intern/dds/ColorBlock.cpp
+--- a/source/blender/imbuf/intern/dds/ColorBlock.cpp 2014-10-20 08:58:23.000000000 +0100
++++ b/source/blender/imbuf/intern/dds/ColorBlock.cpp 2016-09-22 15:50:25.359318967 +0100
+@@ -86,8 +86,8 @@ void ColorBlock::init(const Image *img,
+
+ void ColorBlock::init(uint w, uint h, const uint *data, uint x, uint y)
+ {
+- const uint bw = min(w - x, 4U);
+- const uint bh = min(h - y, 4U);
++ const uint bw = MIN(w - x, 4U);
++ const uint bh = MIN(h - y, 4U);
+
+ // Blocks that are smaller than 4x4 are handled by repeating the pixels.
+ // @@ Thats only correct when block size is 1, 2 or 4, but not with 3. :(
+@@ -107,8 +107,8 @@ void ColorBlock::init(uint w, uint h, co
+
+ void ColorBlock::init(uint w, uint h, const float *data, uint x, uint y)
+ {
+- const uint bw = min(w - x, 4U);
+- const uint bh = min(h - y, 4U);
++ const uint bw = MIN(w - x, 4U);
++ const uint bh = MIN(h - y, 4U);
+
+ // Blocks that are smaller than 4x4 are handled by repeating the pixels.
+ // @@ Thats only correct when block size is 1, 2 or 4, but not with 3. :(
+@@ -124,10 +124,10 @@ void ColorBlock::init(uint w, uint h, co
+ const uint idx = ((y + by) * w + x + bx);
+
+ Color32 & c = color(e, i);
+- c.r = uint8(255 * clamp(data[idx + 0 * srcPlane], 0.0f, 1.0f)); // @@ Is this the right way to quantize floats to bytes?
+- c.g = uint8(255 * clamp(data[idx + 1 * srcPlane], 0.0f, 1.0f));
+- c.b = uint8(255 * clamp(data[idx + 2 * srcPlane], 0.0f, 1.0f));
+- c.a = uint8(255 * clamp(data[idx + 3 * srcPlane], 0.0f, 1.0f));
++ c.r = uint8(255 * CLAMP(data[idx + 0 * srcPlane], 0.0f, 1.0f)); // @@ Is this the right way to quantize floats to bytes?
++ c.g = uint8(255 * CLAMP(data[idx + 1 * srcPlane], 0.0f, 1.0f));
++ c.b = uint8(255 * CLAMP(data[idx + 2 * srcPlane], 0.0f, 1.0f));
++ c.a = uint8(255 * CLAMP(data[idx + 3 * srcPlane], 0.0f, 1.0f));
+ }
+ }
+ }
+diff -purN a/source/blender/imbuf/intern/dds/Common.h b/source/blender/imbuf/intern/dds/Common.h
+--- a/source/blender/imbuf/intern/dds/Common.h 2014-10-20 08:58:23.000000000 +0100
++++ b/source/blender/imbuf/intern/dds/Common.h 2016-09-22 15:47:31.327081239 +0100
+@@ -28,14 +28,14 @@
+ #ifndef __COMMON_H__
+ #define __COMMON_H__
+
+-#ifndef min
+-#define min(a,b) ((a) <= (b) ? (a) : (b))
++#ifndef MIN
++#define MIN(a,b) ((a) <= (b) ? (a) : (b))
+ #endif
+-#ifndef max
+-#define max(a,b) ((a) >= (b) ? (a) : (b))
++#ifndef MAX
++#define MAX(a,b) ((a) >= (b) ? (a) : (b))
+ #endif
+-#ifndef clamp
+-#define clamp(x,a,b) min(max((x), (a)), (b))
++#ifndef CLAMP
++#define CLAMP(x,a,b) MIN(MAX((x), (a)), (b))
+ #endif
+
+ template<typename T>
+diff -purN a/source/blender/imbuf/intern/dds/DirectDrawSurface.cpp b/source/blender/imbuf/intern/dds/DirectDrawSurface.cpp
+--- a/source/blender/imbuf/intern/dds/DirectDrawSurface.cpp 2014-10-20 08:58:23.000000000 +0100
++++ b/source/blender/imbuf/intern/dds/DirectDrawSurface.cpp 2016-09-22 16:10:53.985775837 +0100
+@@ -1102,8 +1102,8 @@ void DirectDrawSurface::mipmap(Image *im
+ // Compute width and height.
+ for (uint m = 0; m < mipmap; m++)
+ {
+- w = max(1U, w / 2);
+- h = max(1U, h / 2);
++ w = MAX(1U, w / 2);
++ h = MAX(1U, h / 2);
+ }
+
+ img->allocate(w, h);
+@@ -1223,9 +1223,9 @@ void DirectDrawSurface::readBlockImage(I
+ readBlock(&block);
+
+ // Write color block.
+- for (uint y = 0; y < min(4U, h-4*by); y++)
++ for (uint y = 0; y < MIN(4U, h-4*by); y++)
+ {
+- for (uint x = 0; x < min(4U, w-4*bx); x++)
++ for (uint x = 0; x < MIN(4U, w-4*bx); x++)
+ {
+ img->pixel(4*bx+x, 4*by+y) = block.color(x, y);
+ }
+@@ -1240,7 +1240,7 @@ static Color32 buildNormal(uint8 x, uint
+ float ny = 2 * (y / 255.0f) - 1;
+ float nz = 0.0f;
+ if (1 - nx*nx - ny*ny > 0) nz = sqrt(1 - nx*nx - ny*ny);
+- uint8 z = clamp(int(255.0f * (nz + 1) / 2.0f), 0, 255);
++ uint8 z = CLAMP(int(255.0f * (nz + 1) / 2.0f), 0, 255);
+
+ return Color32(x, y, z);
+ }
+@@ -1379,9 +1379,9 @@ uint DirectDrawSurface::mipmapSize(uint
+
+ for (uint m = 0; m < mipmap; m++)
+ {
+- w = max(1U, w / 2);
+- h = max(1U, h / 2);
+- d = max(1U, d / 2);
++ w = MAX(1U, w / 2);
++ h = MAX(1U, h / 2);
++ d = MAX(1U, d / 2);
+ }
+
+ if (header.pf.flags & DDPF_FOURCC)
+diff -purN a/source/blender/imbuf/intern/dds/FlipDXT.cpp b/source/blender/imbuf/intern/dds/FlipDXT.cpp
+--- a/source/blender/imbuf/intern/dds/FlipDXT.cpp 2014-10-20 08:58:23.000000000 +0100
++++ b/source/blender/imbuf/intern/dds/FlipDXT.cpp 2016-09-22 16:11:35.626829002 +0100
+@@ -246,8 +246,8 @@ int FlipDXTCImage(unsigned int width, un
+
+ // mip levels are contiguous.
+ data += block_bytes * blocks;
+- mip_width = max(1U, mip_width >> 1);
+- mip_height = max(1U, mip_height >> 1);
++ mip_width = MAX(1U, mip_width >> 1);
++ mip_height = MAX(1U, mip_height >> 1);
+ }
+
+ return 1;
diff --git a/media-gfx/blender/files/blender-2.78-C++11-build-fix.patch b/media-gfx/blender/files/blender-2.78-C++11-build-fix.patch
new file mode 100644
index 000000000000..ca9b5e1fa8e5
--- /dev/null
+++ b/media-gfx/blender/files/blender-2.78-C++11-build-fix.patch
@@ -0,0 +1,11 @@
+diff -purN a/source/blender/render/intern/raytrace/rayobject_rtbuild.cpp b/source/blender/render/intern/raytrace/rayobject_rtbuild.cpp
+--- a/source/blender/render/intern/raytrace/rayobject_rtbuild.cpp 2016-09-28 10:26:55.000000000 +0100
++++ b/source/blender/render/intern/raytrace/rayobject_rtbuild.cpp 2016-10-04 11:13:46.489404123 +0100
+@@ -34,6 +34,7 @@
+ #include <math.h>
+ #include <stdlib.h>
+ #include <algorithm>
++#include <cmath>
+
+ #include "rayobject_rtbuild.h"
+
diff --git a/media-gfx/blender/files/blender-2.78-eigen-3.3.1.patch b/media-gfx/blender/files/blender-2.78-eigen-3.3.1.patch
new file mode 100644
index 000000000000..540aa6b9a511
--- /dev/null
+++ b/media-gfx/blender/files/blender-2.78-eigen-3.3.1.patch
@@ -0,0 +1,25 @@
+--- blender-2.78a-orig/extern/ceres/include/ceres/jet.h 2016-10-25 01:13:56.000000000 +1100
++++ blender-2.78a/extern/ceres/include/ceres/jet.h 2017-01-11 13:27:24.708241265 +1100
+@@ -757,6 +757,7 @@
+ typedef ceres::Jet<T, N> Real;
+ typedef ceres::Jet<T, N> NonInteger;
+ typedef ceres::Jet<T, N> Nested;
++ typedef ceres::Jet<T, N> Literal;
+
+ static typename ceres::Jet<T, N> dummy_precision() {
+ return ceres::Jet<T, N>(1e-12);
+@@ -777,6 +778,14 @@
+ HasFloatingPoint = 1,
+ RequireInitialization = 1
+ };
++
++ template<bool Vectorized>
++ struct Div {
++ enum {
++ AVX = false,
++ Cost = 1
++ };
++ };
+ };
+
+ } // namespace Eigen
diff --git a/media-gfx/blender/files/blender-fix-install-rules.patch b/media-gfx/blender/files/blender-fix-install-rules.patch
new file mode 100644
index 000000000000..e62aba814b9f
--- /dev/null
+++ b/media-gfx/blender/files/blender-fix-install-rules.patch
@@ -0,0 +1,16 @@
+diff -purN a/source/creator/CMakeLists.txt b/source/creator/CMakeLists.txt
+--- a/source/creator/CMakeLists.txt 2016-09-28 10:26:55.000000000 +0100
++++ b/source/creator/CMakeLists.txt 2016-10-03 12:17:08.938928486 +0100
+@@ -328,12 +328,6 @@ endif()
+ # Install Targets (Generic, All Platforms)
+
+
+-# important to make a clean install each time, else old scripts get loaded.
+-install(
+- CODE
+- "file(REMOVE_RECURSE ${TARGETDIR_VER})"
+-)
+-
+ if(WITH_PYTHON)
+ # install(CODE "message(\"copying blender scripts...\")")
+
diff --git a/media-gfx/blender/metadata.xml b/media-gfx/blender/metadata.xml
new file mode 100644
index 000000000000..ef8d0871a231
--- /dev/null
+++ b/media-gfx/blender/metadata.xml
@@ -0,0 +1,101 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer restrict="&gt;=media-gfx/blender-2.77" type="person">
+ <email>j.scruggs@gmail.com</email>
+ <name>Jonathan Scruggs</name>
+ </maintainer>
+ <maintainer restrict="&gt;=media-gfx/blender-2.77" type="person">
+ <email>agrigo2001@yahoo.com.au</email>
+ <name>Adrian Grigo</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>graphics@gentoo.org</email>
+ <name>Gentoo Graphics Project</name>
+ </maintainer>
+
+ <longdescription>
+ Blender, the open source software for 3D modeling, animation,
+ rendering, post-production, interactive creation and playback.
+ </longdescription>
+
+ <use>
+ <flag name="boost">
+ Enable features depending on boost.
+ </flag>
+ <flag name="bullet">
+ Enable Bullet (Physics Engine).
+ </flag>
+ <flag name="collada">
+ Add support for Collada interchange format through
+ <pkg>media-libs/opencollada</pkg>.
+ </flag>
+ <flag name="colorio">
+ Enable OpenColorIO color management through
+ <pkg>media-libs/opencolorio</pkg>.
+ </flag>
+ <flag name="cuda">
+ Build cycles renderer with nVidia CUDA support.
+ </flag>
+ <flag name="cycles">
+ Build cycles renderer (requires <pkg>media-libs/openimageio</pkg> and
+ <pkg>dev-libs/boost</pkg>).
+ </flag>
+ <flag name="dds">
+ Adds DDS textures support to Blender.
+ </flag>
+ <flag name="doc">
+ Build C and Python API documentation directly from the source code.
+ </flag>
+ <flag name="elbeem">
+ Adds surface fluid simulation to Blender using El'Beem library.
+ </flag>
+ <flag name="game-engine" restrict="&gt;=media-gfx/blender-2.50">
+ Adds Game Engine support to Blender.
+ </flag>
+ <flag name="headless" restrict="&gt;=media-gfx/blender-2.77">
+ Build without graphical support (renderfarm, server mode only).
+ </flag>
+ <flag name="jemalloc" restrict="&gt;=media-gfx/blender-2.77">
+ Use <pkg>dev-libs/jemalloc</pkg> for memory allocation.
+ </flag>
+ <flag name="llvm" restrict="&gt;=media-gfx/blender-2.77">
+ Enable features depending on llvm.
+ </flag>
+ <flag name="man" restrict="&gt;=media-gfx/blender-2.77">
+ Build and install man pages.
+ </flag>
+ <flag name="ndof">
+ Enable NDOF input devices (SpaceNavigator and friends).
+ </flag>
+ <flag name="openimageio">Enable OpenImageIO Support</flag>
+ <flag name="opennl" restrict="&lt;=media-gfx/blender-2.73">
+ Enable use of Open Numerical Library
+ </flag>
+ <flag name="opensubdiv" restrict="&gt;=media-gfx/blender-2.77">
+ Add rendering support form OpenSubdiv from Dreamworks Animation
+ through <pkg>media-libs/opensubdiv</pkg>.
+ </flag>
+ <flag name="openvdb" restrict="&gt;=media-gfx/blender-2.77">
+ Add GPU preview rendering. Only works with nVidia cards.
+ </flag>
+ <flag name="player">
+ Build the Blender Player. THis requires the Game engine.
+ </flag>
+ <flag name="redcode" restrict="&lt;=media-gfx/blender-2.73">
+ This flag add support for RED CODE camera digital format (5K HD
+ images *.r3d) - EXPERIMENTAL.
+ </flag>
+ <flag name="test" restrict="&gt;=media-gfx/blender-2.77">
+ Build the provided unit tests.
+ </flag>
+ <flag name="valgrind" restrict="&gt;=media-gfx/blender-2.77">
+ Add support for memory debugging using
+ <pkg>dev-util/valgrind</pkg>
+ </flag>
+ </use>
+</pkgmetadata>
diff --git a/media-gfx/bootsplash-themes/Manifest b/media-gfx/bootsplash-themes/Manifest
new file mode 100644
index 000000000000..a5649100c5ac
--- /dev/null
+++ b/media-gfx/bootsplash-themes/Manifest
@@ -0,0 +1,180 @@
+DIST Theme-73labAllstar.tar.bz2 784795 SHA256 d5f3b40592fb783c813b6f79f9bf0b91b1cec86895ba1e052ce92ce208614d91 SHA512 125ca3e032e0ebd5cd0297b9525c57cd6642e09df8d562ac8572c3bb882da86f8acba65ce64a7c3016ae7ab4ab8a92302fac1080fca3f132b074bd556e8fd7a1 WHIRLPOOL 0350584c50dbaeb2f5e22b247c5a61d74711daeeeaa6a180f698fe7919830dfc1f4da118bdd7977b2ab7a72c794d46b2a7fe686a3b8fdf42694d8295b97caff0
+DIST Theme-ASP.tar.bz2 876566 SHA256 3c402ec2aa29c3de7769e226fb3935c906608ff5221513fff80869c58a85584c SHA512 9faa2df6f31118d7ffd4758da95abc7e4c18f22a744a2bbb53935be8ff76e8018655c6fb31a6baf23a38be5923195001ad5d040de02c339f33656955438948a9 WHIRLPOOL 21105a85077a94a29db1dbf7101836307a818562687c895af5ec33a6d805855719ff465824a6c808f0a17498fc0d0a066b8d9f4422e007f1609ff5adb705d60d
+DIST Theme-ASPLinux.tar.bz2 106075 SHA256 7f0ac5ef9bb62d5564fa24cc899c3ca6b58fb710d9f7eaf33984f88c373262e0 SHA512 bbf5414bc3c58a21245a5b32928843c953c1b45b73f6bc795ec49fdaf48aac1811362b3eff66011df15d80922d58f78a594b8ae85f8b62b78b3c3bf771b205ee WHIRLPOOL c1d4ad225a103cb5f516191fc3fd595af2f8508b48292bfabdb7b623646a3ca68053a56c0d442c57a2c99f1d465f91bf23c8a838e79338e4723b81d6df9855ea
+DIST Theme-AquaMatrix.tar.bz2 280020 SHA256 eddc25145103fb6b67109da4d94fb563e582244fbd904b45700f6a5a2d4d8343 SHA512 8a9ded3fcab7fb4d3abdb79de945d1189e4b319d9077823dce82ce4889036e8cff7edd3aa9b32fabd90db0612fea862806557840b7105afe5bf5cdeb0c661aa6 WHIRLPOOL 41aba8bca291cf9db6728cdaa21dc01dec654c2deda2f9918c3d1b89fa49498e1a94f0df1086df6b6029538f2c32f0b7e5220b12dc755eb4bd6b9c067707ee0c
+DIST Theme-Arch.tar.bz2 100598 SHA256 d2947e62167a77011d95ecdbc23023a08569b9b81635321a171acba344e7f38c SHA512 f0992dd72c658916196f3fd1f6fc5343435e1f54bbc72a2ec2551e3e9c92c00083bc482ab48c17ec7db05dd14989c41d4485640c7dfaa434be83be022bc80a2b WHIRLPOOL 0b601089be64a75c29d073b3f1d367bd76abac686b37f59a22c03b268fbbed6cfddd4a14d3981a9a1657a94dcdcdb6aa2a617b97756aad162b64dd0de6802196
+DIST Theme-ArchLinux.tar.bz2 101314 SHA256 1da4f0f8ecabbdb5bed9da7c7c7e0d80956e6ac320b91762568fe34b3353ff36 SHA512 db204a284d59ea7ec5a64cfd7eec229a70a59bcda81e08bfd57a95c2e14b22045854474ddda3342971b38255637e6216865e5a43a5fc0f71e1ba63172efe85df WHIRLPOOL e4af05532db9375965b18d9c11bed9e3f5e4b597dc810b44ff09909a213208bbf161d7ebdc50bd4954a9537a241eb93c523570bf76a0467f1b6459cb618b9ba9
+DIST Theme-ArchPool.tar.bz2 133676 SHA256 7f408d2844748cb8e2887d0f87c91a992de0b8868578fa791cda73c5831cec9e SHA512 b52a07ed1697df4dab0bd8100544594284f7ffe1291827c843eab621b837900e36f07efe79838d4d12f20ae60ea8c4b7dd08d88fb89d9a8cd552d6e73ee5960e WHIRLPOOL 922d0f881f1c2c5cb38d299b7baca296b9f5edd5e75680e7f5da4eaeabd2c784d48799398ebff04eb16f7278ae42725e3f02ca18a5009317778926df037db36a
+DIST Theme-ArchRelief.tar.bz2 122528 SHA256 854dfc2f5b092d5d3f6f323ccce0ae6920b4a7389650d50b5ca2c2c2c8d70edf SHA512 d9c8c1e86e981cb3c650270a4b03582059565b1af6dcbecd2fe3712c29f9f4a50cf11bdb5ee94b20f2fccc5b1454abe60b3d4a787914b6cb0c15d7848d65e820 WHIRLPOOL 9e7b27850fc858dcaee0f31dbe2aab512ed6574dc43bdad73280d4e498a6e1b84da7510cf0b166cd177878bf59fb1b9671388566eaaa2000664c42fdf359454c
+DIST Theme-AthlonXP.tar.bz2 83527 SHA256 f6f0c2ebe56ad14bb9216e49f11ff613b73702bbc3315dc9c810e41e7db50bca SHA512 2f9796ec2cdec019bc7b8a79582050869e11943e9e0a63f23e07813a5ddc9479d15660cb08aadfa855b0aa4f8e560655b861ac835f5d41f433d75b8ef6b0f46f WHIRLPOOL 644be034711cee98108b988d3e92eee486ac5fc1f3cea0503cadf26e4efeb4c2b85ab41a1cc56f1992f4db5fc80692fed4543fbe27979eb0e4e6864f921d8a07
+DIST Theme-Ayo.tar.bz2 137506 SHA256 68fe65a494bfcb8672d1ef5b209a50f47f0405ea925dbfb2885b992511a24cbf SHA512 9411b2d09a62d9dc0ff37f298dd32918fd0bce140b890718499e4b8467d8e4752dfbc6ecf967b8f0c91dcff456c0937c93968cbd394a03bf2dadbc05b7c90b73 WHIRLPOOL 56c36bb3da93454c4be41ce973080364e5f4b9091babf0f74fbebd26eaee1a03b5fd717a7f77c7f1624971d30d94951653af0c4788ecf0f0fc263e466d93bdec
+DIST Theme-BabyTux.tar.bz2 99004 SHA256 a8e2edaab19617bb266038f29d4272084b0fcca2c3bbc007f363ee3a0c211645 SHA512 fada9d1d7cac4af5a253929f792e737c0e8e3e9dc0ee2bad483ec185d031ffb813c77d13e220528ac82d75e3d560c35ff36ee5407bb0744df2ce3757b362a1f9 WHIRLPOOL 1ecaf6f5909e1c6461d2848510d807b51c869407ee9feaee125dcfcb1b250779dd2b17c511c68e99e3376b8ebd3bcaf4edb4fa6ac47caaed975c938a89736185
+DIST Theme-Berry.tar.bz2 93159 SHA256 9d4a5b15390fc32b99e8e4e1a25918d09934379d70596758460d7cc69e8962a4 SHA512 235c7e6352a9d7ac22f62891b6c39e6f065fb81da1db832f44547dcd2c58f77a8a7e1cba6dbfd8ccbddb26887d2edbf277d8c14b2a090521fd0560adb34fec1c WHIRLPOOL f82542adb0b830ca28eb46307f0415f40b92ba82e970549af21a3e088d35994ee2259da23795d059e445839f2758d312baa3c23622e140b4a672572e860c0d7e
+DIST Theme-Black.tar.bz2 115743 SHA256 334505016601112e26e30eb1b251a4bb716fc2c7f2fb42c70723221a73787c58 SHA512 6144fe5ba6c7d4d4aec3a120f607c05a292806ad804cbb973ae8c6c7456bd7bf559229642a7a217d14d9285d7627d42f171770ca8e04e2524dfc197fb60583ed WHIRLPOOL 4d97bc964d59b05f6e893e4dba7323483bf6f79d0bb01550f91fa1f5f16cc8e168e33614aaebb801a0b0c4642aeecf823d6ada736eddda0c2d704c9c6f0b4192
+DIST Theme-Burek.tar.bz2 7437 SHA256 98db4fb820f7a52ede7e0ba82162e14a3d9b15a2a21d1446822a52ff1da69289 SHA512 bd842eeece299572e4909226622fa481a5ce51d2cc6c4ad1b928056f6e00be88c8ebd8843150281e183f94556ee2bffaac272d2aae59a398170426644ed8aee2 WHIRLPOOL c51aa9fb090ce12bdf0eceabd8b1ae8406e9c89e095af790a5b435daa8e369fd1570108edc38d5e0c8a0a475d80266b2136c8a506e984302d6ab6ed19023a350
+DIST Theme-CCux.tar.bz2 193017 SHA256 612dc5a31cb6db3655212c0e408962921aa5a859818300b86effd4d4cc769470 SHA512 04b2604f290a62e8c0f2be7f341e0fcff77e96dd7b318c4054a35b29a3dd12ef390d8596d812b189eb8881050869122425694bf2d1a29d30c0eee2067ca54521 WHIRLPOOL 6c80b104c2bd1fd2fec6042169376b2e78856e58e433772837d37d489dbde7e72d955265d3e0f11ac5edd52005dab1720a94ea673eea29ab99b9655cbaa7f3c5
+DIST Theme-CLEE.tar.bz2 59585 SHA256 2233fb3f4f74f1a6c42fd30278961e4957909ab649f9a01ad64e7c874fc9e7d5 SHA512 d26e976e50d20dafaafcddfa3641439c361b26b81a448bdfd82c2276dcf9776b9ea5bf6e0390e76cc5608b43e15ce5688398eb49ebe19f53338464388552f8d3 WHIRLPOOL c41bbf9583c2c865cb7179df4f4425225866589f472774483581de5a27a2820b48fbcc8ef7c74ad5816dbe50c9dd4f64ed3179dc59709cbb0571c2410f4eb55b
+DIST Theme-CM.tar.bz2 1221122 SHA256 80638d959dd8893f539c9a10028155b2f1114480e23d303e1c83d6fdfad9ad9c SHA512 c043e1d558928c57efc8bd10cddb9f61ab413918d76c0ad6ccf98556c17eb34ac22ef1e3fafb68c740936e414febe19cf0a7090b2c4a3ccdf18abf26a96dac49 WHIRLPOOL 9d317468d27c297412c5c5e62efb0ad2b5f198e1c1a8a6909f1541fdc5d1c68ccc9c20fa72aea51a2d2fb77e851561f23a8ca4f367d5dec4f7ce82f60bcafb27
+DIST Theme-CRUX.tar.bz2 37445 SHA256 c776446281b10369664a82f46208a125c8996fb14e24d6e1ab8cfe2631433622 SHA512 67d4c778211689cffb808d57228cb2a8774f8d84935cfd17a1a177db81321d4e0b553389c36a2d70065c35731b3266b897f9cb77d1cb454c175ffe18d7c4216d WHIRLPOOL f9fff2ef9e0506eb3cf8f3d60217c11ba8d7dd511171065ab5995c3eb1a19d22b3146bf4a9b4a7f4a9f7d093e2afc3b96890a0ba218dfdd7103b4dcab20ca8fa
+DIST Theme-CaixaMagica.tar.bz2 45267 SHA256 d148a1e26569145ebc263fac0b5e462d28555983175294c54751190389e0037a SHA512 5c1c6c93281034b3746dfcfccf0e019dbc9c28f7aad23163b99b0a5f2013ff7728300023b194052d17ef6485381140d7084a477a0867929c28dda32a5200ca3b WHIRLPOOL 93c1995ed4b0ecc1f1e14d44a16e9da89f068b53ebf4fbe46e5dd952f2b80dfe49a81e79b3c8fc56d5765b0cb972acb684b592226503f873e66e1135a12af283
+DIST Theme-Cargal.tar.bz2 2727458 SHA256 b85670df9f55173d0c85c43704b9b81cf725597b704ab5346ef0cec24960b06b SHA512 31ddadf7bf3d226f21a6e0090bf690a33c12cdae1ce3b24fc253c2bb91c8c379688afb20ec5d1b3a5916e72073aaa58d3336104afc89aeaa013fcf893679dc88 WHIRLPOOL ffe9e541632a9fc0f8ec4a3322f6bdaef61836bb1304ffe66c2d9637a5b36a8daa95df9ee161520ed0709eaec35ef8a8009656261f5fdb1596300032eb6f5fb7
+DIST Theme-Compact.tar.bz2 247776 SHA256 039b96cb6f1fd3ae47906c385c03c88e74898bd36744a5aae31ddb7739b64111 SHA512 0a74329e0981f2473c298cbc17dd3b46c1d23a04cd709448ac1985089027ad5c230f40e46fa465d6c9082c68890aa49c0c64965554b2eb598b8e4309783e069d WHIRLPOOL 8c6052af113dc7586f5166dea3864751d670e4051a41f09801c7721afc9e2e2d77e3488fc79a5e9e98ee174859a67c01bc56f503c50dac0c4fb71ac825ba6d41
+DIST Theme-Cybercity.tar.bz2 118704 SHA256 d4b12099c429320c2b762b76d43419edd4b42904e29ac10619a6af9e2da69d72 SHA512 0277d7999ad80077d0a2433272ffcbb1aec77f579200f9b0a399965788166caee1824db19f688c0302ff6cf498b2b73cc00a1286a5e7c975f0af1a6aa8bc29fe WHIRLPOOL 1d03ecce4f6d13ce8484946a6ca8ad650fc9d2730ce28fd0a1becf811d9b7de859a3729f157253e0b5b0b3d8f8a9e44b68f8a8ce8d218d1ce6c1cbd9278ac4d0
+DIST Theme-Cynapses.tar.bz2 296082 SHA256 2e8661e6215cae04d28ffa2440b3709c42228ecc56f2992448e0256d20be550f SHA512 b87167b618643d701f31e509bbce58976899a9235831ffa0c2e86898287c943583ca7ef8c3953474437298d417e44ed33591f2143893bf7cc709f9c115adb39c WHIRLPOOL 6eb24d5e128813a3fc8985e2fd6a434cb59d665e33adff4372e7ffed8effcda49dc9cb536c355fbbb8bca036e7d5c4b9f4e63e30c16f90a4ae34a34fd962debb
+DIST Theme-DangerGirl.tar.bz2 72948 SHA256 e0110c12109ea0cdb248b94a2efddccee74475c81d4a7e97c855b888201e4478 SHA512 fd019bfaa6c102b532e96fb21159a4e007f4d802850ab31c938c63685143f1198e1b62df280e9ebcf0cc25e841cf608983ffcbaaf2a126dc23a10681b6d9bc6c WHIRLPOOL f3e84daf347c715d6336d9ed7b25e2645a699d2081698ecf032a5141c0a9d05863e24c686d3e88afe0888543a626320d9fbbca8ddecbbbad907009ead9d78afe
+DIST Theme-Dark-0.1.tar.bz2 32133 SHA256 c2d293a427375085d06e611ae81dca122449d22b73494cea652c24938864aed0 SHA512 1f74580d0557dce413003bcf5415aa05a2c1b035a9ea55aad7f87a5e3a3727fc4028cac86b2eeea2b0a5e5554495774452e28918123546696bc4c5120141f526 WHIRLPOOL e29a2d81866297cb257dccfff4148646f1b8b19dcfcb82305dc03eeb24c60a22562d82d59bd836f3b6224da8b857ebfddb319a8840692d0fc61515696e9b2bb5
+DIST Theme-Dark-2-0.2.tar.bz2 147219 SHA256 bc0c4a409c51ab0734646a3ba888145ed591e70fdbb497f8d365bec3a6cae42a SHA512 36690edaf1133a9f18231e9759957c524ec5b30be86233b081fa0d8e51db977a08da802e8b9706f5f98eba2d729ef75fff8e9e52a0b328ade78dd4b3a9b75338 WHIRLPOOL 0f509e9d00b4ed1f9a2c633c6f0231e1060fa8f2126561d5dca4d6b30d633fff2ae228a411d433d5e9975f723f4ee6c6216c9f9c95bdcf0dbdc56057117e53b4
+DIST Theme-DarkBlue.tar.bz2 791611 SHA256 ce2d0681174762d5b051c1c54fa4bf0fd183123d88acf2304b0ba8069e7d7d2a SHA512 40836286929a063d6823a9914a017ea247f43936bb886041a9a55a305c83c81b892fd7c793bad5a7e1f89a1a7a431605c82ff5544374bb9a04d54eb452e93e80 WHIRLPOOL 21e564266af24e36914a4acb406d8db1e203f30a24b4cc5df085bff9f840c8802512ea91b7e4d9972f83a76708739720c98c95dfbc2d7423aca519b2c24be1e4
+DIST Theme-DebBlue-Gnome.tar.bz2 470914 SHA256 eaa2b51dc528f12c0fa65d7142412707da585c202066c3a73c4c9028040413ab SHA512 0af0bc6a14ebfa388d840c337cc657aa7a2eee531ca6b476fb945148435ddbbb4b8f3965cccd5f14dfbd879af54d5f0d7772476bca2d79dccdb1efa26891c265 WHIRLPOOL e2e80e2c92c182f431894077d9f9310f9d6c5889a8604eb9da4f6f2abe6b1709d134ca963b3689463383182e42a0f2f50c3412a44f22b623338ff68560c6e819
+DIST Theme-DebBlue-Gnoppix.tar.bz2 460763 SHA256 9fbb687af3559dd157ec7a67e06e53e6333c1253cf088a8489071dab2dbbfc41 SHA512 6284970f3910d17f30b6b70d888fccf699237c0cde3bb68a62105eca91edc39d2ca3fa0481edf6240f401575d5c9586a518cdca77067e2be464b938262d0c13d WHIRLPOOL 975e1547552f430a6a4300b6f4283239a0546a723fac4a126bbc47efc924de7d81da59031e90d47c56cd6ee5862ae3024bbccb64b2106d6f30cb4ef6d3a7bde7
+DIST Theme-DebBlue.tar.bz2 437544 SHA256 326d6ef8142a7e9cef290cc4d36dda8a010d40925173a44d28bb420a30855e94 SHA512 8cfd46859558cdae5478fd5202540146afdb01e980347bca027311d46dbcdfddd351fcc4a282d036a3a49a1ab8f4a84df31975c9cd94727ae9454302ea7470af WHIRLPOOL b78f0b66324c1293c0686e05a33ca7da6180fe1a4227f943f92f44fbd88246945ba58cbb0dbd0a44b12d792c1f8bce4bf205282ed20de1447136ade043fc2ba3
+DIST Theme-Debian-Mist.tar.bz2 332215 SHA256 4e4b23259c1db1d19749a08ebaa031e07ddde0da52050518affffa9c898d3477 SHA512 bd71687c0096c780a54444199da381186db0c39ee94f639b1cb6009ea21cf6a2695c9c6d7acf7134bafc281db55df2c90406a7f7766ab2722fb5d4029ba57ff4 WHIRLPOOL 05b0803554e005ab41424d0c79c124421892eaf048d116d5313073fba325a953d06f115eb2f6ec98a73fc089ae037e49459d2a0772f9fca8a556e4bad0867d8e
+DIST Theme-Debian-Sarge.tar.bz2 355483 SHA256 ba7380b775550b95182a5cb2c7187d5558a62e485d5683daa18994ef23dd0ba7 SHA512 b92993d86f1d3c92001e57d3ae2366cae293f66eea7609a9418e06e8d2b9588ff8274ad00bbd3a3dd35b643d4d854ae692c701b6bbd2bebe86296bb4cd9bbfd2 WHIRLPOOL 2bcab62d3b410d24e9da7ff45966fb54c8086dea95e90cb557704afcb7387c585f602a8968f989aea1d4821e4656b0376fe0adf72c91a8e97d983410d0796990
+DIST Theme-Debian-Tux-Gnulinex.tar.bz2 319946 SHA256 16145f9324a903e7099320c633b49c8e0280ab05885d8b922ebcff8294362cea SHA512 c74f5ba4294b4259fe54f40a2986e4f7a41a8bb778eebae36bf846b156e63a7d29a42c1528e22fa455c988fe3728fdb6e1e6a87ebf098b0c87efd4f176e006e4 WHIRLPOOL b5fa3ff8894f9785f2aa88341c71493b5e1ffc9ed85d37a5ba8fab459e56f493d5a867f772bcdcb3896ebf2a579da85459c6f15fe69a1427ff575fdf33f5e1cf
+DIST Theme-Debian-Tux.tar.bz2 36530 SHA256 7bc7fbe347e8dcfd18f9f7c0f71c93141062f72cf82d89cef6827edef5413665 SHA512 470637257de5f550a2745aaadb29fcb323845dc2ff4a77de7820545bd0c486baa72dc9aae855e479ffd10e5bfdef3c3da84114aebae345bf63f3a5fb0434d096 WHIRLPOOL d9f50e870b6377d1b3866c481c7366f825734ea8067d3755a53db49fef649660e885c0a922e9ef65ff8c55120b9e08da1fd2cccc54edfc43c3d4658e3aac2503
+DIST Theme-Debian-Wave.tar.bz2 39258 SHA256 faef4b1de925050e757ce67254f7ce1087dc30593f7cd9dad97ca475c9c44ed9 SHA512 fdc102b1c3a9e463b1ce84af32c85dfd5ca23212ccfbe6812e74453a80cb44dd17ae5abd2f8aef3c6e92cc260c8ab99addb78fdd4d78f21dbeec1b6fd26eb682 WHIRLPOOL 70e2e0941c48818f1da52005e9553db2dd79dc465d533628dba265bd2b96cfee4f59fd3ce831cb2b9bd5d260b68902dcd169706e74a378c60f8eb49d75728abf
+DIST Theme-Debian.tar.bz2 2524384 SHA256 3beea7144e7bc9df329027ad378de8eee409e5edf0cac82086084e57c210cebc SHA512 3e50e40f747a37d10051e82b28a0b882a773bc2c5002c9758dc89c2f74a43f7625c298a33c4dba32c54e5019250102b01da3c1e8e3238d9650f83ca9df1e6e8a WHIRLPOOL 30d9bebda3332d29fdaed60edef7f7a01e08f039fac59765be7513e08bf98d44600d895da70c6a46de7525ad5994fe54616bfd84a48e1c391f7efe191907e1a7
+DIST Theme-Debian2.tar.bz2 36334 SHA256 abe9aea0eb40a9f7b86475f6852529c902247912500e72a880f5aadaec8cfb91 SHA512 1a6aa5a141ca39c0c1ad0c06f19d2989a4a08c5fd3f7d70e99ac316e70476365dd91c0d0f31f67cdceea51aca774c3e0b4ef7b6c2ffd33513696d324687bfb47 WHIRLPOOL a3e0f8779f0df2dafb6db99b2836c71ae194bc422ac4ea9897ba4cef47ff4f1e74a067083a275dc421cf3f3c8754bcd1cf637a9234e59a202e2ef1b4e621dd4d
+DIST Theme-Debian3.tar.bz2 29542 SHA256 7abe1f0968a100c32163f41a70ce32c47f6c35c5107384128a1f50bee2c24630 SHA512 c3df76842e5080c18589b5eba9abd6a55ccac5cb3f24b9809c509474f9f1d6c37fd630227766fb0342e0c8b1be949e654a7e1e41f7e3c3237d024fde7b9ffe79 WHIRLPOOL de9dad224b166654ff9b57d448e183d8a69c4c4fa130350bdcd8052f1cfa075c47f76b3ffb5194c67f1f7842d18d495592eee11f2a6ce43dceccea5c0083b6b3
+DIST Theme-Deflorist.tar.bz2 58354 SHA256 aed20cf22b296cf759cfadf0992992f5c901a791853517372a8672e053466b08 SHA512 d8e96300aff97a107bde7d00f2ef9d71a868c1f3e8b17f2aba25d72f78114f7e5a68d3debae99aa1f554d3c0fd935c36e91933d3a8bbb1999be292890ac271f0 WHIRLPOOL a97ece5cb4c2199ff97a43bc4e639102a880658aa1bcd7855d4ca08a37cf81846202faf9e823d92ae0b57e546b4739b6dc31425af23affa3a5574a5986115b01
+DIST Theme-DimmuBorgir.tar.bz2 153834 SHA256 4ca545809f5700c59a05d8d3e9e95d14411a1b57bf505d96961640d4096c5e96 SHA512 6353f3e237652859812aadd4cb5ca07b34eb129974b48b52ab022caa496b4805ac448679308c189605d18e3d7d63c54bea02288972862e051afcf54e4b33a446 WHIRLPOOL b6bdb56223bcceb4cd08258b5c14ae679cf61678a6f6685c4a956747fc03dcaf66376cb1df3da89f464e079db8c025c52433f33e0c606f1d72dd70fe61d91643
+DIST Theme-Dolphin.tar.bz2 266837 SHA256 e8abdb8c86bb34662ab098155e8d978f4bfb15ca4952497be9ecac60ae2fe387 SHA512 7342ab29022fa03fe7facf0c108bea8df92d6c7a37825b94ec355780db9cd6c2ce81a51dc12e47845da8b1f60cdab059fb7eb7a4b016f81a68013b7db3193b47 WHIRLPOOL 079f15421cbb4b465b22d155ebe1db34af9a4b13f9b009798c7605f08b6528e1dfbadd19a21b42d7b59ccb0f57ebf568157e778d70904d70cfa2206e6f7535f5
+DIST Theme-Dragon.tar.bz2 310124 SHA256 9c2304f3bc173775383742f0fdb78e959ea6ba418c75630bd63c720ca1af5ff6 SHA512 f499e75726544957f7ae60cfc75b103a89571df03035a756e47f879ad1caed5b77eac246a652aed5d8adeb778780448cff88c75e7d5fb5284ea97ede7a7381d9 WHIRLPOOL 5542a09fafea492d6570b9d709930d472a8f283eb93c263e56d2db4bd8da2830bc4978df3fbff3f2eafa2973bca532b34eb1a9930c283a1be3f16ad2c99a27c6
+DIST Theme-ERPOSS3.tar.bz2 60756 SHA256 9cf3d00db9c64550b139065215758f9081004101f5ba6319aa1999c3cf20510f SHA512 e3dd6f1dd1a47777d04575c20cc1321eef9081f3c6143fbdbd057c7e0af0707bd206ad26df08ad9719e61855a7ffae8d834136986f46ade01c3c20f1c4b1279b WHIRLPOOL cf4722047acdda6102badb030f690fad571eba5b2fa3315e518a1926ed2ca5f836fee945fc02bd01aa44acc148275ded90c355d825db4b09eae74f543d854d61
+DIST Theme-ElvinTooka.tar.bz2 590257 SHA256 8e4e18c7c993d8a1e7745952c533c9398572febbf73c5b7b8593c0dcb13794be SHA512 6bcd288b8cf8295ba5f48c06cdffbb21b98a54a9c8d05fb28daebc040840835ed291c8718367b2a955e62f37d9ed658118a7c31b520d336c7379955d5c52a70a WHIRLPOOL edb4957d89251e683d997d1733a8b2fcbfc2906268b303b74fa3a4edcf0bba2d737d3c066ecb7b061b3eb3a3cf3643c2dbb04cf6a0041a6302885a62ca14e72a
+DIST Theme-Emergance.tar.bz2 5146952 SHA256 96431e14d8965b538e73787aa9ae07d409b7eae6f780c544d68aa18c03a6b83d SHA512 cdfc6eb92acbd4bd0a770684248fc1e91d8f9d665fd6e27740a3add14e6e7dd08a994fc3e639019cc10c42b28ad6c7f0acb90951a0327e393d556a42b24f3671 WHIRLPOOL b9af5ad1d8043ec3c28dc9134dfc7bde19ccb184e64bf3948d95eb0f0214ffdb21dcf1a2fcd353d731eedb4f9c209847c8b87a7f286ae5a2f2f3666f2d4b6d0a
+DIST Theme-Enterprise-spot.tar.bz2 150140 SHA256 187ff18b0368679c1013197507d695f3d5acffc48674a6be36633e7548b457df SHA512 2f15da34f1a96697d7e5a576a658dbc71f652b1de837dcb3fb389dfee1d3593f2fc348af5bc14c72800b11a7ecd811ffe5a6aeb8dca184132877bcda014d75e2 WHIRLPOOL 1699f133b692902bd7abbae74aeff82e0cfe6dd1befee85fd1e5bdd3861054c468fd8b87086a86090a1f9a1bbc2640575ea5fb780e6aec35939f3eda9cb58974
+DIST Theme-Enterprise.tar.bz2 229709 SHA256 c7e9b9df7a9ccaf8bdd56d3a6567dc2d14282df040caebe27f8b43d4883d6bd7 SHA512 f4f9d62ecf3d09e53b6ce39c4033f1089ecf004c614b24db81d77f2c0d6ab74e4e5cbff78eaf6072f384d453b4aab201eb0e611c2ac8be2415548fbf88ac9b50 WHIRLPOOL c661be6fba8e3bac2518894f7a5b8f472898c8201df0123b5997b3f64ca14342335e7f7c75b132ab518e4ab82b6390a8ce6cdeab8cd837546a86b81ebec96a1a
+DIST Theme-EvenNewerTux.tar.bz2 71872 SHA256 399fae7cd359431261e94f6fedb5745e1fd2dd4ad7994166633e40488c8b439c SHA512 fd4c626545ce1673e0889c514f813c69ae6b79b604672b258328c672431102c7c86a719508716b90004c3e910782bdcaabd86ebe5e24865f22578269db67a773 WHIRLPOOL f6b594288878930ce5091bf0a86ac959decff28f0c38d3c6d251ead3dba59c2f9684f40503660ad059b630722100eb57947272059ca2248aec434c3eef2c23fd
+DIST Theme-FarCry.tar.bz2 1280217 SHA256 ada8846eb1025ee7a941c7e49df6fc8899bb44148d093c4de5c2708803b1ef69 SHA512 426eb146101ee146f93fca49a6fb37b0922e85b58d1ebfd54725cdc8accebea3c5417c1f411867da2950fc3ec726a45ce0868aaa49ab8f0f415ca3d0eae61f59 WHIRLPOOL b821e4c3eb8f24cffa292f4908da5ac6ba4bd13136899304057277d3ef3a63c82b5298970e0d962308ad759a0e08ed7c89b1caca0c63a2185be3ffa78eceec61
+DIST Theme-Fedora.tar.bz2 934188 SHA256 15492ea494c6fd1ad99d8b5524d3a47c89a3233967f94f534fac57c63aec399f SHA512 6b829a2f32a3a6ace3f3c3a170ab4226e0aafef01f0f70200ce70c57c0410afb6e90327480b683201808da87f6903d9156e1d804a5f1a7a27476d1fc4de5bf83 WHIRLPOOL cdb5ca64b96183ef41cfed42b68da2667467cb30cef1578466adc5d7e08506ad485ba48799410292ed046bea9dc08c2685fba5e6d3295efee57ce4a95f199e2a
+DIST Theme-FedoraCore2.tar.bz2 327383 SHA256 c0ab1889afeb8e86047cee69a67204ccf61a9ab8d63df91600c78f195335d4fc SHA512 6334e84c7fbd5ef8921e3513d4fff4c423b16c497da1fb4ad852e678c040334511304f76fb85b4db79c853691eae70cc856c474cf313b0b9ed9da311bafe5a61 WHIRLPOOL a76fb67c0257b22ae782487aec2ba3ebf8bc498f5ec814174dcaf2d318ed6771bca6e1e8bd68c7d20d7a9d3f8ce0c5984d509552aa18c61543275b699cc1d563
+DIST Theme-Flower.tar.bz2 55729 SHA256 47ce28fd228921b6d980c970f89d865dbedfd25f13b4d11797c43ef9a12d772a SHA512 db32cb1f1defa8d439a989d43abe5853a566a313c9b68b03321bd44f4264fad5ad1f5a5696ed3fbf9686b159c38186302e6fd32411c4e7ee6d6cb00ee2421aa3 WHIRLPOOL 90fff28c0bcad4c064996caafe80307907c1dae74b830449950a31d16512c9b953d3425129212374288f1dc76ca3406e0540601af22f49ddccf76b731704a29c
+DIST Theme-Freepia.tar.bz2 157838 SHA256 e03bb84c66762008a00b3e4411aca019facf78ffcf1ccd5e707950816b940d07 SHA512 b3063980da43686e0896a8803c3fa807ba0ccc14725e43e2d6f4813015134ac6de4609cda635e2b10cdc56b192e545befe4a806ee409aa332083ee383b7064a4 WHIRLPOOL 77e08d35bebed2aae35c8f8e39548b14ab38c595b9e3ec826dd9f40eb6aa9b8c170560e14dc500264be4708574c402c81233b4bcf38f8b571204069968be9278
+DIST Theme-FrozenBubble.tar.bz2 654458 SHA256 85aeb0ccb8fa8b5e6d62146631ffd7dbf6744ad6afa7bde4f04e5d9c4d0198b1 SHA512 86d176590034d8ee0cb1aaeb00f94ca71828cb0d11ce47b0986507f87ba50e12beef73a59f0436e4eab1e7f0d43b6ce66557946aa76dca510811e5adfbb22604 WHIRLPOOL 38ccea13cd077ccfd423c81f8e20f270160270fbe0dcbe90e5eb95bb41331c71f95d9457f55491aaca5ac4de28883c51be02f53394406eb20dddf8371bac958f
+DIST Theme-Frugalware.tar.bz2 994818 SHA256 c1a453c85ca20eed39dcacd16594b1f25d72408b98008896eafe49179149735e SHA512 0c259a468e812865e4e4fa76c5fde9a6bd6fbd291625ad05a3720bc8ab457e77ca1de4bf251193ef2df8d1ca18af7838e23d56cb2e70d47771f29947ba378085 WHIRLPOOL b282a1029561a7def945749a3d357f75fc52708f3595e63db7421c8f088bd5baf975b4f28e5ae235d415067241ef8404c36ae7862b9368ad422fa8c3e079e9e6
+DIST Theme-GANT.tar.bz2 511828 SHA256 d4dfbb384cbf5e414bfd46b8df3a19e60da78fa4ec0faed3678aac1a1caf3bc8 SHA512 4655334093225d36e0adff5f01b6b1e27f44612353356204cffbfb7c9ed116764bd2c92e6cef6197e26953b398f4f3ab70ea25ed0a8619ee56e5daa473f91d92 WHIRLPOOL a177a54cd217d90fd0044b4ed778e0aee13370f33a605d8fa843e3540f9b87ae8bf6010fa51dc57809e8d41f62afe043bff0053f95f9bffdfadbd8a3712d4618
+DIST Theme-GNU.tar.bz2 246036 SHA256 40c14e061f8f5b5eff4397b0c4832463fa46078c84b6683262f04abebb0d49de SHA512 e45929f2cad0b664c7fc6028bd7c913d6d42e319e9b89fd199441a8da6e859700634e400f5c6b3e50c2c92c02ea35b5f57ff640e1a7c423f2ac30e28b4d7662b WHIRLPOOL cc3f563f910fa55515d21d85abf4e6daa206948203ec9d501891069330fb6fc645e123d5e4fd1804c646ae586d55a31bf203d44e9fa7358c721a53970d2f761e
+DIST Theme-Galantine.tar.bz2 17017 SHA256 b62f2608ba3a87143768d7593482d3f1c298acb10be1ecc82259ea3186ae81df SHA512 6931cfa11c68cc034b9e823c059208204f84c49df0b3f4a2fbff5d7c14ea3153717bb5f6aa1cd8172bd9a1a4457a93f9b35dca61e27d7f0987902bd6d813975b WHIRLPOOL d0673c0444b79dbd1ea8e83927652117a2bd637695bb7badaa27e4bddb1119e9eedfc0ebb250d061ca56774e4eec5ffcc6c56875b44e9f56a147ba393af2589c
+DIST Theme-GalaxySlack2.tar.bz2 619115 SHA256 aeb580723323c74c6978689c9ee14f5a4fd8dd6ae5d38cf3e0e68bd9a4fd3f59 SHA512 0eddfa89ce0120bc7dc0bb0aca969fdaeafec1ff55c509041f3725dd4d4cfa6bcb620be43ac50d53e13a67ef779ad7a113b56eb456a9796425dfd2431f87f688 WHIRLPOOL 6303f07bf93fb385ea02e550967fe51d732dcf729de5d5d8b35809875bc5e30e198391642b57fe09b31bf4ec783afcbc31552f1ed1075019b3e67423f2a68cfa
+DIST Theme-GeeXboX-Halloween.tar.bz2 72116 SHA256 d1fb5eb25e333b6e48b5ac6d9f3121c864ce3296545b1c92be3651504738490e SHA512 7cb3abdc707a8de8bd4693e4a2666d97ede0431ba5dcc009b8a8590c3d4dc06c807a85a27807bc6ffcf94c0e26f2882715529901a332fde9c9c0a22c81a2fe4f WHIRLPOOL 5d739bf776852134aa52be8c1a1a0ba802c12c6378e18014a4928560002c6f1c247ae9668dc2eb0a43da4c729ec62343dcb938c86231cc726dcf102e40d3c758
+DIST Theme-GeeXboX-OMC.tar.bz2 93910 SHA256 c70433f0a6335beeb673e4615a0106d02a364eb75b1f1a29f043a0a3553e0014 SHA512 4f8862674877cb8a58bd76b4fce50e8705f5f66dbd6432491a344948d7fa739ca0ed4a87a3ae957fc11da86d10499de9a0bfd6f67ca0107e0729bb777c182ce8 WHIRLPOOL aba426c77bcee310f247aba572570524a4e9660f7ee6d010132b39fc0b42f1e666f0a9d81302799230121872ab0f543a9539b8ac7d8b76c366d397551188e5b7
+DIST Theme-GeeXboX-Xmas.tar.bz2 71215 SHA256 c9abf3c6d64a167959ba72438c96fd907285237b31f2223c487f2a6765ed7b2b SHA512 c461e2b9ab73ef76b6bb28769b2dad54fda089a2283c94283746af3139d69a3125e228a6cce7d492c2f16066ccce229cbc895e9307e757880f5e310b3beb04b9 WHIRLPOOL ca694206bd9844ff71f56d48dc8f565b801bce0d4e5b377ca13a1f6a72b7186beaca4a1dc37032ae8d92973b73a0f19ea5ac39256165b73fe14381e8a1844b16
+DIST Theme-GeeXboX.tar.bz2 44022 SHA256 d471b99d1f515ae1275ea7c20d6ac99d9a2be72d2c3e068e80e26ac842d1ace1 SHA512 c2881f0a659b900f8ccf58f57cac409c28d4c76bf70bc037da432137f47af9d25203ccbe423ffefb54d5adb29a460c7c338a7466569a84cf042eacdc57284a21 WHIRLPOOL 99a87a73117ba36f29e71616e74156dfcb068d31f4ea2c44347ca7a489448fe1a269e665b1457f0021e61657b5685934a5ef1d7c29fd0f00ec772a3aa09878b4
+DIST Theme-Gentoo-Hornet.tar.bz2 515773 SHA256 09e0860d82ddc4b977e1ec8bb1fed913b6de1a692313d04ef967c24d2f6d521b SHA512 4d582c42b4ddfa3d7271134c0b9fbd44d41fd1d694b0e1b5909852d415b24409b3043a1af46f9ce8e05ccf7a636a79b7b7697008f98de2c7935088d484c9e482 WHIRLPOOL 7fec250b9850b0f83c0a3f17be184714e375577240e2cc252e1965a8f73cbd7e74639c662b3b52544367cc57d21665a8b59b3189482038b54ff43da672f54fe1
+DIST Theme-Gentoo-LiveCD-2004.0.tar.bz2 116630 SHA256 5f25fdeca91e5baf8c4da90ca6278e35e5dba37cdfeb3b87f71f6d4290918720 SHA512 a0ca9acb97959830c3b89deea7df71cf9383e03d527762180faedb34c833c375ecf8d9fb5a5336a30b821e253a9610f9bdbd0f37506250dd8df49dbf6cc44324 WHIRLPOOL 4184f5e9887420466e5601e2b776f7f94435a03621264ab7e19de5ad4fdce21c7def33c49266aa1a2c61c80413aabfae2fc50549d7d4f2775f5b33bd7f59db88
+DIST Theme-Gentoo-LiveCD-2004.1.tar.bz2 401040 SHA256 1fbf840609845a9b7457b5fbd436ca74137b9dbd1a331e7ea96a89961957d633 SHA512 b65826a3cf565b5f8330d653d2a0acd21909b433a822a4ca1056a46ad6c72e08e1df4a1d03e4917b4ff4281d456e297d2f1517246c1bdd1e07e7b48dc957ff9b WHIRLPOOL 0e459548859f6e659574f18f857a3f33d6b27dd1801a72c24b415ec4d2b708f5116534a2cdaa3eb17d03de0aab5c64d8f806c973fd37d619560441e2b8a611db
+DIST Theme-Gentoo-LiveCD-2004.2.tar.bz2 563636 SHA256 e52802218a67d2f02c37dedfd69883456e6e9103504fc5227d8b689cfbd891ed SHA512 24066e2a1358b9574e880d5ceeeb69828aa913368d1d5b115811f36e029c159e21b5b6536bf714ffad9dbfca4acac377306705de4b41ede57e2e3c9a576b285e WHIRLPOOL 623293acc4e3a7e3fc43d6f472420eb3155422216fcd64477081bcfd56fbe374c6e962bd880372907daa2ced05db497bf8db89ff84bcc50532f12dd5f0db694a
+DIST Theme-Gentoo-LiveCD-2004.3.tar.bz2 1794708 SHA256 3c9784a7c617b6a4fee16ad48407e528036740b0239fb828977d248b0fa84ad8 SHA512 c1fc5d54fd152ecc9714764e97a1769ba4075a216894abc90f9ea02e086b26695cd9225c34f11925b78cb53669e64230cf6578dcf14c0d671af3870bee140142 WHIRLPOOL 3b1d5a24c2f1b9c89a65a2bfe20b1f7bd4ce91385364068abea87051a6cd8aaf66c23c5eb34876a1492766405e4edd1da28e2da892d03e1adc5d20acd101d0b9
+DIST Theme-Gentoo.tar.bz2 160689 SHA256 6edd88052a052df8d56d6da3590e1e806783e79dbdc3789cd4cfcdfbfd5286df SHA512 a0ecd67b2f8182b5871dc757a4d5961a1d1d048de81b56fe4d19068b5d0a57e22f7c281727d6c113562d0ff6c27b010f7e858f9d63c07611d9f6fb53609309ed WHIRLPOOL e0eb2dfb51f8f33f7d0cdab61434e215523b321edad0c45855dc414666774ba6161e7ebd22a9c4afd754c577e1ac76d8b8d44ed8cfb5c5c91a93ab3cf2649a04
+DIST Theme-Gentool.tar.bz2 286565 SHA256 fd68d26e5d4bd1ea841181c611e20231a0a6fdc79944b72464d941ae8bfce6a2 SHA512 2909ea80889e250e60bd54b4dd51eaf3ebe9813d635f151f9803507f092c4ca9964aa3224553382525f0915a12d25661fb6bc0e0a1595feee32d0c3222089274 WHIRLPOOL 9fcd0a8d1a62c60f9fb7900f8955cf1b49510de859f24139ff1cba88299de5269670ad5832362545d19c10c341919f072e1514449c6e3f2202b8308dd35549c6
+DIST Theme-GoGentooGo.tar.bz2 94136 SHA256 d6c5be8a6ed03528e1e2ffe676044f8b39d9a035526fc98c11a3aa66f5c1fb6d SHA512 fb0f66c00bd14fb0612cdb0411465b7789fbc7780ff6f16d0ab1e07bfedb91dcf5afc7cf1679c291c88c4e9de72bcfa83d0d416b709a3522bee378bba852028d WHIRLPOOL 06239ed16b59e3e9f3dc2a13a5464c4d5a900433c4c74f1e57131aaebb0a0e2fd629f74a5ca9b8263350a533571b98e68e13e5e996e148f329177131cf5b755e
+DIST Theme-Ignite.tar.bz2 111923 SHA256 2ffcc2bd4fdb9d987c5d2549b3716c4b6b327bacc4a36816e1603e4b14c9ae4c SHA512 d6dea9edc8355cc32ca09cc955fbe26e4b95d12b8b3e18c0aac653a4b72fd4422d5f9d84efa9cfbd92345d2ad8dec12e19a561586c82a3c4e7298458e94a25c0 WHIRLPOOL e66e1f3e367cc6cd6b4c5be094cfb8b40b375c84cc834e27a5accba973ae75f98a5732eada02d82d2b1e5cc7a86d2ce41c5c3c0314c3d8d52fbc302be5a1dee7
+DIST Theme-Jollix.tar.bz2 19617 SHA256 cce145ef72518b7a1874fa58bb85bc126c9d8314660ac8c272e5958bc8e01edf SHA512 8d0f7b1846b3a619f84c17a34aa4cb4efd72e8a72bfcf759d6e8bc1d83412bb6c391935c0c17f70929b9982dd9480c1d17c7b46be05b5025a67825385973b677 WHIRLPOOL 32c4d98efb864d5d26d37f7fe6ac2ec510831b94d8200d75a0dc8acd47aa56fefdc72bd3faa203a462dffa58cc05638ef329b17a2f7bbd6a81763310749646dd
+DIST Theme-Juicy.tar.bz2 60068 SHA256 812c7c4fb6083f8ec81fd11f0630bf2758006e95b9c544dc89b89006b0f1ba1e SHA512 7ee6973e6f646438d95e6f73f6939d6d56599e352bc8f42d9329cbef9ab6345fa076e184acde355dd9abd185b18ea20782d9891611b27c1c0941ac69ca689a60 WHIRLPOOL fe00185abedacdb3cde9dcf4c40b5a33459bdc8993477246761f42fda2b6a8d061a1fb64744c01e9d45cb5b0027fe82bd6a8bc2a6368107d29230d42e940da31
+DIST Theme-Junior.tar.bz2 715631 SHA256 3679dd74cd6d4dfb33ee1223c56529a323ad0fe461263a682104f71bbf173655 SHA512 3bb1e8817c119b2948f69126b2e3f8a180c73e1aa2940498feb1820a67f091f5c70852cfbf95f9e61f149bf064741d63e373abbd723748c48c833f95f7005122 WHIRLPOOL 425c006986cb6c6b6a94dbde1d052b0f3bc66c1419c21fe35403f8e4e882397299eb2b7a785929653cea091a5cd3971c61b558e51f47ef92e8212eaa64fb09ac
+DIST Theme-Kanotix.tar.bz2 87917 SHA256 eaf0633a64b5401270b9e7d107783a1e8eddb298688cfc4fa8277eb44e082c5b SHA512 27cfe1b61ebc50e5df206073d4fe61323e357694c04dc5f7181f4329eb8f51b62e19cb1fb07a83a6ae4e301becd8dadb713121af9f3829b92cce4c12a902d74b WHIRLPOOL a5040b5d2ba230cb7f9ee27c48bab8dacf2b9bdcae9c7d3ba929c3d435f6494f95ecf51aad7bdc7bcf03894cf0efea03ecd7ad4e4e7d59009e1908426224856a
+DIST Theme-Keramik.tar.bz2 197880 SHA256 74c7d4d684d450e993b27bf6711b5538747844a450b19640f97c74c56ce9493b SHA512 5e9dc2ae33dbdfc1989d84c2f6794cab1e8f8a0365ec96bbb1eaf2de73a850073f1aeb221f43fb8d1de54a2bf2f28201849a75714ebae5b143d82f6c156de92f WHIRLPOOL 94e0d4db584b8c9ef3ef2f7bc612cdb7b4699154a46449bb3f0c4a356ee2ed44b15086ff73e6883c5c05a17b035539423530ff92f5e08f11b46f38b768d2cea5
+DIST Theme-KillBillTux-Grey.tar.bz2 349563 SHA256 74f7b6f9dd8d8783153d3595750d1df28d9ddf78f3619e21073b1d27f4501742 SHA512 e037b70bd68f08f70de420cf7cd9328da6489daff42b3a2103e7a340554a06bc05595390f1f74193ba0639411a187e1fe198c964b0a1f889f11b430a6fd501b8 WHIRLPOOL 5d5fb1d7592cf61e211511f1e527a9b0b506b28e10df4ffedbe51a65e8310d4c465de3fe793041ca46f3870f1a16e271bc324f8567b8a6cb7734da7dba9eae14
+DIST Theme-KillBillTux-Yellow.tar.bz2 296740 SHA256 bfb86f1fd94aadf00ce5275534e03237851916f9cc55a3ad751986e2828a11a0 SHA512 ae2245e0e3ce198135a69ae1f45b0defcfbcb968655e2e83b13293b2e0a2c4871eb1584ab7e8aae3e7c9fca99d5c81cfc35ac0d8ee0ff6a6eee69a794ae2d546 WHIRLPOOL 75ca0a79ec3d0f4a35b0a98f086aa33e87466335dcda0245e934aab4c07e9b6b452f8082d35ab23607ce85fc0363bf16e815e63c72ffaec538ed8ebf2a2be1d3
+DIST Theme-KnoppMyth.tar.bz2 77720 SHA256 084833699d3a6d1974177b661a6e8e9a2d4f43944e1a07ddc150505a0bb6bcba SHA512 3eef298965e841277226c976ce3122efc2a80b8c1eee275a4fbac19dd2a655c20afe959f618c7f90cb9f66f0ab814810a1a2c7753b330a2031518559417ff29d WHIRLPOOL b72d2c927df2acc4ad03ef60869f4c0247d3f6d2b3e2701398167f017ddd60a51c3f1cb3de092e403a1078a78d72138f7ee390ad75203d4dc953ee0e551a3700
+DIST Theme-KnoppixKDE.tar.bz2 51256 SHA256 d60912a1d4885f6526804eeacc4b588822d936550a7e4deae0746945ecd159e3 SHA512 fd41774c124d9e259f537ce77f364c3c58115381b28885b346498c70d90c413ce8061502de4fb46c70e56145ffe9c20f609e4854d6bcdb635fceb5af980bd309 WHIRLPOOL 73864823803d3e25e67802e965e8985c120e5de34a4582466d1e6811bc034a6c0c29fc4ee8640602b13d385ba45f39c165da8618040d679508b1285a53cf7faa
+DIST Theme-KnoppixLT.tar.bz2 347438 SHA256 015ab70c8213a449d9a3401be20fb32292ad58cf24ff63201881c7889916d908 SHA512 63bd43ae0c425ad2eafa2c901344a6b79c9b856dca12bbc85e3735d6e914ff2f7276723892b38bd7e920945eb985726ac7ff240f0717d166427bb0900fd144bd WHIRLPOOL 5957cda456dcc4cfa7262304a5af9f34ed360addf7c2c2b1d8f445b2ba83aea16137ec79b77236f4401b59faed4b1d9e7ae3be1b0cf4704c5a417119bfe5810d
+DIST Theme-Konsole.tar.bz2 40194 SHA256 f0b844d9dfd30c75bc1cfd20db26d3d42a38ae2c41cb0b4684a02bf5a9c54476 SHA512 881c1dbce74cdeb0bd0bc6b98b7077ff5e7d7f216dddfd6de17d8943aa93ece89b92db6d2f2e1e7ddd6d7d0f88638e326d6e6eee5802fd77564448c21c10b5eb WHIRLPOOL 874e927541c16a53a12325f8c05f5b43695c4cef42e0ef768c91536c5e03d29594f503b992485b15d9eefd2f90942a1de0f69af2e8ca3c8e8c5de8ba5b89d131
+DIST Theme-KuruminOrgBR.tar.bz2 496830 SHA256 a9c40dfbb86a98d88608593d3400aa1ac31e9104bc6585c7f53711facaa7ec55 SHA512 9e2be369f905b406b89c2c121a7a3d8cd46c874da62fc0fb24b8cb73203279c86d9ac1d0d3ce37e989a27779dc08f307b686b3d2d1a3e60998031a492664a129 WHIRLPOOL 4308d94b0ade4c1763c1b7f6b221fd9b001ecc19f5edd65472732eaa2a12ed6ea64f32ac64187e3e0359595d4f5617847091198ed953d479333d4be8e44adebf
+DIST Theme-Leopard.tar.bz2 17986 SHA256 9e13edaec5c281da77afa14f030a8b2a029a643ec61dbcd3a127e539a10cf1e1 SHA512 b42dd1ee3b9231eff7472c56437acb04016ed5c9b5a7047a1c1bbeec20731b1a98e7a8825c5f72e1f0dba6d24305759a37a0a766b7c19765ac7bdfe9f9a761bb WHIRLPOOL 50a720abacc0469b44caa1b0f7e6d824ae2ce761967a1ada1fee427ce135d25c6cd483db407d5aa420c1f1e57b8b0e55436a6e0edd0a553a246219cb86ba4e38
+DIST Theme-Lila.tar.bz2 1374439 SHA256 7e5646b810f0dcf5194064dcf933e36071e91f4f3a229bc69b7bdfc56414ccc9 SHA512 496b6171a2af9c43d7ffe72449c541c82329a855bab92823aaccdb686fde2419f1118978e78bad5725062c1d71dddecc1233dcdfff537b193b59ab4bbbe3aef3 WHIRLPOOL 6f35cd9438989f17b623565b49d504e9364936087f58391c933d13c1eef276bbd5570d371136e4b514d9faedc40cdae1242464408ba9444c0523edd4cb2bc360
+DIST Theme-Linux.tar.bz2 32102 SHA256 99b66f3b850b53facbadb6b0f07642d782f5cdab7b6b738dd68cd4652c4ef1c0 SHA512 9282e9707e46e302bf25dcdc2d391d45e6ec0cae971f19b66f023d109e9b160e84c5474fe7cb86731902a2eb4e6cdc243f645ba89ba77aa1ad6f16eb5d28dc4a WHIRLPOOL a4c5a8b8fb196eedc1e25c758d60d981e6c00962be36e439289f04135efa3138c85a7f9db38d799005cccb5e219b7791eacced8e9c73d0eede33f5450674f362
+DIST Theme-Lunar.tar.bz2 27937 SHA256 824c369d5635097595d8ae300de0c7d53515dd43a6e53f7b232ab703f6fd5036 SHA512 79982c111d1161f3a02f2844870333287755675e52d2196a702e91ebfc52528f02df06547c446e31a5d3d1819569f087f234195cbf7e3a0ec962cc285e93dae6 WHIRLPOOL 2e22079052082675855e290546ab6069349494fa4ce6a00eda283cae72a0ed1e78b37b2235a2fd81eec98f3d08af4031c0c2d665b64cf0840f579e464292b99a
+DIST Theme-MaiHoshino.tar.bz2 119900 SHA256 428ac01e5bd11f6a2d280e15e5d60dd5c7d81843996ccb405e7a5885da5d064d SHA512 cb80bf46b729d881e3786e590b708d813a1cb10d2a42af1d122466efd0038c90eb7af4f6d443cf920420e7ccd030059dbc46c78f3789902f040c5b67bf62f06b WHIRLPOOL 9815fbec26fa8f64a165c5381de0a6ce777e50bdf84563455ce8ff425135a893e1d5b1bbf83d22d5f386ab74501a40f7a078512f48b54ae08bcc11d456307351
+DIST Theme-Mandrake-10.0.tar.bz2 2727424 SHA256 7ea304968b6bd1eee7daab2fb1567518f9846b651655dcc4722ef00c0258b76c SHA512 6d03dfdb1359ea8ed3a6fc025d61fcf3994c6edde1eb07e508f34ccd05c7954b1b1d996f4814226d9d375b0501eede9550b9e8ddad1aff885452b2ab6cf8cdd2 WHIRLPOOL 4f4f8aefaa326fa3fbca8c0061741fd7b8d164798325fd9d63ed11213afa1b2abc71e2fde075e698f18f4f992e58a546ca56a9db6b6e78425793ddf620289e7b
+DIST Theme-Mandrake-9.2.tar.bz2 940925 SHA256 9e6daf2a5f9112efcd9ad973952c75cd424ae5ffc0742a1933a633896bca7c75 SHA512 e9852ff9e34a6de4eac0e69b80bbfa0a25d8ad1b5101edd7d7cb1a34c3acb931a3d8e853b0affbe2c5751b1e600539d0f393885a6e3f34f89f5ee9730d3d7654 WHIRLPOOL 1bf1bb2d3cf7c9bc470f227f141c72b37ed85116efa78e72de0bb71d4a0f16c82eee6f1572a324165d28e43f9cdc650fae6cb8577f66c05eeea658099996234a
+DIST Theme-Master.tar.bz2 373889 SHA256 4414df53c5080db872e46b50c5b153c4cdcf601f5594dc6c1856b4bd7dfd24a8 SHA512 5fd9a157f04bff3d9cce6d90893ddd9257d2daab7a8e8af2dbbd139a9b6c54acf56941d6d68d88b6e01519f981b95803babeaf00eaa35d7ad6db9c33e0516720 WHIRLPOOL 86e9549d59623b377a3892930dce2b0d20bb40573a005ec6757a8888e4f5e021fd0edf419ff7ac8f9bfbbba0a0fd68d1050b2afbfe18e5238fa15319ce6da281
+DIST Theme-Matrix.tar.bz2 80637 SHA256 ff46ae3e3863f28f15b2f487ba6ed48abfe0eac538cd1b233590a86e40391f8f SHA512 352fd0c476cc88b5bbffa6e6cdf174b337277039b74661317da17b1bff5eb7ca57f7ea85a1ef010be66f5767c8fbf3be0622c5e4eebc48f9da19db7ea165a73c WHIRLPOOL d16aa611028952e79b9d0e202a17898383648f55da1216ea1accb3a08910abb583121a6bf7b2d4908bbcfd8104d9cc95be23237e9574b1d0cc53ed943872a0bf
+DIST Theme-Metal-Tosh.tar.bz2 344375 SHA256 d857d45e2500a11c759476d1a8fae24f5b79160b715608ed80e5c17203a3333d SHA512 668075df653bbd5a7f1cb52afd5fbabc56d8a50fb2d72a0f25f9d653cf0ed5fe0eaefd4c3be70bf6a4e8858300a0fb7bc3181c20d2246a7826f809ab2e85509f WHIRLPOOL 9a337b365b4fadee466be95bec9f7eac9ccc3fd408e254e20f6dbbee166e4979caa815735e79a9226fcfafcda8d8c09857e1b6724494a4403b4fc5080f6218de
+DIST Theme-MetallTux.tar.bz2 465799 SHA256 9d7ac4088f8f09e6f66b9891043d0200f22063723d00e243f91dd0ffdf1f0ec2 SHA512 29b8e09bdd079396baa9a6c647b77ed69d9f52ea8a7f0554bb7a04d14b3494274a84ba61687eff4f7fa837b73e2191034db5fc85af1bfc385f45615788a1280e WHIRLPOOL 339282820092ce83df2ec3d57de46c483a1de1ed96714d0d85fe1f7d826e1da47e91eb8192a64a8b60b15b69acf97b7ad5ea3c5f64583077efb284a5db5f767b
+DIST Theme-Misspingus3.tar.bz2 563448 SHA256 211fefb0a85f566a833e120b28ba91d7c9d1d6bcc42938a50d5f5b0fd7aa7a27 SHA512 9f20482998e2bf903211fa3f78119d112dceec026b9a5729daa9e55dfba031f66ee84a666f402c068938374a891cfc6203d0c8f68dda32be7fa7f043c2d0f3fa WHIRLPOOL 6f8e690f89d47856575a3b06f6a1b272ec479a4cf9584c02942e5426d4a98c48125dc1bc43cb0e380ef3df676ef189e7d104a867ec2eae3b50ff20431c70a9f5
+DIST Theme-Misspingus4.tar.bz2 491484 SHA256 9ecd164a2ba385097bafc0f819384b99a49daacc1c16c60f1e7790df214ad70a SHA512 d9230980c40aeb0f43e707d1fceaa554f00e6917608cf0ac4ff6b2041605c2b8196650a1a010e5a04720cf867604729cc03974bce56cf391db403eaaeae8b8da WHIRLPOOL 28826cdf497872523c0384b7104d700e939ef7a57a2a909d2f18334435766be2a25e74661ba1af1c72780753c37d505442ce48924fbd1f99a9d0001815e911e5
+DIST Theme-Momonga.tar.bz2 53372 SHA256 de3664fa315ca2d6e0de073df5d114958e26bd85a0dee9e6f49ac09b92d8b60d SHA512 e282f4864706ae462ccc1030d5ab8d235284c9dc770eda9ab86022d2bcd078188cab16ed8fabfbe31266bc8c16076ca08c423a7ca9d03af42fc5a83a9ede3ff9 WHIRLPOOL a6ba23e6e753b5d3e4fe2e8f4dae4102a6bf991f35985e5ace141adf3c1b6361d266bbf88d3761e5939332064d65c49a18f5c5025dc7dc4fe3e8358404aefbec
+DIST Theme-Morphix.tar.bz2 33408 SHA256 9c5c7f2f0eceb321f318392829192ae89dcffaf3b0df4f9df3ebd124ea67ede3 SHA512 aed1014d20c0eeb63471f867e28d375f86a6287711d8ac125cf50c532a9760664c9d58d6c2bd6a588d67bf0256d2078b87294d48abedc3706551b7a9f4f6d2e1 WHIRLPOOL a42460ec0bdf51e39a08c56f234b8a73f3b32993f98ce6d7260dbc404bc7b157de46a8b49d62d5b75089592f4cf1fee5572ba16a562800e88874d79a2d8ab1db
+DIST Theme-MyLittleTux.tar.bz2 96060 SHA256 6ee297c45860bd1aabf22197a566da669dd0c100213eadd8b0f881076fc04dff SHA512 80db2d362cefb903719b170ee11f6ad60e02d8135f28213992427ed940b58f0382048747175976a4017147de217c216f4e37dd42bace6a363043bbe20162dfc4 WHIRLPOOL 354cb70b2687339bbbd5e923c2c06042e25399501a653ca0435cff3bcdb9cd700251d933387c83d27a55b93d30af9147e2858a9b28b212f5a69c8e6c16b9c27e
+DIST Theme-MythTV.tar.bz2 57144 SHA256 bcb5dabe395310acebe3edcf9a41bbcff32414cf31e4a6971dccb554edfc8c06 SHA512 fbbe48407a8eb6cfa4bfef30bea3dbb07df85272d6257c50b7a83d59b6e549d2ccd0e8414ca9bc23fcc62f678c065f5958bffa436904daa16b9306de5651cc53 WHIRLPOOL a0fbfa6b4db08821dc69641c4a98c44eaa0428126a549b9364713624c5bd5d5f8ad619515c350550610028a78a4888884f838460a13a974d962b71ff5694398a
+DIST Theme-NewFreepia.tar.bz2 157060 SHA256 f61d37261daf95381ec5b60771b35da61b5c497c6c1440043dbeb426e693a912 SHA512 7b38935aef5a619f29f5af668980f913e8a788246a223ccb19fd6b0901d5e1e711e4a9b3864e9cf5d52b90a63a1656e81fe39bf1efaebcbd8c0417540cb5f45b WHIRLPOOL eb4e5d57ef3c3e756ff6537019ce987cbea3d34b5717149e13660eaf6f09f8f9b434dd23fd85e78773be60b92700e8f51eeea0f52b9e93c640ed77c96fe33730
+DIST Theme-NewLinux-Deb.tar.bz2 236685 SHA256 83d7b57afd4ed1a483004aea9c4d3c3700115965d9f392205d6cbadd8d486433 SHA512 4a799da86fc4ae15d08b279c1833bdc469ae6bcc9f775e1734b14d606f4397fedbc4b4e3bfa1c81bd7b1bc408438f7466234c777183527283f5dbe364901a6a3 WHIRLPOOL 822f03bd624c6fd02e4011c88f4690cbff9c663baea158aa257a9f3abb3645d5188d01c160a67a692cbea7d655a194136e0eb29e5c43972dc227137ee6239791
+DIST Theme-NewLinux.tar.bz2 599559 SHA256 e471839c5112cf13f9c5e072ddf07733aceca42fdc4e99e34969b5e25d13fd4b SHA512 8936be88a76cd7bf8322e8bb5d3ba8c707baabd5dc6ff676aec42250a63645ff3977afd5174940636180f348ccdc4890ded9ece53f56d3ae6d74b993d493b6e7 WHIRLPOOL 49cee2077e2c9a2b50e04515dbb61ba1a27fce2a44bed12073609d6d48df9fad0d6c1b7930210e184993bd8d22bd02b46a7fd1ebc54b2aaa081bc026e831131d
+DIST Theme-NewTux.tar.bz2 336178 SHA256 e0081ef1af90e8146d9db18ba528934060b3af79633b0c3c5a44b45de5e3f263 SHA512 c58c0c8e64aa03ff9d35774d749f9d85a98a909b8f6dac16b8707e381b56cb5c44e7dca9f24c8616c313f5a4553f997ec03611e7d43e74f0f9b3df3eadd027fd WHIRLPOOL 60ac1d845cc0745e981c2e6e39e815c3617a9d40713295f4daf57b8aeced1ad905546a624e76bf3cb89f2556c518f679bd7aff71a795735321057d88f4cea5b8
+DIST Theme-NightWorld.tar.bz2 108979 SHA256 e08d80b44d262dd0f51f796f1ba7aae958338b352d2c1065211b63d772dfbc2c SHA512 342b75b2a29da7174ca5c0c8ec3d5b6c1d629a698d9f6da6e030ee4ba7b6729925814bc682a1fc4fba563b0d4e9f49e9fd943843903351f93ec0ab76cb569e5e WHIRLPOOL f555f28afd729a8a9cc290e415427cf738176827b3e607864ae6af9dd79c1547519a6caf844b8577ff4203e9140d1a10d5be89d30b7131a0093336c64b3e4511
+DIST Theme-Notes.tar.bz2 91586 SHA256 b5198ffb85482c2423fa83507234c8c53ebcf7cdb0634ddc23fc7f09d673ade6 SHA512 16a23a2c2a80002c1bfe519723dbd23034502f6aa426f53d6b8f7c79089aca2787b0c5b078bf31316d24eedc6e175b882677d32af0f792fedbfb6140471009d7 WHIRLPOOL 725d124f295da02652b9601cea7d311b849f98e7a32da13111538f2c4c5c9087382e8ee05e6c6d8b2e1bd745876029a36113aa9ff77f3363c33ac5a70c2ad22d
+DIST Theme-OfficeDesktop.tar.bz2 830981 SHA256 e330d3bf7b494e950683d9632fb45ba94dbc81c40823ebf6343424b2c5155e2d SHA512 0b11350df1c3add266fe6c8e0dbab64536f35a03af307d455f75c1619e2f70416cbf3bb0f3390cfcef4f1b5b849b0496b8e0ad49af8f2a1016327ee8cc044056 WHIRLPOOL e935817d924fd0348ddf17f2b9c6281195bf8f930e2c65a30e34d3cd7aad9224fbae0ea767ab57279554d5fd49ca2a43424e957d7de81aa4e35635a69c747323
+DIST Theme-Oneill.tar.bz2 175655 SHA256 cf534db0c0ae7d85f7533de8d56e262936efe0ecc929d26ba069822035611337 SHA512 94c7c78b0736446d44333b043366752ae6a4fa5d2d389f8dd0fd54f8a0b491f87f8047f3b04e95d813b4adc3122fdc12f8d7485fea669066db57a3801aff5e8a WHIRLPOOL 9b0617e381798b7199256ede096b25d1ba610c93452041483c0d450c8d233205cd8758d8ad0969ba141e70311e233cd5c0c9a728e67c80496159a599518e0df7
+DIST Theme-OpenSchool.tar.bz2 62027 SHA256 d502414e05096a3dc5fd7cc80cd87d05582b1dbac1e183776c5ac836bbc155df SHA512 32fb3059605cb77e3cbae87fa649bf1501ce4b0932b0f6187835dd8708659d0a94359646edcd031a3aa0df34812b1707c0ed304155b95648608a9d4f302bd640 WHIRLPOOL 5225ab908c621dfc88602cc6bfd0829830266918f4196503338453325f59fe752514ab18be70a278d1293198b424a93e1db2504d99abee93a828c08601a239e3
+DIST Theme-OpenXchange.tar.bz2 107996 SHA256 3c9030b8cb30d2eb30bea716ed6e6699bfc27bb65fd2ba3dfd8cc7164e8177f1 SHA512 5361a3d28bb3acff2531757dccfcbfa76844defd00205632ae49d411a227db71f7aed2dee5e60ce3af742a2273ab88c121f16f40ce6d0038a62a65e138a3db42 WHIRLPOOL b5fe1abb8ad653538787adbc6eedf90302f88a4e47a32289cc626cdefff4f47569eca61f875b58504c43c4444c8c90e95984f11dfe1bffcec7ed7be4dcf8609d
+DIST Theme-PLF1.tar.bz2 259193 SHA256 a97d89051ecadcea73328bf22887e779fd2993724bc83b39f2b51b12cab8e99d SHA512 259a629853896f207e6d820447bdad8dcaf246c7217fc04126579087d215880553b800168b6bf2a5d4f20ad84fec72f968c8acca8173c969e177f2effb7d04e4 WHIRLPOOL ad3a43745f5aadfd24dcc1c9b7f6c73c09a34dfb742ad74fe47d016dc68fcf7f92b92ae079c0b710bbfe3e1b7953a17d512a4072eaad02e010d7071aeb6581af
+DIST Theme-PLF2.tar.bz2 432658 SHA256 3bd4326a58f9674557249997a3b8141c51b4e678c26807962d623028eefe6ded SHA512 a838d9c196501df9a7798473c92474cbb28ee2589631b963b4c1238f40e8e2dd7ef1ab28f8911c4eb0eeaa6807c55b5267c0f1b8a764fa4c38dcb389af3753c3 WHIRLPOOL 5de645746e37447c81847e6b388b61a97d08db973c662e8f79137acc9b158e443b65e596f7ccfa092f65fafa036733ca22540814e86147b2643ff5afac50626f
+DIST Theme-PLF5.tar.bz2 417145 SHA256 cccf36a2c3fd74dce88a9820ea78b067561d051536f9408e216a2f0107c0016f SHA512 42a81df18bd972733404141a62b7828e2f9139cd06a149a536b5ac347a98db0fa581e29288e4dbb4f27f0e593717bf5fc317567351095c2f9c5b9502d9974031 WHIRLPOOL 757f6391a51040817fbc02fa22383a555cfdb65e0645927da835ab35722ef053b4031699d20054a18ec64dfc850206c60667a16bbfa5eb416e43996e42676ba2
+DIST Theme-Pativo.tar.bz2 1430390 SHA256 5bbe3013e9cb9ad01a444c5c0abaceebba090debec07f4ac7762fb448fe9490a SHA512 18e8949875f8b39a3b8505e0ae12d5cac81dda91d928266994fe717ac68fe8dc3138a5832d204642108fd60960b1fd449337060668085fae2949f1131baea9ef WHIRLPOOL 101047f54405826c746915f616b4c87c071887ebd3fda75b46e50171516c62efd6ec5887fddb2e7c9039389c8742359c9ee3be8620917e7b94b7fb5f7da7a141
+DIST Theme-Pho.tar.bz2 10796 SHA256 76974134cee6f21636196578c034d356cc6b42fd62c517cd17247fc5d4e544fa SHA512 e98ee312ac605c548c2bc0f6e9553438edf58c24af45766ef12f4de03d8f8a52365459b32a774c36956d2ad363bc3b23c6b366db757450cf0d762e28e3e983af WHIRLPOOL d671558c7d9bca43b5286f47961b5a4386badc62c738a17b7aeafbb10f67a4d530eb6988d7d545c72051bff8b1311b9e34ec9682119e9b26db59787db35a2a9f
+DIST Theme-Popcorn.tar.bz2 46985 SHA256 03f154c112b242dcd5364c43d0337d72f5c73602b3f52ca220119e8c744eeb95 SHA512 fa7be43e14dfa24f60c341601cb772b150338970b6824ff1528d00845395bdffcce20d2cd59246da4ed4b7262a468e4f4e34fd6257be3af4d657e08616e68fd4 WHIRLPOOL 2ad67df89936c0ccfca01b609d2c54e483961848c6a1c5ba86fb35655d862dd7f61b6e591dfa24fcebd26b5df9af208624cb3e2e70803c3ee88437168c567f3c
+DIST Theme-PowerBook.tar.bz2 192282 SHA256 d4548625e6f612448d41151144e14bebdb00514fe1244623cebddec8bfc911d8 SHA512 9c3299468155dadb077e85d3d3d6bd0f9a9a917204f870e63374880320b7831bfcca6c8486c531d5177f0c8e2b0ea9a2777687af4f2dbacdf670450d96e6cc43 WHIRLPOOL 62d8a8abff072c503e3a1cfeab6bf7d715a9d2f02634b606c5fa6ffd9dc6c0c956224381147a4cc60dc440066417d95a6a7a50182a8709c49475e9a134730d95
+DIST Theme-Psychotoxic.tar.bz2 272490 SHA256 63c9441aa6c165992738e124a3baeddd0c12926c345e24a1a7dd4b7516bee263 SHA512 44a2b0427406ac594288014fa364b08b6139a8c8f632e7827be1cf778bdaaa3a729dccde1a0bc3452381d2603b20053e278ba57acf328be00dce27e0027c1d2b WHIRLPOOL f115c6586dbaae99aac4033e1b30d0b9d0a3543650405399f24cc0492262fc0f54268c3ae4bfe32fe2de4717f2aadc68cdab799c50302e60b5671e65a726e389
+DIST Theme-Pyro.tar.bz2 51296 SHA256 4bf1f78a07946af4a1fe228fbf8aa3d8c8aca522fdf905681248fa9e69449f08 SHA512 905949d3a21b1ba51bf54742106d64e5d05605b93c5cbc7f65fca454aa3e6a4ddc5367858fe6953272b946c2a2bf04e76dd38894958d59c726583f0e5a86b2c0 WHIRLPOOL 5ca8af0b8920fd8fcbfddc9ea3dcdd7cb67a2e914f632e240edcc6032c8fe1d1781f09c40adfa372f08b21db6b9be1bafe40b4d9c41cd2cfd529c5089a6f6a8f
+DIST Theme-QiLinux-LiveCD-1.1.tar.bz2 20779 SHA256 85ea3027f9cb953743a75ed1c3c0933c56720316a2440cfca57838bb9a98f70b SHA512 1e8ef465666437f5ed3c03a2ec23e1241e21f4e8bad6d62d0133d4d0d576274ff4de74de91b0c1dd53957bfccb0a18fed9c60666877462c9e96443413526c9fa WHIRLPOOL 9edd930d12d1f78d05295974b2b045b05dae7d931ef197a88f0f99f83cf5c5864d3966f0dca697877d9ba10bbafe9fc1a1923173b9a4607aaa90a8fb26dc98e3
+DIST Theme-RH9.tar.bz2 40199 SHA256 a57254901a7279ba21aec9bb30b842725ef81313355e491827e492b97af0913d SHA512 8f1308a422110a7776fd1de65a49865fb219d492ebaf2a603f6a95c1a8211e30048c83c188f8e050f6fa963a5747d9f5ac387b7de51e226ece13c432e032ef2c WHIRLPOOL 44ee2dc9b4a702f620f379c928a20bd3f99537a974be14a8e81620b02a5c89ff522996964ecbe757744e3861ff51d83d6964ebfaf65bc1797de466bdaaeb515a
+DIST Theme-RadiantStar.tar.bz2 186842 SHA256 2a60c7a9974f6f4cbf21a616f035e69167090ae7586308d05f633a406a670e6b SHA512 9881b50aa7f3af000598e29c2511a890028c44e40c06774cfbca1903b4e82846a151b6c03c2c513ec4c4ba0040e75e810fde53eec4e77ac246ddd94165f41b3f WHIRLPOOL b00e4b9f5c4d6240090fc87c7360752e6670a278ef0b5ee115be737bc81a650fb30f15ecb2c28d3bc52f35e3c1325adab74640d61c1ea86d1842b78328c68b72
+DIST Theme-Ratatouille.tar.bz2 11722 SHA256 b5c96ea2096534535230c31a29a4fc60b83666b068ef52d178d592921873d2dd SHA512 a0236b3adc8dc2aba1ddc2eb630e5ec6769b578baa8b5e2e602f4fe763416dcc9328510cdd3ed8cf63a594b260f154d36a40687613e5c0e8a384946be9c560c2 WHIRLPOOL c884929868acb10da7a7c145b533c3ec28f532ef8c0d5a319097c866f046cd677fd310c9269c93bfa42bc944e9c239f041f68e794d1b2a6813fd3ca83bd5af85
+DIST Theme-Raziel.tar.bz2 41909 SHA256 a68a1088ba7afb122c993dbef34623879cd5930cdb5532e6aa3c0be5c7092160 SHA512 2bb5602a1dfc032b5a2e39157816d7fc7cb34ce8be81764fd947a766436e1778934797ded64621343dd495a6f14ce7cda97749f12c3a4cd3dce7d2e4ca554d71 WHIRLPOOL 41451148f63aba554b09777110d993115646c451c9e0a5cd4adca70f6d1086975e145846034679d1483cf85208e423daa036ad540729285ed3dc728c58eb3d5f
+DIST Theme-Redmond.tar.bz2 58717 SHA256 4b2fb6e9cb93bb0dfdb95371e63243c044add75b05ae8c37b6a62198a5ed0f56 SHA512 7432da2e550cf514c5ec0649df58dd46c097825ef9fbe3f26e9702f42bb4e7d166b9ff7a8a995e6cb0ff5055c6a68fbd1d03b94cc2bec01ad25a39ca353bee7b WHIRLPOOL 3830ec581f3da28972820dc3447500fdaaae54ba0006cf2c1fec9441c5fa1da2dbbf8a40f149583f103b0ef46fe338691b7b3f9d72e3b833e253db5ba2c3d010
+DIST Theme-Rojo.tar.bz2 144647 SHA256 d266b6b3d273dd0dd522baa2bfae21f0e8669406608f9e197d56ad28bbe22598 SHA512 7672775d6d9a29ac434e0e84b53aedd8c63d1a239d95384e45750616540020cd854ab1c206d575365acf57098947a56afc12ea29ddb67954838364f0e037c06a WHIRLPOOL 23e926d31cddb2002756deb2e2b186021b296195d252a03a1776fbc8a64c62f1cbbaa36ce6d9cd7028c145c546cb3470c44e03efc88b683cf69baf926b7ef0c3
+DIST Theme-Rollmops.tar.bz2 12993 SHA256 09d071d5b46df9fdb39eef0ce010b37e0322e867d33e14b325c369763cf1c64e SHA512 bc8e7d184ca558da5c739d8a106dc2db7350b6f9df51d97145d874b490825ba5062a05284b848e32e8043bc5a93f344a2b43a38506082966c2f93e8e558e1f07 WHIRLPOOL 95bb97799a6b27605fb28bad41f9181a026d2bc88ba8a4c804e11c1dedd64bb50701ddddb6a0c30e696ce8781306a19b6df5a9603a16228261bfaae162d6be5a
+DIST Theme-Rustenguin.tar.bz2 38710 SHA256 707cd6b3034237b33bc67a2314cdd839d44528071be2a006e1f83a8ca74717cf SHA512 c45fada0fc7e103263c634b7059166bc16faee3e283c8528f37fd2e0c73adc83d0dc6c8a3b871100eb7e387973118cf5d10f92c95f2c5596170b093d4e8d905b WHIRLPOOL b6f496429b2c10946a6cfffb465133da07dbfe6cc1ac0dda5e6a0afc6fe307ef9495ed89f43cc495abdde0442b02c22d1034248dc3d1a41b7aa8e6b992ff529b
+DIST Theme-SMGL.tar.bz2 183775 SHA256 036930ad7e2c98463cfb007e765de5833edfe252e017c105fd0ae96b9d61d1d0 SHA512 8b50b6aaf97bc02cd3da8a1ba8fc1b8bcb52c7dbc2c329a1e31a6d4578c66ac2080dface602f371572bdd064d44ba85676f9f0427e5c0c53ac4fd95fca24366c WHIRLPOOL 2b19debc2b0f5b5be7397cbf75b662a301218977e9ae72b468f0bfbc6d047e03d2d86a6e736e52c46190e22fb88c85e4670272db344345eb6d4e73830686dce9
+DIST Theme-Shodan.tar.bz2 1106979 SHA256 5bbb052bb921fe25f5e880d89031600106de941e3fee82f3c55d34a7ab291913 SHA512 58450265c8066278182b6a938fa8857c1e86feb6924a3bb0e527dc6aaa24fe268c07fbe6c5851fc1517e7d8aaa2ee5f6c93ad5db95d3c9e93caf6ab876b29496 WHIRLPOOL cefa1cd6cb967362c9edab545655c9fbc9c68da5fc3c529f778c7b43fe34e81ca1358f555741668b8fc28ac8067d4c93603191acae670caa3c1ddbdff885957d
+DIST Theme-Slack-3D.tar.bz2 100704 SHA256 c2f7b36e686a9e794d76919d38bcb2a6877e5417388b7452ab92714645b12d0f SHA512 11a55bed21bd8cd49201e583d0e370267944304de73716e96cda0f80e706d79c95e4f5b16eb67fce832bc57851d0c5c404e43769ab0452d867a1b92dbf40c4e2 WHIRLPOOL 60ad8188b388287f48b64c09d12e7fd844fe19d21d0dcd757965ff3aa2947ccb97701c9a7e62b8c3f9d0d53c29877e8b115d0283f1ec5d6c4bc40a984cd8fa66
+DIST Theme-Slack-Black-Tux.tar.bz2 52893 SHA256 1dcc952b33c1db8111cb9b81c08074d0b2e9150cde36c1f8aa151d02fca618a8 SHA512 e95b9dcabba9835ee42524f746e69beb8883cc756bcca5399b8e4a9f79aa40ef0e13e5c59556b0d07eb2e004032e1804b19baa800a9268a6e7cff5696de5705c WHIRLPOOL 33608009773adf09006847f7f350b0462b02def0786ca7e8d91580914540d52382f3d78a3d019de1b75f23eaa0f28e7c7873718dadb95168b7b813fe26411692
+DIST Theme-Slack-Blue.tar.bz2 51832 SHA256 d4f40a7f6ba4f7e5f919bfd864376108aaed14d498d12ce5f5d698bc1a2702cd SHA512 404fc00e8d3da8cc98f364a104a56c7dfc86a8c5a3fa894e601744d4e1ff4a26a4ebcfed840de015b1795d458036624558fa5d2543fe8fb0f50af1aac2514373 WHIRLPOOL fe95e034c57cc36c7e8289c937fe65cd17a57353e1b7a3c620af34bb81f8a06f47471aa38273a3d652eeb7c48f07ce75330814113280f64db55c08242c84ce0d
+DIST Theme-Slack-Glass.tar.bz2 66775 SHA256 d5132fb7646b99befbcc9d8ad0c2a9100434345e1eb832869adf62be26865bbc SHA512 54e46ad588a260a98c9152754e10a97528f0ef548b4a5b5d3fc19bcd238747058ed2db605797c04251a1daaf16a2d2cb5a88375a6809334fa3370ceac4cd5493 WHIRLPOOL b78bdba989f8469bc6a32202e3e44070ebbefd436f4741bae22b5bbdd93802af706940969bb47054b97e246f7bcf4bc7669fcc0ecf5fd98b0e897d4594a79174
+DIST Theme-Slack-Gray-B.tar.bz2 74571 SHA256 6761c0182bd4b631f9be7a414665641f6978a21e289b983647f07e064244c564 SHA512 574e2c2dffd15d56a33d1ee6093c6c9e020645ebd3ae56d745ffa253bb2c9053e686cc1b728d4a04a0a99f937d5263ef46f64356bbd87bc62704beb719313360 WHIRLPOOL 9e63d1928e3254a05b2e56d5101772c924fdfe90f48748d2404e0e45d38e7bb276bac957e3c369aee9778a739429ef00ba92036fe139efe33d21db791324ee70
+DIST Theme-Slack-Gray.tar.bz2 228060 SHA256 825bb39a84fa6a0212516a642416f3afa103e4103513577ba3eb9e0fd9ef3b29 SHA512 156394efe41f1e3332c54ec1737317b2e0122a2b4cdbb47890ab6fb318ba12e1268e82dc12167efbc5ba3b9678d0c589378598f4d337332fa146495dad01f069 WHIRLPOOL 36a5a3c5af4be6ec833c5d07ac3358538579b8875f6302f0ea21ff5e57689cbe7d64a277922514904ba206d311106fb5d82311ec0642a2bcf5b4a31f3121029e
+DIST Theme-Slack.tar.bz2 51752 SHA256 b9d1b689ff4532c9a8ba9bfbc4bc5e2de0ba22575bbee2e90f9f388398dff43e SHA512 5e736f3559f095437a72e2bbe6a04b66387160de58fca08281ced1fa16b206d4fa9db3606b1ca09ce2dd0653a509f29d9eb96e3d823749740b0755d783f9f5f7 WHIRLPOOL eee0c1a47abcd5c69fa14a51046698046cc38c2689997b06c0bb80d45a1f51b8f8112633bfa822b35e094ab37a6e54dacb6e057229be9c7a9539798ffb7aae94
+DIST Theme-Slackware.tar.bz2 15541 SHA256 cdb1225f019286caf3807c7d05063faba605c738a8b0b7e6d13664aab4417fa6 SHA512 2e9608311c2648f9d555da2078a2c56b942242e6b46d6c4e5aa2dc6b2cbc19846558788ca39361391f0ca20e4cf8da1f40dfbfd0da7fb6bcb8c1c306af5d83fa WHIRLPOOL 9e3cc2430456b6284d58657a2147b35fd120430e65c7f292d039c828ce90be86f5fb5c90c5bfb1f7819cad8e0c8d983a2a340aeebbbcab6cec9f8efa88b8ad68
+DIST Theme-Slackware2.tar.bz2 21591 SHA256 048abe388c1980c81aa6e529bc815a4f29a5f66e7d7bb4ca899275259b5dc7fe SHA512 a40da50f5beff72fe079ab9bf170202ca5aa2016940421b36bdf5ef5ea352b1393f4a96fbee6a1f1de8212be568982881b1d96f3b33bd09fd3a79af73659df52 WHIRLPOOL 42a5dbcac1ae645265ba1008aa13104f80524df3c68a4b1ef8752c50a5fcf6fe3fd240ecd8b7982e4b1eb28b1f41ac90cc0b3fc7f38aa1f45344342b84caefc9
+DIST Theme-SlackwareLinux.tar.bz2 60328 SHA256 5c332ba379e5580f00052e62750e1876f0bfa531493054ef72df95f2d926e3a9 SHA512 a1249cb53b9b8ad0e7b7dffc11ef4c459d4b37a0e0b6e1549530446df4378abe853f84b06d2392b208ace5ef1d408d44f58a7be1a2483f396135d3efb10e3133 WHIRLPOOL d8b22b17a9f41ca9d4dcef678184857c4b281101ff87c4a85f83138b915ba082b4c892d47062c979c8dafa230a5a1fca066820bf689be89901e4111ad2a67f2c
+DIST Theme-Slide.tar.bz2 316951 SHA256 b13f38879e9422db7c35cf1f368b035e6f16f63d42bfd8f8ae9fc0c53967c49b SHA512 3cd480e811c0d35bdd1ac625d2824b51e3fcd70de13b3663ccca0797a0f66207ebd4c8f5f00d856301001d4144e6795c0e46c6b63213079bbc3ade3d1cabf071 WHIRLPOOL fb6bea7a0ff563c602821f31844be17d9b88c7530fd673405f1f87e6e83db95f2403c4303dc5b3157308ff11bb2576698cee348dd8885651bfc8422e6abbc57b
+DIST Theme-Spinner.tar.bz2 482881 SHA256 e2ccb8b7fb1a468db92835cf6dfbcfd3ce07d599106c1d9c0eb300cf14c2158e SHA512 9e76d57adc1c6c1b3b6051fc500c2afb5f1169ddfc6f33ed07204419b8b6ff7e71e60d8b2d1a164508327f786074d2c600e0dd365379461d0765d12569ee6401 WHIRLPOOL 3d7e92fc5933faa434febea96df1cdd265cb8e3f9e0cd9484c85fefa036eded9df29708a4bcc96e984a2d81853ac0184a2d9f3ca67f88beb37666bea7815787c
+DIST Theme-Stargate-Tux.tar.bz2 185069 SHA256 4e6949ceca075b9edb2d37409e67e7c47961e381f2db7ee40f447cbad2ae4041 SHA512 28c61d76d6159039c9ead13c325ccc0ed2c7a74786812105a60c9ee845bd06052607e2140c4af5cd106609e1f73a942fbc489795419370c749623530ce7941bd WHIRLPOOL a1d8733d16833c4888769fae36f048e7af8656700ef676eda16322722d3e9f47ea4b434a7e18b5b95c15967943721de3ffa0de37653ad4bfbea3d4e8af5703c2
+DIST Theme-SuSE-7.2.tar.bz2 59857 SHA256 e4add9b1ef82aeccbbd7c05478a9ec6ab470172462271799b2bc748484375649 SHA512 3797135e0b12d5e6590a7c1111b35ae237d00304db43bedb43d8a9740327024e434d6b03943bbd8becfa04aa8ca313cd4b79d733901324e7b640dd363b55f3aa WHIRLPOOL d84b52a5869f5820e291f06a53bac276750a569811248d75cfb7374a690b752827d851630b6e9245a1481d27a39fcc41b400f8ce7ec5981a5eed141c1572ecba
+DIST Theme-SuSE-7.3.tar.bz2 4700377 SHA256 5f090d9dea9ed4c4974abcd51073bb359dec7db801770d36dec2bceff6e89d48 SHA512 3c6a1029df1b611f86f49e8ab5ac83de66142a6bfb1c6b7a6eb7a213649930686ff0903b87de5b3e10e771ba2e527b27eb4ec1bf16c2a72f5d5434a56f1cb8ea WHIRLPOOL f03ed81e970d15a245190fccd7d42a5ce0bb35ffb67d2bf36ac6dfb35f8393381423ddcf2dd87ff7e96c39154d952c2760c8f16257ab4def69f962b612f1742b
+DIST Theme-SuSE-8.0.tar.bz2 175360 SHA256 8c2f56b03b56cdeba11436b290d177180037bfa0d3488621c4b7b6cc8c9c1d56 SHA512 1ed7e1fd841754fbe38c4d115ece94086e918f73ec0c92c1b129e1de3d038620236286c358b02aa1e44c06bfc91ff576a97695d879b2be55216813ffd4844e92 WHIRLPOOL 8d21d0bf89e47b646c03f13176e75cae8a529ac950f6af6c7b59ac3e43d08b1db08d6bfbdecaf8bc6be4b0a76ff46dff6a36f4fc0c88829f68a8573dc84c6038
+DIST Theme-SuSE-8.1.tar.bz2 782751 SHA256 2e7b4d164ee6786135848c2ee4395a859f441dc59eccc60be676dca1530fdde7 SHA512 1303bbf6911f41ebe2853bf9ef426f738ad0d1234ec58d18413173a27c0e5847414ddbb62e60c9d86ae02dafeb0cb0236b29d592144827b3b974e4f69285c7ce WHIRLPOOL 1189b18333091b0d4fb87262c61f677df57efbdee391f38da1fc01035516a8aa1bb10b627baf3ead4ab7b231b44878fee88d89aa2694438bf2074bc4e545ad81
+DIST Theme-SuSE-8.2.tar.bz2 431613 SHA256 e4b482e956538860c64e2fa19088bf21d42ed8071ddf99f7e1afe5e4b523bfba SHA512 8e57fbf6be93cd546e277039b506164053af7429fa718959870d059cb6ba4ea5664e2b263c187b2735e689aa18e7ec21e2bdb0e30a3c37a46ddb8f42af5ede54 WHIRLPOOL ddfaa7ae6faacd739c0f4b96674f4c9f941f823415859bf4e21bb0c78d2daa127261f1f6cd79ae513d6d5e15c6b0e6d0d13b594b06a8c462ade526d86cb0f1e2
+DIST Theme-SuSE-Home.tar.bz2 246575 SHA256 f78e362bffac7749037a124d6f576b89e4c0e2d65b6f48cd7a73fa09519e751c SHA512 ba4d5c336cd10ce00fe0d819490327b15772a81be6f2971a03da5db2bc8e2a6e4347030e31bdc6dc77566f990e259debc671daa167f7fc0256418ac801e999d5 WHIRLPOOL 4ff85853003fae0ad994f1b88eeac5586b25ed43c950e4362da1e38f30ab21154627ad5167ac3a5ff3bb123ffa68ad289fa7b0365084122f84c69a250cd6ecd7
+DIST Theme-SuSE-SLES.tar.bz2 60132 SHA256 1188d1ce5a9d0f9e2ff4e354f235514b1dc45f5bae36aad0b6f9dc5a9cd96bad SHA512 8fc08307bd34def960d8731d5d9a9091ff95aa7ce7b93936ad844a7c58df6a1cbf372a9997e951e6d53b686fd16e6dbbd8dff92d66e7af05ff87229774ca6daf WHIRLPOOL 1375bec38244df4231d023b5bf2b56b5c404e715f1b120f97a082d6632b0eac86e510db50583fb646261ba81036e0ef6b18ae58ba414a0778c09b4f84d2f590c
+DIST Theme-SuSE.tar.bz2 160567 SHA256 4c98920e10755705b4a65261063f925e3a994fc24b11dcc0b4fc531a495f5be3 SHA512 c32f6fb9de424f3580b3f197343ab7b09c1c76871c2aa65cc9e43eaabab6ece267cf73fc63d48b8412f06fe15d26a9a1e2c66db3dce41c95cb4351f446c0513b WHIRLPOOL de8518008fcead980ac70558176198e42618f40d4001dbcc4b6de9aef2cd711cf313db9e1159b804d2e085d93731430fece79ffa9856431cc4254539c7f3be6a
+DIST Theme-SwirlPool.tar.bz2 336125 SHA256 b18423462c6ab3c44b6fc43ef0efa7123d597490af9a65537956c8cde7c603fd SHA512 3927500775cc75b3de50d0230844567db0bf6b89cee9b56d268637bfbeb8c93a76e2cd644650553657ae63d4bf2e5cf59c0de19aff447aeae473a829b621c1af WHIRLPOOL 86321a8340581998d76798bc6bb9b61bfd11a86a4c8094eb38ed30227c8f66b8975359be793db2b7eb50b10f0b0e581feb77c89d31dadb4ab9b73b01e1277a1d
+DIST Theme-ThinkLinux.tar.bz2 254188 SHA256 dac07f73dd1f5290c2a1cc87b108f93067e7df5e2516e26d9f729e89345a5e6f SHA512 8d73137a3b51b95e280723b0bc41b3764c4531800d0e810d3d29d3df455dc92b84b8d6fc5de59208196d72e79ff987e0dd7f5715d12f9e7ccdd36e5f17095075 WHIRLPOOL 5545cd46eaa78e4c048441f741717454ddf351d7626bdb4ffefb865f1f1dd209677e84e50a8ed2d2ea184b18f478e90f07c7a0536b13732677c68b9590c16fa4
+DIST Theme-TuxInfo-Conectiva.tar.bz2 789900 SHA256 81eaad1cfe5630f69871b784492de4d0b1e3b43e00d26a9a0d1b2750b46e56eb SHA512 0aa375521d21c96e6b55f66d38218d85498085358fab047e8413efbc0f1c49a28e4383b8c28945a550d1c1c527c7039ba4e87941815ae7a401a2dd0512add580 WHIRLPOOL 5f6476cbe71395ee2c212c8e80cbc00dde27b42b0cb3e23817eb4c624ef1e579ba14e4ac3b10dd825105dff2a8f8168f9ae0ed20614f06105dffc403837a1d7a
+DIST Theme-TuxInfo-Debian.tar.bz2 793535 SHA256 b204b700bc58c4ba9a5f3375016f30c07ea308858bd9f01956cf35196cd179c4 SHA512 9125391c1730e7ff5227809a2db3cd037f1b10be7da03a3dfa5e3b14022edc2c2a38361ba4f6c5df70245ef9f8d42c1122177a8b6d10217db20dd9796f8ccaff WHIRLPOOL 756535fae42f8b68680a473397efa6a0031b941663fbf38b52d88c371b92e2245cd3113e87d8ad084e9cf18d05a3c87ed31017725a3adab544acc1ec9b2fc9e1
+DIST Theme-TuxInfo-Mandrake.tar.bz2 793386 SHA256 bfc598c90c9c62e96c3f929278c74721a04266d3918f6bf446b09f34deb104ce SHA512 9ab26b9f747041800a8678ceac04a54212dcac723ff73a5d3a23805341dc6d21aa5e3f6ea5c6eb401292726adf7f52e98a3afb45bb17ca1fbe6b661751087d41 WHIRLPOOL c43eba321595e496980fe2d7dc11ef89ecb1028d8ab620c8e60a8175998281a72f672ef4e562e6c8b2948d3b900c9db62efbb2c332a44a816a52775359cf612d
+DIST Theme-TuxInfo-RedHat.tar.bz2 791445 SHA256 0d4521cd4d16ba96e80be3106252eefc42e6af2650a48e353eafa5fa509f9743 SHA512 4a49426bb45839b6bad6773b07a2a1afc1c96a18cc982e3f6e0b7810cfd2bdbb766b9a58582705f8dd521c7a4384280b4dfb4e0c8a2e9b50ea801d38fd275c65 WHIRLPOOL 481b79b72892befb6132cb39ba82943ed3ae1b342a3651a7075a7ed35bcf72871b50e53c21b4191bdaef84cf6585e5e82112208f80033b9f075732c85fedf7e3
+DIST Theme-TuxInfo-Slackware.tar.bz2 790916 SHA256 d510ffcb63c33a4bb3886f334ce8cd83a327b85dcf4d8398fab167e57face577 SHA512 72dbe60c6fa1ecce4176d57c533770dda8642f7e383379fa87f95939d140371a1866a293ebc5ba61e23f85dff07ec2b9856a7251ec67850c91c735db625c671a WHIRLPOOL 86421a6c577ade5a59c51ee62787576e9e23dd86e4a08c64a5d32943ee061ef3e217d7c0994988955c654af14bb1ed5a733f75aea75a78e2e6e658f4cf6e0269
+DIST Theme-TuxInfo-SuSE.tar.bz2 791698 SHA256 10378cec49def0a329980feaa46c09d40f85c7a4f64d5ac9d179dcdbcd819d95 SHA512 e5efc901b67ab60bef4802bfbbe09be861245bf3f49223e17d07eb03c055359e669742333ef15a2109563b22367e786862bdeacc9420ca0b06bf140890fc2da3 WHIRLPOOL 6367c796ac719e39e22ef82347e3647a9fe9ce7182147f415f802d6e138b965daf6fd933458da2e6828cd25a30663d6042f5a040442d587d3315de813a138d0f
+DIST Theme-TuxInfo.tar.bz2 432888 SHA256 fd77a95ba52795bb4b912b2ad92eb82ae7686dcd8b3ea94f4d7ad04f511dadef SHA512 0e1c2bad1b4744f3cd6bb11d1d31d5588e18c2636907daf5cfde83f6b38ca9d96e5cc05b0c1661ae4ff568144783cc289b517a98c7bffe05cd27c79dc45c725b WHIRLPOOL f52807f1c1ad18315a37e8da9f12165e2a963490a34e063ccd5697d3b9040d3dcb2a3596216d1a881b51f8bbc785b0c008052b8d9fc79f01ccf45eb860536272
+DIST Theme-TuxNTosh.tar.bz2 364177 SHA256 09ec737792d40f32dfb2cfc760e97f4c80259f83f6820631ec110661acb0e4b6 SHA512 b450820d81e062783af0eb6d7c0119b8dc8000c650dc8c5fc07ce337d622b5ee7911f97c86f74f438cee94c039ecdd471be442bc6b7bebe10c1cca92c5c41f91 WHIRLPOOL edca76a7360d603d42ab79305ca3ab9cf2ee83f08a87c8a78a0bc2deb549397f7eee69cdd8c46103544b8f3d8fd93c9cdea1d6cde19720b7cace73322f5671da
+DIST Theme-TuxSplash.tar.bz2 189723 SHA256 d07a67e389d19d8ba37be9ceb6dd04639ab6301cea5c016077ace73f9f2bdc78 SHA512 52b10b302d76c2c281a270b6caa87bbbe4b7ac44eeac661a310ebf26e9a2c89a3cf0fb7fe1fcc9fe8abc35e5cde388eab87918c66e7a4cfd49013cf8ff8df37e WHIRLPOOL 598a84eb8596253729787eb59d5440851d1eb17a8f9c9941b8552609d78a8fc4f57a90d21d5b164c65ebf46d8ad0f8d1712d07a062cec557cde19a38ab43a6c3
+DIST Theme-Ubuntu.tar.bz2 130920 SHA256 8e3ff19c8490e3a6d80e42bb03d1eaf9acfb5b7a16fab86680f36d26e8cbec93 SHA512 b0a29d5961ad2563ce3016297a1c05dca29d0346d37c272b5f45689f16bc5fd8cc4fc2d7d149218c7c1fc9a0e6d67998638941c6f25215b62fb34d39621bfaae WHIRLPOOL d8bc14cdf2f6c8997db314210a34cf1ce6f07985b2132f1326413b214ae04989107ee8110181b795cc36d338cc6c9b2f9943e104b1b9c2a71f9ee1bf1c896048
+DIST Theme-UnitedLinux.tar.bz2 46702 SHA256 46a55521cdd0bcbaa7ac69afbb10cdbe235e1f3e419954af72c4d78f7a1110c4 SHA512 aae375b4683868dcbcc7ed9427b4992f8e4b4897527f60f2a12955ccd3fa897891ad00c44ac2af7d0d5cefbbd4c03bc8a25a0b16d08a80bdb2e51852f7235875 WHIRLPOOL 70530dda1be34f54258d0793a9e3ef0c282435955c927654956d1fff6373dc48ab0e4925a675e95903709755efd968ae72941771c4a189c84ba74f5ea165d095
+DIST Theme-UrbanVisions-Debian.tar.bz2 300355 SHA256 1e9398f67859bb41cf8aed4c8a2b4446c16213756a2d93cd20ac893dfa3e8ece SHA512 ff429a4f3caf2e247ec312e87bfe680a4ad7b7a5ba35bece9904a7fef9cf7478daa3696b23b78c1f1855b90591cd33df7ad645bf94d9a08ed362d570e77cbe9c WHIRLPOOL 42f7b9bc8dadc30c747a9938dbb12a71c87f808e7bcb898474fafb7616499595e6e04f9baccdb5126b4d461429679dc725a8eb2378ceacb1525d99706646eea2
+DIST Theme-UrbanVisions-Mandrake.tar.bz2 300935 SHA256 4ecad411c5ce1c37fe0605892f61d398a3cb9918e8199e1c2799cad6f190b125 SHA512 abd29686ca19fc3af192af7609aa2ab914cd7f2bb9323e56c3026db1ae498bb5d21163abfac2e1967a20bdcebb3af450bba06d4ed9848fd06a8ff87ac591f905 WHIRLPOOL 41751edb382452c6184f638b9d7b1e63bd897048c03e89a18e898fab20b4d33ce909e11836bf25b86b479b0ac3561d88b49d4ff85f21e9cfc071b74590831910
+DIST Theme-UrbanVisions-SuSE.tar.bz2 230867 SHA256 2845d6b855d0013699a72ff29d66d672b867640c53e61af981a3f1537efdb0f6 SHA512 cb616910ba799dc73bc594ff18030efc3a25b946e3cd24529c0f2ffc80f9a2666b3ac9619185f6858b18a790e8fe55e0eaf7f255890af66e6b9b3e3d886353c3 WHIRLPOOL 7d628d0b27663edda24cb460b02312cc4607277c77ff8d89d688895598994f0bdb589f5ace961b3d2ad11b659116d0e7e9cd4e32cbc881f5f188da3bca372990
+DIST Theme-VDR.tar.bz2 45897 SHA256 5f14c5890925da60cb1826d1f8039315f404040453ac7dfa44cc274525ab0f96 SHA512 9d4bbae178606de9368bd490365ed950668ffe42b29f64df2c8bea53510fe8494f424c263ea571c8541a2292a4bbac2f6a9f490d0366535b0b6183840dbd6d02 WHIRLPOOL a48722ce8f316c75bfbf2703c764ad6f35749a0cde4c86a911e4cea10752d51a1caed385f60d47e9d19cdcd09d9e77265b6fb6d9a416f62b360764dc00ef151a
+DIST Theme-Vortex.tar.bz2 82197 SHA256 210644640e80f0e798b149fd81054cfacc6cf6e4a3b395f019be3787b8affe78 SHA512 6898f193a4fdc681464459b17c66df5d915f03ecf4290b795563e0a20522aa4fac3951f570db8720d324dd9fdfb6d4285f9097e5973c6a4659c0563476329ca1 WHIRLPOOL 68b15eb01b9e4756e7ee3a36318ce2776f63a1a994db5981f4bb382548ee8038ba1b979bd9408267ac211ce9542ae3136642a219d6e1811de883c51d8996e84a
+DIST Theme-WarmAqua.tar.bz2 463243 SHA256 be94b5e48a65d0ab23027f949246df30c8067ab1e06592896f848b3fac1e4cd6 SHA512 9a369fd9fc389bc8c18cc095a1dafe487042999e62d539375691d4f20423bd18fe19226df3c6adb26f900d88b516c8f5a0f23b8075a46d4e52ade3fcf0cd8913 WHIRLPOOL b0b19245a4f82544ead779517e762e98856173a38dba58936d73d63ea9f74686d389480f44797e17a6e3802f8bb8dc6d29fb6147e138c25097172c2c647327c7
+DIST Theme-Warty.tar.bz2 63131 SHA256 6c4344774a6655e5cd100f7815de688899fc4d5285f231090d547abeb3779a08 SHA512 15ba9c7995d5b660e65c943fb1cc0f7976fcc5e64b1520d696f13117699c65efb3e69e747a0cb5c8f89dbd662336a5cd35a6593f070d36abf8a7f2e0c07df5b0 WHIRLPOOL 2a29ed0112ce20661914bceb204ceac67ae9c6fe1b9d773f046e767d9db3ad034c0b0e1e3044ad65eba795187ec9d3834d3e82ffad526eed1206598ce65476bc
+DIST Theme-acKme.tar.bz2 233757 SHA256 83cccef1630d0d5ece74ef0d4b102a1818a73e6a4f7c684a6be44438fc894118 SHA512 24f3705bfce94eece839703be913de1c02a2bfb1af9ae17b6329ee2d161a2b88a47a3154a14b6c2e586e2bd59c97fe708aa585588b276ea1da977a1d172c4ea9 WHIRLPOOL b1cdd4319446384f4512eb799675fca030a198a1896a095876ae5f6c881c46aac6bf8e08f19581dbc6f5f96039da125cb08f93f1bb2ae21430bef7554f1c3135
+DIST Theme-dotf.tar.bz2 393510 SHA256 c8a3c558ea9ce5e088ee7f2ac7810887cfd5a68dc363e70d948c3fea492dcecf SHA512 da80d95dc157212bd8e0f1083afd6e3c82f77922105a0fae0ec94876ad23117f8ab9898dab47b76e8129a1c3fb30db6132e1fb13b77f45de6b46db569d250310 WHIRLPOOL 4769c2de9f611b13746852852550baf59fddf7faecd99157a5a634fa976d5a0369769dd6293d85317df374d7ef7aca03fa08fef2318eb0f6f6431144de71fca1
+DIST Theme-iRu.tar.bz2 81672 SHA256 9a6b6432628ef73a3820cb0f2df2a6fdb18c158af3440b2ca51fce12db9e54f6 SHA512 d496a68631cd3d4dc859289c177e2f572226f6e87d949ce8556895ddc29b9fbcbc21e8e49385f58022c7f08117da94a84c37ec60e95145611a1b1a3f5cd840d3 WHIRLPOOL 3efd912c435610453ece6d29c6374f90ff278c93b88aab0e57a64431146eb86c575bedd874a5c24fee4b31372799a5861252759bbdca4705261aef290f371e58
+DIST Theme-libertnl.tar.bz2 90035 SHA256 60bd067093f3bb3f4e4a7c9fb754fc65f2eab5f8935ae311f8d47b0e9f58562e SHA512 4d01967e3713adb2ecbb9534b42f261bbae1a381185bc3838d642e6af28dcb0c254f2b713d52e3e757489006ee25658213375b7f8e08f6fc681bad52bab427b9 WHIRLPOOL 557982968b2a16eea224daa55906f6d4acf76f8f26c64ebb874dcb84a966c409182d7cdcb60ea149a142bdb66188d4e33ae6167c855446c3527f3281b372e653
+EBUILD bootsplash-themes-20060913.ebuild 11213 SHA256 824b156c3630119d817a24bef6a578e7278c454dec100160ffc277387a94600d SHA512 ada8a898e5a2e47e5123218b1afeac203c9005a361cf8a3d7ea2de226d0a9d7197e48c783e90a59d12241d6298d5753def7b73c16816b511b7ecf79d356a2006 WHIRLPOOL da1385dbf2f39b65e477323acb7b784395715939c5dcbf0c5b2dcbe616988df97165676477afd3391f2c44735dfe1377ea217f793185dbd2662757eea4c76044
+MISC ChangeLog 2838 SHA256 249ec37d1af12b21e414a2faaf3ffdcd78947d5d2c21432692f2793803949c75 SHA512 21841b318582ca78b62bfed659cfdb115455c4771afc1ccd6014044d24bd2f67863bc50d5b110888b084b135418110dc4327dfb40d498352ac930fb32463bf37 WHIRLPOOL 22b7cb316b34dc245df24621b3be7ae81424438fc5a3e1c410dd3d7c05e554e898f7df41051b2e82bca55ada435990a28d4e0a7021b7efae27b51017f1b16f24
+MISC ChangeLog-2015 2641 SHA256 76aa74cba65795157fd32284fdd38a19e2f6862831c5b7b2c2df3912ffc13383 SHA512 54fbaae601cf53f72a657604d5f4cfa9c326b09717aede719f7f782764c90b26532819b628c72f51619927371ba0f4485efe248464b4c896a18873ab6dd1b29f WHIRLPOOL e3c042f2adff6b76bdfefa0ad12c4f09fe67bc614902311fd26fed391b74af14a6f344482910f92e1efafb140c36b2a42e1fa3d9996e2b1ef180cdf900297ba1
+MISC metadata.xml 166 SHA256 2caff447f5bd2701d8456ada5cc633c41ef4373fa4bfeabeb73599d40bcc941b SHA512 a56648c974a1d14dd4c18237532773c72057a13ab90c58b5da04f185e3c12a8bd8d5c21fb06053507f31766291a82dc7d87b34cd65fd94cfe2af7295c813ef84 WHIRLPOOL 1ff70497eca6531f0e0614c72a19f4b8e5ff486a58d369f4f0b36308d1d6b01168f9da887740e3b9f536236be251d3fe05f904d27a9233a7cf613416ba882968
diff --git a/media-gfx/bootsplash-themes/bootsplash-themes-20060913.ebuild b/media-gfx/bootsplash-themes/bootsplash-themes-20060913.ebuild
new file mode 100644
index 000000000000..62295f78462d
--- /dev/null
+++ b/media-gfx/bootsplash-themes/bootsplash-themes-20060913.ebuild
@@ -0,0 +1,297 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+DESCRIPTION="A collection of Bootsplash themes"
+HOMEPAGE="https://dev.gentoo.org/~spock/repos/bootsplash/"
+THEME_URI="mirror://gentoo"
+
+SRC_URI="${THEME_URI}/Theme-73labAllstar.tar.bz2
+ ${THEME_URI}/Theme-acKme.tar.bz2
+ ${THEME_URI}/Theme-AquaMatrix.tar.bz2
+ ${THEME_URI}/Theme-ArchLinux.tar.bz2
+ ${THEME_URI}/Theme-ArchPool.tar.bz2
+ ${THEME_URI}/Theme-ArchRelief.tar.bz2
+ ${THEME_URI}/Theme-Arch.tar.bz2
+ ${THEME_URI}/Theme-ASPLinux.tar.bz2
+ ${THEME_URI}/Theme-ASP.tar.bz2
+ ${THEME_URI}/Theme-AthlonXP.tar.bz2
+ ${THEME_URI}/Theme-Ayo.tar.bz2
+ ${THEME_URI}/Theme-BabyTux.tar.bz2
+ ${THEME_URI}/Theme-Berry.tar.bz2
+ ${THEME_URI}/Theme-Black.tar.bz2
+ ${THEME_URI}/Theme-Burek.tar.bz2
+ ${THEME_URI}/Theme-CaixaMagica.tar.bz2
+ ${THEME_URI}/Theme-Cargal.tar.bz2
+ ${THEME_URI}/Theme-CCux.tar.bz2
+ ${THEME_URI}/Theme-CLEE.tar.bz2
+ ${THEME_URI}/Theme-CM.tar.bz2
+ ${THEME_URI}/Theme-Compact.tar.bz2
+ ${THEME_URI}/Theme-CRUX.tar.bz2
+ ${THEME_URI}/Theme-Cybercity.tar.bz2
+ ${THEME_URI}/Theme-Cynapses.tar.bz2
+ ${THEME_URI}/Theme-DangerGirl.tar.bz2
+ ${THEME_URI}/Theme-Dark-0.1.tar.bz2
+ ${THEME_URI}/Theme-Dark-2-0.2.tar.bz2
+ ${THEME_URI}/Theme-DarkBlue.tar.bz2
+ ${THEME_URI}/Theme-DebBlue-Gnome.tar.bz2
+ ${THEME_URI}/Theme-DebBlue-Gnoppix.tar.bz2
+ ${THEME_URI}/Theme-DebBlue.tar.bz2
+ ${THEME_URI}/Theme-Debian2.tar.bz2
+ ${THEME_URI}/Theme-Debian3.tar.bz2
+ ${THEME_URI}/Theme-Debian-Mist.tar.bz2
+ ${THEME_URI}/Theme-Debian-Sarge.tar.bz2
+ ${THEME_URI}/Theme-Debian.tar.bz2
+ ${THEME_URI}/Theme-Debian-Tux-Gnulinex.tar.bz2
+ ${THEME_URI}/Theme-Debian-Tux.tar.bz2
+ ${THEME_URI}/Theme-Debian-Wave.tar.bz2
+ ${THEME_URI}/Theme-Deflorist.tar.bz2
+ ${THEME_URI}/Theme-DimmuBorgir.tar.bz2
+ ${THEME_URI}/Theme-Dolphin.tar.bz2
+ ${THEME_URI}/Theme-dotf.tar.bz2
+ ${THEME_URI}/Theme-Dragon.tar.bz2
+ ${THEME_URI}/Theme-ElvinTooka.tar.bz2
+ ${THEME_URI}/Theme-Emergance.tar.bz2
+ ${THEME_URI}/Theme-Enterprise-spot.tar.bz2
+ ${THEME_URI}/Theme-Enterprise.tar.bz2
+ ${THEME_URI}/Theme-ERPOSS3.tar.bz2
+ ${THEME_URI}/Theme-EvenNewerTux.tar.bz2
+ ${THEME_URI}/Theme-FarCry.tar.bz2
+ ${THEME_URI}/Theme-FedoraCore2.tar.bz2
+ ${THEME_URI}/Theme-Fedora.tar.bz2
+ ${THEME_URI}/Theme-Flower.tar.bz2
+ ${THEME_URI}/Theme-Freepia.tar.bz2
+ ${THEME_URI}/Theme-FrozenBubble.tar.bz2
+ ${THEME_URI}/Theme-Frugalware.tar.bz2
+ ${THEME_URI}/Theme-Galantine.tar.bz2
+ ${THEME_URI}/Theme-GalaxySlack2.tar.bz2
+ ${THEME_URI}/Theme-GANT.tar.bz2
+ ${THEME_URI}/Theme-GeeXboX-Halloween.tar.bz2
+ ${THEME_URI}/Theme-GeeXboX-OMC.tar.bz2
+ ${THEME_URI}/Theme-GeeXboX.tar.bz2
+ ${THEME_URI}/Theme-GeeXboX-Xmas.tar.bz2
+ ${THEME_URI}/Theme-Gentoo-Hornet.tar.bz2
+ ${THEME_URI}/Theme-Gentoo-LiveCD-2004.0.tar.bz2
+ ${THEME_URI}/Theme-Gentoo-LiveCD-2004.1.tar.bz2
+ ${THEME_URI}/Theme-Gentoo-LiveCD-2004.2.tar.bz2
+ ${THEME_URI}/Theme-Gentoo-LiveCD-2004.3.tar.bz2
+ ${THEME_URI}/Theme-Gentool.tar.bz2
+ ${THEME_URI}/Theme-Gentoo.tar.bz2
+ ${THEME_URI}/Theme-GNU.tar.bz2
+ ${THEME_URI}/Theme-GoGentooGo.tar.bz2
+ ${THEME_URI}/Theme-Ignite.tar.bz2
+ ${THEME_URI}/Theme-iRu.tar.bz2
+ ${THEME_URI}/Theme-Jollix.tar.bz2
+ ${THEME_URI}/Theme-Juicy.tar.bz2
+ ${THEME_URI}/Theme-Junior.tar.bz2
+ ${THEME_URI}/Theme-Kanotix.tar.bz2
+ ${THEME_URI}/Theme-Keramik.tar.bz2
+ ${THEME_URI}/Theme-KillBillTux-Grey.tar.bz2
+ ${THEME_URI}/Theme-KillBillTux-Yellow.tar.bz2
+ ${THEME_URI}/Theme-KnoppixKDE.tar.bz2
+ ${THEME_URI}/Theme-KnoppixLT.tar.bz2
+ ${THEME_URI}/Theme-KnoppMyth.tar.bz2
+ ${THEME_URI}/Theme-Konsole.tar.bz2
+ ${THEME_URI}/Theme-KuruminOrgBR.tar.bz2
+ ${THEME_URI}/Theme-Leopard.tar.bz2
+ ${THEME_URI}/Theme-libertnl.tar.bz2
+ ${THEME_URI}/Theme-Lila.tar.bz2
+ ${THEME_URI}/Theme-Linux.tar.bz2
+ ${THEME_URI}/Theme-Lunar.tar.bz2
+ ${THEME_URI}/Theme-MaiHoshino.tar.bz2
+ ${THEME_URI}/Theme-Mandrake-10.0.tar.bz2
+ ${THEME_URI}/Theme-Mandrake-9.2.tar.bz2
+ ${THEME_URI}/Theme-Master.tar.bz2
+ ${THEME_URI}/Theme-Matrix.tar.bz2
+ ${THEME_URI}/Theme-MetallTux.tar.bz2
+ ${THEME_URI}/Theme-Metal-Tosh.tar.bz2
+ ${THEME_URI}/Theme-Misspingus3.tar.bz2
+ ${THEME_URI}/Theme-Misspingus4.tar.bz2
+ ${THEME_URI}/Theme-Momonga.tar.bz2
+ ${THEME_URI}/Theme-Morphix.tar.bz2
+ ${THEME_URI}/Theme-MyLittleTux.tar.bz2
+ ${THEME_URI}/Theme-MythTV.tar.bz2
+ ${THEME_URI}/Theme-NewFreepia.tar.bz2
+ ${THEME_URI}/Theme-NewLinux-Deb.tar.bz2
+ ${THEME_URI}/Theme-NewLinux.tar.bz2
+ ${THEME_URI}/Theme-NewTux.tar.bz2
+ ${THEME_URI}/Theme-NightWorld.tar.bz2
+ ${THEME_URI}/Theme-Notes.tar.bz2
+ ${THEME_URI}/Theme-OfficeDesktop.tar.bz2
+ ${THEME_URI}/Theme-Oneill.tar.bz2
+ ${THEME_URI}/Theme-OpenSchool.tar.bz2
+ ${THEME_URI}/Theme-OpenXchange.tar.bz2
+ ${THEME_URI}/Theme-Pativo.tar.bz2
+ ${THEME_URI}/Theme-Pho.tar.bz2
+ ${THEME_URI}/Theme-PLF1.tar.bz2
+ ${THEME_URI}/Theme-PLF2.tar.bz2
+ ${THEME_URI}/Theme-PLF5.tar.bz2
+ ${THEME_URI}/Theme-Popcorn.tar.bz2
+ ${THEME_URI}/Theme-PowerBook.tar.bz2
+ ${THEME_URI}/Theme-Psychotoxic.tar.bz2
+ ${THEME_URI}/Theme-Pyro.tar.bz2
+ ${THEME_URI}/Theme-QiLinux-LiveCD-1.1.tar.bz2
+ ${THEME_URI}/Theme-RadiantStar.tar.bz2
+ ${THEME_URI}/Theme-Ratatouille.tar.bz2
+ ${THEME_URI}/Theme-Raziel.tar.bz2
+ ${THEME_URI}/Theme-Redmond.tar.bz2
+ ${THEME_URI}/Theme-RH9.tar.bz2
+ ${THEME_URI}/Theme-Rojo.tar.bz2
+ ${THEME_URI}/Theme-Rollmops.tar.bz2
+ ${THEME_URI}/Theme-Rustenguin.tar.bz2
+ ${THEME_URI}/Theme-Shodan.tar.bz2
+ ${THEME_URI}/Theme-Slack-3D.tar.bz2
+ ${THEME_URI}/Theme-Slack-Black-Tux.tar.bz2
+ ${THEME_URI}/Theme-Slack-Blue.tar.bz2
+ ${THEME_URI}/Theme-Slack-Glass.tar.bz2
+ ${THEME_URI}/Theme-Slack-Gray-B.tar.bz2
+ ${THEME_URI}/Theme-Slack-Gray.tar.bz2
+ ${THEME_URI}/Theme-Slack.tar.bz2
+ ${THEME_URI}/Theme-Slackware2.tar.bz2
+ ${THEME_URI}/Theme-SlackwareLinux.tar.bz2
+ ${THEME_URI}/Theme-Slackware.tar.bz2
+ ${THEME_URI}/Theme-Slide.tar.bz2
+ ${THEME_URI}/Theme-SMGL.tar.bz2
+ ${THEME_URI}/Theme-Spinner.tar.bz2
+ ${THEME_URI}/Theme-Stargate-Tux.tar.bz2
+ ${THEME_URI}/Theme-SuSE-7.2.tar.bz2
+ ${THEME_URI}/Theme-SuSE-7.3.tar.bz2
+ ${THEME_URI}/Theme-SuSE-8.0.tar.bz2
+ ${THEME_URI}/Theme-SuSE-8.1.tar.bz2
+ ${THEME_URI}/Theme-SuSE-8.2.tar.bz2
+ ${THEME_URI}/Theme-SuSE-Home.tar.bz2
+ ${THEME_URI}/Theme-SuSE-SLES.tar.bz2
+ ${THEME_URI}/Theme-SuSE.tar.bz2
+ ${THEME_URI}/Theme-SwirlPool.tar.bz2
+ ${THEME_URI}/Theme-ThinkLinux.tar.bz2
+ ${THEME_URI}/Theme-TuxInfo-Conectiva.tar.bz2
+ ${THEME_URI}/Theme-TuxInfo-Debian.tar.bz2
+ ${THEME_URI}/Theme-TuxInfo-Mandrake.tar.bz2
+ ${THEME_URI}/Theme-TuxInfo-RedHat.tar.bz2
+ ${THEME_URI}/Theme-TuxInfo-Slackware.tar.bz2
+ ${THEME_URI}/Theme-TuxInfo-SuSE.tar.bz2
+ ${THEME_URI}/Theme-TuxInfo.tar.bz2
+ ${THEME_URI}/Theme-TuxNTosh.tar.bz2
+ ${THEME_URI}/Theme-TuxSplash.tar.bz2
+ ${THEME_URI}/Theme-Ubuntu.tar.bz2
+ ${THEME_URI}/Theme-UnitedLinux.tar.bz2
+ ${THEME_URI}/Theme-UrbanVisions-Debian.tar.bz2
+ ${THEME_URI}/Theme-UrbanVisions-Mandrake.tar.bz2
+ ${THEME_URI}/Theme-UrbanVisions-SuSE.tar.bz2
+ ${THEME_URI}/Theme-VDR.tar.bz2
+ ${THEME_URI}/Theme-Vortex.tar.bz2
+ ${THEME_URI}/Theme-WarmAqua.tar.bz2
+ ${THEME_URI}/Theme-Warty.tar.bz2"
+SLOT="0"
+LICENSE="freedist"
+KEYWORDS="amd64 ~ppc x86"
+IUSE=""
+
+RDEPEND=">=media-gfx/splashutils-1.1.9.6"
+DEPEND="net-misc/wget ${RDEPEND}"
+S="${WORKDIR}"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ # clean it up a little, it's supposed to be config files, not scripts
+ elog "Cleaning up the themes"
+ find -name *.sh -exec rm -f "{}" \; 2>/dev/null
+ find -name rc.d -exec rm -rf "{}" \; 2>/dev/null
+ find -name rc* -exec rm -f "{}" \; 2>/dev/null
+ find -name 'Slackware 9.1.scripts' -exec rm -rf "{}" \; 2>/dev/null
+ find -name bootloader -exec rm -rf "{}" \; 2>/dev/null
+ find -name lilo -exec rm -rf "{}" \; 2>/dev/null
+ find -name Scripts -exec rm -rf "{}" \; 2>/dev/null
+ find -name example -exec rm -rf "{}" \; 2>/dev/null
+ find -name ".xvpics" -exec rm -rf "{}" \; 2>/dev/null
+ find -name INSTALL -exec rm -f "{}" \; 2>/dev/null
+ rm -rf "./SuSE-Home/var"
+
+ # backup files? no, thank you.
+ find -regex '.*~$' -exec rm -f "{}" \;
+
+ # we don't have images for these resolutions
+ rm -f Mandrake-10.0/config/bootsplash-1600x1200.cfg
+ rm -f Ayo/config/bootsplash-1600x1200.cfg
+
+ # gentooify all paths
+ elog "Gentoo-ifying all paths"
+ for i in `grep "/etc/bootsplash/themes" -lR *` ; do
+ sed -i 's#/etc/bootsplash/themes#/etc/bootsplash#g' "$i"
+ done
+}
+
+src_install() {
+ local mypath
+
+ if has_version "media-gfx/splashutils" ; then
+ dodir /etc/splash
+ mypath="/etc/splash"
+ else
+ dodir /etc/bootsplash
+ mypath="/etc/bootsplash"
+ fi
+
+ cd "${S}"
+
+ if has_version "media-gfx/splashutils" ; then
+ for i in * ; do
+ elog "Converting ${i}"
+ [ -z "$(cd ${i} ; find -regex '.*config/bootsplash-[0-9]+x[0-9]+.cfg')" ] && continue
+ sed -i "s#/etc/bootsplash#${S}#g" ${i}/config/*.cfg
+ bootsplash2fbsplash --bootsplash-path "${S}" --fbsplash-path "${D}/etc/splash" "${i}"
+ sed -i "s#${D}#/#g" "${D}"/etc/splash/${i}/*.cfg
+ done
+
+ # Add images that might not have been copied by the conversion script
+ cp Cybercity/images/bootsplash-1024x768.jpg "${D}"/etc/splash/Cybercity/images/verbose-1024x768.jpg
+ cp OpenSchool/images/bootsplash-800x600.jpg "${D}"/etc/splash/OpenSchool/images/verbose-800x600.jpg
+ cp OpenSchool/images/bootsplash-1024x768.jpg "${D}"/etc/splash/OpenSchool/images/verbose-1024x768.jpg
+ cp OpenSchool/images/bootsplash-1280x1024.jpg "${D}"/etc/splash/OpenSchool/images/verbose-1280x1024.jpg
+ cp OpenSchool/images/bootsplash-1600x1200.jpg "${D}"/etc/splash/OpenSchool/images/verbose-1600x1200.jpg
+
+ # Fix symlinks
+ for i in "${D}"/etc/splash/*/images/*.{png,jpg} ; do
+ if [ -L ${i} ]; then
+ tg=`readlink ${i} | sed -e "s#${D}etc/splash/[^/]*/images/##"`
+ rm -f ${i}
+ i=${i/${D}///}
+ dosym ${tg} ${i}
+ fi
+ done
+ else
+ mv * "${D}/etc/bootsplash"
+ fi
+
+ chown -R root:0 "${D}/${mypath}"
+ chmod -R o-w "${D}/${mypath}"
+}
+
+pkg_postinst() {
+ elog "The themes provided in this package come directly from bootsplash.de"
+ elog "with only some very basic fixes applied along the way. Some of them"
+ elog "might not work properly on your system, some might not support verbose"
+ elog "or silent mode, or might only support a single resolution."
+ elog ""
+
+ if has_version "media-gfx/splashutils" ; then
+ elog "The themes have been automatically converted to a format recognized"
+ elog "by splashutils. Note that the conversion process is purely automatical"
+ elog "and therefore 'dumb'. Some themes might not work, or work incorrectly."
+ elog "If you happen to find a theme that you like, but which doesn't work"
+ elog "after it has been automatically converted to the new format, please"
+ elog "fix it manually and submit for inclusion into a generic splashutils"
+ elog "theme package by posting it on bugzilla (https://bugs.gentoo.org/)"
+ elog "or sending it directly to the maintainer of this package."
+ else
+ elog "When testing the themes, please make sure you're running in a 16bpp"
+ elog "mode. 16bpp was the only supported color depth in the original bootsplash"
+ elog "patches. The version of the patch that you happen to be using might"
+ elog "work with other depths, but only 16bpp is guaranteed to be supported."
+ elog ""
+ elog "You might want to use:"
+ elog " /sbin/splash -s -u 0 /etc/bootsplash/<theme>/config/<configfile>.cfg"
+ elog "to test the themes. Note, that some of them don't support verbose mode."
+ fi
+}
diff --git a/media-gfx/bootsplash-themes/metadata.xml b/media-gfx/bootsplash-themes/metadata.xml
new file mode 100644
index 000000000000..6f49eba8f496
--- /dev/null
+++ b/media-gfx/bootsplash-themes/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<!-- maintainer-needed -->
+</pkgmetadata>
diff --git a/media-gfx/cairosvg/Manifest b/media-gfx/cairosvg/Manifest
new file mode 100644
index 000000000000..4894876f5063
--- /dev/null
+++ b/media-gfx/cairosvg/Manifest
@@ -0,0 +1,11 @@
+DIST CairoSVG-1.0.22.tar.gz 30896 SHA256 f66e0f3a2711d2e36952bb370fcd45837bfedce2f7882935c46c45c018a21557 SHA512 5f4ea7b80947092620827e454182af7332082a8c84fddc035f75ed19c09b4a9027d6bfd5c96e5f388150833788a71ab8fb77a1ffdd963b8106f07b1908a0c8f6 WHIRLPOOL 4e595888a813449ecc442f8fbdf9f01bd88af7ba584b565735b12ff3de7092c0fc013209fda9c84f0931f919701d959830d3e6c88f5b58446664d1a762ef2a25
+DIST CairoSVG-1.0.7.tar.gz 29648 SHA256 2ccdfd8cdfc6797da1f63d8f15fd76fa72d482d618a4807bb02f0b37662bca39 SHA512 1b10657f1e53b486f624ec00e952c3d2ba2f28b2a5d6cb6f66eb6441e8c51190bd75315e7a537d37eadff5ce4e0a52d3f4ebd7b36d81b2e9fd804ac92f2d83db WHIRLPOOL aa7affdc656444c0558bcc9be9b66fb385a81e33d60c04aad81930041096782ecbbc40a4e26c4c76e1580d882411c3759244c85c23e0671dc48104224a99ba18
+DIST CairoSVG-1.0.tar.gz 28573 SHA256 65f613e9521c37066b92e24532f702dbf4b7049ce0fa5fb75d21afa467a38b9b SHA512 26046de33feb5d7cbd8438d5fdf7f0e86e4f252c21478b51e764d7bf7800c8392a11a42a87666af6e008ad1e09f0749b57d06c566101d2a3e630e151703a3bb9 WHIRLPOOL 166c14d1c0ec9c1c455ded7c69c60940d102224c00a9bf1c6882ab1134b2a1eec415c9fe1f82bf9921a84feb8bc8f1055aa38830916dae233783fae551b31cb3
+DIST CairoSVG-2.0.3.tar.gz 39371 SHA256 d2da5aaa31ded26affd5cdffc371ec4cc48800bc2d822a9c28504360482418a1 SHA512 b7ad7be9bd06059392f2004e7cd5c1df1667dbae78482c68d681990a8b3a4141a9c4b72aa4af5075a87ac6a1a4ddf8311d991512be98128b21b87d4355c1bd3d WHIRLPOOL 5b6da883f7b6c83574f3ac5c635f959fdc6d547a929b3a9ea8222ef6d0136f4d6c049c0aa65bef98835b0f5a484a5e093e6cbdfcd5fda418c33025f709fdc747
+EBUILD cairosvg-1.0.22.ebuild 716 SHA256 f382e91ba553fdd7527d1ad07d2061506e12df8af995e46e384a8ab8fdd6b7e1 SHA512 d0741930395e262b298edee7f6360791e78bb2e19d9c1d0ce1230a12a4b868a73a88b846957f8cf80cf0341eba88c414aa14788eae1e4bf6a14fa7c242f914b6 WHIRLPOOL 8b117aa3491124bf944cf1d039ea4fba25eb30191e97c10cd03c77693d50cb83495d993ee43653d38d5a3f98c40ec7a29b77051f5a8194ef5eb6d8c6c9a8e2f8
+EBUILD cairosvg-1.0.7.ebuild 740 SHA256 86b4c9d51641e7d1fc3a4381406b31ca2c548761fd9159ae5dbfcac890077696 SHA512 3df680c2896c5f598af0e377df61c5df541549b743b6f9ab81c0fa1ef8c9c29b70679ef12e42c9201522ad364abfdc7fb6d9dc44fa043a7fa937685ea3b92343 WHIRLPOOL e40b81a33552f594bfcf46a3ec5f7a177e7b548b92f954af272e74586b7b1ed5a735c113ea5d802834d2553957fb93582e64cc88a1dfee51c5c86df5452b6a2f
+EBUILD cairosvg-1.0.ebuild 692 SHA256 15c17adb2ed227cc80fa1616fdf215f5c2858ad56d8f08235daf30c2e4adfff1 SHA512 cee1307e3cc5ca1838793485ea941ddc0cbcf55347ef6453998bd836dca360e3c3d671c454210edd4914cef5d0c03a292847aecc3399b50b51ba4281a6016a47 WHIRLPOOL 7e90185981bd3b6fb34c26344f686a9ff8ab8086a2b99de498c84f33d799754fd0126609bb31552531fcbe185919657869901d6b3e19c8795d58a51e9fa1b7c0
+EBUILD cairosvg-2.0.3.ebuild 714 SHA256 1da0ce3c3023a729ff291cb3788a334c5a6ff0ec626168ee89b4389fc79fbfea SHA512 19be35afd71cc53ece06fbad978ddffc9700522ae820d26c4735a16c8fde2ae5ee5440619a69274a8d6871813119f89ec82c93c40cb44060792001f073b073c3 WHIRLPOOL 8670e99bbf2e4e324abf95910659ec2ce8e68e730c3bb52157ae7de823fb2a27e2e155323888b6ee6592bdf4d745fe6290f74bbda2520c6abc97d4780afcfb0a
+MISC ChangeLog 3223 SHA256 2f8b1d2ebf885d6deda06a3d7b35d3f2cf4e85433d8adb03c47024b434900ef4 SHA512 e4e3d680ef861f9ee49dca944b9697ffe20d5f4091c354abc62cb66ec664445ddf375a072a4c9a9f39b2fbec236a53f6b1b082acafd3335dfd6051f280ef649d WHIRLPOOL 7c14afa7dae05dfc81d43eac09e4ac952333c563b92da6e5a258494e0124797ba8d78a6fcd0cf782266141c4b51202e9a7380720689ff555a243d13f748698c9
+MISC ChangeLog-2015 1016 SHA256 066975a5143323c60ee9e06d292ef3263cb1ecf491c172a08ec1ce60bace2723 SHA512 e33b7adf58d6d70321a0b4ba298cd14878f170b40570da1b5eaade2c96521f93a37b0aa9879b15a9b5e20204b5c53f4c165244958fdadbeb9f41c15fe9185e0a WHIRLPOOL 053b0c2200cf46db8b9cb27a10470c043818f43d7a6e97d0b10b541b71080a8d01615da1cb0427e974da7655cb4150d3d0be16665a245d1dc1eb69f05d7eb2ce
+MISC metadata.xml 340 SHA256 3b72b24591bf4b6e91c36d69540dad8ea2beb3bad3d7a5e6a67a7347262b7fa4 SHA512 48eddade88ce54234da4c04edc349a80d162f88ad6c96ee30b9434e792fe174654990efedabbe3927b78f54400c7aa61dcc8acd1776772d6e5bb31626cd31e4d WHIRLPOOL 7be6df2fb93a1eec4b3a8a0c4bead0f42d438dec6e0f8fee0d66fb4c59c03911fc067793b5a4021750885dfadb2ebbd0549dd2b7b111b291f567b6b629eef09d
diff --git a/media-gfx/cairosvg/cairosvg-1.0.22.ebuild b/media-gfx/cairosvg/cairosvg-1.0.22.ebuild
new file mode 100644
index 000000000000..08398d9ce370
--- /dev/null
+++ b/media-gfx/cairosvg/cairosvg-1.0.22.ebuild
@@ -0,0 +1,30 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+PYTHON_COMPAT=( python{2_7,3_4,3_5} )
+
+inherit distutils-r1
+
+MY_PN="CairoSVG"
+MY_P="${MY_PN}-${PV}"
+
+DESCRIPTION="CLI and library to export SVG to PDF, PostScript, and PNG"
+HOMEPAGE="http://cairosvg.org/"
+SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz"
+
+LICENSE="LGPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND="dev-python/lxml[${PYTHON_USEDEP}]
+ dev-python/pycairo[${PYTHON_USEDEP}]
+ dev-python/tinycss[${PYTHON_USEDEP}]
+ dev-python/cssselect[${PYTHON_USEDEP}]
+ dev-python/cairocffi[${PYTHON_USEDEP}]"
+DEPEND="${RDEPEND}"
+
+S="${WORKDIR}/${MY_P}"
+
+DOCS=( NEWS.rst README.rst TODO.rst )
diff --git a/media-gfx/cairosvg/cairosvg-1.0.7.ebuild b/media-gfx/cairosvg/cairosvg-1.0.7.ebuild
new file mode 100644
index 000000000000..96d048fc8c4d
--- /dev/null
+++ b/media-gfx/cairosvg/cairosvg-1.0.7.ebuild
@@ -0,0 +1,30 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+PYTHON_COMPAT=( python{2_7,3_4,3_5} )
+
+inherit distutils-r1
+
+MY_PN="CairoSVG"
+MY_P="${MY_PN}-${PV}"
+
+DESCRIPTION="A simple cairo based SVG converter with support for PDF, PostScript and PNG formats"
+HOMEPAGE="http://cairosvg.org/"
+SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz"
+
+LICENSE="LGPL-3"
+SLOT="0"
+KEYWORDS="amd64 x86"
+
+RDEPEND="dev-python/lxml[${PYTHON_USEDEP}]
+ dev-python/pycairo[${PYTHON_USEDEP}]
+ dev-python/tinycss[${PYTHON_USEDEP}]
+ dev-python/cssselect[${PYTHON_USEDEP}]
+ dev-python/cairocffi[${PYTHON_USEDEP}]"
+DEPEND="${RDEPEND}"
+
+S="${WORKDIR}/${MY_P}"
+
+DOCS=( NEWS.rst README.rst TODO.rst )
diff --git a/media-gfx/cairosvg/cairosvg-1.0.ebuild b/media-gfx/cairosvg/cairosvg-1.0.ebuild
new file mode 100644
index 000000000000..4445b53c81d4
--- /dev/null
+++ b/media-gfx/cairosvg/cairosvg-1.0.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+PYTHON_COMPAT=( python2_7 )
+
+inherit distutils-r1
+
+MY_PN="CairoSVG"
+MY_P="${MY_PN}-${PV}"
+
+DESCRIPTION="A simple cairo based SVG converter with support for PDF, PostScript and PNG formats"
+HOMEPAGE="http://cairosvg.org/"
+SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz"
+
+LICENSE="LGPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND="dev-python/lxml[${PYTHON_USEDEP}]
+ dev-python/pycairo[${PYTHON_USEDEP}]
+ dev-python/tinycss[${PYTHON_USEDEP}]
+ dev-python/cssselect[${PYTHON_USEDEP}]"
+DEPEND="${RDEPEND}"
+
+S="${WORKDIR}/${MY_P}"
+
+DOCS=( NEWS.rst README.rst TODO.rst )
diff --git a/media-gfx/cairosvg/cairosvg-2.0.3.ebuild b/media-gfx/cairosvg/cairosvg-2.0.3.ebuild
new file mode 100644
index 000000000000..8931a2878267
--- /dev/null
+++ b/media-gfx/cairosvg/cairosvg-2.0.3.ebuild
@@ -0,0 +1,32 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python3_{4,5,6} )
+
+inherit distutils-r1
+
+MY_PN="CairoSVG"
+MY_P="${MY_PN}-${PV}"
+
+DESCRIPTION="CLI and library to export SVG to PDF, PostScript, and PNG"
+HOMEPAGE="http://cairosvg.org/"
+SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz"
+
+LICENSE="LGPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND="
+ dev-python/cairocffi[${PYTHON_USEDEP}]
+ dev-python/cssselect[${PYTHON_USEDEP}]
+ dev-python/lxml[${PYTHON_USEDEP}]
+ dev-python/pillow[${PYTHON_USEDEP}]
+ dev-python/tinycss[${PYTHON_USEDEP}]
+"
+DEPEND="${RDEPEND}"
+
+S="${WORKDIR}/${MY_P}"
+
+DOCS=( NEWS.rst README.rst TODO.rst )
diff --git a/media-gfx/cairosvg/metadata.xml b/media-gfx/cairosvg/metadata.xml
new file mode 100644
index 000000000000..3cd703447340
--- /dev/null
+++ b/media-gfx/cairosvg/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="pypi">CairoSVG</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/media-gfx/cellwriter/Manifest b/media-gfx/cellwriter/Manifest
new file mode 100644
index 000000000000..0f886ff85da5
--- /dev/null
+++ b/media-gfx/cellwriter/Manifest
@@ -0,0 +1,7 @@
+DIST cellwriter-1.3.4.tar.gz 284647 SHA256 6ab6fa697938af0fc8b587ccd7c5889087800569e558b97797963c6ee2fada0c SHA512 5839670912a456cc9becef61b9f293575bc04fd4113877a21e9fea247a964917a399393007c3793066fa92a2ba0560776100d56ea56d1dadd49052a4844e1582 WHIRLPOOL 2874aac6403725b520136fd3a9cb394a47a8730ee0f242af062b202a750d8f088381650832f29b4c1d6be234b84f69c05d72dbc09e5fffe60cdc05d4e650ee68
+DIST cellwriter-1.3.5.tar.gz 293241 SHA256 c7ea0dd4b512c80235569c033cefda7c471f335deeb472220e27c31e511e06ef SHA512 a9b682babda4335ea18716032ac52e73578459e9ab8866b20177f6d0cb606b9da2bf5a3fae2e2547277351db2533c7e92461f5c6a6ebc542ffe5844ff7ae65d6 WHIRLPOOL 6db9f3c3e9cfec653d0f69d2a8e70153372d529db53b772b9560cfeb57100d7c420dd2f605957c780b0b19dc53300e084a14f9db434a3d89ee424fed7245f0a1
+EBUILD cellwriter-1.3.4.ebuild 619 SHA256 e2d78e52b2a8439a7d3c74917200362c5f72fb50a9cecf94db070b1baa87bd5f SHA512 f04f8391bc0d31fd25380b1759ae022e8020bf42fbb7c825fc0937ce6ddacce36aa80be9f627969f8ea6173039f35734de2d3629b562263dba3b6d4e129447ee WHIRLPOOL 2b6a9be8e131febb42be89bbd9f25cef0d503fd9acd900acb8b3dd9b39085c1a53c5e7377bd57cbfbbd6440c5b3962adbe5ea6b91bf69524788de6e278fe9988
+EBUILD cellwriter-1.3.5.ebuild 718 SHA256 b858d672080a0f2dee8ac76861424128c6dbc4371fa458d5f370a784821dddb3 SHA512 15f7a1d9d78581e352850c085a40ea0fcd1bb13e1e5c41c4df65f34f9a7f6bcc72d6ab57a15a637e1368856713785ec9f4384a47260680e0e4b8b3aa7212dbf5 WHIRLPOOL f7a9cde5277d6c8e53001b4921452fc7571167b2f8b3cda4b8201101496c557de4b88576d6284d65e878db744bc711e1b2e1f14ee24efd83b1d5c86a29b60cca
+MISC ChangeLog 2888 SHA256 f78950e10344b7d7ddfdeb830f2839f8059d63171c37a0e4443c4ffe1074a4bf SHA512 bde3516906563431fa0b23eb41dbb294629b9911da15c4c1be37d4dac6a6e9da23d443f02fafb13953888e011f4d16d3be5ca79d1fa69de63158b3b55b5b6455 WHIRLPOOL 738def410b7c4d7d4420d6af8401c336f1238e18c794021de962976a0e695239199aee4af0adf37a07a4dba864ed44dc334896ad31e94b78c98c86e5db40fe52
+MISC ChangeLog-2015 1760 SHA256 c5f5978d68b3c72cfa585eb3253822b73f2ccf80e3132eba76a4c9c16e31c115 SHA512 7eb7f6c209cc46b02596b112db0849e8c66bfb51e5a41bbf45c956428f154eec1a4e36bdd102b5cf6b3d5516caa3ae8feee6595ad81714e0d1fd8e774c0b712c WHIRLPOOL d940a6dc2ed0b50b2be3075e94a8fe98b81738950129cd27252c4b829afc22f390b42e0b56b18d3124980dc9d351f64b5b6a8f44cf7f861597f67162a67f7c3b
+MISC metadata.xml 255 SHA256 3e7137870fc49956d79719e3dfe029775cbaaa097e85748c139713c46fcd1798 SHA512 b7bc93530a1726c2d4dfbc71ae29cfbb57712fd9fdd2e76fd52f35ab4368cba0497b50145d1527a3b79e465d459a380821bb1371a01c2e915dc9adc6c7fafd5f WHIRLPOOL 392188d7e069f1720be9329edfb31b11b176bf0c411023b2ceeaeabef1cacf842d70657a2a14ac2ddabbdad70a304275f3b587e9bcdfe77be63a0092e370252c
diff --git a/media-gfx/cellwriter/cellwriter-1.3.4.ebuild b/media-gfx/cellwriter/cellwriter-1.3.4.ebuild
new file mode 100644
index 000000000000..517e2596d527
--- /dev/null
+++ b/media-gfx/cellwriter/cellwriter-1.3.4.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=2
+
+DESCRIPTION="Grid-entry natural handwriting input panel"
+HOMEPAGE="http://risujin.org/cellwriter/"
+SRC_URI="http://pub.risujin.org/cellwriter/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc x86"
+IUSE="gnome"
+
+RDEPEND="x11-libs/libXtst
+ >=x11-libs/gtk+-2.10:2
+ gnome? ( gnome-base/libgnome )"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ x11-proto/inputproto"
+
+src_configure() {
+ econf $(use_with gnome)
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die
+ dodoc AUTHORS ChangeLog NEWS README
+}
diff --git a/media-gfx/cellwriter/cellwriter-1.3.5.ebuild b/media-gfx/cellwriter/cellwriter-1.3.5.ebuild
new file mode 100644
index 000000000000..9f5a7bfdccdf
--- /dev/null
+++ b/media-gfx/cellwriter/cellwriter-1.3.5.ebuild
@@ -0,0 +1,31 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit gnome2-utils
+
+DESCRIPTION="Grid-entry natural handwriting input panel"
+HOMEPAGE="http://risujin.org/cellwriter/"
+SRC_URI="http://pub.risujin.org/cellwriter/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc x86"
+IUSE=""
+
+RDEPEND="x11-libs/gtk+:2
+ x11-libs/libX11
+ x11-libs/libXtst"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ x11-proto/xproto"
+
+DOCS="AUTHORS ChangeLog README TODO" # NEWS is no-op
+
+src_prepare() {
+ sed -i -e '/Encoding/d' ${PN}.desktop || die
+}
+
+pkg_preinst() { gnome2_icon_savelist; }
+pkg_postinst() { gnome2_icon_cache_update; }
+pkg_postrm() { gnome2_icon_cache_update; }
diff --git a/media-gfx/cellwriter/metadata.xml b/media-gfx/cellwriter/metadata.xml
new file mode 100644
index 000000000000..19bf1be2581e
--- /dev/null
+++ b/media-gfx/cellwriter/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 type="project">
+ <email>graphics@gentoo.org</email>
+ <name>Gentoo Graphics Project</name>
+</maintainer>
+</pkgmetadata>
diff --git a/media-gfx/clockphoto/Manifest b/media-gfx/clockphoto/Manifest
new file mode 100644
index 000000000000..740a5abe3c87
--- /dev/null
+++ b/media-gfx/clockphoto/Manifest
@@ -0,0 +1,4 @@
+DIST clockphoto-1.1.tar.xz 717820 SHA256 748b0eca038e4316441312c50b1e7bbfd6e4aea7b62aafc4fd613b71f37769bd SHA512 21a114191445fc3a0d888b4c0288d3fcd49394b3390cc04306136b8e6569d8d039851813cf5e44f38bcadd8a60cd649adaea2fbc881a3182e3aae249c1962d0b WHIRLPOOL 8ef1bce7bad8465aabde243faabeef648a6b97701ddc7feffea6542a278e2c83ccc46e9ec3242b0122252473ff5ce63fbd4756a42bac74beb3746cdb850a15ca
+EBUILD clockphoto-1.1.ebuild 532 SHA256 52facf6c97f7f80abccdea9d1f396acbca627bca73e76f0c06fe2b3f8b96cb4b SHA512 df59cd3a4a1ae930a2fc5a591289f4c2ef556940cb3c9f0b603b8f50c701137f3958f0aab1d244d4343191486753276dee588eae9608b5e4c47dac3a06f22d2a WHIRLPOOL 22d0ad6a91ea2ca733b434193d28e6872af8281b84d3752b64e87091fc3ee30882b5907a1109976ef52663c25022b6a7a9a8a2cb20e0ea7c204e94d87137d491
+MISC ChangeLog 613 SHA256 72dfc29fbf445a7c2e158b9a1511f3d1fa9870e8b8cd5237923b11bab0eaf82d SHA512 a871e74c1625d1c4f8a625b0ad6a9b500fb82c6024ea7f042189819777b84443e82ad52f0cc64f08215fca1c35f59bddd995428b9eb06647fadef4893ad23c88 WHIRLPOOL 331d4c7ccb48a1d36adacc0ff2946bdb1ca1755644d1434c3a863b0aa8ecc2dee5900a0e6b43f63e8f95f322ecd83f43d738e5db468e780521a82b3ce8d6b9f7
+MISC metadata.xml 250 SHA256 b7a9bbddea766f7eb561a7d52a7f6be34183f44d309efae362085c1ab536ae09 SHA512 d2115b154bf731eac11fd7b96a95baa2467cb660371f7a3dc7a7a77cf4a6cf992b97c5353f184010eac1d37cdfffa6c5d9ec35d82e171f0fad5086767d0173a5 WHIRLPOOL 4cf60a5d2fb9d0af392a436d8829e387883112156cb313f44c0e58ccd52a0552a6d307ee3ceb8be396ac044da186698e41faf261f6cf6da0a1aff0ba8b47eb17
diff --git a/media-gfx/clockphoto/clockphoto-1.1.ebuild b/media-gfx/clockphoto/clockphoto-1.1.ebuild
new file mode 100644
index 000000000000..370c1c81a09f
--- /dev/null
+++ b/media-gfx/clockphoto/clockphoto-1.1.ebuild
@@ -0,0 +1,26 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit qmake-utils
+
+DESCRIPTION="Adjusts photo timestamps based on clock photos."
+HOMEPAGE="https://git.zx2c4.com/clockphoto/about/"
+SRC_URI="https://git.zx2c4.com/clockphoto/snapshot/${P}.tar.xz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+DEPEND="dev-qt/qtwidgets:5 dev-qt/qtgui:5 dev-qt/qtcore:5"
+RDEPEND="media-gfx/exiv2 ${DEPEND}"
+
+src_configure() {
+ eqmake5
+}
+
+src_install() {
+ dobin clockphoto
+}
diff --git a/media-gfx/clockphoto/metadata.xml b/media-gfx/clockphoto/metadata.xml
new file mode 100644
index 000000000000..915f00227065
--- /dev/null
+++ b/media-gfx/clockphoto/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 type="person">
+ <email>zx2c4@gentoo.org</email>
+ <name>Jason A. Donenfeld</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/media-gfx/colorhug-client/Manifest b/media-gfx/colorhug-client/Manifest
new file mode 100644
index 000000000000..8ef1ea0285b4
--- /dev/null
+++ b/media-gfx/colorhug-client/Manifest
@@ -0,0 +1,5 @@
+DIST colorhug-client-0.2.8.tar.xz 886652 SHA256 b7787aa58db2dde6a69a13295b98154040a100d8772aac656f3b5ed0bffc0991 SHA512 99a012614b9364738a417e9cf8719811520f2ae2fab7dc1b1aa0ca4dfdbf3e3b2a06ed6763400a5ed34311797f14093af988dd6335d626b7e4a00c03d64c0356 WHIRLPOOL a30b944df67ce4f7085e68dae63e08998739bdee3291942671ab857da3cfb4647fb6296df11d331868be7c4a3a8517ec44bc99fd862ad866f44b4d6de723e896
+EBUILD colorhug-client-0.2.8.ebuild 1242 SHA256 31da8eeba679108110d9cb81707dbb49a786bb618849d14119753e1773acd966 SHA512 4f3ec7b6c5a0beefef1d5f6d344ba7c9f98dad793314262f385129ba42c5103b6bbbcab7656cce129540afd0976504f3e7112886c215b308e490768db7c65832 WHIRLPOOL 4a93c28828296440f42059c0bd86c796a54dcd0180570986b81bf66af00045770e82cc18ee882aeacb99810e3e3d2d57df1f2bce4a78509ff5e939c5d8d8071d
+MISC ChangeLog 4554 SHA256 4b63f7309b2db248b741efbb197d2fd7a4e0419d925449fa6423d9aa18debca2 SHA512 bdf9a6f570b57ba8e3e5a2e96ba0bd031bd8ea8f42ada5aeb0e5e6d562bf4526360e0b6e82ec2094668ab5b97ede1e7d96dc1e9a7fc177bc509952b784944df5 WHIRLPOOL 7d18fbfbab7d1762d80577ceffdc2f718a5e2695400909c03a897f0f7dc9df0f3694c4a04d3d385104b839c63006a5881d14b5e1ea1adeb1db92951a5d3ac23b
+MISC ChangeLog-2015 4802 SHA256 f7fbc1813a35bb93a42f7bd29f4a4b93555bd8d73b32ef43de5690565813361c SHA512 808258745f64627dbce881dc4c426665308ba2910bdb16a02c86042f68f6c0df29e765143b5fcd7d0cef5302134bfb324ac482ff11a2bc103271a8e66c335cc5 WHIRLPOOL 4cc6a7c71c9edf3c96b08668fdcec6498e6475755fe4021cab04ba6dd9decac3244fc2b04f824ab9a38700a83f38ba3a8cc4a5c836ee4fb956ee6c45a00c970f
+MISC metadata.xml 253 SHA256 8f92439176f4cd2ba6a060c523c6b29ab210cd9aab7903b6db6eecc6654b1e21 SHA512 8d59f413993268ca783f7407b676900bb2d964754bf705d4175e2bafbe058a52af74f3928e4bd84d292518f8cf13fab7051486ab7cdc61d02fae6e0188d44442 WHIRLPOOL d5d853bd8a39a54c45728e16a1aa295e014e0a3a105a01ec6b3c93a4f53d7b7055644708301751b7f5be68543056d3f0bd611d5ce0be442eb5d06f5e032fe154
diff --git a/media-gfx/colorhug-client/colorhug-client-0.2.8.ebuild b/media-gfx/colorhug-client/colorhug-client-0.2.8.ebuild
new file mode 100644
index 000000000000..4e4b403c6501
--- /dev/null
+++ b/media-gfx/colorhug-client/colorhug-client-0.2.8.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+GCONF_DEBUG="no"
+
+inherit bash-completion-r1 eutils gnome2
+
+DESCRIPTION="Client tools for the ColorHug display colorimeter"
+HOMEPAGE="http://www.hughski.com/"
+SRC_URI="https://people.freedesktop.org/~hughsient/releases/${P}.tar.xz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+# Tests need valgrind, that needs glibc with debugging symbols
+RESTRICT="test"
+
+RDEPEND="
+ dev-db/sqlite:3
+ >=dev-libs/glib-2.31.10:2
+ >=dev-libs/libgusb-0.2.2
+ media-libs/lcms:2
+ >=media-libs/libcanberra-0.10[gtk3]
+ net-libs/libsoup:2.4
+ >=x11-libs/gtk+-3.11.2:3
+ >=x11-misc/colord-1.2.9:0=
+ >=x11-libs/colord-gtk-0.1.24
+"
+DEPEND="${RDEPEND}
+ app-text/docbook-sgml-dtd:4.1
+ app-text/docbook-sgml-utils
+ app-text/yelp-tools
+ >=dev-util/intltool-0.50
+ >=sys-devel/gettext-0.17
+ virtual/pkgconfig
+"
+# docbook stuff needed for man pages
+
+src_configure() {
+ # introspection checked but not needed by anything
+ # Install completions manually to prevent dependency on bash-completion, bug #546166
+ gnome2_src_configure --disable-introspection --disable-bash-completion
+}
+
+src_install() {
+ gnome2_src_install
+ dobashcomp data/bash/colorhug-cmd
+}
diff --git a/media-gfx/colorhug-client/metadata.xml b/media-gfx/colorhug-client/metadata.xml
new file mode 100644
index 000000000000..996e7cacd217
--- /dev/null
+++ b/media-gfx/colorhug-client/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 type="project">
+ <email>gnome@gentoo.org</email>
+ <name>Gentoo GNOME Desktop</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/media-gfx/comix/Manifest b/media-gfx/comix/Manifest
new file mode 100644
index 000000000000..2703af545ecc
--- /dev/null
+++ b/media-gfx/comix/Manifest
@@ -0,0 +1,6 @@
+AUX comix-4.0.4-pillow.patch 3658 SHA256 c4ffd3029c049bda67ed03276d312e41b0635c55614c101363583b4a818b7c4e SHA512 41a37c7f095b1a10182501f0ddd035d97e0b9b150fc5d34871241c5a512c808e5b59ebf1f340b8c41432f0fd8746de9cdc39e7022a54b2f3194a916afadf1e00 WHIRLPOOL 930441bb021ce4bece86c51d2f303ff70ae01d6d856d323c266fe7a42d9c54a37d6ca3fd606c34ef539b30da9c3530d9e606e36ce5b2f201ee8e633648e67172
+DIST comix-4.0.4.tar.gz 481687 SHA256 9352169de856957a16de76867fbd7dc711648edfbac7ce76191b55e5f6cd546a SHA512 9cbc5b1cc100ee50b48b794ce9a7f08130fc7a79376533f0f55904be0e2e8cfe5f8b1deeff2f76e7038a3f81b0f709ce5eea88a709199e1584b73f5259df5f8e WHIRLPOOL 0016cb64185a6cd8983b7ecec7877f64f29a36dafd4d80b7dddcfdc8ebd1a13453faaad50d068c75bb250fbf421b7f2a9235f5472ec7d35073f62ac2731f1534
+EBUILD comix-4.0.4-r1.ebuild 1860 SHA256 87360754831cc495e265804427021b2f5997650f96e054ad1be18073ac51049c SHA512 0bcd9fa5151f5ce5195b5972fd6b6e3a91a991d160bd8bb897bba59e2954ce5a13511451dfdf4afff9b127c9c2f9b657c19dca13fa1642223e11bf130ac36954 WHIRLPOOL 06261f9517499ee407a5c3a82533e5a8f4edfeba63e9111b5455df49a3752cef4acff6f7522c3e476d5e8ef20dff515fc31efd68eabbc25488ff3ae043a09599
+MISC ChangeLog 2647 SHA256 3d3d36c3a137a4897a918d40d5edbfdc128a020760425332b8ae9ce4f7c97b06 SHA512 302a922a58e172d4b49bdd4050434f878b62601dfe731e9fe7f8aa180d9f8c65f7f4a7f81e6869ba0358bc241ac9768532a7bd8b326cf1482705a82c13b4f515 WHIRLPOOL 6c98c71d0f596790866ae7e0690d5d9b2e7fe85d24cf0c4223263155ca788b16acd628fe81996de3f27ccf744184ba9bb7f69cf8b2b03678399dd18285b6938a
+MISC ChangeLog-2015 9473 SHA256 8a584fa11c0361030fc4d21f8f48cc0182e5c536a0d5bb1663bb2e9a69f40a0a SHA512 af5452069d20f29b7e5c544f1031e1a8992d0c325578dd89d1419fb7e2ccccddecbc65963b322978c444e0fe3c7522bf7fac877463572fdea696615b4a7863fb WHIRLPOOL b87639e832ec1c748e3f7eb5e3ef23746891455eaffb5d017df99b16b873a7a120de2db230ecbcfe905ee63c5d230487937d9e14cdf224eed725288174545274
+MISC metadata.xml 422 SHA256 8cc31b159c2e66b652b44e841f80e132096ac1a710c61934709db02a78f44a6f SHA512 8a382830d5c7629ee140934a03d9b5b6f4759deae2a1114d16b70634316ff46aa6ceb823a5acca95de7974c25563f8b6e324f32128f61c6fbdb12eb180ec7b6b WHIRLPOOL f3e6625dcf53697de786bc0eae9565c855469c4ec5ff210f8b34d35f75bbbf3394fc90ec02835a3cdfc85f96977f35caece09455cce41b3f2a35479b0f01c912
diff --git a/media-gfx/comix/comix-4.0.4-r1.ebuild b/media-gfx/comix/comix-4.0.4-r1.ebuild
new file mode 100644
index 000000000000..2260aab7a168
--- /dev/null
+++ b/media-gfx/comix/comix-4.0.4-r1.ebuild
@@ -0,0 +1,78 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+PYTHON_COMPAT=( python2_7 )
+PLOCALES="ca cs es fr hr hu id ja ko pl pt_BR ru sv zh_CN zh_TW"
+
+inherit eutils fdo-mime gnome2-utils l10n python-single-r1
+
+DESCRIPTION="A GTK image viewer specifically designed to handle comic books"
+HOMEPAGE="http://comix.sourceforge.net"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc x86 ~x86-fbsd"
+IUSE="rar"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+DEPEND="${PYTHON_DEPS}
+ dev-python/pillow[${PYTHON_USEDEP}]
+ >=dev-python/pygtk-2.12[${PYTHON_USEDEP}]"
+RDEPEND="${DEPEND}
+ rar? ( || ( app-arch/unrar app-arch/rar ) )"
+
+pkg_setup() {
+ python-single-r1_pkg_setup
+}
+
+src_prepare() {
+ l10n_find_plocales_changes messages "" "/LC_MESSAGES/comix.po"
+
+ epatch "${FILESDIR}/${P}-pillow.patch" #471522, https://sourceforge.net/p/comix/patches/50/
+
+ # do not install .pyc into /usr/share
+ local pythondir="$(python_get_sitedir)/comix"
+ pythondir="${pythondir#${EPREFIX}/usr/}"
+ sed -i -e "s:share/comix/src:${pythondir}:g" install.py || die
+ python_fix_shebang mime/comicthumb src/comix.py
+}
+
+src_install() {
+ dodir /usr
+ "${PYTHON}" install.py install --no-mime --dir "${D}"usr || die
+
+ insinto /usr/share/mime/packages
+ doins mime/comix.xml
+
+ insinto /etc/gconf/schemas
+ doins mime/comicbook.schemas
+
+ dobin mime/comicthumb
+ dodoc ChangeLog README
+
+ remove_locale() {
+ rm -r "${ED}/usr/share/locale/"$1 || die
+ }
+ l10n_for_each_disabled_locale_do remove_locale
+}
+
+pkg_preinst() {
+ gnome2_gconf_savelist
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ gnome2_gconf_install
+ fdo-mime_desktop_database_update
+ fdo-mime_mime_database_update
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ fdo-mime_desktop_database_update
+ fdo-mime_mime_database_update
+ gnome2_icon_cache_update
+}
diff --git a/media-gfx/comix/files/comix-4.0.4-pillow.patch b/media-gfx/comix/files/comix-4.0.4-pillow.patch
new file mode 100644
index 000000000000..f91bfcd8b821
--- /dev/null
+++ b/media-gfx/comix/files/comix-4.0.4-pillow.patch
@@ -0,0 +1,153 @@
+From 9d31aa97c8bcc7828e6d04ec4375a75a9bf06836 Mon Sep 17 00:00:00 2001
+From: Alexandre Rostovtsev <tetromino@gentoo.org>
+Date: Sun, 16 Jun 2013 13:36:08 -0400
+Subject: [PATCH] Update PIL import statements for compatibility with Pillow
+ (PIL-2)
+
+https://bugs.gentoo.org/show_bug.cgi?id=471522
+---
+ install.py | 2 +-
+ mime/comicthumb | 2 +-
+ src/comix.py | 2 +-
+ src/histogram.py | 6 +++---
+ src/image.py | 8 ++++----
+ src/library.py | 4 ++--
+ src/thumbbar.py | 4 ++--
+ src/thumbnail.py | 2 +-
+ src/thumbremover.py | 2 +-
+ 9 files changed, 16 insertions(+), 16 deletions(-)
+
+diff --git a/install.py b/install.py
+index f8be7cb..d72d8d1 100755
+--- a/install.py
++++ b/install.py
+@@ -240,7 +240,7 @@ def check_dependencies():
+ print ' !!! PyGTK .................... Not found'
+ required_found = False
+ try:
+- import Image
++ from PIL import Image
+ assert Image.VERSION >= '1.1.5'
+ print ' Python Imaging Library ....... OK'
+ except ImportError:
+diff --git a/mime/comicthumb b/mime/comicthumb
+index 1081dac..a3e6a83 100755
+--- a/mime/comicthumb
++++ b/mime/comicthumb
+@@ -22,7 +22,7 @@ import tarfile
+ import subprocess
+
+ try:
+- import Image
++ from PIL import Image
+ except ImportError:
+ print '! Could not import the Image module (PIL).'
+ print __doc__
+diff --git a/src/comix.py b/src/comix.py
+index f3f9e1b..ebc73e9 100755
+--- a/src/comix.py
++++ b/src/comix.py
+@@ -51,7 +51,7 @@ except ImportError:
+ sys.exit(1)
+
+ try:
+- import Image
++ from PIL import Image
+ assert Image.VERSION >= '1.1.5'
+ except AssertionError:
+ print "You don't have the required version of the Python Imaging",
+diff --git a/src/histogram.py b/src/histogram.py
+index e9fc68d..42ac9b8 100644
+--- a/src/histogram.py
++++ b/src/histogram.py
+@@ -1,9 +1,9 @@
+ """histogram.py - Draw histograms (RGB) from pixbufs."""
+
+ import gtk
+-import Image
+-import ImageDraw
+-import ImageOps
++from PIL import Image
++from PIL import ImageDraw
++from PIL import ImageOps
+
+ import image
+
+diff --git a/src/image.py b/src/image.py
+index 0603f0a..db51525 100644
+--- a/src/image.py
++++ b/src/image.py
+@@ -1,10 +1,10 @@
+ """image.py - Various image manipulations."""
+
+ import gtk
+-import Image
+-import ImageEnhance
+-import ImageOps
+-import ImageStat
++from PIL import Image
++from PIL import ImageEnhance
++from PIL import ImageOps
++from PIL import ImageStat
+
+ from preferences import prefs
+
+diff --git a/src/library.py b/src/library.py
+index a4fc29b..e14a197 100644
+--- a/src/library.py
++++ b/src/library.py
+@@ -8,8 +8,8 @@ from xml.sax.saxutils import escape as xmlescape
+ import gtk
+ import gobject
+ import pango
+-import Image
+-import ImageDraw
++from PIL import Image
++from PIL import ImageDraw
+
+ import archive
+ import encoding
+diff --git a/src/thumbbar.py b/src/thumbbar.py
+index ba4b94c..0a4c33f 100644
+--- a/src/thumbbar.py
++++ b/src/thumbbar.py
+@@ -4,8 +4,8 @@ import urllib
+
+ import gtk
+ import gobject
+-import Image
+-import ImageDraw
++from PIL import Image
++from PIL import ImageDraw
+
+ import image
+ from preferences import prefs
+diff --git a/src/thumbnail.py b/src/thumbnail.py
+index 25f333e..b565162 100644
+--- a/src/thumbnail.py
++++ b/src/thumbnail.py
+@@ -15,7 +15,7 @@ import shutil
+ import tempfile
+
+ import gtk
+-import Image
++from PIL import Image
+
+ import archive
+ import constants
+diff --git a/src/thumbremover.py b/src/thumbremover.py
+index fc2fa37..03aa6e6 100644
+--- a/src/thumbremover.py
++++ b/src/thumbremover.py
+@@ -7,7 +7,7 @@ import urllib
+
+ import gtk
+ import pango
+-import Image
++from PIL import Image
+
+ import encoding
+ import labels
+--
+1.8.2.1
+
diff --git a/media-gfx/comix/metadata.xml b/media-gfx/comix/metadata.xml
new file mode 100644
index 000000000000..590b345bca4e
--- /dev/null
+++ b/media-gfx/comix/metadata.xml
@@ -0,0 +1,16 @@
+<?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>
+ <use>
+ <flag name="rar">
+ Pulls app-arch/unrar for rar file support
+ </flag>
+ </use>
+ <upstream>
+ <remote-id type="sourceforge">comix</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/media-gfx/converseen/Manifest b/media-gfx/converseen/Manifest
new file mode 100644
index 000000000000..c504c2eebaa6
--- /dev/null
+++ b/media-gfx/converseen/Manifest
@@ -0,0 +1,7 @@
+DIST converseen-0.6.4.tar.bz2 223060 SHA256 eac85f576018080d4a0ce904e4e8bc8a37365a4bbfec6f1ba410d4ac67625ad3 SHA512 432403cf13bb5eb1b6d0438775379295e05b250902c259bf0117efea7e21d1768cb0fe4fb8ed9bffcdca4b055a5b95612fb5e3c24b3061813b10b6db736314a9 WHIRLPOOL 257a863d4faa77c6b304aba732cf8b04159e7da4ffb04dde65cc78505d24b6b963d5ed7bfd4f01de215fb8d710219b639bb0fe142eeb1690c727ff051fab51d4
+DIST converseen-0.6.8.tar.bz2 226559 SHA256 e82c7c2cc494c7606d42e7ff2cafba8bb4d35cb5471912ae943a617ab2477e9e SHA512 add32cb213a708f5311a7b885a2f50333c9cc1b83fc08a4e4e836882eabcf7ce170e514b2de08cc6b66c1680873ed65f774bcb62c7f69c55ba061c37bbab2836 WHIRLPOOL 9d36b776faa837e9ab8ca792b14a14fdb23d53e3644b93052db53ee380b8f295ab39748f76496cb58af93f1c364890580b715b1dea1cd0430db7c2b999a8499a
+EBUILD converseen-0.6.4-r1.ebuild 1160 SHA256 b48126790be8306c891963ecdbfa7f31bc4235ef38700146935a52f45e4ec6fd SHA512 c912ff6a8438f99c46c571aa456e227bf7ba9954592bf69f0dc320c628908f59e8dfcac67baa3ada66c7a790345686645baff8b546988858f25485034eae67d6 WHIRLPOOL 4134c59b9d0f1a7ef574cbcfe78d112807c4dbc4093a19ed6207cced93adec2a581cea208ecfb2dfe9673f7fac86aebcae53f916c3e76b8a01121538d0d3faee
+EBUILD converseen-0.6.8-r1.ebuild 1183 SHA256 8b1facd6923a16b6569c539b0e592f844b4922a21fc7cd8d719df2eb2406f38e SHA512 8af788220d80390b54c8bc059aa825b6c72bdc69e72a63e99aec07c660e367e1f43d7b2e4ed6a284e342683e6fce158228456db06653092eb752f036f6d90930 WHIRLPOOL 30beedd8d70353a93c8af347d9818883884dd962554e8d71aa9bbea93c751883ebf22d2f74ef5c4b178903f659b714c076055c2e87b7c865e2aa9dbb984194f7
+MISC ChangeLog 2495 SHA256 6afaaf3dac41ec10f67897863901793bda625291c6c81268b2173bbaaa5e2306 SHA512 57db812cbe3cb511b0170f2c0b7f7fae18938029a9e6b9a7817792890c78d2556b958982363d8a3ccc354feb127e47ce50cc019e7a91e3f8b827dd099f6a0f60 WHIRLPOOL 225cae93a153559073d12fd4741cbfed8ad17dcfe51ea4089157f587da2edfdce2c4c55bcdcb1c87601568ba94341a92545298a735865e9e637b61b512a2ff7e
+MISC ChangeLog-2015 2356 SHA256 c3cad6798c294d655224a627d4af9025aac90ef55c561574d3e142fcb3e751c0 SHA512 5450ec5fb7b55996cb36d831d345d98df9cbb2a2ac6baf421558a89bcea0eaff712618ba562bf6bb2a30ef766c00813663734cf35dba98ce691d44df51641f97 WHIRLPOOL 56b1c7b13e377bbf7140c2ec3c09586691bc5cbd6db04be114ff52eb2568d5e5bdcf058af653b172ec46884710401a9ee86d1c259a8ef6981c758dfae05a1476
+MISC metadata.xml 329 SHA256 b1d481928fd547f94303f4dd5d5cf20351e6cd32ff338c3641993fb18d485a54 SHA512 860c27750ae06a87f0400fd7b12a92150cc00d4d25767a2b8c8b49640d17b1f7124b523905352ad5f76a2df1746d92706c26d6f882576e27cfec411d5eeafcd6 WHIRLPOOL 81d86c10fcc597431482fa1f2549465f19891a451fa6b74b18423486365e40f9d9d23ad93fba37c019b198b38893eb74e10168076db2f5206e85a91e7ee0cece
diff --git a/media-gfx/converseen/converseen-0.6.4-r1.ebuild b/media-gfx/converseen/converseen-0.6.4-r1.ebuild
new file mode 100644
index 000000000000..44faf8dac25f
--- /dev/null
+++ b/media-gfx/converseen/converseen-0.6.4-r1.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+LANGSLONG="cs_CZ de_DE fr_FR hu_HU it_IT pl_PL pt_BR ru_RU tr_TR"
+LANGS="es_CL"
+
+inherit cmake-utils
+
+DESCRIPTION="Batch image converter and resizer based on ImageMagick"
+HOMEPAGE="http://converseen.sourceforge.net"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="debug"
+for x in ${LANGS}; do
+ IUSE="${IUSE} linguas_${x}"
+done
+for x in ${LANGSLONG}; do
+ IUSE="${IUSE} linguas_${x%_*}"
+done
+
+# FIXME: graphicsmagick dependency does not work properly, failures when compiling
+# || ( media-gfx/imagemagick[cxx] media-gfx/graphicsmagick[cxx,imagemagick] )
+RDEPEND="
+ dev-qt/qtgui:4
+ media-gfx/imagemagick:=[cxx]
+"
+DEPEND="${RDEPEND}"
+
+DOCS=( README.md )
+
+src_prepare() {
+ for x in ${LANGSLONG}; do
+ if use !linguas_${x%_*}; then
+ rm -f "loc/${PN}_${x}."* || die
+ sed -i -e "\,/${PN}_${x}\...,d" CMakeLists.txt || die
+ fi
+ done
+ for x in ${LANGS}; do
+ if use !linguas_${x}; then
+ rm -f "loc/${PN}_${x}."* || die
+ sed -i -e "\,/${PN}_${x}\...,d" CMakeLists.txt || die
+ fi
+ done
+}
diff --git a/media-gfx/converseen/converseen-0.6.8-r1.ebuild b/media-gfx/converseen/converseen-0.6.8-r1.ebuild
new file mode 100644
index 000000000000..a782fa6ec38b
--- /dev/null
+++ b/media-gfx/converseen/converseen-0.6.8-r1.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+LANGSLONG="cs_CZ de_DE fr_FR hu_HU it_IT ja_JP pl_PL pt_BR ru_RU tr_TR"
+LANGS="es_CL"
+
+inherit cmake-utils
+
+DESCRIPTION="Batch image converter and resizer based on ImageMagick"
+HOMEPAGE="http://converseen.sourceforge.net"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="debug"
+for x in ${LANGS}; do
+ IUSE="${IUSE} linguas_${x}"
+done
+for x in ${LANGSLONG}; do
+ IUSE="${IUSE} linguas_${x%_*}"
+done
+
+# FIXME: graphicsmagick dependency does not work properly, failures when compiling
+# || ( media-gfx/imagemagick[cxx] media-gfx/graphicsmagick[cxx,imagemagick] )
+RDEPEND="
+ dev-qt/qtcore:4
+ dev-qt/qtgui:4
+ media-gfx/imagemagick:=[cxx]
+"
+DEPEND="${RDEPEND}"
+
+DOCS=( README.md )
+
+src_prepare() {
+ for x in ${LANGSLONG}; do
+ if use !linguas_${x%_*}; then
+ rm -f "loc/${PN}_${x}."* || die
+ sed -i -e "\,/${PN}_${x}\...,d" CMakeLists.txt || die
+ fi
+ done
+ for x in ${LANGS}; do
+ if use !linguas_${x}; then
+ rm -f "loc/${PN}_${x}."* || die
+ sed -i -e "\,/${PN}_${x}\...,d" CMakeLists.txt || die
+ fi
+ done
+}
diff --git a/media-gfx/converseen/metadata.xml b/media-gfx/converseen/metadata.xml
new file mode 100644
index 000000000000..04b9e1a50d50
--- /dev/null
+++ b/media-gfx/converseen/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>maksbotan@gentoo.org</email>
+ <name>Maxim Koltsov</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">converseen</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/media-gfx/cptutils/Manifest b/media-gfx/cptutils/Manifest
new file mode 100644
index 000000000000..b90506053797
--- /dev/null
+++ b/media-gfx/cptutils/Manifest
@@ -0,0 +1,6 @@
+AUX cptutils-1.68-parallel-make.patch 533 SHA256 2e5f7c6bb2b6f2b0ab6955645d3fb1b190bd0ae8c99a66fb59f9ecc94d5f9325 SHA512 d33473ae062c204b50e3167dba06f943f15e41578b64f5e73038aa173398ff0a324fbeb19b689e9e4900b7b4bce1e66b90e84692170bb0bda1f810176adbe8db WHIRLPOOL a4be1b5a13b0f2534a040612dcf2186cd9419f7665a8afed5953cabdb8746813e5539f050b25ad04282621f0783654a999b0fad0db3d0ad44c4822b95a74a059
+DIST cptutils-1.68.tar.gz 623381 SHA256 37bbf1657f8bbcd9f62213a52686e7c5ebd4a927ca0ea7cb3b8c302eecd7563f SHA512 e618ea4463a026c56c95e8e4a9bfb0f5d47825568e7f64885bcf3872d4411af4e1ff480f192c61d9d8c946a46100d148c849fd3768f3acd54b070aacdd8dc1cc WHIRLPOOL 0eef89ea10267523c634f4a0a0d2b6e378d8d5e7c20bb8e21605ea237c8ca3d4bf4fb8c19a69d34486f4a2f4b4a9de852615dd25fe28727ea2048b1fb80b0344
+EBUILD cptutils-1.68.ebuild 878 SHA256 0f8be61c4a2b724a45e094d99c60ce1c0141d361392b04a241e37587fcbf8cd6 SHA512 c7acc7376ca5aab230afbe146e69ace064335dbc5b9d64f0cafb97d398e5ea3525ea90c1c74c4a3fdcf085ff2c4b66fa75d73956b15aa750fafa70ab2225fd48 WHIRLPOOL 35e5fe031f3b02eb0bed6473b8dbcd98c3214cc17c75ad2080ba0a9a7eb6558917980ee08ad8c1cd7129da3d06ecc37ca2bbc9a7c43ae9ca22856e119de72843
+MISC ChangeLog 3251 SHA256 9e0b98cf1eb7a8a6a404d4aee0e8dee8f5b26df7d363ac6116f260b3b6e0edcf SHA512 567424d7c5b1aece9750edbef52400b74a7bf25d5609fabfe31caaeb2ec61b8c87681c02c005f6e2875e6047b85255d3aa1a7b1f83c307230c9b8f81a78ba231 WHIRLPOOL 03cd699735ebd697f048e5188786b7a55281b0ba21b900c6197fa7b2c6f56829bd9f81acfa1f763585276d04836ef2cbe9025de1cf0fd84df0d7dbe4192521a7
+MISC ChangeLog-2015 2290 SHA256 12c8b797d65cb97e3d06270f8f0cd6cd8c02d20cd76e077d09a8ae6ea2ca3a44 SHA512 aa15cca6d1d9c82dae1b63371f9ee57a5a542d51100e5dba84a926a10e4f661067b0510ba105b13c6b47d28c1cb13ac8bf56ee8aa76d72b573db94feb5aa6a26 WHIRLPOOL 05ea98ca50e0b700c92a0fc7f89394c93ce4a231eb493c83b7683a7ed94719dabdce16777a0c54357154ef7264f19fe35e9d54fa4651b240916318206b914b53
+MISC metadata.xml 255 SHA256 3e7137870fc49956d79719e3dfe029775cbaaa097e85748c139713c46fcd1798 SHA512 b7bc93530a1726c2d4dfbc71ae29cfbb57712fd9fdd2e76fd52f35ab4368cba0497b50145d1527a3b79e465d459a380821bb1371a01c2e915dc9adc6c7fafd5f WHIRLPOOL 392188d7e069f1720be9329edfb31b11b176bf0c411023b2ceeaeabef1cacf842d70657a2a14ac2ddabbdad70a304275f3b587e9bcdfe77be63a0092e370252c
diff --git a/media-gfx/cptutils/cptutils-1.68.ebuild b/media-gfx/cptutils/cptutils-1.68.ebuild
new file mode 100644
index 000000000000..023f25c568ee
--- /dev/null
+++ b/media-gfx/cptutils/cptutils-1.68.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+PYTHON_COMPAT=( python2_7 )
+
+inherit python-single-r1
+
+DESCRIPTION="A number of utilities for the manipulation of color gradient files"
+HOMEPAGE="http://soliton.vm.bytemark.co.uk/pub/jjg/en/code/cptutils/"
+SRC_URI="http://soliton.vm.bytemark.co.uk/pub/jjg/src/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="test"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+CDEPEND="dev-libs/libxml2:2
+ media-libs/libpng:0="
+RDEPEND="${CDEPEND}
+ ${PYTHON_DEPS}"
+DEPEND="${CDEPEND}
+ test? (
+ app-text/xmlstarlet
+ >=dev-util/cunit-2.1_p3
+ )"
+
+PATCHES=( "${FILESDIR}"/${P}-parallel-make.patch )
+
+src_prepare() {
+ default
+ python_fix_shebang src/gradient-convert/gradient-convert.py
+}
+
+src_configure() {
+ econf $(use_enable test tests)
+}
+
+src_test() {
+ emake unit
+}
diff --git a/media-gfx/cptutils/files/cptutils-1.68-parallel-make.patch b/media-gfx/cptutils/files/cptutils-1.68-parallel-make.patch
new file mode 100644
index 000000000000..14bf506314e5
--- /dev/null
+++ b/media-gfx/cptutils/files/cptutils-1.68-parallel-make.patch
@@ -0,0 +1,30 @@
+--- cptutils-1.68/Makefile.in
++++ cptutils-1.68/Makefile.in
+@@ -8,23 +8,22 @@
+ RUBBISH = *~
+ CONFFILES = config.cache config.log config.status configure Makefile
+ DIST = cptutils-$(VERSION)
+-MAKE_SRC = $(MAKE) -C src
+
+ # targets
+
+ default : all
+
+ all :
+- $(MAKE_SRC) all
++ $(MAKE) -C src all
+
+ install :
+- $(MAKE_SRC) install
++ $(MAKE) -C src install
+
+ test check :
+- $(MAKE_SRC) --quiet test
++ $(MAKE) -C src --quiet test
+
+ unit :
+- $(MAKE_SRC) --quiet unit
++ $(MAKE) -C src --quiet unit
+
+ clean :
+ $(RM) $(RUBBISH)
diff --git a/media-gfx/cptutils/metadata.xml b/media-gfx/cptutils/metadata.xml
new file mode 100644
index 000000000000..19bf1be2581e
--- /dev/null
+++ b/media-gfx/cptutils/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 type="project">
+ <email>graphics@gentoo.org</email>
+ <name>Gentoo Graphics Project</name>
+</maintainer>
+</pkgmetadata>
diff --git a/media-gfx/cropgui/Manifest b/media-gfx/cropgui/Manifest
new file mode 100644
index 000000000000..88937773c195
--- /dev/null
+++ b/media-gfx/cropgui/Manifest
@@ -0,0 +1,11 @@
+AUX cropgui-0.1.1-PIL.patch 994 SHA256 ea0359debc83fe5c9c316601409285e99b1e035e1ed6ad70cd721cf40c86f635 SHA512 5bbe9ff690f055c9257096ea457874f3f3b4838eb0bfa3134ce1ee468922ef15f6f8ac00344aba2f229e0ce81d3d55e9d22db97d06dfd15151ea491a19ff5414 WHIRLPOOL 8d612d85f2a3c8348e58ce037c380dabd94b438c3468eb29af274bcca373cf979fd74d8f628a79b5d1aa2fc3423ad980f4ab1e6c0d19f4ebfcd03cb65c1b5e86
+AUX cropgui-0.2-PIL.patch 831 SHA256 9f135b66fcf5406569a0e47de88c9c3c1b541c9946a7e1af3eef54e9743ba1e9 SHA512 b2b4be9f04c26906f998d5c693722d58e2d40270dcf41cb6027206adbbfeed0133858be7fbd44f846a83b23cd4da3f286fbb188b2547103a7320bcee0b35fa15 WHIRLPOOL 954a453248f196a5cfa53b4fcd892972de2bfd6ea31197f29f96054bd40cd28998fac478bdde80803ff05f4f2ed5a8c071248ba60d204369ae9070fd318b9a64
+AUX cropgui-0.2-tobytes.patch 1590 SHA256 e214155db5092edbd29c34880d135befd3b61c2839bea93515640dc9322b673f SHA512 2824a75de26eb200f991c759235a9da9ba5a61bc5f315e679920f1481b6826230432d91f2b710882463c8d8fb5856d001aa9d209de2a6d31fa027683cd57cd75 WHIRLPOOL 09966e5382ada41d562001a02d317ff3e2a1096d8e33ead5f8ba8cf50166f57ef91674a9954286d84f95951eef0c08d0a1b294fb3d9b7651606c6550afbec619
+DIST cropgui-0.2.tar.gz 842734 SHA256 9b0fcbc7a8f656979ad8ffcd09b08cec9f8ad20cd617402bae0b64526b5302fc SHA512 d6a9feea8c5de57455d0f7247465108d5a931f773f4df0c91629400bcc2c958c76559a84b6cde45709bcc8936ff7f5e2b3553897a14fbec14a9f032065ce83ba WHIRLPOOL 55e54c3adbf8992acb78c27f159874797cb4d54538b5c33b5350d0781ad1204d72e8db8c3d734922fe2893ea5d57b5a16ee2f7b8dad4db71f469462ecadfd1b1
+DIST cropgui_0.1.1.tar.gz 13142 SHA256 d2bab11c2bafdbcbe9c8cac7827a7e25b909b2962cef29e1ce7181ccb2834a75 SHA512 abfe8dfd46a316e970b0355f6b05e2d2a4a54243e201dfc8434ee09f31c8715471dd1f00bd0c6cda646406e6398e5b43da3269bf74d1f2d9d436d5931d2b968f WHIRLPOOL 1e4f9fca887d2d988c6d944f85cae6125472ea08118e84b5601123e2af603b16d49ed54385f9552f1cd819f447b2ceace742ee4fd1e95f5d0461f4c173a1ef7e
+EBUILD cropgui-0.1.1-r3.ebuild 1303 SHA256 a933dbc4b25aa0647165ee5607be2e6dcbc13b82a531a744bf2ae01028d6c8b3 SHA512 4c03300f1a39fba30ce6f9cccbdf6efed1496f7156295e9e0bc9d64fbf4d7424211a1febb0444f28120b84bc7d5b5508d260ce8acb43d30b30f7d5b9506a6e9b WHIRLPOOL 3952df17b5b01da826970a51b241d26ee67c81c1259e0ed5ff32a2600c6a0f2709feaf4d19a7643bada1130a8b8772ed376511c35c647119cf8fcf7decaaed13
+EBUILD cropgui-0.2-r1.ebuild 1332 SHA256 f21965ef87f11ee8a180d71c7df82e87c424bbb3a8b43bb0703f741459756f29 SHA512 13bcc6664b8cddad4bb948a4f46f6d301a28cb54ab31fcf319b754cdc891ee737e10cd7bbace3588c79bed58580c888e3b25926c50030289532e835d95aa7f24 WHIRLPOOL 75e0ea0d2bba08d1ac465772fc800e1be874d377cc00b5dd565a9c91a8809e2114a65d19d1c5ea64314eac2cb881951dd18b27cb74565dcb31e489cc26c10801
+EBUILD cropgui-9999.ebuild 994 SHA256 dbf7a126e59b49db7da2361a87eb0ba935bf8cfad54c7397f41be7941eeca57b SHA512 7805c24d280653e05be9cafd97e8f3fc9d9a70538ad9efe473143667fa8ffee080cbd2139e1e5c8155ad4ddc2abc8f2e5ffa98efff3e4f512d29252cc7ae30aa WHIRLPOOL e6a936abd36b53ebdb82d981d0117157c9da79f3746e633399c4670349999a5288f94640203d1cdca0cf8e8d98f1d3ecf727c4c8828f8bb99d7a0179ca21a9e9
+MISC ChangeLog 2817 SHA256 3c2b358be297af528fbec72f92657f15eb0951c7a3e39bb361ceb907e3b87060 SHA512 23741e089bab0c3c4169eff4630730563d0d7734a48cbd10d388b80dad63305523c7f22235b3e08851abedb5d1c0d2519a9402b57aae92552d7bcc766cca6e29 WHIRLPOOL 99dcbf55c2866244e5ff6468d08b90474b0854bf130e33fa6e365a927886df2257f434f1e290c65f6dade8620222547c8f42a0da91e58a00223b92278c89a5ec
+MISC ChangeLog-2015 2506 SHA256 48acaa35b1a81f61937a7a27626311170e69faad8c9620e33ae9f33d80f1b1d6 SHA512 7b2a171bbc85dc742a9ec3b504b54a0f7a7f8576049e5b36f01ff65e62a0b3a4f629e78d065917ff346635421708be8730054d249d2c5ccf646b879414aa5a1b WHIRLPOOL b5c62b5e8a94c4126f0218856ca1f8f568e7861cef745d875a22074ab69d23e9a97cdf318ec0d7ed3265557f011fb3f15f0db009f18e45ac35d7b77aad2f6ad6
+MISC metadata.xml 326 SHA256 4776cc1e5914ff31787fc8c75ad70aa7ff300452fccfd2a4e652d285e07b80f0 SHA512 7fa6076e0d39f2c2b5a7290ec75af076fbe2b0f4040861d5c2b428520e9e84447210245a6e66dea2742ddeeaf1534741e4b3dc1f18a411db4f3657fc3ee971a0 WHIRLPOOL d056251d07bd855fe566b17a45b912d64bca1704fbeb39ef4f3713e084129ee9b01ee6b102597c8e804acb0b1e0c189e63ba8b7e19452165fa3594251a573033
diff --git a/media-gfx/cropgui/cropgui-0.1.1-r3.ebuild b/media-gfx/cropgui/cropgui-0.1.1-r3.ebuild
new file mode 100644
index 000000000000..5cd92de32b5a
--- /dev/null
+++ b/media-gfx/cropgui/cropgui-0.1.1-r3.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+PYTHON_COMPAT=( python2_7 )
+inherit eutils python-r1
+
+DESCRIPTION="GUI for lossless cropping of jpeg images"
+HOMEPAGE="http://emergent.unpythonic.net/01248401946"
+SRC_URI="http://media.unpythonic.net/emergent-files/01248401946/${PN}_${PV}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+DEPEND="${PYTHON_DEPS}"
+RDEPEND="${PYTHON_DEPS}
+ dev-python/pillow[${PYTHON_USEDEP}]
+ dev-python/pygobject:2[${PYTHON_USEDEP}]
+ dev-python/pygtk:2[${PYTHON_USEDEP}]
+"
+
+S="${WORKDIR}/${PN}"
+
+src_prepare() {
+ sed -i -e '/Encoding/d' \
+ -e '/Version/d' \
+ -e '/MimeType/s/$/&;/' \
+ -e '/Categories/s/Application;//' \
+ cropgui.desktop || die 'sed on cropgui.desktop failed'
+ # bug 471530
+ epatch "${FILESDIR}/${P}-PIL.patch"
+
+ epatch_user
+}
+
+install_cropgui_wrapper() {
+ python_domodule cropgtk.py cropgui_common.py filechooser.py cropgui.glade
+ make_wrapper "${PN}.tmp" "${PYTHON} $(python_get_sitedir)/${PN}/cropgtk.py"
+ python_newexe "${ED%/}/usr/bin/${PN}.tmp" "${PN}"
+ rm "${ED%/}/usr/bin/${PN}.tmp" || die
+}
+
+src_install() {
+ python_moduleinto "${PN}"
+ python_foreach_impl install_cropgui_wrapper
+
+ domenu "${PN}.desktop"
+ doicon "${PN}.png"
+}
diff --git a/media-gfx/cropgui/cropgui-0.2-r1.ebuild b/media-gfx/cropgui/cropgui-0.2-r1.ebuild
new file mode 100644
index 000000000000..89341edb6d18
--- /dev/null
+++ b/media-gfx/cropgui/cropgui-0.2-r1.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python2_7 )
+inherit eutils python-r1
+
+DESCRIPTION="GUI for lossless cropping of jpeg images"
+HOMEPAGE="http://emergent.unpythonic.net/01248401946"
+SRC_URI="https://github.com/jepler/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+DEPEND="${PYTHON_DEPS}"
+RDEPEND="${PYTHON_DEPS}
+ dev-python/pillow[${PYTHON_USEDEP}]
+ dev-python/pygobject:2[${PYTHON_USEDEP}]
+ dev-python/pygtk:2[${PYTHON_USEDEP}]
+"
+
+src_prepare() {
+ sed -i -e '/Encoding/d' \
+ -e '/Version/d' \
+ -e '/MimeType/s/$/&;/' \
+ -e '/Categories/s/Application;//' \
+ cropgui.desktop || die 'sed on cropgui.desktop failed'
+ # bug 471530
+ eapply "${FILESDIR}/${P}-PIL.patch"
+ # bug 616708
+ eapply "${FILESDIR}/${P}-tobytes.patch"
+
+ eapply_user
+}
+
+install_cropgui_wrapper() {
+ python_domodule cropgtk.py cropgui_common.py filechooser.py cropgui.glade
+ make_wrapper "${PN}.tmp" "${PYTHON} $(python_get_sitedir)/${PN}/cropgtk.py"
+ python_newexe "${ED%/}/usr/bin/${PN}.tmp" "${PN}"
+ rm "${ED%/}/usr/bin/${PN}.tmp" || die
+}
+
+src_install() {
+ python_moduleinto "${PN}"
+ python_foreach_impl install_cropgui_wrapper
+
+ domenu "${PN}.desktop"
+ doicon "${PN}.png"
+}
diff --git a/media-gfx/cropgui/cropgui-9999.ebuild b/media-gfx/cropgui/cropgui-9999.ebuild
new file mode 100644
index 000000000000..1d83737474c9
--- /dev/null
+++ b/media-gfx/cropgui/cropgui-9999.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+EGIT_REPO_URI="https://github.com/jepler/cropgui.git"
+PYTHON_COMPAT=( python2_7 )
+inherit eutils git-r3 python-r1
+
+DESCRIPTION="GUI for lossless cropping of jpeg images"
+HOMEPAGE="http://emergent.unpythonic.net/01248401946"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS=""
+
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+DEPEND="${PYTHON_DEPS}"
+RDEPEND="${PYTHON_DEPS}
+ dev-python/pillow[${PYTHON_USEDEP}]
+ dev-python/pygobject:2[${PYTHON_USEDEP}]
+ dev-python/pygtk:2[${PYTHON_USEDEP}]
+"
+
+install_cropgui_wrapper() {
+ python_domodule cropgtk.py cropgui_common.py filechooser.py cropgui.glade
+ make_wrapper "${PN}.tmp" "${PYTHON} $(python_get_sitedir)/${PN}/cropgtk.py"
+ python_newexe "${ED%/}/usr/bin/${PN}.tmp" "${PN}"
+ rm "${ED%/}/usr/bin/${PN}.tmp" || die
+}
+
+src_install() {
+ python_moduleinto "${PN}"
+ python_foreach_impl install_cropgui_wrapper
+
+ domenu "${PN}.desktop"
+ doicon "${PN}.png"
+}
diff --git a/media-gfx/cropgui/files/cropgui-0.1.1-PIL.patch b/media-gfx/cropgui/files/cropgui-0.1.1-PIL.patch
new file mode 100644
index 000000000000..88f7ffbfed81
--- /dev/null
+++ b/media-gfx/cropgui/files/cropgui-0.1.1-PIL.patch
@@ -0,0 +1,29 @@
+Только в cropgui: cropgui-0.1.1-PIL.patch
+diff -ru cropgui.orig/cropgui_common.py cropgui/cropgui_common.py
+--- cropgui.orig/cropgui_common.py 2009-07-24 06:15:12.000000000 +0400
++++ cropgui/cropgui_common.py 2013-05-28 21:48:24.000000000 +0400
+@@ -13,9 +13,9 @@
+ # You should have received a copy of the GNU General Public License
+ # along with this program; if not, write to the Free Software
+ # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+-import Image
+-import ImageFilter
+-import ImageDraw
++from PIL import Image
++from PIL import ImageFilter
++from PIL import ImageDraw
+ import subprocess
+ import threading
+ import Queue
+diff -ru cropgui.orig/filechooser.py cropgui/filechooser.py
+--- cropgui.orig/filechooser.py 2009-07-24 06:15:12.000000000 +0400
++++ cropgui/filechooser.py 2013-05-28 21:50:16.000000000 +0400
+@@ -8,7 +8,7 @@
+ import gobject
+
+ import os
+-import Image
++from PIL import Image
+
+ HIGH_WATER, LOW_WATER = 25, 5
+ image_cache = {}
diff --git a/media-gfx/cropgui/files/cropgui-0.2-PIL.patch b/media-gfx/cropgui/files/cropgui-0.2-PIL.patch
new file mode 100644
index 000000000000..3c1e91847f8e
--- /dev/null
+++ b/media-gfx/cropgui/files/cropgui-0.2-PIL.patch
@@ -0,0 +1,26 @@
+--- cropgui.orig/cropgui_common.py 2016-01-28 12:54:47.424636620 +0300
++++ cropgui/cropgui_common.py 2016-01-28 12:55:15.176635735 +0300
+@@ -13,9 +13,9 @@
+ # You should have received a copy of the GNU General Public License
+ # along with this program; if not, write to the Free Software
+ # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+-import Image
+-import ImageFilter
+-import ImageDraw
++from PIL import Image
++from PIL import ImageFilter
++from PIL import ImageDraw
+ import subprocess
+ import threading
+ import Queue
+--- cropgui.orig/filechooser.py 2016-01-28 12:55:26.505635374 +0300
++++ cropgui/filechooser.py 2016-01-28 12:55:32.649635178 +0300
+@@ -8,7 +8,7 @@
+ import gobject
+
+ import os
+-import Image
++from PIL import Image
+ import cropgui_common
+
+ def apply_rotation(rotation, image):
diff --git a/media-gfx/cropgui/files/cropgui-0.2-tobytes.patch b/media-gfx/cropgui/files/cropgui-0.2-tobytes.patch
new file mode 100644
index 000000000000..18405143badf
--- /dev/null
+++ b/media-gfx/cropgui/files/cropgui-0.2-tobytes.patch
@@ -0,0 +1,40 @@
+commit b664d1fefd7140ec4ec37b3b90a9007839029d8a
+Author: Tristan Stenner <ttstenner@gmail.com>
+Date: Fri Oct 9 08:40:04 2015 +0200
+
+ Try tostring(), fall back to tobytes()
+
+diff --git a/cropgtk.py b/cropgtk.py
+index c1156b0..135b6a8 100755
+--- a/cropgtk.py
++++ b/cropgtk.py
+@@ -170,7 +170,11 @@ class DragManager(DragManagerBase):
+ rendered = self.rendered()
+ rendered = rendered.convert('RGB')
+ i.set_size_request(*rendered.size)
+- pixbuf = gtk.gdk.pixbuf_new_from_data(rendered.tostring(),
++ try:
++ image_data = rendered.tostring()
++ except:
++ image_data = rendered.tobytes()
++ pixbuf = gtk.gdk.pixbuf_new_from_data(image_data,
+ gtk.gdk.COLORSPACE_RGB, 0, 8,
+ rendered.size[0], rendered.size[1], 3*rendered.size[0])
+
+diff --git a/filechooser.py b/filechooser.py
+index f2f8122..a039d74 100644
+--- a/filechooser.py
++++ b/filechooser.py
+@@ -49,7 +49,11 @@ def update_preview_cb(file_chooser, preview):
+ i.thumbnail((PREVIEW_SIZE, PREVIEW_SIZE), Image.ANTIALIAS)
+ i = i.convert('RGB')
+ i = apply_rotation(r, i)
+- pixbuf = gtk.gdk.pixbuf_new_from_data(i.tostring(),
++ try:
++ image_data = i.tostring()
++ except:
++ image_data = i.tobytes()
++ pixbuf = gtk.gdk.pixbuf_new_from_data(image_data,
+ gtk.gdk.COLORSPACE_RGB, 0, 8, i.size[0], i.size[1],
+ i.size[0]*3)
+ preview.set_from_pixbuf(pixbuf)
diff --git a/media-gfx/cropgui/metadata.xml b/media-gfx/cropgui/metadata.xml
new file mode 100644
index 000000000000..0f64e749a72a
--- /dev/null
+++ b/media-gfx/cropgui/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>zlogene@gentoo.org</email>
+ <name>Mikle Kolyada</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">jepler/cropgui</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/media-gfx/crwinfo/Manifest b/media-gfx/crwinfo/Manifest
new file mode 100644
index 000000000000..b4e45420c0cd
--- /dev/null
+++ b/media-gfx/crwinfo/Manifest
@@ -0,0 +1,6 @@
+AUX crwinfo-0.2.patch 991 SHA256 14062a05b638d0713fd7b8d0064ed7ef82957364187dfa8529519b6279b31799 SHA512 b3ab95be8605d470258e16fece5b5a8fd70c7acc5dfc369f6dc4a6819a44f96c513319311198fb6a1e41b2a3e0bc931ddde2e66566568628f271f31ecc2872af WHIRLPOOL 263543eeb472c3c8bdbb9b437fa1f317c40b2f11606c238770dfd88222fa599b11f1182550bb0caba340b253ed5f1bf64d0ed4780b52c00f11e3765e3b4eb641
+DIST CRWInfo-0.2.tar.gz 10717 SHA256 a7b0572e96cfa895d2ca04c10618514f7c86c038332d900dcf5715463c851478 SHA512 54e386266570460dd43f5a6d4b0eea7d6c37d9327dca8ffc1fa10462f97e23fc080404159723ce6558c3dc6c77eccba6ede628097d95f699a47f57a114e1eb0a WHIRLPOOL 104d4e023e09bf67674461a278dbe408d283cd159256d416c504cc40f8adef376f44162e46826610d68f6ae23bfeb81f373e6b7a861e1ff21ea9c4a15de0f17f
+EBUILD crwinfo-0.2.ebuild 720 SHA256 760d4d44e731068b615a2f2a09e229386c5fa3752f68d03abd3e5d2d55efee8f SHA512 637d8308bdcd09bd842a49093e831a97219b469f6456c490759816b5582bc294d5d944171e84c73d14f8f8210afd880bbab55031220f4e929657e17f81d5b15b WHIRLPOOL 71798c0c6a5f4e7ee102514e6b4f9033748e81a6990f45f4f622e34ab24fe2789dbe2e2d31dbd80b68e3dce0645be870750c763daac48710d261962c750dd3d0
+MISC ChangeLog 2545 SHA256 8a8aac7b72d1c2db52cb26c49acaaaecbc063fabebf8e1f732c96a42d3696ad3 SHA512 d136ffe4ebae64d575f3f8ed72aa7c2ef63d5f8ac95bcd2691ac742e8163f9d2fbf1bc1b64fa5a6c40a1a0556074501de3aec51c8ee2c8ac287e0f51b828fac3 WHIRLPOOL 61701a390a2731978e6a57328f0ca392cbceac66591ca8d9cb017e96da57f71b9341ad116ea3712c6e7fb61d86b1d0a5499dde60098409539b4bf1a3fe56393b
+MISC ChangeLog-2015 831 SHA256 200ace02ad11d10d88c06e40e5f10e96800c0c8d54aab13acdeaefd4f6495279 SHA512 504aeb4af2164cc73b8298d184f7d9c1c3b7d84044c34c09e76f0e874f2b166b26f8146dc715592a0f7d72d28292049a52876301aa7598d8f6e426f2bf7fa76c WHIRLPOOL ea483d1a9f94ab1d97cc752e6540a43c23b5b668eb024e7398459aeb90998b1aa1da08d37d9cc40ed74dc2a7edc6408f93d75e004a628ad409107b5653a8647e
+MISC metadata.xml 369 SHA256 5276b8995c8701ea172b3ea1f60f11dad5743c263f1658d4a28f7094b8493342 SHA512 ee3b3a975b809e4433e7a6242a788f016abd75a969c6898ed07861d38b609d11d5cc1997c19165128760ed3f99022dac64f3f63cd2281ff86bc78023d7c40709 WHIRLPOOL 101efb389f9ce4da0e8e97e431c27933bfe48138f6034ba44808bd1e06e0d63672511a24fb43983913fe83c8dad7b88f1eecedede8cba3bfae797db96acd4206
diff --git a/media-gfx/crwinfo/crwinfo-0.2.ebuild b/media-gfx/crwinfo/crwinfo-0.2.ebuild
new file mode 100644
index 000000000000..e3c6aed17fe3
--- /dev/null
+++ b/media-gfx/crwinfo/crwinfo-0.2.ebuild
@@ -0,0 +1,30 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+
+inherit eutils toolchain-funcs
+
+DESCRIPTION="Canon raw image (CRW) information and thumbnail extractor"
+HOMEPAGE="http://freshmeat.net/projects/crwinfo/"
+SRC_URI="http://neuemuenze.heim1.tu-clausthal.de/~sven/crwinfo/CRWInfo-${PV}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="x86 ppc sparc amd64 alpha ia64 hppa ppc64"
+IUSE=""
+
+S="${WORKDIR}/CRWInfo-${PV}"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}.patch
+ sed \
+ -e '/gcc/s:^.*$:\t$(CC) $(CFLAGS) -Wall -c crwinfo.c\n\t$(CC) $(LDFLAGS) -o crwinfo crwinfo.o:g' \
+ -i Makefile || die
+ tc-export CC
+}
+
+src_install() {
+ dobin crwinfo
+ dodoc README spec
+}
diff --git a/media-gfx/crwinfo/files/crwinfo-0.2.patch b/media-gfx/crwinfo/files/crwinfo-0.2.patch
new file mode 100644
index 000000000000..18170b10d71e
--- /dev/null
+++ b/media-gfx/crwinfo/files/crwinfo-0.2.patch
@@ -0,0 +1,17 @@
+--- crwinfo.c.orig 2002-07-30 11:17:03.000000000 -0600
++++ crwinfo.c 2005-01-21 15:24:54.256888228 -0700
+@@ -95,10 +95,10 @@
+ fprintf( stderr, "-m show misc. information (whitepoint, AF mode etc)\n" );
+ fprintf( stderr, "-f show flash information (flash mode etc)\n" );
+ fprintf( stderr, "-cf show custom function settings\n" );
+- fprintf( stderr, "-t extract the thumbnail to the optional filename.
+- If no filename for the thumbnail is given, the
+- name of the CRW-file is used with a .jpg
+- extension\n" );
++ fprintf( stderr, "-t extract the thumbnail to the optional filename. \n" );
++ fprintf( stderr, " If no filename for the thumbnail is given, the\n" );
++ fprintf( stderr, " name of the CRW-file is used with a .jpg\n" );
++ fprintf( stderr, " extension\n" );
+ fprintf( stderr, "-x show experimental information (don't rely on it)\n" );
+ exit(0);
+ }
diff --git a/media-gfx/crwinfo/metadata.xml b/media-gfx/crwinfo/metadata.xml
new file mode 100644
index 000000000000..4e06ffe952af
--- /dev/null
+++ b/media-gfx/crwinfo/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <!-- maintainer-needed -->
+ <longdescription lang="en">
+ Utility to extract thumbnails and information from Canon raw (CRW)
+ files.
+ </longdescription>
+ <upstream>
+ <remote-id type="freshmeat">crwinfo</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/media-gfx/cthumb/Manifest b/media-gfx/cthumb/Manifest
new file mode 100644
index 000000000000..1ae85b8ecc29
--- /dev/null
+++ b/media-gfx/cthumb/Manifest
@@ -0,0 +1,5 @@
+DIST cthumb-4.2.tar.gz 438163 SHA256 d31536549d5aad50a2620c87729f24efcbeda1f5e4930c5f07958b77fd1058aa SHA512 c64e93651e1d870437ebd56a2aed1a63be1bf132e7544384f27fbb3ffa42b5396d469f719bee47ba0da8809a6707e78c72b80f372e84dca1f15908ff8987c6eb WHIRLPOOL 89dc48b94022ab1da0526a3de98c0fd3cc0a021bd54b8c8c472a86106127e791579fc6c03866dc2a822124619a3b6bbe0eca7290eb8606112889b4440e9d7fb3
+EBUILD cthumb-4.2.ebuild 699 SHA256 e99c93378b0a8294cb977e5dd2109654182352a30f158e7216625a800438341f SHA512 0a085d36e097324d2efab92fc5fe82b04d5d2202516a9fcca0b26550a4e9a8529b74fafefaca5d5d131dc289a621f8c49fdc14fb1bfdf2cdb13958243a872cb0 WHIRLPOOL b0a0a6292688b1da49c9e8bc6c460648e1e08a368dfbb463bc56f10d26362b9dd0bf905b89727e2d1d5004202b178ff6cdc800ddf8e53c9825c88e4dbe538ecc
+MISC ChangeLog 2516 SHA256 6e737ec69dfdcbf22ee9ac6e7dc02e44884bea82364ab0f8c28164911b4edeba SHA512 d6d3d3816e1e4a60e3f3c79b4d23af44373f1371fe74388d334635d4006ec24ff3801b8c33bbe83a9bbcd4f08c75555a9280f854b366a1bf5444c0f1a3ee31cc WHIRLPOOL bb9d482f08e0026382568cc835c5ec3d8764e53fe20cef0ea8ba7847334a0ada7ca3708e362a7b0a4211fc15b930b0806f0ad9012e98e3233b2917357f5df21d
+MISC ChangeLog-2015 1148 SHA256 b76425c667bfa142c5655614032b4aa6dbf183771c6dc38359d7db39d1f953b6 SHA512 0673b984a8ef96b988fccd2ac575e83531d254c70555bf51ddf8d0f04b8623423bdbf7bc7121f2a5328269f55c6c4cf9b61c37ac67f3053789174f2a95ab4d98 WHIRLPOOL 475e395704ec423619c79a525c5892edbe5094d5491978d9ad170e834758a789021c1918508b78f320d11299894086d791efbb7894f624de2fca6ce79eb39c21
+MISC metadata.xml 243 SHA256 6a7624fa71636a379521d63c39aa94b2ab3153407bf325cca2b96472a9dd2776 SHA512 6144265a0b25757c47b92f6e9525d88a06d91619a14f5c41efcfccbfcad16ed85f36308965cf483773ac5bf8e62c68d83e1442e3de31dee0d5688c2cbee3e38b WHIRLPOOL 0f0e3d6e18667884bfa21a974344ee8c3eb23429c1396bcaa52224e3606f196170e913c91c86c044998b345c68b6a40226b7189efb2100eb00ee151dfa6395d7
diff --git a/media-gfx/cthumb/cthumb-4.2.ebuild b/media-gfx/cthumb/cthumb-4.2.ebuild
new file mode 100644
index 000000000000..b95bafecc4d9
--- /dev/null
+++ b/media-gfx/cthumb/cthumb-4.2.ebuild
@@ -0,0 +1,31 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+DESCRIPTION="Create a statical HTML Image gallery with captions for each image"
+
+HOMEPAGE="http://cthumb.sourceforge.net"
+SRC_URI="mirror://sourceforge/cthumb/${P}.tar.gz"
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="alpha ~amd64 ppc ~sparc x86"
+IUSE=""
+
+DEPEND="dev-perl/URI
+ dev-perl/HTML-Parser
+ media-libs/netpbm"
+
+src_compile() {
+ ./configure \
+ --host=${CHOST} \
+ --prefix=/usr \
+ --infodir=/usr/share/info \
+ --mandir=/usr/share/man || die "./configure failed"
+}
+
+src_install () {
+ make \
+ prefix=${D}/usr \
+ mandir=${D}/usr/share/man \
+ infodir=${D}/usr/share/info \
+ install || die
+}
diff --git a/media-gfx/cthumb/metadata.xml b/media-gfx/cthumb/metadata.xml
new file mode 100644
index 000000000000..9c8e359631d7
--- /dev/null
+++ b/media-gfx/cthumb/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-needed -->
+ <upstream>
+ <remote-id type="sourceforge">cthumb</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/media-gfx/cura/Manifest b/media-gfx/cura/Manifest
new file mode 100644
index 000000000000..79be623ded74
--- /dev/null
+++ b/media-gfx/cura/Manifest
@@ -0,0 +1,15 @@
+AUX cura-0.15.04.4-nopower.patch 3209 SHA256 a67e9c8561f8cc85b0fa58b13acb38eced5ef3c02205d3b8c30f9a7cfade19d2 SHA512 6cad0f33f87b8b5540a6ac2237ef8c734de36f86bea523e61de3f2d60c5e0beba93ed9535b06bb863a7270abf590e71d494c2a59ba898c41035478e5ac189d8f WHIRLPOOL b8b0eac2a2450e948f527799655e0411958580f34c5d3bf8dc896b3514698c3faed7b7774de0e5a19fd4a89ab8808a76c65bf2b60e2b20524d2b76ddafa4de8b
+AUX cura-2.1.0_beta-fix-install-paths.patch 1592 SHA256 d39f493ab19c335708eb5994658d9a717ada49cc9dbac2dff474d220a8984ee2 SHA512 b9e7c110b953a2ee233b34d0cb27d39bcd24516cef024b82bf6d0275684f8eebe1107e2e23135a72da6d03ca4dd9c0ffacab2c2d5fd88d0447235f1b99e5b432 WHIRLPOOL 3c6aa639db99df786ab99635e20004b39c351142b84e0adbc9653178a01708a8752a1b6b1c58ca78507e998f51145413a20d1a4de46c60e9494b6611eb3b4939
+AUX cura-2.3.1-fix-install-paths.patch 1621 SHA256 044b3040eb31135fbcfbf27d17db385aac01c7ec9f18c45d36b0e0e6faf171e3 SHA512 a83e8d59d6d6d283512e80388b002dcb9b83c180d369dc775b95c693e50261f687fe1894d2413d357995efaf3e40eb17dc7305afcf0f475adb689a336fbbd978 WHIRLPOOL 0449b983488f99f8c7b548a5d81dc52e391a156b6513bf12a31bda63f40cae125570e864bebadb2b18727a0cf84923ba3b95539a0d68ba6528f7001b34969352
+DIST cura-0.15.04.4.tar.gz 7265105 SHA256 9bce9cec7578792f7008a557930d16216ef97041a62071bb4e2b2a89638f1f54 SHA512 6d386c23731e2e02bc3b15d02aed1810622a57af2727325db29feb48eba8da0758925f3bc11fc6433a4b376706f66e6b00bfb3af2cac24cb184899848e11b1bd WHIRLPOOL cafd4bc3589214c3fc792c770eaa3f3590018f83ae82444c4f495245ab900748edabccb5a6518d9bd5b26295d7a953e3e60295b3baa90baf6abfe8a75012fbf2
+DIST cura-0.15.04.5_rc5.tar.gz 7266640 SHA256 12d72b1ece64bfc00909866e725f39867c9d82abdd793892df210afd35014c89 SHA512 cafb2b6883838e3e427e3da0388a6cd93d666052d9029eeb98bafad7970c805c271a7599fbdc493164d790f101b92bbd511479d2fc9f91c64f73677c6cee0a2f WHIRLPOOL b6ed8e0f9e17ee4d2c1eae3a8f8a0293529f6a4b362445d9296b47247aab91d521c64541ea9110c8b169eb01661f3cae30583f8f959d4d7bc0a8c255455db58b
+DIST cura-2.1.0_beta.tar.gz 19784684 SHA256 b81f09307968475e33b03199aaf968e25d2b37fc7db9777b95c03053b1836f83 SHA512 9e4b4f0a93098f9cadf7d8969725e17ac549b6caced602a3d088e65068ab7fcda5a18e7e6f293434e7042360f0e37d87074d82d8884370bfbfc10e07a4212ce2 WHIRLPOOL 19ae138fa4b7c840ffc2d61779a08d48624bc6078fa83a6bec280d1a725e93bad6682d9f21a0cbe3ee4a4343a47a7e6f58d3fd559804f278241c7a5bb7d3cf89
+DIST cura-2.3.1.tar.gz 8216743 SHA256 4542a5925b503f5416ebb8541fccb65d5c08164febafefdacb05b528c4cf73a8 SHA512 875c55a1b75f9e8c5bc6faac8f865a17ee371e973e3acf2528c09ee18bd517acbdde066f292c506ed67654119fdfeac86e28b41887807b767225e0ee6054301f WHIRLPOOL dfa7d3dac9f53d8682a4761900665598b7b75b08afd283a77f43351709eb2639c44b6694d626c17be98544acdceec50b8f6409fdb69efd1bb7d4a5f945e16cba
+DIST cura-2.6.0.tar.gz 10007980 SHA256 049617e8025a9e74ad4e733884a9c04319882d89e6ab346a72147995d43b44b5 SHA512 c437b284292682821d3e7c6fe67dfbf9e397588a604d0608fcc89019d02529720a929881d1ad0531fedba2f4b3efc98c1890624a4261dcccacbcfa24246d6e54 WHIRLPOOL 099378e95d0bd28f4df8e341f078a3f86c887c1799d4cfa84fa7d01cc50a9f9aa857a59f7c1d3f7ae240d11268eb2e82e6031f9390b83e97805d410ff4868975
+EBUILD cura-0.15.04.4.ebuild 1800 SHA256 268c9166d8b7eb24c179f1abd644815b720baef90470d03a8a855db41af715de SHA512 ecfe98bffb50ce99c67bf8744bcc9737319d4a1d2473fd61ca7c35a2fcec4ac17cb7f9344b89fb2e903419a53a615a01657890b243fae99b2910148e00929483 WHIRLPOOL 2574a98ba81c7e36d76a4e4f3b4edc652df4765fe0e28e90292ad346b6998bf7128627e123638646ad2372cbf02313c909b8146cd609f4cc844000da238d4d76
+EBUILD cura-0.15.04.5_rc5.ebuild 1833 SHA256 d791c70c4abc51d8efe2bb5817592231f72f72559dfc8ee1b4b51d549d2f78fc SHA512 91339949621eda961198b4975c82475654af3d8fd8e51bb1ea2020915af354569d9e6cc58bdec5e39222df51fe4c524d04cfd5431134533c8fcad1799291ab1a WHIRLPOOL a0c84baa2ec6c1ce465f4bb2e5e2fb5ca029a94a02827b0bd381b3a1554b63d069fe78e1779b34b0b7dc8f40e7718e15e9fab79faf56e2074002efecd4eecd28
+EBUILD cura-2.1.0_beta.ebuild 1404 SHA256 364eafd8456a2a76519e423cd5b6e49030f6f271cfd079b29207054d30b074d3 SHA512 061231ebd90d9eafc0c625e137f48145971a44c71a8791b858d78bb2897b53052beece1fab6b306addea222135e5cff62fdfd95307569b8e6cb7655f86b3ebe9 WHIRLPOOL 081ebb20e3ef1d0ed9da222b86e5db2faa3da9ce2ea3651e7a4168befd00c389d2d240d1c5699364e2fecda815af33b0632e9948b56debd2ae3555ad1bbf012e
+EBUILD cura-2.3.1.ebuild 1438 SHA256 aa4e9b802bd746f28d0aae259db684ac56bb20cf65c804f08b782d7eafab3afc SHA512 4f018a8141afe96380643f5c42e232c723fe24a436051d5ea2415cb5c9b3cfdb43a282a923240174cb7c16da4e1b11c719deda36b43727a5119e3a970d5a6dcf WHIRLPOOL 1572e16fdc15bd4e7a817a79f7c2a55a630a5eb0da9ec6de404b2d8a202d3d2775f440cb32304bb60786f66ca0af2e9bad7b1ac9a2b969a4a9eac25895ca8b4a
+EBUILD cura-2.6.0.ebuild 1441 SHA256 dd6d9909eee48b2d8db890498fa1190dfe0796d7d3a57114b77a91ce9160b0e4 SHA512 b6323fb0e21608662600bd452413acc07cd8f6ade9c61e3a3e2cbeea675581a7e4a39071898518df846d46fa106753657789bdd2654941e1426a3e3b07f4e43a WHIRLPOOL 095cd6b0e2686b7aef5bd0af671cebabb258c639eb4bde7e8a4bd2d5b48a4fedc29cbb46780a5e84be7622755db8a758fc6fb36cc73bcea41ba50170cceb791e
+MISC ChangeLog 1891 SHA256 13b32a67c78fc4c8348ce7b5a4dd59d4a4c5e41d016e40f69ab2b2be857434b0 SHA512 7401a4f36c1cd6244a75d15843aa533ae246298a74f046bc328f025243f3b3527a5022de4c12bb8224122f566abb7d5f78a3d072aecb322769c4af30b8795298 WHIRLPOOL ecab0ac1569feee564a41d185180d58e46f82962877091d849a7e26909c2c948ca9803e35080df36429df8d74e0c316cb218196ea12f7ae3816f3dd36ed117a0
+MISC metadata.xml 706 SHA256 17c629d10dc7eab0b94d3af562cff517fc3490074a8212e52f75849a842b4ecc SHA512 8cb42b546e53619a693473ce322e0cdf7360de149d665ef91497a0a75b275013bab234bd0d2be6ce73855881e0476c1885a898f1eb5d9e3bec461cb04279ccf5 WHIRLPOOL 53306fffa74fb119bdd5a2b1b9aeeed29247009dae1ed057d766206f9885dabe0b98ad622fff1af9ed929b73a4a52902d46957f715060204748dcad93bebe4ca
diff --git a/media-gfx/cura/cura-0.15.04.4.ebuild b/media-gfx/cura/cura-0.15.04.4.ebuild
new file mode 100644
index 000000000000..59f9fbf4f8b3
--- /dev/null
+++ b/media-gfx/cura/cura-0.15.04.4.ebuild
@@ -0,0 +1,74 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python2_7 )
+
+inherit eutils fdo-mime gnome2-utils python-single-r1
+
+MY_PV=${PV#0.}
+MY_PN=Cura
+
+DESCRIPTION="A mesh slicer written in python to produce gcode for 3D printers"
+HOMEPAGE="https://github.com/daid/Cura"
+SRC_URI="https://github.com/daid/${MY_PN}/archive/${MY_PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="AGPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+RDEPEND="${PYTHON_DEPS}
+ dev-python/wxpython:3.0[opengl,${PYTHON_USEDEP}]
+ >=dev-python/numpy-1.6.2[${PYTHON_USEDEP}]
+ >=dev-python/pyopengl-3.0.2[${PYTHON_USEDEP}]
+ >=dev-python/pyserial-2.6[${PYTHON_USEDEP}]
+ >=media-gfx/curaengine-${PV}
+"
+DEPEND="${RDEPEND}
+ >=dev-python/setuptools-0.6.34[${PYTHON_USEDEP}]"
+
+PATCHES=( "${FILESDIR}/${P}-nopower.patch" )
+S="${WORKDIR}/${MY_PN}-${MY_PV}"
+
+src_prepare() {
+ cat > "${T}"/cura <<- CURAEOF || die
+ #!/bin/sh
+ PYTHONPATH="\$PYTHONPATH:${EPREFIX}/usr/share/cura/" "${PYTHON}" "${EPREFIX}/usr/share/cura/cura.py" "\$@"
+ CURAEOF
+
+ default
+}
+
+src_install() {
+ insinto /usr/share/cura
+ doins -r Cura resources plugins scripts/linux/cura.py
+ newicon "${S}/resources/images/c.png" "cura.png"
+ echo ${PV} > "${ED}"usr/share/cura/version || die
+ dobin "${T}"/cura
+
+ python_optimize $(find "${ED}" -name '*.py' -exec dirname \{\} + | sort -u)
+}
+
+pkg_preinst() {
+ gnome2_icon_savelist
+
+ make_desktop_entry cura \
+ Cura \
+ "${EPREFIX}/usr/share/pixmaps/cura.png" \
+ "Graphics;3DGraphics;Engineering;Development"
+}
+
+pkg_postinst() {
+ fdo-mime_desktop_database_update
+ fdo-mime_mime_database_update
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ fdo-mime_desktop_database_update
+ fdo-mime_mime_database_update
+ gnome2_icon_cache_update
+}
diff --git a/media-gfx/cura/cura-0.15.04.5_rc5.ebuild b/media-gfx/cura/cura-0.15.04.5_rc5.ebuild
new file mode 100644
index 000000000000..ac952093c028
--- /dev/null
+++ b/media-gfx/cura/cura-0.15.04.5_rc5.ebuild
@@ -0,0 +1,74 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python2_7 )
+inherit eutils fdo-mime gnome2-utils python-single-r1
+
+MY_PV=${PV#0.}
+MY_PV=${MY_PV/_rc/-RC}
+MY_PN=Cura
+
+DESCRIPTION="A mesh slicer written in python to produce gcode for 3D printers"
+HOMEPAGE="https://github.com/daid/Cura"
+SRC_URI="https://github.com/daid/${MY_PN}/archive/${MY_PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="AGPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+RDEPEND="${PYTHON_DEPS}
+ dev-python/wxpython:3.0[opengl,${PYTHON_USEDEP}]
+ >=dev-python/numpy-1.6.2[${PYTHON_USEDEP}]
+ >=dev-python/pyopengl-3.0.2[${PYTHON_USEDEP}]
+ >=dev-python/pyserial-2.6[${PYTHON_USEDEP}]
+ >=media-gfx/curaengine-${PV}
+"
+DEPEND="${RDEPEND}
+ >=dev-python/setuptools-0.6.34[${PYTHON_USEDEP}]"
+
+PATCHES=( "${FILESDIR}/${PN}-0.15.04.4-nopower.patch" )
+S="${WORKDIR}/${MY_PN}-${MY_PV}"
+
+src_prepare() {
+ cat > "${T}"/cura <<- CURAEOF || die
+ #!/bin/sh
+ PYTHONPATH="\$PYTHONPATH:${EPREFIX}/usr/share/cura/" "${PYTHON}" "${EPREFIX}/usr/share/cura/cura.py" "\$@"
+ CURAEOF
+
+ default
+}
+
+src_install() {
+ insinto /usr/share/cura
+ doins -r Cura resources plugins scripts/linux/cura.py
+ newicon "${S}/resources/images/c.png" "cura.png"
+ echo ${PV} > "${ED}"usr/share/cura/version || die
+ dobin "${T}"/cura
+
+ python_optimize $(find "${ED}" -name '*.py' -exec dirname \{\} + | sort -u)
+}
+
+pkg_preinst() {
+ gnome2_icon_savelist
+
+ make_desktop_entry cura \
+ Cura \
+ "${EPREFIX}/usr/share/pixmaps/cura.png" \
+ "Graphics;3DGraphics;Engineering;Development"
+}
+
+pkg_postinst() {
+ fdo-mime_desktop_database_update
+ fdo-mime_mime_database_update
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ fdo-mime_desktop_database_update
+ fdo-mime_mime_database_update
+ gnome2_icon_cache_update
+}
diff --git a/media-gfx/cura/cura-2.1.0_beta.ebuild b/media-gfx/cura/cura-2.1.0_beta.ebuild
new file mode 100644
index 000000000000..9a28b902e3e9
--- /dev/null
+++ b/media-gfx/cura/cura-2.1.0_beta.ebuild
@@ -0,0 +1,64 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+PYTHON_COMPAT=( python3_4 python3_5 )
+inherit cmake-utils fdo-mime gnome2-utils python-single-r1
+
+MY_PN=Cura
+MY_PV=${PV/_beta}
+
+DESCRIPTION="A 3D model slicing application for 3D printing"
+HOMEPAGE="https://github.com/Ultimaker/Cura"
+SRC_URI="https://github.com/Ultimaker/${MY_PN}/archive/${MY_PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="AGPL-3+"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="+usb"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+RDEPEND="${PYTHON_DEPS}
+ dev-libs/libarcus:=[python,${PYTHON_USEDEP}]
+ dev-python/uranium[${PYTHON_USEDEP}]
+ usb? ( dev-python/pyserial[${PYTHON_USEDEP}] )
+ ~media-gfx/curaengine-${PV}"
+DEPEND="${RDEPEND}
+ sys-devel/gettext"
+
+S="${WORKDIR}/${MY_PN}-${MY_PV}"
+PATCHES=( "${FILESDIR}/${P}-fix-install-paths.patch" )
+DOCS=( README.md )
+
+src_configure() {
+ local mycmakeargs=(
+ -DPYTHON_SITE_PACKAGES_DIR="$(python_get_sitedir)" )
+ cmake-utils_src_configure
+}
+
+src_compile() {
+ cmake-utils_src_compile
+}
+
+src_install() {
+ cmake-utils_src_install
+ doicon icons/*.png
+ python_optimize "${D}${get_libdir}"
+}
+
+pkg_preinst() {
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ fdo-mime_desktop_database_update
+ fdo-mime_mime_database_update
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ fdo-mime_desktop_database_update
+ fdo-mime_mime_database_update
+ gnome2_icon_cache_update
+}
diff --git a/media-gfx/cura/cura-2.3.1.ebuild b/media-gfx/cura/cura-2.3.1.ebuild
new file mode 100644
index 000000000000..39b5a6d05144
--- /dev/null
+++ b/media-gfx/cura/cura-2.3.1.ebuild
@@ -0,0 +1,65 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+PYTHON_COMPAT=( python3_4 python3_5 )
+inherit cmake-utils fdo-mime gnome2-utils python-single-r1
+
+MY_PN=Cura
+MY_PV=${PV/_beta}
+
+DESCRIPTION="A 3D model slicing application for 3D printing"
+HOMEPAGE="https://github.com/Ultimaker/Cura"
+SRC_URI="https://github.com/Ultimaker/${MY_PN}/archive/${MY_PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="AGPL-3+"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="+usb"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+RDEPEND="${PYTHON_DEPS}
+ dev-libs/libarcus:=[python,${PYTHON_USEDEP}]
+ dev-python/uranium[${PYTHON_USEDEP}]
+ sci-libs/scipy[${PYTHON_USEDEP}]
+ usb? ( dev-python/pyserial[${PYTHON_USEDEP}] )
+ ~media-gfx/curaengine-${PV}"
+DEPEND="${RDEPEND}
+ sys-devel/gettext"
+
+S="${WORKDIR}/${MY_PN}-${MY_PV}"
+PATCHES=( "${FILESDIR}/${P}-fix-install-paths.patch" )
+DOCS=( README.md )
+
+src_configure() {
+ local mycmakeargs=(
+ -DPYTHON_SITE_PACKAGES_DIR="$(python_get_sitedir)" )
+ cmake-utils_src_configure
+}
+
+src_compile() {
+ cmake-utils_src_compile
+}
+
+src_install() {
+ cmake-utils_src_install
+ doicon icons/*.png
+ python_optimize "${D}${get_libdir}"
+}
+
+pkg_preinst() {
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ fdo-mime_desktop_database_update
+ fdo-mime_mime_database_update
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ fdo-mime_desktop_database_update
+ fdo-mime_mime_database_update
+ gnome2_icon_cache_update
+}
diff --git a/media-gfx/cura/cura-2.6.0.ebuild b/media-gfx/cura/cura-2.6.0.ebuild
new file mode 100644
index 000000000000..0f92d0ff5de6
--- /dev/null
+++ b/media-gfx/cura/cura-2.6.0.ebuild
@@ -0,0 +1,65 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+PYTHON_COMPAT=( python3_{4,5,6} )
+inherit cmake-utils fdo-mime gnome2-utils python-single-r1
+
+MY_PN=Cura
+MY_PV=${PV/_beta}
+
+DESCRIPTION="A 3D model slicing application for 3D printing"
+HOMEPAGE="https://github.com/Ultimaker/Cura"
+SRC_URI="https://github.com/Ultimaker/${MY_PN}/archive/${MY_PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="AGPL-3+"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="+usb"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+RDEPEND="${PYTHON_DEPS}
+ dev-libs/libarcus:=[python,${PYTHON_USEDEP}]
+ dev-python/uranium[${PYTHON_USEDEP}]
+ sci-libs/scipy[${PYTHON_USEDEP}]
+ usb? ( dev-python/pyserial[${PYTHON_USEDEP}] )
+ ~media-gfx/curaengine-${PV}"
+DEPEND="${RDEPEND}
+ sys-devel/gettext"
+
+S="${WORKDIR}/${MY_PN}-${MY_PV}"
+PATCHES=( "${FILESDIR}/${PN}-2.3.1-fix-install-paths.patch" )
+DOCS=( README.md )
+
+src_configure() {
+ local mycmakeargs=(
+ -DPYTHON_SITE_PACKAGES_DIR="$(python_get_sitedir)" )
+ cmake-utils_src_configure
+}
+
+src_compile() {
+ cmake-utils_src_compile
+}
+
+src_install() {
+ cmake-utils_src_install
+ doicon icons/*.png
+ python_optimize "${D}${get_libdir}"
+}
+
+pkg_preinst() {
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ fdo-mime_desktop_database_update
+ fdo-mime_mime_database_update
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ fdo-mime_desktop_database_update
+ fdo-mime_mime_database_update
+ gnome2_icon_cache_update
+}
diff --git a/media-gfx/cura/files/cura-0.15.04.4-nopower.patch b/media-gfx/cura/files/cura-0.15.04.4-nopower.patch
new file mode 100644
index 000000000000..975d1c507b33
--- /dev/null
+++ b/media-gfx/cura/files/cura-0.15.04.4-nopower.patch
@@ -0,0 +1,90 @@
+diff -Naur Cura-14.09/Cura/gui/printWindow.py Cura-14.09.new/Cura/gui/printWindow.py
+--- Cura-14.09/Cura/gui/printWindow.py 2014-09-19 05:44:21.000000000 -0400
++++ Cura-14.09.new/Cura/gui/printWindow.py 2014-12-08 16:36:18.410389600 -0500
+@@ -1,7 +1,6 @@
+ __copyright__ = "Copyright (C) 2013 David Braam - Released under terms of the AGPLv3 License"
+
+ import wx
+-import power
+ import time
+ import sys
+ import os
+@@ -319,18 +318,6 @@
+ self.sizer = wx.GridBagSizer(2, 2)
+ self.panel.SetSizer(self.sizer)
+
+- self.powerWarningText = wx.StaticText(parent=self.panel,
+- id=-1,
+- label=_("Your computer is running on battery power.\nConnect your computer to AC power or your print might not finish."),
+- style=wx.ALIGN_CENTER)
+- self.powerWarningText.SetBackgroundColour('red')
+- self.powerWarningText.SetForegroundColour('white')
+- self.powerManagement = power.PowerManagement()
+- self.powerWarningTimer = wx.Timer(self)
+- self.Bind(wx.EVT_TIMER, self.OnPowerWarningChange, self.powerWarningTimer)
+- self.OnPowerWarningChange(None)
+- self.powerWarningTimer.Start(10000)
+-
+ self.statsText = wx.StaticText(self.panel, -1, _("InfoLine from printer connection\nInfoLine from dialog\nExtra line\nMore lines for layout\nMore lines for layout\nMore lines for layout"))
+
+ self.connectButton = wx.Button(self.panel, -1, _("Connect"))
+@@ -341,7 +328,6 @@
+ self.errorLogButton = wx.Button(self.panel, -1, _("Error log"))
+ self.progress = wx.Gauge(self.panel, -1, range=1000)
+
+- self.sizer.Add(self.powerWarningText, pos=(0, 0), span=(1, 5), flag=wx.EXPAND|wx.BOTTOM, border=5)
+ self.sizer.Add(self.statsText, pos=(1, 0), span=(1, 5), flag=wx.LEFT, border=5)
+ self.sizer.Add(self.connectButton, pos=(2, 0))
+ #self.sizer.Add(self.loadButton, pos=(2,1))
+@@ -373,21 +359,6 @@
+ self._printerConnection.openActiveConnection()
+ preventComputerFromSleeping(True)
+
+- def OnPowerWarningChange(self, e):
+- type = self.powerManagement.get_providing_power_source_type()
+- if type == power.POWER_TYPE_AC and self.powerWarningText.IsShown():
+- self.powerWarningText.Hide()
+- self.panel.Layout()
+- self.Layout()
+- self.Fit()
+- self.Refresh()
+- elif type != power.POWER_TYPE_AC and not self.powerWarningText.IsShown():
+- self.powerWarningText.Show()
+- self.panel.Layout()
+- self.Layout()
+- self.Fit()
+- self.Refresh()
+-
+ def OnClose(self, e):
+ if self._printerConnection.hasActiveConnection():
+ if self._printerConnection.isPrinting():
+diff -Naur Cura-14.09/scripts/linux/cura.py Cura-14.09.new/scripts/linux/cura.py
+--- Cura-14.09/scripts/linux/cura.py 2014-09-19 05:44:21.000000000 -0400
++++ Cura-14.09.new/scripts/linux/cura.py 2014-12-08 16:37:44.840391177 -0500
+@@ -1,4 +1,4 @@
+-#!/usr/bin/python
++#!/usr/bin/python2
+
+ import os, sys
+
+@@ -9,7 +9,6 @@
+ import wx
+ import serial
+ import numpy
+- import power
+ except ImportError as e:
+ if e.message[0:16] == 'No module named ':
+ module = e.message[16:]
+@@ -20,12 +19,6 @@
+ module = 'pyserial'
+ print 'Requires ' + module
+
+- if module == 'power':
+- print "Install from: https://github.com/GreatFruitOmsk/Power"
+- else:
+- print "Try sudo easy_install " + module
+- print e.message
+-
+ exit(1)
+
+
diff --git a/media-gfx/cura/files/cura-2.1.0_beta-fix-install-paths.patch b/media-gfx/cura/files/cura-2.1.0_beta-fix-install-paths.patch
new file mode 100644
index 000000000000..ec07c0014cce
--- /dev/null
+++ b/media-gfx/cura/files/cura-2.1.0_beta-fix-install-paths.patch
@@ -0,0 +1,38 @@
+diff -Naur a/CMakeLists.txt b/CMakeLists.txt
+--- a/CMakeLists.txt 2016-04-12 17:39:03.000000000 +0200
++++ b/CMakeLists.txt 2016-04-16 13:30:27.339900905 +0200
+@@ -55,20 +55,31 @@
+
+ find_package(PythonInterp 3.4.0 REQUIRED)
+
++if(NOT PYTHON_SITE_PACKAGES_DIR)
++ if(APPLE OR WIN32)
++ set(PYTHON_SITE_PACKAGES_DIR lib/python${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}/site-packages CACHE
++STRING "Directory to install Python bindings to")
++ else()
++ set(PYTHON_SITE_PACKAGES_DIR lib/python${PYTHON_VERSION_MAJOR}/dist-packages CACHE
++STRING "Directory to install Python bindings to")
++ endif()
++endif()
++
+ install(DIRECTORY resources
+ DESTINATION ${CMAKE_INSTALL_DATADIR}/cura)
+ install(DIRECTORY plugins
+- DESTINATION lib/cura)
++ DESTINATION ${CMAKE_INSTALL_LIBDIR}/cura)
++
+ if(NOT APPLE AND NOT WIN32)
+ install(FILES cura_app.py
+ DESTINATION ${CMAKE_INSTALL_BINDIR}
+ PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE
+ RENAME cura)
+ install(DIRECTORY cura
+- DESTINATION lib/python${PYTHON_VERSION_MAJOR}/dist-packages
++ DESTINATION ${PYTHON_SITE_PACKAGES_DIR}
+ FILES_MATCHING PATTERN *.py)
+ install(FILES ${CMAKE_BINARY_DIR}/CuraVersion.py
+- DESTINATION lib/python${PYTHON_VERSION_MAJOR}/dist-packages/cura)
++ DESTINATION ${PYTHON_SITE_PACKAGES_DIR}/cura)
+ install(FILES cura.desktop
+ DESTINATION ${CMAKE_INSTALL_DATADIR}/applications)
+ install(FILES cura.sharedmimeinfo
diff --git a/media-gfx/cura/files/cura-2.3.1-fix-install-paths.patch b/media-gfx/cura/files/cura-2.3.1-fix-install-paths.patch
new file mode 100644
index 000000000000..8f503ce73488
--- /dev/null
+++ b/media-gfx/cura/files/cura-2.3.1-fix-install-paths.patch
@@ -0,0 +1,38 @@
+diff -urN Cura-2.3.1.orig/CMakeLists.txt Cura-2.3.1/CMakeLists.txt
+--- Cura-2.3.1.orig/CMakeLists.txt 2016-11-04 16:24:43.000000000 +0300
++++ Cura-2.3.1/CMakeLists.txt 2016-12-05 12:20:23.126904644 +0300
+@@ -27,20 +27,31 @@
+
+ find_package(PythonInterp 3.4.0 REQUIRED)
+
++if(NOT PYTHON_SITE_PACKAGES_DIR)
++ if(APPLE OR WIN32)
++ set(PYTHON_SITE_PACKAGES_DIR lib/python${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}/site-packages
++ CACHE STRING "Directory to install Python bindings to")
++ else()
++ set(PYTHON_SITE_PACKAGES_DIR lib/python${PYTHON_VERSION_MAJOR}/dist-packages
++ CACHE STRING "Directory to install Python bindings to")
++ endif()
++endif()
++
++
+ install(DIRECTORY resources
+ DESTINATION ${CMAKE_INSTALL_DATADIR}/cura)
+ install(DIRECTORY plugins
+- DESTINATION lib/cura)
++ DESTINATION ${CMAKE_INSTALL_LIBDIR}/cura)
+ if(NOT APPLE AND NOT WIN32)
+ install(FILES cura_app.py
+ DESTINATION ${CMAKE_INSTALL_BINDIR}
+ PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE
+ RENAME cura)
+ install(DIRECTORY cura
+- DESTINATION lib/python${PYTHON_VERSION_MAJOR}/dist-packages
++ DESTINATION ${PYTHON_SITE_PACKAGES_DIR}
+ FILES_MATCHING PATTERN *.py)
+ install(FILES ${CMAKE_BINARY_DIR}/CuraVersion.py
+- DESTINATION lib/python${PYTHON_VERSION_MAJOR}/dist-packages/cura)
++ DESTINATION ${PYTHON_SITE_PACKAGES_DIR}/cura)
+ install(FILES ${CMAKE_BINARY_DIR}/cura.desktop
+ DESTINATION ${CMAKE_INSTALL_DATADIR}/applications)
+ install(FILES cura.sharedmimeinfo
diff --git a/media-gfx/cura/metadata.xml b/media-gfx/cura/metadata.xml
new file mode 100644
index 000000000000..f06d3016b3d9
--- /dev/null
+++ b/media-gfx/cura/metadata.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>tomboy64@sina.cn</email>
+ <name>Matthew Brewer</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>3dprint@gentoo.org</email>
+ <name>Gentoo 3D Printer Project</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Gentoo Proxy Maintainers Project</name>
+ </maintainer>
+ <use>
+ <flag name="usb">Access 3D printers via USB</flag>
+ </use>
+ <upstream>
+ <remote-id type="github">Ultimaker/Cura</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/media-gfx/curaengine/Manifest b/media-gfx/curaengine/Manifest
new file mode 100644
index 000000000000..9b79f87a7462
--- /dev/null
+++ b/media-gfx/curaengine/Manifest
@@ -0,0 +1,11 @@
+AUX curaengine-0.15.04.6-cflags.patch 750 SHA256 ce8fe17e50d22b1f6e69b7a65255706d2040de700396dd43d82e9db1461f5fcc SHA512 2109a1d1b07b97769347af7af58921b6d234c4a4bdc8ab8ab1aa0a0f3aac08b3f5e9f99fbb99001e1d505cee89fff30be40a20ba853ee6a3cdcdd98f5ad7058c WHIRLPOOL 2f73c1ae495a9ea96347c3c52ae2659e86d7f22ab3e8c2f56b98c47abbd325716e65513d212ae8afecc5b55631eeaefe54d0733dbf7880d5f0e85593f0e876da
+DIST curaengine-0.15.04.6.tar.gz 107970 SHA256 4f2e3c5e74001b39cf5894a1e3f436a7724be0ae9ee30cd02bd2e3fd676ca4b1 SHA512 150e93dca08c57bc37af4c3232c0d18aed93347657d7261f89d7d8352d2774ac7a2a944c3b1efce432b507674f5e99981844823b792ec3fbe47799d2487e899d WHIRLPOOL bb37368709d5399ccb5241ff6b8108d7faffc7e8e8b3b155b28f51b2c4cb00fbafc1ea5c3e2198d007036069bc3cf311755c932ae2f01c2cbaa9caba8dada637
+DIST curaengine-2.1.0_beta.tar.gz 33322580 SHA256 0db6ca118637972546b04f672bc0cbecbe29b772a3586c7ca5441dc4ae7a7c85 SHA512 23b1e1116fad8e75354a92b8320a228a0b7acb03bcdffa175b8b6f47af0b8af099efdc3c75f840d172fc157d432a05c741a5028f3b8da1e7fc1dd8cf158115fb WHIRLPOOL 45520cf601b5ee2e2845e69f85d051f426317bc38c69b7d1dfe2632bb211b39d7286a747d9d0963e4d20d13c0def8d50dd69fdaf0a027187ec2ad9fd717c13fe
+DIST curaengine-2.3.1.tar.gz 712429 SHA256 a71cbfcc26714a49dcb4633086843ee6b03dcecc0f9b1a692df9b9055047daef SHA512 3d247048e51c7aca33b71d7d2382d673e7b4d547cb9fcbf639c9bbc801db067ea010c04a6fd4e88b87e00d9069f7a70019612148ae2b50095514b85078e71220 WHIRLPOOL 5a788c9bbf39427a3a0cc6d9666a10ed7b529deb0ca8d0e5de775e1ce0bb0d61cded0b03f5a94849302b2418290c9abbc21a16574967e64a63697d04b0e886c7
+DIST curaengine-2.6.0.tar.gz 828387 SHA256 6569fe4c20ef08649fcc947902a3d1525ccbdcf11719241b6e83e435a7b15ab7 SHA512 3991127ba3005b93f02ab72fd6c9208b153d5419145edb84f187e1fa32d03220001d8be958847360f7eaa75336ed44f3f7158cedea82d33450992145dfd0a0d9 WHIRLPOOL f27387f93013177ae11030db5cf0700b0a0081ad975f4af95e4b2762f214682cd84eb202e73e2f26a0a2de392ddac85543d9297bb6213080c0eca573007b5206
+EBUILD curaengine-0.15.04.6.ebuild 1023 SHA256 589e84770bc5db0f8a857420713faaa2481a0a9140fe6729aa9427c739b77545 SHA512 21dcd8a630df89c8c89e70fc21b3509b1e7972985ba72afcc961d90990e382fe9d07d63c8013315b6afe14650e8e58134d74123e5920a019cfd0293a4192485e WHIRLPOOL 56d715ef1beb2c0bba00d978454e4e6fc9fca49818b5dd12127cdceb67a67cffe6d65caa4db0404394bc933f3561af48df00ff10cb35a664ff66facd9a963313
+EBUILD curaengine-2.1.0_beta.ebuild 883 SHA256 6ec00922933a8fdabfdc8269714f8b5d6d82eac6f4121be12dc00a7de465ba91 SHA512 2ef7bc68b8e893ef30704fddcf4c0740e9ed74c320313acc9a7f88bfd4346731f2c140a3b2038d833ed9f5d43b2a32df6006c2da9629c887b7b0eab88d56a16f WHIRLPOOL c3a2a416e5eaa2769436e86376326707d9113115bf75180a52a943fcf0f43011f7dcb63c77c4298e0a9e92c70fe864c01207ed0b895db3ee802be1df8886b362
+EBUILD curaengine-2.3.1.ebuild 883 SHA256 6ec00922933a8fdabfdc8269714f8b5d6d82eac6f4121be12dc00a7de465ba91 SHA512 2ef7bc68b8e893ef30704fddcf4c0740e9ed74c320313acc9a7f88bfd4346731f2c140a3b2038d833ed9f5d43b2a32df6006c2da9629c887b7b0eab88d56a16f WHIRLPOOL c3a2a416e5eaa2769436e86376326707d9113115bf75180a52a943fcf0f43011f7dcb63c77c4298e0a9e92c70fe864c01207ed0b895db3ee802be1df8886b362
+EBUILD curaengine-2.6.0.ebuild 883 SHA256 8ebe529e88644a052b9a4eb4d02568d69a6a2b37af574765bc19f4e35195eec9 SHA512 8e29ef18e30c7c3383aabe2bfc98c3eaf2299d83a5824150baacad8a48257873705ce850a9a7cecb5f6669a9fcd15986e1411ad060137713d5253d8df670b623 WHIRLPOOL 68e496ddac42f12737aec0d09c57d31f4864f76000dd12c4d549acad50631da29f8b8390745c972a3a0ccfcdda7c88bfc537c4b19d530cc7516868b72baf2221
+MISC ChangeLog 861 SHA256 4c13695be59fc5dc373a866235478747980d4b0b65242b4be80763fe090942de SHA512 173c877c1146069e50c64d42da8d771549088ef2166ecc378deeae9017190c9e153314aa055c91a9a3c86449a7bec15ca3ad5aa1eefebb294cda1fa288c5669c WHIRLPOOL e775863c66a4db2001ffec53a530ab72ebcfb2ade9dbf79e1c43ecf7f87d14e0290586f32bd653a0e8e8728b8dfb411da77f9e698cf1eda66b8fe47e6c92fc93
+MISC metadata.xml 644 SHA256 ceb33b2c5646db00d75062ada22b578acfe6acd7b1ae53f1095d914bedc7ac94 SHA512 cc7f61f00c63d5f6cd9d0d6b6b688a4a59aeb1acd5b1da3ff17fb4550fcb72febdfd2c41f7c8a4c1fa324a171ff1cdb4fd215f33b67558f85c5e2b0159895529 WHIRLPOOL 033f1f168559067732854c5a8c994fd0a38f3b56888a4b7c06a899c0f6e96c3ba9a40204164fe954cf8e1ecca30bd9b462780c6b3a6dd1f3df9ee1f223314d64
diff --git a/media-gfx/curaengine/curaengine-0.15.04.6.ebuild b/media-gfx/curaengine/curaengine-0.15.04.6.ebuild
new file mode 100644
index 000000000000..b375b1bffa2e
--- /dev/null
+++ b/media-gfx/curaengine/curaengine-0.15.04.6.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit toolchain-funcs
+
+MY_PV=${PV#0.}
+MY_PN=CuraEngine
+
+SRC_URI="https://github.com/Ultimaker/${MY_PN}/archive/${MY_PV}.tar.gz -> ${P}.tar.gz"
+KEYWORDS="~amd64 ~x86"
+
+DESCRIPTION="A 3D model slicing engine for 3D printing"
+HOMEPAGE="https://github.com/Ultimaker/CuraEngine"
+
+LICENSE="AGPL-3"
+SLOT="0"
+IUSE="test"
+
+RDEPEND=""
+DEPEND=""
+
+S="${WORKDIR}/${MY_PN}-${MY_PV}"
+PATCHES=( "${FILESDIR}"/${P}-cflags.patch )
+
+src_prepare() {
+ tc-export CXX
+ default
+}
+
+src_test() {
+ pushd tests 2>&- || die
+ einfo "Commencing test ..."
+ local testbin=( "${S}/build/CuraEngine" "-c" "supportAngle=60" "-c" "supportEverywhere=1" )
+ local testmdl="${S}/tests/testModel.stl"
+ ${testbin[*]} "${testmdl}"
+ if [[ $? -eq 0 && -f "${testbin[0]}" && -f "${testmdl}" ]]; then
+ einfo "Test completed successfully."
+ else
+ ewarn "Test failed."
+ fi
+ popd 2>&- || die
+}
+
+src_install() {
+ dobin build/CuraEngine
+ dodoc README.md
+}
diff --git a/media-gfx/curaengine/curaengine-2.1.0_beta.ebuild b/media-gfx/curaengine/curaengine-2.1.0_beta.ebuild
new file mode 100644
index 000000000000..10de130c3a96
--- /dev/null
+++ b/media-gfx/curaengine/curaengine-2.1.0_beta.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+inherit cmake-utils
+
+MY_PN=CuraEngine
+MY_PV=${PV/_beta}
+
+DESCRIPTION="A 3D model slicing engine for 3D printing"
+HOMEPAGE="https://github.com/Ultimaker/CuraEngine"
+SRC_URI="https://github.com/Ultimaker/${MY_PN}/archive/${MY_PV}.tar.gz -> ${P}.tar.gz"
+KEYWORDS="~amd64 ~x86"
+
+LICENSE="AGPL-3"
+SLOT="0"
+IUSE="doc test"
+
+RDEPEND="${PYTHON_DEPS}
+ dev-libs/libarcus:=
+ >=dev-libs/protobuf-3"
+DEPEND="${RDEPEND}
+ doc? ( app-doc/doxygen )"
+S="${WORKDIR}/${MY_PN}-${MY_PV}"
+DOCS=( README.md )
+
+src_configure() {
+ local mycmakeargs=( "-DBUILD_TESTS=$(usex test ON OFF)" )
+ cmake-utils_src_configure
+}
+
+src_compile() {
+ cmake-utils_src_make
+ if use doc; then
+ doxygen
+ mv docs/html . || die
+ find html -name '*.md5' -or -name '*.map' -delete || die
+ DOCS+=( html )
+ fi
+}
diff --git a/media-gfx/curaengine/curaengine-2.3.1.ebuild b/media-gfx/curaengine/curaengine-2.3.1.ebuild
new file mode 100644
index 000000000000..10de130c3a96
--- /dev/null
+++ b/media-gfx/curaengine/curaengine-2.3.1.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+inherit cmake-utils
+
+MY_PN=CuraEngine
+MY_PV=${PV/_beta}
+
+DESCRIPTION="A 3D model slicing engine for 3D printing"
+HOMEPAGE="https://github.com/Ultimaker/CuraEngine"
+SRC_URI="https://github.com/Ultimaker/${MY_PN}/archive/${MY_PV}.tar.gz -> ${P}.tar.gz"
+KEYWORDS="~amd64 ~x86"
+
+LICENSE="AGPL-3"
+SLOT="0"
+IUSE="doc test"
+
+RDEPEND="${PYTHON_DEPS}
+ dev-libs/libarcus:=
+ >=dev-libs/protobuf-3"
+DEPEND="${RDEPEND}
+ doc? ( app-doc/doxygen )"
+S="${WORKDIR}/${MY_PN}-${MY_PV}"
+DOCS=( README.md )
+
+src_configure() {
+ local mycmakeargs=( "-DBUILD_TESTS=$(usex test ON OFF)" )
+ cmake-utils_src_configure
+}
+
+src_compile() {
+ cmake-utils_src_make
+ if use doc; then
+ doxygen
+ mv docs/html . || die
+ find html -name '*.md5' -or -name '*.map' -delete || die
+ DOCS+=( html )
+ fi
+}
diff --git a/media-gfx/curaengine/curaengine-2.6.0.ebuild b/media-gfx/curaengine/curaengine-2.6.0.ebuild
new file mode 100644
index 000000000000..814f01f58f9f
--- /dev/null
+++ b/media-gfx/curaengine/curaengine-2.6.0.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+inherit cmake-utils
+
+MY_PN=CuraEngine
+MY_PV=${PV/_beta}
+
+DESCRIPTION="A 3D model slicing engine for 3D printing"
+HOMEPAGE="https://github.com/Ultimaker/CuraEngine"
+SRC_URI="https://github.com/Ultimaker/${MY_PN}/archive/${MY_PV}.tar.gz -> ${P}.tar.gz"
+KEYWORDS="~amd64 ~x86"
+
+LICENSE="AGPL-3"
+SLOT="0"
+IUSE="doc test"
+
+RDEPEND="${PYTHON_DEPS}
+ dev-libs/libarcus:=
+ >=dev-libs/protobuf-3"
+DEPEND="${RDEPEND}
+ doc? ( app-doc/doxygen )"
+S="${WORKDIR}/${MY_PN}-${MY_PV}"
+DOCS=( README.md )
+
+src_configure() {
+ local mycmakeargs=( "-DBUILD_TESTS=$(usex test ON OFF)" )
+ cmake-utils_src_configure
+}
+
+src_compile() {
+ cmake-utils_src_make
+ if use doc; then
+ doxygen
+ mv docs/html . || die
+ find html -name '*.md5' -or -name '*.map' -delete || die
+ DOCS+=( html )
+ fi
+}
diff --git a/media-gfx/curaengine/files/curaengine-0.15.04.6-cflags.patch b/media-gfx/curaengine/files/curaengine-0.15.04.6-cflags.patch
new file mode 100644
index 000000000000..9807301e462c
--- /dev/null
+++ b/media-gfx/curaengine/files/curaengine-0.15.04.6-cflags.patch
@@ -0,0 +1,27 @@
+diff --git a/Makefile b/Makefile
+index 32fa704..c426ef8 100644
+--- a/Makefile
++++ b/Makefile
+@@ -18,9 +18,9 @@ endif
+ ifeq ($(BUILD_TYPE),PROFILE)
+ CFLAGS+= -pg
+ endif
+-ifeq ($(BUILD_TYPE),RELEASE)
+- CFLAGS+= -O3 -fomit-frame-pointer
+-endif
++#ifeq ($(BUILD_TYPE),RELEASE)
++# CFLAGS+= -O3 -fomit-frame-pointer
++#endif
+
+ LDFLAGS += -Lbuild/ -lclipper
+
+# By courtesy of Whissi: this enforces use of our CXXFLAGS
+@@ -70,7 +70,7 @@ $(BUILD_DIR)/libclipper.a: $(LIBS_DIR)/clipper/clipper.cpp
+ $(CXX) $(CFLAGS) -o $(BUILD_DIR)/libclipper.a $(LIBS_DIR)/clipper/clipper.cpp
+
+ $(EXECUTABLE): $(OBJECTS) $(BUILD_DIR)/libclipper.a
+- $(CXX) $(OBJECTS) -o $@ $(LDFLAGS)
++ $(CXX) $(CXXFLAGS) $(LDFLAGS) $(OBJECTS) -o $@
+
+ $(DIRS):
+ -@$(MKDIR_PREFIX) $(DIRS)
diff --git a/media-gfx/curaengine/metadata.xml b/media-gfx/curaengine/metadata.xml
new file mode 100644
index 000000000000..f11feb002f87
--- /dev/null
+++ b/media-gfx/curaengine/metadata.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>tomboy64@sina.cn</email>
+ <name>Matthew Brewer</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>3dprint@gentoo.org</email>
+ <name>Gentoo 3D Printer Project</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Gentoo Proxy Maintainers Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">Ultimaker/CuraEngine</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/media-gfx/darktable/Manifest b/media-gfx/darktable/Manifest
new file mode 100644
index 000000000000..dae16e4f3ad3
--- /dev/null
+++ b/media-gfx/darktable/Manifest
@@ -0,0 +1,9 @@
+DIST darktable-2.2.4.tar.xz 3083400 SHA256 bd5445d6b81fc3288fb07362870e24bb0b5378cacad2c6e6602e32de676bf9d8 SHA512 4231bcbbf975fb9cd73d3a9e4ab1a05ebd1c58e681f776896b252bb245529d89bfd34d05c1a6dcf0d6a9a190898eaaa495084906f92bfb1aa8bb2ca0cf84eb9d WHIRLPOOL c49d1a8d8bd50f8ec0927ab03b9837beb5bbb80936e026283882dc4bb5b7ed25e761cb4810794fcbc7b6d970c390046c2530b3b5bab9aed74a0b7d884f729dee
+DIST darktable-2.2.5.tar.xz 3092540 SHA256 e303a42b33f78eb1f48d3b36d1df46f30873df4c5a7b49605314f61c49fbf281 SHA512 fbc79398660b51e580d22dbdfc9a74d213f69335d6058e2844ef397951a1e840264b6d03d1b52b424319fb647a274ac14ff23ee9a9c60071f71497988bdf989b WHIRLPOOL 540e784780689fd9604e7c1fd195e1f2fa90aa378380ea26846bd641c71b2118d26795a874b8a7a049ce58cbb27ce3df853671af7def71f59cc84f9086361ec8
+DIST darktable-usermanual-2.2.0.pdf 14998142 SHA256 04213234e5bcdef658431d265310fbdfae38e1b820420c69cd802391a5a7accf SHA512 5408193b442a7f60783aace507d8dd39c638f5f58d8b5fb5ab68eca03ce9853477b0cbe14184375d58cd6a648de18e9ecae586376698571222be755159cc0b20 WHIRLPOOL 16aa4422f20871802cad3421f30dc6e230757f5366ec17259f4d07da048e23d64003f2531dcf33c702a46c0f2788aa4e0d81e94e13b83da2dd699255f6aca247
+EBUILD darktable-2.2.4.ebuild 3861 SHA256 3f9d829cef64a9082b3aae7505209e7cccb0ba3d888ef40b16cf7f40ef79f7dd SHA512 689144ba9ddc485a23285c157b55999b62fdabe0b356cc7e08a6f7a732d3e96d4bd141d2e1e0dd7e64813f5918f5ae0482f842616750b4a2de3b537a0cc93556 WHIRLPOOL 19feb7fa08ff387de22f4604e4f69cc11feff3cbec272472e8eebed455200c2a38d1abf11d9a4f159d26a6cd4fc03a743d7359a343907fed55605e31e250b9d5
+EBUILD darktable-2.2.5.ebuild 3863 SHA256 52b1e73600c44178654af235337e25f836e1b0d6839cb5ddc3c5dc651a411185 SHA512 0a5df348c5163c861a42018e64c48bf405d69fea6496e6361139342c850a42daa0251692a21e2a8174e3c5e34b92fb50b4d3bc03f7feda547fe31732ebcf430c WHIRLPOOL 1c871fcab70c0398fc853a0107878b02d7501fcff567fc6f4fcdaf70a15788c65c35a0860ff4ab3919d6ffd48fee8eb61c6215b4a01fb04673d7f57534af2fb4
+EBUILD darktable-9999.ebuild 3296 SHA256 7275c15da9429a8dede77fc814bdc93156439d449da8347ccffd4e67198349dc SHA512 2c04ee7ccc6a191bbeb0a75212e027838f6a5f4cdeeeff5ac638cd36cbf10e221d0d0a4ff58344723c8694b01dfde4c2774ba51d54a9c19c61565180fd8d6a62 WHIRLPOOL 20ce1cd7df9b9853ff134ef1ce03799bf407221b46a21713b54ba069fc5bf6fdb142168814e687ec58e2c24efadac9ad3c496197d86d5cfd6c7d886a22413989
+MISC ChangeLog 8544 SHA256 c5917767635a5b3a91c81eb80394aeada8a04ae56e589c5521ee9422c5af867c SHA512 cc2921413890b697cd808f46515bd086f821048ebfac7ac9795a7aa3a8096e344681707a1512f4630d3eb821a32322ab7e52a20967dbb64d992860c05546e578 WHIRLPOOL 61011e7fcceaa9de7147d8d092657dd6574cde72e77d59c340e08cb60ffbc988ca1a557ed6efe968644677512cc546e91755a626c45f0a2787d5406376e81531
+MISC ChangeLog-2015 13218 SHA256 2e74cf67c6afb107905954bf003d989cf1e40ee55b12f1191774171a18d0a375 SHA512 07ad379b5909eff25a85108aff1ddbf4eda0b62091dda4f3b0dba1103354fe08cef88555ce71bc1ef9d937803826651818d5ec4b8f6ece9f511324bf7c9052e5 WHIRLPOOL 41a0d2ad9ffb0f5707bb409f00a1f862ace081227fa58d2fd0ef9a13c641c424eef7f1bdda48d058c6f6ef959e2a964a5a0800d55c7b0a6c2fac003510a69735
+MISC metadata.xml 1001 SHA256 dc599f3625ad302106823e3f7593e121c113e14c3f7fd395bc369921631ddfaf SHA512 6d5d277e74c9c97a57a1cdb80c6b8ea300e90cb65a937fb69e682d8117acb4b6048fb4d0895769c5b5d84545f4ccad4edbfedc7b898bbb8292b161cea5588c88 WHIRLPOOL 6a80ae2a0b9fc6b3cf2a3794242251338fc33346ea3551612fecc99eee08882f204d89a5dd1bf52042a2f3161a566a5fa7985b3f0c9f9a34bb40c17d266dd817
diff --git a/media-gfx/darktable/darktable-2.2.4.ebuild b/media-gfx/darktable/darktable-2.2.4.ebuild
new file mode 100644
index 000000000000..6c47755767e9
--- /dev/null
+++ b/media-gfx/darktable/darktable-2.2.4.ebuild
@@ -0,0 +1,142 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit cmake-utils flag-o-matic toolchain-funcs gnome2-utils fdo-mime pax-utils eutils
+
+DOC_PV="2.2.0"
+MY_PV="${PV/_/}"
+MY_P="${P/_/.}"
+
+DESCRIPTION="A virtual lighttable and darkroom for photographers"
+HOMEPAGE="https://www.darktable.org/"
+SRC_URI="https://github.com/darktable-org/${PN}/releases/download/release-${MY_PV}/${MY_P}.tar.xz
+ doc? ( https://github.com/darktable-org/${PN}/releases/download/release-${DOC_PV}/${PN}-usermanual.pdf -> ${PN}-usermanual-${DOC_PV}.pdf )"
+
+LICENSE="GPL-3 CC-BY-3.0"
+SLOT="0"
+KEYWORDS="amd64 x86"
+LANGS=" ca cs da de es fr he hu it ja nl pl ru sk sl sv uk"
+# TODO add lua once dev-lang/lua-5.2 is unmasked
+IUSE="colord cups cpu_flags_x86_sse3 doc flickr geo gphoto2 graphicsmagick jpeg2k kwallet libsecret
+nls opencl openmp openexr pax_kernel webp
+${LANGS// / l10n_}"
+
+# sse3 support is required to build darktable
+REQUIRED_USE="cpu_flags_x86_sse3"
+
+CDEPEND="
+ dev-db/sqlite:3
+ dev-libs/json-glib
+ dev-libs/libxml2:2
+ dev-libs/pugixml:0=
+ gnome-base/librsvg:2
+ >=media-gfx/exiv2-0.25-r2:0=[xmp]
+ media-libs/lcms:2
+ >=media-libs/lensfun-0.2.3:0=
+ media-libs/libpng:0=
+ media-libs/tiff:0
+ net-libs/libsoup:2.4
+ net-misc/curl
+ virtual/jpeg:0
+ virtual/glu
+ virtual/opengl
+ x11-libs/cairo
+ >=x11-libs/gtk+-3.14:3
+ x11-libs/pango
+ colord? ( x11-libs/colord-gtk:0= )
+ cups? ( net-print/cups )
+ flickr? ( media-libs/flickcurl )
+ geo? ( >=sci-geosciences/osm-gps-map-1.1.0 )
+ gphoto2? ( media-libs/libgphoto2:= )
+ graphicsmagick? ( media-gfx/graphicsmagick )
+ jpeg2k? ( media-libs/openjpeg:0 )
+ libsecret? ( >=app-crypt/libsecret-0.18 )
+ opencl? ( virtual/opencl )
+ openexr? ( media-libs/openexr:0= )
+ webp? ( media-libs/libwebp:0= )"
+RDEPEND="${CDEPEND}
+ kwallet? ( || (
+ >=kde-frameworks/kwallet-5.34.0-r1
+ kde-apps/kwalletd:4
+ ) )"
+DEPEND="${CDEPEND}
+ dev-util/intltool
+ virtual/pkgconfig
+ nls? ( sys-devel/gettext )"
+
+S="${WORKDIR}/${P/_/~}"
+
+pkg_pretend() {
+ if use openmp ; then
+ tc-has-openmp || die "Please switch to an openmp compatible compiler"
+ fi
+}
+
+src_prepare() {
+ use cpu_flags_x86_sse3 && append-flags -msse3
+
+ cmake-utils_src_prepare
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DBUILD_PRINT=$(usex cups)
+ -DCMAKE_INSTALL_DOCDIR="/usr/share/doc/${PF}"
+ -DCUSTOM_CFLAGS=ON
+ -DUSE_CAMERA_SUPPORT=$(usex gphoto2)
+ -DUSE_COLORD=$(usex colord)
+ -DUSE_FLICKR=$(usex flickr)
+ -DUSE_GRAPHICSMAGICK=$(usex graphicsmagick)
+ -DUSE_KWALLET=$(usex kwallet)
+ -DUSE_LIBSECRET=$(usex libsecret)
+ -DUSE_LUA=OFF
+ -DUSE_MAP=$(usex geo)
+ -DUSE_NLS=$(usex nls)
+ -DUSE_OPENCL=$(usex opencl)
+ -DUSE_OPENEXR=$(usex openexr)
+ -DUSE_OPENJPEG=$(usex jpeg2k)
+ -DUSE_OPENMP=$(usex openmp)
+ -DUSE_WEBP=$(usex webp)
+ )
+ cmake-utils_src_configure
+}
+
+src_install() {
+ cmake-utils_src_install
+ use doc && dodoc "${DISTDIR}"/${PN}-usermanual-${DOC_PV}.pdf
+
+ for lang in ${LANGS} ; do
+ use l10n_${lang} || rm -r "${ED}"/usr/share/locale/${lang/-/_}
+ done
+
+ if use pax_kernel && use opencl ; then
+ pax-mark Cm "${ED}"/usr/bin/${PN} || die
+ eqawarn "USE=pax_kernel is set meaning that ${PN} will be run"
+ eqawarn "under a PaX enabled kernel. To do so, the ${PN} binary"
+ eqawarn "must be modified and this *may* lead to breakage! If"
+ eqawarn "you suspect that ${PN} is broken by this modification,"
+ eqawarn "please open a bug."
+ fi
+}
+
+pkg_preinst() {
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ gnome2_icon_cache_update
+ fdo-mime_desktop_database_update
+
+ elog "when updating from the currently stable 1.6 series,"
+ elog "please bear in mind that your edits will be preserved during this process,"
+ elog "but it will not be possible to downgrade from 2.0 to 1.6 any more."
+ echo
+ ewarn "It will not be possible to downgrade!"
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+ fdo-mime_desktop_database_update
+}
diff --git a/media-gfx/darktable/darktable-2.2.5.ebuild b/media-gfx/darktable/darktable-2.2.5.ebuild
new file mode 100644
index 000000000000..0cbe1a38708e
--- /dev/null
+++ b/media-gfx/darktable/darktable-2.2.5.ebuild
@@ -0,0 +1,142 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit cmake-utils flag-o-matic toolchain-funcs gnome2-utils fdo-mime pax-utils eutils
+
+DOC_PV="2.2.0"
+MY_PV="${PV/_/}"
+MY_P="${P/_/.}"
+
+DESCRIPTION="A virtual lighttable and darkroom for photographers"
+HOMEPAGE="https://www.darktable.org/"
+SRC_URI="https://github.com/darktable-org/${PN}/releases/download/release-${MY_PV}/${MY_P}.tar.xz
+ doc? ( https://github.com/darktable-org/${PN}/releases/download/release-${DOC_PV}/${PN}-usermanual.pdf -> ${PN}-usermanual-${DOC_PV}.pdf )"
+
+LICENSE="GPL-3 CC-BY-3.0"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+LANGS=" ca cs da de es fr he hu it ja nl pl ru sk sl sv uk"
+# TODO add lua once dev-lang/lua-5.2 is unmasked
+IUSE="colord cups cpu_flags_x86_sse3 doc flickr geo gphoto2 graphicsmagick jpeg2k kwallet libsecret
+nls opencl openmp openexr pax_kernel webp
+${LANGS// / l10n_}"
+
+# sse3 support is required to build darktable
+REQUIRED_USE="cpu_flags_x86_sse3"
+
+CDEPEND="
+ dev-db/sqlite:3
+ dev-libs/json-glib
+ dev-libs/libxml2:2
+ dev-libs/pugixml:0=
+ gnome-base/librsvg:2
+ >=media-gfx/exiv2-0.25-r2:0=[xmp]
+ media-libs/lcms:2
+ >=media-libs/lensfun-0.2.3:0=
+ media-libs/libpng:0=
+ media-libs/tiff:0
+ net-libs/libsoup:2.4
+ net-misc/curl
+ virtual/jpeg:0
+ virtual/glu
+ virtual/opengl
+ x11-libs/cairo
+ >=x11-libs/gtk+-3.14:3
+ x11-libs/pango
+ colord? ( x11-libs/colord-gtk:0= )
+ cups? ( net-print/cups )
+ flickr? ( media-libs/flickcurl )
+ geo? ( >=sci-geosciences/osm-gps-map-1.1.0 )
+ gphoto2? ( media-libs/libgphoto2:= )
+ graphicsmagick? ( media-gfx/graphicsmagick )
+ jpeg2k? ( media-libs/openjpeg:0 )
+ libsecret? ( >=app-crypt/libsecret-0.18 )
+ opencl? ( virtual/opencl )
+ openexr? ( media-libs/openexr:0= )
+ webp? ( media-libs/libwebp:0= )"
+RDEPEND="${CDEPEND}
+ kwallet? ( || (
+ >=kde-frameworks/kwallet-5.34.0-r1
+ kde-apps/kwalletd:4
+ ) )"
+DEPEND="${CDEPEND}
+ dev-util/intltool
+ virtual/pkgconfig
+ nls? ( sys-devel/gettext )"
+
+S="${WORKDIR}/${P/_/~}"
+
+pkg_pretend() {
+ if use openmp ; then
+ tc-has-openmp || die "Please switch to an openmp compatible compiler"
+ fi
+}
+
+src_prepare() {
+ use cpu_flags_x86_sse3 && append-flags -msse3
+
+ cmake-utils_src_prepare
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DBUILD_PRINT=$(usex cups)
+ -DCMAKE_INSTALL_DOCDIR="/usr/share/doc/${PF}"
+ -DCUSTOM_CFLAGS=ON
+ -DUSE_CAMERA_SUPPORT=$(usex gphoto2)
+ -DUSE_COLORD=$(usex colord)
+ -DUSE_FLICKR=$(usex flickr)
+ -DUSE_GRAPHICSMAGICK=$(usex graphicsmagick)
+ -DUSE_KWALLET=$(usex kwallet)
+ -DUSE_LIBSECRET=$(usex libsecret)
+ -DUSE_LUA=OFF
+ -DUSE_MAP=$(usex geo)
+ -DUSE_NLS=$(usex nls)
+ -DUSE_OPENCL=$(usex opencl)
+ -DUSE_OPENEXR=$(usex openexr)
+ -DUSE_OPENJPEG=$(usex jpeg2k)
+ -DUSE_OPENMP=$(usex openmp)
+ -DUSE_WEBP=$(usex webp)
+ )
+ cmake-utils_src_configure
+}
+
+src_install() {
+ cmake-utils_src_install
+ use doc && dodoc "${DISTDIR}"/${PN}-usermanual-${DOC_PV}.pdf
+
+ for lang in ${LANGS} ; do
+ use l10n_${lang} || rm -r "${ED}"/usr/share/locale/${lang/-/_}
+ done
+
+ if use pax_kernel && use opencl ; then
+ pax-mark Cm "${ED}"/usr/bin/${PN} || die
+ eqawarn "USE=pax_kernel is set meaning that ${PN} will be run"
+ eqawarn "under a PaX enabled kernel. To do so, the ${PN} binary"
+ eqawarn "must be modified and this *may* lead to breakage! If"
+ eqawarn "you suspect that ${PN} is broken by this modification,"
+ eqawarn "please open a bug."
+ fi
+}
+
+pkg_preinst() {
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ gnome2_icon_cache_update
+ fdo-mime_desktop_database_update
+
+ elog "when updating from the currently stable 1.6 series,"
+ elog "please bear in mind that your edits will be preserved during this process,"
+ elog "but it will not be possible to downgrade from 2.0 to 1.6 any more."
+ echo
+ ewarn "It will not be possible to downgrade!"
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+ fdo-mime_desktop_database_update
+}
diff --git a/media-gfx/darktable/darktable-9999.ebuild b/media-gfx/darktable/darktable-9999.ebuild
new file mode 100644
index 000000000000..295cc2e5bade
--- /dev/null
+++ b/media-gfx/darktable/darktable-9999.ebuild
@@ -0,0 +1,129 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit cmake-utils flag-o-matic toolchain-funcs gnome2-utils fdo-mime git-r3 pax-utils eutils versionator
+
+EGIT_REPO_URI="https://github.com/darktable-org/${PN}.git"
+
+DESCRIPTION="A virtual lighttable and darkroom for photographers"
+HOMEPAGE="https://www.darktable.org/"
+
+LICENSE="GPL-3 CC-BY-3.0"
+SLOT="0"
+#KEYWORDS="~amd64 ~x86"
+LANGS=" ca cs da de es fr he hu it ja nl pl ru sk sl sv uk"
+# TODO add lua once dev-lang/lua-5.2 is unmasked
+IUSE="colord cups cpu_flags_x86_sse3 doc flickr geo gphoto2 graphicsmagick jpeg2k kwallet libsecret
+nls opencl openmp openexr pax_kernel webp
+${LANGS// / l10n_}"
+
+# sse3 support is required to build darktable
+REQUIRED_USE="cpu_flags_x86_sse3"
+
+CDEPEND="
+ dev-db/sqlite:3
+ dev-libs/json-glib
+ dev-libs/libxml2:2
+ dev-libs/pugixml:0=
+ gnome-base/librsvg:2
+ >=media-gfx/exiv2-0.25-r2:0=[xmp]
+ media-libs/lcms:2
+ >=media-libs/lensfun-0.2.3:0=
+ media-libs/libpng:0=
+ media-libs/tiff:0
+ net-libs/libsoup:2.4
+ net-misc/curl
+ virtual/jpeg:0
+ virtual/glu
+ virtual/opengl
+ x11-libs/cairo
+ >=x11-libs/gtk+-3.14:3
+ x11-libs/pango
+ colord? ( x11-libs/colord-gtk:0= )
+ cups? ( net-print/cups )
+ flickr? ( media-libs/flickcurl )
+ geo? ( >=sci-geosciences/osm-gps-map-1.1.0 )
+ gphoto2? ( media-libs/libgphoto2:= )
+ graphicsmagick? ( media-gfx/graphicsmagick )
+ jpeg2k? ( media-libs/openjpeg:0 )
+ libsecret? ( >=app-crypt/libsecret-0.18 )
+ opencl? ( virtual/opencl )
+ openexr? ( media-libs/openexr:0= )
+ webp? ( media-libs/libwebp:0= )"
+RDEPEND="${CDEPEND}
+ kwallet? ( || (
+ >=kde-frameworks/kwallet-5.34.0-r1
+ kde-apps/kwalletd:4
+ ) )"
+DEPEND="${CDEPEND}
+ dev-util/intltool
+ virtual/pkgconfig
+ nls? ( sys-devel/gettext )"
+
+pkg_pretend() {
+ if use openmp ; then
+ tc-has-openmp || die "Please switch to an openmp compatible compiler"
+ fi
+}
+
+src_prepare() {
+ use cpu_flags_x86_sse3 && append-flags -msse3
+
+ cmake-utils_src_prepare
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DBUILD_PRINT=$(usex cups)
+ -DCMAKE_INSTALL_DOCDIR="/usr/share/doc/${PF}"
+ -DCUSTOM_CFLAGS=ON
+ -DUSE_CAMERA_SUPPORT=$(usex gphoto2)
+ -DUSE_COLORD=$(usex colord)
+ -DUSE_FLICKR=$(usex flickr)
+ -DUSE_GRAPHICSMAGICK=$(usex graphicsmagick)
+ -DUSE_KWALLET=$(usex kwallet)
+ -DUSE_LIBSECRET=$(usex libsecret)
+ -DUSE_LUA=OFF
+ -DUSE_MAP=$(usex geo)
+ -DUSE_NLS=$(usex nls)
+ -DUSE_OPENCL=$(usex opencl)
+ -DUSE_OPENEXR=$(usex openexr)
+ -DUSE_OPENJPEG=$(usex jpeg2k)
+ -DUSE_OPENMP=$(usex openmp)
+ -DUSE_WEBP=$(usex webp)
+ )
+ cmake-utils_src_configure
+}
+
+src_install() {
+ cmake-utils_src_install
+
+ for lang in ${LANGS} ; do
+ use l10n_${lang} || rm -r "${ED}"/usr/share/locale/${lang/-/_}
+ done
+
+ if use pax_kernel && use opencl ; then
+ pax-mark Cm "${ED}"/usr/bin/${PN} || die
+ eqawarn "USE=pax_kernel is set meaning that ${PN} will be run"
+ eqawarn "under a PaX enabled kernel. To do so, the ${PN} binary"
+ eqawarn "must be modified and this *may* lead to breakage! If"
+ eqawarn "you suspect that ${PN} is broken by this modification,"
+ eqawarn "please open a bug."
+ fi
+}
+
+pkg_preinst() {
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ gnome2_icon_cache_update
+ fdo-mime_desktop_database_update
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+ fdo-mime_desktop_database_update
+}
diff --git a/media-gfx/darktable/metadata.xml b/media-gfx/darktable/metadata.xml
new file mode 100644
index 000000000000..8dc052cec1b8
--- /dev/null
+++ b/media-gfx/darktable/metadata.xml
@@ -0,0 +1,22 @@
+<?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>
+ <use>
+ <flag name="colord">Support color management using <pkg>x11-misc/colord</pkg></flag>
+ <flag name="flickr">Add support for uploading photos to flickr</flag>
+ <flag name="geo">Enable geotagging support</flag>
+ <flag name="kwallet">Enable encrypted storage of passwords with <pkg>kde-frameworks/kwallet</pkg></flag>
+ <flag name="libsecret">Enable libsecret support to store login credentials</flag>
+ <flag name="opencl">Enable opencl support</flag>
+ <flag name="pax_kernel">Triggers paxmarking of main darktable binary</flag>
+ <flag name="webp">Enable WebP export support</flag>
+ </use>
+ <upstream>
+ <remote-id type="github">darktable-org/darktable</remote-id>
+ <remote-id type="sourceforge">darktable</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/media-gfx/dawn/Manifest b/media-gfx/dawn/Manifest
new file mode 100644
index 000000000000..16d4f116dafe
--- /dev/null
+++ b/media-gfx/dawn/Manifest
@@ -0,0 +1,6 @@
+AUX dawn-3.90b-no-interactive.patch 5686 SHA256 4106f1cac219817fe76dded97543e32a3259b43d5e90e20c3a784f3bacfa8fdd SHA512 9a2a86fca7d680569b2cba59354b56e89fc2cff6bd6cc8679744f5283a68d9f6e0ac74892529de632efbfa9834cc7743847520fcafd5e82ded1dc73e05a326d4 WHIRLPOOL 578f425f059517a280699fbcfef8e75e8a94a5d5c4b0472e2c1c0cda907012b1a8a2c36c23a5c09805a2d53c2acbd50b88232b89a7678429efbf92c66025ea25
+DIST dawn_3_90b.tgz 1334732 SHA256 be9461b490a4acfd87152407adbbe423f3735d9f00a88a9573ecaa9db24ac676 SHA512 5ff0b3572442ad1f435d5f894a0f1637efbc8eb3dae4f67dd456ff220a497cc59fe3bdf773cd38a0690d3689e9cda48f49c408ddab56f31efb9c87447d439fea WHIRLPOOL e709e1006fe794c0723d925002bf1125070a873362a0802a9478d075b1be216ff21e9546c30b1918833164520e91dec870c233e7360caf3826053cabdd108b3b
+EBUILD dawn-3.90b.ebuild 1194 SHA256 abbf80ac8a1b06b611bf0beee76d431a6855c63c31789e5e864aee79e1d0e15c SHA512 ad827620ac42b5fddeea20d3222b342f2a6481cade600ff1e5da5cffb29d5b62a383de5f8322a05c05a2c979fcf69503b70e4412ae96f0c8318582ba1988224e WHIRLPOOL 90e049ea300f25ae957cd86734ffce76c146c94748a0803a45b802215c34027063c95bbb5761affc60c61cd07d19bc4dcd3236c283f61b3479b458c5b10bf7fb
+MISC ChangeLog 2501 SHA256 b5d41c7cb084b7f56a9b3463520ecf4fffa428e294ad9d4e92f28e5a59c8afd6 SHA512 6aa80f53cf5c6563f5a2ee425748b5b2b68d68778207bf2a37e492f8b5433c68853c8dc4f68af1a2fdad99d4777d42a889ed9af6f5828acca4d41bfe146cfa16 WHIRLPOOL 24b17117f8c23e22ec768aa5268cf382d1b3ca628c0b675679b4c61ec3416d4b7a0ec07dd6fdd5aadc97d99a23c2dfb100cbe5df094cd0a07212bfcb52e95c8e
+MISC ChangeLog-2015 2056 SHA256 83be9a12e18f10c621867f3ecd759ad158828f913a510908d8b6355a032eca70 SHA512 85e76f0c1bda1975bfccc397e6dccc418f6a50337beb8ff2ea98cd2dffac40785197ba9c555b64938055685aa97581112f0c9ff1020731e8c23be59744501479 WHIRLPOOL 4c36751d165e33f740b78b62e588313751830574b0c8192ac0db1f43beabe47cfd5bfc2ecf30997c153804e5ef3bd995f35b51f2fd0d02b9fb27df524ce5f02a
+MISC metadata.xml 1198 SHA256 80dbb52a9a8777dd7df4c722f06f6e2a16270eff2c1760cd8381c27490d70d26 SHA512 20414450116a882a03aca3e26eba467e6b3813eb9a9453e03f7c3ba572ad1264f3530ebad9815f02ea0a7c447b16f621bf4ca4e49eae71d850c3217e39a9f007 WHIRLPOOL 0b48aa118d1ddd2a3baf803fa2aafcba0ec5b8b29967dfbb47ae6275030125abf6f99579934189c391c123b0d975e69382191178a696f492a6fb45b84e75c221
diff --git a/media-gfx/dawn/dawn-3.90b.ebuild b/media-gfx/dawn/dawn-3.90b.ebuild
new file mode 100644
index 000000000000..9e9e200f5fd6
--- /dev/null
+++ b/media-gfx/dawn/dawn-3.90b.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=2
+inherit eutils toolchain-funcs versionator
+
+MYP=${PN}_$(replace_version_separator 1 _)
+
+DESCRIPTION="3D geometrical postscript renderer"
+HOMEPAGE="http://geant4.kek.jp/~tanaka/DAWN/About_DAWN.html"
+SRC_URI="http://geant4.kek.jp/~tanaka/src/${MYP}.tgz"
+
+LICENSE="public-domain"
+SLOT="0"
+
+KEYWORDS="amd64 hppa ppc x86"
+IUSE="doc opengl X"
+
+RDEPEND="dev-lang/tk
+ X? ( x11-libs/libX11 )
+ opengl? ( virtual/opengl )"
+DEPEND="${RDEPEND}
+ app-shells/tcsh
+ doc? ( virtual/latex-base )"
+
+S="${WORKDIR}/${MYP}"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-no-interactive.patch
+ sed -i -e "s/\$(LIB_DIR)/\$(LDFLAGS) &/" \
+ -e '/strip/d' Makefile*in || die
+}
+
+src_compile() {
+ tc-export CXX
+ emake clean
+ emake guiclean
+ if use X; then
+ ./configure_xwin || die
+ else
+ ./configure || die
+ fi
+ einfo "Compiling"
+ emake || die
+}
+
+src_install() {
+ dodir /usr/bin
+ emake DESTDIR="${D}" install || die
+ dodoc README.txt
+ if use doc; then
+ pdflatex DOC/G4PRIM_FORMAT_24.tex || die "pdf generation failed"
+ insinto /usr/share/doc/${PF}
+ doins DOC/G4PRIM_FORMAT_24.pdf
+ dohtml DOC/*.html
+ fi
+}
diff --git a/media-gfx/dawn/files/dawn-3.90b-no-interactive.patch b/media-gfx/dawn/files/dawn-3.90b-no-interactive.patch
new file mode 100644
index 000000000000..244948ec5262
--- /dev/null
+++ b/media-gfx/dawn/files/dawn-3.90b-no-interactive.patch
@@ -0,0 +1,158 @@
+--- configure_xwin.orig 2008-04-02 22:58:44.973465484 +0100
++++ configure_xwin 2008-04-03 00:02:15.950190359 +0100
+@@ -16,17 +16,17 @@
+ #----- C++ compiler name
+ echo "Input C++ compiler name (e.g. g++, no default)."
+ echo -n " :"
+-set cpp_compiler=$<
++set cpp_compiler=
+
+ #----- Optimization option of the C++ compiler
+ echo "Input optimization option (e.g. -O2, no default)"
+ echo -n " :"
+-set optimize=$<
++set optimize=
+
+ #----- Input Tcl/Tk window shell name
+ echo "Input Tcl/Tk window shell name"
+ echo -n " (e.g. wish, no default): "
+-set wish=$<
++set wish=wish
+
+
+ #-----
+@@ -34,7 +34,7 @@
+ echo " (e.g. -I/usr/X11R6/include) "
+ echo " Hit return key if path is already set properly. )"
+ echo -n " : "
+-set xlib_inc=$<
++set xlib_inc=
+ echo ""
+
+
+@@ -43,17 +43,17 @@
+ echo " (e.g. -L/usr/X11R6/lib) "
+ echo " Hit return key if path is already set properly.)"
+ echo -n " : "
+-set xlib_lib=$<
++set xlib_lib=
+ echo ""
+
+ #----- Input directory name to install dawn and DAWN_GUI
+ echo "Input directory to install executable files"
+ echo -n " (e.g. /usr/local/bin, no default ): "
+-set install_dir=$<
++set install_dir=
+
+ #----- Input system name
+ echo -n "Select a system (0: Defalut, 1: AIX, 2: IRIX, 3: Solaris, 4: RedHat/FedoraCore): "
+-set sysid=$<
++set sysid=0
+ switch ($sysid)
+ case "0":
+ set sysname = "Default"
+@@ -80,7 +80,7 @@
+ echo "Do you use remote-visualization function? (y/n, no default)"
+ echo " (Select n if your compilation fails for FRClientServer.cc)"
+ echo -n " : "
+-set ynflag_socket=$<
++set ynflag_socket=n
+ switch ($ynflag_socket)
+ case "y":
+ set macro_socket = '#define USE_SOCKET'
+@@ -123,14 +123,14 @@
+
+ echo "### C++ compiler" >> Makefile
+ #echo "ifndef CXX" >> Makefile
+-echo "CC = $cpp_compiler" >> Makefile
++#echo "CC = $cpp_compiler" >> Makefile
+ #echo "else" >> Makefile
+-#echo 'CC = $(CXX)' >> Makefile
++echo 'CC = $(CXX)' >> Makefile
+ #echo "endif" >> Makefile
+ echo "" >> Makefile
+
+ echo "### Optimization" >> Makefile
+-echo "OPTIMIZE = $optimize" >> Makefile
++echo 'OPTIMIZE = $(CXXFLAGS)' >> Makefile
+ echo "" >> Makefile
+
+ echo "### Waring level" >> Makefile
+@@ -152,7 +152,7 @@
+ echo "" >> Makefile
+
+ echo "### Directory where to install executable files" >> Makefile
+-echo "INSTALL_DIR = $install_dir" >> Makefile
++echo 'INSTALL_DIR = $(DESTDIR)/usr/bin' >> Makefile
+ echo "" >> Makefile
+
+ echo "### Socket libraries to be linked " >> Makefile
+--- FRSocketMacro.h.orig 2008-04-02 23:58:51.126518123 +0100
++++ FRSocketMacro.h 2008-04-02 23:59:03.443220012 +0100
+@@ -14,8 +14,8 @@
+ #elif defined SOCKET_REDHAT61
+ #define CLIENT_ADDR_LENGTH socklen_t
+ #else
+- #define CLIENT_ADDR_LENGTH int
+-// #define CLIENT_ADDR_LENGTH size_t
++// #define CLIENT_ADDR_LENGTH int
++ #define CLIENT_ADDR_LENGTH size_t
+ #endif
+
+ //----- gethostname
+--- configure.orig 2010-08-21 14:22:18.000000000 +0100
++++ configure 2010-09-23 05:57:02.000000000 +0100
+@@ -13,22 +13,22 @@
+ #----- C++ compiler name
+ echo "Input C++ compiler name (e.g. g++, no default)."
+ echo -n " :"
+-set cpp_compiler=$<
++set cpp_compiler=
+
+ #----- Optimization option of the C++ compiler
+ echo "Input optimization option (e.g. -O2, no default)"
+ echo -n " :"
+-set optimize=$<
++set optimize=
+
+ #----- Input Tcl/Tk window shell name
+ echo "Input Tcl/Tk window shell name"
+ echo -n " (e.g. wish, no default): "
+-set wish=$<
++set wish=wish
+
+ #----- Input directory name to install dawn and DAWN_GUI
+ echo "Input directory to install executable files"
+ echo -n " (e.g. /usr/local/bin, no default ): "
+-set install_dir=$<
++set install_dir=
+
+
+ ##### DELETE #####
+@@ -57,14 +57,14 @@
+
+ echo "### C++ compiler" >> Makefile
+ #echo "ifndef CXX" >> Makefile
+-echo "CC = $cpp_compiler" >> Makefile
++#echo "CC = $cpp_compiler" >> Makefile
+ #echo "else" >> Makefile
+-#echo 'CC = $(CXX)' >> Makefile
++echo 'CC = $(CXX)' >> Makefile
+ #echo "endif" >> Makefile
+ echo "" >> Makefile
+
+ echo "### Optimization" >> Makefile
+-echo "OPTIMIZE = $optimize" >> Makefile
++echo 'OPTIMIZE = $(CXXFLAGS)' >> Makefile
+ echo "" >> Makefile
+
+ echo "### Waring level" >> Makefile
+@@ -78,7 +78,7 @@
+
+
+ echo "### Directory where to install executable files" >> Makefile
+-echo "INSTALL_DIR = $install_dir" >> Makefile
++echo 'INSTALL_DIR = $(DESTDIR)/usr/bin' >> Makefile
+ echo "" >> Makefile
+
+ echo "" >> Makefile
diff --git a/media-gfx/dawn/metadata.xml b/media-gfx/dawn/metadata.xml
new file mode 100644
index 000000000000..0a1f931af8f8
--- /dev/null
+++ b/media-gfx/dawn/metadata.xml
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>sci-physics@gentoo.org</email>
+ <name>Gentoo Physics Project</name>
+</maintainer>
+<longdescription lang="en">
+ Fukui Renderer DAWN (Drawer for Academic WritiNgs)
+ is a renderer, which reads 3D geometrical data and visualize them.
+ It is a vectorized 3D PostScript processor with analytical
+ hidden line/surface removal.
+ It aims at precise technical drawing of complicated objects.
+ It performs geometrical hidden line/surface removal and calculates
+ out all visible parts of the 3D data before drawing. This drawing
+ algorithm realizes device-independent technical high quality of
+ vectorized graphics.
+ 3D Data files should be generated by a modeler or by hands
+ separately. If you use DAWN as a visualizer of,
+ say, a simulator of physical experiments,
+ the simulator application itself is recognized as a modeler.
+ An important feature of DAWN is that it has been developed to
+ visualize 3D data generated by a high-energy experimental detector
+ simulator "GEANT4".
+</longdescription>
+</pkgmetadata>
diff --git a/media-gfx/dcraw/Manifest b/media-gfx/dcraw/Manifest
new file mode 100644
index 000000000000..b9ecd9cc87d7
--- /dev/null
+++ b/media-gfx/dcraw/Manifest
@@ -0,0 +1,9 @@
+AUX conversion-examples.txt 545 SHA256 b6a5a658c550ffbd26bbc1b6e7723bced7461af234062af7d77e53441429d218 SHA512 47213effb868ac4754075e43a6194ccbbe3e1431ef47280a670ad7e843cf727ad63ebf76849210672a72a79b1f702ca112aeece12284191f11c859a54fc090a9 WHIRLPOOL f0b26fe656b1e0977b5af85d3787a86954da207eb9c731058d6d6cc7faecf436b9c39d5c78fe63ab60e5d185aa6f5e3254357b5bc7311abc153a7b2d92e8e858
+AUX dcwrap 437 SHA256 fd113fe5c1005116f8e03db59fb1f505667883f237abe0c799cd5a45d6ceb0bd SHA512 ba872972125a5394e8d29bf6e5b612959b228265885218061eeff6a17f87dd1891e33876c49fd4071a76517843b6709d16f1fa976994c49c9357d7dc7211af9e WHIRLPOOL 99b483bf0a09ae7b49ea45d1fd45e354f3e59e8964b3c858cccba1875cacffb88d314a2767ed134357018b3d38ae38e46e9e2ba844d8ee6c51d2a27ca9adccb2
+DIST dcraw-9.27.0.tar.gz 191803 SHA256 c1d8cc4f19752a3d3aaab1fceb712ea85b912aa25f1f33f68c69cd42ef987099 SHA512 2b2faed3f1889ef82a50721f7d3f22b081104b586d644d369fa849ad08604c10898e9dfccf8935828cf432db74352161fe6d1f9bde5fbfa4dd8435188767a17a WHIRLPOOL 6107279b61c6dfca5fda63cb57892c31227dae72259e1eb96e5280ff79a77a8e65e4d23ae1c99833bf3eac16473f8342786498156a31e938cf644c1a92c53ada
+DIST parse-1.73.tar.bz2 8186 SHA256 51f75837b7fa7f6389f43c875ad8320c41a44c4213922dc767e16dc424462c3c SHA512 06ffaf72695dc86bfc2bdd10d4f732bc428b72d427f4c10e93fc58536513477cf297adb56fb9cfc5ba5fd5b6b4cd197c33d8dac957a0a1bbe65b23393b64278c WHIRLPOOL 1abc642a60f3f5b54efa29722ff7674457b88811ef25e557b7823ff05f6ee55989e35c0b9dad04d74c769bcca1cb45f580985de92bb4e40cd63b6d0a35b3a0e2
+DIST rawphoto-1.32.tar.bz2 3841 SHA256 3348a83a44fa941924a4e743f88d993b71d28ba995f80e6765d6c19b6eeaea4c SHA512 6ee5b6c4e4266c8e04221c894c4e737f8a6d2c6f0cc9c82db73064afd68488bd60de19b86b2d7b82780283bbb9f8156ef3149c1c730f09a00dce632744b44d56 WHIRLPOOL af840eae74d74f83b7874a769e30ff0e613a5f1dba4d20fa315f6d9685fabffbe804ad878174f3ee274a6083105f1baa317f52b346afb493c34cea0e5c09c566
+EBUILD dcraw-9.27.0.ebuild 2955 SHA256 f20d0eb6254af182af18f6b90f6b35052300e79960edc59b0a7ee336e5819806 SHA512 ec2dd6741539760db1a1748037874d85b815b05edbe586e4bbc28c5c42e0e5ee1f00d09d60fe5cec027686d56549ba3df97ce5b03b8ebf0e76500e52bb6be960 WHIRLPOOL 55f3b5c0f4d6f4df449e55be2d3083aa01d35289f156f316d3796498547b9d1108821bda32ee6aace4cc7d1870264ceb94191c63c359a0ab7e94f72d1c3635ff
+MISC ChangeLog 3694 SHA256 c4e863e4bd44a960cd4d4186afe7bce63989778a60a966fa343b8ffefe0a0741 SHA512 6e3bd5167fe8b8a04787dedaca18111fc694f53861dc6ef763445132f707dbe5c1ffcbcbc51363ea82877039069e567caa6364bbf54bfc569cc8cf5c10a4e347 WHIRLPOOL af03736e630bb8056bac662c77dc400143358b16659cda5a3245c18be69d35c2b45db76746b4d05e5efa1ecbdae37ad8cc79609a39de85cfb2b3cb60f68914c1
+MISC ChangeLog-2015 13635 SHA256 83e2d7eb5619eda46e05588a81d722e72a0604df0db6f5c7c0d7de5664ecedeb SHA512 058f5da70a16de42c38a73ac7081ca0b9620f7b08500778ffd95f16e99874becf16cfb431e72ba1d5f8214e7439e40b1e9bc27f84df0fb8585d24df2827bfdd1 WHIRLPOOL 841d3021a0306871eced5064de511a6ddaa3633e86049dd9781f52fc91198f2d2666199fea8642a388a684bce22a9537364b3daed6007f8bb0744dc1740d694c
+MISC metadata.xml 701 SHA256 938b9b663d816e85f0a4b5d142dcb25b4e782e215fe6043bdbfe036a34c9ed43 SHA512 0758eece42b5007b53e04f0ddb6385fbdea360afc8a4cfd94d3f5234e4a677819cbebdca3a78c7f3765770e6ccb5b2d74f20199b7c167137fd15554cc14d0755 WHIRLPOOL daaf89dab6747f23b730febb35994341ffbde3336fc90ded8754b2f438cf19d15bc1d9c7f623f1c0f7ac096f390d65ddf4ac4d60a8f3850cae6991fc67a1c861
diff --git a/media-gfx/dcraw/dcraw-9.27.0.ebuild b/media-gfx/dcraw/dcraw-9.27.0.ebuild
new file mode 100644
index 000000000000..75b8edc043dd
--- /dev/null
+++ b/media-gfx/dcraw/dcraw-9.27.0.ebuild
@@ -0,0 +1,108 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils readme.gentoo toolchain-funcs
+
+DESCRIPTION="Command-line decoder for raw digital photos"
+HOMEPAGE="https://www.cybercom.net/~dcoffin/dcraw/"
+SRC_URI="https://www.cybercom.net/~dcoffin/dcraw/archive/${P}.tar.gz
+ mirror://gentoo/parse-1.73.tar.bz2
+ gimp? ( mirror://gentoo/rawphoto-1.32.tar.bz2 )"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 sparc x86 ~amd64-linux ~x86-linux ~x86-solaris"
+LANGS=" ca cs de da eo es fr hu it nl pl pt ru sv zh_CN zh_TW"
+IUSE="nls gimp jpeg jpeg2k lcms ${LANGS// / linguas_}"
+
+COMMON_DEPEND="
+ jpeg? ( virtual/jpeg:0 )
+ lcms? ( media-libs/lcms:2 )
+ jpeg2k? ( media-libs/jasper:= )
+ gimp? ( media-gfx/gimp )
+"
+DEPEND="${COMMON_DEPEND}
+ nls? ( sys-devel/gettext )
+ gimp? ( virtual/pkgconfig )
+"
+RDEPEND="${COMMON_DEPEND}
+ media-libs/netpbm
+"
+
+S=${WORKDIR}/dcraw
+
+DOC_CONTENTS="
+ See conversion-examples.txt.gz on how to convert
+ the PPM files produced by dcraw to other image formats.\n
+
+ \nThe functionality of the external program 'fujiturn' was
+ incorporated into dcraw and is automatically used now.\n
+
+ \nThere's an example wrapper script included called 'dcwrap'.
+ This package also includes 'dcparse', which extracts
+ thumbnail images (preferably JPEGs) from any raw digital
+ camera formats that have them, and shows table contents.
+"
+
+run_build() {
+ einfo "${@}"
+ ${@} || die
+}
+
+src_prepare() {
+ rename dcraw_ dcraw. dcraw_*.1 || die "Failed to rename"
+}
+
+src_compile() {
+ local ECFLAGS="-O2" # Without optimisation build fails
+ local ELIBS="-lm"
+
+ use lcms && ELIBS="-llcms2 ${ELIBS}" || ECFLAGS+=" -DNO_LCMS=yes"
+ use jpeg && ELIBS="-ljpeg ${ELIBS}" || ECFLAGS+=" -DNO_JPEG=yes"
+ use jpeg2k && ELIBS="-ljasper ${ELIBS}" || ECFLAGS+=" -DNO_JASPER=yes"
+ use nls && ECFLAGS+=" -DLOCALEDIR=\"/usr/share/locale/\""
+
+ run_build $(tc-getCC) ${ECFLAGS} ${CFLAGS} ${LDFLAGS} -o dcraw dcraw.c ${ELIBS}
+
+ run_build $(tc-getCC) -O2 ${CFLAGS} ${LDFLAGS} -o dcparse parse.c
+
+ # rawphoto gimp plugin
+ if use gimp; then
+ run_build $(tc-getCC) ${CFLAGS} ${LDFLAGS} \
+ $(pkg-config --cflags gimpui-2.0) rawphoto.c -o rawphoto \
+ $(pkg-config --libs gimpui-2.0)
+ fi
+
+ if use nls; then
+ for lang in ${LANGS}; do
+ use linguas_${lang} && run_build msgfmt -c -o dcraw_${lang}.mo dcraw_${lang}.po
+ done
+ fi
+}
+
+src_install() {
+ dobin dcraw dcparse
+ dodoc "${FILESDIR}"/{conversion-examples.txt,dcwrap}
+
+ # rawphoto gimp plugin
+ if use gimp; then
+ insinto "$(pkg-config --variable=gimplibdir gimp-2.0)/plug-ins"
+ insopts -m0755
+ doins rawphoto
+ fi
+
+ doman dcraw.1
+
+ if use nls; then
+ for lang in ${LANGS}; do
+ if use linguas_${lang}; then
+ [[ -f dcraw.${lang}.1 ]] && doman dcraw.${lang}.1
+ insinto /usr/share/locale/${lang}/LC_MESSAGES
+ newins dcraw_${lang}.mo dcraw.mo || die "failed to install dcraw_${lang}.mo"
+ fi
+ done
+ fi
+
+ readme.gentoo_create_doc
+}
diff --git a/media-gfx/dcraw/files/conversion-examples.txt b/media-gfx/dcraw/files/conversion-examples.txt
new file mode 100644
index 000000000000..8f179e2ed1e6
--- /dev/null
+++ b/media-gfx/dcraw/files/conversion-examples.txt
@@ -0,0 +1,18 @@
+Conversion examples
+===================
+
+CCD-RAW -> TIFF, using 'pnmtotiff' from the 'media-libs/netpbm' package:
+
+ $ dcraw -c crw_0001.crw | pnmtotiff -truecolor > crw_0001.tiff
+
+CCD-RAW -> PNG, using 'pnmtopng' from the 'media-libs/netpbm' package:
+
+ $ dcraw -c crw_0001.crw | pnmtopng > crw_0001.png
+
+CCD-RAW -> BMP, using 'ppmtobmp' from the 'media-libs/netpbm' package:
+
+ $ dcraw -c crw_0001.crw | ppmtobmp > crw_0001.bmp
+
+CCD-RAW -> JPEG, using 'cjpeg' from the 'media-libs/jpeg' package:
+
+ $ dcraw -c crw_0001.crw | cjpeg > crw_0001.jpeg
diff --git a/media-gfx/dcraw/files/dcwrap b/media-gfx/dcraw/files/dcwrap
new file mode 100644
index 000000000000..4d81e011c67d
--- /dev/null
+++ b/media-gfx/dcraw/files/dcwrap
@@ -0,0 +1,27 @@
+#!/bin/sh
+
+# Rough equivalents to XV's Sharpen algorithm
+
+cat > sharpen50.pgm << xx
+P2 3 3 18
+8 8 8 8 26 8 8 8 8
+xx
+cat > sharpen66.pgm << xx
+P2 3 3 18
+7 7 7 7 34 7 7 7 7
+xx
+cat > sharpen75.pgm << xx
+P2 3 3 6
+2 2 2 2 14 2 2 2 2
+xx
+cat > sharpen90.pgm << xx
+P2 3 3 2
+0 0 0 0 10 0 0 0 0
+xx
+
+for x in `ls *.crw | cut -d. -f1`
+do
+ dcraw -f -c $x.crw | pnmconvol sharpen66.pgm \
+ | cjpeg -quality 90 > $x.jpeg
+ touch -r $x.crw $x.jpeg
+done
diff --git a/media-gfx/dcraw/metadata.xml b/media-gfx/dcraw/metadata.xml
new file mode 100644
index 000000000000..4bd39cb546fb
--- /dev/null
+++ b/media-gfx/dcraw/metadata.xml
@@ -0,0 +1,16 @@
+<?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>
+ <longdescription>
+ This utility converts the native (RAW), format of various digital cameras into
+ netpbm portable pixmap (.ppm) image. Supports the following models: Canon,
+ Kodak, Olympus, Nikon, Fuji, Minolta and Sigma (see
+ http://www.cybercom.net/~dcoffin/dcraw/ for full list) Note: This utility does
+ not read directly from the cameras, only the files after they have been
+ downloaded, use gphoto2 for that.
+ </longdescription>
+</pkgmetadata>
diff --git a/media-gfx/digikam/Manifest b/media-gfx/digikam/Manifest
new file mode 100644
index 000000000000..588fb489247e
--- /dev/null
+++ b/media-gfx/digikam/Manifest
@@ -0,0 +1,8 @@
+AUX digikam-5.5.0-cmake-3.9.patch 7298 SHA256 e5c0d53fef931b7b63ea5ef308786309edb755449b07c9c0df3f7eca8f3efdfc SHA512 0a0f33f8b288fc98b95397ff615ab747bb78e35f8b6ed517e814dfebd32dd3f626f0c232d5b45a69bf80c4b548b72932fb376ce2308b0786b196e7fcdeda9b19 WHIRLPOOL 458201b08777e280a574e97c3bee759a50b2b5e595fc746661362b4132caf80795195ed4505d5d330aafab5d66a7e9c1c13fcacdf8364ba61f08a708c999d8b0
+DIST digikam-5.5.0.tar.xz 129499600 SHA256 df9cbf1b8dbfb9235cebc97e77c02fcb1498c5a905c7fd3b9fb42fd7accc6252 SHA512 3c64774916d4804d932009ba3753d387ecf31e9e3d435c580497d3badb6cc3e57ab5ef1a2334a23379d0987d96dd107be4f01adbb63039f4510aa94ac6d71344 WHIRLPOOL e67b444975ad37e939b2f62bba949bcafb41eee2975470daa02e4ffdd62c6c792b6656edf4811daead52fdc1bf064951fbec7b687192e5d5ee542d5d706140be
+DIST digikam-5.7.0.tar.xz 123315064 SHA256 3605ffb5b6e8fbd6b725e5075f74f505d7edee7531789c2882d11df2d20150f5 SHA512 626c9854311c637b994325237f171adce3dba39159fb336dfe95f1de287e2d08a3aaddd611eea87e8018047d331aff252b555c382cfbe1d8e14413c51a3849f4 WHIRLPOOL b452919ce9bcf8ccc8434586ace23b96b68b76f49d7229d418b2dc5883e9646c79fb99ecd660d732b8d96efc3a49b70d218756b09a3f16ef9f7f2b174679be70
+EBUILD digikam-5.5.0.ebuild 4754 SHA256 8d6e79167f0b922cc86dcf70cd49422c43695ba3ea6bde850ce2b54df381aba7 SHA512 19dd72651406bb4f3a899aa2e4e4ea6c650c5b33963bd9c437510c355349baeea89a91e7394868d57f3b73cf24433833428076cf574429dc9224c2799a08ed19 WHIRLPOOL 67932349fa632aeac00c97ed569b23d233c77572d177312c4c8c8e4005edec5215d054240ff30be7bc0c718eb6cd59184171b7e8e4d9c1d50cb857e8baed7a9d
+EBUILD digikam-5.7.0.ebuild 4808 SHA256 a4d9124705b69de516acbc3d6fa2ab3fe92ad24ff40b2423c85667916f1b8710 SHA512 da8fd9cbf5c4100856bd5c0dd161cc1e3dfc1aac6e33807e863a4c35ab14fb037bfc7b8da4cbdfeaf2ea22d803588225def5277fb5d87021f0a89c8609a45de5 WHIRLPOOL e9085f28a46a8a9d2c703a8d7cadc55abec639ca120f7b20f52f9485e3a82e071ce1f925d1afeea42c483e86e13315395c2cdfb27e66138592639b2e5177f103
+MISC ChangeLog 9931 SHA256 42d1c27e78baa5a8aa81696d859750e9e2b8c623d37d9ddbe80b3f0cabb56ada SHA512 2f1d5403d69a218fed1de26ad57a93a27ada29f676344e7e8b9b244ce7a77575635a952f87d034d169a16ce506b4646e3f628909f287e56ca413cd0ae04287c7 WHIRLPOOL 9ea6c963c28b4e9a952cbf42baadc8ad2545ed1d5469e7f8cfa06fa38bf182b8cfc53e223ddf385a845233f91d6d503676a9ee3f6227bbc99866cd01abbab679
+MISC ChangeLog-2015 45875 SHA256 b1324873b9728f31410ed0fa181335f50629c14fbcee2c5c26410b21633ecf8c SHA512 6e1edc01ad27802b6db00f8bf7cb45a36654fc9f11b66c63a22473715771f8528f45cc092cdfe28f6953af071ca865d294d2ecab024b760a0b5816944354dea7 WHIRLPOOL 17329f0a8e1ac9364e477006c7225b508cf0aa745b3e28744490b686a18266c115ef004276425ab9c725401b5be875e03cc883dd5edb0bcf1223a6efb4e47f2f
+MISC metadata.xml 962 SHA256 9767bec5276d984cf7905b25d8f556cf3b36bfe9ca01e1cf03da03dd715bdf75 SHA512 c8998f630fca57844cb258b42d6d557c7a6c65f8b0b90caf44225b62827e24eeaaa6defdf1334c7b7c80a1132aac96e178fe3b18ab59035534b605aed4665bab WHIRLPOOL b9e2dac6d982a1eea48a5030f3a02444a4a10dc11044e8b2e8fe0947a2b7cec8e86728a9470adc589b9ba9cd1ee36b3afaf40642e18e4a32b8b3ac93fcdba1a1
diff --git a/media-gfx/digikam/digikam-5.5.0.ebuild b/media-gfx/digikam/digikam-5.5.0.ebuild
new file mode 100644
index 000000000000..89258b8a7dae
--- /dev/null
+++ b/media-gfx/digikam/digikam-5.5.0.ebuild
@@ -0,0 +1,169 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+if [[ ${KDE_BUILD_TYPE} != live ]]; then
+ KDE_HANDBOOK="true"
+ KDE_TEST="true"
+fi
+CMAKE_MAKEFILE_GENERATOR="emake"
+inherit kde5 toolchain-funcs
+
+DESCRIPTION="Digital photo management application"
+HOMEPAGE="https://www.digikam.org/"
+
+LICENSE="GPL-2"
+KEYWORDS="amd64 x86"
+IUSE="addressbook calendar gphoto2 jpeg2k +kipi +lensfun marble semantic-desktop mysql opengl openmp +panorama scanner X"
+
+if [[ ${KDE_BUILD_TYPE} != live ]]; then
+ MY_PV=${PV/_/-}
+ MY_P=${PN}-${MY_PV}
+ SRC_BRANCH=stable
+ [[ ${PV} =~ beta[0-9]$ ]] && SRC_BRANCH=unstable
+ SRC_URI="mirror://kde/${SRC_BRANCH}/digikam/${MY_P}.tar.xz"
+ S="${WORKDIR}/${MY_P}/core"
+fi
+
+# TODO: Package QtAV http://www.qtav.org/
+# video? ( media-video/qtav )
+COMMON_DEPEND="
+ $(add_frameworks_dep kconfig)
+ $(add_frameworks_dep kconfigwidgets)
+ $(add_frameworks_dep kcoreaddons)
+ $(add_frameworks_dep kiconthemes)
+ $(add_frameworks_dep ki18n)
+ $(add_frameworks_dep kio)
+ $(add_frameworks_dep knotifications)
+ $(add_frameworks_dep knotifyconfig)
+ $(add_frameworks_dep kservice)
+ $(add_frameworks_dep kwidgetsaddons)
+ $(add_frameworks_dep kwindowsystem)
+ $(add_frameworks_dep kxmlgui)
+ $(add_frameworks_dep solid)
+ $(add_qt_dep qtdbus)
+ $(add_qt_dep qtgui '-gles2')
+ $(add_qt_dep qtprintsupport)
+ $(add_qt_dep qtsql 'mysql?')
+ $(add_qt_dep qtwebkit)
+ $(add_qt_dep qtwidgets)
+ $(add_qt_dep qtxml)
+ dev-libs/expat
+ media-gfx/exiv2:=
+ media-libs/lcms:2
+ media-libs/liblqr
+ >=media-libs/libpgf-6.12.27
+ media-libs/libpng:0=
+ media-libs/opencv:=[-qt4(-)]
+ || ( <media-libs/opencv-3.0.0 >=media-libs/opencv-3.1.0 )
+ media-libs/tiff:0
+ virtual/jpeg:0
+ addressbook? (
+ $(add_kdeapps_dep akonadi-contacts)
+ $(add_kdeapps_dep kcontacts)
+ )
+ calendar? ( $(add_kdeapps_dep kcalcore) )
+ gphoto2? ( media-libs/libgphoto2:= )
+ jpeg2k? ( media-libs/jasper:= )
+ kipi? ( $(add_kdeapps_dep libkipi '' '16.03.80') )
+ lensfun? ( media-libs/lensfun )
+ marble? (
+ $(add_frameworks_dep kbookmarks)
+ $(add_kdeapps_dep marble)
+ $(add_qt_dep qtconcurrent)
+ $(add_qt_dep qtnetwork)
+ )
+ mysql? ( virtual/mysql[server] )
+ opengl? (
+ $(add_qt_dep qtopengl)
+ virtual/opengl
+ )
+ panorama? ( $(add_frameworks_dep threadweaver) )
+ scanner? ( $(add_kdeapps_dep libksane) )
+ semantic-desktop? ( $(add_frameworks_dep kfilemetadata) )
+ X? (
+ $(add_qt_dep qtx11extras)
+ x11-libs/libX11
+ )
+"
+DEPEND="${COMMON_DEPEND}
+ $(add_qt_dep qtconcurrent)
+ dev-cpp/eigen:3
+ dev-libs/boost[threads]
+ sys-devel/gettext
+ panorama? (
+ sys-devel/bison
+ sys-devel/flex
+ )
+"
+RDEPEND="${COMMON_DEPEND}
+ media-plugins/kipi-plugins:5
+ panorama? ( media-gfx/hugin )
+ !media-gfx/digikam:4
+"
+
+RESTRICT=test
+# bug 366505
+
+PATCHES=( "${FILESDIR}/${P}-cmake-3.9.patch" )
+
+pkg_pretend() {
+ [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
+ kde5_pkg_pretend
+}
+
+pkg_setup() {
+ [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
+ kde5_pkg_setup
+}
+
+# FIXME: Unbundle libraw (libs/rawengine/libraw)
+src_prepare() {
+ if [[ ${KDE_BUILD_TYPE} != live ]]; then
+ # prepare the translations
+ mv "${WORKDIR}/${MY_P}/po" po || die
+ find po -name "*.po" -and -not -name "digikam.po" -delete || die
+ echo "set_property(GLOBAL PROPERTY ALLOW_DUPLICATE_CUSTOM_TARGETS 1)" >> CMakeLists.txt || die
+ echo "find_package(Gettext REQUIRED)" >> CMakeLists.txt || die
+ echo "add_subdirectory( po )" >> CMakeLists.txt || die
+
+ if use handbook; then
+ # subdirs need to be preserved b/c relative paths...
+ # doc-translated is, in fact, broken, and ignored
+ mv "${WORKDIR}/${MY_P}/doc/${PN}" doc-default || die
+ echo "find_package(KF5DocTools REQUIRED)" >> CMakeLists.txt || die
+ echo "add_subdirectory( doc-default )" >> CMakeLists.txt || die
+ fi
+ fi
+
+ if ! use marble; then
+ punt_bogus_dep Qt5 Network
+ fi
+
+ kde5_src_prepare
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DENABLE_APPSTYLES=ON
+ -DENABLE_AKONADICONTACTSUPPORT=$(usex addressbook)
+ -DENABLE_MYSQLSUPPORT=$(usex mysql)
+ -DENABLE_MEDIAPLAYER=OFF
+ -DENABLE_OPENCV3=$(has_version ">=media-libs/opencv-3" && echo yes || echo no)
+ $(cmake-utils_use_find_package calendar KF5CalendarCore)
+ $(cmake-utils_use_find_package gphoto2 Gphoto2)
+ $(cmake-utils_use_find_package jpeg2k Jasper)
+ $(cmake-utils_use_find_package kipi KF5Kipi)
+ $(cmake-utils_use_find_package lensfun LensFun)
+ $(cmake-utils_use_find_package marble Marble)
+ $(cmake-utils_use_find_package opengl OpenGL)
+ $(cmake-utils_use_find_package openmp OpenMP)
+ $(cmake-utils_use_find_package panorama KF5ThreadWeaver)
+ $(cmake-utils_use_find_package scanner KF5Sane)
+ $(cmake-utils_use_find_package semantic-desktop KF5FileMetaData)
+ $(cmake-utils_use_find_package X X11)
+ )
+
+ kde5_src_configure
+}
diff --git a/media-gfx/digikam/digikam-5.7.0.ebuild b/media-gfx/digikam/digikam-5.7.0.ebuild
new file mode 100644
index 000000000000..f5836f87eb1a
--- /dev/null
+++ b/media-gfx/digikam/digikam-5.7.0.ebuild
@@ -0,0 +1,168 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+if [[ ${KDE_BUILD_TYPE} != live ]]; then
+ KDE_HANDBOOK="true"
+ KDE_TEST="true"
+fi
+CMAKE_MAKEFILE_GENERATOR="emake"
+inherit kde5 toolchain-funcs
+
+DESCRIPTION="Digital photo management application"
+HOMEPAGE="https://www.digikam.org/"
+
+LICENSE="GPL-2"
+IUSE="addressbook calendar gphoto2 jpeg2k +kipi +lensfun marble mediaplayer semantic-desktop mysql opengl openmp +panorama scanner X"
+
+if [[ ${KDE_BUILD_TYPE} != live ]]; then
+ KEYWORDS="~amd64 ~x86"
+ MY_PV=${PV/_/-}
+ MY_P=${PN}-${MY_PV}
+ SRC_BRANCH=stable
+ [[ ${PV} =~ beta[0-9]$ ]] && SRC_BRANCH=unstable
+ SRC_URI="mirror://kde/${SRC_BRANCH}/digikam/${MY_P}.tar.xz"
+ S="${WORKDIR}/${MY_P}/core"
+fi
+
+# TODO: Package QtAV http://www.qtav.org/
+# video? ( media-video/qtav )
+COMMON_DEPEND="
+ $(add_frameworks_dep kconfig)
+ $(add_frameworks_dep kconfigwidgets)
+ $(add_frameworks_dep kcoreaddons)
+ $(add_frameworks_dep ki18n)
+ $(add_frameworks_dep kiconthemes)
+ $(add_frameworks_dep kio)
+ $(add_frameworks_dep knotifications)
+ $(add_frameworks_dep knotifyconfig)
+ $(add_frameworks_dep kservice)
+ $(add_frameworks_dep kwidgetsaddons)
+ $(add_frameworks_dep kwindowsystem)
+ $(add_frameworks_dep kxmlgui)
+ $(add_frameworks_dep solid)
+ $(add_qt_dep qtconcurrent)
+ $(add_qt_dep qtdbus)
+ $(add_qt_dep qtgui '-gles2')
+ $(add_qt_dep qtprintsupport)
+ $(add_qt_dep qtsql 'mysql?')
+ $(add_qt_dep qtwebkit)
+ $(add_qt_dep qtwidgets)
+ $(add_qt_dep qtxml)
+ dev-libs/expat
+ >=media-gfx/exiv2-0.26:=
+ media-libs/lcms:2
+ media-libs/liblqr
+ media-libs/libpng:0=
+ media-libs/opencv:=[-qt4(-)]
+ || ( <media-libs/opencv-3.0.0 >=media-libs/opencv-3.1.0 )
+ media-libs/tiff:0
+ virtual/jpeg:0
+ addressbook? (
+ $(add_kdeapps_dep akonadi-contacts)
+ $(add_kdeapps_dep kcontacts)
+ )
+ calendar? ( $(add_kdeapps_dep kcalcore) )
+ gphoto2? ( media-libs/libgphoto2:= )
+ jpeg2k? ( media-libs/jasper:= )
+ kipi? ( $(add_kdeapps_dep libkipi '' '16.03.80') )
+ lensfun? ( media-libs/lensfun )
+ marble? (
+ $(add_frameworks_dep kbookmarks)
+ $(add_kdeapps_dep marble)
+ $(add_qt_dep qtconcurrent)
+ $(add_qt_dep qtnetwork)
+ )
+ mediaplayer? ( media-libs/qtav[opengl] )
+ mysql? ( virtual/mysql[server] )
+ opengl? (
+ $(add_qt_dep qtopengl)
+ virtual/opengl
+ )
+ panorama? ( $(add_frameworks_dep threadweaver) )
+ scanner? ( $(add_kdeapps_dep libksane) )
+ semantic-desktop? ( $(add_frameworks_dep kfilemetadata) )
+ X? (
+ $(add_qt_dep qtx11extras)
+ x11-libs/libX11
+ )
+"
+DEPEND="${COMMON_DEPEND}
+ dev-cpp/eigen:3
+ dev-libs/boost[threads]
+ sys-devel/gettext
+ panorama? (
+ sys-devel/bison
+ sys-devel/flex
+ )
+"
+RDEPEND="${COMMON_DEPEND}
+ media-plugins/kipi-plugins:5
+ panorama? ( media-gfx/hugin )
+ !media-gfx/digikam:4
+"
+
+RESTRICT=test
+# bug 366505
+
+pkg_pretend() {
+ [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
+ kde5_pkg_pretend
+}
+
+pkg_setup() {
+ [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
+ kde5_pkg_setup
+}
+
+# FIXME: Unbundle libraw (libs/rawengine/libraw)
+src_prepare() {
+ if [[ ${KDE_BUILD_TYPE} != live ]]; then
+ # prepare the translations
+ mv "${WORKDIR}/${MY_P}/po" po || die
+ find po -name "*.po" -and -not -name "digikam.po" -delete || die
+ echo "set_property(GLOBAL PROPERTY ALLOW_DUPLICATE_CUSTOM_TARGETS 1)" >> CMakeLists.txt || die
+ echo "find_package(Gettext REQUIRED)" >> CMakeLists.txt || die
+ echo "add_subdirectory( po )" >> CMakeLists.txt || die
+
+ if use handbook; then
+ # subdirs need to be preserved b/c relative paths...
+ # doc-translated is, in fact, broken, and ignored
+ mv "${WORKDIR}/${MY_P}/doc/${PN}" doc-default || die
+ echo "find_package(KF5DocTools REQUIRED)" >> CMakeLists.txt || die
+ echo "add_subdirectory( doc-default )" >> CMakeLists.txt || die
+ fi
+ fi
+
+ if ! use marble; then
+ punt_bogus_dep Qt5 Network
+ fi
+
+ kde5_src_prepare
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DENABLE_APPSTYLES=ON
+ -DENABLE_AKONADICONTACTSUPPORT=$(usex addressbook)
+ -DENABLE_MEDIAPLAYER=$(usex mediaplayer)
+ -DENABLE_MYSQLSUPPORT=$(usex mysql)
+ -DENABLE_OPENCV3=$(has_version ">=media-libs/opencv-3" && echo yes || echo no)
+ $(cmake-utils_use_find_package calendar KF5CalendarCore)
+ $(cmake-utils_use_find_package gphoto2 Gphoto2)
+ $(cmake-utils_use_find_package jpeg2k Jasper)
+ $(cmake-utils_use_find_package kipi KF5Kipi)
+ $(cmake-utils_use_find_package lensfun LensFun)
+ $(cmake-utils_use_find_package marble Marble)
+ $(cmake-utils_use_find_package mediaplayer QtAV)
+ $(cmake-utils_use_find_package opengl OpenGL)
+ $(cmake-utils_use_find_package openmp OpenMP)
+ $(cmake-utils_use_find_package panorama KF5ThreadWeaver)
+ $(cmake-utils_use_find_package scanner KF5Sane)
+ $(cmake-utils_use_find_package semantic-desktop KF5FileMetaData)
+ $(cmake-utils_use_find_package X X11)
+ )
+
+ kde5_src_configure
+}
diff --git a/media-gfx/digikam/files/digikam-5.5.0-cmake-3.9.patch b/media-gfx/digikam/files/digikam-5.5.0-cmake-3.9.patch
new file mode 100644
index 000000000000..d87096a6024e
--- /dev/null
+++ b/media-gfx/digikam/files/digikam-5.5.0-cmake-3.9.patch
@@ -0,0 +1,170 @@
+commit 7e00441c257e7e9e5dc5ab983fc06046fb72b0c5
+Author: Gilles Caulier <caulier.gilles@gmail.com>
+Date: Sat Jul 22 15:46:08 2017 +0200
+
+ fix broken linking stage under MacOS with macports.
+ move database models into libdigikamdatabase.
+ Let's others model in place to be included into libdigikamcore
+
+diff --git a/libs/database/CMakeLists.txt b/libs/database/CMakeLists.txt
+index 7d055363fb..a431a36d7b 100644
+--- a/libs/database/CMakeLists.txt
++++ b/libs/database/CMakeLists.txt
+@@ -13,6 +13,18 @@ endif (POLICY CMP0063)
+ # Boost uses operator names (and, not, ...)
+ string(REPLACE "-fno-operator-names" "" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
+
++set(libdatabasemodels_SRCS
++ models/imagemodel.cpp
++ models/imagefiltermodel.cpp
++ models/imagefiltermodelpriv.cpp
++ models/imagefiltermodelthreads.cpp
++ models/imagefiltersettings.cpp
++ models/imagelistmodel.cpp
++ models/imagesortsettings.cpp
++ models/imagethumbnailmodel.cpp
++ models/imageversionsmodel.cpp
++)
++
+ set(libdatabasecore_SRCS
+ server/databaseserverstarter.cpp
+ server/databaseservererror.cpp
+@@ -152,10 +164,10 @@ if(ENABLE_DBUS)
+ include_directories($<TARGET_PROPERTY:Qt5::DBus,INTERFACE_INCLUDE_DIRECTORIES>)
+ endif()
+
+-add_library(digikamdatabase_src OBJECT ${digikamdatabase_LIB_SRCS})
++add_library(digikamdatabase_src OBJECT ${digikamdatabase_LIB_SRCS} ${libdatabasemodels_SRCS})
+ add_library(digikamdatabasemain_src OBJECT ${libdatabaseutils_SRCS} ${libimgqsort_SRCS})
+ add_library(digikamdatabasecore_src OBJECT ${libdatabasecore_SRCS})
+-add_library(digikamdatabase SHARED $<TARGET_OBJECTS:digikamdatabase_src> $<TARGET_OBJECTS:digikamdatabasemodels_src>)
++add_library(digikamdatabase $<TARGET_OBJECTS:digikamdatabase_src>)
+
+ generate_export_header(digikamdatabase
+ BASE_NAME digikam_database
+diff --git a/libs/models/imagefiltermodel.cpp b/libs/database/models/imagefiltermodel.cpp
+similarity index 100%
+rename from libs/models/imagefiltermodel.cpp
+rename to libs/database/models/imagefiltermodel.cpp
+diff --git a/libs/models/imagefiltermodel.h b/libs/database/models/imagefiltermodel.h
+similarity index 100%
+rename from libs/models/imagefiltermodel.h
+rename to libs/database/models/imagefiltermodel.h
+diff --git a/libs/models/imagefiltermodelpriv.cpp b/libs/database/models/imagefiltermodelpriv.cpp
+similarity index 100%
+rename from libs/models/imagefiltermodelpriv.cpp
+rename to libs/database/models/imagefiltermodelpriv.cpp
+diff --git a/libs/models/imagefiltermodelpriv.h b/libs/database/models/imagefiltermodelpriv.h
+similarity index 100%
+rename from libs/models/imagefiltermodelpriv.h
+rename to libs/database/models/imagefiltermodelpriv.h
+diff --git a/libs/models/imagefiltermodelthreads.cpp b/libs/database/models/imagefiltermodelthreads.cpp
+similarity index 100%
+rename from libs/models/imagefiltermodelthreads.cpp
+rename to libs/database/models/imagefiltermodelthreads.cpp
+diff --git a/libs/models/imagefiltermodelthreads.h b/libs/database/models/imagefiltermodelthreads.h
+similarity index 100%
+rename from libs/models/imagefiltermodelthreads.h
+rename to libs/database/models/imagefiltermodelthreads.h
+diff --git a/libs/models/imagefiltersettings.cpp b/libs/database/models/imagefiltersettings.cpp
+similarity index 100%
+rename from libs/models/imagefiltersettings.cpp
+rename to libs/database/models/imagefiltersettings.cpp
+diff --git a/libs/models/imagefiltersettings.h b/libs/database/models/imagefiltersettings.h
+similarity index 100%
+rename from libs/models/imagefiltersettings.h
+rename to libs/database/models/imagefiltersettings.h
+diff --git a/libs/models/imagelistmodel.cpp b/libs/database/models/imagelistmodel.cpp
+similarity index 100%
+rename from libs/models/imagelistmodel.cpp
+rename to libs/database/models/imagelistmodel.cpp
+diff --git a/libs/models/imagelistmodel.h b/libs/database/models/imagelistmodel.h
+similarity index 100%
+rename from libs/models/imagelistmodel.h
+rename to libs/database/models/imagelistmodel.h
+diff --git a/libs/models/imagemodel.cpp b/libs/database/models/imagemodel.cpp
+similarity index 100%
+rename from libs/models/imagemodel.cpp
+rename to libs/database/models/imagemodel.cpp
+diff --git a/libs/models/imagemodel.h b/libs/database/models/imagemodel.h
+similarity index 100%
+rename from libs/models/imagemodel.h
+rename to libs/database/models/imagemodel.h
+diff --git a/libs/models/imagesortsettings.cpp b/libs/database/models/imagesortsettings.cpp
+similarity index 100%
+rename from libs/models/imagesortsettings.cpp
+rename to libs/database/models/imagesortsettings.cpp
+diff --git a/libs/models/imagesortsettings.h b/libs/database/models/imagesortsettings.h
+similarity index 100%
+rename from libs/models/imagesortsettings.h
+rename to libs/database/models/imagesortsettings.h
+diff --git a/libs/models/imagethumbnailmodel.cpp b/libs/database/models/imagethumbnailmodel.cpp
+similarity index 100%
+rename from libs/models/imagethumbnailmodel.cpp
+rename to libs/database/models/imagethumbnailmodel.cpp
+diff --git a/libs/models/imagethumbnailmodel.h b/libs/database/models/imagethumbnailmodel.h
+similarity index 100%
+rename from libs/models/imagethumbnailmodel.h
+rename to libs/database/models/imagethumbnailmodel.h
+diff --git a/libs/models/imageversionsmodel.cpp b/libs/database/models/imageversionsmodel.cpp
+similarity index 100%
+rename from libs/models/imageversionsmodel.cpp
+rename to libs/database/models/imageversionsmodel.cpp
+diff --git a/libs/models/imageversionsmodel.h b/libs/database/models/imageversionsmodel.h
+similarity index 100%
+rename from libs/models/imageversionsmodel.h
+rename to libs/database/models/imageversionsmodel.h
+diff --git a/libs/models/CMakeLists.txt b/libs/models/CMakeLists.txt
+index cbabfaa9b8..804456b955 100644
+--- a/libs/models/CMakeLists.txt
++++ b/libs/models/CMakeLists.txt
+@@ -9,18 +9,6 @@ if (POLICY CMP0063)
+ cmake_policy(SET CMP0063 NEW)
+ endif (POLICY CMP0063)
+
+-set(libdatabasemodels_SRCS
+- imagemodel.cpp
+- imagefiltermodel.cpp
+- imagefiltermodelpriv.cpp
+- imagefiltermodelthreads.cpp
+- imagefiltersettings.cpp
+- imagelistmodel.cpp
+- imagesortsettings.cpp
+- imagethumbnailmodel.cpp
+- imageversionsmodel.cpp
+-)
+-
+ set(libalbummodels_SRCS
+ imagealbummodel.cpp
+ imagealbumfiltermodel.cpp
+@@ -52,5 +40,4 @@ endif()
+ #for digikam core lib
+ add_library(digikamgenericmodels_src OBJECT ${libgenericmodels_SRCS})
+
+-add_library(digikamdatabasemodels_src OBJECT ${libdatabasemodels_SRCS})
+-add_library(digikammodels_src OBJECT ${libalbummodels_SRCS} ${libgenericmodels_SRCS})
++add_library(digikammodels_src OBJECT ${libalbummodels_SRCS} ${libgenericmodels_SRCS})
+
+From c51043283aa9d2612b88afe0146f0d63c77b08ed Mon Sep 17 00:00:00 2001
+From: Simon Frei <freisim93@gmail.com>
+Date: Wed, 2 Aug 2017 12:12:55 +0200
+Subject: cmake: Fix warning: Remove ECMPackageConfigHelpers (unused)
+
+---
+ CMakeLists.txt | 1 -
+ 1 file changed, 1 deletion(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 2aaf56b..9a48492 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -80,7 +80,6 @@ include(ECMAddTests)
+ include(ECMMarkNonGuiExecutable)
+ include(ECMGenerateHeaders)
+ include(ECMGeneratePriFile)
+-include(ECMPackageConfigHelpers)
+ include(ECMSetupVersion)
+ include(ECMInstallIcons)
+ include(ECMAddAppIcon)
+--
+cgit v0.11.2
diff --git a/media-gfx/digikam/metadata.xml b/media-gfx/digikam/metadata.xml
new file mode 100644
index 000000000000..59e835b01838
--- /dev/null
+++ b/media-gfx/digikam/metadata.xml
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>dilfridge@gentoo.org</email>
+ </maintainer>
+ <maintainer type="project">
+ <email>kde@gentoo.org</email>
+ <name>Gentoo KDE Project</name>
+ </maintainer>
+ <use>
+ <flag name="addressbook">Enable akonadi contact integration</flag>
+ <flag name="kipi">Enable support for <pkg>media-plugins/kipi-plugins</pkg></flag>
+ <flag name="lensfun">Enable support for <pkg>media-libs/lensfun</pkg></flag>
+ <flag name="marble">Enable support for geolocation using <pkg>kde-apps/marble</pkg></flag>
+ <flag name="mediaplayer">Enable support for media player using <pkg>media-libs/qtav</pkg></flag>
+ <flag name="panorama">Build the panorama plugin which requires <pkg>media-gfx/hugin</pkg></flag>
+ <flag name="semantic-desktop">Enable <pkg>kde-frameworks/kfilemetadata</pkg> support</flag>
+ </use>
+</pkgmetadata>
diff --git a/media-gfx/displaycal/Manifest b/media-gfx/displaycal/Manifest
new file mode 100644
index 000000000000..d41bd726bc50
--- /dev/null
+++ b/media-gfx/displaycal/Manifest
@@ -0,0 +1,6 @@
+DIST DisplayCAL-3.3.3.0.tar.gz 9887918 SHA256 47bcd09a44d43eb550fcd6f486d3f37c204a17b74fd9517991707856f54ca178 SHA512 2f9ac1ac2ce24629695f70078625ac4dc6e1346a675cd55658efc3631a6a37546cf6dc7b2747ae77b3681e7f7c816527497f53564e6cb51ce71a132d93955534 WHIRLPOOL 9b68dad41092d29fc7c15b34cfe3b1b034d7100eb8eeabbc1d9b1214c7670dc423fd9767830c2cf2ef007d2cc14238a0d608658206c76b0db59408d08daf863c
+DIST DisplayCAL-3.3.4.1.tar.gz 9909570 SHA256 0f4b15ef1b9bbc4ef5107651149373bb7c3dd76c524d55f9143b717e0fb0ad53 SHA512 c596333e298aea9366c808c074e467a49e32fa00b0534ae8ce6ad89d0250cf1f2a013dac0d87444edb911bcdea053a462026e335cfc2aa507a932217f1dcd272 WHIRLPOOL 0d74647f8876d6d97ccc9c969fd8a21264135f83b3db838702dd6545851670b89c48ed206ab247d885d3e80abe75378268be5a3b6c9db0981efab98a44f24fb0
+EBUILD displaycal-3.3.3.0.ebuild 1415 SHA256 bd2851aeb778402ef7ccad422c133df8c03f1b4b3d90c2eb39ebaec2146b8765 SHA512 c4f94565c12a623dfd1d7e7854655ddc9a1d09a7545fdf89aaa7fca713ece4a4647d0dc996269edbc22f658a850428d277d283c5dfb17d2491a30ced932b21c2 WHIRLPOOL 2fdbff04d74f813851d1863fd8870dac1dc871fc358ec325faffe7868d3945f32fd25ce135e443a9e41775f3d426a05ce4eb9c4bf95a510008ad75fa095bc786
+EBUILD displaycal-3.3.4.1.ebuild 1415 SHA256 bd2851aeb778402ef7ccad422c133df8c03f1b4b3d90c2eb39ebaec2146b8765 SHA512 c4f94565c12a623dfd1d7e7854655ddc9a1d09a7545fdf89aaa7fca713ece4a4647d0dc996269edbc22f658a850428d277d283c5dfb17d2491a30ced932b21c2 WHIRLPOOL 2fdbff04d74f813851d1863fd8870dac1dc871fc358ec325faffe7868d3945f32fd25ce135e443a9e41775f3d426a05ce4eb9c4bf95a510008ad75fa095bc786
+MISC ChangeLog 1647 SHA256 a6c9f60a92412cdf15a3bd1e29033908cf93ba894422f4659a94b2922e7c15a9 SHA512 27519e3645e183b2ce4fa325742daac27b444f58092b55063c02f74e44835b877b5233db6e99fa29ca1342b0f34f2a18dddf493c860fc82e57e9bf24b38effcd WHIRLPOOL 2d544d696d759d436e5f7eee698d0cbeb86cf0fa1e5ef078718a5b56e6cf915a8aca6b954091034810d1e1d28b723193f812d6be89a49ccd2e85576ec75f9846
+MISC metadata.xml 342 SHA256 9cc5c72fe3654885e3c3716d157597605ed9026ff9cbb70c83e35ad87ce36427 SHA512 f9d5979fc8525c40af8d4e64afb8264873b0ae7cda1e9c4f3b3f30957c2a4f7fcbab76002783213a896395e8b5ef78e315441c28872589a91a0035d5f346d317 WHIRLPOOL 1bbd38a6ec1b494b739daace5e21e557e6ac0b5299585e37805728280042c22c92b9b30d6723ead6d3c1f4d5c59e9cb6821f54cf63877ac87a2961647ecd9ce0
diff --git a/media-gfx/displaycal/displaycal-3.3.3.0.ebuild b/media-gfx/displaycal/displaycal-3.3.3.0.ebuild
new file mode 100644
index 000000000000..4beb3e30e0da
--- /dev/null
+++ b/media-gfx/displaycal/displaycal-3.3.3.0.ebuild
@@ -0,0 +1,54 @@
+# 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 xdg
+
+MY_PN="DisplayCAL"
+MY_P="${MY_PN}-${PV}"
+
+DESCRIPTION="Display calibration and characterization powered by Argyll CMS"
+HOMEPAGE="https://displaycal.net/"
+SRC_URI="mirror://sourceforge/dispcalgui/${MY_P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="
+ >=media-gfx/argyllcms-1.1.0
+ dev-python/wxpython:3.0
+ >=x11-libs/libX11-1.3.3
+ >=x11-apps/xrandr-1.3.2
+ >=x11-libs/libXxf86vm-1.1.0
+ >=x11-proto/xineramaproto-1.2
+ >=x11-libs/libXinerama-1.1
+"
+RDEPEND="${DEPEND}
+ >=dev-python/numpy-1.2.1
+"
+
+# Just in case someone renames the ebuild
+S="${WORKDIR}/${MY_P}"
+
+src_prepare() {
+ # Do not generate udev/hotplug files
+ sed -e '/if os.path.isdir/s#/etc/udev/rules.d\|/etc/hotplug#\0-non-existant#' \
+ -i DisplayCAL/setup.py || die
+ # Prohibit setup from running xdg-* programs, resulting to sandbox violation
+ sed -e '/if which/s#xdg-icon-resource#\0-non-existant#' \
+ -e '/if which/s#xdg-desktop-menu#\0-non-existant#' \
+ -i DisplayCAL/postinstall.py || die
+
+ # Remove deprecated Encoding key from .desktop file
+ sed -e '/Encoding=UTF-8/d' -i misc/*.desktop || die
+
+ # Remove x-world Media Type
+ sed -e 's/x\-world\/x\-vrml\;//g' \
+ -i misc/displaycal-vrml-to-x3d-converter.desktop || die
+
+ distutils-r1_src_prepare
+}
diff --git a/media-gfx/displaycal/displaycal-3.3.4.1.ebuild b/media-gfx/displaycal/displaycal-3.3.4.1.ebuild
new file mode 100644
index 000000000000..4beb3e30e0da
--- /dev/null
+++ b/media-gfx/displaycal/displaycal-3.3.4.1.ebuild
@@ -0,0 +1,54 @@
+# 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 xdg
+
+MY_PN="DisplayCAL"
+MY_P="${MY_PN}-${PV}"
+
+DESCRIPTION="Display calibration and characterization powered by Argyll CMS"
+HOMEPAGE="https://displaycal.net/"
+SRC_URI="mirror://sourceforge/dispcalgui/${MY_P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="
+ >=media-gfx/argyllcms-1.1.0
+ dev-python/wxpython:3.0
+ >=x11-libs/libX11-1.3.3
+ >=x11-apps/xrandr-1.3.2
+ >=x11-libs/libXxf86vm-1.1.0
+ >=x11-proto/xineramaproto-1.2
+ >=x11-libs/libXinerama-1.1
+"
+RDEPEND="${DEPEND}
+ >=dev-python/numpy-1.2.1
+"
+
+# Just in case someone renames the ebuild
+S="${WORKDIR}/${MY_P}"
+
+src_prepare() {
+ # Do not generate udev/hotplug files
+ sed -e '/if os.path.isdir/s#/etc/udev/rules.d\|/etc/hotplug#\0-non-existant#' \
+ -i DisplayCAL/setup.py || die
+ # Prohibit setup from running xdg-* programs, resulting to sandbox violation
+ sed -e '/if which/s#xdg-icon-resource#\0-non-existant#' \
+ -e '/if which/s#xdg-desktop-menu#\0-non-existant#' \
+ -i DisplayCAL/postinstall.py || die
+
+ # Remove deprecated Encoding key from .desktop file
+ sed -e '/Encoding=UTF-8/d' -i misc/*.desktop || die
+
+ # Remove x-world Media Type
+ sed -e 's/x\-world\/x\-vrml\;//g' \
+ -i misc/displaycal-vrml-to-x3d-converter.desktop || die
+
+ distutils-r1_src_prepare
+}
diff --git a/media-gfx/displaycal/metadata.xml b/media-gfx/displaycal/metadata.xml
new file mode 100644
index 000000000000..8e283c117bd8
--- /dev/null
+++ b/media-gfx/displaycal/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>voyageur@gentoo.org</email>
+ <name>Bernard Cafarelli</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">dispcalgui</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/media-gfx/ditaa/Manifest b/media-gfx/ditaa/Manifest
new file mode 100644
index 000000000000..a4d4156ed54e
--- /dev/null
+++ b/media-gfx/ditaa/Manifest
@@ -0,0 +1,3 @@
+DIST ditaa-0.10.tar.gz 4514464 SHA256 82e49065d408cba8b323eea0b7f49899578336d566096c6eb6e2d0a28745d63b SHA512 0abd70657d53ddf222d6a86b0c68064d1da093e421b060f59f73b91dccfdf7764beaad96bb1553c0d4b1c8a57b4922de63b20196a1ce3929b4a2e68b6f2a793c WHIRLPOOL d4099c7ed5661e87514f2e5221af397c4cdbaae4dcca8fc8d9fe9b8a470f6345c7d4dddeaed43c00d4dfa7d9738ade357246b66bb7eea252976aee60afef33bc
+EBUILD ditaa-0.10.ebuild 877 SHA256 049722e1356a1ed4ff5031c8d60327558ab66207d6e850409cb49a50ee2577c3 SHA512 16a191d7bd8eb04a12f5099aab7103ced74004baafa67edd4567e410c33e538ce32a086f6ffb961ad210136dfd60ccee2919e7341709c41669945ad11378d6c2 WHIRLPOOL 2622c5a72f4d566a52fa116d088f59279c350550964b62e620a0d8856747e6fc2ee58e05d922486348c383d07bd1f27362a35ae49c1c7d64238fe5d4fa876fdc
+MISC metadata.xml 353 SHA256 5daf2fd98982103752c053cadd63441af34bee5835ba5924971474cb2b2d572f SHA512 6112ea1ba12f0d98ae7fa47f05e85bd2394dc84fb5ac3cce4979f4bf45ec8796b77482b74c7e58086243bc3d5d57128a59cee7bd085308a2a5f373e27ce043de WHIRLPOOL e078949794349996098e6b21f1b2501f7921212c8522cdfffdc5328cc060d3ad01e6672dfd05062e72fd2717129828fe1e169bdc1b20c29830dcc53722af674e
diff --git a/media-gfx/ditaa/ditaa-0.10.ebuild b/media-gfx/ditaa/ditaa-0.10.ebuild
new file mode 100644
index 000000000000..2880c26215bb
--- /dev/null
+++ b/media-gfx/ditaa/ditaa-0.10.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit java-pkg-2
+
+DESCRIPTION="A utility that converts ascii-art diagrams to bitmap diagrams"
+HOMEPAGE="https://github.com/stathissideris/ditaa"
+SRC_URI="https://github.com/stathissideris/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="LGPL-3+"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="dev-java/ant-core:0
+ >=virtual/jdk-1.7:*"
+RDEPEND=">=virtual/jdk-1.7:*"
+
+src_prepare() {
+ default
+ sed "s:0_9:${PV/./_}:" -i build/release.xml || die
+ sed "s:version 0.9:version ${PV}:" -i \
+ src/org/stathissideris/ascii2image/core/CommandLineConverter.java || die
+}
+
+src_compile() {
+ mkdir bin || die
+ ant -buildfile build/release.xml release-jar || die
+}
+
+src_install() {
+ java-pkg_newjar releases/${PN}${PV/./_}.jar ${PN}.jar
+ java-pkg_dolauncher ${PN}
+}
diff --git a/media-gfx/ditaa/metadata.xml b/media-gfx/ditaa/metadata.xml
new file mode 100644
index 000000000000..fac0708bcccb
--- /dev/null
+++ b/media-gfx/ditaa/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <upstream>
+ <remote-id type="github">stathissideris/ditaa</remote-id>
+ <remote-id type="sourceforge">ditaa</remote-id>
+ </upstream>
+ <maintainer type="person">
+ <email>zmedico@gentoo.org</email>
+ </maintainer>
+</pkgmetadata>
diff --git a/media-gfx/dpic/Manifest b/media-gfx/dpic/Manifest
new file mode 100644
index 000000000000..a1f88051d2ab
--- /dev/null
+++ b/media-gfx/dpic/Manifest
@@ -0,0 +1,9 @@
+DIST dpic-2013.03.10.tar.gz 583366 SHA256 3ba961675f23ee2b9c035b60e43ce672007ad29a8ab810404f64a4098edcdac1 SHA512 a1c29f32bddeabfcfba1e0253ab502ca2c32c9ad4d490c8b2a7569643972a65ebdc26215888aaba7b2954b217e1667b469d49affb0a771832e98aa5ad25dd9f5 WHIRLPOOL e01915a94a6cd587945e12dc15eed23607914e219f4ef8586d8c221201d6073fff749dfd0838c8adc23848db59b1015e01cffad0f802b386e20a671391a96780
+DIST dpic-2016.07.12.tar.gz 1241451 SHA256 e2de7e52d11af26532e24a0ec21a1034a60cc3ec7224f90ba401b60ee8d07544 SHA512 f063e492125eee02a3bd55805dd7cc64c76f3c2002a3c5a125c47588ed690b0ac1c372ca004b24ba79e2064e18f24d9d4f47dd90b24952beb2fcb73314d68aec WHIRLPOOL f82d789d2a34eec6fa0b769f51b06d515dcb56d1d3eff9f7ddef9bb8797cd67d45cb396cbd7d55121dd32b65ab35c692ee2257dc867a92ee6cc4f2a3936b316d
+DIST dpic-2016.08.24.tar.gz 1241900 SHA256 84c8636364912b0152df2f2078cceb08a4be8ac3e4c259f925161872429b19d2 SHA512 5e8fae76d79f8bdf8ca4427c4cb4ea6be272edc74ff5f8ab4c9434283fe9c5443fe4fb2d4a0fba1c17f14ed05f2d82aeb26cf186c797e3a93d92508f3557d630 WHIRLPOOL b92d85cac9b7cc42ad32a2326f99f87c3a985d1693d61cbe8ec0e32ed10f9b31e591f4d8d5db0cb62322a151f92a49e61d104153aaf97cb1bba8c60bbae4123d
+EBUILD dpic-20130310.ebuild 714 SHA256 e198ba732d869534ee65ffbf009eac4e22bcb68407c84aa8cbcf9c58dd1205c7 SHA512 7a1f65008c5b431531024f708757833f450e0e79a19ebd2577c8ce18baf0c26b6aa319e757aef48f9f995a57073ae4f1b99d4e1a2de797262b8fd52880702f1b WHIRLPOOL 6dc18f7c2879d56de1a7f6616c01ac97d19d59d71c101c9b0dffc69cadec07aec808dcd32b0ae72d643a2203e7df83d0f8c12543e2e72163e00efd38fa06cbc3
+EBUILD dpic-20160712.ebuild 711 SHA256 0562b74c7ad699b476458d769dec0e93682cc58d4060119474c774922838c179 SHA512 443f190c7373acd07154dbab3e7d7492c5694f10da599f95618d2f75bc1fc7a15db6d1f92b376dab43de78f247ae18c73b2d95f1f5b95ec93cdae89d453427a0 WHIRLPOOL 47c655f47c39ec926181f71f0dc4da5e01b9b3645bf81771bccb61f05418b1eaa2e092b94e4d0b2da9a1237a45adb168959a654bca3f234525d64d6e988332f3
+EBUILD dpic-20160824.ebuild 711 SHA256 542dbae38d47145d4aadf3c4623187b7fd4c9b33021801c2b96fa9763f84a6a2 SHA512 3c8c61a130b3c807c41102894995966a51a30591fe9b4507d72b41c32beb4b46b7cf2a35019f9f7948031475d7c3c37501c729a652ae48d78bfad88f5159508f WHIRLPOOL 44ba47ed680f089b82b984bbe966a929b93aa6ba7f5b2d333ad32565d2dd7d57e5bc7263fd6dc59d59452f1bee0cf52045e71c98e8056c370972e9f3ed0ad39d
+MISC ChangeLog 3376 SHA256 32639b00925ce53a987c5cf5b92b4b57c023060018571727227e1f13f58ccae2 SHA512 bd47145c4156d104c74594be572ca5f8cafca99cb0067be231922a0a728784e1b84cf67caf3a285c2ac01487e1a1fbb62202571c3b99a1032a5911154428c422 WHIRLPOOL f3a4cb26b8a19ae00978b85b7ac363e815c74d772d9b6af780198e3775b9547d8b7ddbaab11d941d56b82c35ef5ab45144835b07ab679ad47046ccf16e3dd286
+MISC ChangeLog-2015 1507 SHA256 fdccaf8c855eb6e5f542e3275e453450d15cf6e5d18d10ec1fcc1061ac4967b0 SHA512 a09a2bb2a70ef9e909096b52793f2e66f2dadcf783e6e9f4840b086240396b508c4bf50502a6bb4af7c16b5740c6e72015dbffad1936fba0fdaba3f01a356580 WHIRLPOOL a5b512bf52c4c00bc8340a47fc5dd87d84ff03b05f242e4601d095a5f047c99c5aaea58e8f75665c476b4a06b68eaf6b6b7070fca122534c6ed27484e28a9b93
+MISC metadata.xml 670 SHA256 82f91845f9272f9ff8ece805489ff9bfce47b175450abdd665fcb5eeeb72b107 SHA512 c236776d4cdc5c202ef03aad5eb4b94906ea9d2981773d0bf05460147cd73b2ef9f64b354ba3782e95c0effa5b9b0564f427e78cd3c776f7bae9e57471db0eeb WHIRLPOOL cc383bff6d8080153fdbb0405c6999f00b6eb356c98f08c1e70c4656cf41d366f5adfe261cff4e9ae04dec47cb317c20f754e518987671dbc41ae8e20be2c51d
diff --git a/media-gfx/dpic/dpic-20130310.ebuild b/media-gfx/dpic/dpic-20130310.ebuild
new file mode 100644
index 000000000000..a21a1659b42e
--- /dev/null
+++ b/media-gfx/dpic/dpic-20130310.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit toolchain-funcs
+
+DESCRIPTION="Converts PIC plots into pstricks, PGF/TikZ, PostScript, MetaPost and TeX"
+HOMEPAGE="http://ece.uwaterloo.ca/~aplevich/dpic"
+SRC_URI="https://ece.uwaterloo.ca/~aplevich/dpic/${PN}-2013.03.10.tar.gz"
+
+LICENSE="BSD-2 CC-BY-3.0 GPL-2+"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="examples"
+
+DEPEND=""
+RDEPEND=""
+
+S="${WORKDIR}/${PN}"
+
+src_compile () {
+ emake CC="$(tc-getCC)"
+}
+
+src_install () {
+ dobin dpic
+ doman doc/dpic.1
+ dodoc README CHANGES doc/dpicdoc.pdf doc/gpic.pdf
+ if use examples; then
+ dodoc -r examples
+ docompress -x /usr/share/doc/${PF}/examples
+ fi
+}
diff --git a/media-gfx/dpic/dpic-20160712.ebuild b/media-gfx/dpic/dpic-20160712.ebuild
new file mode 100644
index 000000000000..92607647d0e5
--- /dev/null
+++ b/media-gfx/dpic/dpic-20160712.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DESCRIPTION="Converts PIC plots into pstricks, PGF/TikZ, PostScript, MetaPost and TeX"
+HOMEPAGE="https://ece.uwaterloo.ca/~aplevich/dpic"
+SRC_URI="https://ece.uwaterloo.ca/~aplevich/dpic/${PN}-2016.07.12.tar.gz"
+
+# dpic: BSD-2, dpicdoc.pdf: CC-BY-3.0, p2c: GPL
+LICENSE="BSD-2 CC-BY-3.0 GPL-2+"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="examples"
+
+DEPEND=""
+RDEPEND=""
+
+S="${WORKDIR}/${PN}-2016.07.12"
+
+DOCS=( README doc/dpicdoc.pdf )
+
+src_install () {
+ dobin "${PN}"
+ doman "doc/${PN}.1"
+
+ einstalldocs
+
+ if use examples; then
+ dodoc -r examples
+ docompress -x /usr/share/doc/${PF}/examples
+ fi
+}
diff --git a/media-gfx/dpic/dpic-20160824.ebuild b/media-gfx/dpic/dpic-20160824.ebuild
new file mode 100644
index 000000000000..c102eef74e4c
--- /dev/null
+++ b/media-gfx/dpic/dpic-20160824.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DESCRIPTION="Converts PIC plots into pstricks, PGF/TikZ, PostScript, MetaPost and TeX"
+HOMEPAGE="https://ece.uwaterloo.ca/~aplevich/dpic"
+SRC_URI="https://ece.uwaterloo.ca/~aplevich/dpic/${PN}-2016.08.24.tar.gz"
+
+# dpic: BSD-2, dpicdoc.pdf: CC-BY-3.0, p2c: GPL
+LICENSE="BSD-2 CC-BY-3.0 GPL-2+"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="examples"
+
+DEPEND=""
+RDEPEND=""
+
+S="${WORKDIR}/${PN}-2016.08.24"
+
+DOCS=( "README" "doc/dpicdoc.pdf" )
+
+src_install () {
+ dobin ${PN}
+ doman doc/${PN}.1
+
+ einstalldocs
+
+ if use examples; then
+ dodoc -r examples
+ docompress -x /usr/share/doc/${PF}/examples
+ fi
+}
diff --git a/media-gfx/dpic/metadata.xml b/media-gfx/dpic/metadata.xml
new file mode 100644
index 000000000000..b992ad5f686f
--- /dev/null
+++ b/media-gfx/dpic/metadata.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <upstream>
+ <changelog>https://ece.uwaterloo.ca/~aplevich/dpic/CHANGES</changelog>
+ <doc>https://ece.uwaterloo.ca/~aplevich/dpic/dpicdoc.pdf</doc>
+ <maintainer status="active">
+ <name>J. D. Aplevich</name>
+ </maintainer>
+ </upstream>
+ <maintainer type="project">
+ <email>tex@gentoo.org</email>
+ <name>Gentoo TeX Project</name>
+ </maintainer>
+ <longdescription>Dpic is an implementation of the pic "little language" for creating line drawings and illustrations for documents, web pages, and other uses.
+ </longdescription>
+</pkgmetadata>
diff --git a/media-gfx/duhdraw/Manifest b/media-gfx/duhdraw/Manifest
new file mode 100644
index 000000000000..d73dc421433f
--- /dev/null
+++ b/media-gfx/duhdraw/Manifest
@@ -0,0 +1,7 @@
+AUX duhdraw-2.8.13-macos.patch 329 SHA256 07c568dda392ced88fec58b26c987ee7dd61933940d2edb694788314fdbcb8c6 SHA512 6a971ed804c04594e88b240a7361a94f61c721ff47fd3e81d99af812cf20ded8a4ef5213b644eaeee76d73145f5057d3839569941b060e7b93589debe0c73e40 WHIRLPOOL 8c7d40008954afb9b86e6bb97dbe0637936623abde5bcacf721d180e872230661d25c9820975290ccb42001b93a36143123725b3958da705c8173dd32415144b
+AUX duhdraw-2.8.13-prestrip.patch 425 SHA256 05a358736bbc1f46840352a13935bd72e6be915ca8721f7d2f5c6ec0b1e0d391 SHA512 cc37c5e6c41b9e4088f956db44241ebca6e34a01e89f87e0d28674395569af4cbe69b8a03f6ef9ec131d87ec38eb34992da17360f674f583e6275fce20732fe1 WHIRLPOOL 97f8be340fc477cae03d0ff368e077e352b8dcd83bee896d9f4bcb35050956f281129d4941d6bd2c8bba4f69773396194af77b2b6ee1a665d94e3d7a87e66873
+DIST duhdraw-2.8.13.tar.gz 51779 SHA256 12a432d2874a6f0579879e3242d832139b7f2a4879b2cfcfb6ced046236b4b2c SHA512 fa9102133dcd100b2cde58d4d92aabfcdf86bb16a8066191e92922d6cea470094ff226e569bf92d34e1f0f6a3e657eaf3326cecf091ed1bc37bd2faace340798 WHIRLPOOL d0adabe102251c2c6c7287a1466de1525e18f1c74d6df1b4a444c15fbdc5dc4ddbc822d11069d9c6f0cff18bbd60daa408dbcc74b058f647b31b9dc8cdc749d3
+EBUILD duhdraw-2.8.13-r1.ebuild 671 SHA256 f5ace80dbe969bbdac5a545acd11dfef2cfbfb7067dd92fa59fea0a6bcced96f SHA512 453eaea31c3da4705c0eb8875ce9a1904b554a3420f1d7cb04fef5bc8c69fe1a9f062e59e085ba34a14ff9bf9bcf9709145f034ba8d46c88e2b50610fec39a0c WHIRLPOOL 5d855bee0f8a1bc5fcaba7773c9d759b3b43b3b4517c7e8b859f82178957655ffd78380c922149413a94c493c7ab5e35e279e119a02963187a6d92f7673f6cc0
+MISC ChangeLog 2511 SHA256 8441aeda5a031319dbef694dc7c89c627cee27860491662c8de3faa8a587f978 SHA512 d262e8e769b6e105f6f4ae316adb9c13f3e00fa2f166ad93d919f630b2c187848de041e998c182087d2c6aae73b91b3e05beddc00a9c04029d517db96add259c WHIRLPOOL 5eca46d49d8467fd0aa42bcee982e9d42d1a9d2e802c1be3f496a1e1e7fef5eae203c72f5babebd1b54fc07dd3554dfa4c7bc99d3a339352308012f6945776d0
+MISC ChangeLog-2015 2871 SHA256 d382f2da2bde7bbb4321823338222f01c4b49203047c0fb10995c0563f9dbc05 SHA512 aeead6b32434a701da5b62b8783db543e94fcb00d3b3b2b46bda81aba75758905e127357d4cc136b871b1cf296a4876bcb8e24c4aed6368faf3da0d5cb77577f WHIRLPOOL d56189b3c74a8a3eee88a54b6e8f33e73aab273e85f73090303c44f3beab0eb5cba3315f3ce3459a692908fb51ab5ea721af125ed72af3a02e48911b91681b71
+MISC metadata.xml 255 SHA256 3e7137870fc49956d79719e3dfe029775cbaaa097e85748c139713c46fcd1798 SHA512 b7bc93530a1726c2d4dfbc71ae29cfbb57712fd9fdd2e76fd52f35ab4368cba0497b50145d1527a3b79e465d459a380821bb1371a01c2e915dc9adc6c7fafd5f WHIRLPOOL 392188d7e069f1720be9329edfb31b11b176bf0c411023b2ceeaeabef1cacf842d70657a2a14ac2ddabbdad70a304275f3b587e9bcdfe77be63a0092e370252c
diff --git a/media-gfx/duhdraw/duhdraw-2.8.13-r1.ebuild b/media-gfx/duhdraw/duhdraw-2.8.13-r1.ebuild
new file mode 100644
index 000000000000..64e4f8d7f285
--- /dev/null
+++ b/media-gfx/duhdraw/duhdraw-2.8.13-r1.ebuild
@@ -0,0 +1,30 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit toolchain-funcs eutils
+
+DESCRIPTION="ASCII art editor"
+HOMEPAGE="http://www.cs.helsinki.fi/u/penberg/duhdraw"
+SRC_URI="http://www.cs.helsinki.fi/u/penberg/duhdraw/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc x86 ~amd64-linux ~x86-linux ~ppc-macos"
+
+DEPEND="sys-libs/ncurses"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-macos.patch
+ epatch "${FILESDIR}"/${P}-prestrip.patch
+}
+
+src_compile() {
+ emake CC="$(tc-getCC) ${CFLAGS} ${LDFLAGS}"
+}
+
+src_install() {
+ dobin ansi ansitoc duhdraw
+ dodoc CREDITS HISTORY TODO
+}
diff --git a/media-gfx/duhdraw/files/duhdraw-2.8.13-macos.patch b/media-gfx/duhdraw/files/duhdraw-2.8.13-macos.patch
new file mode 100644
index 000000000000..30be358e46d3
--- /dev/null
+++ b/media-gfx/duhdraw/files/duhdraw-2.8.13-macos.patch
@@ -0,0 +1,12 @@
+--- ./duhdraw-2.8.13/duhdraw.c.orig 2005-03-02 09:22:46.000000000 +0100
++++ ./duhdraw-2.8.13/duhdraw.c 2006-11-16 09:56:21.000000000 +0100
+@@ -12,7 +12,9 @@
+ #include <stdio.h>
+ #include <dirent.h>
+ #include <sys/stat.h>
++#ifndef __APPLE__
+ #include <malloc.h>
++#endif
+ #include <time.h>
+ #include <curses.h>
+ #include <ctype.h>
diff --git a/media-gfx/duhdraw/files/duhdraw-2.8.13-prestrip.patch b/media-gfx/duhdraw/files/duhdraw-2.8.13-prestrip.patch
new file mode 100644
index 000000000000..0162f39370aa
--- /dev/null
+++ b/media-gfx/duhdraw/files/duhdraw-2.8.13-prestrip.patch
@@ -0,0 +1,18 @@
+--- ./duhdraw-2.8.13/Makefile.orig 2005-03-02 09:22:46.000000000 +0100
++++ ./duhdraw-2.8.13/Makefile 2006-11-16 09:58:29.000000000 +0100
+@@ -12,15 +12,12 @@
+
+ ansi: cleanansi
+ $(CC) -o ansi ansi.c ansi-esc.c $(LIBS)
+- $(STRIP) ansi
+
+ duhdraw: cleandd
+ $(CC) -o duhdraw duhdraw.c ansi-esc.c $(LIBS)
+- $(STRIP) duhdraw
+
+ ansitoc: cleanansitoc
+ $(CC) -o ansitoc ansitoc.c
+- $(STRIP) ansitoc
+
+ cleanansi:
+ rm -f ansi
diff --git a/media-gfx/duhdraw/metadata.xml b/media-gfx/duhdraw/metadata.xml
new file mode 100644
index 000000000000..19bf1be2581e
--- /dev/null
+++ b/media-gfx/duhdraw/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 type="project">
+ <email>graphics@gentoo.org</email>
+ <name>Gentoo Graphics Project</name>
+</maintainer>
+</pkgmetadata>
diff --git a/media-gfx/ebdftopcf/Manifest b/media-gfx/ebdftopcf/Manifest
new file mode 100644
index 000000000000..95ef7436c08f
--- /dev/null
+++ b/media-gfx/ebdftopcf/Manifest
@@ -0,0 +1,5 @@
+DIST ebdftopcf-2.tar.bz2 7774 SHA256 3e832710bb69955b2496da5f619066189b3c990e7087130c5faa2ed7741e9a10 SHA512 4631f1591290e0ddc778d5c557aff1e698d8dd7e5ac7e659fda7752642034fbabb091c840dcfad5695e9fc19909203a7fdc0b7a69d57a162ce6bb8fe710ef0f4 WHIRLPOOL bc66b03b8c86f2610330a4de0b637e0d43b0a30660a5e705e6aa7ed2e32b44880ce54be6ad54b28f72d465e5c86c095a627719f60971ebb934af29d750c16c1a
+EBUILD ebdftopcf-2.ebuild 649 SHA256 90119c4388738a0fb2924b9028de1e5ab9d6cc04b61eae1931166b5719e416c2 SHA512 8769a7991c41dd2da207d9d5bfb9e9ccb6d79a5b64915c5dc0ac93b1fb715cb2e458df52c4f47f1cc5bce3aae7df9546f05bb764e6dbef4e5f777a07edec861e WHIRLPOOL 2373fb31175e11ddec0d8b25bb6eeb66259af83b5d9d98e1dac4950bc8b402fdc50c9bc139270681032475c214eccf4ada61708e70512513d4dc53839013279b
+MISC ChangeLog 2448 SHA256 ca8c169477795f7109cc9f1e5d599439ad769cd61e5834a81be452deaeac97a5 SHA512 a196232ecf81782d1364fc52afba3675b1bf32cc65331c75aee3a62728fad3a21cbcfb5e98d2878ab483b20f3d89c9c27080c8af88c0071964315b221135d6f8 WHIRLPOOL 13a6936d2133ebe0a4bbb08e160ede5800a261e6b97f0a9f9beb1c50f317a64026cbc3931c00ce69ec341e504b0eccde848956b75adc4bc512f1e5f9fd8e941b
+MISC ChangeLog-2015 2337 SHA256 85f1574b4cf81e9742ef7da371a9eecc171578a2460b0b3c728267f6feeff3c0 SHA512 b48341a8f48a34fa93104a8f32849f706196cc6fe8d0fba4958ca590cef60f53220111387afee4c90a8770d35bb68689dacb6c3a09154460bbc02903d0ad616d WHIRLPOOL 02fcdf40f99827931ff7da0e3adcd6f494738b986a34730b9fbaea4aed8a78032d2c6fd36f6685ad895fa59b5ebb782695c538e62293f5b0ba9b0d520b768a2e
+MISC metadata.xml 370 SHA256 56a50c58732605ddd4f0d5246d24c3d574c2d9bd1fb5af4242f5619a3460129f SHA512 80e86496a4c296be5257f1859ab0c482c1dfd0f535090f8c8dd7bcbb6909e102f83d91dd97507251a737091b2a2a5fa5a85fff718f2b9a598a14e8f2a17a8e9f WHIRLPOOL 5835e8a7882bebe4b00f5a6a115177d03fab38c5aa1795744b9f6076220e7fade0fdccb80a16693294adad5302d37945750ed99412b3e4973ed8010f0a6bd21b
diff --git a/media-gfx/ebdftopcf/ebdftopcf-2.ebuild b/media-gfx/ebdftopcf/ebdftopcf-2.ebuild
new file mode 100644
index 000000000000..5f6ae7673314
--- /dev/null
+++ b/media-gfx/ebdftopcf/ebdftopcf-2.ebuild
@@ -0,0 +1,23 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+DESCRIPTION="ebdftopcf optimially generators PCF files from BDF files"
+HOMEPAGE="https://www.gentoo.org/"
+SRC_URI="mirror://gentoo/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
+IUSE=""
+
+DEPEND=""
+# these apps are used at runtime by ebdftopcf
+RDEPEND="x11-apps/bdftopcf
+ app-arch/gzip"
+
+src_install() {
+ insinto /usr/share/ebdftopcf
+ doins Makefile.ebdftopcf || die
+ dodoc README
+ doman *.5
+}
diff --git a/media-gfx/ebdftopcf/metadata.xml b/media-gfx/ebdftopcf/metadata.xml
new file mode 100644
index 000000000000..ede6f53a84df
--- /dev/null
+++ b/media-gfx/ebdftopcf/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="person">
+ <email>robbat2@gentoo.org</email>
+ <description>Maintainer and upstream author.</description>
+</maintainer>
+<maintainer type="project">
+ <email>fonts@gentoo.org</email>
+ <name>Fonts</name>
+</maintainer>
+</pkgmetadata>
diff --git a/media-gfx/enblend/Manifest b/media-gfx/enblend/Manifest
new file mode 100644
index 000000000000..e6769ef90237
--- /dev/null
+++ b/media-gfx/enblend/Manifest
@@ -0,0 +1,14 @@
+AUX enblend-4.1.3-cmake.patch 1004 SHA256 55e854cbe77a1b1cea5682fd92f34e9a6220e5d8d82a50a0c04a01240cf64605 SHA512 2143d9b448d29c37cc03dd40ee99f841ccb8d79f53597ef5fc6ef9a2090eaeaa7b789f86f85c468159f19f199cf3a1c330971b51ce6590b2ca6bf4b90765fef1 WHIRLPOOL 5c4e8d369a5c9209e8871a7e682059f9624b9b0a97596954041ae331a0ecb1ba437e6146f416e9f537f7a469aeed6a7967066c1ca66dda746e5db66651b64a60
+AUX enblend-4.1.3-texinfo-5-more.patch 2392 SHA256 880737cb7e6d2e07ec42f362474862b5d5ee34c61f1c6ddc59499c6d2f9ac822 SHA512 3f3d398d8c5a39289aefb36050658cd27c477b1b23d94b1e2fdb5c9e40b54c9ee0d62f8cd1aa281618c9b48e803b082aaf6196824038c04bf090ca49cfdd21f2 WHIRLPOOL 1a66bef9d0f1f945e80c1baecf2c484a58d2f956d91f601a915ffaa3ee8abf73e279b4103d0dbdd1b4e19ef089512cb0c664372591c0c8941f22183d7b461182
+AUX enblend-4.1.3-texinfo-5-upstream.patch 18609 SHA256 2b986850e46e157835ce7b9b97d80ca670c7c3d418bf8503fb043ce21e8714ad SHA512 f42d102a534887bd56637d08d64c37436b8590310a87a8dc5fb63550bd10ae2602ec3ddb51ea6b46d16ad3477e4b8b8f20fa48821e8745a5cf9e5693ae4af40e WHIRLPOOL 10315923be3dad7d9cc39be4581c9384a94217f6a74ab6bf45066add554c58cade69d7b51e790911a829ffe61d4a5a72d5b2c8dbaf8c64980d4e826039b59b80
+AUX enblend-4.1.3-vigra_check.patch 463 SHA256 80ffd0c9d23cbd48e47369ea66a013ffd19f27e03639902e1e287403d67da777 SHA512 5b459c7da0608369fc591ad67fd295f3e2b11f78d5cba4e7d57116dbb0038f00b6c5f0fc190e4c40b0b625f77885ddfe51e8432654c78c03dc9040d34ae96372 WHIRLPOOL d4810b1cac9fe0b10c5424c023c184fe25bb674357f9d9d190466264da74c6e0e88f1172c55e7b0036f4fed797b12a7dab3b378d37c1e5d8b78b2ba54bae9d3a
+AUX enblend-4.2-doc-install-dir-fix.patch 2705 SHA256 92c35cb5850a752eebb2a60ef9c40e22f35372610d380557228a00ed983afe90 SHA512 a22730295c44da4f9feb3d541b17f298adf98f0328cf01d6a85206087c782e1aebac6509968d1a5433efb5fc3d72e48301ec3d5a2516f01c1f6d923d5032ab03 WHIRLPOOL 6c6d36533fef8a39c66c28b5ae9f8cdd015b869cabb6ab4898d41cdbcb0bac42a86a6b1383cfea02cd3a574c32e3ce705feef6f9988523b3c53626255bbee089
+AUX enblend-4.2.0_p20161007-cmake.patch 477 SHA256 f5dce0c5407b8b21958c5e2ef2eba4b6493f74b7bbd7de482b312ee5367d4e71 SHA512 5b79944beabd97f71f05657ce17e31d9eab60506dfce27fefc3a8f9a10c92f33b1b4fa1411c6d1a33d23819a4020a50f130b9083fecaf3e1a072fda71e5f9ff0 WHIRLPOOL f1938918a7e315f74d2e169eac185209d09fa0fc380631bf536601bde769c87733b49bd3b874fa00c27e010ad52f8a0f0da29ae90d77d451f52ddb381461afb0
+DIST enblend-4.2.0_p20161007.tar.xz 494060 SHA256 4fe05af3d697bd6b2797facc8ba5aeabdc91e233156552301f1c7686232ff4c3 SHA512 ede037f19a7c3b358f533ecfb235f70824261eaf189d0bdcde6f9cedaa5952be2a6940884e688418b725cb3a67fc1b7d366483a76b7c62326ca857b8efe3a3f3 WHIRLPOOL 791c36ee422496170a7cfc8da7d701e40a4d9d1205ebebd692d4d4c4f694d99dad4260bf8b6b1a8957c686590f20edbd5b561760311151c4bc04394542979de7
+DIST enblend-enfuse-4.1.3.tar.gz 862079 SHA256 1c00ae95cd05502759d7d47f99e6ba1150f8807f8f4f46c800cd46c5ad0df9ac SHA512 0a3487783afadee896b84411330898393cda4be4cbb79d36013daa98c17ab88f97a298c21a5c398b7cb2ce83e8dc4519a80e18be472c5fec10c3114037b6db73 WHIRLPOOL ab33a8ca5c38d9a5dca6aaeed7cbc806f7c34c5642f9e568a90d14789ecede896c0da888e5fe7e7d30e586778e0734495d06055fc189732e55bc0c013e699b48
+EBUILD enblend-4.1.3-r1.ebuild 1832 SHA256 cc64cfed5d1a7622872fa678de482f7734516e985f56d847e8dfee7b59b6e2f6 SHA512 f71bfc3040d6413584cf9d8db2d72ca036edb5aee81a5a6c42b246f0ae5829416fe57010690c069cc83b29a224c7984152534e52bd413e5b8dd5887677ef54ae WHIRLPOOL d48082a4a2bb238fdcf871ddbd56ad082e611cd7595689ce4029689c705fe017ec612522d8dc222fd12156e8ae910e0bc511075d090c584f5f1542503b1bfeeb
+EBUILD enblend-4.1.3-r2.ebuild 1935 SHA256 0ae07a24d6a9d0842c5ba3d501173fc392cc5c4231e50f7dc5b211b8e6b136a0 SHA512 bf7702b6ecd18c6a306437e2b19a7ec217c2370c735011ed7f4c0f930952950b2a995c1eedb8d55e3cf0ca63d1c113920adf01beb1f1fc0c8a4c3e933454860b WHIRLPOOL fc5387361733ea97e28d8ff262d46cea42604e4bf264c32e38aa7a05ca553dabf0576264580c2fb45aaaa1605adbbd26e146e75bfacb044613ba914b3bfa8fc6
+EBUILD enblend-4.2.0_p20161007-r1.ebuild 1759 SHA256 a1a300a550d87a8430f65acf5ffadfc9fbf43a6aa914231d34b15c4e8e040a78 SHA512 a4913e8dd999cc7b94d4ec613b2cb3e066498bb9561880a83ff38aa34dd672d4e82f9958f2b0246b357ef9117fa1eb7a832ac7caa6f0e9b64255c4428c44ba3f WHIRLPOOL 71513d830a2eeefc930be415471914c71de59c0fc66f34f61a6ae5ff7b153105ec8654c6abb7841c1215399edb4c8ae7d39df358705444c093c4a1fde74a54e9
+MISC ChangeLog 5635 SHA256 0ed066adc206662ffc6915a0c413a956a025bc6ef0b111e54f02da1ac2e5d10b SHA512 38f40da94b56df69996e24edc1ee6bb198e446b6ec67cceedf463d945f454302583eba2da8c7d81c9a7d2dddda3b068972a739746a6e9ae23dc20b073328e428 WHIRLPOOL 5992c46b10a143f18ee68c5a75b99f5e78ff68cdc4519e91672fbc73fa144bc93748530aea88799ab3020151aeb512b7a307263120871bed233c6b82d9445707
+MISC ChangeLog-2015 8816 SHA256 0564929c0f0edad6d85ce6f17760bcd1a689953affa1e1644e3e8aae0e478315 SHA512 23870be79cf0651f04ae5e612e7cc1b63bcacf90ccde68c0ceca913a0990969108a30b3b74c5cee4b64da57a546173111c0baf3273b72e48045b14d398dea815 WHIRLPOOL 7bdfe81b8f3d5e9b4bfabf096c09e506733863d1206337d761942d119854ad101189f319a6c61221c06c9cb0265700ad1f89539c691d6cd39f005160f3d442a5
+MISC metadata.xml 472 SHA256 f8f45739463944e11eec258cc923f54b557f534e5e79038e3394b7e221d8f62e SHA512 f2623eccd20aee91ae2ffe90e3999e359865757269d8ca84cd095ee5f0d55e18000d3afb602531231799a31a14edbf1bdeea72b162976fcd51727a169045d100 WHIRLPOOL fe7220fbec52afc76414de0abb988402f0f232c62256ed26a06e815c82456e780ee1242faac7fe97a39f58d18ecd61303adddf859af1066aa19652587e1375c6
diff --git a/media-gfx/enblend/enblend-4.1.3-r1.ebuild b/media-gfx/enblend/enblend-4.1.3-r1.ebuild
new file mode 100644
index 000000000000..6de5ae27cfe8
--- /dev/null
+++ b/media-gfx/enblend/enblend-4.1.3-r1.ebuild
@@ -0,0 +1,78 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit eutils cmake-utils
+
+MY_P="${PN}-enfuse-${PV/_rc/rc}"
+
+DESCRIPTION="Image Blending with Multiresolution Splines"
+HOMEPAGE="http://enblend.sourceforge.net/"
+SRC_URI="mirror://sourceforge/enblend/${MY_P}.tar.gz"
+
+LICENSE="GPL-2 VIGRA"
+SLOT="0"
+KEYWORDS="amd64 ppc x86"
+IUSE="debug doc gpu image-cache openmp"
+
+REQUIRED_USE="openmp? ( !image-cache )"
+
+RDEPEND="
+ >=dev-libs/boost-1.31.0:=
+ media-libs/glew
+ >=media-libs/lcms-2.5:2
+ >=media-libs/libpng-1.2.43:0=
+ >=media-libs/openexr-1.0:=
+ media-libs/plotutils[X]
+ media-libs/tiff:=
+ >=media-libs/vigra-1.8.0[openexr]
+ sci-libs/gsl:=
+ virtual/jpeg:0=
+ debug? ( dev-libs/dmalloc )
+ gpu? ( media-libs/freeglut )"
+DEPEND="${RDEPEND}
+ media-gfx/imagemagick
+ sys-apps/help2man
+ virtual/pkgconfig
+ doc? (
+ media-gfx/transfig
+ sci-visualization/gnuplot[gd]
+ virtual/latex-base
+ )"
+
+S="${WORKDIR}/${MY_P}"
+
+PATCHES=( "${FILESDIR}/${PN}-4.1.3-vigra_check.patch" )
+
+src_prepare() {
+ sed -i -e "/CXX_FLAGS/s:-O3::g" CMakeLists.txt || die
+ sed -i -e "s:doc/enblend:share/doc/${PF}:" doc/CMakeLists.txt || die
+ cmake-utils_src_prepare
+
+ epatch "${FILESDIR}"/${P}-texinfo-5-upstream.patch
+ epatch "${FILESDIR}"/${P}-texinfo-5-more.patch
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DCMAKE_CXX_FLAGS_RELEASE=""
+ $(cmake-utils_use_enable debug DMALLOC)
+ $(cmake-utils_use doc DOC)
+ $(cmake-utils_use_enable image-cache IMAGECACHE)
+ $(cmake-utils_use_enable openmp)
+ $(cmake-utils_use_enable gpu)
+ )
+ CMAKE_BUILD_TYPE="Release"
+ cmake-utils_src_configure
+}
+
+src_compile() {
+ # forcing -j1 as every parallel compilation process needs about 1 GB RAM.
+ cmake-utils_src_compile -j1
+}
+
+src_install() {
+ local DOCS=( AUTHORS ChangeLog NEWS README )
+ cmake-utils_src_install
+}
diff --git a/media-gfx/enblend/enblend-4.1.3-r2.ebuild b/media-gfx/enblend/enblend-4.1.3-r2.ebuild
new file mode 100644
index 000000000000..c1eb5442bbc4
--- /dev/null
+++ b/media-gfx/enblend/enblend-4.1.3-r2.ebuild
@@ -0,0 +1,86 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit cmake-utils
+
+MY_P="${PN}-enfuse-${PV}"
+
+DESCRIPTION="Image Blending with Multiresolution Splines"
+HOMEPAGE="http://enblend.sourceforge.net/"
+SRC_URI="mirror://sourceforge/enblend/${MY_P}.tar.gz"
+
+LICENSE="GPL-2 VIGRA"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE="debug doc gpu openmp"
+
+RDEPEND="
+ dev-libs/boost:=
+ media-libs/lcms:2
+ media-libs/openexr:=
+ media-libs/tiff:=
+ media-libs/vigra[openexr]
+ sci-libs/gsl:=
+ debug? ( dev-libs/dmalloc )
+ gpu? (
+ media-libs/freeglut
+ media-libs/glew:*
+ virtual/glu
+ virtual/opengl
+ )"
+DEPEND="${RDEPEND}
+ media-libs/libpng:0
+ sys-apps/help2man
+ virtual/jpeg:0
+ virtual/pkgconfig
+ doc? (
+ media-gfx/transfig
+ sci-visualization/gnuplot[gd]
+ virtual/imagemagick-tools
+ virtual/latex-base
+ )"
+
+S="${WORKDIR}/${MY_P}"
+
+DOCS=( AUTHORS NEWS README )
+
+PATCHES=(
+ "${FILESDIR}"/${P}-vigra_check.patch
+ "${FILESDIR}"/${P}-texinfo-5-upstream.patch
+ "${FILESDIR}"/${P}-texinfo-5-more.patch
+ "${FILESDIR}"/${P}-cmake.patch
+)
+
+src_prepare() {
+ cmake-utils_src_prepare
+
+ # CRLF in files, don't bother with patch
+ sed -i -e "/FIND_LIBRARY(LCMS2_LIBRARIES/s/lib32/lib/" \
+ CMakeModules/FindLCMS2.cmake || die
+ sed -e "/FIND_LIBRARY(OPENGL_gl_LIBRARY/s/lib32/lib/" \
+ -e "/NAMES.*MesaGLU/s/lib32/lib/" \
+ -i CMakeModules/FindOpenGL.cmake || die
+
+ sed -i -e "/CXX_FLAGS/s:-O3::g" CMakeLists.txt || die
+ sed -i -e "s:doc/enblend:share/doc/${PF}:" doc/CMakeLists.txt || die
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DCMAKE_CXX_FLAGS_RELEASE=""
+ -DENABLE_DMALLOC=$(usex debug)
+ -DDOC=$(usex doc)
+ -DENABLE_GPU=$(usex gpu)
+ -DENABLE_IMAGECACHE=$(usex !openmp)
+ -DENABLE_OPENMP=$(usex openmp)
+ )
+ CMAKE_BUILD_TYPE="Release"
+ cmake-utils_src_configure
+}
+
+src_compile() {
+ # forcing -j1 as every parallel compilation process needs about 1 GB RAM.
+ cmake-utils_src_compile -j1
+}
diff --git a/media-gfx/enblend/enblend-4.2.0_p20161007-r1.ebuild b/media-gfx/enblend/enblend-4.2.0_p20161007-r1.ebuild
new file mode 100644
index 000000000000..ae3bfd0176c1
--- /dev/null
+++ b/media-gfx/enblend/enblend-4.2.0_p20161007-r1.ebuild
@@ -0,0 +1,78 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit cmake-utils
+
+DESCRIPTION="Image Blending with Multiresolution Splines"
+HOMEPAGE="http://enblend.sourceforge.net/"
+SRC_URI="https://dev.gentoo.org/~soap/distfiles/${P}.tar.xz"
+
+LICENSE="GPL-2 VIGRA"
+SLOT="0"
+KEYWORDS="amd64 ppc x86"
+IUSE="debug doc openmp tcmalloc cpu_flags_x86_sse2"
+
+REQUIRED_USE="tcmalloc? ( !debug )"
+
+RDEPEND="
+ media-libs/lcms:2
+ media-libs/openexr:=
+ media-libs/tiff:0
+ media-libs/vigra[openexr]
+ sci-libs/gsl:=
+ debug? ( dev-libs/dmalloc )
+ tcmalloc? ( dev-util/google-perftools )"
+DEPEND="${RDEPEND}
+ >=dev-libs/boost-1.62.0
+ media-libs/libpng:0
+ sys-apps/help2man
+ virtual/jpeg:0
+ virtual/pkgconfig
+ doc? (
+ dev-lang/perl
+ dev-perl/Readonly
+ dev-tex/hevea
+ gnome-base/librsvg
+ media-gfx/graphviz
+ media-gfx/transfig
+ sci-visualization/gnuplot[gd]
+ virtual/imagemagick-tools
+ virtual/latex-base
+ )"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-4.2-doc-install-dir-fix.patch
+ "${FILESDIR}"/${P}-cmake.patch
+)
+
+src_prepare() {
+ cmake-utils_src_prepare
+
+ sed -i -e "s:share/doc/enblend:share/doc/${PF}:" doc/CMakeLists.txt || die
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DENABLE_DMALLOC=$(usex debug)
+ -DENABLE_TCMALLOC=$(usex tcmalloc)
+ -DDOC=$(usex doc)
+ -DINSTALL_HTML_DOC=$(usex doc)
+ -DINSTALL_PDF_DOC=$(usex doc)
+ -DENABLE_OPENMP=$(usex openmp)
+ -DENABLE_SSE2=$(usex cpu_flags_x86_sse2)
+ )
+ cmake-utils_src_configure
+}
+
+src_compile() {
+ # To allow icon resizing with renderers (no way to disable)
+ addpredict /dev/dri
+
+ # To compile fonts in the temp directory
+ export VARTEXFONTS="${T}/fonts"
+
+ # forcing -j1 as every parallel compilation process needs about 1 GB RAM.
+ cmake-utils_src_compile -j1
+}
diff --git a/media-gfx/enblend/files/enblend-4.1.3-cmake.patch b/media-gfx/enblend/files/enblend-4.1.3-cmake.patch
new file mode 100644
index 000000000000..e9fef85278d5
--- /dev/null
+++ b/media-gfx/enblend/files/enblend-4.1.3-cmake.patch
@@ -0,0 +1,22 @@
+--- a/CMakeLists.txt 2017-02-12 13:43:46.862787952 +0100
++++ b/CMakeLists.txt 2017-02-12 13:50:03.461229021 +0100
+@@ -185,7 +185,6 @@
+ FIND_PACKAGE(TIFF REQUIRED)
+ FIND_PACKAGE(Perl REQUIRED)
+ # this one is needed in doc. (Especially the program "convert")
+-FIND_PACKAGE(ImageMagick REQUIRED)
+ FIND_PACKAGE(GSL REQUIRED)
+ include_directories(${GSL_INCLUDE_DIR})
+ LIST(APPEND common_libs ${LCMS2_LIBRARIES} ${TIFF_LIBRARIES} ${GSL_LIBRARIES})
+@@ -394,8 +393,9 @@
+ add_subdirectory(src)
+
+ # you really should have perl installed, when creating doc's
+-if (PERL_FOUND AND IMAGEMAGICK_FOUND AND DOC)
+- # this should be set from comman line
++if (PERL_FOUND AND DOC)
++ FIND_PACKAGE(ImageMagick REQUIRED)
++ # this should be set from command line
+ # Possible values like described in README: @smallbook @afivepaper @afourpaper @afourwide @afourlatex
+ # @letter is default
+ set(EXTRATEXI2DVIFLAGS "@afourpaper" CACHE STRING "Papersize: @letter @smallbook @afivepaper @afourpaper @afourwide @afourlatex")
diff --git a/media-gfx/enblend/files/enblend-4.1.3-texinfo-5-more.patch b/media-gfx/enblend/files/enblend-4.1.3-texinfo-5-more.patch
new file mode 100644
index 000000000000..dd63ae3697a5
--- /dev/null
+++ b/media-gfx/enblend/files/enblend-4.1.3-texinfo-5-more.patch
@@ -0,0 +1,82 @@
+From 7ec0e758430f9e31fb9fc0f85d72339a307263d6 Mon Sep 17 00:00:00 2001
+From: Sebastian Pipping <sebastian@pipping.org>
+Date: Fri, 14 Aug 2015 03:09:57 +0200
+Subject: [PATCH] Texinfo: Fix parameter handling with macro "mainpurpose"
+
+---
+ doc/auxmac.texi | 6 +++---
+ doc/enfuse.texi | 10 +++++-----
+ 2 files changed, 8 insertions(+), 8 deletions(-)
+
+diff --git a/doc/auxmac.texi b/doc/auxmac.texi
+index 59520c3..ad35d6a 100644
+--- a/doc/auxmac.texi
++++ b/doc/auxmac.texi
+@@ -88,12 +88,12 @@ not displayed, because of lacking <acronym>SVG</acronym> and
+
+ @c Text Fragments
+
+-@macro mainpurpose
++@macro mainpurpose{purpose}
+ @ifinfo
+-@strong{Main Purpose}:
++@strong{Main Purpose}: \purpose\
+ @end ifinfo
+ @ifnotinfo
+-@strong{Main Purpose: }
++@strong{Main Purpose: }\purpose\
+ @end ifnotinfo
+ @end macro
+
+diff --git a/doc/enfuse.texi b/doc/enfuse.texi
+index 92fe597..9e601ea 100644
+--- a/doc/enfuse.texi
++++ b/doc/enfuse.texi
+@@ -5164,7 +5164,7 @@ Fire in rapid succession.
+ @cindex series, simple
+ @cindex noise reduction
+
+-@mainpurpose Reduce noise
++@mainpurpose{Reduce noise}
+
+ @noindent
+ With the default settings, Enfuse computes a weighted average of the
+@@ -5193,7 +5193,7 @@ be worth an extra run.
+ @cindex series, exposure
+ @cindex dynamic range increase
+
+-@mainpurpose Increase manageable dynamic range
++@mainpurpose{Increase manageable dynamic range}
+
+ @noindent
+ An exposure series is a set of images taken with identical parameters
+@@ -5322,7 +5322,7 @@ the multiply occuring exposures and reducing noise.
+ @cindex series, flash exposure
+ @cindex dynamic range increase
+
+-@mainpurpose ???
++@mainpurpose{???}
+
+ ...
+
+@@ -5333,7 +5333,7 @@ the multiply occuring exposures and reducing noise.
+ @cindex series, polarization
+ @cindex saturation enhancement
+
+-@mainpurpose Reflection suppression, saturation enhancement
++@mainpurpose{Reflection suppression, saturation enhancement}
+
+ In the current implementation of Enfuse, it is not possible in general
+ to fuse a polarization series. Naively abusing
+@@ -5345,7 +5345,7 @@ to fuse a polarization series. Naively abusing
+ @cindex focus stacks
+ @cindex depth-of-focus increase
+
+-@mainpurpose Synthetic Depth-of-Field Increase
++@mainpurpose{Synthetic Depth-of-Field Increase}
+
+ A @dfn{focus stack} is a series of images where the distance of the
+ focal plane from the sensor varies. Sloppily speaking, the images
+--
+2.5.0
+
diff --git a/media-gfx/enblend/files/enblend-4.1.3-texinfo-5-upstream.patch b/media-gfx/enblend/files/enblend-4.1.3-texinfo-5-upstream.patch
new file mode 100644
index 000000000000..ef04aa73633a
--- /dev/null
+++ b/media-gfx/enblend/files/enblend-4.1.3-texinfo-5-upstream.patch
@@ -0,0 +1,633 @@
+# HG changeset patch
+# User Chris <cspiel@users.sourceforge.net>
+# Date 1438958604 -7200
+# Node ID 8387f0170f7b352baea887f77960e8066185a6cd
+# Parent c1bcd2df4e3724f3bb0414d3a5e2e9302be78921
+Get the Texinfo documentation to translate again with makeinfo-5.2.
+
+This patch takes thus care of issue #1181678
+ https://bugs.launchpad.net/enblend/+bug/1181678
+
+We do not strive for a nicely formatted documentation anymore in the
+Stable Branch, because the Development Branch already has a flawless
+new documentation *not* based on Texinfo.
+
+diff -r c1bcd2df4e37 -r 8387f0170f7b doc/Makefile.am
+--- a/doc/Makefile.am Fri Aug 07 16:43:18 2015 +0200
++++ b/doc/Makefile.am Fri Aug 07 16:43:24 2015 +0200
+@@ -46,7 +46,7 @@
+ -I $(top_builddir) -I $(srcdir) \
+ --css-include=@srcdir@/default.css \
+ $(MAKEINFOHTMLFLAGS)
+-export TEXINPUTS=$(top_builddir):$(srcdir)
++export TEXINPUTS = .:$(top_builddir):$(srcdir):
+
+ TEXI2DVI = texi2dvi $(TEXI2DVIFLAGS) $(EXTRATEXI2DVIFLAGS)
+
+diff -r c1bcd2df4e37 -r 8387f0170f7b doc/auxmac.tex
+--- a/doc/auxmac.tex Fri Aug 07 16:43:18 2015 +0200
++++ b/doc/auxmac.tex Fri Aug 07 16:43:24 2015 +0200
+@@ -1,13 +1,6 @@
+-\input thumbpdf.sty
+-
+-
+ % Auxilliary Macros.
+ %
+ % Include this file before texinfo.tex!
+
+ \def\mathit#1{\hbox{\it #1}}
+ \def\mathrm#1{\ifmmode{\rm #1}\else #1\fi}
+-
+-% These definitions are required for older versions of texinfo.tex.
+-\def\geq{\ifmmode \ge\else $\ge$\fi}
+-\def\leq{\ifmmode \le\else $\le$\fi}
+diff -r c1bcd2df4e37 -r 8387f0170f7b doc/auxmac.texi
+--- a/doc/auxmac.texi Fri Aug 07 16:43:18 2015 +0200
++++ b/doc/auxmac.texi Fri Aug 07 16:43:24 2015 +0200
+@@ -2,16 +2,6 @@
+ @c Macro Definitions
+ @c
+
+-@c redefined commands
+-
+-@c Get the spacing of dimensions right.
+-@ifnottex
+-@macro dmn{unit}
+-@tie{}\unit\
+-@end macro
+-@end ifnottex
+-
+-
+ @c extended commands
+
+ @c Add a title to a DocBook element.
+@@ -80,73 +70,6 @@
+
+ @c Operators
+
+-@c Generate a nice representation of base^exponent.
+-@macro power{base, exponent}
+-@ifinfo
+-\base\^\exponent\
+-@end ifinfo
+-@html
+-\base\<sup>\exponent\</sup>
+-@end html
+-@tex
+-$\base\^{\exponent\}$%
+-@end tex
+-@docbook
+-\base\<superscript>\exponent\</superscript>
+-@end docbook
+-@end macro
+-
+-
+-@macro classictimes
+-@ifinfo
+-x@c gobble following newline -- The Tricks of a Texinfo Wizard.
+-@end ifinfo
+-@html
+-&times;
+-@end html
+-@tex
+-\\ifmmode\\times\\else$\\times$\\fi% gobble following newline -- The Tricks of a TeX Wizard.
+-@end tex
+-@docbook
+-&times;
+-@end docbook
+-@end macro
+-
+-
+-@c Required for older versions of makeinfo. The definition of @geq
+-@c for TeX lives in auxmac.tex.
+-@ifnottex
+-@macro geq
+-@ifinfo
+->=@c
+-@end ifinfo
+-@html
+-&ge;
+-@end html
+-@docbook
+-&ge;
+-@end docbook
+-@end macro
+-@end ifnottex
+-
+-
+-@c Required for older versions of makeinfo. The definition of @leq
+-@c for TeX lives in auxmac.tex.
+-@ifnottex
+-@macro leq
+-@ifinfo
+-<=@c
+-@end ifinfo
+-@html
+-&le;
+-@end html
+-@docbook
+-&le;
+-@end docbook
+-@end macro
+-@end ifnottex
+-
+-
+ @macro plusminus
+ @ifinfo
+ +/-@c
+@@ -163,62 +86,6 @@
+ @end macro
+
+
+-@c Special Characters
+-
+-@macro inlineomega
+-@ifinfo
+-@math{omega}@c
+-@end ifinfo
+-@html
+-<mathinline xmlns="http://www.w3.org/1998/Math/MathML" display="inline">
+- <mi>&omega;</mi>
+-</mathinline>
+-@end html
+-@tex
+-$\\omega$%
+-@end tex
+-@docbook
+-&omega;
+-@end docbook
+-@end macro
+-
+-
+-@macro inlinesigma
+-@ifinfo
+-@math{sigma}@c
+-@end ifinfo
+-@html
+-<mathinline xmlns="http://www.w3.org/1998/Math/MathML" display="inline">
+- <mi>&sigma;</mi>
+-</mathinline>
+-@end html
+-@tex
+-$\\sigma$%
+-@end tex
+-@docbook
+-&sigma;
+-@end docbook
+-@end macro
+-
+-
+-@macro inlinexi
+-@ifinfo
+-@math{xi}@c
+-@end ifinfo
+-@html
+-<mathinline xmlns="http://www.w3.org/1998/Math/MathML" display="inline">
+- <mi>&xi;</mi>
+-</mathinline>
+-@end html
+-@tex
+-$\\xi$%
+-@end tex
+-@docbook
+-&xi;
+-@end docbook
+-@end macro
+-
+-
+ @c Text Fragments
+
+ @macro mainpurpose
+@@ -236,26 +103,3 @@
+ @noindent
+ @strong{Summary of influential options}
+ @end macro
+-
+-
+-@macro semilog{significant, exponent}
+-@ifinfo
+-\significant\*10^\exponent\@c
+-@end ifinfo
+-@html
+-<math xmlns="http://www.w3.org/1998/Math/MathML" display="inline">
+- <mn>\significant\</mn>
+- <mo>&times;</mo>
+- <msup>
+- <mn>10</mn>
+- <mn>\exponent\</mn>
+- </msup>
+-</math>
+-@end html
+-@tex
+-\\ifmmode\significant\ \\times 10^{\exponent\}\\else$\significant\ \\times 10^{\exponent\}$\\fi%
+-@end tex
+-@docbook
+-\significant\&times;10<superscript>\exponent\</superscript>
+-@end docbook
+-@end macro
+diff -r c1bcd2df4e37 -r 8387f0170f7b doc/bug-reports.texi
+--- a/doc/bug-reports.texi Fri Aug 07 16:43:18 2015 +0200
++++ b/doc/bug-reports.texi Fri Aug 07 16:43:24 2015 +0200
+@@ -77,7 +77,7 @@
+ @item
+ A complete set of input images that will reproduce the bug. Strive
+ for a minimal set of @emph{small}@footnote{Images of a size less than
+-1500@classictimes{}1000 pixels qualify as small.} images.
++1500x1000 pixels qualify as small.} images.
+
+ @item
+ The type of machine you are using, and the operating system name and
+diff -r c1bcd2df4e37 -r 8387f0170f7b doc/enblend.info
+Binary file doc/enblend.info has changed
+diff -r c1bcd2df4e37 -r 8387f0170f7b doc/enblend.texi
+--- a/doc/enblend.texi Fri Aug 07 16:43:18 2015 +0200
++++ b/doc/enblend.texi Fri Aug 07 16:43:24 2015 +0200
+@@ -508,9 +508,9 @@
+ twice as large as the previous one. So, the zeroth layer, the
+ original image, obviously defines the image at single-pixel scale, the
+ first level works at two-pixel scale, and generally, the @math{n}-th
+-level contains image data at @power{2, n}-pixel scale. This is the
++level contains image data at 2^n-pixel scale. This is the
+ reason why an image of
+-@math{width}@classictimes{}@/@math{height}@dmn{pixels} cannot be
++@math{width}x@/@math{height}@dmn{pixels} cannot be
+ deconstructed into a pyramid of more than
+ @ifinfo
+ @display
+@@ -1194,11 +1194,11 @@
+
+ @itemize
+ @item
+-Minimum normalized value: @semilog{1.2, -38}
++Minimum normalized value: 1.2e-38
+ @item
+-Epsilon: @semilog{1.2, -7}
++Epsilon: 1.2e-7
+ @item
+-Maximum finite value: @semilog{3.4, 38}
++Maximum finite value: 3.4e38
+ @end itemize
+
+ @c IEEE double: 64 bits, n = 53, k = 64 - n - 1 = 10
+@@ -1210,11 +1210,11 @@
+
+ @itemize
+ @item
+-Minimum normalized value: @semilog{2.2, -308}
++Minimum normalized value: 2.2e-308
+ @item
+-Epsilon: @semilog{2.2, -16}
++Epsilon: 2.2e-16
+ @item
+-Maximum finite value: @semilog{1.8, 308}
++Maximum finite value: 1.8e308
+ @end itemize
+ @end table
+
+@@ -1236,11 +1236,11 @@
+
+ @itemize
+ @item
+-Minimum normalized value: @semilog{9.3, -10}
++Minimum normalized value: 9.3e-10
+ @item
+-Epsilon: @semilog{2.0, -3}
++Epsilon: 2.0e-3
+ @item
+-Maximum finite value: @semilog{4.3, 9}
++Maximum finite value: 4.3e9
+ @end itemize
+
+ @item -f @var{WIDTH}x@var{HEIGHT}
+@@ -1250,7 +1250,7 @@
+ @cindex canvas size
+ @cindex size, canvas
+ Ensure that the minimum ``canvas'' size of the output image is at
+-least @var{WIDTH}@classictimes{}@/@var{HEIGHT}. Optionally specify
++least @var{WIDTH}x@/@var{HEIGHT}. Optionally specify
+ the @var{XOFFSET} and @var{YOFFSET}, too.
+
+ @pindex nona @r{(Hugin)}
+@@ -1572,7 +1572,7 @@
+ @value{src::default-coarseness-factor}, this means,
+ option@tie{}@option{--coarse-mask} shrinks the overlapping
+ @emph{areas} by a factor of
+-@math{@value{src::default-coarseness-factor}@classictimes{}@/@value{src::default-coarseness-factor}}.
++@math{@value{src::default-coarseness-factor}x@/@value{src::default-coarseness-factor}}.
+ With @var{FACTOR}@tie{}=@tie{}8 the total memory allocated during a
+ run of Enblend shrinks approximately by 80% and the maximum amount of
+ memory in use at a time is decreased to 60% (Enblend compiled with
+@@ -2494,7 +2494,7 @@
+ When using this option in conjunction with
+ option@tie{}@code{--coarse-mask}=@/@var{FACTOR}, keep in mind that the
+ smoothing occurs @emph{after} the overlap regions have been shrunken.
+-Thus, blurring affects a @var{FACTOR}@classictimes{}@/@var{FACTOR}
++Thus, blurring affects a @var{FACTOR}x@/@var{FACTOR}
+ times larger area in the original images.
+
+ Valid range: @var{RADIUS} @geq{} @value{src::minimum-smooth-difference}.
+@@ -2606,7 +2606,7 @@
+ @rimage{seam-line-visualization}
+
+ @caption{Seam-line visualization of a simple overlap. The
+-853@classictimes{}238@dmn{pixel} image is shown at a magification of
++853x238@dmn{pixel} image is shown at a magification of
+ 100%.}
+
+ @shortcaption{Seam-line visualization}
+@@ -2618,7 +2618,7 @@
+ @rimage{seam-line-visualization, 15cm}
+
+ @caption{Seam-line visualization of a simple overlap. The
+-853@classictimes{}238@dmn{pixel} image has been rescaled to a width of
++853x238@dmn{pixel} image has been rescaled to a width of
+ approximately 15@dmn{cm}.}
+
+ @shortcaption{Seam-line visualization}
+@@ -2629,7 +2629,7 @@
+ @float Figure,Figure:seam-line-visualization
+ @rimage{seam-line-visualization, 15cm}
+
+-@caption{Seam-line visualization of a simple overlap. The 853@classictimes{}238@dmn{pixel} image has been rescaled to a width of approximately 15@dmn{cm}.}
++@caption{Seam-line visualization of a simple overlap. The 853x238@dmn{pixel} image has been rescaled to a width of approximately 15@dmn{cm}.}
+
+ @shortcaption{Seam-line visualization}
+ @end float
+diff -r c1bcd2df4e37 -r 8387f0170f7b doc/enfuse.info
+Binary file doc/enfuse.info has changed
+diff -r c1bcd2df4e37 -r 8387f0170f7b doc/enfuse.texi
+--- a/doc/enfuse.texi Fri Aug 07 16:43:18 2015 +0200
++++ b/doc/enfuse.texi Fri Aug 07 16:43:24 2015 +0200
+@@ -621,9 +621,9 @@
+ twice as large as the previous one. So, the zeroth layer, the
+ original image, obviously defines the image at single-pixel scale, the
+ first level works at two-pixel scale, and generally, the @math{n}-th
+-level contains image data at @power{2, n}-pixel scale. This is the
++level contains image data at 2^n-pixel scale. This is the
+ reason why an image of
+-@math{width}@classictimes{}@/@math{height}@dmn{pixels} cannot be
++@math{width}x@/@math{height}@dmn{pixels} cannot be
+ deconstructed into a pyramid of more than
+ @ifinfo
+ @display
+@@ -1255,11 +1255,11 @@
+
+ @itemize
+ @item
+-Minimum normalized value: @semilog{1.2, -38}
++Minimum normalized value: 1.2e-38
+ @item
+-Epsilon: @semilog{1.2, -7}
++Epsilon: 1.2e-7
+ @item
+-Maximum finite value: @semilog{3.4, 38}
++Maximum finite value: 3.4e38
+ @end itemize
+
+ @c IEEE double: 64 bits, n = 53, k = 64 - n - 1 = 10
+@@ -1271,11 +1271,11 @@
+
+ @itemize
+ @item
+-Minimum normalized value: @semilog{2.2, -308}
++Minimum normalized value: 2.2e-308
+ @item
+-Epsilon: @semilog{2.2, -16}
++Epsilon: 2.2e-16
+ @item
+-Maximum finite value: @semilog{1.8, 308}
++Maximum finite value: 1.8e308
+ @end itemize
+ @end table
+
+@@ -1297,11 +1297,11 @@
+
+ @itemize
+ @item
+-Minimum normalized value: @semilog{9.3, -10}
++Minimum normalized value: 9.3e-10
+ @item
+-Epsilon: @semilog{2.0, -3}
++Epsilon: 2.0e-3
+ @item
+-Maximum finite value: @semilog{4.3, 9}
++Maximum finite value: 4.3e9
+ @end itemize
+
+ @item -f @var{WIDTH}x@var{HEIGHT}
+@@ -1311,7 +1311,7 @@
+ @cindex canvas size
+ @cindex size, canvas
+ Ensure that the minimum ``canvas'' size of the output image is at
+-least @var{WIDTH}@classictimes{}@/@var{HEIGHT}. Optionally specify
++least @var{WIDTH}x@/@var{HEIGHT}. Optionally specify
+ the @var{XOFFSET} and @var{YOFFSET}, too.
+
+ @pindex nona @r{(Hugin)}
+@@ -1501,8 +1501,8 @@
+ @var{LCE-SCALE} is the radius of the Gaussian used in the enhancement
+ step, @var{LCE-FACTOR} is the weight factor (``strength'').
+
+-@var{enhanced} = (1 + @var{LCE-FACTOR}) @classictimes{} @var{original}
+-@minus{} @var{LCE-FACTOR} @classictimes{} Gaussian@/Smooth(@var{original},
++@var{enhanced} = (1 + @var{LCE-FACTOR}) x @var{original}
++@minus{} @var{LCE-FACTOR} x Gaussian@/Smooth(@var{original},
+ @var{LCE-SCALE}).
+
+ @var{LCE-SCALE} defaults to @value{src::default-lce-scale} pixels and
+@@ -1531,7 +1531,7 @@
+ @opindex --contrast-window-size
+
+ Set the window @var{SIZE} for local contrast analysis. The window
+-will be a square of @var{SIZE}@classictimes{}@/@var{SIZE} pixels. If
++will be a square of @var{SIZE}x@/@var{SIZE} pixels. If
+ given an even @var{SIZE}, Enfuse will automatically use the next odd
+ number.
+
+@@ -1585,7 +1585,7 @@
+ @opindex --entropy-window-size
+
+ Window @var{SIZE} for local entropy analysis. The window will be a
+-square of @var{SIZE}@classictimes{}@/@var{SIZE} pixels.
++square of @var{SIZE}x@/@var{SIZE} pixels.
+
+ In the entropy calculation @var{SIZE} values of 3 to 7 yield an
+ acceptable compromise of the locality of the information and the
+@@ -2433,20 +2433,6 @@
+ from 1 to the common height, and @math{i} from 1 to the number of
+ input images@tie{}@math{n}.
+
+-@macro equationW{}
+-@ifnotdocbook
+-@ifnottex
+-(W)
+-@end ifnottex
+-@end ifnotdocbook
+-@tex
+-(W)%
+-@end tex
+-@docbook
+-<xref linkend="equ:pixel-weighting-function"/>
+-@end docbook
+-@end macro
+-
+ Enfuse allows for weighting the contribution of each @math{P(i, x, y)}
+ to the final @math{Q(x, y)}:
+ @ifinfo
+@@ -2454,7 +2440,7 @@
+ @math{w(P(1, x, y)) * P(1, x, y) +
+ ... +
+ w(P(n, x, y)) * P(n, x, y)
+---> Q(x, y),}@w{ }@equationW{}
++--> Q(x, y),}
+ @end display
+ @end ifinfo
+ @html
+@@ -2520,9 +2506,6 @@
+ <mi>y</mi>
+ </mfenced>
+ </mrow>
+- <mtext>,</mtext>
+- <mspace width="4em"/>
+- <mtext>@equationW{}</mtext>
+ </mrow>
+ </math>
+ @end html
+@@ -2530,7 +2513,7 @@
+ $$
+ w(P(1, x, y)) P(1, x, y) + \ldots + w(P(n, x, y)) P(n, x, y)
+ \rightarrow
+- Q(x, y),\hskip4em\hbox{@equationW{}}
++ Q(x, y)
+ $$
+ @end tex
+ @docbook
+@@ -2948,7 +2931,7 @@
+ be extreme, favoring only a few pixels or even only one pixel in the
+ input stack. Extremes are not typical, however.
+
+-Equal weights are another extreme that turns @equationW{} into an
++Equal weights are another extreme that turns the equation into an
+ arithmetic average. This is why we sometimes speak of the ``averaging
+ property'' of this weighting algorithm, like smoothing out noise.
+
+@@ -2969,7 +2952,7 @@
+ wins, this is, gets weight@tie{}one, and all other pixels get the
+ weight of zero
+ (@uref{http://@/en.wikipedia.org/@/wiki/@/The_@/Winner_@/Takes_@/It_@/All,,``The
+-Winner Takes It All.''}). With @option{--hard-mask} Equation@tie{}@equationW{}
++Winner Takes It All.''}). With @option{--hard-mask} the equation
+ becomes
+ @ifinfo
+ @display
+@@ -3114,8 +3097,8 @@
+
+ @noindent
+ Note that this ``averaging'' scheme lacks the nice noise-reduction
+-property of the weighted average@tie{}@equationW{}, because only a
+-single input pixel contributes to the output.
++property of the weighted average, because only a single input pixel
++contributes to the output.
+
+
+ @node Single Criterion Fusing
+@@ -3562,7 +3545,7 @@
+
+ @noindent
+ It associates a probability@tie{}@math{p} with each of the @math{n}
+-different possible outcomes@tie{}@inlineomega{} of the random
++different possible outcomes@tie{}@math{omega} of the random
+ variable@tie{}@math{X}.
+ @cindex expectation value
+ Based on @math{w}, we define the @dfn{expectation value} or ``First
+@@ -4189,7 +4172,7 @@
+ @end docbook
+
+ @noindent
+-The parameter@tie{}@inlinesigma{}, the argument of
++The parameter@tie{}@math{sigma}, the argument of
+ option@tie{}@option{--contrast-edge-scale}, is the length scale on which edges
+ are detected by @math{g(x, y)}. We apply the Laplacian operator in
+ Cartesian coordinates
+@@ -4401,7 +4384,7 @@
+ </informalequation>
+ @end docbook
+
+-where we have used the dimensionless distance@tie{}@inlinexi{} from
++where we have used the dimensionless distance@tie{}@math{xi} from
+ the origin
+ @ifinfo
+ @display
+@@ -4556,7 +4539,7 @@
+ @float Figure,Figure:laplacian-of-gaussian
+ @vimage{laplacian-of-gaussian}
+
+-@caption{Laplacian-of-Gaussian function for @inlinesigma{} = 0.5.}
++@caption{Laplacian-of-Gaussian function for @math{sigma} = 0.5.}
+
+ @shortcaption{Laplacian-of-Gaussian}
+ @end float
+@@ -4656,10 +4639,10 @@
+ @var{CURVATURE} nor the mode of operation (@acronym{SDev}-only,
+ @acronym{LoG}-only, or a blend of both) scales to different image
+ sizes. In practice, this means that if you start with a set of
+-reduced size images, say 2808@classictimes{}1872 pixels, carefully
++reduced size images, say 2808x1872 pixels, carefully
+ optimize @var{EDGESCALE}, @var{CURVATURE} and so on, and find
+ @acronym{LoG}-only the best mode, and then switch to the original
+-resolution of 5616@classictimes{}3744 pixels, multiplying (or
++resolution of 5616x3744 pixels, multiplying (or
+ dividing) the parameters by four and sticking to @acronym{LoG}-only
+ might @emph{not} result in the best fused image. For best quality,
+ perform the parameter optimization and the search for the most
+@@ -5080,9 +5063,9 @@
+ Images should align well to be suitable for fusion. However, there is
+ no hard mathematical rule what ``well'' means. The alignment
+ requirements for 16@dmn{MPixel} images to yield a sharp
+-4"@classictimes{}6" print at 300@dmn{dpi} (``dpi'' means dots per
++4"x6" print at 300@dmn{dpi} (``dpi'' means dots per
+ inch) or even for web presentation are relatively low, whereas the
+-alignment of 8@dmn{MPixel} images for a 12"@classictimes{}18" print
++alignment of 8@dmn{MPixel} images for a 12"x18" print
+ ought to be tight.
+
+ @pindex hugin
+@@ -5548,7 +5531,7 @@
+
+ Let us use an example to illustrate the problem of relating the
+ sharpness with the local contrast variations. Say we use a
+-5@classictimes{}5 contrast window. Moreover, let @code{sharp_edge}
++5x5 contrast window. Moreover, let @code{sharp_edge}
+ and @code{smooth_edge} be two specific configurations:
+
+ @example
+@@ -5727,7 +5710,7 @@
+ Apply the default grayscale projector: @code{average} and throw away
+ all edges with a curvature of less than 0.5% and replace the
+ @acronym{LoG} data between 0% and 0.5% with @acronym{SDev} data. Use
+-a window of 7@classictimes{}7@dmn{pixel} window to compute the
++a window of 7x7@dmn{pixel} window to compute the
+ @acronym{SDev}.
+ @end table
+
+diff -r c1bcd2df4e37 -r 8387f0170f7b doc/versenblend.texi
+--- a/doc/versenblend.texi Fri Aug 07 16:43:18 2015 +0200
++++ b/doc/versenblend.texi Fri Aug 07 16:43:24 2015 +0200
+@@ -1,4 +1,4 @@
+-@set UPDATED 10 March 2014
+-@set UPDATED-MONTH March 2014
++@set UPDATED 15 June 2015
++@set UPDATED-MONTH June 2015
+ @set EDITION 4.1.3
+ @set VERSION 4.1.3
+diff -r c1bcd2df4e37 -r 8387f0170f7b doc/versenfuse.texi
+--- a/doc/versenfuse.texi Fri Aug 07 16:43:18 2015 +0200
++++ b/doc/versenfuse.texi Fri Aug 07 16:43:24 2015 +0200
+@@ -1,4 +1,4 @@
+-@set UPDATED 10 March 2014
+-@set UPDATED-MONTH March 2014
++@set UPDATED 15 June 2015
++@set UPDATED-MONTH June 2015
+ @set EDITION 4.1.3
+ @set VERSION 4.1.3
+
diff --git a/media-gfx/enblend/files/enblend-4.1.3-vigra_check.patch b/media-gfx/enblend/files/enblend-4.1.3-vigra_check.patch
new file mode 100644
index 000000000000..d067df3c57ae
--- /dev/null
+++ b/media-gfx/enblend/files/enblend-4.1.3-vigra_check.patch
@@ -0,0 +1,11 @@
+--- a/ConfigureChecks.cmake 2013-10-07 10:50:00.000000000 +0400
++++ b/ConfigureChecks.cmake 2015-03-31 13:42:40.179527224 +0300
+@@ -53,7 +53,7 @@
+ if(VIGRA_FOUND AND NOT VIGRA_VERSION_CHECK)
+ unset(VIGRA_SETIMAGEINDEX CACHE)
+ set(CMAKE_REQUIRED_INCLUDES ${VIGRA_INCLUDE_DIR})
+- set(CMAKE_REQUIRED_LIBRARIES ${VIGRA_LIBRARIES})
++ set(CMAKE_REQUIRED_LIBRARIES ${VIGRA_LIBRARIES} -lpthread)
+ check_cxx_source_compiles(
+ "
+ #include <vigra/imageinfo.hxx>
diff --git a/media-gfx/enblend/files/enblend-4.2-doc-install-dir-fix.patch b/media-gfx/enblend/files/enblend-4.2-doc-install-dir-fix.patch
new file mode 100644
index 000000000000..c952eeb7780a
--- /dev/null
+++ b/media-gfx/enblend/files/enblend-4.2-doc-install-dir-fix.patch
@@ -0,0 +1,66 @@
+* Remove the CMAKE_BUILD_TYPE conditional code, in order to build using CMAKE_BUILD_TYPE=Gentoo
+* Install html files in html subdir of doc dir
+
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -11,9 +11,6 @@
+ set(CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS true)
+
+ project(enblend)
+-IF(NOT MSVC)
+- SET(CMAKE_BUILD_TYPE Release CACHE STRING "Choose the type of build, options are: None Debug Release RelWithDebInfo MinSizeRel" FORCE)
+-ENDIF(NOT MSVC)
+ # where to look first for cmake modules, before ${CMAKE_ROOT}/Modules/
+ # is checked
+ # For now, reuse the hugin modules directory
+@@ -130,7 +127,6 @@
+ ENDIF()
+
+ IF(CMAKE_COMPILER_IS_GNUCXX)
+- SET(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -O3 -ffast-math -DNDEBUG -Wall")
+ IF(APPLE AND CMAKE_MAJOR_VERSION EQUAL 2 AND CMAKE_MINOR_VERSION LESS 5)
+ ## Add needed Compiler and Linker flags for OSX
+ SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -flat_namespace -undefined suppress")
+@@ -154,20 +150,6 @@
+ SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /bigobj")
+ ENDIF(CMAKE_CL_64)
+
+- # compile everything for the static C runtime
+- FOREACH(TYPE C CXX)
+- # makefiles use blank configuration
+- FOREACH(CFG "_DEBUG" "_MINSIZEREL" "_RELEASE" "_RELWITHDEBINFO")
+- #MESSAGE("Replacing CMAKE_${TYPE}_FLAGS${CFG}: ${CMAKE_${TYPE}_FLAGS${CFG}}")
+- SET(NEW_FLAGS "${CMAKE_${TYPE}_FLAGS${CFG}}")
+- # fix up static libc flags
+- STRING(REPLACE "/MD" "/MT" NEW_FLAGS "${NEW_FLAGS}")
+- # *FORCE* to override whats already placed into the cache
+- SET(CMAKE_${TYPE}_FLAGS${CFG} "${NEW_FLAGS}" CACHE STRING
+- "CMAKE_${TYPE}_FLAGS${CFG} (overwritten to ensure static build)" FORCE)
+- #MESSAGE("New CMAKE_${TYPE}_FLAGS${CFG}: ${CMAKE_${TYPE}_FLAGS${CFG}}")
+- ENDFOREACH(CFG)
+- ENDFOREACH(TYPE)
+ # link only with the static C runtime !! THIS IS A MUST !!
+ SET(NEW_FLAGS "${CMAKE_EXE_LINKER_FLAGS}")
+ # ensure that the flags are not duplicated on subsequent runs
+--- a/doc/CMakeLists.txt
++++ b/doc/CMakeLists.txt
+@@ -406,7 +406,7 @@
+ "${CMAKE_BINARY_DIR}/doc/enfuse.html"
+ ${ENBLEND_PNGFILES}
+ ${ENFUSE_PNGFILES}
+- DESTINATION ${DocumentsDirectory}
++ DESTINATION ${DocumentsDirectory}/html
+ )
+ endif()
+
+--- a/src/CMakeLists.txt
++++ b/src/CMakeLists.txt
+@@ -102,7 +102,7 @@
+ endif(OpenMP_CXX_FLAGS AND NOT MSVC)
+ target_link_libraries(enblend ${common_libs} ${additional_libs})
+ target_link_libraries(enfuse ${common_libs} ${additional_libs})
+-install(TARGETS enblend enfuse DESTINATION bin CONFIGURATIONS Release RelWithDebInfo MinSizeRel)
++install(TARGETS enblend enfuse DESTINATION bin)
+
+ if(NOT WIN32)
+ # create enblend.1 and enfuse.1
diff --git a/media-gfx/enblend/files/enblend-4.2.0_p20161007-cmake.patch b/media-gfx/enblend/files/enblend-4.2.0_p20161007-cmake.patch
new file mode 100644
index 000000000000..fcbeb64232d1
--- /dev/null
+++ b/media-gfx/enblend/files/enblend-4.2.0_p20161007-cmake.patch
@@ -0,0 +1,11 @@
+--- a/CMakeModules/FindLCMS2.cmake 2016-09-24 11:28:47.000000000 +0200
++++ b/CMakeModules/FindLCMS2.cmake 2017-02-11 16:15:33.492507341 +0100
+@@ -5,7 +5,7 @@
+ /usr/local/include
+ /usr/include
+ )
+- FIND_LIBRARY(LCMS2_LIBRARIES lcms2 HINTS /usr/local/lib /usr/lib/x86_64-linux-gnu /usr/lib32)
++ FIND_LIBRARY(LCMS2_LIBRARIES lcms2 HINTS /usr/local/lib /usr/lib/x86_64-linux-gnu /usr/lib)
+ ELSE(NOT WIN32)
+ FIND_PATH(LCMS2_ROOT_DIR
+ NAMES include/lcms2.h
diff --git a/media-gfx/enblend/metadata.xml b/media-gfx/enblend/metadata.xml
new file mode 100644
index 000000000000..621b21a35cf1
--- /dev/null
+++ b/media-gfx/enblend/metadata.xml
@@ -0,0 +1,15 @@
+<?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>
+ <use>
+ <flag name="gpu">GPU support for Enblend</flag>
+ <flag name="image-cache">allow for processing of large images</flag>
+ </use>
+ <upstream>
+ <remote-id type="sourceforge">enblend</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/media-gfx/engauge/Manifest b/media-gfx/engauge/Manifest
new file mode 100644
index 000000000000..cb7ddab952b2
--- /dev/null
+++ b/media-gfx/engauge/Manifest
@@ -0,0 +1,5 @@
+DIST engauge_5.2.tgz 5708224 SHA256 2defe5f06a78cbb9e3361e649de6b84b90fa85e3f587245e240b8efb8df78b36 SHA512 b1839a223c93866f880ca090b6dd5a9ab45a89b5f6f470fd6abba3e2aa4b108ed228c8b06c3888fa463316798c2d157e20b2e22975bd65a1124d007bb36d2d88 WHIRLPOOL 528cc08a6c6d2dcef39ca0bcbc221f29131ae47e1b28b5b727a1336d15ed9c5a6045fd62a853a423ca5edd3a4a369bd1dc76847396c0d51036a4c6bc33ff9004
+EBUILD engauge-5.2.ebuild 1293 SHA256 a65a8babf7b96c795ad15d8b0188ecc712caf516ac18c62ecf8d20e9bc1f64be SHA512 935c106dad40e7c48255002c2d59c8db5524ceb3e818f554b4bbc660bc7e4f081aeba4fe3db21f3c38151cc66877eaf9730a825351236af690026996b3540e1c WHIRLPOOL bf537c97bc5119eefc9d5d07865b4d6510d4c2fa7f08a03d906a0d087c0cb827f91283764a247e23fff9f77386d3c08b9546cc2e7a681cc0267d7e955af1604b
+MISC ChangeLog 2399 SHA256 718da30e6fe027b372dd2ec349fcda708145693a893a027e507caeffd2986f07 SHA512 c1255dea151878b1b055791e396739f79af01ac5a5918286fba803b3d36b81572e0a1af532670b058a46a3af5271b309bc8c1f107680e1d445cc7fdb826df85b WHIRLPOOL d3a8038e6ff9071849dda3d28c679810e4f8c9f0a4bb82d1570f900fe2a635080a11531072e60fe0d1c904bc43582f0ace3c46a53be0e94f15333746c0848674
+MISC ChangeLog-2015 2674 SHA256 59b66d71d7015edfec8cf7d48bcd56a37bc03e727e552d36e6072d8ba452f765 SHA512 e1cb8a387279ec87f71ab33d7392bf5dc80d15784c067e60c43a6eb86f73c738b67dda695c8be2e6b9a5c89e387105496d18172800ff0aa2d9909b56918327c0 WHIRLPOOL 60cc4acc2da463e43bf4c2b4df942262552f3044ce1a59fb070ba9ab730fb84466b67c7b034a45871a09771d5af4c7024c1142532dac73f99ae07947c52a6ca0
+MISC metadata.xml 337 SHA256 8442d704b44eeb440596cbe706e1f8bc34e604f805e7f30d7bbb72b89b604867 SHA512 41201e69d211283450ef6ff45a23e0978934044e170da84de7e7978360bd5ce1e3b277df4a90e00221cca3f987cd6839ee90fceea232c70cebeb69b5bc7c1c6d WHIRLPOOL 65aa51327fef9bab4d456a6408f2dd45370b017bd3026a4e59945777255840542432b06a98c010f973420a863832e6186a38bf56e365b79cead312ea7149ccf4
diff --git a/media-gfx/engauge/engauge-5.2.ebuild b/media-gfx/engauge/engauge-5.2.ebuild
new file mode 100644
index 000000000000..95b112256c2f
--- /dev/null
+++ b/media-gfx/engauge/engauge-5.2.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit versionator qmake-utils eutils
+
+DESCRIPTION="Convert an image file showing a graph or map into numbers"
+HOMEPAGE="http://digitizer.sourceforge.net/"
+SRC_URI="mirror://sourceforge/digitizer/${PN}_${PV}.tgz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc examples"
+
+RDEPEND="dev-qt/qt3support:4
+ dev-qt/qtgui:4[gif(+)]
+ sci-libs/fftw:3.0
+ x11-libs/libXft"
+DEPEND="${RDEPEND}"
+
+src_prepare() {
+ # Some patching and using the DEBIAN_PACKAGE ifdef is necessary to make sure the
+ # documentation is looked for in the proper directory
+ sed -i -e "s:/usr/share/doc/engauge-digitizer-doc/html:${ROOT}/usr/share/doc/${PF}/usermanual:" \
+ src/digitmain.cpp || die "sed failed"
+ sed -i -e '/unix {/a DEFINES += DEBIAN_PACKAGE' \
+ digitizer.pro || die "sed failed"
+ eapply_user
+}
+
+src_configure() {
+ eqmake4 digitizer.pro
+}
+
+src_install() {
+ dobin bin/engauge
+ newicon src/img/lo32-app-digitizer.png "${PN}.png"
+ make_desktop_entry engauge "Engauge Digitizer" ${PN} Graphics
+ insinto /usr/share/doc/${PF}
+ if use doc; then
+ doins -r usermanual || die "install documentation failed"
+ fi
+ if use examples; then
+ doins -r samples || die "install examples failed"
+ fi
+}
diff --git a/media-gfx/engauge/metadata.xml b/media-gfx/engauge/metadata.xml
new file mode 100644
index 000000000000..f716ecb660cd
--- /dev/null
+++ b/media-gfx/engauge/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>calchan@gentoo.org</email>
+ <name>Denis Dupeyron</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">digitizer</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/media-gfx/entangle/Manifest b/media-gfx/entangle/Manifest
new file mode 100644
index 000000000000..c1324bb16d90
--- /dev/null
+++ b/media-gfx/entangle/Manifest
@@ -0,0 +1,5 @@
+DIST entangle-0.6.0.tar.gz 906858 SHA256 d13eef54f8f501cac1e854de9d3841042777cabee7ffd1c804180e717bf485bd SHA512 f96718f01286eb0dbf1fafd4d51258bda876a5b22a6167173f0f60b4fe00683baff3d4c8f9866a5dc1eec493e2b25fd932794a63a8a8d102cb220b1d6ea8e960 WHIRLPOOL 539a7d1821beff0c3f8dfd439ed633348ba07380f3968d3c8a3261911235975ab04a7c858a2c017b12d6c7b355bca8c6395e2fe6549409573fbc7d68bed74f35
+EBUILD entangle-0.6.0.ebuild 991 SHA256 89b5f0cdf57ae1a4f8c55490f72b5da3968e4adde178f12a8f920b18de58c8de SHA512 eb5c262a859934b1b22298dd4cabdf65e64b903dae4c78223a56a73b0286916cc4ff163b60f5af8fa5244e93ed577aba0c09c79726264731849006720f78dbb5 WHIRLPOOL 979f70f84feddb9fdf4983174a6a8900382c6726f859f80f0d8ea5ee7180d7bc9042ebd8c8067f7e4cf10f2848cbd21341c91ae8aaa2a0df0f4afc7edfaf0865
+MISC ChangeLog 2551 SHA256 ed57a2556467b04ce2e76090a9b57d84667ba9971bfb8bde2159a8afcac85693 SHA512 1a387ce5b5a544b1c4ec69b286751a3b3c8176f209cb017d282e7ded609173b4809227b252a99872c56b879937bcb7890f6b9b17615f549109f4e6b361071c5c WHIRLPOOL ddf80eb5c4fbd7f8832cb8fb67b58fea00a40723129b968e4e598dd873124edfc86a9e136d640186e3e8cfaf81584e032c158ebef58846b72360f5fd1c5b28aa
+MISC ChangeLog-2015 2352 SHA256 278e159a0ef8bfce8cbed4119abf72761ad3d2f5e3218007c3c714153648c45d SHA512 bab08a973afb630c43ed51245cca85fc38186a637d8549a5f34f3c203814846ed624aaf3fba637b1ac22f9e0f189d6099136b04f796dbd0827643360cd8b0bde WHIRLPOOL 0a20cf5d61e1701830e14830056b2383895704a98f93ffaf1837a249a8b95c281f6dcf6d10f0c69e3f2d1b2a92475ce9b4faebc98c716a1f9e26085a3a0fad74
+MISC metadata.xml 346 SHA256 741cdab10788ba6c3ed58b32636a6c924b633815fe3be3e1452d741c6febf7b6 SHA512 19cac2a6a0e8bb49233bc0ddcaed0fb1de6201dd97310905541eff5f6bbde29d80a4afb8c0860871e0cb95c5ca1c68db493cdd80606bcbf228f8d041d8337561 WHIRLPOOL 067ac8ebe839f8f83ccc14cef294fa4b5ce34d015648b28afb2d752851c20481fe2231ac0b1914543807b30308b79c495655725090d5fc86251484dd5e2b2cbb
diff --git a/media-gfx/entangle/entangle-0.6.0.ebuild b/media-gfx/entangle/entangle-0.6.0.ebuild
new file mode 100644
index 000000000000..83e81921d62d
--- /dev/null
+++ b/media-gfx/entangle/entangle-0.6.0.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit gnome2 eutils
+
+DESCRIPTION="Tethered Camera Control & Capture"
+HOMEPAGE="http://entangle-photo.org/"
+SRC_URI="http://entangle-photo.org/download/sources/${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE=""
+
+DEPEND=">=dev-libs/glib-2.26:2
+ >=x11-libs/gdk-pixbuf-2.12.0:2
+ >=x11-libs/gtk+-3.3.18:3[introspection]
+ virtual/libgudev:=
+ >=dev-libs/dbus-glib-0.60
+ >=dev-libs/gobject-introspection-0.9.3
+ >=media-libs/libgphoto2-2.4.11:=
+ media-libs/lcms:2
+ >=dev-libs/libpeas-1.2.0[gtk]
+ >=media-libs/gexiv2-0.4[introspection]
+ >=x11-libs/libXext-1.3.0
+ >=x11-themes/gnome-icon-theme-symbolic-3.0.0
+ >=media-libs/libraw-0.9.0"
+RDEPEND="${DEPEND}"
+DEPEND+="
+ virtual/pkgconfig"
+
+G2CONF+="
+ --disable-maintainer-mode
+ --docdir=/usr/share/doc/${PF}
+ --htmldir=/usr/share/doc/${PF}/html
+ --disable-werror
+ --disable-static"
+
+DOCS=( AUTHORS ChangeLog NEWS README )
diff --git a/media-gfx/entangle/metadata.xml b/media-gfx/entangle/metadata.xml
new file mode 100644
index 000000000000..b14feceaa878
--- /dev/null
+++ b/media-gfx/entangle/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>lu_zero@gentoo.org</email>
+ </maintainer>
+<maintainer type="project">
+ <email>media-video@gentoo.org</email>
+ <name>Gentoo Video project</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/media-gfx/eog-plugins/Manifest b/media-gfx/eog-plugins/Manifest
new file mode 100644
index 000000000000..58e1079d9f62
--- /dev/null
+++ b/media-gfx/eog-plugins/Manifest
@@ -0,0 +1,5 @@
+DIST eog-plugins-3.16.6.tar.xz 398836 SHA256 51ca356a29bbedfc48ce3fd1de1efe9339af38020c301df79dae6b67cd34ed96 SHA512 e3bff786785ae36a41bc7c5fcb3cf75233595777409f373c4a6597fa6e432f72c7a75608e09ab66e1033ca0d12e3855346d7f7e0c571014b5aaef40184a3383b WHIRLPOOL 277016a9939e213f40c5612b1afbdf7119951eecd346bb5d70b4665d07a1aa7082add1b2fe51a6e3c3b71ea5dd7c2e55484ac2af3792fc7b1facdaadc78cea2a
+EBUILD eog-plugins-3.16.6.ebuild 1677 SHA256 1868698a790746c03a548200feeae5d28d07471b1804dd5b9628cdfede2a976e SHA512 12f8224d6ebcec0b85535dc1d15d805d67cf7e16b7dfeada021207edd08ef43c93badb5f00f63df520571d70f028211f9a2ada7a8c78893a307478d6f420f41a WHIRLPOOL e448cc9af5855df029f834c1076dcba6d0986e614d1bf21dc665ea63ab91646884eb1ce50fa280a6eea5ea1d2d020392ff12dc6deaf5cc0132b28270e8b1a1a5
+MISC ChangeLog 5894 SHA256 c235cc7e1fc12f89e78eb4d30bcebdf9017c476ddd3aacfceaf96f9dfb0bcbae SHA512 79933acb0448e8b50010af654dee249356dcb3fc09f9254c418295cbb2eec456724a97628417fb9237c1732249209dc12db4e79412acd20b7cf50ca660363593 WHIRLPOOL d8a6bd509c5c1755f31efe3267a23ba7922d5211fe6821fa8db479c7e16eaa7c841a48ee2fa806fb314d4879f9b0878a8bdf6bd7b516c02d1dfe4477166a510e
+MISC ChangeLog-2015 4313 SHA256 f3c94851e4530e4f826f33d601b7ed2fc5b51eedbfbe456111850d77ec201abe SHA512 c07ff8215dfacfbdf3762c7c179f8db6c4b89418cf277c9fff44a2d8d64c827f6afacb46dee5616024de786fe8670fd18e45ba1fa36d70dc7216a5c5f88bb281 WHIRLPOOL 23a2c91f8f34abec5c480b4e418701951d7f8b6ba5c107c8d25c1c4853d3ac91732ea35f112f747c237ac2d37009d0feea5382198052b5e7a2fb9c397f6267d0
+MISC metadata.xml 483 SHA256 7302ddb52b3b53c0aa4a15987a03b6e6ac2e47f6f507eec23af5984c7ecdba26 SHA512 f1b4c8e14547335019aa74506f2c5391783cabe118aa91e8f658117a6151cd53bb1728d36ae63a5c50fe9d548ee6f6b47294ae0c0af43e869de9815cf600afed WHIRLPOOL 39529cdbd36d5877e3bd99499f21db76fa38dc9fb3b7493b419db6b1d1e11c2b7cb3fec4d0522ec7c98a2ad501aa08bf868424f3cb7461a028b0a9c78bfd5020
diff --git a/media-gfx/eog-plugins/eog-plugins-3.16.6.ebuild b/media-gfx/eog-plugins/eog-plugins-3.16.6.ebuild
new file mode 100644
index 000000000000..9c1111a8ae31
--- /dev/null
+++ b/media-gfx/eog-plugins/eog-plugins-3.16.6.ebuild
@@ -0,0 +1,65 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+GNOME2_LA_PUNT="yes"
+PYTHON_COMPAT=( python{3_4,3_5} )
+
+inherit gnome2 python-single-r1
+
+DESCRIPTION="Eye of GNOME plugins"
+HOMEPAGE="https://wiki.gnome.org/Apps/EyeOfGnome/Plugins"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+
+IUSE="+exif flickr map picasa +python"
+REQUIRED_USE="
+ map? ( exif )
+ python? ( ${PYTHON_REQUIRED_USE} )
+"
+
+RDEPEND="
+ >=dev-libs/glib-2.38:2
+ >=dev-libs/libpeas-0.7.4:=
+ >=media-gfx/eog-3.15.90
+ >=x11-libs/gtk+-3.14:3
+ exif? ( >=media-libs/libexif-0.6.16 )
+ flickr? ( media-gfx/postr )
+ map? (
+ media-libs/libchamplain:0.12[gtk]
+ >=media-libs/clutter-1.9.4:1.0
+ >=media-libs/clutter-gtk-1.1.2:1.0 )
+ picasa? ( >=dev-libs/libgdata-0.9.1:= )
+ python? (
+ ${PYTHON_DEPS}
+ >=dev-libs/glib-2.32:2[dbus]
+ dev-libs/libpeas:=[gtk,python,${PYTHON_USEDEP}]
+ dev-python/pygobject:3[${PYTHON_USEDEP}]
+ gnome-base/gsettings-desktop-schemas
+ media-gfx/eog[introspection]
+ x11-libs/gtk+:3[introspection]
+ x11-libs/pango[introspection] )
+"
+DEPEND="${RDEPEND}
+ >=dev-util/intltool-0.50.1
+ sys-devel/gettext
+ virtual/pkgconfig
+"
+
+pkg_setup() {
+ use python && python-single-r1_pkg_setup
+}
+
+src_configure() {
+ local plugins="fit-to-width,send-by-mail,hide-titlebar,light-theme"
+ use exif && plugins="${plugins},exif-display"
+ use flickr && plugins="${plugins},postr"
+ use map && plugins="${plugins},map"
+ use picasa && plugins="${plugins},postasa"
+ use python && plugins="${plugins},slideshowshuffle,pythonconsole,fullscreenbg,export-to-folder,maximize-windows"
+ gnome2_src_configure \
+ $(use_enable python) \
+ --with-plugins=${plugins}
+}
diff --git a/media-gfx/eog-plugins/metadata.xml b/media-gfx/eog-plugins/metadata.xml
new file mode 100644
index 000000000000..6943c23f1ddd
--- /dev/null
+++ b/media-gfx/eog-plugins/metadata.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>gnome@gentoo.org</email>
+ <name>Gentoo GNOME Desktop</name>
+</maintainer>
+<use>
+ <flag name="flickr">Enable uploading to Flickr</flag>
+ <flag name="map">Enable world map display using <pkg>media-libs/libchamplain</pkg></flag>
+ <flag name="picasa">Enable uploading to Google's Picasa Web Albums</flag>
+</use>
+</pkgmetadata>
diff --git a/media-gfx/eog/Manifest b/media-gfx/eog/Manifest
new file mode 100644
index 000000000000..c70d47b1aa45
--- /dev/null
+++ b/media-gfx/eog/Manifest
@@ -0,0 +1,7 @@
+DIST eog-3.20.5.tar.xz 4622880 SHA256 e6e7c5a1aaf2508065e19f0669eb6c1028e8e04c7d3504b9027bd1e009731b3b SHA512 b4256cfe5f42921efd58d7ce09fa2a82d0328e1fe4cd94e953cc161c23b5079d05b89106ec78c670079d0b6ff0f31eeff25d67c259a600dbb4a0afe25b5d93a1 WHIRLPOOL 2d629c11659c356bfae05a6a60f2f424a675a4bc3a2fb02a5a747bbd3aab2e76b8ab64eec9a8a46dad4ac3fd4104abe244578aea25a3dc95c740b353b0f62bcc
+DIST eog-3.24.1.tar.xz 4632496 SHA256 f51ee116e2c159fac1719e003a32e1cb6cbff51914fd1f6409f461a790ff27e7 SHA512 c007b6f2cd2b59747db72a5b86ecb34ac87fe0910a2d33df466eb05ebe5ff638fb9e57b15f2ea9328c95037334a2fd9010895241ff285628b7ed7b6d65912fb0 WHIRLPOOL c4ac510d8c5e97220aab05f73d3b6cf702e4c4c8af4a1c65689c5861ae8ce8d1f077adc8e2378bff995cee3c94366ec9f5997b52b641f65ff985d26be1cad1c8
+EBUILD eog-3.20.5.ebuild 1344 SHA256 b983c67e24a529333f911c6b91f9124d3de48a463a306bca01259ae275107589 SHA512 78730d2cc6f2edfff39ec0b1ad20acaedd9e0b01f4da4834f6ce554570e716af4e8e184f13432ded774dad0e654e2710e59a2d91e4a784d1edb4f429dad80552 WHIRLPOOL 30ca23844416a4a48e9276042350b324a1bf7cce588812ceadb5f1621a6d9c9d4ea289547e1dc43413827ceabcae8c2f1c2af96df631a5ddf031a8d945c36600
+EBUILD eog-3.24.1.ebuild 1345 SHA256 d4c20bf500e9e2a37e9c78eb2e5ffe7b8b04acd59e97b08fcd498ec639a23c57 SHA512 d53f3cc5d27e418a2d688a299d3a3e7fe9b319ebe7c867b90975cf5a38bf988d9a1479ed53aad5e2defa80aab73e179829fc27f100b7850cbea880098a77ecb5 WHIRLPOOL 2e8107b88327621c149f2f7a84e29e2f0f9ede7d2e9d6f9e890b7768243b88cd94272b0ee343d09bfab84d7495ebfd17fc4f9be2918b9d63d434aa02210ab501
+MISC ChangeLog 5802 SHA256 97c0a3ea104fce958dfd31054badfd2cb38085d4d1852acbd5c40934948c76fa SHA512 145ae67c7b88a777b31c607304d97129bb406a064ee9f3776a2e1cb4dc1320fcf14eab16b43407709dd0d599eb9a40f08da09d5389a9d53a4d4af877c7a0c8a4 WHIRLPOOL 7ca408ff5d6282c1150e006dfb169740fa885f23ea21bbe8b90647ce44bfe63175cb4dbe02d7bbc7f146c8657afc7d53942e4a4c14c5d8e440af0acab9964358
+MISC ChangeLog-2015 39668 SHA256 939baedfd70a44b8b49b922df9dccdee8e3d4fb869ddc58126fbd01ccf8e5bee SHA512 d94ae1127735ebd93d9cb67acb712d640553523da43c127347d61f485cd6f59a0aa92c783b363ebf1f8cebc39dc2d12ab12ae5c226cc387283f714763b238a00 WHIRLPOOL 96582dd8f947d87dcf20bb49e0be70af2fc5b3640fb53a314b665b7096fe324ff92f01b2ae4a7fd4bee2f769ec7674dd5f6ffe6daaa58e84fdc0e344fdf1759f
+MISC metadata.xml 481 SHA256 d4214ebba24b4f306340b0bf809c5b45b7288911da8eae1626fc0be757c21ef2 SHA512 141ec1d6923697f744de806804279b602120ce3d5494257de36b8c8b71185d101692f2e438d7ba0e4a4c946d0aaba068117f16c8344abe891e0ddd4f768ded26 WHIRLPOOL 80292bed7bf5ca4869756014ae34a3fd22ba9b7e3969fa89d60c25180a42b9b8a2404a4588bfa0a7cd599ae498e2875a12267424348e2d2db541a1c07eff146c
diff --git a/media-gfx/eog/eog-3.20.5.ebuild b/media-gfx/eog/eog-3.20.5.ebuild
new file mode 100644
index 000000000000..24b66cdb2308
--- /dev/null
+++ b/media-gfx/eog/eog-3.20.5.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+GNOME2_LA_PUNT="yes"
+
+inherit gnome2
+
+DESCRIPTION="The Eye of GNOME image viewer"
+HOMEPAGE="https://wiki.gnome.org/Apps/EyeOfGnome"
+
+LICENSE="GPL-2+"
+SLOT="1"
+
+IUSE="debug +exif +introspection +jpeg lcms +svg tiff xmp"
+REQUIRED_USE="exif? ( jpeg )"
+
+KEYWORDS="~alpha amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc x86 ~x86-fbsd"
+
+RDEPEND="
+ >=dev-libs/glib-2.42.0:2[dbus]
+ >=dev-libs/libpeas-0.7.4:=[gtk]
+ >=gnome-base/gnome-desktop-2.91.2:3=
+ >=gnome-base/gsettings-desktop-schemas-2.91.92
+ >=x11-libs/gtk+-3.19.11:3[introspection,X]
+ >=x11-misc/shared-mime-info-0.20
+
+ >=x11-libs/gdk-pixbuf-2.30.0:2[jpeg?,tiff?]
+ x11-libs/libX11
+
+ exif? ( >=media-libs/libexif-0.6.14 )
+ introspection? ( >=dev-libs/gobject-introspection-0.9.3:= )
+ jpeg? ( virtual/jpeg:0 )
+ lcms? ( media-libs/lcms:2 )
+ svg? ( >=gnome-base/librsvg-2.36.2:2 )
+ xmp? ( media-libs/exempi:2 )
+"
+DEPEND="${RDEPEND}
+ >=dev-util/gtk-doc-am-1.16
+ >=dev-util/intltool-0.50.1
+ dev-util/itstool
+ sys-devel/gettext
+ virtual/pkgconfig
+"
+
+src_configure() {
+ gnome2_src_configure \
+ $(usex debug --enable-debug=yes ' ') \
+ $(use_enable introspection) \
+ $(use_with jpeg libjpeg) \
+ $(use_with exif libexif) \
+ $(use_with lcms cms) \
+ $(use_with xmp) \
+ $(use_with svg librsvg)
+}
diff --git a/media-gfx/eog/eog-3.24.1.ebuild b/media-gfx/eog/eog-3.24.1.ebuild
new file mode 100644
index 000000000000..2590c471c65b
--- /dev/null
+++ b/media-gfx/eog/eog-3.24.1.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+GNOME2_LA_PUNT="yes"
+
+inherit gnome2
+
+DESCRIPTION="The Eye of GNOME image viewer"
+HOMEPAGE="https://wiki.gnome.org/Apps/EyeOfGnome"
+
+LICENSE="GPL-2+"
+SLOT="1"
+
+IUSE="debug +exif +introspection +jpeg lcms +svg tiff xmp"
+REQUIRED_USE="exif? ( jpeg )"
+
+KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
+
+RDEPEND="
+ >=dev-libs/glib-2.42.0:2[dbus]
+ >=dev-libs/libpeas-0.7.4:=[gtk]
+ >=gnome-base/gnome-desktop-2.91.2:3=
+ >=gnome-base/gsettings-desktop-schemas-2.91.92
+ >=x11-libs/gtk+-3.22.0:3[introspection,X]
+ >=x11-misc/shared-mime-info-0.20
+
+ >=x11-libs/gdk-pixbuf-2.30.0:2[jpeg?,tiff?]
+ x11-libs/libX11
+
+ exif? ( >=media-libs/libexif-0.6.14 )
+ introspection? ( >=dev-libs/gobject-introspection-0.9.3:= )
+ jpeg? ( virtual/jpeg:0 )
+ lcms? ( media-libs/lcms:2 )
+ svg? ( >=gnome-base/librsvg-2.36.2:2 )
+ xmp? ( media-libs/exempi:2 )
+"
+DEPEND="${RDEPEND}
+ >=dev-util/gtk-doc-am-1.16
+ >=dev-util/intltool-0.50.1
+ dev-util/itstool
+ sys-devel/gettext
+ virtual/pkgconfig
+"
+
+src_configure() {
+ gnome2_src_configure \
+ $(usex debug --enable-debug=yes ' ') \
+ $(use_enable introspection) \
+ $(use_with jpeg libjpeg) \
+ $(use_with exif libexif) \
+ $(use_with lcms cms) \
+ $(use_with xmp) \
+ $(use_with svg librsvg)
+}
diff --git a/media-gfx/eog/metadata.xml b/media-gfx/eog/metadata.xml
new file mode 100644
index 000000000000..eda0593f6d54
--- /dev/null
+++ b/media-gfx/eog/metadata.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>gnome@gentoo.org</email>
+ <name>Gentoo GNOME Desktop</name>
+ </maintainer>
+ <longdescription lang="en">
+ The Eye of GNOME image viewer is the official image viewer for the GNOME
+ Desktop environment. With it, you can view single image files, as well
+ as large image collections.
+ </longdescription>
+</pkgmetadata>
diff --git a/media-gfx/eom/Manifest b/media-gfx/eom/Manifest
new file mode 100644
index 000000000000..672931858c5a
--- /dev/null
+++ b/media-gfx/eom/Manifest
@@ -0,0 +1,12 @@
+AUX eom-1.12.2-gtk3-svg.patch 1329 SHA256 f7c2ea8b1538a5333c7ed4472b2eb5408cb1587e7ed7ebbee20ee820a212293a SHA512 9b9d437a9867ff131c3fbfcff03fa2a85cf1d4d5004f178cc7081ee0dc721e558e98dcb6b977c05cc577985e51623cf9b3d6f2e9d886944645d26ed087448984 WHIRLPOOL 6a70642083fff39be09bfc9376a136854a869abe44c54059066ac4e3230cf35a3d476f159cf69cb14a12d88a5c8703603c472df9050a044f4ec572b59b24a6db
+DIST eom-1.12.2.tar.xz 2213260 SHA256 38ad10a6794e02e9e319a293393a36532e86572010442ba2f1d3773313c0a1da SHA512 03283cb1cae817c7c21219913fe2f3ab64e0fa6662a63193d4fa012bd0b5c286cbd25131a5bd5e52c1d9304b4b10ae8c37d38a88ea985215c5b277303d7b8cc4 WHIRLPOOL ad1745e5a0b223b96f715488b36c9c96a6b0f439a5ace02f06c2e05d09c6260bbf29c6d103fb40adfbbe6140d5a981f954185b04d0065b90b5f71625eec7783c
+DIST eom-1.14.2.tar.xz 2254180 SHA256 ffdd2a229e6a1c3a133b3d4e981b820e9573983e4195cc66b98300ed6113fda2 SHA512 87d7c5e62249d598474324f24bac1f5f3388bb11517fc54531792fc0291ef42199f3339e492dfc1a1caafed575cf3b21e36ea91f15d0a03b8e912a3d16e5f3b7 WHIRLPOOL 8a337a80c0f9e1def14bf57d7e46675fd223ddff80d4843c908e9e5fbc33c07f1c319498c912f10ba12b620127565b4f20411cb3aeaca7ec95b2f5a6247e4301
+DIST eom-1.16.0.tar.xz 2214612 SHA256 974356c10bf96b974b777614d5d6f88f982a6c9ab3735d9397b4a33a6812c4fe SHA512 ed1dfb8bfd8af6e74def133c38bcbaef81adbbc98df428479cf8a4037379f1cea0df2033eeb4ea28e5cba2c5996b0c248012be34e5450b2cfda575f2f79a5f36 WHIRLPOOL f4341940cb66a2096cfa561cd7616d0ac8d281acec35496178fdffa6c538a86968ea8b62afba4cb533010d21cd019e4d863db75929d9b3dad82c5fcf54e1194d
+DIST eom-1.18.2.tar.xz 2196228 SHA256 0755a43f48fe1a09b826cdd6ed239631f5e4f9163ccb481362534d8fcf3bda02 SHA512 d0d8aaa7837564fafd949da26e477e675a6cbecf6efd799ea0f29ba23800d4df36147f83bf059dcf38f9c4a9601e8501ec78065e02125fb18261011e1c3ac12c WHIRLPOOL 57db81a9e27f71f8e844fc53451eca51be0ddba5bddbaa6745c31be7d982f70f7a1ef418590da93aaec00de392fcaef4d4fab2e16782dc8acf670edaff9c26f3
+EBUILD eom-1.12.2-r3.ebuild 1897 SHA256 e3988c28246fc47c21765dab948fb631f65206d02392a53c8691b56a9a95b6e3 SHA512 41e360632bd653ef941714e45bca87f8ff940729070ab1a31046f87726e92ba2c73b71eb092ffc258f7674a3cf420c0bad5726442d35fbd49fbaf354f067e795 WHIRLPOOL b0263a042c5e5234c2ae99279d4826247ccdd618eabe0421fe4e73f1d215a39f553026fadeec6b79cc8cbd8245d26467ccb6587b17a6e1feb037254b4dc17d22
+EBUILD eom-1.14.2.ebuild 1892 SHA256 d748c1fa66ab5045c985f039452289404deec65cf7057cbbf556eadcd873aefd SHA512 4d7e22033498bff1cad886de6d850977e913dce452f46d71c580c263103bb66cca9f4ee6ff3331d9b68e294fd52978bbda39df583be7472072957c0db4f56955 WHIRLPOOL b04589ef171617846eee36835ccf6632e36fd250df7216b984afbe73f7a959b065252d775ac256d788b8dd91daa7e829b30b536df1a64cbad0327a7522a971ee
+EBUILD eom-1.16.0.ebuild 1892 SHA256 d748c1fa66ab5045c985f039452289404deec65cf7057cbbf556eadcd873aefd SHA512 4d7e22033498bff1cad886de6d850977e913dce452f46d71c580c263103bb66cca9f4ee6ff3331d9b68e294fd52978bbda39df583be7472072957c0db4f56955 WHIRLPOOL b04589ef171617846eee36835ccf6632e36fd250df7216b984afbe73f7a959b065252d775ac256d788b8dd91daa7e829b30b536df1a64cbad0327a7522a971ee
+EBUILD eom-1.18.2.ebuild 1473 SHA256 a7dac90e8e89cb7f11c563e60e01cd380ff6c521182105a500b13b0d7ee95366 SHA512 f044d9b3f8937a5163973cf02a00b83e8c5fe6779d7b30844d86521c96fa2fa7f1811daf8013e23b9f95d4d8b720bc34c6aaf0d04ac951608457f6b7690d6685 WHIRLPOOL ca016ae656ca147076c0de24afa8a24430a0df0c61d4292a1aae39d9f242d595ddba53da973c866042e4fd33b172b1bbe715234a06fe75cfe076eb1dc4decbbf
+MISC ChangeLog 5529 SHA256 b41b0b847f0f5da78a19070fa16514eb94bded703ed53b64f9f199fc4fc60bbf SHA512 44f6ff93cc3514a05440a2382a94669d3c9e7312b3f7e4ab4f7d3dace02987807e67fe107c72aa9329068b0a6cfc352da5ba70d2543bdc11620dd79c80dd543b WHIRLPOOL f5b46f64e98cf0194a7c15e3c1c252c51b1a1bea9fa7097814c1aa2dff967d367993264168871f6fafabae584737ecf26efc639ec571c777fa97b0d45417caee
+MISC ChangeLog-2015 1506 SHA256 4f6ef0f6c3850c9f6233c552563b0a163d020a36073efc68cdec9b217adf1035 SHA512 3bb78717bce9e4637bfb32d2a69dea98004c93e49622745809d7109ea0cae03dd93e0b3561c858d1da8a03286461db639cb7938c441d5acf124162822b2c40da WHIRLPOOL c705029aa9091db89a8e9a4067edb4e2b0f6eddf2a1d80398e0b2e2801bcd0e7cfd07cc6da09eae8cd79e71a6b6527e6beb4d1cd721e90fbfb501f38b3954392
+MISC metadata.xml 408 SHA256 64bb3a813abddac12c6626c7a15e099af4dfb0bfd1c38b3019d18a409de2d8d6 SHA512 948981426d592856f20cfcf6cfc8d0505acc76144ca32211ed1a5c9d6106aa71e2d7987c1a0ab6373903b5a413da6e22f5fd9d10894bc89eefbac12d48cd7b30 WHIRLPOOL 284e6ee756e27e3ccd57e8a057bdbc19f4f85b190b5d75d9070a8e592eadf4d3125896f1db8c1b6e4d5b505a0600c425c8118fde2fd37c7253c9ed42bd223c78
diff --git a/media-gfx/eom/eom-1.12.2-r3.ebuild b/media-gfx/eom/eom-1.12.2-r3.ebuild
new file mode 100644
index 000000000000..fb8419a9fd39
--- /dev/null
+++ b/media-gfx/eom/eom-1.12.2-r3.ebuild
@@ -0,0 +1,83 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python2_7 )
+
+inherit mate python-single-r1
+
+if [[ ${PV} != 9999 ]]; then
+ KEYWORDS="amd64 ~arm x86"
+fi
+
+DESCRIPTION="The MATE image viewer"
+LICENSE="GPL-2"
+SLOT="0"
+
+IUSE="X debug dbus exif gtk3 +introspection jpeg lcms python svg tiff xmp"
+
+REQUIRED_USE="
+ gtk3? ( !python )
+ python? ( ${PYTHON_REQUIRED_USE} )
+ "
+
+RDEPEND="
+ dev-libs/atk:0
+ >=dev-libs/glib-2.36:2
+ >=dev-libs/libxml2-2:2
+ gnome-base/dconf:0
+ >=mate-base/mate-desktop-1.9.1[gtk3(-)=]
+ sys-libs/zlib:0
+ x11-libs/cairo:0
+ >=x11-libs/gdk-pixbuf-2.4:2[introspection?,jpeg?,tiff?]
+ x11-libs/libX11:0
+ >=x11-misc/shared-mime-info-0.20:0
+ virtual/libintl:0
+ dbus? ( >=dev-libs/dbus-glib-0.71:0 )
+ exif? (
+ >=media-libs/libexif-0.6.14:0
+ virtual/jpeg:0
+ )
+ !gtk3? ( >=x11-libs/gtk+-2.18:2[introspection?] )
+ gtk3? ( >=x11-libs/gtk+-3.0:3[introspection?] )
+ introspection? ( >=dev-libs/gobject-introspection-0.9.3:= )
+ jpeg? ( virtual/jpeg:0 )
+ lcms? ( media-libs/lcms:2 )
+ python? (
+ ${PYTHON_DEPS}
+ >=dev-python/pygobject-2.15.1:2[${PYTHON_USEDEP}]
+ >=dev-python/pygtk-2.13:2[${PYTHON_USEDEP}]
+ )
+ svg? ( >=gnome-base/librsvg-2.36.2:2 )
+ xmp? ( >=media-libs/exempi-1.99.5:2 )
+ !!media-gfx/mate-image-viewer"
+
+DEPEND="${RDEPEND}
+ app-text/yelp-tools:0
+ dev-util/gtk-doc
+ dev-util/gtk-doc-am
+ >=dev-util/intltool-0.50.1:*
+ sys-devel/gettext:*
+ virtual/pkgconfig:*"
+
+PATCHES=( "${FILESDIR}/${P}-gtk3-svg.patch" )
+
+pkg_setup() {
+ use python && python-single-r1_pkg_setup
+}
+
+src_configure() {
+ mate_src_configure \
+ --with-gtk=$(usex gtk3 3.0 2.0) \
+ $(use_enable debug) \
+ $(use_enable introspection) \
+ $(use_enable python) \
+ $(use_with X x) \
+ $(use_with dbus) \
+ $(use_with exif libexif) \
+ $(use_with jpeg libjpeg) \
+ $(use_with lcms cms) \
+ $(use_with svg librsvg) \
+ $(use_with xmp)
+}
diff --git a/media-gfx/eom/eom-1.14.2.ebuild b/media-gfx/eom/eom-1.14.2.ebuild
new file mode 100644
index 000000000000..293481bdcc77
--- /dev/null
+++ b/media-gfx/eom/eom-1.14.2.ebuild
@@ -0,0 +1,83 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python2_7 )
+
+inherit mate python-single-r1
+
+if [[ ${PV} != 9999 ]]; then
+ KEYWORDS="~amd64 ~arm ~x86"
+fi
+
+DESCRIPTION="The MATE image viewer"
+LICENSE="GPL-2"
+SLOT="0"
+
+IUSE="X debug dbus exif gtk3 +introspection jpeg lcms python svg tiff xmp"
+
+REQUIRED_USE="
+ gtk3? ( !python )
+ python? ( ${PYTHON_REQUIRED_USE} )
+ "
+
+COMMON_DEPEND="
+ dev-libs/atk:0
+ >=dev-libs/glib-2.36:2
+ >=dev-libs/libxml2-2:2
+ gnome-base/dconf:0
+ >=mate-base/mate-desktop-1.9.1[gtk3(-)=]
+ sys-libs/zlib:0
+ x11-libs/cairo:0
+ >=x11-libs/gdk-pixbuf-2.4:2[introspection?,jpeg?,tiff?]
+ x11-libs/libX11:0
+ >=x11-misc/shared-mime-info-0.20:0
+ virtual/libintl:0
+ dbus? ( >=dev-libs/dbus-glib-0.71:0 )
+ exif? (
+ >=media-libs/libexif-0.6.14:0
+ virtual/jpeg:0
+ )
+ !gtk3? ( >=x11-libs/gtk+-2.18:2[introspection?] )
+ gtk3? ( >=x11-libs/gtk+-3.0:3[introspection?] )
+ introspection? ( >=dev-libs/gobject-introspection-0.9.3:= )
+ jpeg? ( virtual/jpeg:0 )
+ lcms? ( media-libs/lcms:2 )
+ python? (
+ ${PYTHON_DEPS}
+ >=dev-python/pygobject-2.15.1:2[${PYTHON_USEDEP}]
+ >=dev-python/pygtk-2.13:2[${PYTHON_USEDEP}]
+ )
+ svg? ( >=gnome-base/librsvg-2.36.2:2 )
+ xmp? ( >=media-libs/exempi-1.99.5:2 )
+ !!media-gfx/mate-image-viewer"
+
+RDEPEND="${COMMON_DEPEND}"
+
+DEPEND="${COMMON_DEPEND}
+ app-text/yelp-tools:0
+ dev-util/gtk-doc
+ dev-util/gtk-doc-am
+ >=dev-util/intltool-0.50.1:*
+ sys-devel/gettext:*
+ virtual/pkgconfig:*"
+
+pkg_setup() {
+ use python && python-single-r1_pkg_setup
+}
+
+src_configure() {
+ mate_src_configure \
+ --with-gtk=$(usex gtk3 3.0 2.0) \
+ $(use_enable debug) \
+ $(use_enable introspection) \
+ $(use_enable python) \
+ $(use_with X x) \
+ $(use_with dbus) \
+ $(use_with exif libexif) \
+ $(use_with jpeg libjpeg) \
+ $(use_with lcms cms) \
+ $(use_with svg librsvg) \
+ $(use_with xmp)
+}
diff --git a/media-gfx/eom/eom-1.16.0.ebuild b/media-gfx/eom/eom-1.16.0.ebuild
new file mode 100644
index 000000000000..293481bdcc77
--- /dev/null
+++ b/media-gfx/eom/eom-1.16.0.ebuild
@@ -0,0 +1,83 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python2_7 )
+
+inherit mate python-single-r1
+
+if [[ ${PV} != 9999 ]]; then
+ KEYWORDS="~amd64 ~arm ~x86"
+fi
+
+DESCRIPTION="The MATE image viewer"
+LICENSE="GPL-2"
+SLOT="0"
+
+IUSE="X debug dbus exif gtk3 +introspection jpeg lcms python svg tiff xmp"
+
+REQUIRED_USE="
+ gtk3? ( !python )
+ python? ( ${PYTHON_REQUIRED_USE} )
+ "
+
+COMMON_DEPEND="
+ dev-libs/atk:0
+ >=dev-libs/glib-2.36:2
+ >=dev-libs/libxml2-2:2
+ gnome-base/dconf:0
+ >=mate-base/mate-desktop-1.9.1[gtk3(-)=]
+ sys-libs/zlib:0
+ x11-libs/cairo:0
+ >=x11-libs/gdk-pixbuf-2.4:2[introspection?,jpeg?,tiff?]
+ x11-libs/libX11:0
+ >=x11-misc/shared-mime-info-0.20:0
+ virtual/libintl:0
+ dbus? ( >=dev-libs/dbus-glib-0.71:0 )
+ exif? (
+ >=media-libs/libexif-0.6.14:0
+ virtual/jpeg:0
+ )
+ !gtk3? ( >=x11-libs/gtk+-2.18:2[introspection?] )
+ gtk3? ( >=x11-libs/gtk+-3.0:3[introspection?] )
+ introspection? ( >=dev-libs/gobject-introspection-0.9.3:= )
+ jpeg? ( virtual/jpeg:0 )
+ lcms? ( media-libs/lcms:2 )
+ python? (
+ ${PYTHON_DEPS}
+ >=dev-python/pygobject-2.15.1:2[${PYTHON_USEDEP}]
+ >=dev-python/pygtk-2.13:2[${PYTHON_USEDEP}]
+ )
+ svg? ( >=gnome-base/librsvg-2.36.2:2 )
+ xmp? ( >=media-libs/exempi-1.99.5:2 )
+ !!media-gfx/mate-image-viewer"
+
+RDEPEND="${COMMON_DEPEND}"
+
+DEPEND="${COMMON_DEPEND}
+ app-text/yelp-tools:0
+ dev-util/gtk-doc
+ dev-util/gtk-doc-am
+ >=dev-util/intltool-0.50.1:*
+ sys-devel/gettext:*
+ virtual/pkgconfig:*"
+
+pkg_setup() {
+ use python && python-single-r1_pkg_setup
+}
+
+src_configure() {
+ mate_src_configure \
+ --with-gtk=$(usex gtk3 3.0 2.0) \
+ $(use_enable debug) \
+ $(use_enable introspection) \
+ $(use_enable python) \
+ $(use_with X x) \
+ $(use_with dbus) \
+ $(use_with exif libexif) \
+ $(use_with jpeg libjpeg) \
+ $(use_with lcms cms) \
+ $(use_with svg librsvg) \
+ $(use_with xmp)
+}
diff --git a/media-gfx/eom/eom-1.18.2.ebuild b/media-gfx/eom/eom-1.18.2.ebuild
new file mode 100644
index 000000000000..429377265824
--- /dev/null
+++ b/media-gfx/eom/eom-1.18.2.ebuild
@@ -0,0 +1,65 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit mate
+
+if [[ ${PV} != 9999 ]]; then
+ KEYWORDS="~amd64 ~arm ~x86"
+fi
+
+DESCRIPTION="The MATE image viewer"
+LICENSE="GPL-2"
+SLOT="0"
+
+IUSE="X debug dbus exif +introspection jpeg lcms svg tiff xmp"
+
+COMMON_DEPEND="
+ dev-libs/atk:0
+ >=dev-libs/glib-2.36:2
+ >=dev-libs/libpeas-1.2.0[gtk]
+ >=dev-libs/libxml2-2:2
+ gnome-base/dconf:0
+ >=mate-base/mate-desktop-1.17.0
+ sys-libs/zlib:0
+ x11-libs/cairo:0
+ >=x11-libs/gdk-pixbuf-2.4:2[introspection?,jpeg?,tiff?]
+ >=x11-libs/gtk+-3.14:3[introspection?]
+ x11-libs/libX11:0
+ >=x11-misc/shared-mime-info-0.20:0
+ virtual/libintl:0
+ dbus? ( >=dev-libs/dbus-glib-0.71:0 )
+ exif? (
+ >=media-libs/libexif-0.6.14:0
+ virtual/jpeg:0
+ )
+ introspection? ( >=dev-libs/gobject-introspection-0.9.3:= )
+ jpeg? ( virtual/jpeg:0 )
+ lcms? ( media-libs/lcms:2 )
+ svg? ( >=gnome-base/librsvg-2.36.2:2 )
+ xmp? ( >=media-libs/exempi-1.99.5:2 )
+ !!media-gfx/mate-image-viewer"
+
+RDEPEND="${COMMON_DEPEND}"
+
+DEPEND="${COMMON_DEPEND}
+ app-text/yelp-tools:0
+ dev-util/gtk-doc
+ dev-util/gtk-doc-am
+ >=dev-util/intltool-0.50.1:*
+ sys-devel/gettext:*
+ virtual/pkgconfig:*"
+
+src_configure() {
+ mate_src_configure \
+ $(use_enable debug) \
+ $(use_enable introspection) \
+ $(use_with X x) \
+ $(use_with dbus) \
+ $(use_with exif libexif) \
+ $(use_with jpeg libjpeg) \
+ $(use_with lcms cms) \
+ $(use_with svg librsvg) \
+ $(use_with xmp)
+}
diff --git a/media-gfx/eom/files/eom-1.12.2-gtk3-svg.patch b/media-gfx/eom/files/eom-1.12.2-gtk3-svg.patch
new file mode 100644
index 000000000000..ccff8ae923a9
--- /dev/null
+++ b/media-gfx/eom/files/eom-1.12.2-gtk3-svg.patch
@@ -0,0 +1,33 @@
+From 038530ed2e9b844f75e2af24e44e0421ad1ccdc8 Mon Sep 17 00:00:00 2001
+From: monsta <monsta@inbox.ru>
+Date: Wed, 24 Feb 2016 16:47:08 +0300
+Subject: [PATCH] fix svg rendering that's broken with GTK+3
+
+from
+https://git.gnome.org/browse/eog/commit/?id=a33950c14d7b8da8e1c6289709022affb910be2a
+---
+ src/eom-scroll-view.c | 4 +++-
+ 1 file changed, 3 insertions(+), 1 deletion(-)
+
+diff --git a/src/eom-scroll-view.c b/src/eom-scroll-view.c
+index 6385f29..6d1b290 100644
+--- a/src/eom-scroll-view.c
++++ b/src/eom-scroll-view.c
+@@ -1306,7 +1306,7 @@ display_expose_event (GtkWidget *widget, GdkEventExpose *event, gpointer data)
+
+ #ifdef HAVE_RSVG
+ if (eom_image_is_svg (view->priv->image)) {
+- cairo_matrix_t matrix, translate, scale;
++ cairo_matrix_t matrix, translate, scale, original;
+ EomTransform *transform = eom_image_get_transform (priv->image);
+ cairo_matrix_init_identity (&matrix);
+ if (transform) {
+@@ -1343,6 +1343,8 @@ display_expose_event (GtkWidget *widget, GdkEventExpose *event, gpointer data)
+ cairo_matrix_init_translate (&translate, xofs, yofs);
+ cairo_matrix_multiply (&matrix, &matrix, &translate);
+
++ cairo_get_matrix (cr, &original);
++ cairo_matrix_multiply (&matrix, &matrix, &original);
+ cairo_set_matrix (cr, &matrix);
+
+ rsvg_handle_render_cairo (eom_image_get_svg (priv->image), cr);
diff --git a/media-gfx/eom/metadata.xml b/media-gfx/eom/metadata.xml
new file mode 100644
index 000000000000..90e9ee97331c
--- /dev/null
+++ b/media-gfx/eom/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>mate@gentoo.org</email>
+ <name>Gentoo MATE Desktop</name>
+ </maintainer>
+ <use>
+ <flag name="gtk3">Build with GTK+3 instead of GTK+2</flag>
+ </use>
+ <upstream>
+ <remote-id type="github">mate-desktop/eom</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/media-gfx/esci-interpreter-gt-s80/Manifest b/media-gfx/esci-interpreter-gt-s80/Manifest
new file mode 100644
index 000000000000..ec64465e7af4
--- /dev/null
+++ b/media-gfx/esci-interpreter-gt-s80/Manifest
@@ -0,0 +1,6 @@
+DIST esci-interpreter-gt-s80-0.2.1-1.i386.rpm 191157 SHA256 7f2b85fd0d7adaa1a9c604a5447b36ed895f1d1bfd765651556e5f69a8846ea6 SHA512 abcf9228e1265d309f07b3b77081e9c8b21a4f186ef49b857df2e53b1d9e11f11e0975673c02760bd00f96d916fe5108f9218b0bea67bc59ff78ff4c9a09eb69 WHIRLPOOL 0d642bd6747d76b19259a9579c4b4e5dff3c8fb45c68576e3f08119163d84bef2f4db6ef7b555091e1b396987e8d73a07d79ae38018772a465f67355ebb1e636
+DIST esci-interpreter-gt-s80-0.2.1-1.x86_64.rpm 71423 SHA256 6380c4ec2edd70bea1b3387b40ed669dd376823db33727e25a8b84205609693c SHA512 3977255a939630391e35775651094f6c873288c5e2c70ee70c4e19064b78e721372cdd40c7f70ae937e74b572b9a15d9b558fdd6a1dc9905bbd78abce8bd57e5 WHIRLPOOL c46dd664e947a479a47c7b9d5a2e7fb40c474146940b96afa1befeeaa50eaea929f55b909d9f3dcc412dab3ea5e14d42409cfc3558e20269f6dc78238a8c26c5
+EBUILD esci-interpreter-gt-s80-0.2.1.1.ebuild 2127 SHA256 6cb5c58848cd2b5cab5095cfbd21fbc426a1283435525563f9a772936adf5c5a SHA512 1dfd2c3b2e248cf86dadf8637135d389d2454adadafe51d017fc80ae90428cbc768f9afa8c21f7aac9dbedc26c45a3922944f4ff0369c1b5fe110bcf66703dca WHIRLPOOL 2a9bc09b8489a7459771065972fe4d9924fe642ecb09dc73fe51f540d87be4bf05fb0db5a86330e81e564916f65ddad226e57c38b23b18aea6ba3d2fde9cf0fe
+MISC ChangeLog 2391 SHA256 6d957013b2ffdcfbcfa196540e0b110085069ea71b7a72ae944e14d0b6db4fcb SHA512 6444090dd70ee0946cc538650a4ab4917cb7d8921df69e996ffb096708f7f69dd7470125ac56491c2870d85e344e85c038c9b5cd191af4249bc72bc801397cdb WHIRLPOOL f25ca4ab43c34976e06d3595a0659f0f8819365026895aad5c93993614e8a64aaab723ae056fd83808608cd970e9246e014e76a72425281d1bc870ec2a4f97be
+MISC ChangeLog-2015 1592 SHA256 4cd969d4acd64a612bc11ce084551eb8d8e30a6e8ee0581fb9bd6cbce4580b3e SHA512 d7a7a758c06240bab6b84a39daba28af7fb6602ac5b48910f85d72a160fc06d11d66dd9911025f566177809b4e480d28631b1af274c9f1b67a5c869972ce8880 WHIRLPOOL d04e7c3209f37bced09a3f402308e6269c553a41f533b1270198538707c2ab53d53f6b8355fa3ed75fa2eaf2e9107b266b8f5242c119ef52ec00ed185f49d666
+MISC metadata.xml 481 SHA256 2e72792fc7b3c4d5b1167206d98371dc4f181e591dca14f70fa48aff602834bd SHA512 9d67fb6d1d6b9015f4fb7c2e461467344ce2601496f206803a186f9cbf24a5919b88d76c030f49c19e1194e639db42ef81566ebec9b95aab01c467e66478065a WHIRLPOOL 0d920c63ac52879c024c3035ac4ee728bb54514e8577e20b211340172419f633e7a3a53242fdb1293037d2d95e2fc5a8d0d213181315698a89b15b80e7581972
diff --git a/media-gfx/esci-interpreter-gt-s80/esci-interpreter-gt-s80-0.2.1.1.ebuild b/media-gfx/esci-interpreter-gt-s80/esci-interpreter-gt-s80-0.2.1.1.ebuild
new file mode 100644
index 000000000000..496c1201c8d0
--- /dev/null
+++ b/media-gfx/esci-interpreter-gt-s80/esci-interpreter-gt-s80-0.2.1.1.ebuild
@@ -0,0 +1,79 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit rpm versionator multilib
+
+MY_PV="$(get_version_component_range 1-3)"
+MY_PVR="$(replace_version_separator 3 -)"
+
+DESCRIPTION="Epson GT-S50 and GT-S80 scanner plugins for SANE 'epkowa' backend"
+HOMEPAGE="http://download.ebz.epson.net/dsc/search/01/search/?OSC=LX"
+SRC_URI="amd64? ( https://dev.gentoo.org/~flameeyes/avasys/${PN}-${MY_PVR}.x86_64.rpm )
+ x86? ( https://dev.gentoo.org/~flameeyes/avasys/${PN}-${MY_PVR}.i386.rpm )"
+
+LICENSE="AVASYS"
+SLOT="0"
+KEYWORDS="-* ~amd64 ~x86"
+
+IUSE=""
+
+DEPEND=">=media-gfx/iscan-2.28.0"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}"
+
+QA_PREBUILT="/opt/iscan/*"
+
+src_configure() { :; }
+src_compile() { :; }
+
+src_install() {
+ dodoc usr/share/doc/*/*
+
+ # install scanner plugins
+ exeinto /opt/iscan/esci
+ doexe "${WORKDIR}/usr/$(get_libdir)/esci/"*
+}
+
+pkg_setup() {
+ basecmds=(
+ "iscan-registry --COMMAND interpreter usb 0x04b8 0x0136 /opt/iscan/esci/libesci-interpreter-gt-s80"
+ "iscan-registry --COMMAND interpreter usb 0x04b8 0x0137 /opt/iscan/esci/libesci-interpreter-gt-s50"
+ "iscan-registry --COMMAND interpreter usb 0x04b8 0x0144 /opt/iscan/esci/libesci-interpreter-gt-s80"
+ "iscan-registry --COMMAND interpreter usb 0x04b8 0x0143 /opt/iscan/esci/libesci-interpreter-gt-s50"
+ )
+}
+
+pkg_postinst() {
+ [[ -n ${REPLACING_VERSIONS} ]] && return
+
+ if [[ ${ROOT} == "/" ]]; then
+ for basecmd in "${basecmds[@]}"; do
+ eval ${basecmd/COMMAND/add}
+ done
+ else
+ ewarn "Unable to register the plugin and firmware when installing outside of /."
+ ewarn "execute the following command yourself:"
+ for basecmd in "${basecmds[@]}"; do
+ ewarn "${basecmd/COMMAND/add}"
+ done
+ fi
+}
+
+pkg_prerm() {
+ [[ -n ${REPLACED_BY_VERSION} ]] && return
+
+ if [[ ${ROOT} == "/" ]]; then
+ for basecmd in "${basecmds[@]}"; do
+ eval ${basecmd/COMMAND/remove}
+ done
+ else
+ ewarn "Unable to register the plugin and firmware when installing outside of /."
+ ewarn "execute the following command yourself:"
+ for basecmd in "${basecmds[@]}"; do
+ ewarn "${basecmd/COMMAND/remove}"
+ done
+ fi
+}
diff --git a/media-gfx/esci-interpreter-gt-s80/metadata.xml b/media-gfx/esci-interpreter-gt-s80/metadata.xml
new file mode 100644
index 000000000000..bd2b8dac265e
--- /dev/null
+++ b/media-gfx/esci-interpreter-gt-s80/metadata.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <longdescription lang="en">
+ Proprietary plugin for several EPSON scanner models, to be used
+ with the epkowa SANE backend (provided by
+ <pkg>media-gfx/iscan</pkg>). 32-bit and 64-bit.
+
+ Supports the following models:
+
+ EPSON GT-S80 / ES-D400
+ EPSON GT-S85
+ EPSON GT-S50 / ES-D200
+ EPSON GT-S55
+ </longdescription>
+</pkgmetadata>
diff --git a/media-gfx/evoluspencil/Manifest b/media-gfx/evoluspencil/Manifest
new file mode 100644
index 000000000000..ed603fdae106
--- /dev/null
+++ b/media-gfx/evoluspencil/Manifest
@@ -0,0 +1,6 @@
+AUX launcher 324 SHA256 16608d41dd0314982c8b4355da7fcfa8fccb86cb012256cb54bfb42d28020749 SHA512 4266eca92c9860a5bd73d14e3650729bf93e2b14525dfe6d7b36009273561404440395e3d494b924fc2f76372a97a17ee40f5e375f70157174783812b272fb72 WHIRLPOOL 9086d5ea9e67c5ae9c556a50d2cf812b57515b392135646de34176b5fa7b79d465426e4353049057c12cd102ca29210b01b56e9435faf53783e98d1a2599d808
+DIST pencil-2.0.5.tar.gz 4810418 SHA256 a07e855de89f99b35f93f6916b50cdef1be00d8d53aa57748197a38bc0b2c566 SHA512 cb9ab75f69ca886c7b0579dd293e4c4b4279eac21f4301ad0299e55b27d998d59f7b9444916d306939e6c7f4603a8267aecd3dc0ab3efc41175659886e399b0d WHIRLPOOL 171d2f6aac8862ca3482824680e720562dbb667e1d7186a0b144116a1a9a7b6540a4885db8a28df3237f21221f3728624f77206b0cac70fec511872d48859732
+EBUILD evoluspencil-2.0.5.ebuild 934 SHA256 3bc0a73d2985a8fe8c1eb934837c6d1b5a872d35d0461a1112865b652f6b0c54 SHA512 160de1770f26f0e46f114b91085c5d64230f9e891433e7f3c3f2e1cce9cc81ff6322eb95655d56d374a9235f673c06688b503ce5a31473e39dc00cce65104c66 WHIRLPOOL 5016f4e9f7a0e42587415b8d3144499df989037d3e41301a40045894902a27d275b03ede53a700b443933ee348b777bb392b1c625acdc4c44c0aecba54b7f8db
+MISC ChangeLog 2539 SHA256 d90f46eb0c78d00cbcdc7b9dda3b6adc75e108bb1d0b2ace6d16e947d6108daa SHA512 c9b9b62750759bbd2fe088e1a4789bd003a165df710a7961f9851529941438bbd5ac75ef537280ac328d48353678ebc5e4d20f4ac9914b8538fc59cd83c99989 WHIRLPOOL 1a73bf2275937b8fbe097a3d7ae0cf431fa7832aa280dac9fa58f37fe0fdbb4c071c5653a06ba2425d379c6e2d9df6e14600c971f41c16a5474ed1e068c17b02
+MISC ChangeLog-2015 1653 SHA256 eff67d4952aeb28aad9225b6c48b5065346f412b1a630093d6487a27a84900fb SHA512 26712e99df94a1ce861304be91ca212e32e5f5b67ec68ec216580adef09d8e7ce755024cf67049d21d802e8637171a366bd676457aeccf0e5c9bd380a0e9da54 WHIRLPOOL e78a53219dabb82ee5c58ab15a89f37108dcec19c439a6353520c574eefd09fe43e012177f040fb4ee5fb6ed164d162ee69f7b3bc2ba5eb8bfad0ad416832ac9
+MISC metadata.xml 299 SHA256 9f0b3bb48da3eaa3102e8b5821eb5acf65674e9a1df6fac3ae253ebb17a0e8a9 SHA512 be27e090213278995ed73b5b85ef663921136f999def3608d1fdf79bd6537ba38d2424f204e228aa498fa85a2e327633c63b6ca01dae330cc37c4f6832ff861b WHIRLPOOL 350761aed61375537fe600988cf8789831dbdb0f50fa2cb1b5b54cca1664aecc914a4c8eaa4f75852af160634151c117b48ac59c618a7d73aaf22c8e3da95857
diff --git a/media-gfx/evoluspencil/evoluspencil-2.0.5.ebuild b/media-gfx/evoluspencil/evoluspencil-2.0.5.ebuild
new file mode 100644
index 000000000000..9fd30e8fefa0
--- /dev/null
+++ b/media-gfx/evoluspencil/evoluspencil-2.0.5.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+MY_P="pencil-${PV}"
+
+inherit fdo-mime
+
+DESCRIPTION="A simple GUI prototyping tool to create mockups"
+HOMEPAGE="http://pencil.evolus.vn/"
+SRC_URI="https://dev.gentoo.org/~kensington/distfiles/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+RDEPEND="|| ( www-client/firefox www-client/firefox-bin )"
+
+S=${WORKDIR}/${MY_P}
+
+src_prepare() {
+ # avoid file collisions with media-gfx/pencil
+ mv usr/bin/{pencil,${PN}} || die
+ mv usr/share/{pencil,${PN}} || die
+ mv usr/share/applications/{pencil,${PN}}.desktop || die
+
+ sed -e "s/pencil/${PN}/" -i usr/bin/${PN} \
+ -i usr/share/applications/${PN}.desktop || die
+}
+
+src_install() {
+ insinto /
+ doins -r usr
+ newbin "${FILESDIR}"/launcher ${PN}
+}
+
+pkg_postinst() {
+ fdo-mime_desktop_database_update
+}
+
+pkg_postrm() {
+ fdo-mime_desktop_database_update
+}
diff --git a/media-gfx/evoluspencil/files/launcher b/media-gfx/evoluspencil/files/launcher
new file mode 100644
index 000000000000..4ac04e8c8c82
--- /dev/null
+++ b/media-gfx/evoluspencil/files/launcher
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+if [ -x /usr/bin/firefox ] ; then
+ /usr/bin/firefox --app "/usr/share/evoluspencil/application.ini"
+elif [ -x /usr/bin/firefox-bin ] ; then
+ /usr/bin/firefox-bin --app "/usr/share/evoluspencil/application.ini"
+else
+ echo Could not execute required /usr/bin/firefox or /usr/bin/firefox-bin
+fi
diff --git a/media-gfx/evoluspencil/metadata.xml b/media-gfx/evoluspencil/metadata.xml
new file mode 100644
index 000000000000..4ef6f906fdd1
--- /dev/null
+++ b/media-gfx/evoluspencil/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>kensington@gentoo.org</email>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">evolus/pencil</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/media-gfx/exact-image/Manifest b/media-gfx/exact-image/Manifest
new file mode 100644
index 000000000000..ead7933124a5
--- /dev/null
+++ b/media-gfx/exact-image/Manifest
@@ -0,0 +1,8 @@
+AUX exact-image-0.7.5-libpng14.patch 2435 SHA256 55dfd0b95374bcf10810102595a27147ff7b9145cf55e5113baa4d7dc2d328a2 SHA512 4f216f96c4190c4f04991368d92e685592f694cb3c9f5dab90281a9bc1f06c9fcaa817494fb15412f5dc427750558019b6e2aeef8769ed932e974e201776bd48 WHIRLPOOL 86813e134690c46ae0261d39fa9ecd53dfe325d05cfe0ce2a82770e50bd0483f92e9c3b92c727949af3c0532c8fcdff70df55a6ddffa8e2646492f1ebcc54d05
+AUX exact-image-0.8.1-gcc6.patch 6101 SHA256 8d83e7d7a651b9ba4c7549ebdd547aa73280cb3f449ac2d38fcd8f46af7d6f3a SHA512 e11a9dca3c5c6ac4ca5557e6ca212354346b307c38abe77ceaea9f15ef35f5a8de8d24628b290c4ecfdaf84dee44af49414d57c89b067e78b60a02d4e09a5dd4 WHIRLPOOL 2c81167b6aedc82ab7737f6e130a207352a7b8eccdba0286d485d951ff09ef832dc3d7991f501fe43dbd546420ef5274aaa41ac4741011c78d43e9d5fc2cd28e
+AUX exact-image-0.8.1-libpng15.patch 754 SHA256 73f3f17b39aa1fd519bec63f0c91859a9edeb757c3f3688b74828f367641d3cd SHA512 7f3d271d908e55e3731b38e072dcadcb0d99cbf3de327d5bd486e232c2827055b8f712052e04c9bc81b20fd42d27cc18627a6bc118c9d1ece58b91c18fa9bf13 WHIRLPOOL 4db5dd1a92cf6c1a9e5ea9e6ac95550b05397ae9ab1b5fb0420d6812f3900d4b35fc8e7e91f1af3e6c6e784e0eff13937f142a29e232224654534ad817a2d5e5
+DIST exact-image-0.8.1.tar.bz2 283660 SHA256 926a09c897489705ba42daeb01fc4a3c327a8194dc65431f630d50684390e28b SHA512 0adc51c5a29415e236a963cfdaf8f5527e628e9a645e87d00c69a7185e60639cfcd9b1c2b4c3abe1826c5364f0c5d45a0ebb8923cfed53d041d1d36b2604b565 WHIRLPOOL 58b7d66f52d5b6c2202806cad6ca2ebc8e21035a32698861a575c8246f63f4edacc930defd3fa4f6b8496368d2d9d002f06f6463e4f45abc1c235a0bc68a0352
+EBUILD exact-image-0.8.1-r3.ebuild 2641 SHA256 09f06de779ac28adadd268dc278b9ee9ec034fc2f444713a74f0dcdade16b3be SHA512 102ecdbbface34c0b8f773095bdf97284e76c4eaa9baf3180afc3f0a66cca8a931c4864aaa8809d0ecdcce29329f3075e2d6e13d375f181d755bd4507778e44c WHIRLPOOL e9eb47b524ce2b96ab55a0afa9743039cd63dd1f17e716143fa91415fd221e9988a2215bc26a151d6a89efc1da5d35b0ef19a1d69e224690ffcfd598b96caccb
+MISC ChangeLog 2923 SHA256 f11a8b8b35a357a11186dced954b03676c2a15af02a5bf0aa0a8366553efe694 SHA512 1099f690387be080c6854d732b4551a78d2ac9701dab893af6478c0c052949c8fb70fdbf92022d161aa4fe4a15f79be8a68663057b5f38120265299f8598422b WHIRLPOOL bbd9d3b021a1ef735cdaec3479801dc6ad772159e8a7922c6da96bdcfb5416d166c72a2a62147f9b1e868081fd7498b3ff7c0aa6365c0ff635e7a25a5c825f52
+MISC ChangeLog-2015 2154 SHA256 7afbdd08641904d111b4ee92f83c25e19d316bf072eaa3043bbd1c02ee278ffc SHA512 ef3528d1e0dce31e1ad853eb6100887cfa3c2bbc22779bff85b71021efc40a363521ab868d6d3a9fc4f960be113cc163e61b8d0a822e0355080cffdfd0ca4c0a WHIRLPOOL ccd1339a156d123022cf95a5fe1b06fd8e651c150807cf86c62d3771854b806a45618f282f48f07118441078d34bc82da77e834c8891b290969b35e6d6023635
+MISC metadata.xml 337 SHA256 c70d9acde2108a79d809bf2df55617deaf508c8e721197a6a9f12c1181db5894 SHA512 733bb28cd21c30454b7e0f62ab91f88d6b4df6694eee70d9854336421d905c5babfb7e1d169849ca5109253a16c8fe5c8b7482c65cb1de1bbae038024c2934f0 WHIRLPOOL b0c1e2cec23643938a224a3d74ea85576f672fe2251dc1d1cd769c547c84bf4790561db89407fe4a8cdc88338ffb4c71dbc134cd13502ae01880b44c4e50eef1
diff --git a/media-gfx/exact-image/exact-image-0.8.1-r3.ebuild b/media-gfx/exact-image/exact-image-0.8.1-r3.ebuild
new file mode 100644
index 000000000000..7aae44b93438
--- /dev/null
+++ b/media-gfx/exact-image/exact-image-0.8.1-r3.ebuild
@@ -0,0 +1,105 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+PYTHON_COMPAT=( python2_7 )
+
+inherit eutils multilib python-single-r1 toolchain-funcs
+
+DESCRIPTION="A fast, modern and generic image processing library"
+HOMEPAGE="http://www.exactcode.de/site/open_source/exactimage/"
+SRC_URI="http://dl.exactcode.de/oss/${PN}/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="expat jpeg jpeg2k lua openexr php perl png python ruby swig tiff truetype X"
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
+
+RDEPEND="x11-libs/agg[truetype]
+ sys-libs/zlib
+ expat? ( dev-libs/expat )
+ jpeg2k? ( media-libs/jasper )
+ jpeg? ( virtual/jpeg )
+ lua? ( dev-lang/lua )
+ openexr? ( media-libs/openexr )
+ php? ( dev-lang/php )
+ perl? ( dev-lang/perl )
+ png? ( >=media-libs/libpng-1.2.43 )
+ python? ( ${PYTHON_DEPS} )
+ ruby? ( dev-lang/ruby )
+ tiff? ( media-libs/tiff )
+ truetype? ( >=media-libs/freetype-2 )
+ X? (
+ x11-libs/libXext
+ x11-libs/libXt
+ x11-libs/libICE
+ x11-libs/libSM
+ )"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ swig? ( dev-lang/swig )"
+
+pkg_setup() {
+ use python && python-single-r1_pkg_setup
+}
+
+src_prepare() {
+ eapply \
+ "${FILESDIR}"/${PN}-0.7.5-libpng14.patch \
+ "${FILESDIR}"/${P}-libpng15.patch \
+ "${FILESDIR}"/${P}-gcc6.patch
+ eapply_user
+
+ # fix python hardcoded path wrt bug #327171
+ sed -i -e "s:python2.5:${EPYTHON}:" \
+ -e "s:\$(libdir):usr/$(get_libdir):" \
+ "${S}"/api/python/Makefile || die
+
+ # Respect user CFLAGS/CXXFLAGS.
+ sed -i \
+ -e '/C\(XX\)\?FLAGS =/s/-O2//' \
+ -e "\$aCFLAGS += ${CFLAGS}\nCXXFLAGS += ${CXXFLAGS}" \
+ Makefile || die
+
+ # Show commands. Use qualified CC/CXX.
+ sed -i \
+ -e '/^Q =/d' \
+ -e '/^\t@echo /d' \
+ -e "\$aCC:=$(tc-getCC)\nCXX:=$(tc-getCXX)" \
+ build/bottom.make || die
+
+ # The copied string fits exactly. Use memcpy to reflect that a null
+ # terminator is not needed.
+ sed -i \
+ -e 's/strcpy(\([^,]*\)\(,["a-zA-Z -]*\))/memcpy(\1\2, sizeof(\1))/' \
+ codecs/tga.cc || die
+}
+
+src_configure() {
+ # evas -> enlightenment overlay
+ # bardecode -> protected by custom license
+ # libungif -> not supported anymore
+
+ ./configure \
+ --prefix=/usr \
+ --libdir=/usr/$(get_libdir) \
+ $(use_with X x11) \
+ $(use_with truetype freetype) \
+ --without-evas \
+ $(use_with jpeg libjpeg) \
+ $(use_with tiff libtiff) \
+ $(use_with png libpng) \
+ --without-libungif \
+ $(use_with jpeg2k jasper) \
+ $(use_with openexr) \
+ $(use_with expat) \
+ --without-lcms \
+ --without-bardecode \
+ $(use_with lua) \
+ $(use_with swig) \
+ $(use_with perl) \
+ $(use_with python) \
+ $(use_with php) \
+ $(use_with ruby) || die
+}
diff --git a/media-gfx/exact-image/files/exact-image-0.7.5-libpng14.patch b/media-gfx/exact-image/files/exact-image-0.7.5-libpng14.patch
new file mode 100644
index 000000000000..7c62a6cbd726
--- /dev/null
+++ b/media-gfx/exact-image/files/exact-image-0.7.5-libpng14.patch
@@ -0,0 +1,69 @@
+--- a/codecs/png.cc
++++ b/codecs/png.cc
+@@ -71,7 +71,7 @@
+ /* Allocate/initialize the memory for image information. REQUIRED. */
+ info_ptr = png_create_info_struct(png_ptr);
+ if (info_ptr == NULL) {
+- png_destroy_read_struct(&png_ptr, png_infopp_NULL, png_infopp_NULL);
++ png_destroy_read_struct(&png_ptr, NULL, NULL);
+ return 0;
+ }
+
+@@ -82,7 +82,7 @@
+
+ if (setjmp(png_jmpbuf(png_ptr))) {
+ /* Free all of the memory associated with the png_ptr and info_ptr */
+- png_destroy_read_struct(&png_ptr, &info_ptr, png_infopp_NULL);
++ png_destroy_read_struct(&png_ptr, &info_ptr, NULL);
+ /* If we get here, we had a problem reading the file */
+ return 0;
+ }
+@@ -99,7 +99,7 @@
+ png_read_info (png_ptr, info_ptr);
+
+ png_get_IHDR (png_ptr, info_ptr, &width, &height, &bit_depth, &color_type,
+- &interlace_type, int_p_NULL, int_p_NULL);
++ &interlace_type, NULL, NULL);
+
+ image.w = width;
+ image.h = height;
+@@ -132,7 +132,7 @@
+ #if 0 // no longer needed
+ /* Expand grayscale images to the full 8 bits from 2, or 4 bits/pixel */
+ if (color_type == PNG_COLOR_TYPE_GRAY && bit_depth > 1 && bit_depth < 8) {
+- png_set_gray_1_2_4_to_8(png_ptr);
++ png_set_expand_gray_1_2_4_to_8(png_ptr);
+ image.bps = 8;
+ }
+ #endif
+@@ -196,11 +196,11 @@
+ for (int pass = 0; pass < number_passes; ++pass)
+ for (unsigned int y = 0; y < height; ++y) {
+ row_pointers[0] = image.getRawData() + y * stride;
+- png_read_rows(png_ptr, row_pointers, png_bytepp_NULL, 1);
++ png_read_rows(png_ptr, row_pointers, NULL, 1);
+ }
+
+ /* clean up after the read, and free any memory allocated - REQUIRED */
+- png_destroy_read_struct(&png_ptr, &info_ptr, png_infopp_NULL);
++ png_destroy_read_struct(&png_ptr, &info_ptr, NULL);
+
+ /* that's it */
+ return true;
+@@ -224,7 +224,7 @@
+ /* Allocate/initialize the memory for image information. REQUIRED. */
+ info_ptr = png_create_info_struct(png_ptr);
+ if (info_ptr == NULL) {
+- png_destroy_write_struct(&png_ptr, png_infopp_NULL);
++ png_destroy_write_struct(&png_ptr, NULL);
+ return false;
+ }
+
+@@ -244,7 +244,6 @@
+ else if (quality > Z_BEST_COMPRESSION) quality = Z_BEST_COMPRESSION;
+ png_set_compression_level(png_ptr, quality);
+
+- png_info_init (info_ptr);
+
+ /* Set up our STL stream output control */
+ png_set_write_fn (png_ptr, stream, &stdstream_write_data, &stdstream_flush_data);
diff --git a/media-gfx/exact-image/files/exact-image-0.8.1-gcc6.patch b/media-gfx/exact-image/files/exact-image-0.8.1-gcc6.patch
new file mode 100644
index 000000000000..4871c99205a2
--- /dev/null
+++ b/media-gfx/exact-image/files/exact-image-0.8.1-gcc6.patch
@@ -0,0 +1,139 @@
+Bug: https://bugs.gentoo.org/600380
+
+--- a/bardecode/code25i.hh
++++ b/bardecode/code25i.hh
+@@ -20,6 +20,12 @@
+
+ #include "scanner_utils.hh"
+
++#if __cplusplus >= 201103L
++#define STATIC_CONST_DOUBLE static constexpr double
++#else
++#define STATIC_CONST_DOUBLE static const double
++#endif
++
+ namespace BarDecode
+ {
+ struct code25i_t
+@@ -37,11 +43,11 @@
+ #define w_hq 1.5
+ #define tol 0.2
+ #else
+- static const double n_lq = 15;
+- static const double n_hq = 5.3;
+- static const double w_lq = 5.2;
+- static const double w_hq = 1.5;
+- static const double tol = 0.2;
++ STATIC_CONST_DOUBLE n_lq = 15;
++ STATIC_CONST_DOUBLE n_hq = 5.3;
++ STATIC_CONST_DOUBLE w_lq = 5.2;
++ STATIC_CONST_DOUBLE w_hq = 1.5;
++ STATIC_CONST_DOUBLE tol = 0.2;
+ #endif
+ static const usize_t min_quiet_usize = 5;
+ //static const usize_t min_quiet_usize = 10;
+--- a/codecs/bmp.cc
++++ b/codecs/bmp.cc
+@@ -473,7 +473,7 @@
+ std::cerr << "scanline " << row << " Seek error: " << stream->tellg() << " vs " << offset << std::endl;
+ }
+
+- if (stream->read ((char*)row_data, file_stride) < 0) {
++ if (!static_cast<bool>(stream->read ((char*)row_data, file_stride))) {
+ std::cerr << "scanline " << row << ": Read error\n";
+ }
+
+--- a/codecs/dcraw.h
++++ b/codecs/dcraw.h
+@@ -3958,22 +3958,22 @@
+ -2,+0,+0,-1,0,0x06, -2,+0,+0,+0,1,0x02, -2,+0,+0,+1,0,0x03,
+ -2,+1,-1,+0,0,0x04, -2,+1,+0,-1,1,0x04, -2,+1,+0,+0,0,0x06,
+ -2,+1,+0,+1,0,0x02, -2,+2,+0,+0,1,0x04, -2,+2,+0,+1,0,0x04,
+- -1,-2,-1,+0,0,0x80, -1,-2,+0,-1,0,0x01, -1,-2,+1,-1,0,0x01,
+- -1,-2,+1,+0,1,0x01, -1,-1,-1,+1,0,0x88, -1,-1,+1,-2,0,0x40,
++ -1,-2,-1,+0,0,(signed char) 0x80, -1,-2,+0,-1,0,0x01, -1,-2,+1,-1,0,0x01,
++ -1,-2,+1,+0,1,0x01, -1,-1,-1,+1,0,(signed char) 0x88, -1,-1,+1,-2,0,0x40,
+ -1,-1,+1,-1,0,0x22, -1,-1,+1,+0,0,0x33, -1,-1,+1,+1,1,0x11,
+ -1,+0,-1,+2,0,0x08, -1,+0,+0,-1,0,0x44, -1,+0,+0,+1,0,0x11,
+ -1,+0,+1,-2,1,0x40, -1,+0,+1,-1,0,0x66, -1,+0,+1,+0,1,0x22,
+ -1,+0,+1,+1,0,0x33, -1,+0,+1,+2,1,0x10, -1,+1,+1,-1,1,0x44,
+ -1,+1,+1,+0,0,0x66, -1,+1,+1,+1,0,0x22, -1,+1,+1,+2,0,0x10,
+ -1,+2,+0,+1,0,0x04, -1,+2,+1,+0,1,0x04, -1,+2,+1,+1,0,0x04,
+- +0,-2,+0,+0,1,0x80, +0,-1,+0,+1,1,0x88, +0,-1,+1,-2,0,0x40,
++ +0,-2,+0,+0,1,(signed char) 0x80, +0,-1,+0,+1,1,(signed char) 0x88, +0,-1,+1,-2,0,0x40,
+ +0,-1,+1,+0,0,0x11, +0,-1,+2,-2,0,0x40, +0,-1,+2,-1,0,0x20,
+ +0,-1,+2,+0,0,0x30, +0,-1,+2,+1,1,0x10, +0,+0,+0,+2,1,0x08,
+ +0,+0,+2,-2,1,0x40, +0,+0,+2,-1,0,0x60, +0,+0,+2,+0,1,0x20,
+ +0,+0,+2,+1,0,0x30, +0,+0,+2,+2,1,0x10, +0,+1,+1,+0,0,0x44,
+ +0,+1,+1,+2,0,0x10, +0,+1,+2,-1,1,0x40, +0,+1,+2,+0,0,0x60,
+- +0,+1,+2,+1,0,0x20, +0,+1,+2,+2,0,0x10, +1,-2,+1,+0,0,0x80,
+- +1,-1,+1,+1,0,0x88, +1,+0,+1,+2,0,0x08, +1,+0,+2,-1,0,0x40,
++ +0,+1,+2,+1,0,0x20, +0,+1,+2,+2,0,0x10, +1,-2,+1,+0,0,(signed char) 0x80,
++ +1,-1,+1,+1,0,(signed char) 0x88, +1,+0,+1,+2,0,0x08, +1,+0,+2,-1,0,0x40,
+ +1,+0,+2,+1,0,0x10
+ }, chood[] = { -1,-1, -1,0, -1,+1, 0,+1, +1,+1, +1,0, +1,-1, 0,-1 };
+ ushort (*brow[5])[4], *pix;
+@@ -6341,11 +6341,11 @@
+ { 10793,-3791,-1146,-7498,15177,2488,-1390,1577,7321 } },
+ { "OLYMPUS C80", 0, 0,
+ { 8606,-2509,-1014,-8238,15714,2703,-942,979,7760 } },
+- { "OLYMPUS E-10", 0, 0xffc0,
++ { "OLYMPUS E-10", 0, (short) 0xffc0,
+ { 12745,-4500,-1416,-6062,14542,1580,-1934,2256,6603 } },
+- { "OLYMPUS E-1", 0, 0xfff0,
++ { "OLYMPUS E-1", 0, (short) 0xfff0,
+ { 11846,-4767,-945,-7027,15878,1089,-2699,4122,8311 } },
+- { "OLYMPUS E-20", 0, 0xffc0,
++ { "OLYMPUS E-20", 0, (short) 0xffc0,
+ { 13173,-4732,-1499,-5807,14036,1895,-2045,2452,7142 } },
+ { "OLYMPUS E-300", 0, 0,
+ { 7828,-1761,-348,-5788,14071,1830,-2853,4518,6557 } },
+@@ -6353,7 +6353,7 @@
+ { 8961,-2473,-1084,-7979,15990,2067,-2319,3035,8249 } },
+ { "OLYMPUS E-3", 0, 0xf99,
+ { 9487,-2875,-1115,-7533,15606,2010,-1618,2100,7389 } },
+- { "OLYMPUS E-400", 0, 0xfff0,
++ { "OLYMPUS E-400", 0, (short) 0xfff0,
+ { 6169,-1483,-21,-7107,14761,2536,-2904,3580,8568 } },
+ { "OLYMPUS E-410", 0, 0xf6a,
+ { 8856,-2582,-1026,-7761,15766,2082,-2009,2575,7469 } },
+@@ -6399,23 +6399,23 @@
+ { 9186,-2678,-907,-8693,16517,2260,-1129,1094,8524 } },
+ { "PENTAX K2000", 0, 0,
+ { 11057,-3604,-1155,-5152,13046,2329,-282,375,8104 } },
+- { "Panasonic DMC-FZ8", 0, 0xf7f0,
++ { "Panasonic DMC-FZ8", 0, (short) 0xf7f0,
+ { 8986,-2755,-802,-6341,13575,3077,-1476,2144,6379 } },
+ { "Panasonic DMC-FZ18", 0, 0,
+ { 9932,-3060,-935,-5809,13331,2753,-1267,2155,5575 } },
+ { "Panasonic DMC-FZ28", 15, 0xfff,
+ { 10109,-3488,-993,-5412,12812,2916,-1305,2140,5543 } },
+- { "Panasonic DMC-FZ30", 0, 0xf94c,
++ { "Panasonic DMC-FZ30", 0, (short) 0xf94c,
+ { 10976,-4029,-1141,-7918,15491,2600,-1670,2071,8246 } },
+- { "Panasonic DMC-FZ50", 0, 0xfff0, /* aka "LEICA V-LUX1" */
++ { "Panasonic DMC-FZ50", 0, (short) 0xfff0, /* aka "LEICA V-LUX1" */
+ { 7906,-2709,-594,-6231,13351,3220,-1922,2631,6537 } },
+ { "Panasonic DMC-L10", 15, 0xf96,
+ { 8025,-1942,-1050,-7920,15904,2100,-2456,3005,7039 } },
+- { "Panasonic DMC-L1", 0, 0xf7fc, /* aka "LEICA DIGILUX 3" */
++ { "Panasonic DMC-L1", 0, (short) 0xf7fc, /* aka "LEICA DIGILUX 3" */
+ { 8054,-1885,-1025,-8349,16367,2040,-2805,3542,7629 } },
+ { "Panasonic DMC-LC1", 0, 0, /* aka "LEICA DIGILUX 2" */
+ { 11340,-4069,-1275,-7555,15266,2448,-2960,3426,7685 } },
+- { "Panasonic DMC-LX1", 0, 0xf7f0, /* aka "LEICA D-LUX2" */
++ { "Panasonic DMC-LX1", 0, (short) 0xf7f0, /* aka "LEICA D-LUX2" */
+ { 10704,-4187,-1230,-8314,15952,2501,-920,945,8927 } },
+ { "Panasonic DMC-LX2", 0, 0, /* aka "LEICA D-LUX3" */
+ { 8048,-2810,-623,-6450,13519,3272,-1700,2146,7049 } },
+--- a/codecs/raw.cc
++++ b/codecs/raw.cc
+@@ -66,7 +66,7 @@
+ if (!image.getRawData())
+ return false;
+
+- return stream->write ((char*)image.getRawData(), image.stride()*image.h)
++ return static_cast<bool>(stream->write ((char*)image.getRawData(), image.stride()*image.h))
+ /* ==
+ (size_t) image.stride()*image.h*/;
+ }
diff --git a/media-gfx/exact-image/files/exact-image-0.8.1-libpng15.patch b/media-gfx/exact-image/files/exact-image-0.8.1-libpng15.patch
new file mode 100644
index 000000000000..94c8906a874a
--- /dev/null
+++ b/media-gfx/exact-image/files/exact-image-0.8.1-libpng15.patch
@@ -0,0 +1,34 @@
+--- a/codecs/png.cc
++++ b/codecs/png.cc
+@@ -16,6 +16,7 @@
+ */
+
+ #include <stdlib.h>
++#include <zlib.h>
+ #include <png.h>
+
+ #include <iostream>
+@@ -104,7 +105,7 @@
+ image.w = width;
+ image.h = height;
+ image.bps = bit_depth;
+- image.spp = info_ptr->channels;
++ image.spp = png_get_channels(png_ptr, info_ptr);
+
+ png_uint_32 res_x, res_y;
+ res_x = png_get_x_pixels_per_meter(png_ptr, info_ptr);
+@@ -120,10 +121,13 @@
+ // png_set_packswap(png_ptr);
+
+ /* Expand paletted colors into true RGB triplets */
++
++ int num_trans;
++
+ if (color_type == PNG_COLOR_TYPE_PALETTE) {
+ png_set_palette_to_rgb(png_ptr);
+ image.bps = 8;
+- if (info_ptr->num_trans)
++ if (num_trans)
+ image.spp = 4;
+ else
+ image.spp = 3;
diff --git a/media-gfx/exact-image/metadata.xml b/media-gfx/exact-image/metadata.xml
new file mode 100644
index 000000000000..24dec3e96522
--- /dev/null
+++ b/media-gfx/exact-image/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>
+<use>
+ <flag name="swig">Adds Swig support <pkg>dev-lang/swig</pkg></flag>
+</use>
+</pkgmetadata>
diff --git a/media-gfx/exif/Manifest b/media-gfx/exif/Manifest
new file mode 100644
index 000000000000..73c6a7afd26e
--- /dev/null
+++ b/media-gfx/exif/Manifest
@@ -0,0 +1,5 @@
+DIST exif-0.6.21.tar.bz2 387531 SHA256 59e78229ac32dd8ae3cad45c5781350da20705313c0b2dda266da0431b8769fd SHA512 73b5b7df08462a6a084a8fb973c39197f5d64ed753a97cb2f94a4acf815fdf0313214c2c8e44a46a24a1f6304fdaa68a579b4a2e246cc095f6e9588e93368cdc WHIRLPOOL f669655a76e2fe137bff9a55d04221f6f7599e2c1e1fd9d917c1759d498060163d63020eed26b53f0f6d853dcb940540535877e3eaf160c244d120e570a308cc
+EBUILD exif-0.6.21.ebuild 582 SHA256 d0d4acab8b7e74ae24b483d4e9040053d9332c5e4da9a124893d5dab842bcb86 SHA512 c87bfffcc00f7add0d408509d02c5c16ad34be41e89589f11446a1f876bfdc125764c97e56ff6ea3ceba945a46a2465656fc0c9888f15009d3b35d1567263c6f WHIRLPOOL 8ff7ea3e154f20957b2f31457d4f90bad26d007e49ad3b888637034883de4fbb92b08087e4f34e5ae79543797597d811fca670d7d2930a8a37fbcb385b8ddb70
+MISC ChangeLog 2421 SHA256 cc55cd6e407d5e8e0b87499559511b429c8c12263501bcffaae336e15e0c4175 SHA512 d36098714b6da1727a9f43f5ff9ec412841877da2bc1d8c4d5e391e7cf2ef8c2ef1a9eae4b6b16b6f8caeadc484ecbf27aa96ec99fb9696f9d24e6eb9af94c70 WHIRLPOOL 995b09e4f266ae1757aadccab03da84a6b71b20075aa1035bd21564512753868fdb8ef9bfd4ce5cc0a495b39c752bb5c76f66da241388260fecd4fdb67d331ea
+MISC ChangeLog-2015 6262 SHA256 e5325094365c3053fa37b0625bb243bd6d468dda01316ab919947d531d1541a8 SHA512 6c041727e69b92a769aba19e7b2e1b0b2e06a5e00534457c58c502778dfac0161f659fb113c11308cda815f19d728b7b69e2571c8078e74940273af94577174b WHIRLPOOL 92da270231817246ff21c4bb2387a352a083b24aa00d984e135878581a51b90b44206280e509b44d85ac13039cbfee7ea5f2fbe8cfb510032b412aabf98cb7e2
+MISC metadata.xml 346 SHA256 2a4c8c42067d89e33dc81801f5506c916c2afcd69621880b913cde07d92e74bf SHA512 195346710c3ead4bf9c050f5ebe548e0e7bb86bb1f9f61b2c1664cdda094c0523ee3c77769de7819b2d82cc4abd55e3b57c0827fdd0f97cc440f40b7519feec5 WHIRLPOOL c1bc830914523156df9a4131f2c58ae33a90b3d849b0e0a188f7f8f88faec7252c9b7d3dc81e5a206f69c1b05ba2e8e7de4d7845fca925e93545c832124403d1
diff --git a/media-gfx/exif/exif-0.6.21.ebuild b/media-gfx/exif/exif-0.6.21.ebuild
new file mode 100644
index 000000000000..bf41a30f3252
--- /dev/null
+++ b/media-gfx/exif/exif-0.6.21.ebuild
@@ -0,0 +1,23 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+
+DESCRIPTION="Small CLI util to show EXIF infos hidden in JPEG files"
+HOMEPAGE="http://libexif.sourceforge.net/"
+SRC_URI="mirror://sourceforge/libexif/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 hppa ia64 ppc ppc64 sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos"
+IUSE="nls"
+
+RDEPEND="dev-libs/popt
+ >=media-libs/libexif-${PV}"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ nls? ( sys-devel/gettext )"
+
+src_configure() {
+ econf $(use_enable nls)
+}
diff --git a/media-gfx/exif/metadata.xml b/media-gfx/exif/metadata.xml
new file mode 100644
index 000000000000..20c42d325f66
--- /dev/null
+++ b/media-gfx/exif/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="sourceforge">libexif</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/media-gfx/exiftags/Manifest b/media-gfx/exiftags/Manifest
new file mode 100644
index 000000000000..9fa9fa0fbead
--- /dev/null
+++ b/media-gfx/exiftags/Manifest
@@ -0,0 +1,5 @@
+DIST exiftags-1.01.tar.gz 70921 SHA256 d95744de5f609f1562045f1c2aae610e8f694a4c9042897a51a22f0f0d7591a4 SHA512 850d9f709dfa034eb5e04318f18b85c486c21407525074a00dccd81781b874cc6a34dccd97b4566fbeb96c61399858ce0718eb90e329383974b6c4dc0180c684 WHIRLPOOL c0246fc8b17c374562ae074bb188bd769e6ea2a06164aef1cfbcf8866f747ca5e09045998890733cb7294ae85f51150618c2b5e4dcaf7a34a59874bd5ce1fd30
+EBUILD exiftags-1.01.ebuild 616 SHA256 2c4d3a79b1d9b2170f5cf0f7c00b0746abef3853c396323bfdc4e6e05b1019cd SHA512 a87ff70cbb0e85e5986df04e59e754349e0cafaa02326fa41fab3cc76470fa27b46d4838fa7e0b7e2e55078290be3d1ba1e5f4d75169cac4122c0c93b4b64ab0 WHIRLPOOL 8f063f6720a93539ea44a53d4545eba7458e7c1973ca620f8d6c61dda25973fa918167b4841544c59d3a08d9a6e1832606aea35d90c5f9cca4c98a46cb2429a6
+MISC ChangeLog 2429 SHA256 2cd8632d1f1f35612186f60c3c3182594fb1d4aa814b7ca89a95f924c470a821 SHA512 56d7d6a39d373e91e65639335dbf7176aaabec682d116af389e72015674a11342cae9874d0894d663fd1e68dc1e4f5934eb5514a21a86002f986636309527397 WHIRLPOOL 79a7e531ad3b0edd637d3aa0ffb403c63d690cd134df41db9041c0fad275514d5588f580237d0823370878542c935505ec02e031e04f632f4c8e0f78accf6562
+MISC ChangeLog-2015 2676 SHA256 0200cbfc740d152137c507c59c130c0d33f269fdb8d66c52fd191b388251dc88 SHA512 9e3504329137c27006140bb759f1d969cc0425fc87f5ffb41960fc399eb63794700ca1219ea0886687984e4ddc00b266affdfaaf38abf60367c3df0c02dd0e4a WHIRLPOOL 73fd8f35aebd665a355f7d8960344aeec29983456bb7a4bc301b7b46253bee4898f318daa5aa6f5cf886e9e1116a5ec69021c3f46a5f7649c59a7f3ba877e005
+MISC metadata.xml 259 SHA256 2caf73387680548983b5ebbd5db6bffbfaab184fa3242d42bb1386e2cc4fe604 SHA512 6744883613ae3b83c57ec9604c5f31717ab714b4f3e7f4f680e4b9e54f622f8e5f753b3cd666862f0e3e6dc4223aee87b89aba472d9f20e1b317595e06aeae30 WHIRLPOOL 87955f0841a0da62f06108f592e31dc2d16cc6b9581afee9eb0098c85bbb539c24e8082ed5fd659158721d3c241ffbf15b2c186a33fa29f76a4b18b9fb0b6d7a
diff --git a/media-gfx/exiftags/exiftags-1.01.ebuild b/media-gfx/exiftags/exiftags-1.01.ebuild
new file mode 100644
index 000000000000..2690748c7c4a
--- /dev/null
+++ b/media-gfx/exiftags/exiftags-1.01.ebuild
@@ -0,0 +1,25 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+inherit toolchain-funcs
+
+DESCRIPTION="Extracts JPEG EXIF headers from digital camera photos"
+HOMEPAGE="http://johnst.org/sw/exiftags/"
+SRC_URI="http://johnst.org/sw/${PN}/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="amd64 ppc x86 ~amd64-linux ~x86-linux ~ppc-macos"
+IUSE=""
+
+DEPEND=""
+
+src_compile() {
+ emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" || die "emake failed."
+}
+
+src_install() {
+ dobin exiftags exifcom exiftime || die "dobin failed."
+ doman exiftags.1 exifcom.1 exiftime.1
+ dodoc README CHANGES
+}
diff --git a/media-gfx/exiftags/metadata.xml b/media-gfx/exiftags/metadata.xml
new file mode 100644
index 000000000000..899a49093b0d
--- /dev/null
+++ b/media-gfx/exiftags/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 type="project">
+ <email>graphics@gentoo.org</email>
+ <name>Gentoo Graphics Project</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/media-gfx/exiv2/Manifest b/media-gfx/exiv2/Manifest
new file mode 100644
index 000000000000..4b538802c5c5
--- /dev/null
+++ b/media-gfx/exiv2/Manifest
@@ -0,0 +1,23 @@
+AUX exiv2-0.25-fix-docs.patch 2164 SHA256 8d50b058fcaefc15455cae9c5e5edb2a5217acfe1c8de7f4d572bc3cfa2f17cd SHA512 be4e2077a52f54384ef6660e045c6eedda06bdacc3ca804cc6b9554b47be717bf50c4ac1ca42fa452f204e784a2f863ffba7276b17342bde67f9a53db5749d8b WHIRLPOOL 60f86dddcbe67f63ddb7d0332be05505024878c5cbbee99c8a4c9567906e9da94b95b64a7655f913f5e86a4e0917c849840f8d9e91eb1864cdfb095d7c844412
+AUX exiv2-0.25-fix-install-dirs.patch 2415 SHA256 a627484a3960071f01eb6f656f9af0f9a0b2771d9d9f6cd8a3429f378823a48a SHA512 402f9aacb8b6af95e94ea3d31f0c438da4407fc037004a3e99408ba5cce8cde5dd1d0c98d1e619fff56b0051516e20610a98899e5ff22d00b3827384f82e7493 WHIRLPOOL f58aa8122e207f0271a7f3a0fb6ff0297b630e187a65622ea55b0159d03acbbf09132f8a6c836485730ec5a4d085ad55e53dfe86fe08e47b449f44b68bb28a5f
+AUX exiv2-0.25-fix-without-zlib.patch 662 SHA256 66618de00ba07ec660675e2dff99138ba56fb0a8cbdab6a8a024b4f3ca93db3c SHA512 c15173bc687c2008a1e3cd04623167dd085f3e9f7655107fc75880df3d5bb51688572d2d3fc7a722763eaa5ff45bcb769f4090c615f8b3ffbf6d0417dccab8d0 WHIRLPOOL d2842c00569f578b41f543f944757b72963ac4d521017701db75c630ead80295bbb8fc39091f6ac34661e21b6910ef78d12db6f35659d79e1c25ec437d0ef7d7
+AUX exiv2-0.25-fvisibility-hidden.patch 700 SHA256 2d0eb374e3df7dd58a513b616786e9421f63e575c2812d0b3980e0af29d03d96 SHA512 7dd251fa6e09ecc0493899fdc24431f636e56bf86d33fd4cf4b46fc27b14ce7a68cb4021a3799260398f48b256f403e00b86d143a012d3871e0de5bf57db9205 WHIRLPOOL af10468fad08e51f16141e70409e5ec718d5d669db8203df6a09de2fd824eb46376f87195cf1e744c60c567943c24d54afe388d54eeb5c240f876ebbcbd59514
+AUX exiv2-0.25-hide-symbols.patch 4098 SHA256 b6fe63951717360caad547275c3810c42803ef2d8dea25c75e02b45b9d7add9e SHA512 aed6746329b12769d8084ca79a99eccd6b52449b80c0b3d1c1d6b22294c2b62398366f0715efa207e2ace0ed52740a8eb81af58d17322d42a4674336fd24e725 WHIRLPOOL ac8e900303ac0b19f24b5eff13791dd42459395763d4c8795ff978c1f2c05431b3f3586dedd2b7df375452d3826d7356fc190c4ba3bc8fc4713792bc9d31d033
+AUX exiv2-0.25-tools-optional.patch 1332 SHA256 6c9a3ed5c2b9acff10c3b2f2dd2ca639936beaf6263526b9d85ede579a1d67e1 SHA512 14a8703b86dc4a7a1f210e26bd6532c529f850dd1b25ef116c703a576c389a120e3f8b1087e289cd8b44073071ac88a97503dc2c0cf72f21d32094b2cabbc58c WHIRLPOOL dc7efa7ddcaf1be665cd79aff0b36a0f2b135a87a3a93f9cb6091105b965b4b009e569c447d54d602482410ec59d674d99a71bee2699e8007575b8e2cc727998
+AUX exiv2-0.26-CVE-2017-9239.patch 738 SHA256 014407dc03154c12675d66368b9e5674bc761bd77102665bb4ccbbc1561b8098 SHA512 f6d3c081ca145bc9614fff83d59512329bb30b19010be16484c0d341c6c7167195c98131458b9427ef0afd9cf0bd1f1cdd10b0cfd689322327bd685759bd125f WHIRLPOOL 724b65d05228677d6d9493489d0e9882308e1a5fdef502528c80676767c582fe9ff828d50b67b447ba57b0c114926143c5ca9864e04e3b4dcfd6118a2e06daf9
+AUX exiv2-0.26-cmake1.patch 805 SHA256 ce6797ef659aad6ad0687ea7236d193a22552c4c91855f486216371de0608f2e SHA512 5b99674cdf01ab712df2f743487be1afd5a5751133222d13eaab36ce9e0b86c9c89eb8a09244eb521a60bce12081dbefb6b867aab75158df193d80965a0f0681 WHIRLPOOL 734fcdb96037486a7ec834ecf1f90d3e63e35ef22efd832e787e2e6efa8a9d59923311e46ff6486acd96668c0245f2ac0de620ea35e75665fce9a34c9caa401e
+AUX exiv2-0.26-cmake2.patch 2781 SHA256 f5b4404a124e2fb11e2c363973c25bbc91c1da9787822f9f1a3252ef2bf0224b SHA512 2ff6baad558ff79ec514a9bd78adb01d1c894d51713a5f98573c7e60356b90ed5f9ad462c43f6454874e2e775f61edf38a5881eb9526c5c9cd5543af0777e543 WHIRLPOOL 297cb349e63e9fb9a696c3e60de6e8d1c547b7f163abff6aeabe7687d6bc1c643b0a0166438f544ba33c02b285029244b339b0963afe894cd736175c9b7c1f87
+AUX exiv2-0.26-cmake3.patch 2040 SHA256 14c67fe154053c72d41696546b998c320129190dc3b43471b25731d71c9e7c19 SHA512 98c63cbe51126090835b2422433af625cea683d89d3d4e822191bfa19633ff1e4b98b41356dd9f2326c4e30c34faa80b9408ed488644575ab5cbf8f5477f6d8f WHIRLPOOL 9065ff20231c6dc36a8314e0cbf36237d2b6acaceea69cfe16ec616a3e53b99fd756305e1fd771c4e2c1349a051ea2d875374f8bea67ef9049e677803fcc390d
+AUX exiv2-0.26-cmake4.patch 783 SHA256 fee765278dc3bdc11b0d140e2e082ef29209aa78d591808ecf608434be87deda SHA512 e2a197fcf1255e02d1ce35a3d9428f40533fad8dcbac39f17b8b5d3f2b365479e202c9fca3b969b6f16ab3e58ff2d8654b85308536e5acec3ba8d7af38fc17a0 WHIRLPOOL 8b28f0bd49bd4af64a8638bffbe977aa9feb257f9cf8c2075493b4e56aa6065c8e475ce33f988575e1b2b90030abd179902682537f00576cddb7069f0aa32607
+AUX exiv2-0.26-cmake5.patch 1066 SHA256 aa7fcff3eace01ac2faf9a901fa2ebd3949d1ae4836bcfc884a119b394c083b5 SHA512 6ac55cd0d73b484357b84b07f0e059f239e717a32d0cb4acec23522ac23546374f13edbb5306fe1acf7d75049ee642f4c6e851fb1dc0b38bec5feecfd4efbb0f WHIRLPOOL 11118cc7bc6a753700b6a1dd381c67ef883fab4c64ee1f5248b641bf265081994b99d88147d4fdaf208ebe4dab91f8488e4fa105919d3f0ab984ead146cdc3f7
+AUX exiv2-0.26-cmake6.patch 973 SHA256 4a167f386a87f261481b5544844aa26c61386bb77e702407f21490b052b866aa SHA512 d32b2d8856651ec168732367c5d7c65131e9301fb899bf7ce018b68d783d66120b99fff624ce3c37b36c5aa1682d5cdde74adf232c11807f496cff987bf478a7 WHIRLPOOL 6060e8c85a6f953a4853bbdedfd85c2dbd3c9943c972d9b0612239017886d78bf2db50fc1a2474aad949d03079e9adc8254307598e3dd734af015b7133d2c004
+AUX exiv2-0.26-cmake7.patch 1328 SHA256 a882283ea89183c4a415b9816cf03daa80683ea5a85c5a78c7b430f1b602f293 SHA512 f500dd7cf0520d5cdb177a33554329d7da0f9895a1d04e1fd2d91e37814df61901b13f7e9c33b245fa4ad9cd6b7361cf289af868363187f9917691366a6672a3 WHIRLPOOL 661b44e517138b93c2633f13507c3ec67ac1308b7b794731996bde75cf83fce3ef315287fdff4dc2a418253c94ecfb38f73ea96e9599bc124e80a7a0e89d15c7
+AUX exiv2-0.26-fix-docs.patch 2147 SHA256 6cdab606c6fb6ddc7913fd311d9051946f97c1de5dabac614e934e704ea4c7ca SHA512 fa2f35d00df2fd1d958e1139e7b8fe0dd0c0f7f6fe5295b2ac5b0a156ae68af9e275e23c943929c90315a99e3116376a4e21e384c1bb219b3d5b657ac12165ec WHIRLPOOL 5e70a648303cab83e6265c064e94144d65421bc9cf514744b624a6af466cce1827c983664ee71f78431919d47370f2f9d17931aa96941c2079826232687ab78c
+AUX exiv2-0.26-tools-optional.patch 1276 SHA256 5df66e4cbf15b911b4c05bb9240452f64f9e4c84bd04e7e516ef34bd43c3e849 SHA512 23e797e76cedf6c4a2025e0d6d2f7301d8e13adcbb836660fe2568eeb94348c6cac649284789551f97a69790271936b6412ff7d1416ee95a87851624b317e4c9 WHIRLPOOL c7f32aa72c9051c69cb54176335ab05258aca72f9cd658fd323873bd7d3f8db5fd0b10f9940b5ee5bb3d1c84902a59a73087f510db37542b100c5fd9d8f755fb
+DIST exiv2-0.25.tar.gz 5434325 SHA256 c80bfc778a15fdb06f71265db2c3d49d8493c382e516cb99b8c9f9cbde36efa4 SHA512 08d4e655ffdde715e0214f4bef01d55aba9b8ba517456a60e254a0f8541c20479e407545db28ca90a69dee8def6941fdd88f9a557fb382ebebe49e363aca8e8e WHIRLPOOL f9e7a6947dac5870e0574253b8c1cb1e7d31a916a9e1c4417c73168046c0b4bed90b9c77253444604163bcf6dca204dab92a52cb03bdcb0f85c807327623f8ac
+DIST exiv2-0.26-trunk.tar.gz 5699163 SHA256 0c625cbeb494aa1b9221280a5b053b54d0c9720d48fa9120cef7c6f93efd4dc3 SHA512 d9f354f8458d7803140b442b2a8de3c8904b1e20916cf62d7176f51524e6ff7def26d3b6fa016abc49f8140295eea624151c54dbae0676a61529c2cf33335b0c WHIRLPOOL 0d36063ee659d0a798957e9a2478337f5e8061b467df8fb86b194830ac6ec751a75e1492ad7cbf4ed31c836b9c320f037af3708920b28b07c8970840e255d711
+EBUILD exiv2-0.25-r2.ebuild 3067 SHA256 74c21aab30f50186256977871d495681c93e41c8044adc052c518a49b42e1fdd SHA512 30a8a1afbb91ec8b226ea16621cacbd9726f31cd9ebddfda4c7771786a4902123b5674ac9221c990b99464eb0d471f694bf57eebc7e3a22d65ad5e61f4805dfc WHIRLPOOL fc5b37699ba112488230aa7fdd8913318e7527c772cb214b87ecd612775f3fffd6686b8db1baee3dc949fbf8ce856607205776aaea50cf67634b6bb7c74f2b0f
+EBUILD exiv2-0.26.ebuild 3363 SHA256 cc7d95cf155021fea575a0ac2f11cba28a13670e900a4f637b9e665b3b4a0f01 SHA512 48fadc26522fd3ac2a7023cfb36b39cf77cd3b24d82bf2b264d4c8c0770ddcca1a8c4fe6416aa25545c8e2e083afa3ca0093de3e0a6c310b7a6ca8afd5e96695 WHIRLPOOL 9faa17bcf438d3f7cffe67985b30729b7e4726b0344df74342537c3d8c143304fa0326ff6de7845cffa236d6b6662d634bc25f919951d4062f17db16d5905c89
+MISC ChangeLog 6407 SHA256 169192c62c5737f3e30c0f97815a85216ef6c50714d94759089db57cc60468c4 SHA512 dbadbe62c5c985e88553f788bf6b22c98f9c4001d53882d8cff3a0e7fd23aa49dbc9e9dc72854578e711f5041f2f0182226d236946042f349a9ebc015b2a89fb WHIRLPOOL eb2926f593eb897554b5e4c77d4287f7718134e5d88b56ba4c48161d04834a8cd706989b456ba1c707303d6603270ae4cfb6d358c8c2f91bc8f3209caa9e2947
+MISC ChangeLog-2015 18145 SHA256 5a973e551b2244f4f36a767d98cf41bc8bb61789fc40a7809cc5a98ebe80097d SHA512 3d54f43d175e49db9e5d727eadd616fbae08e2fd1017ea6382b818bf6ec300b782d62eb037b4859b190996e63fb963da4eb7862c00c5f24fee7da05a875d69f2 WHIRLPOOL 2ed9a6717cf228be16bd1aaf6cf4820b02afbd77952685c4d8fe7cb49707c61f504c05053bcb5223626ce9b0ea22ea9e7d308b35a7a80a0c15676b9f8ca5af8c
+MISC metadata.xml 612 SHA256 2700f3a6eb0fea03635790e9e55611f58a19dace74c70d0e0106bd70ef825c60 SHA512 9b4926ba8420a125dc4cefd351ee1ec10a4df2fc4306a56720f6e8de7c5fd9f36a8646c8583958fca9a45ebe1b65b19c053c7da37176546bc19ae64afa87e4f5 WHIRLPOOL 0996d01f595fe4ab40a65fcc19d2eced4dc31a1c8efddddca353828447ff3ca974499dcc81482d47a3470d9530a1886abde9acfaa2ac75df0e845f1a70402056
diff --git a/media-gfx/exiv2/exiv2-0.25-r2.ebuild b/media-gfx/exiv2/exiv2-0.25-r2.ebuild
new file mode 100644
index 000000000000..5f2ca76c7da1
--- /dev/null
+++ b/media-gfx/exiv2/exiv2-0.25-r2.ebuild
@@ -0,0 +1,127 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} )
+
+inherit eutils cmake-multilib python-any-r1
+
+DESCRIPTION="EXIF, IPTC and XMP metadata C++ library and command line utility"
+HOMEPAGE="http://www.exiv2.org/"
+SRC_URI="http://www.exiv2.org/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0/14"
+KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 ~s390 ~sh sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~x64-solaris ~x86-solaris"
+IUSE_LINGUAS="bs de es fi fr gl ms pl pt ru sk sv ug uk vi"
+IUSE="doc examples nls png webready xmp $(printf 'linguas_%s ' ${IUSE_LINGUAS})"
+
+RDEPEND="
+ >=virtual/libiconv-0-r1[${MULTILIB_USEDEP}]
+ nls? ( >=virtual/libintl-0-r1[${MULTILIB_USEDEP}] )
+ png? ( >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}] )
+ webready? (
+ net-libs/libssh[${MULTILIB_USEDEP}]
+ net-misc/curl[${MULTILIB_USEDEP}]
+ )
+ xmp? ( >=dev-libs/expat-2.1.0-r3[${MULTILIB_USEDEP}] )
+"
+
+DEPEND="${RDEPEND}
+ doc? (
+ app-doc/doxygen
+ dev-libs/libxslt
+ virtual/pkgconfig
+ media-gfx/graphviz
+ ${PYTHON_DEPS}
+ )
+ nls? ( sys-devel/gettext )
+"
+
+DOCS=( README doc/ChangeLog doc/cmd.txt )
+
+PATCHES=(
+ "${FILESDIR}/${PN}-0.25-fix-install-dirs.patch"
+ "${FILESDIR}/${PN}-0.25-fix-without-zlib.patch"
+ "${FILESDIR}/${PN}-0.25-hide-symbols.patch"
+ "${FILESDIR}/${PN}-0.25-fvisibility-hidden.patch"
+ # TODO: Take to upstream
+ "${FILESDIR}/${PN}-0.25-fix-docs.patch"
+ "${FILESDIR}/${PN}-0.25-tools-optional.patch"
+)
+
+pkg_setup() {
+ use doc && python-any-r1_pkg_setup
+}
+
+src_prepare() {
+ rm -r msvc* build || die "Failed to remove msvc dirs"
+
+ if [[ ${PV} != *9999 ]] ; then
+ if [[ -d po ]] ; then
+ pushd po > /dev/null || die
+ for lang in *.po; do
+ if ! has ${lang%.po} ${LINGUAS} ; then
+ rm -rf ${lang} || die
+ fi
+ done
+ popd > /dev/null || die
+ else
+ die "Failed to prepare LINGUAS - po directory moved?"
+ fi
+ fi
+
+ # convert docs to UTF-8
+ local i
+ for i in doc/cmd.txt; do
+ einfo "Converting "${i}" to UTF-8"
+ iconv -f LATIN1 -t UTF-8 "${i}" > "${i}.tmp" || die
+ mv -f "${i}.tmp" "${i}" || die
+ done
+
+ if use doc; then
+ einfo "Updating doxygen config"
+ doxygen &>/dev/null -u config/Doxyfile || die
+ fi
+
+ cmake-utils_src_prepare
+}
+
+multilib_src_configure() {
+ local mycmakeargs=(
+ -DEXIV2_ENABLE_BUILD_PO=YES
+ -DEXIV2_ENABLE_BUILD_SAMPLES=NO
+ -DEXIV2_ENABLE_CURL=$(usex webready)
+ -DEXIV2_ENABLE_NLS=$(usex nls)
+ -DEXIV2_ENABLE_PNG=$(usex png)
+ -DEXIV2_ENABLE_SSH=$(usex webready)
+ -DEXIV2_ENABLE_WEBREADY=$(usex webready)
+ -DEXIV2_ENABLE_XMP=$(usex xmp)
+ -DEXIV2_ENABLE_LIBXMP=NO
+ $(multilib_is_native_abi || \
+ echo -DEXIV2_ENABLE_TOOLS=NO)
+ )
+
+ cmake-utils_src_configure
+}
+
+multilib_src_compile() {
+ cmake-utils_src_compile
+
+ if multilib_is_native_abi; then
+ use doc && emake -j1 doc
+ fi
+}
+
+multilib_src_install_all() {
+ einstalldocs
+ prune_libtool_files --all
+
+ use xmp && dodoc doc/{COPYING-XMPSDK,README-XMP,cmdxmp.txt}
+ use doc && dodoc -r "${S}"/doc/html
+
+ if use examples; then
+ docinto examples
+ dodoc samples/*.cpp
+ fi
+}
diff --git a/media-gfx/exiv2/exiv2-0.26.ebuild b/media-gfx/exiv2/exiv2-0.26.ebuild
new file mode 100644
index 000000000000..c63f2a26e986
--- /dev/null
+++ b/media-gfx/exiv2/exiv2-0.26.ebuild
@@ -0,0 +1,133 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} )
+
+inherit cmake-multilib python-any-r1
+
+DESCRIPTION="EXIF, IPTC and XMP metadata C++ library and command line utility"
+HOMEPAGE="http://www.exiv2.org/"
+SRC_URI="http://www.exiv2.org/builds/${P}-trunk.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0/26"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~x64-solaris ~x86-solaris"
+IUSE_LINGUAS="bs de es fi fr gl ms pl pt ru sk sv ug uk vi"
+IUSE="doc examples nls png webready xmp $(printf 'linguas_%s ' ${IUSE_LINGUAS})"
+
+RDEPEND="
+ >=virtual/libiconv-0-r1[${MULTILIB_USEDEP}]
+ nls? ( >=virtual/libintl-0-r1[${MULTILIB_USEDEP}] )
+ png? ( >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}] )
+ webready? (
+ net-libs/libssh[${MULTILIB_USEDEP}]
+ net-misc/curl[${MULTILIB_USEDEP}]
+ )
+ xmp? ( >=dev-libs/expat-2.1.0-r3[${MULTILIB_USEDEP}] )
+"
+
+DEPEND="${RDEPEND}
+ doc? (
+ app-doc/doxygen
+ dev-libs/libxslt
+ media-gfx/graphviz
+ virtual/pkgconfig
+ ${PYTHON_DEPS}
+ )
+ nls? ( sys-devel/gettext )
+"
+
+DOCS=( README doc/ChangeLog doc/cmd.txt )
+
+PATCHES=(
+ "${FILESDIR}"/${P}-cmake{1,2,3,4,5,6,7}.patch
+ "${FILESDIR}"/${P}-CVE-2017-9239.patch
+ # TODO: Take to upstream
+ "${FILESDIR}"/${P}-fix-docs.patch
+ "${FILESDIR}"/${P}-tools-optional.patch
+)
+
+pkg_setup() {
+ use doc && python-any-r1_pkg_setup
+}
+
+src_unpack() {
+ # FIXME @upstream: MacOS cruft is breaking the buildsystem, so don't let it in...
+ tar -C "${WORKDIR}" --exclude=.* -xpf "${DISTDIR}/${A}" --gz 2> /dev/null ||
+ elog "${my_tar}: tar extract command failed at least partially - continuing"
+ mv "${PN}-trunk" "${S}" || die "Failed to create source dir ${S}"
+}
+
+src_prepare() {
+ if [[ ${PV} != *9999 ]] ; then
+ if [[ -d po ]] ; then
+ pushd po > /dev/null || die
+ local lang
+ for lang in *.po; do
+ if [[ -e ${lang} ]] && ! has ${lang/.po/} ${LINGUAS} ; then
+ case ${lang} in
+ CMakeLists.txt | \
+ ${PN}.pot) ;;
+ *) rm -r ${lang} || die ;;
+ esac
+ fi
+ done
+ popd > /dev/null || die
+ else
+ die "Failed to prepare LINGUAS - po directory moved?"
+ fi
+ fi
+
+ # FIXME @upstream:
+ einfo "Converting doc/cmd.txt to UTF-8"
+ iconv -f LATIN1 -t UTF-8 doc/cmd.txt > doc/cmd.txt.tmp || die
+ mv -f doc/cmd.txt.tmp doc/cmd.txt || die
+
+ if use doc; then
+ einfo "Updating doxygen config"
+ doxygen &>/dev/null -u config/Doxyfile || die
+ fi
+
+ cmake-utils_src_prepare
+}
+
+multilib_src_configure() {
+ local mycmakeargs=(
+ -DEXIV2_ENABLE_BUILD_PO=YES
+ -DEXIV2_ENABLE_BUILD_SAMPLES=NO
+ -DEXIV2_ENABLE_NLS=$(usex nls)
+ -DEXIV2_ENABLE_PNG=$(usex png)
+ -DEXIV2_ENABLE_CURL=$(usex webready)
+ -DEXIV2_ENABLE_SSH=$(usex webready)
+ -DEXIV2_ENABLE_WEBREADY=$(usex webready)
+ -DEXIV2_ENABLE_XMP=$(usex xmp)
+ -DEXIV2_ENABLE_LIBXMP=NO
+ $(multilib_is_native_abi || \
+ echo -DEXIV2_ENABLE_TOOLS=NO)
+ )
+
+ cmake-utils_src_configure
+}
+
+multilib_src_compile() {
+ cmake-utils_src_compile
+
+ if multilib_is_native_abi; then
+ use doc && emake -j1 doc
+ fi
+}
+
+multilib_src_install_all() {
+ use xmp && DOCS+=( doc/{COPYING-XMPSDK,README-XMP,cmdxmp.txt} )
+ use doc && HTML_DOCS=( "${S}"/doc/html/. )
+
+ einstalldocs
+ find "${D}" -name '*.la' -delete || die
+
+ if use examples; then
+ docinto examples
+ dodoc samples/*.cpp
+ fi
+}
diff --git a/media-gfx/exiv2/files/exiv2-0.25-fix-docs.patch b/media-gfx/exiv2/files/exiv2-0.25-fix-docs.patch
new file mode 100644
index 000000000000..e2bf677b5125
--- /dev/null
+++ b/media-gfx/exiv2/files/exiv2-0.25-fix-docs.patch
@@ -0,0 +1,71 @@
+--- a/CMakeLists.txt 2015-07-19 16:04:35.363628707 +0200
++++ b/CMakeLists.txt 2015-07-19 16:28:31.051680136 +0200
+@@ -216,9 +216,7 @@
+ ADD_SUBDIRECTORY( xmpsdk )
+ ADD_SUBDIRECTORY( src )
+
+-IF( EXIV2_ENABLE_BUILD_SAMPLES )
+- ADD_SUBDIRECTORY( samples )
+-ENDIF( EXIV2_ENABLE_BUILD_SAMPLES )
++ADD_SUBDIRECTORY( samples )
+
+ IF( EXIV2_ENABLE_BUILD_PO )
+ ADD_SUBDIRECTORY( po )
+--- a/samples/CMakeLists.txt 2015-07-19 16:04:35.360628744 +0200
++++ b/samples/CMakeLists.txt 2015-07-19 16:30:46.415987850 +0200
+@@ -20,7 +20,11 @@
+ endif()
+ include_directories("${CMAKE_SOURCE_DIR}/include" "${CMAKE_SOURCE_DIR}/src")
+
+-SET( SAMPLES addmoddel.cpp
++SET( SAMPLES taglist.cpp )
++
++IF( EXIV2_ENABLE_BUILD_SAMPLES )
++ SET( SAMPLES ${SAMPLES}
++ addmoddel.cpp
+ convert-test.cpp
+ easyaccess-test.cpp
+ exifcomment.cpp
+@@ -38,7 +42,6 @@
+ mmap-test.cpp
+ prevtest.cpp
+ stringto-test.cpp
+- taglist.cpp
+ tiff-test.cpp
+ werror-test.cpp
+ write-test.cpp
+@@ -47,6 +50,7 @@
+ xmpparser-test.cpp
+ xmpsample.cpp
+ )
++ENDIF()
+
+ FOREACH(entry ${SAMPLES})
+ STRING( REPLACE ".cpp" "" target ${entry})
+@@ -63,6 +67,7 @@
+ SET( MC_SRC ${MC_SRC} ../src/getopt_win32.c )
+ ENDIF( MSVC )
+
++IF( EXIV2_ENABLE_BUILD_SAMPLES )
+ SET( MC_SRC ${MC_SRC} metacopy.cpp ../src/utils.cpp )
+ ADD_EXECUTABLE( metacopy ${MC_SRC} )
+ TARGET_LINK_LIBRARIES( metacopy exiv2lib )
+@@ -79,6 +84,7 @@
+ SET_TARGET_PROPERTIES( exiv2json PROPERTIES OUTPUT_NAME exiv2json )
+ TARGET_LINK_LIBRARIES( exiv2json exiv2lib )
+ INSTALL( TARGETS exiv2json ${INSTALL_TARGET_STANDARD_ARGS} )
++ENDIF()
+
+ # That's all Folks!
+ ##
+--- a/doc/templates/Makefile 2015-07-19 16:50:50.589933604 +0200
++++ b/doc/templates/Makefile 2015-07-19 16:51:07.686719864 +0200
+@@ -143,7 +143,7 @@
+ xmp_mwg-rs \
+ xmp_mwg-kw
+
+-TAGLIST = ../../bin/taglist
++TAGLIST = ../../src/bin/taglist
+
+ # **********************************************************************
+ # ======================================================================
diff --git a/media-gfx/exiv2/files/exiv2-0.25-fix-install-dirs.patch b/media-gfx/exiv2/files/exiv2-0.25-fix-install-dirs.patch
new file mode 100644
index 000000000000..bca79dd4d471
--- /dev/null
+++ b/media-gfx/exiv2/files/exiv2-0.25-fix-install-dirs.patch
@@ -0,0 +1,64 @@
+USE GNUInstallDirs to fix man page and multilib install
+
+See also: http://dev.exiv2.org/issues/1125
+Patch based on: http://pkgs.fedoraproject.org/cgit/exiv2.git/tree/exiv2-0.25-cmake_LIB_SUFFIX.patch
+
+--- b/config/CMakeChecks.txt 2015-07-19 14:23:11.606686135 +0200
++++ b/config/CMakeChecks.txt 2015-06-22 08:41:22.913094633 -0500
+@@ -37,6 +37,8 @@
+ INCLUDE( CheckCSourceCompiles )
+ INCLUDE( CheckCXXSourceCompiles )
+
++INCLUDE( GNUInstallDirs )
++
+ INCLUDE( FindIconv )
+
+ SET( STDC_HEADERS ON )
+@@ -289,9 +291,9 @@
+
+ IF( NOT MSVC )
+ CONFIGURE_FILE( config/exiv2.pc.cmake ${CMAKE_CURRENT_BINARY_DIR}/exiv2.pc @ONLY )
+- INSTALL( FILES ${CMAKE_CURRENT_BINARY_DIR}/exiv2.pc DESTINATION lib/pkgconfig )
++ INSTALL( FILES ${CMAKE_CURRENT_BINARY_DIR}/exiv2.pc DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig )
+ CONFIGURE_FILE( config/exiv2.lsm.cmake ${CMAKE_CURRENT_BINARY_DIR}/exiv2.lsm)
+- INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/exiv2.lsm DESTINATION lib/pkgconfig )
++ INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/exiv2.lsm DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig )
+ ENDIF( NOT MSVC )
+
+ # ******************************************************************************
+--- a/src/CMakeLists.txt 2015-07-19 14:06:54.104906589 +0200
++++ b/src/CMakeLists.txt 2015-07-19 14:12:37.982607526 +0200
+@@ -321,7 +321,7 @@
+
+ # ******************************************************************************
+ # Man page
+-INSTALL( FILES exiv2.1 DESTINATION man/man1 )
++INSTALL( FILES exiv2.1 DESTINATION ${CMAKE_INSTALL_MANDIR}/man1 )
+
+ # That's all Folks!
+ ##
+--- a/CMakeLists.txt 2015-06-15 10:32:21.000000000 -0500
++++ b/CMakeLists.txt 2015-06-22 08:48:19.486245765 -0500
+@@ -25,7 +25,7 @@ if( POLICY CMP0042 )
+ else()
+ SET(CMAKE_MACOSX_RPATH 1)
+ endif()
+-SET(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib")
++#SET(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}")
+
+
+ SET( PACKAGE_COPYRIGHT "Andreas Huggel" )
+@@ -156,10 +156,10 @@ INCLUDE( config/CMakeChecks.txt )
+
+ SET( INSTALL_TARGET_STANDARD_ARGS
+ RUNTIME DESTINATION bin
+- LIBRARY DESTINATION lib
+- ARCHIVE DESTINATION lib
++ LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
++ ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
+ )
+-SET(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib")
++#SET(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}")
+
+ ##
+ # add sources from XMPSDK directory
diff --git a/media-gfx/exiv2/files/exiv2-0.25-fix-without-zlib.patch b/media-gfx/exiv2/files/exiv2-0.25-fix-without-zlib.patch
new file mode 100644
index 000000000000..c6d435d68bb8
--- /dev/null
+++ b/media-gfx/exiv2/files/exiv2-0.25-fix-without-zlib.patch
@@ -0,0 +1,22 @@
+Fix exiv2.hpp if built with PNG support disabled (--without-zlib)
+
+Fixed upstream in >=0.26
+
+See also: http://dev.exiv2.org/issues/1103
+Gentoo bug 1: https://bugs.gentoo.org/show_bug.cgi?id=552046
+Gentoo bug 2: https://bugs.gentoo.org/show_bug.cgi?id=535836
+
+Index: exiv2.hpp
+===================================================================
+--- a/include/exiv2/exiv2.hpp (revision 3887)
++++ b/include/exiv2/exiv2.hpp (revision 3888)
+@@ -52,7 +52,9 @@
+ #include "mrwimage.hpp"
+ #include "orfimage.hpp"
+ #include "pgfimage.hpp"
++#ifdef EXV_HAVE_LIBZ
+ #include "pngimage.hpp"
++#endif
+ #include "preview.hpp"
+ #include "properties.hpp"
+ #include "psdimage.hpp"
diff --git a/media-gfx/exiv2/files/exiv2-0.25-fvisibility-hidden.patch b/media-gfx/exiv2/files/exiv2-0.25-fvisibility-hidden.patch
new file mode 100644
index 000000000000..26c5c1d39d74
--- /dev/null
+++ b/media-gfx/exiv2/files/exiv2-0.25-fvisibility-hidden.patch
@@ -0,0 +1,19 @@
+Index: CMakeLists.txt
+===================================================================
+--- a/xmpsdk/CMakeLists.txt (revision 3974)
++++ b/xmpsdk/CMakeLists.txt (revision 3975)
+@@ -20,6 +20,14 @@
+ ENDIF(NOT MSVC AND NOT CYGWIN AND NOT MSYS)
+ ENDFOREACH()
+
++if(NOT MSVC)
++ # http://stackoverflow.com/questions/10046114/in-cmake-how-can-i-test-if-the-compiler-is-clang
++ if ( NOT "${CMAKE_CXX_COMPILER_ID}" MATCHES "AppleClang")
++ # 1123 - hide xmpsdk symbols
++ add_definitions( -fvisibility=hidden -fvisibility-inlines-hidden )
++ endif()
++endif()
++
+ IF( EXIV2_ENABLE_XMP AND EXIV2_ENABLE_LIBXMP )
+ ADD_LIBRARY( xmp STATIC ${XMPSRC} )
+ GET_TARGET_PROPERTY( XMPLIB xmp LOCATION )
diff --git a/media-gfx/exiv2/files/exiv2-0.25-hide-symbols.patch b/media-gfx/exiv2/files/exiv2-0.25-hide-symbols.patch
new file mode 100644
index 000000000000..7c8613db5e82
--- /dev/null
+++ b/media-gfx/exiv2/files/exiv2-0.25-hide-symbols.patch
@@ -0,0 +1,97 @@
+Index: a/samples/CMakeLists.txt
+===================================================================
+--- a/samples/CMakeLists.txt (revision 3972)
++++ b/samples/CMakeLists.txt (revision 3973)
+@@ -52,7 +52,7 @@
+ STRING( REPLACE ".cpp" "" target ${entry})
+ ADD_EXECUTABLE( ${target} ${target}.cpp )
+ ADD_TEST( ${target}_test ${target} )
+- TARGET_LINK_LIBRARIES( ${target} exiv2lib )
++ TARGET_LINK_LIBRARIES( ${target} PRIVATE exiv2lib ${EXPAT_LIBRARIES})
+ #INSTALL( TARGETS ${target} ${INSTALL_TARGET_STANDARD_ARGS} )
+ ENDFOREACH(entry ${SAMPLES})
+
+Index: a/src/CMakeLists.txt
+===================================================================
+--- a/src/CMakeLists.txt (revision 3972)
++++ b/src/CMakeLists.txt (revision 3973)
+@@ -240,20 +240,20 @@
+
+ if ( MSVC )
+ source_group("Header Files" FILES ${LIBEXIV2_HDR} )
+- TARGET_LINK_LIBRARIES( exiv2lib ${EXPAT_LIBRARIES} )
++ TARGET_LINK_LIBRARIES( exiv2lib PRIVATE ${EXPAT_LIBRARIES} )
+ source_group("Header Files" FILES ${LIBCURL_HDR} )
+- TARGET_LINK_LIBRARIES( exiv2lib ${CURL_LIBRARIES} )
++ TARGET_LINK_LIBRARIES( exiv2lib PRIVATE ${CURL_LIBRARIES} )
+ source_group("Header Files" FILES ${SSH_HDR} )
+- TARGET_LINK_LIBRARIES( exiv2lib ${SSH_LIBRARIES} )
++ TARGET_LINK_LIBRARIES( exiv2lib PRIVATE ${SSH_LIBRARIES} )
+ else()
+ if ( NOT MINGW )
+- TARGET_LINK_LIBRARIES( exiv2lib dl ${EXPAT_LIBRARIES} )
+- TARGET_LINK_LIBRARIES( exiv2lib dl ${CURL_LIBRARIES} )
+- TARGET_LINK_LIBRARIES( exiv2lib dl ${SSH_LIBRARIES} )
++ TARGET_LINK_LIBRARIES( exiv2lib PRIVATE dl ${EXPAT_LIBRARIES} )
++ TARGET_LINK_LIBRARIES( exiv2lib PRIVATE dl ${CURL_LIBRARIES} )
++ TARGET_LINK_LIBRARIES( exiv2lib PRIVATE dl ${SSH_LIBRARIES} )
+ else()
+- TARGET_LINK_LIBRARIES( exiv2lib ${EXPAT_LIBRARIES} )
+- TARGET_LINK_LIBRARIES( exiv2lib ${CURL_LIBRARIES} )
+- TARGET_LINK_LIBRARIES( exiv2lib ${SSH_LIBRARIES} )
++ TARGET_LINK_LIBRARIES( exiv2lib PRIVATE ${EXPAT_LIBRARIES} )
++ TARGET_LINK_LIBRARIES( exiv2lib PRIVATE ${CURL_LIBRARIES} )
++ TARGET_LINK_LIBRARIES( exiv2lib PRIVATE ${SSH_LIBRARIES} )
+ endif()
+ endif()
+
+@@ -262,33 +262,33 @@
+ if ( MSVC )
+ LINK_DIRECTORIES(${LIBRARY_OUTPUT_PATH}/$(ConfigurationName))
+ endif(MSVC)
+- TARGET_LINK_LIBRARIES( exiv2lib xmp )
++ TARGET_LINK_LIBRARIES( exiv2lib PRIVATE xmp )
+ ENDIF()
+
+ IF( EXIV2_ENABLE_PNG )
+ IF( ZLIB_FOUND )
+ IF( MSVC )
+ if ( EXIV2_ENABLE_SHARED )
+- TARGET_LINK_LIBRARIES( exiv2lib optimized ${ZLIB_LIBRARIES} debug ${ZLIB_LIBRARIES}d )
++ TARGET_LINK_LIBRARIES( exiv2lib PRIVATE optimized ${ZLIB_LIBRARIES}.lib debug ${ZLIB_LIBRARIES}d.lib )
+ else()
+- TARGET_LINK_LIBRARIES( exiv2lib optimized zlibstatic.lib debug zlibstaticd.lib )
++ TARGET_LINK_LIBRARIES( exiv2lib PRIVATE optimized zlibstatic.lib debug zlibstaticd.lib )
+ endif()
+ ELSE()
+- TARGET_LINK_LIBRARIES( exiv2lib ${ZLIB_LIBRARIES} )
++ TARGET_LINK_LIBRARIES( exiv2lib PRIVATE ${ZLIB_LIBRARIES} )
+ ENDIF()
+ ENDIF()
+ ENDIF()
+
+ IF( EXIV2_ENABLE_NLS )
+- TARGET_LINK_LIBRARIES( exiv2lib ${LIBINTL_LIBRARIES} )
++ TARGET_LINK_LIBRARIES( exiv2lib PRIVATE ${LIBINTL_LIBRARIES} )
+ ENDIF( EXIV2_ENABLE_NLS )
+
+ IF( ICONV_FOUND )
+- TARGET_LINK_LIBRARIES( exiv2lib ${ICONV_LIBRARIES} )
++ TARGET_LINK_LIBRARIES( exiv2lib PRIVATE ${ICONV_LIBRARIES} )
+ ENDIF( ICONV_FOUND )
+
+ IF (CYGWIN OR MINGW)
+- TARGET_LINK_LIBRARIES( exiv2lib psapi )
++ TARGET_LINK_LIBRARIES( exiv2lib PRIVATE psapi )
+ ENDIF(CYGWIN OR MINGW)
+
+
+@@ -303,7 +303,7 @@
+ # ******************************************************************************
+ # connection test application
+ ADD_EXECUTABLE( conntest ${CONNTEST} )
+-TARGET_LINK_LIBRARIES( conntest exiv2lib )
++TARGET_LINK_LIBRARIES( conntest PRIVATE exiv2lib ${CURL_LIBRARIES} ${SSH_LIBRARIES})
+
+ # ******************************************************************************
+ # exifprint application
diff --git a/media-gfx/exiv2/files/exiv2-0.25-tools-optional.patch b/media-gfx/exiv2/files/exiv2-0.25-tools-optional.patch
new file mode 100644
index 000000000000..2bb030a4c4f2
--- /dev/null
+++ b/media-gfx/exiv2/files/exiv2-0.25-tools-optional.patch
@@ -0,0 +1,27 @@
+--- a/CMakeLists.txt 2015-06-15 17:32:21.000000000 +0200
++++ b/CMakeLists.txt 2015-10-04 14:37:05.319679836 +0200
+@@ -55,6 +55,7 @@
+ OPTION( EXIV2_ENABLE_WEBREADY "Build webready support into library" OFF )
+ OPTION( EXIV2_ENABLE_CURL "USE Libcurl for HttpIo" ON )
+ OPTION( EXIV2_ENABLE_SSH "USE Libssh for SshIo" ON )
++OPTION( EXIV2_ENABLE_TOOLS "Build exiv2 executable" ON )
+
+ IF( MINGW OR UNIX )
+ IF ( CMAKE_CXX_COMPILER STREQUAL "g++" OR CMAKE_C_COMPILER STREQUAL "gcc" )
+--- a/src/CMakeLists.txt 2015-06-14 11:12:19.000000000 +0200
++++ b/src/CMakeLists.txt 2015-10-04 14:33:27.784399402 +0200
+@@ -296,9 +296,11 @@
+
+ # ******************************************************************************
+ # exiv2 application
+-ADD_EXECUTABLE( exiv2 ${EXIV2_SRC} )
+-TARGET_LINK_LIBRARIES( exiv2 exiv2lib )
+-INSTALL( TARGETS exiv2 ${INSTALL_TARGET_STANDARD_ARGS} )
++IF( EXIV2_ENABLE_TOOLS )
++ ADD_EXECUTABLE( exiv2 ${EXIV2_SRC} )
++ TARGET_LINK_LIBRARIES( exiv2 exiv2lib )
++ INSTALL( TARGETS exiv2 ${INSTALL_TARGET_STANDARD_ARGS} )
++ENDIF( EXIV2_ENABLE_TOOLS )
+
+ # ******************************************************************************
+ # connection test application
diff --git a/media-gfx/exiv2/files/exiv2-0.26-CVE-2017-9239.patch b/media-gfx/exiv2/files/exiv2-0.26-CVE-2017-9239.patch
new file mode 100644
index 000000000000..2a3e20c9fac2
--- /dev/null
+++ b/media-gfx/exiv2/files/exiv2-0.26-CVE-2017-9239.patch
@@ -0,0 +1,22 @@
+From 2f8681e120d277e418941c4361c83b5028f67fd8 Mon Sep 17 00:00:00 2001
+From: clanmills <robin@clanmills.com>
+Date: Sat, 27 May 2017 10:18:17 +0100
+Subject: [PATCH] #1296 Fix submitted.
+
+---
+ src/tiffcomposite.cpp | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/src/tiffcomposite.cpp b/src/tiffcomposite.cpp
+index c6b860d8..0c9b9c4a 100644
+--- a/src/tiffcomposite.cpp
++++ b/src/tiffcomposite.cpp
+@@ -1611,6 +1611,8 @@ namespace Exiv2 {
+ uint32_t TiffImageEntry::doWriteImage(IoWrapper& ioWrapper,
+ ByteOrder /*byteOrder*/) const
+ {
++ if ( !pValue() ) throw Error(21); // #1296
++
+ uint32_t len = pValue()->sizeDataArea();
+ if (len > 0) {
+ #ifdef DEBUG
diff --git a/media-gfx/exiv2/files/exiv2-0.26-cmake1.patch b/media-gfx/exiv2/files/exiv2-0.26-cmake1.patch
new file mode 100644
index 000000000000..672017e404b6
--- /dev/null
+++ b/media-gfx/exiv2/files/exiv2-0.26-cmake1.patch
@@ -0,0 +1,22 @@
+From d5ae1a7502cc3a19f2ca45f5f17f1ee8fc6ad979 Mon Sep 17 00:00:00 2001
+From: Timo Gurr <timo.gurr@gmail.com>
+Date: Tue, 30 May 2017 20:25:28 +0200
+Subject: [PATCH] Use CMAKE_INSTALL_LOCALEDIR
+
+---
+ config/CMakeChecks.txt | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/config/CMakeChecks.txt b/config/CMakeChecks.txt
+index 77922930..b3a888f2 100644
+--- a/config/CMakeChecks.txt
++++ b/config/CMakeChecks.txt
+@@ -98,7 +98,7 @@ IF( EXIV2_ENABLE_NLS )
+ #FIND_PACKAGE(Intl REQUIRED)
+ #INCLUDE_DIRECTORIES(${Intl_INCLUDE_DIRS})
+ IF( NOT LOCALEDIR )
+- SET( LOCALEDIR "${CMAKE_INSTALL_PREFIX}/share/locale" )
++ SET( LOCALEDIR "${CMAKE_INSTALL_LOCALEDIR}" )
+ IF( WIN32 )
+ STRING( REPLACE "/" "\\\\" LOCALEDIR ${LOCALEDIR} )
+ ENDIF( WIN32 )
diff --git a/media-gfx/exiv2/files/exiv2-0.26-cmake2.patch b/media-gfx/exiv2/files/exiv2-0.26-cmake2.patch
new file mode 100644
index 000000000000..76a194424866
--- /dev/null
+++ b/media-gfx/exiv2/files/exiv2-0.26-cmake2.patch
@@ -0,0 +1,65 @@
+From 3af0d1a6b2c12b7f62a293d19bdf235db75d6b07 Mon Sep 17 00:00:00 2001
+From: Bernd Kuhls <bernd.kuhls@t-online.de>
+Date: Sat, 3 Jun 2017 17:18:24 +0200
+Subject: [PATCH] cmake: fix gettext support
+
+Building exiv2 with uclibc and gettext fails currently as detected
+by the buildroot autobuilders:
+http://autobuild.buildroot.net/results/def/defcdd3dd57b031c31bb16c0075f079a482bf52d/build-end.log
+---
+ config/CMakeChecks.txt | 12 ++++++++++--
+ src/CMakeLists.txt | 6 +++---
+ 2 files changed, 13 insertions(+), 5 deletions(-)
+
+diff --git a/config/CMakeChecks.txt b/config/CMakeChecks.txt
+index b3a888f2..f7621a92 100644
+--- a/config/CMakeChecks.txt
++++ b/config/CMakeChecks.txt
+@@ -95,8 +95,16 @@ ELSE( EXIV2_ENABLE_SHARED )
+ ENDIF( EXIV2_ENABLE_SHARED )
+
+ IF( EXIV2_ENABLE_NLS )
+- #FIND_PACKAGE(Intl REQUIRED)
+- #INCLUDE_DIRECTORIES(${Intl_INCLUDE_DIRS})
++ FIND_PACKAGE(Intl)
++ if(Intl_FOUND)
++ INCLUDE_DIRECTORIES(${Intl_INCLUDE_DIRS})
++ find_library(LIBINTL_LIBRARY NAMES intl libintl)
++ if(libintl_FOUND)
++ SET(LIBINTL_LIBRARIES ${LIBINTL_LIBRARY})
++ else(libintl_FOUND)
++ SET(LIBINTL_LIBRARIES)
++ endif()
++ endif()
+ IF( NOT LOCALEDIR )
+ SET( LOCALEDIR "${CMAKE_INSTALL_LOCALEDIR}" )
+ IF( WIN32 )
+diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
+index aecd6215..e2904c6f 100644
+--- a/src/CMakeLists.txt
++++ b/src/CMakeLists.txt
+@@ -316,13 +316,13 @@ msvc_runtime_configure(${EXIV2_ENABLE_SHARED} ${EXIV2_ENABLE_DYNAMIC_RUNTIME})
+ # ******************************************************************************
+ # exiv2 application
+ ADD_EXECUTABLE( exiv2 ${EXIV2_SRC} ${EXIV2_HDR} )
+-TARGET_LINK_LIBRARIES( exiv2 exiv2lib )
++TARGET_LINK_LIBRARIES( exiv2 exiv2lib ${LIBINTL_LIBRARIES} )
+ INSTALL( TARGETS exiv2 ${INSTALL_TARGET_STANDARD_ARGS} )
+
+ # ******************************************************************************
+ # connection test application
+ ADD_EXECUTABLE( conntest ${CONNTEST} )
+-TARGET_LINK_LIBRARIES( conntest ${PRIVATE_VAR} exiv2lib ${CURL_LIBRARIES} ${SSH_LIBRARIES})
++TARGET_LINK_LIBRARIES( conntest ${PRIVATE_VAR} exiv2lib ${CURL_LIBRARIES} ${SSH_LIBRARIES} ${LIBINTL_LIBRARIES} )
+
+ # ******************************************************************************
+ # exifprint application
+@@ -332,7 +332,7 @@ TARGET_LINK_LIBRARIES( conntest ${PRIVATE_VAR} exiv2lib ${CURL_LIBRARIES} ${SSH
+ # ******************************************************************************
+ # remotetest application
+ ADD_EXECUTABLE( remotetest ${REMOTETEST} )
+-TARGET_LINK_LIBRARIES( remotetest exiv2lib )
++TARGET_LINK_LIBRARIES( remotetest exiv2lib ${LIBINTL_LIBRARIES} )
+
+ # ******************************************************************************
+ # Headers
diff --git a/media-gfx/exiv2/files/exiv2-0.26-cmake3.patch b/media-gfx/exiv2/files/exiv2-0.26-cmake3.patch
new file mode 100644
index 000000000000..7a78d1c8bd86
--- /dev/null
+++ b/media-gfx/exiv2/files/exiv2-0.26-cmake3.patch
@@ -0,0 +1,53 @@
+From 8af901ce05aeeaa4f5033da99670091f857d5931 Mon Sep 17 00:00:00 2001
+From: Bernd Kuhls <bernd.kuhls@t-online.de>
+Date: Sat, 3 Jun 2017 18:25:05 +0200
+Subject: [PATCH] cmake: always depend on threads, not only in the xmp case
+
+---
+ CMakeLists.txt | 1 -
+ config/CMakeChecks.txt | 2 ++
+ src/CMakeLists.txt | 2 ++
+ 3 files changed, 4 insertions(+), 1 deletion(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 7034bb67..64604c6f 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -120,7 +120,6 @@ IF( EXIV2_ENABLE_XMP )
+ IF (NOT MINGW)
+ set(THREADS_PREFER_PTHREAD_FLAG ON)
+ ENDIF()
+- find_package(Threads REQUIRED)
+ ENDIF( EXIV2_ENABLE_XMP )
+
+ INCLUDE( config/CMakeChecks.txt )
+diff --git a/config/CMakeChecks.txt b/config/CMakeChecks.txt
+index f7621a92..0dfe96b7 100644
+--- a/config/CMakeChecks.txt
++++ b/config/CMakeChecks.txt
+@@ -51,6 +51,8 @@ INCLUDE_DIRECTORIES( ${CMAKE_INCLUDE_PATH} ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_C
+ LINK_DIRECTORIES( ${CMAKE_LIBRARY_PATH} )
+ SET( CMAKE_REQUIRED_INCLUDES ${CMAKE_INCLUDE_PATH} )
+
++find_package(Threads REQUIRED)
++
+ IF( EXIV2_ENABLE_PNG )
+ FIND_PACKAGE( ZLIB REQUIRED )
+ INCLUDE_DIRECTORIES( ${ZLIB_INCLUDE_DIR} )
+diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
+index e2904c6f..dcfb37e1 100644
+--- a/src/CMakeLists.txt
++++ b/src/CMakeLists.txt
+@@ -268,10 +268,12 @@ else()
+ TARGET_LINK_LIBRARIES( exiv2lib ${PRIVATE_VAR} dl ${EXPAT_LIBRARIES} )
+ TARGET_LINK_LIBRARIES( exiv2lib ${PRIVATE_VAR} dl ${CURL_LIBRARIES} )
+ TARGET_LINK_LIBRARIES( exiv2lib ${PRIVATE_VAR} dl ${SSH_LIBRARIES} )
++ TARGET_LINK_LIBRARIES( exiv2lib ${PRIVATE_VAR} dl ${CMAKE_THREAD_LIBS_INIT} )
+ else()
+ TARGET_LINK_LIBRARIES( exiv2lib ${PRIVATE_VAR} ${EXPAT_LIBRARIES} )
+ TARGET_LINK_LIBRARIES( exiv2lib ${PRIVATE_VAR} ${CURL_LIBRARIES} )
+ TARGET_LINK_LIBRARIES( exiv2lib ${PRIVATE_VAR} ${SSH_LIBRARIES} )
++ TARGET_LINK_LIBRARIES( exiv2lib ${PRIVATE_VAR} ${CMAKE_THREAD_LIBS_INIT} )
+ endif()
+ endif()
+
diff --git a/media-gfx/exiv2/files/exiv2-0.26-cmake4.patch b/media-gfx/exiv2/files/exiv2-0.26-cmake4.patch
new file mode 100644
index 000000000000..3824a5740005
--- /dev/null
+++ b/media-gfx/exiv2/files/exiv2-0.26-cmake4.patch
@@ -0,0 +1,24 @@
+From 23ac3eeced6a4de0d34ae162ac7784ab9b7e4310 Mon Sep 17 00:00:00 2001
+From: clanmills <robin@clanmills.com>
+Date: Sat, 3 Jun 2017 20:58:08 +0100
+Subject: [PATCH] #7 Fix for libintl
+
+---
+ config/CMakeChecks.txt | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/config/CMakeChecks.txt b/config/CMakeChecks.txt
+index 0dfe96b7..8c88aa27 100644
+--- a/config/CMakeChecks.txt
++++ b/config/CMakeChecks.txt
+@@ -103,8 +103,8 @@ IF( EXIV2_ENABLE_NLS )
+ find_library(LIBINTL_LIBRARY NAMES intl libintl)
+ if(libintl_FOUND)
+ SET(LIBINTL_LIBRARIES ${LIBINTL_LIBRARY})
+- else(libintl_FOUND)
+- SET(LIBINTL_LIBRARIES)
++ else()
++ SET(LIBINTL_LIBRARIES -lintl)
+ endif()
+ endif()
+ IF( NOT LOCALEDIR )
diff --git a/media-gfx/exiv2/files/exiv2-0.26-cmake5.patch b/media-gfx/exiv2/files/exiv2-0.26-cmake5.patch
new file mode 100644
index 000000000000..0df4a19689fb
--- /dev/null
+++ b/media-gfx/exiv2/files/exiv2-0.26-cmake5.patch
@@ -0,0 +1,33 @@
+From 4e86c1d61c4b8ab2cbbb31db0031b8e1d1872231 Mon Sep 17 00:00:00 2001
+From: clanmills <robin@clanmills.com>
+Date: Sun, 4 Jun 2017 07:41:03 +0100
+Subject: [PATCH] Fix https://github.com/Exiv2/exiv2/pull/6 for
+ Linux/Cygwin/MacOSX
+
+---
+ config/CMakeChecks.txt | 7 +++++--
+ 1 file changed, 5 insertions(+), 2 deletions(-)
+
+diff --git a/config/CMakeChecks.txt b/config/CMakeChecks.txt
+index 8c88aa27..e6100c0f 100644
+--- a/config/CMakeChecks.txt
++++ b/config/CMakeChecks.txt
+@@ -98,13 +98,16 @@ ENDIF( EXIV2_ENABLE_SHARED )
+
+ IF( EXIV2_ENABLE_NLS )
+ FIND_PACKAGE(Intl)
+- if(Intl_FOUND)
++ if(Intl_FOUND AND NOT MSVC)
+ INCLUDE_DIRECTORIES(${Intl_INCLUDE_DIRS})
+ find_library(LIBINTL_LIBRARY NAMES intl libintl)
+ if(libintl_FOUND)
+ SET(LIBINTL_LIBRARIES ${LIBINTL_LIBRARY})
+ else()
+- SET(LIBINTL_LIBRARIES -lintl)
++ SET(LIBINTL_LIBRARIES)
++ if ( APPLE OR CYGWIN )
++ SET(LIBINTL_LIBRARIES -lintl)
++ endif()
+ endif()
+ endif()
+ IF( NOT LOCALEDIR )
diff --git a/media-gfx/exiv2/files/exiv2-0.26-cmake6.patch b/media-gfx/exiv2/files/exiv2-0.26-cmake6.patch
new file mode 100644
index 000000000000..105b5889fea6
--- /dev/null
+++ b/media-gfx/exiv2/files/exiv2-0.26-cmake6.patch
@@ -0,0 +1,27 @@
+From 88cf58613ffde4c907011bea82f61daae6006c3c Mon Sep 17 00:00:00 2001
+From: clanmills <robin@clanmills.com>
+Date: Sun, 4 Jun 2017 09:07:14 +0100
+Subject: [PATCH] #8 Adding INCLUDE_DIRECTORIES(${Intl_INCLUDE_DIRS})
+
+---
+ config/CMakeChecks.txt | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/config/CMakeChecks.txt b/config/CMakeChecks.txt
+index e6100c0f..b90d4fde 100644
+--- a/config/CMakeChecks.txt
++++ b/config/CMakeChecks.txt
+@@ -102,11 +102,12 @@ IF( EXIV2_ENABLE_NLS )
+ INCLUDE_DIRECTORIES(${Intl_INCLUDE_DIRS})
+ find_library(LIBINTL_LIBRARY NAMES intl libintl)
+ if(libintl_FOUND)
++ INCLUDE_DIRECTORIES(${Intl_INCLUDE_DIRS})
+ SET(LIBINTL_LIBRARIES ${LIBINTL_LIBRARY})
+ else()
+ SET(LIBINTL_LIBRARIES)
+ if ( APPLE OR CYGWIN )
+- SET(LIBINTL_LIBRARIES -lintl)
++ SET(LIBINTL_LIBRARIES -lintl)
+ endif()
+ endif()
+ endif()
diff --git a/media-gfx/exiv2/files/exiv2-0.26-cmake7.patch b/media-gfx/exiv2/files/exiv2-0.26-cmake7.patch
new file mode 100644
index 000000000000..0eff32a80d57
--- /dev/null
+++ b/media-gfx/exiv2/files/exiv2-0.26-cmake7.patch
@@ -0,0 +1,38 @@
+From 15e0b9052eacd3438c8b39bf3fdda5da69ec068a Mon Sep 17 00:00:00 2001
+From: Bernd Kuhls <bernd.kuhls@t-online.de>
+Date: Sun, 4 Jun 2017 10:13:14 +0200
+Subject: [PATCH] cmake: simplify libintl check
+
+According to https://cmake.org/cmake/help/v3.4/module/FindIntl.html
+the FindIntl module already checks for libintl.so.
+---
+ config/CMakeChecks.txt | 15 ++++-----------
+ 1 file changed, 4 insertions(+), 11 deletions(-)
+
+diff --git a/config/CMakeChecks.txt b/config/CMakeChecks.txt
+index b90d4fde..0cd28ec7 100644
+--- a/config/CMakeChecks.txt
++++ b/config/CMakeChecks.txt
+@@ -98,18 +98,11 @@ ENDIF( EXIV2_ENABLE_SHARED )
+
+ IF( EXIV2_ENABLE_NLS )
+ FIND_PACKAGE(Intl)
+- if(Intl_FOUND AND NOT MSVC)
++ if(Intl_FOUND)
+ INCLUDE_DIRECTORIES(${Intl_INCLUDE_DIRS})
+- find_library(LIBINTL_LIBRARY NAMES intl libintl)
+- if(libintl_FOUND)
+- INCLUDE_DIRECTORIES(${Intl_INCLUDE_DIRS})
+- SET(LIBINTL_LIBRARIES ${LIBINTL_LIBRARY})
+- else()
+- SET(LIBINTL_LIBRARIES)
+- if ( APPLE OR CYGWIN )
+- SET(LIBINTL_LIBRARIES -lintl)
+- endif()
+- endif()
++ SET(LIBINTL_LIBRARIES ${Intl_LIBRARIES})
++ else()
++ SET(LIBINTL_LIBRARIES)
+ endif()
+ IF( NOT LOCALEDIR )
+ SET( LOCALEDIR "${CMAKE_INSTALL_LOCALEDIR}" )
diff --git a/media-gfx/exiv2/files/exiv2-0.26-fix-docs.patch b/media-gfx/exiv2/files/exiv2-0.26-fix-docs.patch
new file mode 100644
index 000000000000..a88867173df7
--- /dev/null
+++ b/media-gfx/exiv2/files/exiv2-0.26-fix-docs.patch
@@ -0,0 +1,70 @@
+--- a/CMakeLists.txt 2015-07-19 16:04:35.363628707 +0200
++++ b/CMakeLists.txt 2015-07-19 16:28:31.051680136 +0200
+@@ -216,9 +216,7 @@
+ ADD_SUBDIRECTORY( xmpsdk )
+ ADD_SUBDIRECTORY( src )
+
+-IF( EXIV2_ENABLE_BUILD_SAMPLES )
+- ADD_SUBDIRECTORY( samples )
+-ENDIF( EXIV2_ENABLE_BUILD_SAMPLES )
++ADD_SUBDIRECTORY( samples )
+
+ IF( EXIV2_ENABLE_BUILD_PO )
+ ADD_SUBDIRECTORY( po )
+--- a/samples/CMakeLists.txt 2015-07-19 16:04:35.360628744 +0200
++++ b/samples/CMakeLists.txt 2015-07-19 16:30:46.415987850 +0200
+@@ -21,6 +21,10 @@
+ include_directories("${CMAKE_SOURCE_DIR}/include" "${CMAKE_SOURCE_DIR}/src")
+
+-SET( SAMPLES addmoddel.cpp
++SET( SAMPLES taglist.cpp )
++
++IF( EXIV2_ENABLE_BUILD_SAMPLES )
++ SET( SAMPLES ${SAMPLES}
++ addmoddel.cpp
+ convert-test.cpp
+ easyaccess-test.cpp
+ exifcomment.cpp
+@@ -38,7 +42,6 @@
+ mmap-test.cpp
+ prevtest.cpp
+ stringto-test.cpp
+- taglist.cpp
+ tiff-test.cpp
+ werror-test.cpp
+ write-test.cpp
+@@ -47,6 +50,7 @@
+ xmpparser-test.cpp
+ xmpsample.cpp
+ )
++ENDIF()
+
+ FOREACH(entry ${SAMPLES})
+ STRING( REPLACE ".cpp" "" target ${entry})
+@@ -63,6 +67,7 @@
+ SET( MC_SRC ${MC_SRC} ../src/getopt_win32.c )
+ ENDIF( MSVC )
+
++IF( EXIV2_ENABLE_BUILD_SAMPLES )
+ SET( MC_SRC ${MC_SRC} metacopy.cpp ../src/utils.cpp )
+ ADD_EXECUTABLE( metacopy ${MC_SRC} )
+ TARGET_LINK_LIBRARIES( metacopy exiv2lib )
+@@ -79,6 +84,7 @@
+ # ******************************************************************************
+ # Man page
+ INSTALL( FILES exiv2samples.1 DESTINATION ${CMAKE_INSTALL_MANDIR}/man1 )
++ENDIF()
+
+ # That's all Folks!
+ ##
+--- a/doc/templates/Makefile 2015-07-19 16:50:50.589933604 +0200
++++ b/doc/templates/Makefile 2015-07-19 16:51:07.686719864 +0200
+@@ -143,7 +143,7 @@
+ xmp_mwg-rs \
+ xmp_mwg-kw
+
+-TAGLIST = ../../bin/taglist
++TAGLIST = ../../src/bin/taglist
+
+ # **********************************************************************
+ # ======================================================================
diff --git a/media-gfx/exiv2/files/exiv2-0.26-tools-optional.patch b/media-gfx/exiv2/files/exiv2-0.26-tools-optional.patch
new file mode 100644
index 000000000000..045e9dc58f03
--- /dev/null
+++ b/media-gfx/exiv2/files/exiv2-0.26-tools-optional.patch
@@ -0,0 +1,27 @@
+--- a/CMakeLists.txt 2017-06-07 00:14:25.374608170 +0200
++++ b/CMakeLists.txt 2017-06-07 00:17:00.680483299 +0200
+@@ -60,6 +60,7 @@
+ OPTION( EXIV2_ENABLE_SSH "USE Libssh for SshIo" ON )
+ SET ( EXIV2_ENABLE_DYNAMIC_RUNTIME OFF )
+ ENDIF()
++OPTION( EXIV2_ENABLE_TOOLS "Build exiv2 executable" ON )
+
+ # set include path for FindXXX.cmake files
+ set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/config/")
+--- a/src/CMakeLists.txt 2017-06-07 00:14:25.368608098 +0200
++++ b/src/CMakeLists.txt 2017-06-07 00:16:06.710831682 +0200
+@@ -317,9 +317,11 @@
+
+ # ******************************************************************************
+ # exiv2 application
+-ADD_EXECUTABLE( exiv2 ${EXIV2_SRC} ${EXIV2_HDR} )
+-TARGET_LINK_LIBRARIES( exiv2 exiv2lib ${LIBINTL_LIBRARIES} )
+-INSTALL( TARGETS exiv2 ${INSTALL_TARGET_STANDARD_ARGS} )
++IF(EXIV2_ENABLE_TOOLS)
++ ADD_EXECUTABLE( exiv2 ${EXIV2_SRC} ${EXIV2_HDR} )
++ TARGET_LINK_LIBRARIES( exiv2 exiv2lib ${LIBINTL_LIBRARIES} )
++ INSTALL( TARGETS exiv2 ${INSTALL_TARGET_STANDARD_ARGS} )
++ENDIF( EXIV2_ENABLE_TOOLS )
+
+ # ******************************************************************************
+ # connection test application
diff --git a/media-gfx/exiv2/metadata.xml b/media-gfx/exiv2/metadata.xml
new file mode 100644
index 000000000000..934a5a602c59
--- /dev/null
+++ b/media-gfx/exiv2/metadata.xml
@@ -0,0 +1,19 @@
+<?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>
+ <maintainer type="project">
+ <email>kde@gentoo.org</email>
+ <name>Gentoo KDE Project</name>
+ </maintainer>
+ <longdescription lang="en">
+ Exiv2 is a C++ library and command line utility to read and
+ write EXIF, IPTC and XMP image metadata.
+ </longdescription>
+ <use>
+ <flag name="webready">Support reading metadata over the internet</flag>
+ </use>
+</pkgmetadata>
diff --git a/media-gfx/farbfeld/Manifest b/media-gfx/farbfeld/Manifest
new file mode 100644
index 000000000000..6c5d1f26b84e
--- /dev/null
+++ b/media-gfx/farbfeld/Manifest
@@ -0,0 +1,8 @@
+AUX farbfeld-3-as-needed.patch 249 SHA256 705e2dcaf17c98c71b54bc572e44ea662832c57c99e0d7817ab13b363e3a9c5b SHA512 c00ad29d4c06777896b0915b8277b25eecf2d09312c2fbb2f0d5dbde9150ad3fb9d4f1d49fd6fdd742fdabeede128c9dd827c272604edcda017a959ca68ee738 WHIRLPOOL 739d16e0cf67c556ead876d0429c468c5bbba45ff81124a1c4aaa8428c462d05f69ae9e1439db9a266e8e7927930b3e0565a2cefc425de57a256839a87029e8d
+DIST farbfeld-2.tar.gz 6646 SHA256 a366e7628274fb9b4dc9508a7340a32b5e7557d99895b7ed7b5165241d613f58 SHA512 04471f0d6092433083b1441c17fb80db27fcedea6a12ddab3b08eaf9731da06f48560cf49124b56e1e27d7de2b69109b0ce38513ee90c735ac966dc2132e000f WHIRLPOOL 3d125bac271db2e8ab6411abc1c809cb2de4c6401a4c978f6a34fad97387136225b8d93dae5f89aa2bc303f4e8498350193f74a7f156b9bd65ec8dcac05a2341
+DIST farbfeld-3.tar.gz 10169 SHA256 5b953b86a72d3feaedf62698532c8888e5f6e2f6363193a4cc8cee0e38c378ad SHA512 4f1e44282810bd2724f78857bcde401b82945375c5472b31e39250d660efffd425e0a2da5aecf0133ad3d414c31214d073d00f519bc83960b5bbfd53df3b1c49 WHIRLPOOL f7105f1ea59366159a9b350d862e356eeb373685287a25827a72360ce917a6a23b4473286b82a081afea8b9dd60ec5b7ea37450084a54f615c00186753c70cbf
+EBUILD farbfeld-2.ebuild 849 SHA256 182018b2f3f80c070af6f5f48b6723932f9df4525794d2c1786d1f18d8cd5e31 SHA512 f44594b067f339c4b1b7358de6a74c933a3a9cc23193bc76109b129540e9d492081bef124319211bf526bd9ef831623e84f3dd71d09e0809997fb7c32ac577cb WHIRLPOOL 77e6008d95286095d2bd56bcdc0df982fd45b48b22cf011cd62d98e1ecb33f2a75d78ad85c83586bcf101c1ce28491bf24dcf2de21351a618184344a9c453549
+EBUILD farbfeld-3.ebuild 837 SHA256 62e357eb1176bde1724b233d43c5d31515c23f5bd0acbdfce687e61d27420215 SHA512 904f6887c170f56fd5e56e5af4bfde155049645172e0910f9e9f270e5ffb9b9463b9905b86fcea5bc0ca56a24c9b72d5eb9e38d70d19dde00ac7d02236b3b8e9 WHIRLPOOL bec79ec3e93677fa4b0b8bf6fcd43bc127966dac005dea5cba634d1196ef698bdfb989e663143186a4538bd1fb9b3a54373c3c916058731a911ebbdc5f5fb31a
+EBUILD farbfeld-9999.ebuild 785 SHA256 67209523767b8c9638b7dec1205737bbfb92c823e42b7e9b76d8b5d2b5784ae0 SHA512 12f5e559f0ba1e588f9f89ad72585c141cb3942e759ea10d1ec8ed0d8035474e65bb472511382e7fb58095cb66188d7392a0eddbd7ac66a5a7b00df9ca5d22f0 WHIRLPOOL ac7437994e2c62b04441b439116aa35469d8d9e365cf0e689ac4f86c58513a3d4fcfb7fde575c16bdceeed249e14f4c335103708ef87fa756629d1f553f0c46c
+MISC ChangeLog 1288 SHA256 08c622c284eedffacce94aeafd6b10470a3066a2d5569508e9fc23a6bfbe42b6 SHA512 78733ef0d0c52af28bbf804ca1e7d099e9df7494474f2ab07f09993048bc0a392e7e06c15b2e6017061670860b42fbeb3f7da2d8212155cc6f4e4f16f3024dee WHIRLPOOL 432527a1705496b4226d11a9c4858afa1bbdca06b571f7d5615c64f84fdc3c2c9304cf99d6f1b42fee928a1e9bd006f81f26767fd5829f6b43acb39559344fc4
+MISC metadata.xml 238 SHA256 bae0588f6a20ccebb0e76d3ad782fcb2adfd1ea5b9fc1433851379423a103b72 SHA512 b0b981ef72f4d295f427f92dc9931553b4fb7a91c8ed63fa1f28bdbe8bc61d6f0943e1217eb7b61b8d85d9685cbe759db49f094a18a1461cb48429affe76d993 WHIRLPOOL ad8bdcb129ac41a2941e41186ec94e845858818fe21b95b69adc902ddbe0eb4c4bcce8f00d5f167981852184df07e355866a07f50dcdc8f7cd7edf20ed95ecee
diff --git a/media-gfx/farbfeld/farbfeld-2.ebuild b/media-gfx/farbfeld/farbfeld-2.ebuild
new file mode 100644
index 000000000000..6ca2302b9a04
--- /dev/null
+++ b/media-gfx/farbfeld/farbfeld-2.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit toolchain-funcs
+
+DESCRIPTION="farbfeld simple image format tools"
+HOMEPAGE="https://tools.suckless.org/farbfeld/"
+SRC_URI="https://dl.suckless.org/${PN}/${P}.tar.gz"
+
+LICENSE="ISC"
+SLOT="0"
+KEYWORDS="~amd64"
+
+RDEPEND="
+ media-libs/libjpeg-turbo
+ media-libs/libpng:*
+"
+DEPEND="
+ ${RDEPEND}
+"
+
+src_prepare() {
+ sed config.mk \
+ -e '/^CC/d' \
+ -e 's|/usr/local|/usr|g' \
+ -e 's|^CFLAGS.*|CFLAGS += -std=c99 -pedantic -Wall -Wextra $(INCS) $(CPPFLAGS)|g' \
+ -e 's|^LDFLAGS.*|LDFLAGS += $(LIBS)|g' \
+ -e 's|{|(|g;s|}|)|g' \
+ -i || die
+
+ sed Makefile \
+ -e 's|{|(|g;s|}|)|g' \
+ -e 's|^ @| |g' \
+ -i || die
+}
+
+src_compile() {
+ emake CC=$(tc-getCC)
+}
+
+src_install() {
+ emake DESTDIR="${D}" install MANPREFIX=/usr/share/man
+}
diff --git a/media-gfx/farbfeld/farbfeld-3.ebuild b/media-gfx/farbfeld/farbfeld-3.ebuild
new file mode 100644
index 000000000000..b8bab18a1e31
--- /dev/null
+++ b/media-gfx/farbfeld/farbfeld-3.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit toolchain-funcs
+
+DESCRIPTION="farbfeld simple image format tools"
+HOMEPAGE="https://tools.suckless.org/farbfeld/"
+SRC_URI="https://dl.suckless.org/${PN}/${P}.tar.gz"
+
+LICENSE="ISC"
+SLOT="0"
+KEYWORDS="~amd64"
+
+RDEPEND="
+ media-libs/libjpeg-turbo
+ media-libs/libpng:*
+"
+DEPEND="
+ ${RDEPEND}
+"
+PATCHES=(
+ "${FILESDIR}"/${PN}-3-as-needed.patch
+)
+
+src_prepare() {
+ default
+
+ sed -i \
+ -e '/^CC/d' \
+ -e 's|/usr/local|/usr|g' \
+ -e 's|^CFLAGS.*|CFLAGS += -std=c99 -pedantic -Wall -Wextra $(INCS) $(CPPFLAGS)|g' \
+ -e 's|^LDFLAGS.*|LDFLAGS += $(LIBS)|g' \
+ -e 's|{|(|g;s|}|)|g' \
+ config.mk || die
+}
+
+src_compile() {
+ emake CC=$(tc-getCC)
+}
+
+src_install() {
+ emake DESTDIR="${D}" install MANPREFIX=/usr/share/man
+}
diff --git a/media-gfx/farbfeld/farbfeld-9999.ebuild b/media-gfx/farbfeld/farbfeld-9999.ebuild
new file mode 100644
index 000000000000..7ba44661350a
--- /dev/null
+++ b/media-gfx/farbfeld/farbfeld-9999.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit git-r3 toolchain-funcs
+
+DESCRIPTION="farbfeld simple image format tools"
+HOMEPAGE="https://tools.suckless.org/farbfeld/"
+EGIT_REPO_URI="https://git.suckless.org/farbfeld"
+
+LICENSE="ISC"
+SLOT="0"
+KEYWORDS=""
+
+RDEPEND="
+ media-libs/libjpeg-turbo
+ media-libs/libpng:*
+"
+DEPEND="
+ ${RDEPEND}
+"
+
+src_prepare() {
+ default
+
+ sed -i \
+ -e '/^CC/d' \
+ -e 's|/usr/local|/usr|g' \
+ -e 's|^CFLAGS.*|CFLAGS += -std=c99 -pedantic -Wall -Wextra $(INCS) $(CPPFLAGS)|g' \
+ -e 's|^LDFLAGS.*|LDFLAGS += $(LIBS)|g' \
+ -e 's|{|(|g;s|}|)|g' \
+ config.mk || die
+}
+
+src_compile() {
+ emake CC=$(tc-getCC)
+}
+
+src_install() {
+ emake DESTDIR="${D}" install MANPREFIX=/usr/share/man
+}
diff --git a/media-gfx/farbfeld/files/farbfeld-3-as-needed.patch b/media-gfx/farbfeld/files/farbfeld-3-as-needed.patch
new file mode 100644
index 000000000000..61502e55543f
--- /dev/null
+++ b/media-gfx/farbfeld/files/farbfeld-3-as-needed.patch
@@ -0,0 +1,11 @@
+--- a/Makefile
++++ b/Makefile
+@@ -23,7 +23,7 @@
+ $(BIN:=.o): config.mk $(HDR) $(REQ:=.h)
+
+ .o:
+- $(CC) $(LDFLAGS) $($*-LDFLAGS) -o $@ $< $(REQ:=.o)
++ $(CC) $(LDFLAGS) -o $@ $< $(REQ:=.o) $($*-LDFLAGS)
+
+ clean:
+ rm -f $(BIN) $(BIN:=.o) $(REQ:=.o)
diff --git a/media-gfx/farbfeld/metadata.xml b/media-gfx/farbfeld/metadata.xml
new file mode 100644
index 000000000000..a8fb43312942
--- /dev/null
+++ b/media-gfx/farbfeld/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 type="person">
+<email>jer@gentoo.org</email>
+<name>Jeroen Roovers</name>
+</maintainer>
+</pkgmetadata>
diff --git a/media-gfx/fbgrab/Manifest b/media-gfx/fbgrab/Manifest
new file mode 100644
index 000000000000..856568399150
--- /dev/null
+++ b/media-gfx/fbgrab/Manifest
@@ -0,0 +1,9 @@
+AUX fbgrab-1.0-Makefile.patch 428 SHA256 722ee58383bd05aad6dc731a0ba1c43dbaaee1401391ed6f402aca03af7dc22b SHA512 21f6ea83a609f627112b6d77776c5f94269d6fdc86403b1e5aee2e8a497e29d22518bdac02731fc216b6178f3631659d3d7bcbd0a0ec73320635273785a5fb46 WHIRLPOOL ddb58c330fda4c7b52c9e7444b6f1f4e7593a9ba92c3467e3944e349c0b429548d1e7655523d61a8e83072144a94308ab5194be334932b0997dc0b1258d9b6bf
+AUX fbgrab-1.0-zlib_h.patch 263 SHA256 fffbd6136989d303ecbaceae285973e3cca9e3c1494e237df5b264738cf913f6 SHA512 ac8576a25e963451ec298888208f92d8bb383c06655a96bf691779c5600db9c85c6e488b139519832b46878a46caba05d47f37ab27a3b2529f657341e5e93dbb WHIRLPOOL 5736ffc140cddb744729f435bcefd42e040a7db9c09fe8e9c162bcc0b4085d10cb8bfc3956f680d1f60dde6054c8e66c10c1e3333fb9dc6347dd4de6eac8fe84
+DIST fbgrab-1.0.tar.gz 11928 SHA256 9158241a20978dcc4caf0692684da9dd3640fd6f5c8b72581bd099198d670510 SHA512 83346be21b3dc393165cfbb210284679e9fc746380fde9939d96d8174cd320d71cc6bfbf23a9495a107c8f0a6ded43342f843b530996f695ebba0388669a35f0 WHIRLPOOL 9b697c073dfb38bd50c426b20217eb979429fea70728002aa90c1466094dc384b10cbe9879ea0fde85053c56f88b8a4099ac5dcdbaa8e1fd2bc9b8a3782fe6ab
+DIST fbgrab-1.3.tar.gz 13027 SHA256 5fab478cbf8731fbacefaa76236a8f8b38ccff920c53b3a8253bc35509fba8ed SHA512 2d1166890f41d7de813a6c9b722db148980fcc802da38dea1a42d1f150cbdc16d0dd6757bc334586402f109b382e5039d44b03f9f19024f546958bdf21ca5d52 WHIRLPOOL 55bd2d203592312a661fd0699b375b1e4c2699e61d41acaa56426146ba42f34744b8a6748af6e54f9d7b548ef0308c7874d8337ad250b3dc2fd0559cb9f9b162
+EBUILD fbgrab-1.0-r2.ebuild 685 SHA256 7a4c27ac4af654ebabe14acbd2f6b906c20f34c33f0679b75a6b367761b34bf1 SHA512 14d6ae3aeb8fa23f7356b97c13b7918c8385242081b45159139678bddb1d7a4d28789b1474fdd0049a89d9f8034672a55e9602ad216d4253d45ef086ec813ca9 WHIRLPOOL e7f6aa1e264010f39bb3d4075f46ab47c75350cbc6a4cadc55c97fdf0e7a4f608799374b6ad7947a78de02b53ecdc9348fb3bb83e4759363ae1f3ff199d44dd0
+EBUILD fbgrab-1.3.ebuild 627 SHA256 1a4f59ef57732854ae57273c9284623f0506679eb4f015047ca66c29cd5b60a0 SHA512 02dea52feb8122551828713210d1eac914c83c23db299db60bd443de84505d625aff0198c6950bd34708a10736842f5fcf0bc4fcf5d0f440f4c83e06ad9167be WHIRLPOOL 83dc363f4c139a3f84641fd1021327a139613795de6625e11bddaf4e744c7011cb3ef1ed252e267b76599fd5b17931af99049ac7db75a83985deb2f73b7df97c
+MISC ChangeLog 2459 SHA256 4c93a18672c9d63b649059f97b8e186fe42dedd0962917a4b450f683185176f9 SHA512 72f55ff29c6bd95b06910b307c4136939eca8e2e3bcade7a65ad4ca81e88afe3a5c04c89e7ddab08024848d65662a2804561507e9a6b16712b230d64234e6c5d WHIRLPOOL 7aa455af2c48fa0d6b032e61f531f6dd371ddbe84ca1833027595905a0e29fc66ad4e8fe440c33322426239738336752b53590879881359ae61e2996c7d1dae8
+MISC ChangeLog-2015 4123 SHA256 11f4ddcace8ef94ef4568862fa401d03e30d5995d223a287dcab75a26f265dc5 SHA512 527c23ad6c7cfae0d0a8f029a3526b3f65c541f1b59f832b6092b47a01c7858ef7d4c8b8369836adb842d2c37dfaf533c82343006ebba44d2ae3967f9e040379 WHIRLPOOL 6270eca1a61039e148a7709b8cccb620791ae7d701955714cbf58a241c460444fda98cac456c5861e35a2b485f364b61d75f68f174bdf2e1683dba986887bda6
+MISC metadata.xml 355 SHA256 e068e9fb4db701dfb5f944b88e8ff83ed61c32384660c9e7b32a7539d8ca8044 SHA512 31b407791cd97b141997fff192ac75298957edee59fe3a9c46d7a08f839b99ca2e4f3536632beca933d74a8e22464dbd7fd34fa61c106829c62c8dc69b1b8231 WHIRLPOOL c788c7b91a8921fad524e903abc6b88ab159f5baecd90c7879e41388b41f786cf4669b6fb8155caef9eef7a1d5400e9f7048951e8aad1f5cfe2ef4bdec9a03c5
diff --git a/media-gfx/fbgrab/fbgrab-1.0-r2.ebuild b/media-gfx/fbgrab/fbgrab-1.0-r2.ebuild
new file mode 100644
index 000000000000..b4037526a3b7
--- /dev/null
+++ b/media-gfx/fbgrab/fbgrab-1.0-r2.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit eutils toolchain-funcs
+
+DESCRIPTION="Framebuffer screenshot utility"
+HOMEPAGE="http://hem.bredband.net/gmogmo/fbgrab/"
+SRC_URI="http://hem.bredband.net/gmogmo/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha amd64 arm ~hppa ~ia64 ppc ~ppc64 ~sparc x86"
+IUSE=""
+
+RDEPEND="media-libs/libpng
+ sys-libs/zlib"
+
+DEPEND="${RDEPEND}"
+
+src_prepare() {
+ epatch "${FILESDIR}/${P}-zlib_h.patch" \
+ "${FILESDIR}/${P}-Makefile.patch"
+
+ epatch_user
+}
+
+src_compile() {
+ emake CC="$(tc-getCC)"
+}
+
+src_install() {
+ dobin ${PN}
+ newman ${PN}.1.man ${PN}.1
+}
diff --git a/media-gfx/fbgrab/fbgrab-1.3.ebuild b/media-gfx/fbgrab/fbgrab-1.3.ebuild
new file mode 100644
index 000000000000..c1b9e87b65a0
--- /dev/null
+++ b/media-gfx/fbgrab/fbgrab-1.3.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit eutils toolchain-funcs
+
+DESCRIPTION="Framebuffer screenshot utility"
+HOMEPAGE="http://fbgrab.monells.se/"
+SRC_URI="http://fbgrab.monells.se/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 arm ~arm64 ~hppa ~ia64 ppc ~ppc64 ~s390 ~sparc ~x86"
+IUSE=""
+
+RDEPEND="media-libs/libpng:=
+ sys-libs/zlib"
+
+DEPEND="${RDEPEND}"
+
+src_prepare() {
+ sed -i -e "s:-g::" Makefile || die "sed failed"
+}
+
+src_compile() {
+ emake CC="$(tc-getCC)"
+}
+
+src_install() {
+ dobin ${PN}
+ newman ${PN}.1.man ${PN}.1
+}
diff --git a/media-gfx/fbgrab/files/fbgrab-1.0-Makefile.patch b/media-gfx/fbgrab/files/fbgrab-1.0-Makefile.patch
new file mode 100644
index 000000000000..28fa840aa33a
--- /dev/null
+++ b/media-gfx/fbgrab/files/fbgrab-1.0-Makefile.patch
@@ -0,0 +1,14 @@
+diff -ru fbgrab-1.0.origin/Makefile fbgrab-1.0/Makefile
+--- fbgrab-1.0.origin/Makefile 2002-03-20 22:49:06.000000000 +0300
++++ fbgrab-1.0/Makefile 2013-06-25 21:03:11.000000000 +0400
+@@ -4,8 +4,8 @@
+ ###
+
+ fbgrab: fbgrab.c
+- splint +posixlib fbgrab.c
+- gcc -g -Wall fbgrab.c -lpng -lz -o fbgrab
++ #splint +posixlib fbgrab.c
++ $(CC) -Wall ${CPPFLAGS} ${CFLAGS} ${LDFLAGS} fbgrab.c -lpng -lz -o fbgrab
+
+ install:
+ strip fbgrab
diff --git a/media-gfx/fbgrab/files/fbgrab-1.0-zlib_h.patch b/media-gfx/fbgrab/files/fbgrab-1.0-zlib_h.patch
new file mode 100644
index 000000000000..8318ab468994
--- /dev/null
+++ b/media-gfx/fbgrab/files/fbgrab-1.0-zlib_h.patch
@@ -0,0 +1,10 @@
+--- fbgrab.c
++++ fbgrab.c
+@@ -22,6 +22,7 @@
+
+ #include <getopt.h>
+ #include <sys/vt.h> /* to handle vt changing */
++#include <zlib.h> /* Z_BEST_COMPRESSION */
+ #include <png.h> /* PNG lib */
+ #include <linux/fb.h> /* to handle framebuffer ioctls */
+
diff --git a/media-gfx/fbgrab/metadata.xml b/media-gfx/fbgrab/metadata.xml
new file mode 100644
index 000000000000..2cb7edde3a31
--- /dev/null
+++ b/media-gfx/fbgrab/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>zlogene@gentoo.org</email>
+ <name>Mikle Kolyada</name>
+ </maintainer>
+ <maintainer type="person">
+ <email>pinkbyte@gentoo.org</email>
+ <name>Sergey Popov</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/media-gfx/fbida/Manifest b/media-gfx/fbida/Manifest
new file mode 100644
index 000000000000..5d89222a8ea4
--- /dev/null
+++ b/media-gfx/fbida/Manifest
@@ -0,0 +1,16 @@
+AUX fbida-2.10-fprintf-format.patch 172 SHA256 9c44658c13122f967c06906d33abc9db7ec8cc67841773fc35269c9d6d940ac1 SHA512 a340550e87b9532b9a5cf2240bb965879696760c37031f8bfc7d251891e81b10391408626c45ef636dc67c2ccb6746195837587a4ff8e6598262a6a1f920eddd WHIRLPOOL f00e37d77a0365e2c04431d7341784f2e200d0d204cc5761a67cff2c0fde5727c52975114498304cc00904d8cb900313b9a55332f6efb802259558734fe9aca6
+AUX fbida-2.10-giflib-4.2.patch 542 SHA256 1393afb3e73d132828a0b431a1e7ed93244250c265d54ee8d59841c6a26ec707 SHA512 7610721d965c3640c4524311626ba099501cac1aef6cea62d32158e8a7720cc23bdb0c83422795676de021f88a592c3d2f7d4d26d810dc06d959f7c85e91019e WHIRLPOOL c2e58369c704f6c92d0285ecea5bba81f59e73e9c4d972bc89a2b604ed403ad94dacf7e836082658641ea21ecc13c1e9b1adb6104d1e2cc4fa1f9ed487fb99fe
+AUX fbida-2.13-Autoconf.patch 239 SHA256 aa6c07e7901041a9b5e4e132fd48099d1607e93853523b45a373682cc82cb1be SHA512 b87ed3f79fe9efea02fc97d6cde0e6d67c2e6baf93ab3a19564090f2806cbfa1b67610a16a4151ba8df31d570f79f8f964dd608ce4fda95e7f7cbcc562902847 WHIRLPOOL 5142274968b19da972c5dac3fb64ad6f0fc1dd0357b6b5c741fd9f02f52414d4f95a9646b3d2de05005e9f43c4b61884abf0a4ad3911c3d46bd2ee8515de401e
+AUX fbida-2.14-Autoconf.patch 244 SHA256 ab53b5f9a89b864d67327c39ee133f2357cf832a9d737905c093a2daece80ea3 SHA512 cb31757e3ca3eabbff4c4ecb27581b39b8fef386412b4f26558a070b6b08891b09a31a06861d965009f5158e03ab227b86873f4b64316cf63bc7b51ce6074221 WHIRLPOOL d36ce1ee6ec2b647cc2da401e3ee646f935703b1daec57b3cec0dc0d6ef5fc7fadb96192b681d11f8289699b9b37108f49cb97340de8575e523dca5e15ed670e
+AUX ida-desktop.patch 384 SHA256 68b73ebe6ebc04dd3c205ee328c61c9d0b523c9ba87dda9301f82eab306b9e57 SHA512 0e14a3b848774d1538e309a9c8a8f0445a870db21723d11d0c39d86760ccb9c6f9a5f08ec75016875b2867c2d2075b59aad0fa810621f2c2afcccd14fef26737 WHIRLPOOL 5ff72a36831f60b2965964e53b105121c0de042e18abfc19d348c35496dada17c466d2e0d1cbeb778238a62380a4a2d7e3998e15565accf3b69dc19f80aa0e32
+DIST fbida-2.12.tar.gz 294842 SHA256 d33193105cce77057c919761728cee9bbe8ec8ec4f12a770a600cab33611822f SHA512 383eb766a98137f7252cd981d0e8c9a7382223705a43332f50990ea26763d4882ed1585e72fe9199528502d7f8f9de2e90718dbce71ee08d2181c74aa3e7e515 WHIRLPOOL 7ea067497eee03623fe8f07afbb77c354973187edd09f40b94d73d1b2d7c823db846c277005473c169cd1ad923e378d22d3c065f3522667e544d25917cd6495a
+DIST fbida-2.13.tar.gz 296020 SHA256 a887195dcd189055ee9b787eb03c8b7954df3aec540a1f90d8e92f873126db07 SHA512 a316776f381fac6ec6a5d085ece7a42e8e34b2c0f5ae1cc58ad5b5736dc83d8f2e7776779716abfc0ae9c51baacdf911df6a0be610d2b7b2e3ce6d0c81e1fdc3 WHIRLPOOL d94273ff9b631902d38fc1d65155fe18f50bca5055659bdc8bd945e68b913d1e65da4aa5b13358f9f4f662cee7199c92b244abdc9f89c127a74fce8e5beefabc
+DIST fbida-2.14.tar.gz 296826 SHA256 95b7c01556cb6ef9819f358b314ddfeb8a4cbe862b521a3ed62f03d163154438 SHA512 8f3596ad8a22497880ac698d3b324e038ac5ccae7481fe4a902fc6e8bf43ba1bb3a96af8c7a3347bea86c1988f35674e2647901ac256bd4e8261d467a6a343ec WHIRLPOOL b545390ac42122d6cabeaef2d365c0519e695c715bf50f8ade64a53a5655f2845ba8931dc64462fe318bb9df5e0d0e6bf93f173f63d92044b90ffe265c910ab1
+DIST ida.png.bz2 11928 SHA256 ce90c13f8da8d2ced4cf0e55d2f960bc236355f6e5dd60ea6c56fbe51e6cabae SHA512 cf3c1bc8d25fe75f10c0a0414b5c082348df2fa94864ec4537c36e0b357cf35b68e2eca205bbf48578a41c27317701aee621c6dd176e0bf3857c52f895d6bfd3 WHIRLPOOL 1b5e7835aa8a555a231ca58da8e249974639b29b1e15586c2d2d5a33e96908df1a3782fbe61d0c51dc888b7304c9f7541a96af4ca2b956b393909feb534ab5be
+EBUILD fbida-2.12.ebuild 2428 SHA256 b1ef86964eac33129a85297edbf64b5bfe5ef7954f2adfbfc9eff2bc25de8481 SHA512 b847ad915d41fe2ab95fb487e70419100e4fcd9ae0287449fdcc6f93f5f42165942919746fe856520a79ff9c1b66421530a02f55c8a9e7695a859a6579c60741 WHIRLPOOL c750a7183e6780c830d5ae578cb1bd66ae335379741456470b4e7f751a4e4d254983fb10c694d319e0a60f4e06bf511701543f3f4bb8edb4df7cf36b6de28f35
+EBUILD fbida-2.13-r1.ebuild 2411 SHA256 752db864d765868cc9b63388bc85e9f2a9c7ca3407a7d6b3eb363849f6a9c74c SHA512 f7126043f89da9ac6cd1d5a044ade51e99efe184e32d9e458a0301bf843c9bdbf82ca22c24e5c2c9eff927f7a04393233f60b0720d542302fd8469adce1b0ec4 WHIRLPOOL 4a4de743d22cd88f4b1a49f9101706eaeff93fa49c0f883147d8ba320b65ccfbae55b6cfc0d1d16d39b82a9fb724fcdef8372c2f5b8df8442c7036fa5d8f9260
+EBUILD fbida-2.14.ebuild 2364 SHA256 b40f6dd04ab901ef247e38f0ab7a6c0768449d956ff344651fe915aa50ba358c SHA512 e264f0f624e48b6fcfb1517e44aa99c73e94eecef8a18dc573743fb91d7cc1876276f352273fa9511d22df966b8c3af64cbdd3aed037ee98661bf3dcd8036943 WHIRLPOOL 3ecd7a53271139eea7b57074db591e6649a3958437101403ce69cc932ba919e966676ab5d13fe6af426c6bc1e70f3dde4696a776b7c135f0b5016f5a8b8f0e28
+EBUILD fbida-9999.ebuild 2454 SHA256 0016f9b9ce0eae576420ee9d212bc580a189967baf04e4683979b8b19dedc6ac SHA512 747e48211b510e3330d56a291bc3036df53e77d866010456a55694c6cc57b5e13194e34aecca8f606b15ea5bb3a06c3ceb6db047d77d039e63c210e21db3150b WHIRLPOOL d19c964a6e3ce7f56cdf99afa250a6c8bbf1fb7be9b8771acc581ec5514b57db2be6f9f7a71ae5a85b20e206446a41be35a707167561fb332ce8c0d3e490e301
+MISC ChangeLog 6718 SHA256 77bcc3ad2f95abc3267ea9b71fc18a006f6cfd831e2d03c84c84d1a845cb9f5e SHA512 d0b8c41855fa8bcc84699be6b50131de4eade4be0f34c56e4b1513eb52cf80c048e726d2abfd53aa5eaa03914062ef930c18858b9e1087aee9f4bd3cee1ff1fc WHIRLPOOL ffa6ef73320365f45c99dd497fdcfffe2c3fb2b9328ab0e2b34d6f9667ab9d43fee68b63f87ddf60f86577ae36c4b0e8dd063fbbc15e8cec47eac78d7cfb2ff0
+MISC ChangeLog-2015 15944 SHA256 62ad8ee6b45997090ac005083c261f04e068435a2076ea3ca7755c127f310d28 SHA512 175cefddf8d2d8dbfbdca48d42ac00f520099f49aca072d84109b9d37235799ecae85d6686eb29c217a785f33b19764861591a3fa5e648aaa17cb8692473ceae WHIRLPOOL 5087a5348e7c622aab3452badb81cefc09dba9a4abd29e7a9ecc495f4467a3201beaeaf961df9584ca80513493d4d4b444c91599585e49277019918c91bf67d2
+MISC metadata.xml 505 SHA256 80a5d9a88a7ab853146983c3f795e1a9709f895362a8d8fe1322a25c16cde996 SHA512 cbd85cfd39d20a07c679f9f98d487795136ee1611fa69712d0539bc94d354a5a76fa59ea9c1da8b4ea7764e705ed16a4f3f77e0783525001c0ee5467a1af6a2f WHIRLPOOL e7bf9e4a7eb70c5fd45c9f3216c8a17d071813d385530e23fade08f71a0f91f4a3c7b6ca9e931d93a293e82c5b057b7d3a27b38605ba10075b0f7a97f8569deb
diff --git a/media-gfx/fbida/fbida-2.12.ebuild b/media-gfx/fbida/fbida-2.12.ebuild
new file mode 100644
index 000000000000..a54e6b18ce07
--- /dev/null
+++ b/media-gfx/fbida/fbida-2.12.ebuild
@@ -0,0 +1,125 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils toolchain-funcs
+
+DESCRIPTION="Image viewers for the framebuffer console (fbi) and X11 (ida)"
+HOMEPAGE="http://www.kraxel.org/blog/linux/fbida/"
+SRC_URI="
+ http://www.kraxel.org/releases/${PN}/${P}.tar.gz
+ mirror://gentoo/ida.png.bz2
+"
+LICENSE="GPL-2 IJG"
+SLOT="0"
+KEYWORDS="alpha amd64 arm hppa ppc ppc64 ~sh sparc x86"
+IUSE="curl fbcon ghostscript +gif lirc +png scanner +tiff X +webp"
+REQUIRED_USE="
+ ghostscript? ( tiff )
+"
+
+CDEPEND="
+ !media-gfx/fbi
+ app-text/poppler
+ >=media-libs/fontconfig-2.2
+ >=media-libs/freetype-2.0
+ media-libs/libepoxy
+ media-libs/libexif
+ media-libs/mesa
+ virtual/jpeg:*
+ virtual/ttf-fonts
+ x11-libs/cairo[opengl]
+ x11-libs/libdrm
+ curl? ( net-misc/curl )
+ gif? ( media-libs/giflib:= )
+ lirc? ( app-misc/lirc )
+ png? ( media-libs/libpng:* )
+ scanner? ( media-gfx/sane-backends )
+ tiff? ( media-libs/tiff:* )
+ webp? ( media-libs/libwebp )
+ X? (
+ >=x11-libs/motif-2.3:0
+ x11-libs/libX11
+ x11-libs/libXpm
+ x11-libs/libXt
+ )
+"
+
+DEPEND="
+ ${CDEPEND}
+ X? ( x11-proto/xextproto x11-proto/xproto )
+"
+
+RDEPEND="
+ ${CDEPEND}
+ ghostscript? (
+ app-text/ghostscript-gpl
+ )
+"
+
+src_prepare() {
+ epatch \
+ "${FILESDIR}"/ida-desktop.patch \
+ "${FILESDIR}"/${PN}-2.10-giflib-4.2.patch \
+ "${FILESDIR}"/${PN}-2.10-fprintf-format.patch
+
+ tc-export CC CPP
+
+ # upstream omission?
+ echo ${PV} > VERSION
+}
+
+src_configure() {
+ # Let autoconf do its job and then fix things to build fbida
+ # according to our specifications
+ emake Make.config
+
+ gentoo_fbida() {
+ local useflag=${1}
+ local config=${2}
+
+ local option="no"
+ use ${useflag} && option="yes"
+
+ sed -i \
+ -e "s|HAVE_${config}.*|HAVE_${config} := ${option}|" \
+ "${S}/Make.config" || die
+ }
+
+ gentoo_fbida X MOTIF
+ gentoo_fbida curl LIBCURL
+ gentoo_fbida fbcon LINUX_FB_H
+ gentoo_fbida gif LIBUNGIF
+ gentoo_fbida lirc LIBLIRC
+ gentoo_fbida ghostscript LIBTIFF
+ gentoo_fbida png LIBPNG
+ gentoo_fbida scanner LIBSANE
+ gentoo_fbida tiff LIBTIFF
+ gentoo_fbida webp LIBWEBP
+}
+
+src_compile() {
+ emake verbose=yes
+}
+
+src_install() {
+ emake \
+ DESTDIR="${D}" \
+ STRIP="" \
+ prefix=/usr \
+ install
+
+ dodoc README
+
+ if use fbcon && ! use ghostscript; then
+ rm \
+ "${D}"/usr/bin/fbgs \
+ "${D}"/usr/share/man/man1/fbgs.1 \
+ || die
+ fi
+
+ if use X ; then
+ doicon "${WORKDIR}"/ida.png
+ domenu desktop/ida.desktop
+ fi
+}
diff --git a/media-gfx/fbida/fbida-2.13-r1.ebuild b/media-gfx/fbida/fbida-2.13-r1.ebuild
new file mode 100644
index 000000000000..b3534f6df821
--- /dev/null
+++ b/media-gfx/fbida/fbida-2.13-r1.ebuild
@@ -0,0 +1,121 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit eutils toolchain-funcs
+
+DESCRIPTION="Image viewers for the framebuffer console (fbi) and X11 (ida)"
+HOMEPAGE="http://www.kraxel.org/blog/linux/fbida/"
+SRC_URI="
+ http://www.kraxel.org/releases/${PN}/${P}.tar.gz
+ mirror://gentoo/ida.png.bz2
+"
+LICENSE="GPL-2 IJG"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ppc ~ppc64 ~sh ~sparc ~x86"
+IUSE="curl fbcon ghostscript +gif lirc +png scanner +tiff X +webp"
+REQUIRED_USE="
+ ghostscript? ( tiff )
+"
+
+CDEPEND="
+ !media-gfx/fbi
+ app-text/poppler
+ >=media-libs/fontconfig-2.2
+ >=media-libs/freetype-2.0
+ media-libs/libepoxy
+ media-libs/libexif
+ media-libs/mesa
+ virtual/jpeg:*
+ virtual/ttf-fonts
+ x11-libs/cairo[opengl]
+ x11-libs/libdrm
+ curl? ( net-misc/curl )
+ gif? ( media-libs/giflib:= )
+ lirc? ( app-misc/lirc )
+ png? ( media-libs/libpng:* )
+ scanner? ( media-gfx/sane-backends )
+ tiff? ( media-libs/tiff:* )
+ webp? ( media-libs/libwebp )
+ X? (
+ >=x11-libs/motif-2.3:0
+ x11-libs/libX11
+ x11-libs/libXpm
+ x11-libs/libXt
+ )
+"
+
+DEPEND="
+ ${CDEPEND}
+ X? ( x11-proto/xextproto x11-proto/xproto )
+"
+
+RDEPEND="
+ ${CDEPEND}
+ ghostscript? (
+ app-text/ghostscript-gpl
+ )
+"
+PATCHES=(
+ "${FILESDIR}"/ida-desktop.patch
+ "${FILESDIR}"/${PN}-2.10-giflib-4.2.patch
+ "${FILESDIR}"/${PN}-2.10-fprintf-format.patch
+ "${FILESDIR}"/${PN}-2.13-Autoconf.patch
+)
+
+src_configure() {
+ tc-export CC CPP
+
+ # Let autoconf do its job and then fix things to build fbida
+ # according to our specifications
+ emake Make.config
+
+ gentoo_fbida() {
+ local useflag=${1}
+ local config=${2}
+
+ local option="no"
+ use ${useflag} && option="yes"
+
+ sed -i \
+ -e "s|HAVE_${config}.*|HAVE_${config} := ${option}|" \
+ "${S}/Make.config" || die
+ }
+
+ gentoo_fbida X MOTIF
+ gentoo_fbida curl LIBCURL
+ gentoo_fbida fbcon LINUX_FB_H
+ gentoo_fbida gif LIBUNGIF
+ gentoo_fbida lirc LIBLIRC
+ gentoo_fbida ghostscript LIBTIFF
+ gentoo_fbida png LIBPNG
+ gentoo_fbida scanner LIBSANE
+ gentoo_fbida tiff LIBTIFF
+ gentoo_fbida webp LIBWEBP
+}
+
+src_compile() {
+ emake verbose=yes
+}
+
+src_install() {
+ emake \
+ DESTDIR="${ED}" \
+ STRIP="" \
+ prefix=/usr \
+ install
+
+ dodoc README
+
+ if use fbcon && ! use ghostscript; then
+ rm \
+ "${ED}"/usr/bin/fbgs \
+ "${ED}"/usr/share/man/man1/fbgs.1 \
+ || die
+ fi
+
+ if use X ; then
+ doicon "${WORKDIR}"/ida.png
+ domenu desktop/ida.desktop
+ fi
+}
diff --git a/media-gfx/fbida/fbida-2.14.ebuild b/media-gfx/fbida/fbida-2.14.ebuild
new file mode 100644
index 000000000000..482c92a8d701
--- /dev/null
+++ b/media-gfx/fbida/fbida-2.14.ebuild
@@ -0,0 +1,120 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit eutils toolchain-funcs
+
+DESCRIPTION="Image viewers for the framebuffer console (fbi) and X11 (ida)"
+HOMEPAGE="http://www.kraxel.org/blog/linux/fbida/"
+SRC_URI="
+ http://www.kraxel.org/releases/${PN}/${P}.tar.gz
+ mirror://gentoo/ida.png.bz2
+"
+LICENSE="GPL-2 IJG"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ppc ~ppc64 ~sh ~sparc ~x86"
+IUSE="curl fbcon ghostscript +gif lirc +png scanner +tiff X +webp"
+REQUIRED_USE="
+ ghostscript? ( tiff )
+"
+
+CDEPEND="
+ !media-gfx/fbi
+ app-text/poppler
+ >=media-libs/fontconfig-2.2
+ >=media-libs/freetype-2.0
+ media-libs/libepoxy
+ media-libs/libexif
+ media-libs/mesa
+ virtual/jpeg:*
+ virtual/ttf-fonts
+ x11-libs/cairo[opengl]
+ x11-libs/libdrm
+ curl? ( net-misc/curl )
+ gif? ( media-libs/giflib:= )
+ lirc? ( app-misc/lirc )
+ png? ( media-libs/libpng:* )
+ scanner? ( media-gfx/sane-backends )
+ tiff? ( media-libs/tiff:* )
+ webp? ( media-libs/libwebp )
+ X? (
+ >=x11-libs/motif-2.3:0
+ x11-libs/libX11
+ x11-libs/libXpm
+ x11-libs/libXt
+ )
+"
+
+DEPEND="
+ ${CDEPEND}
+ X? ( x11-proto/xextproto x11-proto/xproto )
+"
+
+RDEPEND="
+ ${CDEPEND}
+ ghostscript? (
+ app-text/ghostscript-gpl
+ )
+"
+PATCHES=(
+ "${FILESDIR}"/ida-desktop.patch
+ "${FILESDIR}"/${PN}-2.10-giflib-4.2.patch
+ "${FILESDIR}"/${PN}-2.14-Autoconf.patch
+)
+
+src_configure() {
+ tc-export CC CPP
+
+ # Let autoconf do its job and then fix things to build fbida
+ # according to our specifications
+ emake Make.config
+
+ gentoo_fbida() {
+ local useflag=${1}
+ local config=${2}
+
+ local option="no"
+ use ${useflag} && option="yes"
+
+ sed -i \
+ -e "s|HAVE_${config}.*|HAVE_${config} := ${option}|" \
+ "${S}/Make.config" || die
+ }
+
+ gentoo_fbida X MOTIF
+ gentoo_fbida curl LIBCURL
+ gentoo_fbida fbcon LINUX_FB_H
+ gentoo_fbida gif LIBUNGIF
+ gentoo_fbida lirc LIBLIRC
+ gentoo_fbida ghostscript LIBTIFF
+ gentoo_fbida png LIBPNG
+ gentoo_fbida scanner LIBSANE
+ gentoo_fbida tiff LIBTIFF
+ gentoo_fbida webp LIBWEBP
+}
+
+src_compile() {
+ emake verbose=yes
+}
+
+src_install() {
+ emake \
+ DESTDIR="${ED}" \
+ STRIP="" \
+ prefix=/usr \
+ install
+
+ dodoc README
+
+ if use fbcon && ! use ghostscript; then
+ rm \
+ "${ED}"/usr/bin/fbgs \
+ "${ED}"/usr/share/man/man1/fbgs.1 \
+ || die
+ fi
+
+ if use X ; then
+ doicon "${WORKDIR}"/ida.png
+ domenu desktop/ida.desktop
+ fi
+}
diff --git a/media-gfx/fbida/fbida-9999.ebuild b/media-gfx/fbida/fbida-9999.ebuild
new file mode 100644
index 000000000000..dc27ba67de8a
--- /dev/null
+++ b/media-gfx/fbida/fbida-9999.ebuild
@@ -0,0 +1,134 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit eutils git-r3 toolchain-funcs
+
+DESCRIPTION="Image viewers for the framebuffer console (fbi) and X11 (ida)"
+HOMEPAGE="http://www.kraxel.org/blog/linux/fbida/"
+EGIT_REPO_URI="
+ git://git.kraxel.org/fbida
+"
+SRC_URI="
+ mirror://gentoo/ida.png.bz2
+"
+LICENSE="GPL-2 IJG"
+SLOT="0"
+KEYWORDS=""
+IUSE="curl fbcon ghostscript +gif lirc +png scanner +tiff X +webp"
+REQUIRED_USE="
+ ghostscript? ( tiff )
+"
+
+CDEPEND="
+ !media-gfx/fbi
+ app-text/poppler
+ >=media-libs/fontconfig-2.2
+ >=media-libs/freetype-2.0
+ media-libs/libepoxy
+ media-libs/libexif
+ media-libs/mesa
+ virtual/jpeg:*
+ virtual/ttf-fonts
+ x11-libs/cairo[opengl]
+ x11-libs/libdrm
+ curl? ( net-misc/curl )
+ gif? ( media-libs/giflib:= )
+ lirc? ( app-misc/lirc )
+ png? ( media-libs/libpng:* )
+ scanner? ( media-gfx/sane-backends )
+ tiff? ( media-libs/tiff:* )
+ webp? ( media-libs/libwebp )
+ X? (
+ >=x11-libs/motif-2.3:0
+ x11-libs/libX11
+ x11-libs/libXpm
+ x11-libs/libXt
+ )
+"
+
+DEPEND="
+ ${CDEPEND}
+ X? ( x11-proto/xextproto x11-proto/xproto )
+"
+
+RDEPEND="
+ ${CDEPEND}
+ ghostscript? (
+ app-text/ghostscript-gpl
+ )
+"
+
+src_unpack() {
+ unpack ${A}
+ git-r3_src_unpack
+}
+
+src_prepare() {
+ eapply \
+ "${FILESDIR}"/ida-desktop.patch \
+ "${FILESDIR}"/${PN}-2.10-giflib-4.2.patch \
+ "${FILESDIR}"/${PN}-2.10-fprintf-format.patch
+
+ eapply_user
+
+ tc-export CC CPP
+
+ # upstream omission?
+ echo ${PV} > VERSION
+}
+
+src_configure() {
+ # Let autoconf do its job and then fix things to build fbida
+ # according to our specifications
+ emake Make.config
+
+ gentoo_fbida() {
+ local useflag=${1}
+ local config=${2}
+
+ local option="no"
+ use ${useflag} && option="yes"
+
+ sed -i \
+ -e "s|HAVE_${config}.*|HAVE_${config} := ${option}|" \
+ "${S}/Make.config" || die
+ }
+
+ gentoo_fbida X MOTIF
+ gentoo_fbida curl LIBCURL
+ gentoo_fbida fbcon LINUX_FB_H
+ gentoo_fbida gif LIBUNGIF
+ gentoo_fbida lirc LIBLIRC
+ gentoo_fbida ghostscript LIBTIFF
+ gentoo_fbida png LIBPNG
+ gentoo_fbida scanner LIBSANE
+ gentoo_fbida tiff LIBTIFF
+ gentoo_fbida webp LIBWEBP
+}
+
+src_compile() {
+ emake verbose=yes
+}
+
+src_install() {
+ emake \
+ DESTDIR="${ED}" \
+ STRIP="" \
+ prefix=/usr \
+ install
+
+ dodoc README
+
+ if use fbcon && ! use ghostscript; then
+ rm \
+ "${ED}"/usr/bin/fbgs \
+ "${ED}"/usr/share/man/man1/fbgs.1 \
+ || die
+ fi
+
+ if use X ; then
+ doicon "${WORKDIR}"/ida.png
+ domenu desktop/ida.desktop
+ fi
+}
diff --git a/media-gfx/fbida/files/fbida-2.10-fprintf-format.patch b/media-gfx/fbida/files/fbida-2.10-fprintf-format.patch
new file mode 100644
index 000000000000..d1c0b36dbfba
--- /dev/null
+++ b/media-gfx/fbida/files/fbida-2.10-fprintf-format.patch
@@ -0,0 +1,11 @@
+--- a/wr/write-ps.c
++++ b/wr/write-ps.c
+@@ -458,7 +458,7 @@
+ fprintf(fp,"\n");
+ }
+ }
+- fprintf(fp,footer);
++ fprintf(fp, "%s", footer);
+ return 0;
+ }
+
diff --git a/media-gfx/fbida/files/fbida-2.10-giflib-4.2.patch b/media-gfx/fbida/files/fbida-2.10-giflib-4.2.patch
new file mode 100644
index 000000000000..1e21b8af2bd7
--- /dev/null
+++ b/media-gfx/fbida/files/fbida-2.10-giflib-4.2.patch
@@ -0,0 +1,17 @@
+--- a/rd/read-gif.c
++++ b/rd/read-gif.c
+@@ -14,6 +14,14 @@
+ }
+ #else
+ #define GIF5DATA(x)
++// v4.2 removed PrintGifError in favor of GifErrorString, but with a different
++// prototype than v5
++#if defined(GIFLIB_MAJOR) && defined(GIFLIB_MINOR) && (GIFLIB_MAJOR == 4) && (GIFLIB_MINOR == 2)
++static void PrintGifError()
++{
++ fprintf(stderr, "GIF library error: %s\n", GifErrorString());
++}
++#endif
+ #define PrintGifError(e) PrintGifError()
+ #define DGifOpenFileHandle(x,e) DGifOpenFileHandle(x)
+ #define DGifCloseFile(x,e) DGifCloseFile(x)
diff --git a/media-gfx/fbida/files/fbida-2.13-Autoconf.patch b/media-gfx/fbida/files/fbida-2.13-Autoconf.patch
new file mode 100644
index 000000000000..41c4e2f7d9bb
--- /dev/null
+++ b/media-gfx/fbida/files/fbida-2.13-Autoconf.patch
@@ -0,0 +1,11 @@
+--- a/mk/Autoconf.mk
++++ b/mk/Autoconf.mk
+@@ -162,7 +162,7 @@
+ @true
+
+ Make.config: $(srcdir)/GNUmakefile
+- @echo -e "$(make-config-q)" > $@
++ @printf "$(make-config-q)" > $@
+ @echo
+ @echo "Make.config written, edit if needed"
+ @echo
diff --git a/media-gfx/fbida/files/fbida-2.14-Autoconf.patch b/media-gfx/fbida/files/fbida-2.14-Autoconf.patch
new file mode 100644
index 000000000000..9aefdcd2fe61
--- /dev/null
+++ b/media-gfx/fbida/files/fbida-2.14-Autoconf.patch
@@ -0,0 +1,11 @@
+--- a/mk/Autoconf.mk
++++ b/mk/Autoconf.mk
+@@ -162,7 +162,7 @@
+ @true
+
+ Make.config: $(srcdir)/GNUmakefile
+- @/bin/echo -e "$(make-config-q)" > $@
++ @printf "$(make-config-q)" > $@
+ @echo
+ @echo "Make.config written, edit if needed"
+ @echo
diff --git a/media-gfx/fbida/files/ida-desktop.patch b/media-gfx/fbida/files/ida-desktop.patch
new file mode 100644
index 000000000000..eaac0ed69558
--- /dev/null
+++ b/media-gfx/fbida/files/ida-desktop.patch
@@ -0,0 +1,17 @@
+--- a/desktop/ida.desktop
++++ b/desktop/ida.desktop
+@@ -1,9 +1,10 @@
+ [Desktop Entry]
+ Type=Application
+-Encoding=UTF-8
+ Name=ida
+ GenericName=Image Viewer
++Comment=Image Viewer
+ Exec=ida %F
+-Terminal=no
+-Categories=Motif;Graphics;Viewer
+-MimeType=image/jpeg;image/tiff;image/png
++Terminal=false
++Categories=Motif;Graphics;Viewer;
++MimeType=image/jpeg;image/tiff;image/png;
++Icon=ida
diff --git a/media-gfx/fbida/metadata.xml b/media-gfx/fbida/metadata.xml
new file mode 100644
index 000000000000..32d2983868dd
--- /dev/null
+++ b/media-gfx/fbida/metadata.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="person">
+<email>jer@gentoo.org</email>
+</maintainer>
+<use>
+<flag name="fbcon">Install the framebuffer image viewer "fbi"</flag>
+<flag name="ghostscript">Install the framebuffer ghostscript viewer "fbgs"</flag>
+<flag name="X">Install the Motif based image viewer "ida"</flag>
+<flag name="webp">Enable support for the WebP image format</flag>
+</use>
+</pkgmetadata>
diff --git a/media-gfx/fblogo/Manifest b/media-gfx/fblogo/Manifest
new file mode 100644
index 000000000000..d7a52a37d7ad
--- /dev/null
+++ b/media-gfx/fblogo/Manifest
@@ -0,0 +1,6 @@
+AUX fblogo-0.5.2-cross.patch 1060 SHA256 cdd1792ff631e44c5aea3b58d5239ce5d27cd7681a38cf421cf0b48c81d0b4c4 SHA512 98794e4de65a9e5e85aa850160ea8c7fc51da4084f79e67e2ad8bbde694ae27614c56bcff08f2023c0309c12f3c8e071e430fb7aab6ac3652f5597329695eb70 WHIRLPOOL 4ba2ff2033f979400d6c1ab4a55c40542bbff2be08e5f154ea21f8c6ef604343afb5085758dd2e2df4fa59811145a893a5948b02309bdcb5f1a39dd97faff8c7
+DIST fblogo-0.5.2.tar.gz 21874 SHA256 409d3aaaaddd6a8d22a661c68cad3283c969ed33fabe357df60fb37ab8bfae1e SHA512 d0ff36355e80be336d5b02cd6419ee4c669dd98b0dc1334b75440d814ea640e0ad11c14b24469619c116333d1eb7b8256c6cedae3886d1e8a4f99835eed7df42 WHIRLPOOL c7a2c4d20b768cec4cf6e75c80d3698f02b9e3042df52273d965d4856b38bb74a89c90b0ec98d85c13ff7661a877f54bdbbec70d4410bf5322a03d1d42db5573
+EBUILD fblogo-0.5.2.ebuild 837 SHA256 d3d1933de85033ed2f54920181dc0d2efcb4396db0360d3f8f0ad476094389a9 SHA512 ce03d9bb936979fde617521f0a65609b23577eb512171db794b98e92fce87e772dc010fe62a3054ad7fc774dfd86f219711401a1dd80adb19b3842cc1365055f WHIRLPOOL dd9e86f911449f40ab06b16254d288c003012dbbfec21345514cc7d172b89408539f58fc92a467bedfd32c881ad827b3027381f7540fb657693dab9bd3fc6216
+MISC ChangeLog 2576 SHA256 ae9fd3fb7d60c015d96c293e5b6a012c058dc336d5d9c80113534f19ce61ad18 SHA512 4b40000faa8fbeed98021e78eaf444bc291ea1d83d3fe56e9b1cce5a5644fde21b253be096285190ae6525772b9db6dbfd15e033b28c37cf531741fe8b7a666a WHIRLPOOL 38fcc890e1fee2e4ac466e0ba863626b93177a2b3c7b18e388444421d40bca626126a11f45fda0028da9717f18b569740c40c817ee863c6098abd1906e699439
+MISC ChangeLog-2015 2358 SHA256 bd89dc37c283d5a5f308942d88d611ee3db5e611f795e088953359451b5f98e4 SHA512 d864b42b6ca68c0aff18c2bad589d3112e6dd94ffc8284caefe7f6cb794cf6e6e72ae437136d5dc8dfbdba4a75c0cadba1611c1c835d8326bc5c1e2554b33343 WHIRLPOOL cad4bf127a54395bb5d8c6fde9db54e80349ee4e4b432015c32ffe6b37119d9d5c453a2c36e0d11bedb6b2f199d81806fc4ef441d6844a8be1fa94d14d41e652
+MISC metadata.xml 166 SHA256 2caff447f5bd2701d8456ada5cc633c41ef4373fa4bfeabeb73599d40bcc941b SHA512 a56648c974a1d14dd4c18237532773c72057a13ab90c58b5da04f185e3c12a8bd8d5c21fb06053507f31766291a82dc7d87b34cd65fd94cfe2af7295c813ef84 WHIRLPOOL 1ff70497eca6531f0e0614c72a19f4b8e5ff486a58d369f4f0b36308d1d6b01168f9da887740e3b9f536236be251d3fe05f904d27a9233a7cf613416ba882968
diff --git a/media-gfx/fblogo/fblogo-0.5.2.ebuild b/media-gfx/fblogo/fblogo-0.5.2.ebuild
new file mode 100644
index 000000000000..a9dca8cedc83
--- /dev/null
+++ b/media-gfx/fblogo/fblogo-0.5.2.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+inherit eutils toolchain-funcs
+
+DESCRIPTION="Creates images to substitute Linux boot logo"
+#HOMEPAGE="http://freakzone.net/gordon/#fblogo"
+HOMEPAGE="https://www.gentoo.org/"
+#SRC_URI="http://freakzone.net/gordon/src/${P}.tar.gz"
+SRC_URI="mirror://gentoo/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 arm ppc ~sparc x86"
+IUSE=""
+
+RDEPEND="media-libs/libpng
+ sys-libs/zlib"
+DEPEND="${RDEPEND}
+ >=sys-apps/sed-4"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}"/fblogo-0.5.2-cross.patch
+
+ sed -i -e '/-o fblogo/d' \
+ -e 's:LIBS:LDLIBS:' \
+ Makefile || die
+}
+
+src_compile() {
+ emake CC="$(tc-getCC)" LDFLAGS="${LDFLAGS}" || die
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die
+ dodoc README CHANGES
+}
diff --git a/media-gfx/fblogo/files/fblogo-0.5.2-cross.patch b/media-gfx/fblogo/files/fblogo-0.5.2-cross.patch
new file mode 100644
index 000000000000..dfcb2871a347
--- /dev/null
+++ b/media-gfx/fblogo/files/fblogo-0.5.2-cross.patch
@@ -0,0 +1,36 @@
+--- Makefile 2003-09-28 10:33:24.000000000 +0000
++++ Makefile 2008-05-18 19:05:12.000000000 +0000
+@@ -1,24 +1,28 @@
+-CC = gcc
++CC ?= gcc
+ LIBS = -lpng -lz -lm
+-CFLAGS = -g -O2 -W -Wall -DPNG_SETJMP_NOT_SUPPORTED
+-
++CFLAGS ?= -g -O2 -W -Wall
++CFLAGS += -DPNG_SETJMP_NOT_SUPPORTED
++LDFLAGS =
+ INSTALL = /usr/bin/install
+ INSTALL_FILE = $(INSTALL) -p -o root -g root -m 644
+ INSTALL_PROGRAM = $(INSTALL) -p -o root -g root -m 755
+ INSTALL_SCRIPT = $(INSTALL) -p -o root -g root -m 755
+
+ DESTDIR =
+-PREFIX = /usr/local
++PREFIX = /usr
+ BINDIR = ${PREFIX}/bin
+ MANDIR = ${PREFIX}/share/man
+
+ fblogo: fblogo.c
+- $(CC) -o fblogo $(CFLAGS) $(INCLUDES) $(LIBS) fblogo.c
++ $(CC) -o fblogo $(CFLAGS) $(INCLUDES) $(LDFLAGS) $(LIBS) fblogo.c
+
+ clean::
+ -rm -f *.o fblogo
+
+ install:
++ mkdir -p ${DESTDIR}${PREFIX}
++ mkdir -p ${DESTDIR}${BINDIR}
++ mkdir -p ${DESTDIR}${MANDIR}/man1
+ ${INSTALL_PROGRAM} fblogo ${DESTDIR}${BINDIR}
+ ${INSTALL_SCRIPT} fblogo_patch ${DESTDIR}${BINDIR}
+ ${INSTALL_FILE} fblogo.1 ${DESTDIR}${MANDIR}/man1
diff --git a/media-gfx/fblogo/metadata.xml b/media-gfx/fblogo/metadata.xml
new file mode 100644
index 000000000000..6f49eba8f496
--- /dev/null
+++ b/media-gfx/fblogo/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<!-- maintainer-needed -->
+</pkgmetadata>
diff --git a/media-gfx/feh/Manifest b/media-gfx/feh/Manifest
new file mode 100644
index 000000000000..83fa7484fb98
--- /dev/null
+++ b/media-gfx/feh/Manifest
@@ -0,0 +1,12 @@
+AUX feh-2.6.2-debug-cflags.patch 197 SHA256 77a833f28852c3ad6b0fbd03ce93098f31efd3ecdaf9a50a14e3d0b032b04873 SHA512 eb09a90a9ff3ba2ae7a40c8ef9e5b361d42bb045e194ddb5823111d780da265371ee087c6f80963d80f5cd1d0427478f46fec9b0f0607ad2bb122415a9c2e397 WHIRLPOOL 6a95e12ea4c3fc4a4f552740527155437df6a3a4ba0e848bc976de3c9b985f3dbaa5f43016bfa4444647d1253760531b9de10d5bf2c5176383e3b57d5b5e3fe7
+DIST feh-2.18.3.tar.bz2 2127924 SHA256 d82f68c7a96e1860dab3584ed58bda69446b692ae79a4ca999018507da310563 SHA512 3ffb44f8a2207c2c8725a519a23b7235a6df86aa8578b7b79a8819122e509d18dcc8263859e02cdbdeb5fb5ca56229f90aef567d53d63d763f8259fbc1fff515 WHIRLPOOL 27b5cf4cb2431f09d7e971330e53435d1dd575706d6228ee6b4bdb4e80f15806571d0435f2cca3567bbb124da715eabf59d5a9f84e52274729ce85c06e8161a8
+DIST feh-2.19.3.tar.bz2 2128692 SHA256 5ec97b655afbde3f1172543d175ec67fe35cd31397a009bda3fc3d40c1de7ed0 SHA512 0a5ee36bb9536e190b8aee11c097f5efd5f95dbb74ec299b41ec4d7d8bdfa68721b312607eb8e75941c4b79f92fcdbbc31731ab543907b2f6989bcc8e36ac6e5 WHIRLPOOL 4305cd425b20fe262fdcf4acf0ecfbeab8404bd6883fc9753f93109557b845cfe0a53edebad2d088a37bbafca7240daa4f0455d86e59793fc1f0ecc48e0716cb
+DIST feh-2.20.tar.bz2 2129466 SHA256 4b504302099ec6dd099c84dd7e285c80dc318977ebda48949593386bc26e700b SHA512 a621bc0b1327666af4ae71f6a9c286535b7951bde10f93cc5281304a1ab30e2584f94a5eb48d74dfc40deb007d9f88256a984bcfe2469bf4e11a9d8c8aa52ffc WHIRLPOOL fb2d8827b687a5b953ad3885745c78707f217cd4f3fb26940a34971d2ec8c13c2689e570882c89283877004d45e484ee3011cb9ffd0170949102743c454ecf5b
+DIST feh-2.21.tar.bz2 2129718 SHA256 520481c9908d999f8f7546103b78ff9b11f41d25b0938f0a22f10aaa48beef2b SHA512 f869d6588976973fca55714829478293bbd89fe03c7575c48847d23caec09353dc54eddf6fa41dc7f560c92eaee49ee23008258d72f4d55a49a5166625560a43 WHIRLPOOL 81db9d7b87a279468145e750392edb1e7ee477612f80e9ab51d09b313f1ee4efe0c3deffbcc3f7eb5da909a387c33bd9abe213b43f5c11601ad6e5af1ef0c10b
+EBUILD feh-2.18.3.ebuild 1191 SHA256 327d5fcfc9b1fb6955c5f5032f029fd601a293d7f7e61553e2822a341e5fd191 SHA512 cfdb2067a02a31747129abe3833a2999c15e02abbabb7a389380b6351f0d87aaa0b74b29e4253a33dcf12ede43f8964fb5b099a80c438cbe7523e91de45b172a WHIRLPOOL 2b15abc27a4d985c280ca53a360184197e1040d71ed9be8a1d9ff956c6a96e5b8d2e1e2e003d02f4a864819c8e1911d407a1b750eeb7b9d28653a4621d9f475e
+EBUILD feh-2.19.3.ebuild 1195 SHA256 16e0e9064638ab86d373c8c187ccb1f8e50d148bfb8c6f1460c0221e10210e5a SHA512 000e9e481940fe89f2346d63d75bf229e642fb0e517a0c27e93e7fec47807c2b554fff3088b3ff7a1a62902d6e9d99aad69069b8e7d44bf36586780b5f2ce149 WHIRLPOOL c31fd5b30341b19ea4661d8af21f22daf1338e6d4a617d90038ef8b4bda58ca96d0d7ee60e3f5a5bdcd24f3e0fd8fe42840f6b8ef577bd9851fb2589b6477f85
+EBUILD feh-2.20.ebuild 1195 SHA256 16e0e9064638ab86d373c8c187ccb1f8e50d148bfb8c6f1460c0221e10210e5a SHA512 000e9e481940fe89f2346d63d75bf229e642fb0e517a0c27e93e7fec47807c2b554fff3088b3ff7a1a62902d6e9d99aad69069b8e7d44bf36586780b5f2ce149 WHIRLPOOL c31fd5b30341b19ea4661d8af21f22daf1338e6d4a617d90038ef8b4bda58ca96d0d7ee60e3f5a5bdcd24f3e0fd8fe42840f6b8ef577bd9851fb2589b6477f85
+EBUILD feh-2.21.ebuild 1195 SHA256 16e0e9064638ab86d373c8c187ccb1f8e50d148bfb8c6f1460c0221e10210e5a SHA512 000e9e481940fe89f2346d63d75bf229e642fb0e517a0c27e93e7fec47807c2b554fff3088b3ff7a1a62902d6e9d99aad69069b8e7d44bf36586780b5f2ce149 WHIRLPOOL c31fd5b30341b19ea4661d8af21f22daf1338e6d4a617d90038ef8b4bda58ca96d0d7ee60e3f5a5bdcd24f3e0fd8fe42840f6b8ef577bd9851fb2589b6477f85
+MISC ChangeLog 3472 SHA256 41908da7bc5ca1f4d9b9f60583e320348319107c8fc3d0b84e95aadca0926149 SHA512 f8080fc442af6463655c8a436b9feaaa9411475ee76de80a0b9519c58181ffe214f0b93da45905b23f0c0dca39a59b54fe08dfadb825510b7b3b80e06226e708 WHIRLPOOL c936075316ad96810e7c4e23edfff3bf2692179ff20d203095196c4ac78dfaec41412ed75e4ebe8760e64c2e024a99b767340cd82bf01a83646b2aa781dfd6cf
+MISC ChangeLog-2015 17231 SHA256 20acc183674f24a9cd9b020dc2c3b1f8674c3097619acc6a46380d926ab002bb SHA512 8ab0f187fa04156efbdcc4efe00fbe923d29f7b4630dde949ffa6b767543925423ae4902b6696f12fa43b08206c1be373b49239d85a1920b131576ef8f163eca WHIRLPOOL d50b1f42f3fa9024b714e25d71f4c2866d5d46e1a24aa98b7951583f54a91abad5ac3ea2dbad2a939cf2e0e1544a402dbd98517429c7ab45a3231843ce73c81d
+MISC metadata.xml 465 SHA256 e9b6106235817c47527d2fcf6bdb955a7f62ef6b5e589d4d0ffb04bfa9a8bcdc SHA512 7156b24a140c6b586af743cc670b588eaba3c255fd356f689c26c737195ebcb9d36bcf7cc6291c668d8ae6a4da3d4914a0830d80d86e3831e966bc38708607c8 WHIRLPOOL 2772547721494a94410c40b3044a4512cfd6d1a402e26437b9f9a49d6e5582ee3d56ff22b87eaa005850a0c3cf3e684c60a5eff5d8ec9c708b15b8f764b217f7
diff --git a/media-gfx/feh/feh-2.18.3.ebuild b/media-gfx/feh/feh-2.18.3.ebuild
new file mode 100644
index 000000000000..1b1f2eb93d5c
--- /dev/null
+++ b/media-gfx/feh/feh-2.18.3.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit toolchain-funcs
+
+DESCRIPTION="A fast, lightweight imageviewer using imlib2"
+HOMEPAGE="https://feh.finalrewind.org/"
+SRC_URI="https://feh.finalrewind.org/${P}.tar.bz2"
+
+LICENSE="feh"
+SLOT="0"
+KEYWORDS="amd64 ~arm ~mips ppc ppc64 x86"
+IUSE="debug curl exif test xinerama"
+
+COMMON_DEPEND="media-libs/imlib2[X]
+ >=media-libs/libpng-1.2:0=
+ x11-libs/libX11
+ curl? ( net-misc/curl )
+ exif? ( media-libs/libexif )
+ xinerama? ( x11-libs/libXinerama )"
+RDEPEND="${COMMON_DEPEND}
+ virtual/jpeg:0"
+DEPEND="${COMMON_DEPEND}
+ x11-libs/libXt
+ x11-proto/xproto
+ test? (
+ >=dev-lang/perl-5.10
+ dev-perl/Test-Command
+ )"
+
+PATCHES=( "${FILESDIR}"/${PN}-2.6.2-debug-cflags.patch )
+
+pkg_setup() {
+ use_feh() { usex $1 1 0; }
+
+ fehopts=(
+ DESTDIR="${D}"
+ PREFIX="${EPREFIX}"/usr
+ doc_dir='${main_dir}'/share/doc/${PF}
+ example_dir='${main_dir}'/share/doc/${PF}/examples
+ curl=$(use_feh curl)
+ debug=$(use_feh debug)
+ xinerama=$(use_feh xinerama)
+ exif=$(use_feh exif)
+ )
+}
+
+src_compile() {
+ tc-export CC
+ emake "${fehopts[@]}"
+}
+
+src_install() {
+ emake "${fehopts[@]}" install
+}
diff --git a/media-gfx/feh/feh-2.19.3.ebuild b/media-gfx/feh/feh-2.19.3.ebuild
new file mode 100644
index 000000000000..73ad8e804e44
--- /dev/null
+++ b/media-gfx/feh/feh-2.19.3.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit toolchain-funcs
+
+DESCRIPTION="A fast, lightweight imageviewer using imlib2"
+HOMEPAGE="https://feh.finalrewind.org/"
+SRC_URI="https://feh.finalrewind.org/${P}.tar.bz2"
+
+LICENSE="feh"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~mips ~ppc ~ppc64 ~x86"
+IUSE="debug curl exif test xinerama"
+
+COMMON_DEPEND="media-libs/imlib2[X]
+ >=media-libs/libpng-1.2:0=
+ x11-libs/libX11
+ curl? ( net-misc/curl )
+ exif? ( media-libs/libexif )
+ xinerama? ( x11-libs/libXinerama )"
+RDEPEND="${COMMON_DEPEND}
+ virtual/jpeg:0"
+DEPEND="${COMMON_DEPEND}
+ x11-libs/libXt
+ x11-proto/xproto
+ test? (
+ >=dev-lang/perl-5.10
+ dev-perl/Test-Command
+ )"
+
+PATCHES=( "${FILESDIR}"/${PN}-2.6.2-debug-cflags.patch )
+
+pkg_setup() {
+ use_feh() { usex $1 1 0; }
+
+ fehopts=(
+ DESTDIR="${D}"
+ PREFIX="${EPREFIX}"/usr
+ doc_dir='${main_dir}'/share/doc/${PF}
+ example_dir='${main_dir}'/share/doc/${PF}/examples
+ curl=$(use_feh curl)
+ debug=$(use_feh debug)
+ xinerama=$(use_feh xinerama)
+ exif=$(use_feh exif)
+ )
+}
+
+src_compile() {
+ tc-export CC
+ emake "${fehopts[@]}"
+}
+
+src_install() {
+ emake "${fehopts[@]}" install
+}
diff --git a/media-gfx/feh/feh-2.20.ebuild b/media-gfx/feh/feh-2.20.ebuild
new file mode 100644
index 000000000000..73ad8e804e44
--- /dev/null
+++ b/media-gfx/feh/feh-2.20.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit toolchain-funcs
+
+DESCRIPTION="A fast, lightweight imageviewer using imlib2"
+HOMEPAGE="https://feh.finalrewind.org/"
+SRC_URI="https://feh.finalrewind.org/${P}.tar.bz2"
+
+LICENSE="feh"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~mips ~ppc ~ppc64 ~x86"
+IUSE="debug curl exif test xinerama"
+
+COMMON_DEPEND="media-libs/imlib2[X]
+ >=media-libs/libpng-1.2:0=
+ x11-libs/libX11
+ curl? ( net-misc/curl )
+ exif? ( media-libs/libexif )
+ xinerama? ( x11-libs/libXinerama )"
+RDEPEND="${COMMON_DEPEND}
+ virtual/jpeg:0"
+DEPEND="${COMMON_DEPEND}
+ x11-libs/libXt
+ x11-proto/xproto
+ test? (
+ >=dev-lang/perl-5.10
+ dev-perl/Test-Command
+ )"
+
+PATCHES=( "${FILESDIR}"/${PN}-2.6.2-debug-cflags.patch )
+
+pkg_setup() {
+ use_feh() { usex $1 1 0; }
+
+ fehopts=(
+ DESTDIR="${D}"
+ PREFIX="${EPREFIX}"/usr
+ doc_dir='${main_dir}'/share/doc/${PF}
+ example_dir='${main_dir}'/share/doc/${PF}/examples
+ curl=$(use_feh curl)
+ debug=$(use_feh debug)
+ xinerama=$(use_feh xinerama)
+ exif=$(use_feh exif)
+ )
+}
+
+src_compile() {
+ tc-export CC
+ emake "${fehopts[@]}"
+}
+
+src_install() {
+ emake "${fehopts[@]}" install
+}
diff --git a/media-gfx/feh/feh-2.21.ebuild b/media-gfx/feh/feh-2.21.ebuild
new file mode 100644
index 000000000000..73ad8e804e44
--- /dev/null
+++ b/media-gfx/feh/feh-2.21.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit toolchain-funcs
+
+DESCRIPTION="A fast, lightweight imageviewer using imlib2"
+HOMEPAGE="https://feh.finalrewind.org/"
+SRC_URI="https://feh.finalrewind.org/${P}.tar.bz2"
+
+LICENSE="feh"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~mips ~ppc ~ppc64 ~x86"
+IUSE="debug curl exif test xinerama"
+
+COMMON_DEPEND="media-libs/imlib2[X]
+ >=media-libs/libpng-1.2:0=
+ x11-libs/libX11
+ curl? ( net-misc/curl )
+ exif? ( media-libs/libexif )
+ xinerama? ( x11-libs/libXinerama )"
+RDEPEND="${COMMON_DEPEND}
+ virtual/jpeg:0"
+DEPEND="${COMMON_DEPEND}
+ x11-libs/libXt
+ x11-proto/xproto
+ test? (
+ >=dev-lang/perl-5.10
+ dev-perl/Test-Command
+ )"
+
+PATCHES=( "${FILESDIR}"/${PN}-2.6.2-debug-cflags.patch )
+
+pkg_setup() {
+ use_feh() { usex $1 1 0; }
+
+ fehopts=(
+ DESTDIR="${D}"
+ PREFIX="${EPREFIX}"/usr
+ doc_dir='${main_dir}'/share/doc/${PF}
+ example_dir='${main_dir}'/share/doc/${PF}/examples
+ curl=$(use_feh curl)
+ debug=$(use_feh debug)
+ xinerama=$(use_feh xinerama)
+ exif=$(use_feh exif)
+ )
+}
+
+src_compile() {
+ tc-export CC
+ emake "${fehopts[@]}"
+}
+
+src_install() {
+ emake "${fehopts[@]}" install
+}
diff --git a/media-gfx/feh/files/feh-2.6.2-debug-cflags.patch b/media-gfx/feh/files/feh-2.6.2-debug-cflags.patch
new file mode 100644
index 000000000000..a4a71acef30c
--- /dev/null
+++ b/media-gfx/feh/files/feh-2.6.2-debug-cflags.patch
@@ -0,0 +1,11 @@
+--- feh-2.6.2/config.mk
++++ feh-2.6.2/config.mk
+@@ -32,7 +32,7 @@
+ endif
+
+ ifeq (${debug},1)
+- CFLAGS += -DDEBUG -O0
++ CFLAGS += -DDEBUG
+ MAN_DEBUG = . This is a debug build.
+ else
+ MAN_DEBUG =
diff --git a/media-gfx/feh/metadata.xml b/media-gfx/feh/metadata.xml
new file mode 100644
index 000000000000..546078226b28
--- /dev/null
+++ b/media-gfx/feh/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="person">
+ <email>hwoarang@gentoo.org</email>
+ <name>Markos Chandras</name>
+</maintainer>
+<maintainer type="project">
+ <email>graphics@gentoo.org</email>
+ <name>Gentoo Graphics Project</name>
+</maintainer>
+<longdescription>
+feh is an image viewer at heart, though it does other cool stuff.
+</longdescription>
+</pkgmetadata>
diff --git a/media-gfx/figurine/Manifest b/media-gfx/figurine/Manifest
new file mode 100644
index 000000000000..ee23b1ee7d4a
--- /dev/null
+++ b/media-gfx/figurine/Manifest
@@ -0,0 +1,6 @@
+DIST figurine-1.0.5.tar.gz 293105 SHA256 9844d135790dea8c6df35065343c82f233688752bcb5008db310a4a814242705 SHA512 e3b6a2d0d4b8a4837f27eb40ff158444ff59ac7d826cc780c6c13760e0d6e72844a7b6de69e482dfee12c020600e40c58fb5b4b9efa935342ada6fe62b57eff6 WHIRLPOOL 9ce832a6b800598e6ba9335c22698f31bf9e23c484cc70e601c73030948798e7d6604783f9818b454c8a3a0e57c8f01a3bb7bd4829cf2eaa73fb8ab82c781c96
+EBUILD figurine-1.0.5-r1.ebuild 568 SHA256 1c465002466e2881971534deab9efd81069a878a67444cf440ebb12711791cc3 SHA512 30901689590a7f10b548893d13865bd467b9081b078ddb0210ea99dd5eb61c56141a2a394f03a6cdb5a629e48bd3d83bdef99442dcf4c304144ab5ebabea52f6 WHIRLPOOL 2f473da0cf8f34038d6300eb0535c9fcfc28a1831c6300f6d40280e0f58fd76a952507762dff001561c7f701ef423537157d888f05b60d377c67da8aa915953f
+EBUILD figurine-1.0.5.ebuild 598 SHA256 39a283e36a47c07d8ad41fa51bb1c42bd6f983fadc31e46452236910b50d7778 SHA512 15fcb3b83492e9cbd70d44a76211fbab3eb39523cdd865560dd9baf33fde631e1adebb793978da837d9918e43d190ce387efd177fe6bf458ee295e614ae7fd93 WHIRLPOOL 6d38ed06ca6898d45bf9f4f4b2ba54dbef2517bb83c33b282545a822b9b6614c2ef93442b7e7632ac591de7debf04b2665028a6541731f25a5cc291993aa1cd6
+MISC ChangeLog 2526 SHA256 09cd8cba5d0308e055d13b50b372e8a53d492dc9e2b63813d63ca1ea9a55c005 SHA512 c5cc09be4a0178772210614438dc9d2a71759fc3c1fefa5cc373cf8fbf2bc1835b87ffb1c53304c4a0721a550125f1148f67e53023c85923576791483977c8ad WHIRLPOOL 2e4ff26337c074396426a5e654543489f7a429af4d49bbdf24a2ac46c33cd0af3799246a2830fcd1c4417c21ec4c52cd18cf205e33d688a85d4a35e9be73b6a1
+MISC ChangeLog-2015 1393 SHA256 aa402c961a45129cdd5e1c641907f4496ea8d8a4df5e9127277b13171022def4 SHA512 8fe65e6bd279871746920e2a47f42eeefd9663e9ab446eab6b3a56a48e3d8ff9e0b4fd7b0bf597664238ffb7770bd0d9e3c47983af4537bbc1dcab1169d97f17 WHIRLPOOL 67885b8919e7a7e4b7d979d655d21ca7883283f63372218b6d91b590d6a0099f7e7821841266e44d0b5c071beb62cac4a73c8cadf665009ee42a6e07cbb0a34e
+MISC metadata.xml 245 SHA256 0761d5e661715b473bfd327bd23e490ee5b7e930d2f37f060e89d14882ebc89e SHA512 122e29d489968047e70dd824a49ffc4dede2a4c632e203a820abe03ea2478cb94b7aad94409ca235f227a034e16141c556fbe462833edfa802f03169215d4c0d WHIRLPOOL 71b387297a2bd9c48f536f22e49afbffa88c133ca0f85b280fb9b3f4c04ad37e2c7df59350a16cf22b056b5a4318e0c4b5ada9e6e64149f492673a5610dc9cbe
diff --git a/media-gfx/figurine/figurine-1.0.5-r1.ebuild b/media-gfx/figurine/figurine-1.0.5-r1.ebuild
new file mode 100644
index 000000000000..23b4be50572f
--- /dev/null
+++ b/media-gfx/figurine/figurine-1.0.5-r1.ebuild
@@ -0,0 +1,26 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DESCRIPTION="A vector based graphics editor similar to xfig, but simpler"
+HOMEPAGE="http://figurine.sourceforge.net/"
+SRC_URI="mirror://sourceforge/figurine/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux ~ppc-macos"
+IUSE=""
+
+RDEPEND=""
+DEPEND="${RDEPEND}
+ >=media-gfx/transfig-3.2"
+
+src_configure() {
+ econf
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+ dodoc AUTHORS BUGS ChangeLog INSTALL NEWS README
+}
diff --git a/media-gfx/figurine/figurine-1.0.5.ebuild b/media-gfx/figurine/figurine-1.0.5.ebuild
new file mode 100644
index 000000000000..fb75996726ba
--- /dev/null
+++ b/media-gfx/figurine/figurine-1.0.5.ebuild
@@ -0,0 +1,23 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+DESCRIPTION="A vector based graphics editor similar to xfig, but simpler"
+HOMEPAGE="http://figurine.sourceforge.net/"
+SRC_URI="mirror://sourceforge/figurine/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ppc x86 ~amd64-linux ~x86-linux ~ppc-macos"
+IUSE=""
+
+DEPEND=">=media-gfx/transfig-3.2"
+
+src_compile() {
+ econf || die "econf failed"
+ emake || die "make failed"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die
+ dodoc AUTHORS BUGS COPYING ChangeLog INSTALL NEWS README
+}
diff --git a/media-gfx/figurine/metadata.xml b/media-gfx/figurine/metadata.xml
new file mode 100644
index 000000000000..3441c7fa8147
--- /dev/null
+++ b/media-gfx/figurine/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-needed -->
+ <upstream>
+ <remote-id type="sourceforge">figurine</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/media-gfx/fim/Manifest b/media-gfx/fim/Manifest
new file mode 100644
index 000000000000..7ce3c2da4c3a
--- /dev/null
+++ b/media-gfx/fim/Manifest
@@ -0,0 +1,6 @@
+AUX fim-0.4_rc3-poppler031.patch 706 SHA256 486ea7d2e9c5186ece27ffdccfd025619b0455bf7d28d4bfff526ba0ef6efca4 SHA512 ddd9d5a9a8fee1269af6daed3edf965f3a2eba33c31c86bfae5af1b1db2e6809e6ad92439b9a438a7ab8a8dc7e30f9c472aad8d13c96b3d5371726b6fac6972c WHIRLPOOL 493dc57b7090cd506f15f3892e2ac1be52696b3deadf23554c1e76a5b3aad0e885eff9d89909f9e977da48b11f78c9313143f22cd16831852cc81d00f0f99745
+DIST fim-0.4-rc3.tar.bz2 504681 SHA256 d0bf902f9fcc728f4a2acfad5474e8dd60f84922fea5119265f46e66032ed92a SHA512 82a2b191c0cd26fb77b442df9ed104e51ae15f485390f07cf15a043725e6ee9b860ce903bf8355ad556adbbe076516a8807c0a6d937e89177e46c0068d5acabf WHIRLPOOL bf977a0333ec7d7d087811c88290cddc68f7a2d50f27180aa9000200e32432abf5767a40e4cef2affc3c3b8218da07b23346d06f5af5cace4f11ff1901a6311b
+EBUILD fim-0.4_rc3-r2.ebuild 2454 SHA256 604e8c8e968fc633202eb1b8de784e6f9923a43184f159355d75fe321b0e2545 SHA512 f7120fe028a06b267c6d0445415e1be39e3cfa8b767ab73750115b859492665ebfef19dcd539a56bdf160428930b26687807ff4406f48f45f1ec31c78328a6f6 WHIRLPOOL b7b65f7e23e3773013b987b2f0cf8c8013055ec943cc7d78206e701444669ca119d98b40d6422474712a28e7fc1916856a86eb6e582e2c6c6aaf5895aed60830
+MISC ChangeLog 2507 SHA256 372be30987b10a3744dba6bdb25589607767f4c5767a43edba4f7cc41bba0588 SHA512 20fb7a956bd21675f2e259d47722f06bd1eb378784e8c09d0661ce7c1d3bc574fc04ea3fdbb47a309e5a696e1b8e63d2029050beee92c12527953100ec60f3e8 WHIRLPOOL a8ac36fe0a437c52bd4e04d38553ea417266207ca600938cf5039fa1fbc0c3955f5db27d6bd222685229c41d0610c14f3ee1bbb04c223f87a1c5be6312de8e24
+MISC ChangeLog-2015 1544 SHA256 39ac6a32e014527e31c437c4bc291a91aefe5b3add29111b80c55eed9efda5b2 SHA512 9d6598dd064d462e2707e64bc8375b6d0484d61722581a8b94e1afdd35a6c6fe20b701abf3ddf17aa1254611a51612bf1b6286887bd8a2822746d46a3a9963f2 WHIRLPOOL f6ad99fc9dd68143119caf30c808ee0d9a08d628bcb4bf9d18a72cee8a5b3d0bc5fe4903007b3d7f1af5f5eb2e33cdc4cdbdc9c994f84769983c0bfcba14454b
+MISC metadata.xml 492 SHA256 6e2a7855c26e45793663884569cfc46b0caacd0a9b5f17f5f90b76b9cec17741 SHA512 48b25d06654705efc6b14b9e7d4a5198f3146e281151bfd54b48c181296a45cb2a38f3548257b369ab100b2502a31c15fc2b07e80ae2c2a15b4480321db2e32c WHIRLPOOL 357c104a336c9d94a0829903d13a72be2ac230ed77e0fae203610b1b4e333e751747a469c2d78b8d27d688022a8cda7eebe203b56ddb2e94316460db7b0cc2ae
diff --git a/media-gfx/fim/files/fim-0.4_rc3-poppler031.patch b/media-gfx/fim/files/fim-0.4_rc3-poppler031.patch
new file mode 100644
index 000000000000..74ba50aa5155
--- /dev/null
+++ b/media-gfx/fim/files/fim-0.4_rc3-poppler031.patch
@@ -0,0 +1,12 @@
+diff -ruN fim-0.4-rc3.orig/src/FbiStuffPdf.cpp fim-0.4-rc3/src/FbiStuffPdf.cpp
+--- fim-0.4-rc3.orig/src/FbiStuffPdf.cpp 2014-12-22 23:54:29.000000000 +0100
++++ fim-0.4-rc3/src/FbiStuffPdf.cpp 2015-05-18 21:13:07.058115455 +0200
+@@ -199,7 +199,7 @@
+ if (!ds->od)
+ {
+ GBool bitmapTopDown = gTrue;
+- ds->od = new SplashOutputDev(gSplashColorMode, /*4*/3, gFalse, gBgColor, bitmapTopDown,gFalse/*antialias*/);
++ ds->od = new SplashOutputDev(gSplashColorMode, /*4*/3, gFalse, gBgColor, bitmapTopDown);
+ if (ds->od)
+ #ifdef POPPLER_VERSION /* as of 0.20.2, from poppler/poppler-config.h */
+ /* FIXME: this is an incomplete fix (triggered on 20120719's email on fim-devel);
diff --git a/media-gfx/fim/fim-0.4_rc3-r2.ebuild b/media-gfx/fim/fim-0.4_rc3-r2.ebuild
new file mode 100644
index 000000000000..9559c4739fac
--- /dev/null
+++ b/media-gfx/fim/fim-0.4_rc3-r2.ebuild
@@ -0,0 +1,93 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit eutils
+
+DESCRIPTION="Fbi-IMproved is a framebuffer image viewer based on Fbi and inspired from Vim"
+HOMEPAGE="https://savannah.nongnu.org/projects/fbi-improved"
+SRC_URI="http://download.savannah.gnu.org/releases/fbi-improved/${P/_rc/-rc}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~x86"
+IUSE="aalib dia djvu exif fbcon gif graphicsmagick imagemagick jpeg pdf png postscript readline sdl static svg tiff xfig"
+
+RDEPEND="media-fonts/terminus-font
+ aalib? ( media-libs/aalib[slang] )
+ dia? ( app-office/dia )
+ djvu? ( app-text/djvu )
+ exif? ( media-libs/libexif )
+ gif? ( media-libs/giflib )
+ graphicsmagick? ( media-gfx/graphicsmagick )
+ imagemagick? ( virtual/imagemagick-tools )
+ jpeg? ( virtual/jpeg:0 )
+ pdf? ( >=app-text/poppler-0.31 )
+ png? ( media-libs/libpng:0 )
+ postscript? ( app-text/libspectre )
+ readline? ( sys-libs/readline:0 )
+ sdl? ( media-libs/libsdl )
+ svg? ( media-gfx/inkscape )
+ tiff? ( media-libs/tiff:0 )
+ xfig? ( media-gfx/xfig )"
+DEPEND="${RDEPEND}
+ sys-devel/bison
+ sys-devel/flex"
+
+S=${WORKDIR}/${P/_rc/-rc}
+
+src_prepare() {
+ epatch "${FILESDIR}/${P}-poppler031.patch"
+}
+
+src_configure() {
+ econf \
+ $(use_enable aalib aa) \
+ $(use_enable dia) \
+ $(use_enable djvu) \
+ $(use_enable exif) \
+ $(use_enable fbcon framebuffer) \
+ $(use_enable gif) \
+ $(use_enable graphicsmagick) \
+ $(use_enable imagemagick convert) \
+ $(use_enable pdf poppler) \
+ $(use_enable png) \
+ $(use_enable postscript ps) \
+ $(use_enable readline) \
+ $(use_enable sdl) \
+ $(use_enable static) \
+ $(use_enable svg inkscape) \
+ $(use_enable tiff) \
+ $(use_enable xfig) \
+ --disable-hardcoded-font \
+ --disable-imlib2 \
+ --disable-matrices-rendering \
+ --disable-xcftopnm \
+ --enable-fimrc \
+ --enable-history \
+ --enable-loader-string-specification \
+ --enable-mark-and-dump \
+ --enable-output-console \
+ --enable-raw-bits-rendering \
+ --enable-read-dirs \
+ --enable-recursive-dirs \
+ --enable-resize-optimizations \
+ --enable-scan-consolefonts \
+ --enable-screen \
+ --enable-scripting \
+ --enable-seek-magic \
+ --enable-stdin-image-reading \
+ --enable-unicode \
+ --enable-warnings \
+ --enable-windows \
+ --with-default-consolefont=/usr/share/consolefonts/ter-114n.psf.gz
+}
+
+src_compile() {
+ emake -j1
+}
+
+src_install() {
+ emake DESTDIR="${D}" docdir=/usr/share/doc/${PF} install
+}
diff --git a/media-gfx/fim/metadata.xml b/media-gfx/fim/metadata.xml
new file mode 100644
index 000000000000..6b3d433fbf24
--- /dev/null
+++ b/media-gfx/fim/metadata.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="person">
+<email>xmw@gentoo.org</email>
+<name>Michael Weber</name>
+</maintainer>
+<use>
+ <flag name="dia">Enable DIA file support via app-office/dia</flag>
+ <flag name="imagemagick">Use convert from media-gfx/imagemagick as fallback file opener</flag>
+ <flag name="xfig">Enable FIG file support via media-gfx/xfig</flag>
+</use>
+</pkgmetadata>
diff --git a/media-gfx/flam3/Manifest b/media-gfx/flam3/Manifest
new file mode 100644
index 000000000000..e0a4a46c1722
--- /dev/null
+++ b/media-gfx/flam3/Manifest
@@ -0,0 +1,9 @@
+AUX flam3-3.0.1-libpng15.patch 2446 SHA256 2f90c112edff5418ca662b4dea7de8a21ca870fad1024c294c714e89b6b7fb23 SHA512 e14120be47dbeef0d7790385f3202dee2014f6cc48631b6a14a3cc8b759771a32b4ef2a3cdfd5048d0286ef173c95d017b4c3c997bab3f909fb777a95832df28 WHIRLPOOL 96ebdb3d93d65882a0945ceb5af4bac202cfcbb439f84194c6a53fc6b0814c6a53156f35cde9f080600bfce66646208fa8cfa32bb1b36bf29c0ac1576dd9ffee
+DIST flam3-3.0.1.tar.gz 1238703 SHA256 70810049604527a689ba172670c152b463273255e46f0f04091c867399859aa7 SHA512 c91a21a0e1ca9f4d2ba929bf91c2ef95275dec6d892dafb0da3cc169cd1777326a2dff98b58d55352dfae6347574cceec234f99d06f117f832f39b089bac2f9d WHIRLPOOL cce3739017c44ee4d22d41b464807055f8ed31ab9e3b79e66bae86f4f16dd4d605dde6212bdfeb82852b07c3b5ef252930e59815d2d15a307873bf3a810306d4
+DIST flam3-3.1.1.tar.gz 1181954 SHA256 afcd4af13897740e34f6ae1f3061bbfbda9c1dd5df3ecc9f57141c985d35d19d SHA512 8a84840d9cb91d63dd0ba5c8a6725f703f6315a7add0c091502c0dac5c77eb0495054bb4b601f72454dea0def99131ca679095da65eeebaae9b01dc59cf75e7e WHIRLPOOL ddce81176d62de31c223166c21ab3297f796858f8f6e81937a5540d9b3de3c395d3e54591eb3f9086f7396b71e514980ecab41e3e066828f52ccb84598d68d2b
+EBUILD flam3-3.0.1.ebuild 838 SHA256 e400b2c712e20ece5d4e971bb9be8927aaf5715e5a8168a03a6b85aab06cf940 SHA512 c839de2a09adb48a5b266f346e3ffd0ab4cbb52fe30a5a6cf4de2ced4ed4b813a1f71b5fd990b309a948d1be1d259f65bd3455b9c1b6b624526a84e86b757883 WHIRLPOOL 93b2552e642f5288adf81030da717392a88266dd2f05f38f6458f18745f89d5e8e3e86f3ebed049fa5b6001ef1091b37094df7a79fc7367a36a7f179e8d106a2
+EBUILD flam3-3.1.1.ebuild 757 SHA256 3310b8d3b264f1c5d57856825a584fb9e8273dccd9e134c3c045381e032ddef5 SHA512 ef1970ca8b61621036da8149d131e7f70680d9e72eba2d6d0b0a53cbada7556313c5c298025ed25f079c12c0a837b25e7dfb68c37003e0a942b7e34deb8899ff WHIRLPOOL b05fc4e54c4fecfe194441915ee43b048b95c63cecb4b0c4c7cbafbad7bbdfc0a71c02142368c589369823cf18d1137576f91ce9d67dff3a8c374a16aca05052
+EBUILD flam3-9999.ebuild 754 SHA256 0e6835cc21307393cc30a295af438d9454d2b20c12ebd0c7c00fcca38fa32a22 SHA512 4ab940980ca64c5d9e2c54c71b0979a1b4c6cfa5850d1abae3fe7479b2503fed8aa3d38cd3516997b43b39033c1f0d6965253cadfc47690f63604be5adb1b746 WHIRLPOOL 9490c770763b3543d7807d21db9a64633a4115e80bea833436b8da2c4608e22724cc95bde8a47e97f8b9c66edfc577d681554bed17ae42e605935e02ddeec5e3
+MISC ChangeLog 2436 SHA256 d474155cc018dbea1506cd48002155829de845a0fd2f901e6ce55f1beda5b4a3 SHA512 2bc7bc9ccf8bad12d1af698b840e30624f8fa9e29c22633f4d0629411dd129ce06046256e9f31f875212515923b2be455e3b203b28fcd942699b7fdf103715ca WHIRLPOOL bb2f77dcd8933e614ca1b81d1c7878cdf59ce0d0110c49b483d0783dcadd4f950876b62ec11b92a1100d9be3687a98744d13de3cfcfbc0fbc87bf5d0178d6910
+MISC ChangeLog-2015 2645 SHA256 0e74d0439fe1dc090169d92838c2643bebe7ec02ec2362727efbaea871202b40 SHA512 2160434d96d4f3a684159dceff665daf3249e06e33249da273ea4234a1a873345ed6fd191cc186cd32536530c3ba78ba2d34531e487e199ee63e937a5556dcdb WHIRLPOOL 685e2e32ccdbeac5a72b7177f4c8cd2596a588137940d9133677cc7c78f64eee431dd7fba5ac1a233f575a3eeb386fd3e2572bfb91c395143931b77412c3474a
+MISC metadata.xml 322 SHA256 da5d6ed11174684a356c7e8ddae200936c4f089474063fe87352b4a0f19db669 SHA512 98b61c299f8cfa8c42a5f4b5b51b9eecbdffe3632ef8fd687afab26454fa8fccb71348a42cca69fbae7d154f69814feac61c4109ba671dd2fa413bf75e0445ca WHIRLPOOL 3e50a1b02e7709c64f939c75bdc7ceb65ddc1b582374a13e2fa2fa7d790a9ce643f27325a3cdc027c5608d9ab7851786d2497e52401459e15b7fc3b8dec815ea
diff --git a/media-gfx/flam3/files/flam3-3.0.1-libpng15.patch b/media-gfx/flam3/files/flam3-3.0.1-libpng15.patch
new file mode 100644
index 000000000000..61f905589872
--- /dev/null
+++ b/media-gfx/flam3/files/flam3-3.0.1-libpng15.patch
@@ -0,0 +1,76 @@
+http://code.google.com/p/flam3/issues/detail?id=8
+
+--- src/png.c
++++ src/png.c
+@@ -142,7 +142,7 @@
+ }
+ if (setjmp(png_jmpbuf(png_ptr))) {
+ if (png_image) {
+- for (y = 0 ; y < info_ptr->height ; y++)
++ for (y = 0 ; y < png_get_image_height(png_ptr, info_ptr) ; y++)
+ free (png_image[y]);
+ free (png_image);
+ }
+@@ -161,19 +161,19 @@
+ png_set_sig_bytes (png_ptr, SIG_CHECK_SIZE);
+ png_read_info (png_ptr, info_ptr);
+
+- if (8 != info_ptr->bit_depth) {
++ if (8 != png_get_bit_depth(png_ptr, info_ptr)) {
+ fprintf(stderr, "bit depth type must be 8, not %d.\n",
+- info_ptr->bit_depth);
++ png_get_bit_depth(png_ptr, info_ptr));
+ return 0;
+ }
+
+- *width = info_ptr->width;
+- *height = info_ptr->height;
++ *width = png_get_image_width(png_ptr, info_ptr);
++ *height = png_get_image_height(png_ptr, info_ptr);
+ p = q = malloc(4 * *width * *height);
+- png_image = (png_byte **)malloc (info_ptr->height * sizeof (png_byte*));
++ png_image = (png_byte **)malloc (png_get_image_height(png_ptr, info_ptr) * sizeof (png_byte*));
+
+- linesize = info_ptr->width;
+- switch (info_ptr->color_type) {
++ linesize = png_get_image_width(png_ptr, info_ptr);
++ switch (png_get_color_type(png_ptr, info_ptr)) {
+ case PNG_COLOR_TYPE_RGB:
+ linesize *= 3;
+ break;
+@@ -182,21 +182,21 @@
+ break;
+ default:
+ fprintf(stderr, "color type must be RGB or RGBA not %d.\n",
+- info_ptr->color_type);
++ png_get_color_type(png_ptr, info_ptr));
+ return 0;
+ }
+
+- for (y = 0 ; y < info_ptr->height ; y++) {
++ for (y = 0 ; y < png_get_image_height(png_ptr, info_ptr) ; y++) {
+ png_image[y] = malloc (linesize);
+ }
+ png_read_image (png_ptr, png_image);
+ png_read_end (png_ptr, info_ptr);
+
+- for (y = 0 ; y < info_ptr->height ; y++) {
++ for (y = 0 ; y < png_get_image_height(png_ptr, info_ptr) ; y++) {
+ unsigned char *s = png_image[y];
+- for (x = 0 ; x < info_ptr->width ; x++) {
++ for (x = 0 ; x < png_get_image_width(png_ptr, info_ptr) ; x++) {
+
+- switch (info_ptr->color_type) {
++ switch (png_get_color_type(png_ptr, info_ptr)) {
+ case PNG_COLOR_TYPE_RGB:
+ p[0] = s[0];
+ p[1] = s[1];
+@@ -217,7 +217,7 @@
+ }
+ }
+
+- for (y = 0 ; y < info_ptr->height ; y++)
++ for (y = 0 ; y < png_get_image_height(png_ptr, info_ptr) ; y++)
+ free (png_image[y]);
+ free (png_image);
+ png_destroy_read_struct (&png_ptr, &info_ptr, (png_infopp)NULL);
diff --git a/media-gfx/flam3/flam3-3.0.1.ebuild b/media-gfx/flam3/flam3-3.0.1.ebuild
new file mode 100644
index 000000000000..58aa8956f8bf
--- /dev/null
+++ b/media-gfx/flam3/flam3-3.0.1.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+inherit autotools eutils
+
+DESCRIPTION="Tools and a library for creating flame fractal images"
+HOMEPAGE="http://flam3.com/"
+SRC_URI="https://flam3.googlecode.com/files/${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="static-libs"
+
+RDEPEND="dev-libs/libxml2
+ media-libs/libpng
+ virtual/jpeg
+ !<=x11-misc/electricsheep-2.6.8-r2"
+DEPEND="${RDEPEND}"
+
+S=${S}/src
+
+DOCS=( README.txt )
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-libpng15.patch
+ sed -e "s/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/" -i configure.in || die
+ eautoreconf
+}
+
+src_configure() {
+ econf \
+ --enable-shared \
+ $(use_enable static-libs static)
+}
+
+src_install() {
+ default
+
+ rm -f "${D}"usr/lib*/libflam3.la
+
+ docinto examples
+ dodoc *.flam3
+}
diff --git a/media-gfx/flam3/flam3-3.1.1.ebuild b/media-gfx/flam3/flam3-3.1.1.ebuild
new file mode 100644
index 000000000000..fe84e0f3b1cc
--- /dev/null
+++ b/media-gfx/flam3/flam3-3.1.1.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit autotools eutils
+
+DESCRIPTION="Tools and a library for creating flame fractal images"
+HOMEPAGE="http://flam3.com/"
+SRC_URI="https://github.com/scottdraves/flam3/archive/v$PV.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="static-libs"
+
+RDEPEND="dev-libs/libxml2
+ media-libs/libpng:=
+ virtual/jpeg:=
+ !<=x11-misc/electricsheep-2.6.8-r2"
+DEPEND="${RDEPEND}"
+
+DOCS=( README.txt )
+
+src_prepare() {
+ eautoreconf
+ eapply_user
+}
+
+src_configure() {
+ econf \
+ --enable-shared \
+ $(use_enable static-libs static)
+}
+
+src_install() {
+ default
+
+ rm -f "${D}"usr/lib*/libflam3.la
+
+ docinto examples
+ dodoc *.flam3
+}
diff --git a/media-gfx/flam3/flam3-9999.ebuild b/media-gfx/flam3/flam3-9999.ebuild
new file mode 100644
index 000000000000..2370221b0649
--- /dev/null
+++ b/media-gfx/flam3/flam3-9999.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=2
+
+inherit autotools subversion
+
+DESCRIPTION="Tools and a library for creating fractal flames"
+HOMEPAGE="http://flam3.com/"
+SRC_URI=""
+ESVN_REPO_URI="https://flam3.googlecode.com/svn/trunk/src/"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS=""
+IUSE=""
+
+DEPEND="dev-libs/libxml2
+ virtual/jpeg
+ media-libs/libpng
+ !<=x11-misc/electricsheep-2.6.8-r2"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ mkdir m4
+ sed -e "s/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/" -i configure.in || die
+ eautoreconf
+}
+
+src_configure() {
+ econf --enable-shared
+}
+
+src_install() {
+ emake install DESTDIR="${D}" || die "emake install failed"
+ dodoc README.txt *.flam3 || die "dodoc failed"
+}
diff --git a/media-gfx/flam3/metadata.xml b/media-gfx/flam3/metadata.xml
new file mode 100644
index 000000000000..6cefa895a658
--- /dev/null
+++ b/media-gfx/flam3/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>patrick@gentoo.org</email>
+ <name>Patrick Lauer</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="google-code">flam3</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/media-gfx/fondu/Manifest b/media-gfx/fondu/Manifest
new file mode 100644
index 000000000000..dd238024e1ed
--- /dev/null
+++ b/media-gfx/fondu/Manifest
@@ -0,0 +1,6 @@
+AUX fondu-20060102-build-fix.patch 2446 SHA256 1719b84e44e807499babe9eebd24c948d0c3f3837a5826bcb59b9e6e240e3462 SHA512 02bd3202020718501540249d9f97c82ee3ddae25f6371a06d7b448fb43e393b5b2bcf5d6609395e6928d5bb559ed6b36614ae6cae271b4aae6afa2f0916b533b WHIRLPOOL 61f43d049802a1e483d21a0ce1dca1037cb642398c2fd6899d66499cf1823832d3e3914bd228d540c7948533aac85fb72d0186b0bfe434480292de20fa9a5da7
+DIST fondu_src-060102.tgz 131516 SHA256 22bb535d670ebc1766b602d804bebe7e84f907c219734e6a955fcbd414ce5794 SHA512 01d31901ab50eee70a74a3e211d78c55173748ad6e0cdadcda471a1f543856795a3bd8b421206cde044d240a1b425f32f6e40239ade0e87517e00b6ed9277bce WHIRLPOOL 26a39158cc4bda39f62c6dee9f6ab62fa9f5e0143924550e1bc806285e16755d6dd212b8c5b56c46bf7beb9a35019ab9171beb7d31d9887480a984b032d02d66
+EBUILD fondu-20060102-r1.ebuild 729 SHA256 e9feefa6ffc2095b11ae5044ce26932140fa23b14877fddf82d66458afd39d41 SHA512 35b4307249bc29771253a65050d932f598ef4d493a5226a40a838386b54b301b38689a44d1bfeb44734296a8ae4fe8dd4a6c7efd5a4f1a3214ec2732c8f7a335 WHIRLPOOL 60710b816eb192eb9a6869da1ecc5559d89229d5116e6b292da2f1fea2121ec27cf7f30b8aeb1def387f70781dc3f9ff9214f1a914b2ce94ac422c0bd3e7c62a
+MISC ChangeLog 3021 SHA256 56a13cb3ecc064b078f6b25e45095ff9ef1a7720b2bbced42bd5616256f27560 SHA512 ae442ae480849753c5bd413bf987f6bebdb69651eff60679dedc612061ef3f75919a000e4a38bebfcf3d471eb77924e67f3ac9134ff390a7d684aede35514feb WHIRLPOOL 55396ce5c8372493466750dd2edeac72cab73b77dcf7600d7cfc8c5c07160cd1ccda5df2e0b17055bc2340cac4e9af4c8206aeb670f5f0672dfcc75996f5ad5a
+MISC ChangeLog-2015 2124 SHA256 066fb3b29c0f34578828e3a07cb5b748db988167a267023957b2d8bb3ca469d8 SHA512 cb953bb581aaa8215fd72090822d43785be805761d27269aa90578df4fbf5eb203f5ceacb953109239ac1cbc2073ff7d9f2da338519efff964856d5257ce6667 WHIRLPOOL c5e5187012b58c941fc7ab4bef71a27b4f2bd00083dae2ab7b007b775fd627674d767602c0fcac61f768f3e86a9946b19cbb503f73189c1802eba1ca9120e549
+MISC metadata.xml 313 SHA256 f6a6690c2f029ec739375226e55d70a1f4042c77a65a6085334ff8e5cd50f76f SHA512 142d5ea488f33eaf8b47fc0d3cb330bc01a425756a7d49ad0df7f60dcebf1ba986684b4dd2e2c44ce41d2af018b9586f94f903ce7ba2aec0eb8958d8b7586e48 WHIRLPOOL 06ee167260fb58922810c430246afb2ffeb28fa2ee440a40ed6e922e02fa6d609a440e046a5cd7db904b2f88794638776c77711db04f1ced149286ee3fd3e5be
diff --git a/media-gfx/fondu/files/fondu-20060102-build-fix.patch b/media-gfx/fondu/files/fondu-20060102-build-fix.patch
new file mode 100644
index 000000000000..d84d0b7bde4e
--- /dev/null
+++ b/media-gfx/fondu/files/fondu-20060102-build-fix.patch
@@ -0,0 +1,70 @@
+Fixes:
+x86_64-pc-linux-gnu-gcc -O2 -c -o fondu.o fondu.c
+fondu.c: In function 'BuildFondList':
+fondu.c:515: error: called object 'strlen' is not a function
+
+x86_64-pc-linux-gnu-gcc -O2 -c -o frommacbinary.o frommacbinary.c
+frommacbinary.c: In function 'Usage':
+frommacbinary.c:58: warning: too few arguments for format
+
+Upstream: https://sourceforge.net/tracker/?func=detail&aid=2875547&group_id=39411&atid=425133
+Author: Peter Volkov <pva@gentoo.org>
+
+=== modified file 'fondu.c'
+--- fondu.c 2009-10-09 07:24:15 +0000
++++ fondu.c 2009-10-09 07:25:49 +0000
+@@ -473,7 +473,7 @@
+ }
+ if ( styleoff!=0 ) {
+ unsigned char stringoffsets[48];
+- int strcnt, strlen, format;
++ int strcnt, strlength, format;
+ char **strings, *pt;
+ fseek(f,styleoff,SEEK_SET);
+ /* class = */ getushort(f);
+@@ -484,11 +484,11 @@
+ strcnt = getushort(f);
+ strings = malloc(strcnt*sizeof(char *));
+ for ( j=0; j<strcnt; ++j ) {
+- strlen = getc(f);
+- strings[j] = malloc(strlen+2);
+- strings[j][0] = strlen;
+- strings[j][strlen+1] = '\0';
+- for ( k=0; k<strlen; ++k )
++ strlength = getc(f);
++ strings[j] = malloc(strlength+2);
++ strings[j][0] = strlength;
++ strings[j][strlength+1] = '\0';
++ for ( k=0; k<strlength; ++k )
+ strings[j][k+1] = getc(f);
+ }
+ for ( j=0; j<48; ++j ) {
+@@ -498,11 +498,11 @@
+ if ( k!=-1 || stringoffsets[j]==0 )
+ continue; /* this style doesn't exist */
+ format = stringoffsets[j]-1;
+- strlen = strings[0][0];
++ strlength = strings[0][0];
+ if ( format!=0 && format!=-1 )
+ for ( k=0; k<strings[format][0]; ++k )
+- strlen += strings[ strings[format][k+1]-1 ][0];
+- pt = cur->psnames[j] = malloc(strlen+1);
++ strlength += strings[ strings[format][k+1]-1 ][0];
++ pt = cur->psnames[j] = malloc(strlength+1);
+ strcpy(pt,strings[ 0 ]+1);
+ pt += strings[ 0 ][0];
+ if ( format!=0 && format!=-1 )
+
+=== modified file 'frommacbinary.c'
+--- frommacbinary.c 2009-10-09 07:24:15 +0000
++++ frommacbinary.c 2009-10-09 07:27:54 +0000
+@@ -55,7 +55,7 @@
+ /* frombin filenames */
+
+ static void Usage(char *prog) {
+- fprintf( stderr, "Usage: %s [-usage] [-help] [-version] filenames\n" );
++ fprintf( stderr, "Usage: frombin [-usage] [-help] [-version] filenames\n" );
+ fprintf( stderr, " -usage\t\tPrints this message\n" );
+ fprintf( stderr, " -help\t\tPrints this message\n" );
+ fprintf( stderr, " -version\t\tPrints the version of the program\n" );
+
diff --git a/media-gfx/fondu/fondu-20060102-r1.ebuild b/media-gfx/fondu/fondu-20060102-r1.ebuild
new file mode 100644
index 000000000000..03f2e4f22ced
--- /dev/null
+++ b/media-gfx/fondu/fondu-20060102-r1.ebuild
@@ -0,0 +1,32 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+inherit eutils
+
+MY_PV=${PV:2:6}
+
+DESCRIPTION="Utilities for converting between and manipulating mac fonts and unix fonts"
+HOMEPAGE="http://fondu.sourceforge.net/"
+SRC_URI="http://fondu.sourceforge.net/${PN}_src-${MY_PV}.tgz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="amd64 ppc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos"
+IUSE=""
+
+S=${WORKDIR}/${PN}-${MY_PV}
+
+src_prepare() {
+ sed -e 's:^CFLAGS =:CFLAGS +=:' \
+ -e 's:$(CFLAGS) -o:$(CFLAGS) $(LDFLAGS) -o:' \
+ -e 's:wilprefix:prefix:' \
+ -i Makefile.in || die "failed to sed"
+ epatch "${FILESDIR}/${P}-build-fix.patch"
+}
+
+src_install() {
+ default
+ doman *.1
+}
diff --git a/media-gfx/fondu/metadata.xml b/media-gfx/fondu/metadata.xml
new file mode 100644
index 000000000000..ba3e8d06b8fb
--- /dev/null
+++ b/media-gfx/fondu/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>fonts@gentoo.org</email>
+ <name>Fonts</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">fondu</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/media-gfx/fontforge/Manifest b/media-gfx/fontforge/Manifest
new file mode 100644
index 000000000000..3579f9add96c
--- /dev/null
+++ b/media-gfx/fontforge/Manifest
@@ -0,0 +1,14 @@
+AUX fontforge-dummy-spiro.patch 634 SHA256 702f5c16cd2d91f60d5c5fb3eb7fe84e6c67265f26bd886719ab9ed93e3810ce SHA512 5a42b0542f992dc35b9f570665b7000e59bd2c4c9d1919a02945beb3a405f62c928f3a7bd638a4ef9544e95bba148363872c3c6b966a72f4dd8b9cec9c43d0cf WHIRLPOOL 3176bd1b0fe09a24e7969c2d750f7587a11d9a6f63035ed2b20a21fe00ff78d2c7112dcd2204a3a87507d34fd2e87b27af715801a5030a6fc902d46d034a15a9
+DIST fontforge-20150612.tar.gz 125037727 SHA256 0f4ec68a648f7f845d54d1e87cf5fb246a16d528b74e9e1a9b815418510022d7 SHA512 01a38bdbb55ba3b2638b55caa2f768ba691fdfa730afd843df0cf62417db5465731ed968c5ab7c026622264e20c20fdfd8ec0ceb50da71039588797fe18393b8 WHIRLPOOL 6662bc52669153ba46e562fbcb287f5bff59eeeec7fe9afcd65918f892282650ab4be4f279fe6fab95f02f36caa753900693532ece439bee114e774e0da3f855
+DIST fontforge-20150824.tar.gz 20796482 SHA256 5b6c401f472106cf2186b4e7dff0f5985d6d9d856cf106717c60b4603daacc3d SHA512 82a33b41667b5637706aa11ca56695cf0d7a485c66cb37b8c3346087ca3b738967b77141f9aaaaddd90c8a4c2cec7e4924609de0ff18133a91e5862b1ad1ae2d WHIRLPOOL 50d93405583fdd0a8436cf606b462200d7fdcce7c4ac58c533dcf970fe110d031a3519b3e06d85a9dba49f3af5204f987b7a9e09f6ffd89df70ce18bcc30c08f
+DIST fontforge-20161005.tar.gz 129501214 SHA256 b93a572cdc7b761f3ea7c67e7d8b9d1bbf09c10ecb51d58bdcb90343e50b728b SHA512 9d724442306f402f251b9330c3eaaaa678dd01a4a9cce5857e1432091e68e33594bfc28a0fe516205a27b15cb73a04f0951179d5c33657a83bdca3117d4baaf6 WHIRLPOOL 319bdba1f0e5cf896b6a5349e2bb52583102ea646207a1f7fd648258e2af3dd2ce1bbf3e7eadf612cf29f5f668ffdf9e3b88f512a385467cc9b13ffae0532011
+DIST fontforge-dist-20160404.tar.gz 20906256 SHA256 6c73a556030d985e166974e5d6025255290874c2d6bb349c9930b03f17b45bcd SHA512 be94f04881b12ed3b1a34d0d7cc9149321db17d51458f135b2683ea600401e4fa55647ced4b4e014555ba1c900a684b9d5d6f2e2812ce03c432d23ca72f5c363 WHIRLPOOL 2313c7775da7f7a47ef8bae3cbef897e8b0996c8f74db099562e0a3636984e8a9a55ca5f2ca11b205a7b1aff76e7fe4e7601f15b7951147353403da0e41d692f
+DIST fontforge-dist-20170731.tar.xz 13985256 SHA256 840adefbedd1717e6b70b33ad1e7f2b116678fa6a3d52d45316793b9fd808822 SHA512 26f7a40714460716a24dd0229fdb027f3766bcc48db64b8993436ddcb6277898f9f3b67ad4fc0be515b2b38e01370d1c7d9ee3c6ece1be862b7d8c9882411f11 WHIRLPOOL 6d6e2b6322043bcd8822fb1e64a98b969ff1bba02d63442cf0646b737576ead76961a30cf146447afa0f72a2e9a30a05e6dad5f9060a00cd35e5cc2e15097889
+EBUILD fontforge-20150612-r1.ebuild 2840 SHA256 a4340728a3b639e1b30054add808b06a628bf5bb56ee4d8f7556b9cc87edad71 SHA512 ec15d1521f33632ff270dcb8ed7299a419370404306e8171aa0bd4c6893f19740e22b4526c935f955d8119f229c36dee90ba671457d9a02923c99a4334d891eb WHIRLPOOL 0969791b70979b9b7214b11cea3105cf745f8513467fb2087c9535beb3632261e2bf6f93544fcb8916802329687aa649c93c6288843e0c05ffe0e523933179ec
+EBUILD fontforge-20150824.ebuild 2630 SHA256 470aaf2590cf93e89f2251606b6a3cf3ede42acf3bf2c37ae129ae9165c175fb SHA512 1d89f56716cf8be4d925f576534c42a2bb8c80cc83be0f6aa39bb05fdbd11a66b8ec0164810253304472343211bd2133189cbd34cf06c996af0e5c6f81d3fde8 WHIRLPOOL 916f74e583f7f910a747cbe1b246165d99143e81b40afcbff1b9aec7c0bd2b54b710f76c2439365b4ecb08daef1a2af8836be6c2b11f45f1a07f944951af3ac1
+EBUILD fontforge-20160404.ebuild 2594 SHA256 a33fe382c822bd385d32867e12b97c22a496b5fc54d606c47a3be1960b289412 SHA512 7918ccbb74ef4f4df82869663fe9ce44bbaf990cfbef951a017f43f5055b742c88f92b04b6b45b9bd0fda09b298a0ce8f3630a5a27a0ac49f88d476737f8a52c WHIRLPOOL 58e45d9b87bea34cf46660bce95e013adf27e047c420b492069362be75aad81edbc1e8debcf7955fc6cb7ef8596e762a4c808b50672c6be83290c6cbcd44f86a
+EBUILD fontforge-20161005.ebuild 2516 SHA256 2d1264deefd6b095a636bfb23efda3927c6fcba67f05fe3d042cc658cc827469 SHA512 f1ad068728e1d88d2469ef4371285e4aec86b3279366085d18427503b5a0e3085f779bff2f0c178c7256c5b1bae29a458567ab124c91aa3403f91bcf97ef9aec WHIRLPOOL 62af3c7f689cec7b6ea55b4e7445b656dbaa98da25b77005567736a1929a5b9bfb75fe5f40c35ac54ee495d30fd5cb6ef44c99493bc15a5fa703bae538f9a7a8
+EBUILD fontforge-20170731.ebuild 2637 SHA256 fc4807db4849c2acf84237799c76ad7b0827a9bbde6ad3d6c5c74f2f2716bcdb SHA512 8cecfa19b39b44699e928a67c4e5a330f8e48e1d45050aa5afc61b54db2453bc8243ff1a04dc06458d7e598e68f6bdf4e014c5b2c3bd8ef519d024e9d59507d2 WHIRLPOOL 75c520d33baa08804417d75788f4405700d4e1a971d7955454819d3b16852a8ca4fde02da879486886865cf67161f505e878646cc66c62c12ce5df9f330b7ff5
+MISC ChangeLog 8979 SHA256 4ec854f4f1d62708cf5df72f190b68b0706631a58ab69f0512be043a1f43f293 SHA512 83f44989216d08a96fbc6f43be409f0a97da84e362539f1593f53dacf4cc432ec3314b863a5968d5f1808b41c399b968b4cf8c02002e41328cd10a5cd2bc4e7a WHIRLPOOL c886e4ee71fd6929f55f5e8cb2176c5ee424370cbe08c17eb5bf291d330a3cb930fc00ad9f5f6e4bc6a30246fff3b28e387c00b1aea83628332fe07962a55f59
+MISC ChangeLog-2015 24226 SHA256 78dcbc30a5f0a0eb19149ec7bef221f54aa3282f4f01c449a14faa257b87bd95 SHA512 695bed04a1e5a2141029dc5e1b41788287cd32408fec2323aba8b27505c956cb5e1f77480a90d27cd544ea619060d2b532010f249052bd232b157e6aece7444c WHIRLPOOL 60dadcd8eac86a0a21a3ec904148d3c06230d8b064106604bfcea4ec1bc8f7677561e3bbf2ca2279da199d8e6ff1fadad6c419d8652d37aa0caa08c8733999e7
+MISC metadata.xml 908 SHA256 d442286b554f49b292017b0fafd26be23c0db4b050e1835a5d87a72ebeff4c76 SHA512 973d4967be4eb7aad087ce977a4d94945a8894138604e8d37257dac97f74e98f7fb9a7cad7e7f46abb4c8c39dcb4bd79e9ad26f96838ad39ac1894e154834d28 WHIRLPOOL 43245d814f390c7583f50fae1e1f50f8c99e6fad2142d780b2c11159c4b743e961cbb102287cfe24a0d3d752aaa5df9f2c058457a35c1879effd2235c3023a7d
diff --git a/media-gfx/fontforge/files/fontforge-dummy-spiro.patch b/media-gfx/fontforge/files/fontforge-dummy-spiro.patch
new file mode 100644
index 000000000000..d2e73d5b179f
--- /dev/null
+++ b/media-gfx/fontforge/files/fontforge-dummy-spiro.patch
@@ -0,0 +1,25 @@
+From 63def02823e631cd73b763541a87d7c480be799e Mon Sep 17 00:00:00 2001
+From: Jeremy Tan <jtanx@outlook.com>
+Date: Mon, 14 Mar 2016 12:25:45 +0800
+Subject: [PATCH] Spiros: Add dummy _SpiroCP2SplineSet when compiling without
+ Spiros.
+
+---
+ fontforge/spiro.c | 4 ++++
+ 1 file changed, 4 insertions(+)
+
+diff --git a/fontforge/spiro.c b/fontforge/spiro.c
+index 629339a..bb2f36f 100644
+--- a/fontforge/spiro.c
++++ b/fontforge/spiro.c
+@@ -35,6 +35,10 @@
+
+ static int has_spiro = false;
+
++static SplineSet *_SpiroCP2SplineSet(spiro_cp *spiros) {
++ return NULL;
++}
++
+ SplineSet *SpiroCP2SplineSet(spiro_cp *spiros) {
+ return( NULL );
+ }
diff --git a/media-gfx/fontforge/fontforge-20150612-r1.ebuild b/media-gfx/fontforge/fontforge-20150612-r1.ebuild
new file mode 100644
index 000000000000..c5b9fd9e0502
--- /dev/null
+++ b/media-gfx/fontforge/fontforge-20150612-r1.ebuild
@@ -0,0 +1,126 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+PYTHON_COMPAT=( python{2_7,3_4} )
+
+inherit autotools eutils fdo-mime python-single-r1
+
+DESCRIPTION="postscript font editor and converter"
+HOMEPAGE="http://fontforge.github.io/"
+SRC_URI="https://github.com/fontforge/fontforge/releases/download/${PV}/${P}.tar.gz"
+
+LICENSE="BSD GPL-3+"
+SLOT="0"
+KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ppc ppc64 ~s390 ~sh sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
+IUSE="cairo truetype-debugger gif gtk jpeg png +python readline tiff svg unicode X"
+
+REQUIRED_USE="
+ cairo? ( png )
+ python? ( ${PYTHON_REQUIRED_USE} )
+"
+
+RDEPEND="
+ dev-libs/libltdl:0
+ dev-libs/libxml2:2=
+ >=media-libs/freetype-2.3.7:2=
+ cairo? (
+ >=x11-libs/cairo-1.6:0=
+ x11-libs/pango:0=
+ )
+ gif? ( media-libs/giflib:0= )
+ jpeg? ( virtual/jpeg:0 )
+ png? ( media-libs/libpng:0= )
+ tiff? ( media-libs/tiff:0= )
+ truetype-debugger? ( >=media-libs/freetype-2.3.8:2[fontforge,-bindist(-)] )
+ gtk? ( x11-libs/gtk+:2= )
+ python? ( ${PYTHON_DEPS} )
+ readline? ( sys-libs/readline:0= )
+ unicode? ( media-libs/libuninameslist:0= )
+ X? (
+ x11-libs/libX11:0=
+ x11-libs/libXi:0=
+ >=x11-libs/pango-1.10:0=[X]
+ )
+ !media-gfx/pfaedit
+"
+DEPEND="${RDEPEND}
+ sys-devel/gettext
+ virtual/pkgconfig
+ X? ( x11-proto/inputproto )
+"
+
+# Needs keywording on many arches.
+# zeromq? (
+# >=net-libs/czmq-2.2.0:0=
+# >=net-libs/zeromq-4.0.4:0=
+# )
+
+pkg_setup() {
+ use python && python-single-r1_pkg_setup
+}
+
+gnulib_import() {
+ (
+ func_add_hook() { :; }
+ source bootstrap.conf
+ set -- "${S}/gnulib/gnulib-tool" --libtool --import ${gnulib_modules}
+ echo "$@"
+ "$@"
+ )
+}
+
+src_prepare() {
+ # Tarball comes with broken absolute symlinks
+ # https://github.com/fontforge/fontforge/issues/2439
+ find . -lname "/*" -delete || die
+ gnulib_import || die
+ epatch_user
+ eautoreconf
+}
+
+src_configure() {
+ local myeconfargs=(
+ --disable-static
+ $(use_enable truetype-debugger freetype-debugger "${EPREFIX}/usr/include/freetype2/internal4fontforge")
+ $(use_enable gtk gtk2-use)
+ $(use_enable python python-extension)
+ $(use_enable python python-scripting)
+ --enable-tile-path
+ --enable-gb12345
+ $(use_with cairo)
+ $(use_with gif giflib)
+ $(use_with jpeg libjpeg)
+ $(use_with png libpng)
+ $(use_with readline libreadline)
+ --without-libspiro
+ $(use_with tiff libtiff)
+ $(use_with unicode libuninameslist)
+ #$(use_with zeromq libzmq)
+ --without-libzmq
+ $(use_with X x)
+ )
+ econf "${myeconfargs[@]}"
+}
+
+src_compile() {
+ # Build system deps are broken
+ emake -C plugins
+ emake
+}
+
+src_install() {
+ default
+ prune_libtool_files --modules
+}
+
+pkg_postrm() {
+ fdo-mime_desktop_database_update
+ fdo-mime_mime_database_update
+}
+
+pkg_postinst() {
+ fdo-mime_desktop_database_update
+ fdo-mime_mime_database_update
+}
diff --git a/media-gfx/fontforge/fontforge-20150824.ebuild b/media-gfx/fontforge/fontforge-20150824.ebuild
new file mode 100644
index 000000000000..6d737d061fe0
--- /dev/null
+++ b/media-gfx/fontforge/fontforge-20150824.ebuild
@@ -0,0 +1,116 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+PYTHON_COMPAT=( python{2_7,3_4} )
+
+inherit eutils fdo-mime python-single-r1
+
+DESCRIPTION="postscript font editor and converter"
+HOMEPAGE="http://fontforge.github.io/"
+SRC_URI="https://github.com/fontforge/fontforge/releases/download/${PV}/${P}.tar.gz"
+
+LICENSE="BSD GPL-3+"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
+IUSE="cairo truetype-debugger gif gtk jpeg png +python readline tiff svg unicode X"
+
+REQUIRED_USE="
+ cairo? ( png )
+ python? ( ${PYTHON_REQUIRED_USE} )
+"
+
+RDEPEND="
+ dev-libs/libltdl:0
+ dev-libs/libxml2:2=
+ >=media-libs/freetype-2.3.7:2=
+ cairo? (
+ >=x11-libs/cairo-1.6:0=
+ x11-libs/pango:0=
+ )
+ gif? ( media-libs/giflib:0= )
+ jpeg? ( virtual/jpeg:0 )
+ png? ( media-libs/libpng:0= )
+ tiff? ( media-libs/tiff:0= )
+ truetype-debugger? ( >=media-libs/freetype-2.3.8:2[fontforge,-bindist(-)] )
+ gtk? ( x11-libs/gtk+:2= )
+ python? ( ${PYTHON_DEPS} )
+ readline? ( sys-libs/readline:0= )
+ unicode? ( media-libs/libuninameslist:0= )
+ X? (
+ x11-libs/libX11:0=
+ x11-libs/libXi:0=
+ >=x11-libs/pango-1.10:0=[X]
+ )
+ !media-gfx/pfaedit
+"
+DEPEND="${RDEPEND}
+ sys-devel/gettext
+ virtual/pkgconfig
+ X? ( x11-proto/inputproto )
+"
+
+# Fetches data from network.
+# https://bugs.gentoo.org/575856
+RESTRICT="test"
+
+# Needs keywording on many arches.
+# zeromq? (
+# >=net-libs/czmq-2.2.0:0=
+# >=net-libs/zeromq-4.0.4:0=
+# )
+
+pkg_setup() {
+ use python && python-single-r1_pkg_setup
+}
+
+src_prepare() {
+ epatch "${FILESDIR}"/fontforge-dummy-spiro.patch
+ epatch_user
+}
+
+src_configure() {
+ local myeconfargs=(
+ --disable-static
+ $(use_enable truetype-debugger freetype-debugger "${EPREFIX}/usr/include/freetype2/internal4fontforge")
+ $(use_enable gtk gtk2-use)
+ $(use_enable python python-extension)
+ $(use_enable python python-scripting)
+ --enable-tile-path
+ --enable-gb12345
+ $(use_with cairo)
+ $(use_with gif giflib)
+ $(use_with jpeg libjpeg)
+ $(use_with png libpng)
+ $(use_with readline libreadline)
+ --without-libspiro
+ $(use_with tiff libtiff)
+ $(use_with unicode libuninameslist)
+ #$(use_with zeromq libzmq)
+ --without-libzmq
+ $(use_with X x)
+ )
+ econf "${myeconfargs[@]}"
+}
+
+src_compile() {
+ # Build system deps are broken
+ emake -C plugins
+ emake
+}
+
+src_install() {
+ default
+ prune_libtool_files --modules
+}
+
+pkg_postrm() {
+ fdo-mime_desktop_database_update
+ fdo-mime_mime_database_update
+}
+
+pkg_postinst() {
+ fdo-mime_desktop_database_update
+ fdo-mime_mime_database_update
+}
diff --git a/media-gfx/fontforge/fontforge-20160404.ebuild b/media-gfx/fontforge/fontforge-20160404.ebuild
new file mode 100644
index 000000000000..44ed9c7a42b6
--- /dev/null
+++ b/media-gfx/fontforge/fontforge-20160404.ebuild
@@ -0,0 +1,113 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python{2_7,3_4,3_5} )
+
+inherit eutils fdo-mime python-single-r1
+
+DESCRIPTION="postscript font editor and converter"
+HOMEPAGE="http://fontforge.github.io/"
+SRC_URI="https://github.com/fontforge/fontforge/releases/download/${PV}/${PN}-dist-${PV}.tar.gz"
+
+LICENSE="BSD GPL-3+"
+SLOT="0"
+KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ppc ppc64 ~s390 ~sh sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
+IUSE="cairo truetype-debugger gif gtk jpeg png +python readline tiff svg unicode X"
+
+REQUIRED_USE="
+ cairo? ( png )
+ python? ( ${PYTHON_REQUIRED_USE} )
+"
+
+RDEPEND="
+ dev-libs/libltdl:0
+ dev-libs/libxml2:2=
+ >=media-libs/freetype-2.3.7:2=
+ cairo? (
+ >=x11-libs/cairo-1.6:0=
+ x11-libs/pango:0=
+ )
+ gif? ( media-libs/giflib:0= )
+ jpeg? ( virtual/jpeg:0 )
+ png? ( media-libs/libpng:0= )
+ tiff? ( media-libs/tiff:0= )
+ truetype-debugger? ( >=media-libs/freetype-2.3.8:2[fontforge,-bindist(-)] )
+ gtk? ( x11-libs/gtk+:2= )
+ python? ( ${PYTHON_DEPS} )
+ readline? ( sys-libs/readline:0= )
+ unicode? ( media-libs/libuninameslist:0= )
+ X? (
+ x11-libs/libX11:0=
+ x11-libs/libXi:0=
+ >=x11-libs/pango-1.10:0=[X]
+ )
+ !media-gfx/pfaedit
+"
+DEPEND="${RDEPEND}
+ sys-devel/gettext
+ virtual/pkgconfig
+ X? ( x11-proto/inputproto )
+"
+
+# Fetches data from network.
+# https://bugs.gentoo.org/575856
+RESTRICT="test"
+
+# Needs keywording on many arches.
+# zeromq? (
+# >=net-libs/czmq-2.2.0:0=
+# >=net-libs/zeromq-4.0.4:0=
+# )
+
+S="${WORKDIR}/fontforge-2.0.20140101"
+
+pkg_setup() {
+ use python && python-single-r1_pkg_setup
+}
+
+src_configure() {
+ local myeconfargs=(
+ --disable-static
+ $(use_enable truetype-debugger freetype-debugger "${EPREFIX}/usr/include/freetype2/internal4fontforge")
+ $(use_enable gtk gtk2-use)
+ $(use_enable python python-extension)
+ $(use_enable python python-scripting)
+ --enable-tile-path
+ --enable-gb12345
+ $(use_with cairo)
+ $(use_with gif giflib)
+ $(use_with jpeg libjpeg)
+ $(use_with png libpng)
+ $(use_with readline libreadline)
+ --without-libspiro
+ $(use_with tiff libtiff)
+ $(use_with unicode libuninameslist)
+ #$(use_with zeromq libzmq)
+ --without-libzmq
+ $(use_with X x)
+ )
+ econf "${myeconfargs[@]}"
+}
+
+src_compile() {
+ # Build system deps are broken
+ emake -C plugins
+ emake
+}
+
+src_install() {
+ default
+ prune_libtool_files --modules
+}
+
+pkg_postrm() {
+ fdo-mime_desktop_database_update
+ fdo-mime_mime_database_update
+}
+
+pkg_postinst() {
+ fdo-mime_desktop_database_update
+ fdo-mime_mime_database_update
+}
diff --git a/media-gfx/fontforge/fontforge-20161005.ebuild b/media-gfx/fontforge/fontforge-20161005.ebuild
new file mode 100644
index 000000000000..bfe13bba8bae
--- /dev/null
+++ b/media-gfx/fontforge/fontforge-20161005.ebuild
@@ -0,0 +1,110 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python{2_7,3_4,3_5} )
+
+inherit python-single-r1 xdg-utils
+
+DESCRIPTION="postscript font editor and converter"
+HOMEPAGE="http://fontforge.github.io/"
+SRC_URI="https://github.com/fontforge/fontforge/releases/download/${PV}/${P}.tar.gz"
+
+LICENSE="BSD GPL-3+"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
+IUSE="cairo truetype-debugger gif gtk jpeg png +python readline test tiff svg unicode X"
+
+RESTRICT="!test? ( test )"
+
+REQUIRED_USE="
+ cairo? ( png )
+ python? ( ${PYTHON_REQUIRED_USE} )
+ test? ( python )
+"
+
+RDEPEND="
+ dev-libs/libltdl:0
+ dev-libs/libxml2:2=
+ >=media-libs/freetype-2.3.7:2=
+ cairo? (
+ >=x11-libs/cairo-1.6:0=
+ x11-libs/pango:0=
+ )
+ gif? ( media-libs/giflib:0= )
+ jpeg? ( virtual/jpeg:0 )
+ png? ( media-libs/libpng:0= )
+ tiff? ( media-libs/tiff:0= )
+ truetype-debugger? ( >=media-libs/freetype-2.3.8:2[fontforge,-bindist(-)] )
+ gtk? ( x11-libs/gtk+:2= )
+ python? ( ${PYTHON_DEPS} )
+ readline? ( sys-libs/readline:0= )
+ unicode? ( media-libs/libuninameslist:0= )
+ X? (
+ x11-libs/libX11:0=
+ x11-libs/libXi:0=
+ >=x11-libs/pango-1.10:0=[X]
+ )
+ !media-gfx/pfaedit
+"
+DEPEND="${RDEPEND}
+ sys-devel/gettext
+ virtual/pkgconfig
+ X? ( x11-proto/inputproto )
+"
+
+# Needs keywording on many arches.
+# zeromq? (
+# >=net-libs/czmq-2.2.0:0=
+# >=net-libs/zeromq-4.0.4:0=
+# )
+
+pkg_setup() {
+ use python && python-single-r1_pkg_setup
+}
+
+src_configure() {
+ local myeconfargs=(
+ --disable-static
+ $(use_enable truetype-debugger freetype-debugger "${EPREFIX}/usr/include/freetype2/internal4fontforge")
+ $(use_enable gtk gtk2-use)
+ $(use_enable python python-extension)
+ $(use_enable python python-scripting)
+ --enable-tile-path
+ --enable-gb12345
+ $(use_with cairo)
+ $(use_with gif giflib)
+ $(use_with jpeg libjpeg)
+ $(use_with png libpng)
+ $(use_with readline libreadline)
+ --without-libspiro
+ $(use_with tiff libtiff)
+ $(use_with unicode libuninameslist)
+ #$(use_with zeromq libzmq)
+ --without-libzmq
+ $(use_with X x)
+ )
+ econf "${myeconfargs[@]}"
+}
+
+src_compile() {
+ # Build system deps are broken
+ emake -C plugins
+ emake
+}
+
+src_install() {
+ default
+ find "${D}" -name '*.la' -delete || die
+}
+
+pkg_postrm() {
+ xdg_desktop_database_update
+ xdg_mimeinfo_database_update
+}
+
+pkg_postinst() {
+ xdg_desktop_database_update
+ xdg_mimeinfo_database_update
+}
diff --git a/media-gfx/fontforge/fontforge-20170731.ebuild b/media-gfx/fontforge/fontforge-20170731.ebuild
new file mode 100644
index 000000000000..4b1011be16f4
--- /dev/null
+++ b/media-gfx/fontforge/fontforge-20170731.ebuild
@@ -0,0 +1,114 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python{2_7,3_4,3_5} )
+
+inherit gnome2-utils python-single-r1 xdg-utils
+
+DESCRIPTION="postscript font editor and converter"
+HOMEPAGE="http://fontforge.github.io/"
+SRC_URI="https://github.com/fontforge/fontforge/releases/download/${PV}/fontforge-dist-${PV}.tar.xz"
+
+LICENSE="BSD GPL-3+"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
+IUSE="cairo truetype-debugger gif gtk jpeg png +python readline test tiff svg unicode X"
+
+RESTRICT="!test? ( test )"
+
+REQUIRED_USE="
+ cairo? ( png )
+ python? ( ${PYTHON_REQUIRED_USE} )
+ test? ( png python )
+"
+
+RDEPEND="
+ dev-libs/libltdl:0
+ dev-libs/libxml2:2=
+ >=media-libs/freetype-2.3.7:2=
+ cairo? (
+ >=x11-libs/cairo-1.6:0=
+ x11-libs/pango:0=
+ )
+ gif? ( media-libs/giflib:0= )
+ jpeg? ( virtual/jpeg:0 )
+ png? ( media-libs/libpng:0= )
+ tiff? ( media-libs/tiff:0= )
+ truetype-debugger? ( >=media-libs/freetype-2.3.8:2[fontforge,-bindist(-)] )
+ gtk? ( x11-libs/gtk+:2= )
+ python? ( ${PYTHON_DEPS} )
+ readline? ( sys-libs/readline:0= )
+ unicode? ( media-libs/libuninameslist:0= )
+ X? (
+ x11-libs/libX11:0=
+ x11-libs/libXi:0=
+ >=x11-libs/pango-1.10:0=[X]
+ )
+ !media-gfx/pfaedit
+"
+DEPEND="${RDEPEND}
+ sys-devel/gettext
+ virtual/pkgconfig
+ X? ( x11-proto/inputproto )
+"
+
+# Needs keywording on many arches.
+# zeromq? (
+# >=net-libs/czmq-2.2.0:0=
+# >=net-libs/zeromq-4.0.4:0=
+# )
+
+S="${WORKDIR}/fontforge-2.0.${PV}"
+
+pkg_setup() {
+ use python && python-single-r1_pkg_setup
+}
+
+src_configure() {
+ local myeconfargs=(
+ --disable-static
+ $(use_enable truetype-debugger freetype-debugger "${EPREFIX}/usr/include/freetype2/internal4fontforge")
+ $(use_enable gtk gtk2-use)
+ $(use_enable python python-extension)
+ $(use_enable python python-scripting)
+ --enable-tile-path
+ --enable-gb12345
+ $(use_with cairo)
+ $(use_with gif giflib)
+ $(use_with jpeg libjpeg)
+ $(use_with png libpng)
+ $(use_with readline libreadline)
+ --without-libspiro
+ $(use_with tiff libtiff)
+ $(use_with unicode libuninameslist)
+ #$(use_with zeromq libzmq)
+ --without-libzmq
+ $(use_with X x)
+ )
+ econf "${myeconfargs[@]}"
+}
+
+src_compile() {
+ # Build system deps are broken
+ emake -C plugins
+ emake
+}
+
+src_install() {
+ default
+ find "${D}" -name '*.la' -delete || die
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+ xdg_desktop_database_update
+ xdg_mimeinfo_database_update
+}
+
+pkg_postinst() {
+ gnome2_icon_cache_update
+ xdg_desktop_database_update
+ xdg_mimeinfo_database_update
+}
diff --git a/media-gfx/fontforge/metadata.xml b/media-gfx/fontforge/metadata.xml
new file mode 100644
index 000000000000..f200b938cf15
--- /dev/null
+++ b/media-gfx/fontforge/metadata.xml
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>floppym@gentoo.org</email>
+ <name>Mike Gilbert</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>fonts@gentoo.org</email>
+ <name>Fonts</name>
+ </maintainer>
+ <longdescription>
+ FontForge -- An outline font editor that lets you create your own
+ postscript, truetype, opentype, cid-keyed, multi-master, cff, svg and bitmap
+ (bdf, FON, NFNT) fonts, or edit existing ones. Also lets you convert one
+ format to another. FontForge has support for many macintosh font formats.
+ </longdescription>
+ <use>
+ <flag name="truetype-debugger">Enable truetype debugger in fontforge</flag>
+ </use>
+ <upstream>
+ <remote-id type="github">troydhanson/uthash</remote-id>
+ <remote-id type="sourceforge">fontforge</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/media-gfx/fontypython/Manifest b/media-gfx/fontypython/Manifest
new file mode 100644
index 000000000000..c86dd0f8e51c
--- /dev/null
+++ b/media-gfx/fontypython/Manifest
@@ -0,0 +1,9 @@
+AUX 0001-Do-not-crash-on-empty-pogs-list.patch 700 SHA256 fbb35fde3f84d19fce698925139e18e74a3a7171ab38bbaace68e18b71023a80 SHA512 bc260acfde39630b772591b9c0cdf065f340941d58714e9a73e25fce9b71caf570d62044ac3d3a72efb927ade7e26cc5019e7cedffc811f73ddc8cd4a090562b WHIRLPOOL 3c01300819d3529a1df343df8fc4da2713a6e6ca222017c56da2efdb5e5ddbf5d11359bcc9349ce791ca2ae1f7a9a927700a4b0427f95e196d8e34d6b503eb43
+AUX 0002-Removed-unused-code-which-causes-crash-with-wx-3.0.patch 4392 SHA256 b67478e828596c98fccdcf93a6b7ca713a4102e82fc3ba2512b622a0ec8a082a SHA512 a5cae1a71cddc8b3a9771bb4daf889d77e94f8be214f1ebc4b31061c0b366002c520873f99d84b667bb3a7139582c37d6c6e79742de7210c8d5296ec219f7c11 WHIRLPOOL ca1160315491649a8d526390712aae7e6cbfd2135157c29cbfdcedb35881ce4853f8a760a0c87c7fbef2cc5bf973810a8a24a85ecdbd61e31b4e2a77c30eff26
+AUX 0003-Adapt-to-wxpython-3.0-which-enforces-assertions-on-L.patch 961 SHA256 52a144386a4e59b3620f032158b26ec490c227602d8e793b6bdb9220120804c0 SHA512 d9eb9a881bb5ff5f088a8c5dfdf5acb679e01ca36ca703940cf40f4375ef14dbf73fbfd6caa067d9d3b494a62d88fdefac45af0484c26b535c845435e6890b76 WHIRLPOOL 6346525655b29de412dcad3f17e13e2f7316e9a0ac74f129b13978c2289387f756f94407810cdc13fb843a7dcc577bb53d2d236827b7a14797897f8c92e50c93
+AUX fontypython-pillow.patch 1275 SHA256 fefb6a4c71a8ad99f19e0ea79987732a839ed997a58f9d9d7b8416a250bd6eec SHA512 6efce50dee7fd69b27803143371bb3bc9c51b1c027a2bcf4bc6543c130e71462ee79b20efa1ac15ad1215c225e053e8cf1203704ba41eefcbac82c93f597432e WHIRLPOOL ac1a0f06c3a36f48fc2dc3820754a3e04d631ccdc61738e78dc4ac9f82cf5da5db812a4ea61af42da5abb68ce5446be0f45b4e2a8406468c40ea1aa290dcc42f
+DIST fontypython-0.4.4.tar.gz 361335 SHA256 cb7ecba75f35b1db2ae0b171c06433cd119be98b589a5af2f7642a343ff97a4b SHA512 a89c654c9dcd8fc89d3ad91772f856d2d2570a96b3b60f52eed9db217f45e91a55f3044f0e4d1736c5402cde3a6598a353ae59285c892e80034f7baba15f9825 WHIRLPOOL c4a5364108bba2595cecf13f4532115bdaa24503ea9f1d949d618927b51e4d11df710e050fc93442cb42c012bb315e4e53ff8e2adf9f9c32b4b5cd6e1905e11b
+EBUILD fontypython-0.4.4-r3.ebuild 1003 SHA256 12a498c394dd27eaaacd786f1174fca7659beb4db004fa8f8f665bb725e2c004 SHA512 ed549f3ab5ab4cd9f921d92849327195f057a012c65a1fb38b66cba60a4ca42d1215d5700fdb688a1c24b78acfbdeb81afd1fd10780717b3ae116a4dc6eb7f8f WHIRLPOOL baf9aedc33df8ea671036a2769b3d6edf0df23dc4d85a878317862242c1f0045a77b1cb0b6836e17007a0ea3c8c71c5cbe1dec4259404773e715e4c1e511cf8b
+MISC ChangeLog 3620 SHA256 7e85c3aa6df41991d1ce08dada5b68dcb481c661d7e3e8767009be18e90322ba SHA512 937bffacddd428e60f305e2332d8e760be3a256c46e0ea4bca8c65a99cda6d3ae4acb9e5015dd19b42f9e60856be2050588f26911897e52f5707f64781d046f5 WHIRLPOOL 16fb8599999f1ee84935114e187e2ff1b8a8f71af50431590120a265aa9b6f910dc796c715f2821132e9f17524ee5330bcf22d1b1bfb9e5fce1dbbc38ff50eee
+MISC ChangeLog-2015 3328 SHA256 046736eb16d82b46358d042e560d425c1afbb5b9044d3c54a3133fa681d485e1 SHA512 b846eb7d8557d48309068b7e5c84419752d46ae689c83c2b6f6762833d6ee8251b99e132b68331cb56fe781d6c944e4ed222f34f0d60ac7120b52a8c23c110a5 WHIRLPOOL cc76a676b2000c2a8823d2d57ec93a464c0e00315d5d2d23dda38d50a661d61e03c28c3d0b15f393888ebbd88d5deec75a3191f3ff2b99df7e3622ae5c1a4e6c
+MISC metadata.xml 357 SHA256 cea35a6624bd38d5b107e2d0a1e0c7667c8afe2121e4077a0b79afc572e4037f SHA512 615effa7f81e3a5867919687e6beed7ff4f1c8e4faecc4f2db5c8e93e6f8d3ac15aed2ed2ab3fd40af952281242e637bd14d11cc4187e540b522a7e476590208 WHIRLPOOL 3f32c7e86f2d15189862358e0c8fef16b0a68c42160f93949e174586d91f67d4c4df4fa1875f7a7e8b4e202c5f421f6fda60add920ebf70b2c0ff1eb30415f74
diff --git a/media-gfx/fontypython/files/0001-Do-not-crash-on-empty-pogs-list.patch b/media-gfx/fontypython/files/0001-Do-not-crash-on-empty-pogs-list.patch
new file mode 100644
index 000000000000..b652053596c6
--- /dev/null
+++ b/media-gfx/fontypython/files/0001-Do-not-crash-on-empty-pogs-list.patch
@@ -0,0 +1,21 @@
+From: Pietro Battiston <me@pietrobattiston.it>
+Date: Sun, 21 Dec 2014 11:50:28 +0100
+Subject: Do not crash on empty pogs list
+
+---
+ fontypythonmodules/gui_PogChooser.py | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/fontypythonmodules/gui_PogChooser.py b/fontypythonmodules/gui_PogChooser.py
+index 94b7f2e..f233529 100644
+--- a/fontypythonmodules/gui_PogChooser.py
++++ b/fontypythonmodules/gui_PogChooser.py
+@@ -80,7 +80,7 @@ class PogChooser(wx.ListCtrl) :
+ i = self.FindItem(-1, select)
+ self.indexselected = i # Set this to help initial icon settings.
+ self.Select(i, True)
+- else:
++ elif self.__poglistCopy:
+ self.Select(0, False)
+ self.indexselected = -1
+
diff --git a/media-gfx/fontypython/files/0002-Removed-unused-code-which-causes-crash-with-wx-3.0.patch b/media-gfx/fontypython/files/0002-Removed-unused-code-which-causes-crash-with-wx-3.0.patch
new file mode 100644
index 000000000000..e6f8fb634e83
--- /dev/null
+++ b/media-gfx/fontypython/files/0002-Removed-unused-code-which-causes-crash-with-wx-3.0.patch
@@ -0,0 +1,134 @@
+From: Pietro Battiston <me@pietrobattiston.it>
+Date: Sun, 21 Dec 2014 09:14:19 +0100
+Subject: Removed unused code which causes crash with wx 3.0
+
+---
+ fontypython | 2 --
+ fontypythonmodules/dialogues.py | 4 ----
+ fontypythonmodules/gui_Left.py | 4 ----
+ fontypythonmodules/gui_Middle.py | 5 -----
+ fontypythonmodules/gui_PogChooser.py | 4 ----
+ fontypythonmodules/gui_Right.py | 4 ----
+ fontypythonmodules/gui_ScrolledFontView.py | 4 ----
+ fontypythonmodules/wxgui.py | 4 ----
+ 8 files changed, 31 deletions(-)
+
+diff --git a/fontypython b/fontypython
+index a05290f..e46e34e 100755
+--- a/fontypython
++++ b/fontypython
+@@ -72,8 +72,6 @@ else: # err code -11
+
+ ## Setup wxPython to access translations : enables the stock buttons.
+ localedir = "fontypythonmodules/locales"
+- langid = wx.LANGUAGE_DEFAULT
+- mylocale = wx.Locale( langid )
+
+ iPC = PC.PathControl()
+
+diff --git a/fontypythonmodules/dialogues.py b/fontypythonmodules/dialogues.py
+index 1fbff5f..eba7ab3 100644
+--- a/fontypythonmodules/dialogues.py
++++ b/fontypythonmodules/dialogues.py
+@@ -23,10 +23,6 @@ import wx
+ import wx.html as html
+
+
+-## Setup wxPython to access translations : enables the stock buttons.
+-langid = wx.LANGUAGE_DEFAULT # Picks this up from $LANG
+-mylocale = wx.Locale( langid )
+-
+ ## langcode = locale.getlocale()[0] # I must not use getlocale...
+ ## This is suggested by Martin:
+ loc = locale.setlocale(locale.LC_CTYPE) # use *one* of the categories (not LC_ALL)
+diff --git a/fontypythonmodules/gui_Left.py b/fontypythonmodules/gui_Left.py
+index 5451f39..7b1f0c6 100644
+--- a/fontypythonmodules/gui_Left.py
++++ b/fontypythonmodules/gui_Left.py
+@@ -17,10 +17,6 @@
+
+ import wx, os
+
+-## Setup wxPython to access translations : enables the stock buttons.
+-langid = wx.LANGUAGE_DEFAULT # Picks this up from $LANG
+-mylocale = wx.Locale( langid )
+-
+
+ from pubsub import *
+ from wxgui import ps
+diff --git a/fontypythonmodules/gui_Middle.py b/fontypythonmodules/gui_Middle.py
+index 470e3ea..9af3f9f 100644
+--- a/fontypythonmodules/gui_Middle.py
++++ b/fontypythonmodules/gui_Middle.py
+@@ -19,11 +19,6 @@ import wx
+ import wx.lib.stattext
+ import wx.lib.buttons as buttons
+
+-## Setup wxPython to access translations : enables the stock buttons.
+-langid = wx.LANGUAGE_DEFAULT # Picks this up from $LANG
+-mylocale = wx.Locale( langid )
+-
+-
+ from pubsub import *
+ from wxgui import ps
+
+diff --git a/fontypythonmodules/gui_PogChooser.py b/fontypythonmodules/gui_PogChooser.py
+index f233529..c679191 100644
+--- a/fontypythonmodules/gui_PogChooser.py
++++ b/fontypythonmodules/gui_PogChooser.py
+@@ -17,10 +17,6 @@
+
+ import wx, locale
+
+-## Setup wxPython to access translations : enables the stock buttons.
+-langid = wx.LANGUAGE_DEFAULT # Picks this up from $LANG
+-mylocale = wx.Locale( langid )
+-
+ from pubsub import *
+ from wxgui import ps
+
+diff --git a/fontypythonmodules/gui_Right.py b/fontypythonmodules/gui_Right.py
+index adefa1d..ea5062b 100644
+--- a/fontypythonmodules/gui_Right.py
++++ b/fontypythonmodules/gui_Right.py
+@@ -17,10 +17,6 @@
+
+ import wx
+
+-## Setup wxPython to access translations : enables the stock buttons.
+-langid = wx.LANGUAGE_DEFAULT # Picks this up from $LANG
+-mylocale = wx.Locale( langid )
+-
+ from pubsub import *
+ from wxgui import ps
+
+diff --git a/fontypythonmodules/gui_ScrolledFontView.py b/fontypythonmodules/gui_ScrolledFontView.py
+index d7b3d2f..3e35d62 100644
+--- a/fontypythonmodules/gui_ScrolledFontView.py
++++ b/fontypythonmodules/gui_ScrolledFontView.py
+@@ -20,10 +20,6 @@ import wx.lib.scrolledpanel
+
+ from pubsub import *
+
+-## Setup wxPython to access translations : enables the stock buttons.
+-langid = wx.LANGUAGE_DEFAULT # Picks this up from $LANG
+-mylocale = wx.Locale( langid )
+-
+ import fpsys # Global objects
+
+ from gui_Fitmap import * #Also brings in 'ps' variable
+diff --git a/fontypythonmodules/wxgui.py b/fontypythonmodules/wxgui.py
+index da80d17..6e6716a 100644
+--- a/fontypythonmodules/wxgui.py
++++ b/fontypythonmodules/wxgui.py
+@@ -23,10 +23,6 @@ import fpversion
+ ## Now, bring in all those big modules
+ import wx
+
+-## Setup wxPython to access translations : enables the stock buttons.
+-langid = wx.LANGUAGE_DEFAULT # Picks this up from $LANG
+-mylocale = wx.Locale( langid )
+-
+ ## Fetch my own pubsub stuff
+ from pubsub import *
+ ps = CPubsub()
diff --git a/media-gfx/fontypython/files/0003-Adapt-to-wxpython-3.0-which-enforces-assertions-on-L.patch b/media-gfx/fontypython/files/0003-Adapt-to-wxpython-3.0-which-enforces-assertions-on-L.patch
new file mode 100644
index 000000000000..4875a15ff050
--- /dev/null
+++ b/media-gfx/fontypython/files/0003-Adapt-to-wxpython-3.0-which-enforces-assertions-on-L.patch
@@ -0,0 +1,28 @@
+From: Pietro Battiston <me@pietrobattiston.it>
+Date: Sun, 21 Dec 2014 11:50:09 +0100
+Subject: Adapt to wxpython 3.0, which enforces assertions on ListItems ids.
+
+---
+ fontypythonmodules/gui_PogChooser.py | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/fontypythonmodules/gui_PogChooser.py b/fontypythonmodules/gui_PogChooser.py
+index c679191..4cdf772 100644
+--- a/fontypythonmodules/gui_PogChooser.py
++++ b/fontypythonmodules/gui_PogChooser.py
+@@ -200,6 +200,7 @@ class PogChooser(wx.ListCtrl) :
+ li.SetImage(i)
+ li.SetText(p)
+ id = wx.NewId()
++ li.SetId(id)
+ PogChooser.__poglistCopy[id] = p # record the pog name
+ row = self.InsertItem( li )
+ self.SetItemData( row, id ) # associate back to __poglistCopy
+@@ -214,6 +215,7 @@ class PogChooser(wx.ListCtrl) :
+ li.SetImage(0)
+ li.SetText(pogname)
+ id = wx.NewId()
++ li.SetId(id)
+ self.__poglistCopy[id] = pogname
+ row = self.InsertItem(li)
+ self.SetItemData( row, id )
diff --git a/media-gfx/fontypython/files/fontypython-pillow.patch b/media-gfx/fontypython/files/fontypython-pillow.patch
new file mode 100644
index 000000000000..9b7966f55061
--- /dev/null
+++ b/media-gfx/fontypython/files/fontypython-pillow.patch
@@ -0,0 +1,41 @@
+https://bugs.gentoo.org/show_bug.cgi?id=471524
+
+diff --git a/fontypythonmodules/fontcontrol.py b/fontypythonmodules/fontcontrol.py
+index e156758..cff34f5 100644
+--- a/fontypythonmodules/fontcontrol.py
++++ b/fontypythonmodules/fontcontrol.py
+@@ -16,7 +16,7 @@
+ ## along with Fonty Python. If not, see <http://www.gnu.org/licenses/>.
+
+ import os, sys, locale, glob, errno
+-import Image, ImageFont, ImageDraw
++from PIL import Image, ImageFont, ImageDraw
+ import fontybugs, fpsys
+ from pathcontrol import *
+
+diff --git a/fontypythonmodules/fpsys.py b/fontypythonmodules/fpsys.py
+index f9572ae..fa1a98f 100644
+--- a/fontypythonmodules/fpsys.py
++++ b/fontypythonmodules/fpsys.py
+@@ -159,7 +159,7 @@ def checkFonts( dirtocheck, printer ):
+ global segfonts
+
+ code = """
+-import ImageFont
++from PIL import ImageFont
+ try:
+ font=ImageFont.truetype("%s", 24, 0)
+ dud=font.getname()
+diff --git a/fontypythonmodules/sanitycheck.py b/fontypythonmodules/sanitycheck.py
+index cf4fcc1..7e46e9a 100644
+--- a/fontypythonmodules/sanitycheck.py
++++ b/fontypythonmodules/sanitycheck.py
+@@ -24,7 +24,7 @@ import imp
+
+ ## PIL : Is it there?
+ try:
+- import Image, ImageFont, ImageDraw
++ from PIL import Image, ImageFont, ImageDraw
+ except:
+ print strings.PILError
+ raise SystemExit
diff --git a/media-gfx/fontypython/fontypython-0.4.4-r3.ebuild b/media-gfx/fontypython/fontypython-0.4.4-r3.ebuild
new file mode 100644
index 000000000000..ca9ebc36f3c3
--- /dev/null
+++ b/media-gfx/fontypython/fontypython-0.4.4-r3.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+WX_GTK_VER=3.0
+PYTHON_COMPAT=( python2_7 )
+
+inherit distutils-r1 multilib wxwidgets
+
+DESCRIPTION="Font preview application"
+HOMEPAGE="https://savannah.nongnu.org/projects/fontypython"
+SRC_URI="mirror://nongnu/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+# Crashes w/ debug build of wxGTK (#201315)
+DEPEND="dev-python/pillow[${PYTHON_USEDEP}]
+ dev-python/wxpython:${WX_GTK_VER}[${PYTHON_USEDEP}]
+ x11-libs/wxGTK:${WX_GTK_VER}[-debug]"
+RDEPEND="${DEPEND}"
+
+PATCHES=( "${FILESDIR}/${PN}-pillow.patch"
+ "${FILESDIR}"/0001-Do-not-crash-on-empty-pogs-list.patch
+ "${FILESDIR}"/0002-Removed-unused-code-which-causes-crash-with-wx-3.0.patch
+ "${FILESDIR}"/0003-Adapt-to-wxpython-3.0-which-enforces-assertions-on-L.patch )
+
+src_prepare() {
+ distutils-r1_src_prepare
+ need-wxwidgets unicode
+}
+
+src_install() {
+ distutils-r1_src_install
+ doman "${S}"/fontypython.1
+}
diff --git a/media-gfx/fontypython/metadata.xml b/media-gfx/fontypython/metadata.xml
new file mode 100644
index 000000000000..148a6e835481
--- /dev/null
+++ b/media-gfx/fontypython/metadata.xml
@@ -0,0 +1,12 @@
+<?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>
+<maintainer type="project">
+ <email>fonts@gentoo.org</email>
+ <name>Fonts</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/media-gfx/fotowall/Manifest b/media-gfx/fotowall/Manifest
new file mode 100644
index 000000000000..61cd631150ba
--- /dev/null
+++ b/media-gfx/fotowall/Manifest
@@ -0,0 +1,5 @@
+DIST fotowall-1.0.tar.gz 1672398 SHA256 8dc42262dd5220a12e92181ff82bd363a6506a4c3ab1ea3841281f2971e1b289 SHA512 ae2d887affd28d21b9caabbb3508d8ebd64058d81f84d3b3d67a205341a9cf5b528ca3a02793a4927e2e6b3ddfd73e7698c3df4bad3a7bb4d37fc9fbb226c94c WHIRLPOOL 2e0f1caae12e943037a88480a56bb23ac31da73ef986b0e3ca99f20d57e9de7f237523cd038178d041b1ec04aea5aa63a8490fcd17f66757f97458241cd7d843
+EBUILD fotowall-1.0.ebuild 1000 SHA256 f2470076d4f599faf2e9a6f6bb6b85b5726825e602752ee81250263b119d7b21 SHA512 e3a3d17f0aea859d72c7ede3b0605bfdaa864359a3536d37f9ed9da270fec253e815d111b8e5cb84b08f76906fb57053c0cfe7e64774c3d9ec8d5d8d13f8f13b WHIRLPOOL 30c956a8528aca1128d35120133e0b0cc4f02c838071d315c60c71ccb1cbf779f6b4923fa29d5728d125f3113ac0482cb69c88e877d0f928c1cbe9b2ef4f1e29
+MISC ChangeLog 3820 SHA256 4bb2966c02799f9822c4e674128925385f4eb68703c613b4a8df15d9a8ac23fc SHA512 88e4b7f68df9c2cbf1eda2d2c93a0a1ed5a4b63dd75c59b5e0847901e7ef5e72099407f8fbd29fdfd11a62d6aefb80f2e80d28a5f7540a4417bcc74adfd58fde WHIRLPOOL d8e0510661b4d8a4fa5f7a30ca9c12443b8c82d9a3e4bee2272d2f46bc9683b14e4572d605e8f639334018dcc7567f62db0bdf4178314e47b5d46a113b30f8fe
+MISC ChangeLog-2015 2315 SHA256 90e45b46cf12847829add0ba8e061c227353e5d435e4bb17ccd437124e8745be SHA512 5859c185205a7db8fea72720693b6afb83c90c5e4472aecb53bc9855bc38dd564c97e467769c3a70f5c538cb7f3f422898bae650c518166f97f2dcf2bb7eefda WHIRLPOOL 7e7a1ab0236094eec473ccda02d4d729f393016aece8c09bb15116185145118f1a738bd82dad5eedfabbb5b95518bb6ee835d5b817f7851257caeb801b732f95
+MISC metadata.xml 396 SHA256 24ec14fc9f8cd012abcdbc902dceb3526a06df912366076321211f15e306eb2f SHA512 538a67809974677e2c8f51b7ae7999047fffac2fa25677f0af5590afc061b5bd76f9908718bf8f66a6f9d4eaad4e4d2fa2e12837f5e15750035e879d79f93f59 WHIRLPOOL a6a9d136ac693602419255d1956c9774c70d6365997c7090c80c7b959ea9389ee1d87523113bbb8b22ec6d7a0e2c4711e7c5bb3b0ec24740ff83d1608f3e66d0
diff --git a/media-gfx/fotowall/fotowall-1.0.ebuild b/media-gfx/fotowall/fotowall-1.0.ebuild
new file mode 100644
index 000000000000..c4b9af4bfab4
--- /dev/null
+++ b/media-gfx/fotowall/fotowall-1.0.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit qmake-utils
+
+DESCRIPTION="Qt5 tool for creating wallpapers"
+HOMEPAGE="https://www.enricoros.com/opensource/fotowall/"
+SRC_URI="https://github.com/enricoros/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="opengl webcam"
+
+RDEPEND="
+ 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
+ opengl? ( dev-qt/qtopengl:5 )
+"
+DEPEND="${RDEPEND}
+ webcam? ( media-libs/libv4l )
+"
+
+src_prepare() {
+ default
+
+ sed -i -e "s|linux/videodev.h|libv4l1-videodev.h|" \
+ 3rdparty/videocapture/VideoDevice.h || die
+
+ if ! use opengl; then
+ sed -i "/QT += opengl/d" ${PN}.pro || die
+ fi
+}
+
+src_configure() {
+ if ! use webcam; then
+ eqmake5 ${PN}.pro "CONFIG+=no-webcam"
+ else
+ eqmake5
+ fi
+}
+
+src_install() {
+ emake INSTALL_ROOT="${D}" install
+ dodoc README.markdown
+}
diff --git a/media-gfx/fotowall/metadata.xml b/media-gfx/fotowall/metadata.xml
new file mode 100644
index 000000000000..407bb6612174
--- /dev/null
+++ b/media-gfx/fotowall/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>qt@gentoo.org</email>
+ <name>Gentoo Qt Project</name>
+ </maintainer>
+ <use>
+ <flag name="webcam">Enable webcam support</flag>
+ </use>
+ <upstream>
+ <remote-id type="github">enricoros/fotowall</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/media-gfx/fotoxx/Manifest b/media-gfx/fotoxx/Manifest
new file mode 100644
index 000000000000..feb902ff13c6
--- /dev/null
+++ b/media-gfx/fotoxx/Manifest
@@ -0,0 +1,12 @@
+AUX fotoxx-13.11.1.patch 1791 SHA256 ad1f6039d8942dee4834b59678567c17aefb3ec544a0ee196053a3384e291129 SHA512 e3543c861fb8e5f5de547b8976d15d86fac20ffc83285d2d9c46d805eb6b0e3fe20de07c4644c9272c7cd44c1a6d43360cb82fc92abc15ca34997353e4cbdf2b WHIRLPOOL db2fe772d9038bf3646101a559d016e59f3ebb120330748ba5d1e261b4baa3910ea27877a5443216eab9628637fa4d3ec7dbd14449ec7bd82fdcc98e09e1d8a2
+AUX fotoxx-15.04.1.patch 460 SHA256 09911cb0d5d455823ff33a9a60c1ddbaf66b6d1b93fbe1f3d319ee3a67707e5b SHA512 e4d2ddd827de492ac4890c8c8b34719b9dcc6acd555de60c7d5bef35d8c0dca032635fac9b989c92594ea92d5bd47c0300acca9074696058321bd401fdbb7b0b WHIRLPOOL 7ef93a2631fb2712d133cfb867d6ccc43e8fb8f1d48be4e01aeb6c02bdd71c6fd960535b025a6f8dc821ff5269338c6e69e5f37b13be6716ab05e3905d5ddc57
+AUX fotoxx-15.05.patch 460 SHA256 09911cb0d5d455823ff33a9a60c1ddbaf66b6d1b93fbe1f3d319ee3a67707e5b SHA512 e4d2ddd827de492ac4890c8c8b34719b9dcc6acd555de60c7d5bef35d8c0dca032635fac9b989c92594ea92d5bd47c0300acca9074696058321bd401fdbb7b0b WHIRLPOOL 7ef93a2631fb2712d133cfb867d6ccc43e8fb8f1d48be4e01aeb6c02bdd71c6fd960535b025a6f8dc821ff5269338c6e69e5f37b13be6716ab05e3905d5ddc57
+DIST fotoxx-13.11.1.tar.gz 2473330 SHA256 494577fe849d636c2addd46f317b9226fd00a2b5f61a87672be068a2b7bcb5fe SHA512 c880f5f1a67f12ab081820d4a897912e20985dbad0096d2f4ef1f37d0b2b626dd66c69a593e57b31432a67f79eadd4ea8022dcde01bec865f71ecbfec456caa2 WHIRLPOOL 76017d414a8524c4e0208e5b10f5fd86e9761b0ebe998e8b923735d764e0ca75a584c6fc7aac8940ca3e1bb7065bdedfcb3fa7f3736f3457e4ce8345b224685d
+DIST fotoxx-15.04.1.tar.gz 3491468 SHA256 1058bccd8a90c81f3d7a2b57dcf641c6355456a24f1f3d63ca3fbfe55209bc17 SHA512 d70fb437a4aacc18754a7df90fe3b23287ed3d31cbc545ed75ab3eb20cba6c83b4394251553b795c87ab2ecffe551905f9a39d19fead82fabafd646a9691313f WHIRLPOOL 468210add843262d7f2e67bd27e8a33ce91c7c2c252ba32ed9de03ddc8dcc6880b5710ccef3633fc14d1c7647d5a412609dd8d6c0b267a771b4c795a34a51e90
+DIST fotoxx-15.05.tar.gz 3573278 SHA256 65567adc86087a3a8acdebcb0f15ec299cf690a869129825e3d32da7e50c4604 SHA512 07155e5f32c0ada33dd95de333a4a124c9fc56b3807bb2edc2b078f0eab37968f374f84701bb8ce9b200f00ed4587c83f772899ba39527378d3527050960ac0e WHIRLPOOL 1ecb67051b17a9e1dd3e86bd17d88fdfdece0e9808de092f7e6fa3494d64aa8f5e19eac9f506e2938a4797deaf8f617d33095fd0bc482bf436ba4bc3263504d8
+EBUILD fotoxx-13.11.1.ebuild 1164 SHA256 06a5f0a73fa697e5fe48118f75862f32390687fe743d9718656a0b1f4ec499fa SHA512 4b33c9b0ab25e83ec19b099779c50a2f3748d1b0fbb5183c1ec700f26347809f3a82dac11ef0b8937567514a5fb2e41ac5079cce3b6f36245e2673f2e17557b1 WHIRLPOOL 4c37db8730ee2419f8b53b607905bbb5f9daa1d662d1e111dd357ac53597cdf9c2d39217865679d4ecbd21d73c04c50af3bae73f4990efb9c8fbe6fecf140280
+EBUILD fotoxx-15.04.1.ebuild 1166 SHA256 8c94275d08803671c2384ff8961cd62bf5bef13efaf2c6d8689c618a0845c1a8 SHA512 515bc431d1fd7c5a46f4eef3443f572406c4122b3533986904a10a71a6955ab2e71a182debd5bb85b5bdd3fbf97e10127cdd827b484a2407040dde3d426c4083 WHIRLPOOL f63d89be07b84f1dca70ec3bb3fb005503bfe5c29911d406bdea4a18ddd4c895e08ef531479e8c80bf08978d708bfe1a673b7b17e3f9b2d165cb3b5b72775765
+EBUILD fotoxx-15.05.ebuild 1166 SHA256 8c94275d08803671c2384ff8961cd62bf5bef13efaf2c6d8689c618a0845c1a8 SHA512 515bc431d1fd7c5a46f4eef3443f572406c4122b3533986904a10a71a6955ab2e71a182debd5bb85b5bdd3fbf97e10127cdd827b484a2407040dde3d426c4083 WHIRLPOOL f63d89be07b84f1dca70ec3bb3fb005503bfe5c29911d406bdea4a18ddd4c895e08ef531479e8c80bf08978d708bfe1a673b7b17e3f9b2d165cb3b5b72775765
+MISC ChangeLog 2371 SHA256 9790b68c65c967eb3c31357c171899f3f7a91d9fb43abddcbd690bcd22c29be1 SHA512 b12ed1044a4ead3b49efb9e6288378be85f6a5cf92a88e97492db2e25d94925f574fbea18682c0de1380d2bc6b0aa9793480c704ae990cbc6b8e739d18c065fd WHIRLPOOL 367304d38dd7f7ad4bda19581d817c27910ca7c907d82d632fb707f6e21ff52c0286f02830407fe4c173c6e14397a2d319eb7f2bfd414226b43d57c16de30261
+MISC ChangeLog-2015 13089 SHA256 05f01667874ccc5f01fff0c09b339cd092c05dfe2248e01c5631ac55c3612a32 SHA512 f648bbe3baa59ccc89b4645ea9d42027a6de6354192fa666f0a387131720acced81b4df85c0a25aa7fe3413faf136cf7d97634f5b5d41fa647c21f61a5af0d41 WHIRLPOOL 85ccce036019f1efc3e6c87335042009de7c02897649441d5a0aa242c0c5c65873a1bbf1610c0418617ac32f87c8ae8bbb36d1c4a799c01569c863729ba8696a
+MISC metadata.xml 867 SHA256 dade64e3450863af1873dcf077add0edac27737e8cfd699d1e6f9414203f5132 SHA512 179101cc1d0e87a3b6140a21e74727a987ae07d3a22b6765c2eefb92a6d022d082238b39cf3c5ce72e8456ae7d0c1a6e22a1636c8dbfe7a192c5fa1affc2687b WHIRLPOOL debe0ca43112ae5b1f942896171db0d634b2a240b6ecfb5cc37d3487578b8ec78b744bda3d110b98414177d48e263538f7092fe18d1f22bbd820d3f2d84f3309
diff --git a/media-gfx/fotoxx/files/fotoxx-13.11.1.patch b/media-gfx/fotoxx/files/fotoxx-13.11.1.patch
new file mode 100644
index 000000000000..c37df02558b5
--- /dev/null
+++ b/media-gfx/fotoxx/files/fotoxx-13.11.1.patch
@@ -0,0 +1,44 @@
+diff -r -U1 fotoxx-13.08.1.orig/Makefile fotoxx-13.08.1/Makefile
+--- fotoxx-13.08.1.orig/Makefile 2013-08-13 15:53:00.000000000 +0700
++++ fotoxx-13.08.1/Makefile 2013-08-16 04:37:03.009099149 +0700
+@@ -5,4 +5,4 @@
+ # defaults for parameters that may be pre-defined
+-CXXFLAGS ?= -O2 -Wall -ggdb
+-LDFLAGS ?= -rdynamic
++CXXFLAGS += -Wall -Wno-deprecated-declarations
++LDFLAGS += -rdynamic
+ PREFIX ?= /usr
+@@ -15,3 +15,3 @@
+ LOCALESDIR = $(SHAREDIR)/locales
+-DOCDIR = $(PREFIX)/share/doc/fotoxx
++DOCDIR = $(PREFIX)/share/doc/$(PF)
+ MANDIR = $(PREFIX)/share/man/man1
+@@ -19,4 +19,4 @@
+
+-CFLAGS = $(CXXFLAGS) -c `pkg-config --cflags gtk+-3.0`
+-LIBS = `pkg-config --libs gtk+-3.0`
++CFLAGS = $(CXXFLAGS) -c -DPF=\"$(PF)\" `pkg-config --cflags gtk+-3.0`
++LIBS = `pkg-config --libs gtk+-3.0` -lpthread
+
+@@ -78,3 +78,2 @@
+ rm -f $(DESTDIR)$(MANDIR)/fotoxx.1.gz
+- xdg-desktop-menu uninstall $(DESTDIR)$(MENUFILE)
+ rm -f $(DESTDIR)$(MENUFILE)
+@@ -97,5 +96,2 @@
+ rm -f fotoxx.1.gz
+- # menu (desktop) file
+- cp -f desktop $(DESTDIR)$(MENUFILE)
+- xdg-desktop-menu install --novendor $(DESTDIR)$(MENUFILE)
+
+@@ -106,3 +102,2 @@
+ rm -f $(DESTDIR)$(MANDIR)/fotoxx.1.gz
+- xdg-desktop-menu uninstall $(DESTDIR)$(MENUFILE)
+ rm -f $(DESTDIR)$(MENUFILE)
+diff -r -U1 fotoxx-13.08.1.orig/zfuncs.cc fotoxx-13.08.1/zfuncs.cc
+--- fotoxx-13.08.1.orig/zfuncs.cc 2013-08-13 15:53:00.000000000 +0700
++++ fotoxx-13.08.1/zfuncs.cc 2013-08-16 04:31:58.882119673 +0700
+@@ -3947,3 +3947,3 @@
+ strncatv(zlocalesdir,199,work,"/share/",zappname,"/locales",null); // /prefix/share/appname/locales
+- strncatv(zdocdir,199,work,"/share/doc/",zappname,null); // /prefix/share/doc/appname
++ strncatv(zdocdir,199,work,"/share/doc/",PF,null); // /prefix/share/doc/$(PF)
+
diff --git a/media-gfx/fotoxx/files/fotoxx-15.04.1.patch b/media-gfx/fotoxx/files/fotoxx-15.04.1.patch
new file mode 100644
index 000000000000..15fdaa9abacf
--- /dev/null
+++ b/media-gfx/fotoxx/files/fotoxx-15.04.1.patch
@@ -0,0 +1,13 @@
+diff -r -U1 fotoxx-14.10.2.orig/Makefile fotoxx-14.10.2/Makefile
+--- fotoxx-14.10.2.orig/Makefile 2014-10-09 15:17:09.000000000 +0700
++++ fotoxx-14.10.2/Makefile 2014-10-13 20:44:55.061728475 +0700
+@@ -16,3 +16,3 @@
+ LOCALESDIR = $(SHAREDIR)/locales
+-DOCDIR = $(PREFIX)/share/doc/fotoxx
++DOCDIR = $(PREFIX)/share/doc/$(PF)
+ MANDIR = $(PREFIX)/share/man/man1
+@@ -90,4 +90,2 @@
+ rm -f fotoxx.1.gz
+- # menu (desktop) file
+- cp -f desktop $(DESTDIR)$(MENUFILE)
+
diff --git a/media-gfx/fotoxx/files/fotoxx-15.05.patch b/media-gfx/fotoxx/files/fotoxx-15.05.patch
new file mode 100644
index 000000000000..15fdaa9abacf
--- /dev/null
+++ b/media-gfx/fotoxx/files/fotoxx-15.05.patch
@@ -0,0 +1,13 @@
+diff -r -U1 fotoxx-14.10.2.orig/Makefile fotoxx-14.10.2/Makefile
+--- fotoxx-14.10.2.orig/Makefile 2014-10-09 15:17:09.000000000 +0700
++++ fotoxx-14.10.2/Makefile 2014-10-13 20:44:55.061728475 +0700
+@@ -16,3 +16,3 @@
+ LOCALESDIR = $(SHAREDIR)/locales
+-DOCDIR = $(PREFIX)/share/doc/fotoxx
++DOCDIR = $(PREFIX)/share/doc/$(PF)
+ MANDIR = $(PREFIX)/share/man/man1
+@@ -90,4 +90,2 @@
+ rm -f fotoxx.1.gz
+- # menu (desktop) file
+- cp -f desktop $(DESTDIR)$(MENUFILE)
+
diff --git a/media-gfx/fotoxx/fotoxx-13.11.1.ebuild b/media-gfx/fotoxx/fotoxx-13.11.1.ebuild
new file mode 100644
index 000000000000..67684ae938d2
--- /dev/null
+++ b/media-gfx/fotoxx/fotoxx-13.11.1.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+
+inherit eutils toolchain-funcs fdo-mime
+
+DESCRIPTION="Program for improving image files made with a digital camera"
+HOMEPAGE="http://www.kornelix.com/fotoxx.html"
+SRC_URI="http://www.kornelix.com/uploads/1/3/0/3/13035936/${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+DEPEND="
+ x11-libs/gtk+:3
+ media-libs/libpng
+ media-libs/tiff
+ media-libs/lcms:2"
+RDEPEND="${DEPEND}
+ media-libs/exiftool
+ media-gfx/ufraw[gtk]
+ media-gfx/dcraw
+ x11-misc/xdg-utils"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PF}.patch
+}
+
+src_compile() {
+ tc-export CXX
+ emake
+}
+
+src_install() {
+ # For the Help menu items to work, *.html must be in /usr/share/doc/${PF},
+ # and README, changelog, translations, edit-menus, KB-shortcuts must not be compressed
+ emake DESTDIR="${D}" install
+ newmenu desktop ${PN}.desktop
+ rm -f "${D}"/usr/share/doc/${PF}/*.man
+ docompress -x /usr/share/doc
+}
+
+pkg_postinst() {
+ fdo-mime_mime_database_update
+ fdo-mime_desktop_database_update
+}
+
+pkg_postrm() {
+ fdo-mime_desktop_database_update
+ fdo-mime_mime_database_update
+}
diff --git a/media-gfx/fotoxx/fotoxx-15.04.1.ebuild b/media-gfx/fotoxx/fotoxx-15.04.1.ebuild
new file mode 100644
index 000000000000..5f911c91bb97
--- /dev/null
+++ b/media-gfx/fotoxx/fotoxx-15.04.1.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+
+inherit eutils toolchain-funcs fdo-mime
+
+DESCRIPTION="Program for improving image files made with a digital camera"
+HOMEPAGE="http://www.kornelix.com/fotoxx.html"
+SRC_URI="http://www.kornelix.com/uploads/1/3/0/3/13035936/${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="
+ x11-libs/gtk+:3
+ media-libs/libpng
+ media-libs/tiff
+ media-libs/lcms:2"
+RDEPEND="${DEPEND}
+ media-libs/exiftool
+ media-gfx/ufraw[gtk]
+ media-gfx/dcraw
+ x11-misc/xdg-utils"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PF}.patch
+}
+
+src_compile() {
+ tc-export CXX
+ emake
+}
+
+src_install() {
+ # For the Help menu items to work, *.html must be in /usr/share/doc/${PF},
+ # and README, changelog, translations, edit-menus, KB-shortcuts must not be compressed
+ emake DESTDIR="${D}" install
+ newmenu desktop ${PN}.desktop
+ rm -f "${D}"/usr/share/doc/${PF}/*.man
+ docompress -x /usr/share/doc
+}
+
+pkg_postinst() {
+ fdo-mime_mime_database_update
+ fdo-mime_desktop_database_update
+}
+
+pkg_postrm() {
+ fdo-mime_desktop_database_update
+ fdo-mime_mime_database_update
+}
diff --git a/media-gfx/fotoxx/fotoxx-15.05.ebuild b/media-gfx/fotoxx/fotoxx-15.05.ebuild
new file mode 100644
index 000000000000..5f911c91bb97
--- /dev/null
+++ b/media-gfx/fotoxx/fotoxx-15.05.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+
+inherit eutils toolchain-funcs fdo-mime
+
+DESCRIPTION="Program for improving image files made with a digital camera"
+HOMEPAGE="http://www.kornelix.com/fotoxx.html"
+SRC_URI="http://www.kornelix.com/uploads/1/3/0/3/13035936/${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="
+ x11-libs/gtk+:3
+ media-libs/libpng
+ media-libs/tiff
+ media-libs/lcms:2"
+RDEPEND="${DEPEND}
+ media-libs/exiftool
+ media-gfx/ufraw[gtk]
+ media-gfx/dcraw
+ x11-misc/xdg-utils"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PF}.patch
+}
+
+src_compile() {
+ tc-export CXX
+ emake
+}
+
+src_install() {
+ # For the Help menu items to work, *.html must be in /usr/share/doc/${PF},
+ # and README, changelog, translations, edit-menus, KB-shortcuts must not be compressed
+ emake DESTDIR="${D}" install
+ newmenu desktop ${PN}.desktop
+ rm -f "${D}"/usr/share/doc/${PF}/*.man
+ docompress -x /usr/share/doc
+}
+
+pkg_postinst() {
+ fdo-mime_mime_database_update
+ fdo-mime_desktop_database_update
+}
+
+pkg_postrm() {
+ fdo-mime_desktop_database_update
+ fdo-mime_mime_database_update
+}
diff --git a/media-gfx/fotoxx/metadata.xml b/media-gfx/fotoxx/metadata.xml
new file mode 100644
index 000000000000..de79489b296c
--- /dev/null
+++ b/media-gfx/fotoxx/metadata.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>grozin@gentoo.org</email>
+ <name>Andrey Grozin</name>
+ </maintainer>
+ <longdescription lang="en">
+ Navigate a large image collection using a thumbnail browser.
+ Import camera RAW files and edit with 16-bit color.
+ Save edited images as TIFF-8/16, PNG or JPEG with adjustable compression.
+ Edit the whole image or a selected area, with adjustable edge-blending.
+ Edit functions have live feedback using the full window.
+ Undo/redo up to 99 edits. Add tags, dates, and star-ratings to images
+ and search using these criteria and (wildcard) file names.
+ Fotoxx does not use filters, layers, and masks - the edit functions work directly on the image.
+ </longdescription>
+</pkgmetadata>
diff --git a/media-gfx/fr0st/Manifest b/media-gfx/fr0st/Manifest
new file mode 100644
index 000000000000..140a25b3392a
--- /dev/null
+++ b/media-gfx/fr0st/Manifest
@@ -0,0 +1,6 @@
+AUX fr0st-1.4-colour.patch 342 SHA256 e998cde827b65a35f940eb111dd32f59f619504fa1a470a6aa8ed21bfb637f2b SHA512 f3f6fe3af3dca4f709b7fcbd9b8f6c2b089c5cd7b1188a874b16d13eac9f3aae959ed5065a6ecf92ee47080ce25759c8180b86d1c9bd0f85e655217b7bd2f4b7 WHIRLPOOL fa5d7039a64ffa7753bf0a6d21540f61d526c47a2a7cdd769e7b13455dbb2fbd8069f87bcb92a049dd49f9d2624c8991af75ffc433eac6821f8889175781df39
+DIST fr0st-1.4-src.tgz 1535978 SHA256 88b545245c1cea6506c4c59a32f3c302703365c1fb477d951fcb465281589989 SHA512 d4ececca724bef264097466328e98699efbf82d999107a1ed8b21b938fd5025b888197f021ac56c7fb008226f0230bd058cb94efec61bb59d67f2263d3140ec5 WHIRLPOOL 9d3f389d56d1b23d044fab65f843c3ff6f95ec30d68635c6225b6512d970896e34a40f091e01f938e02d611503481575a30a9294300aa463479a909aa932c67a
+EBUILD fr0st-1.4-r2.ebuild 1166 SHA256 b97f651982de6807b1b729480d3aab937546a9d05cd75b225b2b41de119d6f5e SHA512 31a16cb6e838611ff30bdbdcfa7006d102192725483b00a766813e9ce3f441e1a16d6fd596521f5e0337ebed22abc99dd34824aa03f5d2f569d49cd2e761ee3a WHIRLPOOL 5231453aa0c638acf8e336b47530d7ec694d0c4bd4454062873af135979707c9562da914b1ccf25d52cd28155915846050009babdbb963163d28b5df770d4eb9
+MISC ChangeLog 3036 SHA256 901296f35ad906c4f8ab43a86d84e023eeecd5de4b518e5cf43dc1a706148aac SHA512 6c56bbc78bc558dfd7b773780910ed4be5206f7e61d3dd470335cef50bcc2a9bff7730ca0f54da9878839e544c036fed1dbb9253d2d21c1954e3431d0ad32e99 WHIRLPOOL 7af6c099bbff98507882078854010d21c9a916b7fb6fd6ca74efd695696bfdc330fe347a35ba1561e9f07e49fe3c0a108ee45b1e775c87c272f369a9d4719a6d
+MISC ChangeLog-2015 602 SHA256 d9ec458e2ff7bedc627752bfc8d58cd64731b3fd7b83c2c907a2ea7e1a3c7a44 SHA512 52286c8c4c0609a83a1c5c71d29f7ebdbc6ede4ea125aae4752ff9eb8c3a5da342307956dccef4d0a6ab628516dbffb47e6ec73a0f5b29d9ec543ec4182292f7 WHIRLPOOL a31eb75a4b1706d48d8ac0f40fd503f02c02b106aa66a71d853871b2f68717e8d66b3d904aeab1c49a414ce7c266a661c36704facc68312e8c64c2eead4ca7bf
+MISC metadata.xml 332 SHA256 01c2518dcf5f7fb0749e927035431d3d4f9e8c9f23d934bcb171c3f1409f4170 SHA512 9d0d54e496ce20b092cbc4080e326cfc3ccbb9d9f6a5ac2c40a12a3647c702fa018832bb701947819bc09d2704e397ebd391fc74d2010033da379ca18964d4ec WHIRLPOOL 9eb64fdf41630becb43408cd4990595f230d238fc3b4914dd0285f6cd992df9dcd85b91b6cdd3ffc1e951b2e543c263c39f4c2a3490e9871925e57fbb9813680
diff --git a/media-gfx/fr0st/files/fr0st-1.4-colour.patch b/media-gfx/fr0st/files/fr0st-1.4-colour.patch
new file mode 100644
index 000000000000..9fb17aadaab7
--- /dev/null
+++ b/media-gfx/fr0st/files/fr0st-1.4-colour.patch
@@ -0,0 +1,9 @@
+--- fr0stlib/gui/canvas.py~ 2011-05-14 19:58:25.000000000 +0200
++++ fr0stlib/gui/canvas.py 2016-02-20 17:47:25.853322560 +0100
+@@ -79,7 +79,7 @@
+
+ def SetBrush(self, FillColor, FillStyle):
+ r,g,b = FillColor
+- c = wx.Color(r,g,b, self.Opacity)
++ c = wx.Colour(r,g,b, self.Opacity)
+ self.Brush = wx.Brush(c)
diff --git a/media-gfx/fr0st/fr0st-1.4-r2.ebuild b/media-gfx/fr0st/fr0st-1.4-r2.ebuild
new file mode 100644
index 000000000000..15677c3b0257
--- /dev/null
+++ b/media-gfx/fr0st/fr0st-1.4-r2.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+WX_GTK_VER="3.0"
+PYTHON_COMPAT=( python2_7 )
+
+inherit eutils multilib python-single-r1 wxwidgets
+
+DESCRIPTION="A fractal flame editor"
+HOMEPAGE="http://fr0st.wordpress.com/"
+SRC_URI="https://launchpad.net/${PN}/trunk/${PV}.0/+download/${P}-src.tgz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+RDEPEND="${PYTHON_DEPS}
+ dev-python/wxpython:${WX_GTK_VER}
+ >=media-gfx/flam3-3.0.1
+"
+DEPEND="${RDEPEND}"
+
+S="${WORKDIR}/${P}-src"
+
+pkg_setup() {
+ fr0st_libdir="/usr/$(get_libdir)/fr0st"
+ fr0st_sharedir="/usr/share/fr0st"
+
+ python-single-r1_pkg_setup
+}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-colour.patch #564106
+ python_fix_shebang .
+ need-wxwidgets unicode
+}
+
+src_install() {
+ insinto "${fr0st_sharedir}"
+ doins -r icons samples
+
+ insinto "${fr0st_libdir}"
+ doins -r fr0stlib
+
+ exeinto "${fr0st_libdir}"
+ doexe fr0st.py
+
+ dosym "${fr0st_libdir}"/fr0st.py /usr/bin/fr0st
+ dosym "${fr0st_sharedir}"/icons/fr0st.png /usr/share/pixmaps/fr0st.png
+
+ make_desktop_entry fr0st fr0st
+
+ dodoc changelog.txt
+}
diff --git a/media-gfx/fr0st/metadata.xml b/media-gfx/fr0st/metadata.xml
new file mode 100644
index 000000000000..d503ce096805
--- /dev/null
+++ b/media-gfx/fr0st/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="launchpad">fr0st</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/media-gfx/freecad/Manifest b/media-gfx/freecad/Manifest
new file mode 100644
index 000000000000..3b8034bb8db0
--- /dev/null
+++ b/media-gfx/freecad/Manifest
@@ -0,0 +1,16 @@
+AUX freecad-0.14.3702-install-paths.patch 1143 SHA256 3a16c5568f88e5a92a0b4d3c567a4851a9411b402ee6008443db371afd3f9270 SHA512 12181e4b48e4fb6284b574cb9872af713323d8f229a6c1746424968b0d22300bd6ada6437854a730dd4c5310eb36ebb06a35375ab012d36e9d3af4fb4271d884 WHIRLPOOL e4b7a3e3522929102c8658b0fabdeb571b2c9fec720f11923a5b327d6ef7b85a0dc20e958dce1d1caa1b49e228136cc7f7816d026750cdedbdd9ef8d63e500dd
+AUX freecad-0.15.4671-boost-1.60.patch 887 SHA256 2e7005e2590dd08dce0705e45a925c618c39034a181d5e38461d688f3384fbbf SHA512 c8874d2cd7afa968f50c9491fc3682682b208990affe9dd8596a1f512040eadbc66680806a3d361cb716e87267d7e7b066b5b74b2e448eb4e18b41a5b0e6519e WHIRLPOOL 88574fc42baa2660eee420edb5bc574c7ea2c6755a7f350456d56ec6b92449daa51b33c543d973c4d4fc9f8aa2b6ad023cd5346228fffe1e67ab822d504fd640
+AUX freecad.sharedmimeinfo 312 SHA256 269e6b38d4a5f4e593e9e1e911ccd0185a1cb7a0250ae2a308cfc482e56615f1 SHA512 bb55cad8387032af0e06ce7f1b4cab4354a34a915b9f550de25e05bf24d4161d9ea152d5692d65df4b362622f76a11d78894deaf7fee60c7a3fc0bfec38fa10c WHIRLPOOL e4185b2d067d5e9b7a0b065b5cc6a92da055f96b610bdee5aecd28f379abe2a31feddccc5ccc6222978d5fbf73a7734a880cfd1f62a8383fa828d90147856081
+DIST freecad-0.15.4671.tar.gz 93680347 SHA256 8dda8f355cb59866a55c9c6096f39a3ebc5347892284db4c305352cc9be03bbc SHA512 695081117b5511bbc0b7335b63a8760e164987a6dff2c5b0dc86b6b0a93bb7d7b83aa9f4fab1d66d7d2c917a42b0135af78553b463579873a1d1e52e3dd9aecb WHIRLPOOL 0c351ad9ee360dfd9af54af9cc348a6ba3d8c15b6743667f6943e41aa252cec9bd2149baa32fceeceac65660a9b629aefba3c80a5c3a84c45a8d502323547287
+DIST freecad-0.16.6712.tar.gz 111706423 SHA256 97aa130addeb0f3c0bf79e4828fbd242b76cc92603771d6b7aeb9dbd9f111a92 SHA512 ea8214b37f7a10a3e3e558e6c1223d9212d6c2906b79961c8cb9211edff97a41e2da0ce6cf64cdc7a22610f6ff13495163c46573b5dd84d4a7cc0260f15e371e WHIRLPOOL 2c6f9e3afeb83befbaeb8d51ddf8272ab21473f8ef73095eebe5985a4f1979bb67767c3fca30ebdc853dfbdcd207e2a58e41f323d6ca8ff9502ee2aef9b33850
+DIST freecad-0.16.tar.gz 111706127 SHA256 6cc71ab4b0dc60b493d3aaa4b42f1ce1af9d4fcd539309ab0792804579e18e09 SHA512 bc9dc8122cabd9a84f2b955746818e0d77ae90e68747ec96521099472b7803df9ff794ed823d6eb29352bd0538b8f01cf81c306ff427f1af2ee049f8f7096dbb WHIRLPOOL 8d90a4213808dcd7ce7adeaeac8a30351e06b217e31326817cb034ec02dcfe7be0ea71cb5bf297e1bab3a8a6c6ac24848f51a0453f9bf09162e700bc52f9cf4d
+DIST freecad-0.17_pre.tar.gz 111704401 SHA256 25648fbaac8a96d7e63d8881fbc79f1829eff2852927e427cfe6d5f4f60a4f95 SHA512 a826a549d842ba322f7ec5f786d402e81f5b916008be450bacefb7ee976e203427130938c036cc6fca6ea11a8df0ab9b4a39f3bdfedc3cc1a7d31e7a5d11e142 WHIRLPOOL 959c90ad8bc70f063a98bbd03c2bf3c84c8f8bd0ea534120811d59cf9b8f017bdca62538ff226bfc4b326155b435cd948fe5a207a97a237e971a96c99a8756c6
+EBUILD freecad-0.15.4671.ebuild 4167 SHA256 35effdc439c45011ced3f37192447af7ef37288cf5a2f6df783b2b96f9b5523c SHA512 c49ca10b5fc1eac27427646fa80631845737736166dde138075feca8f49745d6d78810427978047ce48cbd24190bd4ca5211a87218a3a8fa1497d9e575d3d9ba WHIRLPOOL 196b774513684529d44b60c33951074936c34a5d1ebb9a60678a88a4e06fedfa9cbdc0424704252e35b307c5e133c44190aecb4425fc2b9353f7a54695676729
+EBUILD freecad-0.16-r1.ebuild 3605 SHA256 81c960e69043c2b91556668671d4aaa0e15a6b11e5bb9032bf387ec4c36b1c5c SHA512 052dbf79436202e14348fed93a98323ce694a63ebc8bb37a1236628998d78b4eacc37a9800388c390efc3e2dbb8e6fbd3a7a8ea2f3a049e39d6ffee8e4f41312 WHIRLPOOL f7186cdf33f747eea7ed33c76baf0d00245cb74f00e6f3697ad4d906f07f9841798f699fcf1af1a202af31765451122228a607cee142cf13f90f699d4fe79d57
+EBUILD freecad-0.16.6712.ebuild 3605 SHA256 81c960e69043c2b91556668671d4aaa0e15a6b11e5bb9032bf387ec4c36b1c5c SHA512 052dbf79436202e14348fed93a98323ce694a63ebc8bb37a1236628998d78b4eacc37a9800388c390efc3e2dbb8e6fbd3a7a8ea2f3a049e39d6ffee8e4f41312 WHIRLPOOL f7186cdf33f747eea7ed33c76baf0d00245cb74f00e6f3697ad4d906f07f9841798f699fcf1af1a202af31765451122228a607cee142cf13f90f699d4fe79d57
+EBUILD freecad-0.16.ebuild 3817 SHA256 826b909b3b5bb157e95e51de091b2d9a6da752939e9f6be9ef4fae7c9db38a5e SHA512 08fd5ffe8f6eb966739a973e8d77abca751027fd42299671f9fe0426b5ae9a0f9ae00510c2329b614d801333938825776bf084a5b9e5d48ae948d92868024f54 WHIRLPOOL 31d348a3c1c36ae010336c56858ce7ba22d25d79c5ff8fcbd148b52f5191f478092ca281239daba32e72696181f75be33bca87093758789219e68882f6892af3
+EBUILD freecad-0.17_pre.ebuild 3605 SHA256 81c960e69043c2b91556668671d4aaa0e15a6b11e5bb9032bf387ec4c36b1c5c SHA512 052dbf79436202e14348fed93a98323ce694a63ebc8bb37a1236628998d78b4eacc37a9800388c390efc3e2dbb8e6fbd3a7a8ea2f3a049e39d6ffee8e4f41312 WHIRLPOOL f7186cdf33f747eea7ed33c76baf0d00245cb74f00e6f3697ad4d906f07f9841798f699fcf1af1a202af31765451122228a607cee142cf13f90f699d4fe79d57
+EBUILD freecad-9999.ebuild 3723 SHA256 f412f8250587b8beee7f72d4720ccc62260dae5bbda4ebccfb2012b38f1500f6 SHA512 1f4612b7853f4b17c4fde893ecc8049a3298bf484f7e59a26df06d9fac25050e483a015d71b4af354594e4d37f1b17af5678564fa5425e1441db3f0254a1b24d WHIRLPOOL 2e1a82b841e5a9c12637f1c043ddae9aa90d49d18632f4622159693b76cd54bc8d641c35bdf585a6628c30c42aff5ec4540ca41a860275f894afb00e0e24a2f8
+MISC ChangeLog 7579 SHA256 81de15a5b8177c7015034b0e14bd7e5f9e2c8580b2d1396a0bcc0777598ec37c SHA512 ec6690a90a3f33371be45ab61a251cebcfd3c41856a112e0dce94267ef6820ef394e8bf2ba1d7a88fdb2900e26103c999a702270018b555f32e91dce72311e26 WHIRLPOOL 54907b8549b1d2cdca17579f73ee70fa5b5d3b86e3fb1d9bdbdd1a8efa7d9faccf0cc900b794610edffb8ce000828a2b9ab320516ed85133e222a24eb6beba64
+MISC ChangeLog-2015 6633 SHA256 4dd83dd00805ac6dceaec8c4d18f572eaf467d50775afad61369420f53d9a971 SHA512 dec9d93aee021e7dc5bebe7b279c3e50506b48b8291d21037d9a609e8ffcacf1b19efd29f7ae2ec2bef0343e9f5442927b3ba2cdf212c61eb02e324026519a27 WHIRLPOOL 6ca7fcadf36ada57b4b23978d3ca9951e901f589b1d111a868ad3e45f6cbfbe8438de26bea9ce2ed8373adc1db40a3037ca4f87f56d3185734082661b04ecda4
+MISC metadata.xml 376 SHA256 c2dc08e9c6a05c6ac5940444ee00f05e4300670d4d47d0e15bccaf277455a4e6 SHA512 2b159882b18f33adc78ede30133528a915130d21fcfd111a099861b2ee719b59338cd81af63a289bb5812ce04dee238a6eb4596a95a5abedbc453f631e827f53 WHIRLPOOL 3a10b2f137ce880d2e73878ea2170ae1884ed18c9184962b419144474c73c207fdeab1af20c908265ac0eb275beeb99d2a60c988619fce39eba629d2d1d5a573
diff --git a/media-gfx/freecad/files/freecad-0.14.3702-install-paths.patch b/media-gfx/freecad/files/freecad-0.14.3702-install-paths.patch
new file mode 100644
index 000000000000..d042695e88c6
--- /dev/null
+++ b/media-gfx/freecad/files/freecad-0.14.3702-install-paths.patch
@@ -0,0 +1,21 @@
+--- freecad-0.14.3702/CMakeLists.txt
++++ freecad-0.14.3702/CMakeLists.txt
+@@ -69,9 +69,15 @@
+ SET(CMAKE_INSTALL_PREFIX "/usr/lib${LIB_SUFFIX}/freecad" CACHE PATH "Installation root directory")
+ endif(WIN32)
+
+-SET(CMAKE_INSTALL_DATADIR data CACHE PATH "Output directory for data and resource files")
+-SET(CMAKE_INSTALL_INCLUDEDIR include CACHE PATH "Output directory for header files")
+-SET(CMAKE_INSTALL_DOCDIR doc CACHE PATH "Output directory for documentation and license files")
++if(NOT CMAKE_INSTALL_DATADIR)
++ SET(CMAKE_INSTALL_DATADIR data CACHE PATH "Output directory for data and resource files")
++endif(NOT CMAKE_INSTALL_DATADIR)
++if(NOT CMAKE_INSTALL_INCLUDEDIR)
++ SET(CMAKE_INSTALL_INCLUDEDIR include CACHE PATH "Output directory for header files")
++endif(NOT CMAKE_INSTALL_INCLUDEDIR)
++if(NOT CMAKE_INSTALL_DOCDIR)
++ SET(CMAKE_INSTALL_DOCDIR doc CACHE PATH "Output directory for documentation and license files")
++endif(NOT CMAKE_INSTALL_DOCDIR)
+ # Don't set it without manual adaption of LibDir variable in src/App/FreeCADInit.py
+ SET(CMAKE_INSTALL_LIBDIR lib CACHE PATH "Output directory for libraries")
+
diff --git a/media-gfx/freecad/files/freecad-0.15.4671-boost-1.60.patch b/media-gfx/freecad/files/freecad-0.15.4671-boost-1.60.patch
new file mode 100644
index 000000000000..4a7dbabdfc55
--- /dev/null
+++ b/media-gfx/freecad/files/freecad-0.15.4671-boost-1.60.patch
@@ -0,0 +1,16 @@
+From e0683f4db0fb56f8139f78ca2e500b21ec2a67f0 Mon Sep 17 00:00:00 2001
+From: wmayer <wmayer@users.sourceforge.net>
+Date: Mon, 28 Dec 2015 13:54:40 +0100
+Subject: [PATCH] + fixes #0002347: freecad fails to build with Boost 1.60.0
+
+--- freecad-0.15.4671/src/Mod/Drawing/App/FeaturePage.cpp
++++ freecad-0.15.4671/src/Mod/Drawing/App/FeaturePage.cpp
+@@ -195,7 +195,7 @@
+ if (count < editText.size()) {
+ // change values of editable texts
+ boost::regex e2 ("(<text.*?freecad:editable=\""+what[1].str()+"\".*?<tspan.*?)>(.*?)(</tspan>)");
+- boost::re_detail::string_out_iterator<std::string > out(newfragment);
++ std::back_insert_iterator<std::string> out(newfragment);
+ boost::regex_replace(out, begin, what[0].second, e2, "$1>"+editText[count]+"$3");
+ }
+ count++;
diff --git a/media-gfx/freecad/files/freecad.sharedmimeinfo b/media-gfx/freecad/files/freecad.sharedmimeinfo
new file mode 100644
index 000000000000..6d5e93e7d13c
--- /dev/null
+++ b/media-gfx/freecad/files/freecad.sharedmimeinfo
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<mime-info xmlns='http://www.freedesktop.org/standards/shared-mime-info'>
+ <mime-type type="application/x-extension-fcstd">
+ <!-- <sub-class-of type="application/zip"/> -->
+ <comment>FreeCAD document files</comment>
+ <glob pattern="*.fcstd"/>
+ </mime-type>
+</mime-info>
diff --git a/media-gfx/freecad/freecad-0.15.4671.ebuild b/media-gfx/freecad/freecad-0.15.4671.ebuild
new file mode 100644
index 000000000000..32e4afa27353
--- /dev/null
+++ b/media-gfx/freecad/freecad-0.15.4671.ebuild
@@ -0,0 +1,145 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+PYTHON_COMPAT=( python2_7 )
+
+inherit cmake-utils eutils fortran-2 multilib python-single-r1 fdo-mime
+
+DESCRIPTION="QT based Computer Aided Design application"
+HOMEPAGE="http://www.freecadweb.org/"
+SRC_URI="mirror://sourceforge/free-cad/${PN}_${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+COMMON_DEPEND="dev-cpp/eigen:3
+ dev-libs/boost
+ dev-libs/xerces-c[icu]
+ dev-python/matplotlib
+ dev-python/pyside:0[X]
+ dev-python/shiboken:0
+ dev-qt/designer:4
+ dev-qt/qtgui:4
+ dev-qt/qtopengl:4
+ dev-qt/qtsvg:4
+ dev-qt/qtwebkit:4
+ media-libs/coin
+ || ( sci-libs/opencascade:6.9.0[vtk] sci-libs/opencascade:6.8.0 sci-libs/opencascade:6.7.1 )
+ sys-libs/zlib
+ virtual/glu
+ ${PYTHON_DEPS}"
+RDEPEND="${COMMON_DEPEND}
+ dev-qt/assistant:4
+ dev-python/pivy
+ dev-python/numpy"
+DEPEND="${COMMON_DEPEND}
+ dev-python/pyside-tools:0
+ >=dev-lang/swig-2.0.4-r1:0"
+
+# https://bugs.gentoo.org/show_bug.cgi?id=352435
+# https://www.gentoo.org/foundation/en/minutes/2011/20110220_trustees.meeting_log.txt
+RESTRICT="bindist mirror"
+
+# TODO:
+# DEPEND and RDEPEND:
+# salome-smesh - science overlay
+# zipio++ - not in portage yet
+
+pkg_setup() {
+ fortran-2_pkg_setup
+ python-single-r1_pkg_setup
+
+ [ -z "${CASROOT}" ] && die "empty \$CASROOT, run eselect opencascade set or define otherwise"
+}
+
+src_prepare() {
+ einfo remove bundled libs
+ rm -rf src/3rdParty/{boost,Pivy*}
+
+ epatch "${FILESDIR}"/${PN}-0.14.3702-install-paths.patch \
+ "${FILESDIR}"/${P}-boost-1.60.patch
+
+ #bug 518996
+ sed -e "/LibDir = /s:'lib':'"$(get_libdir)"':g" \
+ -i src/App/FreeCADInit.py || die
+
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DOCC_INCLUDE_DIR="${CASROOT}"/inc
+ -DOCC_INCLUDE_PATH="${CASROOT}"/inc
+ -DOCC_LIBRARY="${CASROOT}"/lib/libTKernel.so
+ -DOCC_LIBRARY_DIR="${CASROOT}"/lib
+ -DOCC_LIB_PATH="${CASROOT}"/lib
+ -DCOIN3D_INCLUDE_DIR="${EROOT}"usr/include/coin
+ -DCOIN3D_LIBRARY="${EROOT}"usr/$(get_libdir)/libCoin.so
+ -DSOQT_LIBRARY="${EROOT}"usr/$(get_libdir)/libSoQt.so
+ -DSOQT_INCLUDE_PATH="${EROOT}"usr/include/coin
+ -DCMAKE_INSTALL_PREFIX="${EROOT}"usr/$(get_libdir)/${P}
+ -DCMAKE_INSTALL_DATADIR="${EROOT}"usr/share/${P}/
+ -DCMAKE_INSTALL_DOCDIR="${EROOT}"usr/share/doc/${P}/
+ -DCMAKE_INSTALL_INCLUDEDIR="${EROOT}"usr/include/${P}/
+ -DFREECAD_USE_EXTERNAL_PIVY="ON"
+ -DFREECAD_BUILD_FEM="OFF"
+ )
+
+ # TODO to remove embedded dependencies:
+ #
+ # -DFREECAD_USE_EXTERNAL_ZIPIOS="ON" -- this option needs zipios++ but it's not yet in portage so the embedded zipios++
+ # (under src/zipios++) will be used
+ # salomesmesh is in 3rdparty but upstream's find_package function is not complete yet to compile against external version
+ # (external salomesmesh is available in "science" overlay)
+
+ cmake-utils_src_configure
+ ewarn "${P} will be built against opencascade version ${CASROOT}"
+}
+
+src_install() {
+ cmake-utils_src_install
+
+ prune_libtool_files
+
+ make_wrapper FreeCAD \
+ "${EROOT}"usr/$(get_libdir)/${P}/bin/FreeCAD \
+ "" "${EROOT}"usr/$(get_libdir)/${P}/lib
+ make_wrapper FreeCADCmd \
+ "${EROOT}"usr/$(get_libdir)/${P}/bin/FreeCADCmd \
+ "" "${EROOT}"usr/$(get_libdir)/${P}/lib
+
+ make_desktop_entry FreeCAD "FreeCAD" "" "" "MimeType=application/x-extension-fcstd;"
+
+ dodoc README.Linux ChangeLog.txt
+
+ # install mimetype for FreeCAD files
+ insinto /usr/share/mime/packages
+ newins "${FILESDIR}"/${PN}.sharedmimeinfo "${PN}.xml"
+
+ # install icons to correct place rather than /usr/share/freecad
+ pushd "${ED}/usr/share/${P}"
+ for size in 16 32 48 64; do
+ newicon -s ${size} freecad-icon-${size}.png freecad.png
+ done
+ doicon -s scalable freecad.svg
+ newicon -s 64 -c mimetypes freecad-doc.png application-x-extension-fcstd.png
+ popd
+
+ # disable compression of QT assistant help files
+ >> "${ED}"usr/share/doc/${P}/freecad.qhc.ecompress.skip
+ >> "${ED}"usr/share/doc/${P}/freecad.qch.ecompress.skip
+
+ python_optimize "${ED}"usr/{$(get_libdir),share}/${P}/Mod/
+}
+
+pkg_postinst() {
+ fdo-mime_mime_database_update
+}
+
+pkg_postrm() {
+ fdo-mime_mime_database_update
+}
diff --git a/media-gfx/freecad/freecad-0.16-r1.ebuild b/media-gfx/freecad/freecad-0.16-r1.ebuild
new file mode 100644
index 000000000000..e1f0300bd890
--- /dev/null
+++ b/media-gfx/freecad/freecad-0.16-r1.ebuild
@@ -0,0 +1,132 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python2_7 )
+
+inherit cmake-utils eutils xdg-utils fortran-2 python-single-r1
+
+DESCRIPTION="QT based Computer Aided Design application"
+HOMEPAGE="http://www.freecadweb.org/"
+
+if [[ ${PV} == *9999 ]]; then
+ inherit git-r3
+ EGIT_REPO_URI="https://github.com/FreeCAD/FreeCAD.git"
+else
+ SRC_URI="https://github.com/FreeCAD/FreeCAD/archive/${PV}.tar.gz -> ${P}.tar.gz"
+ KEYWORDS="~amd64 ~x86"
+fi
+
+LICENSE="GPL-2"
+SLOT="0"
+IUSE=""
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+COMMON_DEPEND="
+ ${PYTHON_DEPS}
+ dev-cpp/eigen:3
+ dev-java/xerces
+ dev-libs/boost:=[python,${PYTHON_USEDEP}]
+ dev-libs/xerces-c[icu]
+ dev-python/matplotlib[${PYTHON_USEDEP}]
+ dev-python/pyside:0[X,svg,${PYTHON_USEDEP}]
+ dev-python/shiboken:0[${PYTHON_USEDEP}]
+ dev-qt/designer:4
+ dev-qt/qtgui:4[-egl]
+ dev-qt/qtopengl:4[-egl]
+ dev-qt/qtsvg:4
+ dev-qt/qtwebkit:4
+ media-libs/coin
+ media-libs/freetype
+ || ( sci-libs/opencascade:6.9.1[vtk] sci-libs/opencascade:6.9.0[vtk] sci-libs/opencascade:6.8.0 sci-libs/opencascade:6.7.1 )
+ sci-libs/orocos_kdl
+ sys-libs/zlib
+ virtual/glu"
+RDEPEND="${COMMON_DEPEND}
+ dev-python/numpy[${PYTHON_USEDEP}]
+ dev-python/pivy[${PYTHON_USEDEP}]
+ dev-qt/assistant:4"
+DEPEND="${COMMON_DEPEND}
+ >=dev-lang/swig-2.0.4-r1:0
+ dev-python/pyside-tools:0[${PYTHON_USEDEP}]"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-0.14.3702-install-paths.patch
+)
+
+# https://bugs.gentoo.org/show_bug.cgi?id=352435
+# https://www.gentoo.org/foundation/en/minutes/2011/20110220_trustees.meeting_log.txt
+RESTRICT="mirror"
+
+# TODO:
+# DEPEND and RDEPEND:
+# salome-smesh - science overlay
+# zipio++ - not in portage yet
+
+S="${WORKDIR}/FreeCAD-${PV}"
+
+DOCS=( README.md ChangeLog.txt )
+
+pkg_setup() {
+ fortran-2_pkg_setup
+ python-single-r1_pkg_setup
+
+ [[ -z ${CASROOT} ]] && die "empty \$CASROOT, run eselect opencascade set or define otherwise"
+}
+
+src_configure() {
+ export QT_SELECT=4
+
+ #-DOCC_* defined with cMake/FindOpenCasCade.cmake
+ #-DCOIN3D_* defined with cMake/FindCoin3D.cmake
+ #-DSOQT_ not used
+ local mycmakeargs=(
+ -DOCC_INCLUDE_DIR="${CASROOT}"/inc
+ -DOCC_LIBRARY_DIR="${CASROOT}"/$(get_libdir)
+ -DCMAKE_INSTALL_DATADIR=share/${P}
+ -DCMAKE_INSTALL_DOCDIR=share/doc/${PF}
+ -DCMAKE_INSTALL_INCLUDEDIR=include/${P}
+ -DFREECAD_USE_EXTERNAL_KDL="ON"
+ )
+
+ # TODO to remove embedded dependencies:
+ #
+ # -DFREECAD_USE_EXTERNAL_ZIPIOS="ON" -- this option needs zipios++ but it's not yet in portage so the embedded zipios++
+ # (under src/zipios++) will be used
+ # salomesmesh is in 3rdparty but upstream's find_package function is not complete yet to compile against external version
+ # (external salomesmesh is available in "science" overlay)
+
+ cmake-utils_src_configure
+ einfo "${P} will be built against opencascade version ${CASROOT}"
+}
+
+src_install() {
+ cmake-utils_src_install
+
+ make_desktop_entry FreeCAD "FreeCAD" "" "" "MimeType=application/x-extension-fcstd;"
+
+ # install mimetype for FreeCAD files
+ insinto /usr/share/mime/packages
+ newins "${FILESDIR}"/${PN}.sharedmimeinfo "${PN}.xml"
+
+ # install icons to correct place rather than /usr/share/freecad
+ pushd "${ED%/}"/usr/share/${P} || die
+ local size
+ for size in 16 32 48 64; do
+ newicon -s ${size} freecad-icon-${size}.png freecad.png
+ done
+ doicon -s scalable freecad.svg
+ newicon -s 64 -c mimetypes freecad-doc.png application-x-extension-fcstd.png
+ popd || die
+
+ python_optimize "${ED%/}"/usr/{,share/${P}/}Mod/
+}
+
+pkg_postinst() {
+ xdg_mimeinfo_database_update
+}
+
+pkg_postrm() {
+ xdg_mimeinfo_database_update
+}
diff --git a/media-gfx/freecad/freecad-0.16.6712.ebuild b/media-gfx/freecad/freecad-0.16.6712.ebuild
new file mode 100644
index 000000000000..e1f0300bd890
--- /dev/null
+++ b/media-gfx/freecad/freecad-0.16.6712.ebuild
@@ -0,0 +1,132 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python2_7 )
+
+inherit cmake-utils eutils xdg-utils fortran-2 python-single-r1
+
+DESCRIPTION="QT based Computer Aided Design application"
+HOMEPAGE="http://www.freecadweb.org/"
+
+if [[ ${PV} == *9999 ]]; then
+ inherit git-r3
+ EGIT_REPO_URI="https://github.com/FreeCAD/FreeCAD.git"
+else
+ SRC_URI="https://github.com/FreeCAD/FreeCAD/archive/${PV}.tar.gz -> ${P}.tar.gz"
+ KEYWORDS="~amd64 ~x86"
+fi
+
+LICENSE="GPL-2"
+SLOT="0"
+IUSE=""
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+COMMON_DEPEND="
+ ${PYTHON_DEPS}
+ dev-cpp/eigen:3
+ dev-java/xerces
+ dev-libs/boost:=[python,${PYTHON_USEDEP}]
+ dev-libs/xerces-c[icu]
+ dev-python/matplotlib[${PYTHON_USEDEP}]
+ dev-python/pyside:0[X,svg,${PYTHON_USEDEP}]
+ dev-python/shiboken:0[${PYTHON_USEDEP}]
+ dev-qt/designer:4
+ dev-qt/qtgui:4[-egl]
+ dev-qt/qtopengl:4[-egl]
+ dev-qt/qtsvg:4
+ dev-qt/qtwebkit:4
+ media-libs/coin
+ media-libs/freetype
+ || ( sci-libs/opencascade:6.9.1[vtk] sci-libs/opencascade:6.9.0[vtk] sci-libs/opencascade:6.8.0 sci-libs/opencascade:6.7.1 )
+ sci-libs/orocos_kdl
+ sys-libs/zlib
+ virtual/glu"
+RDEPEND="${COMMON_DEPEND}
+ dev-python/numpy[${PYTHON_USEDEP}]
+ dev-python/pivy[${PYTHON_USEDEP}]
+ dev-qt/assistant:4"
+DEPEND="${COMMON_DEPEND}
+ >=dev-lang/swig-2.0.4-r1:0
+ dev-python/pyside-tools:0[${PYTHON_USEDEP}]"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-0.14.3702-install-paths.patch
+)
+
+# https://bugs.gentoo.org/show_bug.cgi?id=352435
+# https://www.gentoo.org/foundation/en/minutes/2011/20110220_trustees.meeting_log.txt
+RESTRICT="mirror"
+
+# TODO:
+# DEPEND and RDEPEND:
+# salome-smesh - science overlay
+# zipio++ - not in portage yet
+
+S="${WORKDIR}/FreeCAD-${PV}"
+
+DOCS=( README.md ChangeLog.txt )
+
+pkg_setup() {
+ fortran-2_pkg_setup
+ python-single-r1_pkg_setup
+
+ [[ -z ${CASROOT} ]] && die "empty \$CASROOT, run eselect opencascade set or define otherwise"
+}
+
+src_configure() {
+ export QT_SELECT=4
+
+ #-DOCC_* defined with cMake/FindOpenCasCade.cmake
+ #-DCOIN3D_* defined with cMake/FindCoin3D.cmake
+ #-DSOQT_ not used
+ local mycmakeargs=(
+ -DOCC_INCLUDE_DIR="${CASROOT}"/inc
+ -DOCC_LIBRARY_DIR="${CASROOT}"/$(get_libdir)
+ -DCMAKE_INSTALL_DATADIR=share/${P}
+ -DCMAKE_INSTALL_DOCDIR=share/doc/${PF}
+ -DCMAKE_INSTALL_INCLUDEDIR=include/${P}
+ -DFREECAD_USE_EXTERNAL_KDL="ON"
+ )
+
+ # TODO to remove embedded dependencies:
+ #
+ # -DFREECAD_USE_EXTERNAL_ZIPIOS="ON" -- this option needs zipios++ but it's not yet in portage so the embedded zipios++
+ # (under src/zipios++) will be used
+ # salomesmesh is in 3rdparty but upstream's find_package function is not complete yet to compile against external version
+ # (external salomesmesh is available in "science" overlay)
+
+ cmake-utils_src_configure
+ einfo "${P} will be built against opencascade version ${CASROOT}"
+}
+
+src_install() {
+ cmake-utils_src_install
+
+ make_desktop_entry FreeCAD "FreeCAD" "" "" "MimeType=application/x-extension-fcstd;"
+
+ # install mimetype for FreeCAD files
+ insinto /usr/share/mime/packages
+ newins "${FILESDIR}"/${PN}.sharedmimeinfo "${PN}.xml"
+
+ # install icons to correct place rather than /usr/share/freecad
+ pushd "${ED%/}"/usr/share/${P} || die
+ local size
+ for size in 16 32 48 64; do
+ newicon -s ${size} freecad-icon-${size}.png freecad.png
+ done
+ doicon -s scalable freecad.svg
+ newicon -s 64 -c mimetypes freecad-doc.png application-x-extension-fcstd.png
+ popd || die
+
+ python_optimize "${ED%/}"/usr/{,share/${P}/}Mod/
+}
+
+pkg_postinst() {
+ xdg_mimeinfo_database_update
+}
+
+pkg_postrm() {
+ xdg_mimeinfo_database_update
+}
diff --git a/media-gfx/freecad/freecad-0.16.ebuild b/media-gfx/freecad/freecad-0.16.ebuild
new file mode 100644
index 000000000000..cbe390dc0c69
--- /dev/null
+++ b/media-gfx/freecad/freecad-0.16.ebuild
@@ -0,0 +1,135 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python2_7 )
+
+inherit cmake-utils eutils fdo-mime fortran-2 python-single-r1
+
+DESCRIPTION="QT based Computer Aided Design application"
+HOMEPAGE="http://www.freecadweb.org/"
+
+if [[ ${PV} == *9999 ]]; then
+ inherit git-r3
+ EGIT_REPO_URI="https://github.com/FreeCAD/FreeCAD.git"
+else
+ SRC_URI="https://github.com/FreeCAD/FreeCAD/archive/${PV}.tar.gz -> ${P}.tar.gz"
+ KEYWORDS="~amd64 ~x86"
+fi
+
+LICENSE="GPL-2"
+SLOT="0"
+IUSE=""
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+#sci-libs/orocos_kdl waiting for Bug 604130 (keyword ~x86)
+#dev-qt/qtgui:4[-egl] and dev-qt/qtopengl:4[-egl] : Bug 564978
+#dev-python/pyside[svg] : Bug 591012
+COMMON_DEPEND="
+ ${PYTHON_DEPS}
+ dev-cpp/eigen:3
+ dev-java/xerces
+ dev-libs/boost:=[python,${PYTHON_USEDEP}]
+ dev-libs/xerces-c[icu]
+ dev-python/matplotlib[${PYTHON_USEDEP}]
+ dev-python/pyside:0[X,svg,${PYTHON_USEDEP}]
+ dev-python/shiboken:0[${PYTHON_USEDEP}]
+ dev-qt/designer:4
+ dev-qt/qtgui:4[-egl]
+ dev-qt/qtopengl:4[-egl]
+ dev-qt/qtsvg:4
+ dev-qt/qtwebkit:4
+ media-libs/coin
+ media-libs/freetype
+ || ( sci-libs/opencascade:6.9.1[vtk] sci-libs/opencascade:6.9.0[vtk] sci-libs/opencascade:6.8.0 sci-libs/opencascade:6.7.1 )
+ sys-libs/zlib
+ virtual/glu"
+RDEPEND="${COMMON_DEPEND}
+ dev-python/numpy[${PYTHON_USEDEP}]
+ dev-python/pivy[${PYTHON_USEDEP}]
+ dev-qt/assistant:4"
+DEPEND="${COMMON_DEPEND}
+ >=dev-lang/swig-2.0.4-r1:0
+ dev-python/pyside-tools:0[${PYTHON_USEDEP}]"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-0.14.3702-install-paths.patch
+)
+
+# https://bugs.gentoo.org/show_bug.cgi?id=352435
+# https://www.gentoo.org/foundation/en/minutes/2011/20110220_trustees.meeting_log.txt
+RESTRICT="mirror"
+
+# TODO:
+# DEPEND and RDEPEND:
+# salome-smesh - science overlay
+# zipio++ - not in portage yet
+
+S="${WORKDIR}/FreeCAD-${PV}"
+
+DOCS=( README.md ChangeLog.txt )
+
+pkg_setup() {
+ fortran-2_pkg_setup
+ python-single-r1_pkg_setup
+
+ [[ -z ${CASROOT} ]] && die "empty \$CASROOT, run eselect opencascade set or define otherwise"
+}
+
+src_configure() {
+ export QT_SELECT=4
+
+ #-DOCC_* defined with cMake/FindOpenCasCade.cmake
+ #-DCOIN3D_* defined with cMake/FindCoin3D.cmake
+ #-DSOQT_ not used
+ #-DFREECAD_USE_EXTERNAL_KDL="ON" waiting for Bug 604130 (keyword ~x86)
+ local mycmakeargs=(
+ -DOCC_INCLUDE_DIR="${CASROOT}"/inc
+ -DOCC_LIBRARY_DIR="${CASROOT}"/$(get_libdir)
+ -DCMAKE_INSTALL_DATADIR=share/${P}
+ -DCMAKE_INSTALL_DOCDIR=share/doc/${PF}
+ -DCMAKE_INSTALL_INCLUDEDIR=include/${P}
+ -DFREECAD_USE_EXTERNAL_KDL="OFF"
+ )
+
+ # TODO to remove embedded dependencies:
+ #
+ # -DFREECAD_USE_EXTERNAL_ZIPIOS="ON" -- this option needs zipios++ but it's not yet in portage so the embedded zipios++
+ # (under src/zipios++) will be used
+ # salomesmesh is in 3rdparty but upstream's find_package function is not complete yet to compile against external version
+ # (external salomesmesh is available in "science" overlay)
+
+ cmake-utils_src_configure
+ einfo "${P} will be built against opencascade version ${CASROOT}"
+}
+
+src_install() {
+ cmake-utils_src_install
+
+ make_desktop_entry FreeCAD "FreeCAD" "" "" "MimeType=application/x-extension-fcstd;"
+
+ # install mimetype for FreeCAD files
+ insinto /usr/share/mime/packages
+ newins "${FILESDIR}"/${PN}.sharedmimeinfo "${PN}.xml"
+
+ # install icons to correct place rather than /usr/share/freecad
+ pushd "${ED%/}"/usr/share/${P} || die
+ local size
+ for size in 16 32 48 64; do
+ newicon -s ${size} freecad-icon-${size}.png freecad.png
+ done
+ doicon -s scalable freecad.svg
+ newicon -s 64 -c mimetypes freecad-doc.png application-x-extension-fcstd.png
+ popd || die
+
+ python_optimize "${ED%/}"/usr/{,share/${P}/}Mod/
+}
+
+pkg_postinst() {
+ fdo-mime_mime_database_update
+}
+
+pkg_postrm() {
+ fdo-mime_mime_database_update
+}
diff --git a/media-gfx/freecad/freecad-0.17_pre.ebuild b/media-gfx/freecad/freecad-0.17_pre.ebuild
new file mode 100644
index 000000000000..e1f0300bd890
--- /dev/null
+++ b/media-gfx/freecad/freecad-0.17_pre.ebuild
@@ -0,0 +1,132 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python2_7 )
+
+inherit cmake-utils eutils xdg-utils fortran-2 python-single-r1
+
+DESCRIPTION="QT based Computer Aided Design application"
+HOMEPAGE="http://www.freecadweb.org/"
+
+if [[ ${PV} == *9999 ]]; then
+ inherit git-r3
+ EGIT_REPO_URI="https://github.com/FreeCAD/FreeCAD.git"
+else
+ SRC_URI="https://github.com/FreeCAD/FreeCAD/archive/${PV}.tar.gz -> ${P}.tar.gz"
+ KEYWORDS="~amd64 ~x86"
+fi
+
+LICENSE="GPL-2"
+SLOT="0"
+IUSE=""
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+COMMON_DEPEND="
+ ${PYTHON_DEPS}
+ dev-cpp/eigen:3
+ dev-java/xerces
+ dev-libs/boost:=[python,${PYTHON_USEDEP}]
+ dev-libs/xerces-c[icu]
+ dev-python/matplotlib[${PYTHON_USEDEP}]
+ dev-python/pyside:0[X,svg,${PYTHON_USEDEP}]
+ dev-python/shiboken:0[${PYTHON_USEDEP}]
+ dev-qt/designer:4
+ dev-qt/qtgui:4[-egl]
+ dev-qt/qtopengl:4[-egl]
+ dev-qt/qtsvg:4
+ dev-qt/qtwebkit:4
+ media-libs/coin
+ media-libs/freetype
+ || ( sci-libs/opencascade:6.9.1[vtk] sci-libs/opencascade:6.9.0[vtk] sci-libs/opencascade:6.8.0 sci-libs/opencascade:6.7.1 )
+ sci-libs/orocos_kdl
+ sys-libs/zlib
+ virtual/glu"
+RDEPEND="${COMMON_DEPEND}
+ dev-python/numpy[${PYTHON_USEDEP}]
+ dev-python/pivy[${PYTHON_USEDEP}]
+ dev-qt/assistant:4"
+DEPEND="${COMMON_DEPEND}
+ >=dev-lang/swig-2.0.4-r1:0
+ dev-python/pyside-tools:0[${PYTHON_USEDEP}]"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-0.14.3702-install-paths.patch
+)
+
+# https://bugs.gentoo.org/show_bug.cgi?id=352435
+# https://www.gentoo.org/foundation/en/minutes/2011/20110220_trustees.meeting_log.txt
+RESTRICT="mirror"
+
+# TODO:
+# DEPEND and RDEPEND:
+# salome-smesh - science overlay
+# zipio++ - not in portage yet
+
+S="${WORKDIR}/FreeCAD-${PV}"
+
+DOCS=( README.md ChangeLog.txt )
+
+pkg_setup() {
+ fortran-2_pkg_setup
+ python-single-r1_pkg_setup
+
+ [[ -z ${CASROOT} ]] && die "empty \$CASROOT, run eselect opencascade set or define otherwise"
+}
+
+src_configure() {
+ export QT_SELECT=4
+
+ #-DOCC_* defined with cMake/FindOpenCasCade.cmake
+ #-DCOIN3D_* defined with cMake/FindCoin3D.cmake
+ #-DSOQT_ not used
+ local mycmakeargs=(
+ -DOCC_INCLUDE_DIR="${CASROOT}"/inc
+ -DOCC_LIBRARY_DIR="${CASROOT}"/$(get_libdir)
+ -DCMAKE_INSTALL_DATADIR=share/${P}
+ -DCMAKE_INSTALL_DOCDIR=share/doc/${PF}
+ -DCMAKE_INSTALL_INCLUDEDIR=include/${P}
+ -DFREECAD_USE_EXTERNAL_KDL="ON"
+ )
+
+ # TODO to remove embedded dependencies:
+ #
+ # -DFREECAD_USE_EXTERNAL_ZIPIOS="ON" -- this option needs zipios++ but it's not yet in portage so the embedded zipios++
+ # (under src/zipios++) will be used
+ # salomesmesh is in 3rdparty but upstream's find_package function is not complete yet to compile against external version
+ # (external salomesmesh is available in "science" overlay)
+
+ cmake-utils_src_configure
+ einfo "${P} will be built against opencascade version ${CASROOT}"
+}
+
+src_install() {
+ cmake-utils_src_install
+
+ make_desktop_entry FreeCAD "FreeCAD" "" "" "MimeType=application/x-extension-fcstd;"
+
+ # install mimetype for FreeCAD files
+ insinto /usr/share/mime/packages
+ newins "${FILESDIR}"/${PN}.sharedmimeinfo "${PN}.xml"
+
+ # install icons to correct place rather than /usr/share/freecad
+ pushd "${ED%/}"/usr/share/${P} || die
+ local size
+ for size in 16 32 48 64; do
+ newicon -s ${size} freecad-icon-${size}.png freecad.png
+ done
+ doicon -s scalable freecad.svg
+ newicon -s 64 -c mimetypes freecad-doc.png application-x-extension-fcstd.png
+ popd || die
+
+ python_optimize "${ED%/}"/usr/{,share/${P}/}Mod/
+}
+
+pkg_postinst() {
+ xdg_mimeinfo_database_update
+}
+
+pkg_postrm() {
+ xdg_mimeinfo_database_update
+}
diff --git a/media-gfx/freecad/freecad-9999.ebuild b/media-gfx/freecad/freecad-9999.ebuild
new file mode 100644
index 000000000000..b7e08d6c5823
--- /dev/null
+++ b/media-gfx/freecad/freecad-9999.ebuild
@@ -0,0 +1,129 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python2_7 )
+
+inherit cmake-utils eutils fdo-mime fortran-2 python-single-r1
+
+DESCRIPTION="QT based Computer Aided Design application"
+HOMEPAGE="http://www.freecadweb.org/"
+
+if [[ ${PV} == *9999 ]]; then
+ inherit git-r3
+ EGIT_REPO_URI="https://github.com/FreeCAD/FreeCAD.git"
+else
+ SRC_URI="https://github.com/FreeCAD/FreeCAD/archive/${PV}.tar.gz -> ${P}.tar.gz"
+ KEYWORDS="~amd64 ~x86"
+fi
+
+LICENSE="GPL-2"
+SLOT="0"
+IUSE=""
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+#sci-libs/orocos_kdl waiting for Bug 604130 (keyword ~x86)
+#dev-qt/qtgui:4[-egl] and dev-qt/qtopengl:4[-egl] : Bug 564978
+#dev-python/pyside[svg] : Bug 591012
+COMMON_DEPEND="
+ ${PYTHON_DEPS}
+ dev-cpp/eigen:3
+ dev-java/xerces
+ dev-libs/boost:=[python,${PYTHON_USEDEP}]
+ dev-libs/xerces-c[icu]
+ dev-python/matplotlib[${PYTHON_USEDEP}]
+ dev-python/pyside:0[X,svg,${PYTHON_USEDEP}]
+ dev-python/shiboken:0[${PYTHON_USEDEP}]
+ dev-qt/designer:4
+ dev-qt/qtgui:4[-egl]
+ dev-qt/qtopengl:4[-egl]
+ dev-qt/qtsvg:4
+ dev-qt/qtwebkit:4
+ media-libs/coin
+ media-libs/freetype
+ || ( sci-libs/opencascade:6.9.1[vtk] sci-libs/opencascade:6.9.0[vtk] sci-libs/opencascade:6.8.0 sci-libs/opencascade:6.7.1 )
+ sys-libs/zlib
+ virtual/glu"
+RDEPEND="${COMMON_DEPEND}
+ dev-python/numpy[${PYTHON_USEDEP}]
+ dev-python/pivy[${PYTHON_USEDEP}]
+ dev-qt/assistant:4"
+DEPEND="${COMMON_DEPEND}
+ >=dev-lang/swig-2.0.4-r1:0
+ dev-python/pyside-tools:0[${PYTHON_USEDEP}]"
+
+# https://bugs.gentoo.org/show_bug.cgi?id=352435
+# https://www.gentoo.org/foundation/en/minutes/2011/20110220_trustees.meeting_log.txt
+RESTRICT="mirror"
+
+# TODO:
+# DEPEND and RDEPEND:
+# salome-smesh - science overlay
+# zipio++ - not in portage yet
+
+DOCS=( README.md ChangeLog.txt )
+
+pkg_setup() {
+ fortran-2_pkg_setup
+ python-single-r1_pkg_setup
+
+ [[ -z ${CASROOT} ]] && die "empty \$CASROOT, run eselect opencascade set or define otherwise"
+}
+
+src_configure() {
+ export QT_SELECT=4
+
+ #-DOCC_* defined with cMake/FindOpenCasCade.cmake
+ #-DCOIN3D_* defined with cMake/FindCoin3D.cmake
+ #-DSOQT_ not used
+ #-DFREECAD_USE_EXTERNAL_KDL="ON" waiting for Bug 604130 (keyword ~x86)
+ local mycmakeargs=(
+ -DOCC_INCLUDE_DIR="${CASROOT}"/inc
+ -DOCC_LIBRARY_DIR="${CASROOT}"/$(get_libdir)
+ -DCMAKE_INSTALL_DATADIR=share/${P}
+ -DCMAKE_INSTALL_DOCDIR=share/doc/${PF}
+ -DCMAKE_INSTALL_INCLUDEDIR=include/${P}
+ -DFREECAD_USE_EXTERNAL_KDL="OFF"
+ )
+
+ # TODO to remove embedded dependencies:
+ #
+ # -DFREECAD_USE_EXTERNAL_ZIPIOS="ON" -- this option needs zipios++ but it's not yet in portage so the embedded zipios++
+ # (under src/zipios++) will be used
+ # salomesmesh is in 3rdparty but upstream's find_package function is not complete yet to compile against external version
+ # (external salomesmesh is available in "science" overlay)
+
+ cmake-utils_src_configure
+ einfo "${P} will be built against opencascade version ${CASROOT}"
+}
+
+src_install() {
+ cmake-utils_src_install
+
+ make_desktop_entry FreeCAD "FreeCAD" "" "" "MimeType=application/x-extension-fcstd;"
+
+ # install mimetype for FreeCAD files
+ insinto /usr/share/mime/packages
+ newins "${FILESDIR}"/${PN}.sharedmimeinfo "${PN}.xml"
+
+ # install icons to correct place rather than /usr/share/freecad
+ pushd "${ED%/}"/usr/share/${P} || die
+ local size
+ for size in 16 32 48 64; do
+ newicon -s ${size} freecad-icon-${size}.png freecad.png
+ done
+ doicon -s scalable freecad.svg
+ newicon -s 64 -c mimetypes freecad-doc.png application-x-extension-fcstd.png
+ popd || die
+
+ python_optimize "${ED%/}"/usr/{,share/${P}/}Mod/
+}
+
+pkg_postinst() {
+ fdo-mime_mime_database_update
+}
+
+pkg_postrm() {
+ fdo-mime_mime_database_update
+}
diff --git a/media-gfx/freecad/metadata.xml b/media-gfx/freecad/metadata.xml
new file mode 100644
index 000000000000..fd959a35b4fb
--- /dev/null
+++ b/media-gfx/freecad/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>xmw@gentoo.org</email>
+ <name>Michael Weber</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">free-cad</remote-id>
+ <remote-id type="github">FreeCAD/FreeCAD</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/media-gfx/freepv/Manifest b/media-gfx/freepv/Manifest
new file mode 100644
index 000000000000..e7032dfd5598
--- /dev/null
+++ b/media-gfx/freepv/Manifest
@@ -0,0 +1,12 @@
+AUX freepv-0.3.0-gcc44.patch 2186 SHA256 f0b4210fcbd3c2d3d13bc7c541b1c9ad0134248612d5a034b5876cecba89afba SHA512 f90dd57deb24d49ded39f8861f8e10ec1d47cdacfc16c9f22cef8167038113438b971e8ba98811d9f019a2144545754bb2951f91b6d8dc46f1275f902d84647a WHIRLPOOL ce1c3417c2fb7c4d131121b10189b1e8d5b384b2c2dd6ba3e36eafd2c6a78164ca3220cb74aa704dc51cb6445092140d1a4cb5e86fd9f1b188a73d2f5ed1e429
+AUX freepv-0.3.0-gcc46.patch 281 SHA256 afa8e65ff0b1db08acbc692691b4263f4f3fe02ac2f25953893400a95189e655 SHA512 06aee0420f24a4a2206035b06c9f84ab7d8fc796600841c7fbb0015437d1a77b0f245c9bfd8b16f6a5c09cc8999904167137088e0a7365bc125889ed5b67ddb5 WHIRLPOOL 7d4a7773180399713b5911c0a50fa97ae63c3c5a52f3e8af7faf0431481bf152d23590f9ede9639b36a24ea500d747fd7c81c2bda0dcdc1568b91cd81ddbdb13
+AUX freepv-0.3.0-libpng14.patch 772 SHA256 56c5a6a025b8cbc6530958bdc31c68a46394f094379f1c20ed6d3a9934282b58 SHA512 5d644d33f302b4f1dc90b0c15eb6ab80638bb5a812d0d809b097a14476ffc937da8939f1d2e81ef9892fce0d5647768075877442d6e476173f9e830d431ecb40 WHIRLPOOL 28ee88e49e7f35f0cde941e339282182a7eee506f24e78e54da484bae88c47534570d3d90e007f3fea6334fbbafc7322fc00f46dcbc4b927ec885d55de6bd7ae
+AUX freepv-0.3.0-noplugin.patch 1099 SHA256 31b2c15f15a314e005ede81387d02a1f6f74ed980bd9dd6ba0ea5591cc88705a SHA512 a01e263f9d43edfb8b750cbb470d0f64d52d0a984e689cf9b153cbfdf7251398450752cbf06f34e27c31703471900707e44acf644838f62640f623bedea41557 WHIRLPOOL acc26cf145aac746bbc71f893b53aaf57ee46761bcd035cbee300c95f5110fd3d9c43a0c6e41940b9feef61be2f13fe7d45ae9d28ec0f7df840755d84abd9f6d
+AUX freepv-0.3.0-stringh.patch 273 SHA256 de462bebc3460011b4f30af986f417b2836a3c9171d0da9919af824523f1acf6 SHA512 b368117f3a675df53e76ada4b13aa6d99f2744f006b2a8d6e37c96c5a1c62f48383042a519e82d03bd569192615de94f1b87dfa851178924d6b002522372b67f WHIRLPOOL 90af79693d7f10180dbf119bf2a6d6f64105f0662ccce026998ea8ddc901cdb184dd6f877f2d7db70e6fa0037ab2cdcc085b5315aa8797cd6de52f7d0c44909a
+AUX freepv-0.3.0-unsigned_short.patch 1787 SHA256 59f8ca984d1f184577b265870f5424f28f49f19582ca57ab56d3d18e981d2dec SHA512 aba4a7b0d882ebce73b5ec823e8a51cec2788efdc4d9000c9d48a3c07a77e88dbee1e24ffdb1a57b2a4ae45b9310b25cf0157c15d73f8fffdf0a2582e8b88078 WHIRLPOOL bb73a0a0c6087b2079cc44981959d0ed0628dcae53cd2adc60d4ca9bd95fbae25aa923c806ec936dd5f43cc69a65e1e188152781b9cd12356e38407cfb113f75
+DIST freepv-0.3.0.tar.gz 175545 SHA256 a66c58616cbe814b2e23c6fe109c3de906dad83a8faa32ea219c182bf15229f0 SHA512 0b207dc25c51b19fd76637743adb8e395c6098d03611612086d66d3f1aa6e4d0c5700aa0e23210082d6aa7495f19d1c3d8f0f93ad11a5236df86d709d5f71a7d WHIRLPOOL 993378bb9ef25e1a1064f9402c4608d0a54588f035f23fc67024b857705ff978a403f86e5140e9ed88b83a6d9ae7a74aa86bf9c0239eb07348904d1eeb9ef749
+EBUILD freepv-0.3.0-r4.ebuild 960 SHA256 a433c8d4fd5626135881719c04d279a2c6f3d8421bd03b0134b75a4c032d9ced SHA512 4a62f5afea9a03d680a0d504c8339cd17ef17c50365bf0825f03546713a12b3d98e9d1d79211d6d522fb2248b412c60571bdd584d7038f8278e0aee8ffbbc23b WHIRLPOOL f17693dd21575a2bdd7a7d9de4303f3ff42d1f1d028fcd70530ac225f37f7dceb17e1a3a652515d8acabd19d1920f66bf240a6164c1599cde5fc6ca663f1a4e0
+EBUILD freepv-0.3.0-r5.ebuild 947 SHA256 0837ac2473d1c448828cbad47e075356cb23c68d72d7b4e1bccbd18f7e3b8ab4 SHA512 785a40403ca2eec1903881c96f42dd796ef562080be308f8e03385eb8a7f1bd73d6256aebe57ba6416464972827f5ba378fe6157f82dad3adea1886515ebd961 WHIRLPOOL 8f45893bf902dfd9a5a79a005405af8b127617eede8c36c52557f12cf6aa93a553fd07d0c5ec75606521d23ddc43f0d3a2854f651d3bbb8ccee8eb34b430a017
+MISC ChangeLog 2357 SHA256 6c66dcbb837604ebe9e7cd8c2c6d048b459c47c61a11826db44d882c40b3e6a3 SHA512 2418782b8d38aef14f120f4b3b256b3fc10eb8c0cf7a58b3afd584a20df92c67e4863cb0c2389598bffaa43766ba7c6ca723b992d2c16d3c9ab690770b09f815 WHIRLPOOL e2cbcbcd185dacaacfd2e91c97e73cb2149d36dd912501312267f8572ad866804dd0b77d79cc5dbca4571d204b66f455f8cb4c677cc91f0f326a93c4dbf4068e
+MISC ChangeLog-2015 3391 SHA256 9452c6aa5b8c5b16013d7c5d943900ee5ae9857bd1db94e7277c0dadd5220a9a SHA512 2e656dbcd16f1c33c2bf336f7bce9bf157316c5ad6638a3d5ff524addc0d40b53dc77ea490681861db0451cf19afffba631782cea5d837f31da43a05ae4f519d WHIRLPOOL dd1ed03ee3402e1879fafadbb105bef47ccc08c1d6d5f9a2a88af77221a958e9e6c2c18d81d289d0397a32c2416fb9f7854c308d86e66f0499aa6c401164b305
+MISC metadata.xml 474 SHA256 8892cb002be9ecac033d26cb60b86ceba7d2011b79b541e4cc45229a17ca02cf SHA512 4466402d68177a660716acf3afdb8ddc2074e8ac7ad35f2ad6b31adc9fe938b39cc999dc082fa07f8787be8798a053a6248dac12091a22d32d9fb83a1022b421 WHIRLPOOL d6c4055abefdfc503c1c51319626b573fc5e4ed2924956c5d8ef976958e78bcbb0dea4a42caa8fad2e0d429075e3788e267d18cb47d118e5897738474b68c065
diff --git a/media-gfx/freepv/files/freepv-0.3.0-gcc44.patch b/media-gfx/freepv/files/freepv-0.3.0-gcc44.patch
new file mode 100644
index 000000000000..af5b1a0d196e
--- /dev/null
+++ b/media-gfx/freepv/files/freepv-0.3.0-gcc44.patch
@@ -0,0 +1,60 @@
+diff -Naur freepv-0.3.0.orig/src/libfreepv/OpenGLRenderer.cpp freepv-0.3.0/src/libfreepv/OpenGLRenderer.cpp
+--- freepv-0.3.0.orig/src/libfreepv/OpenGLRenderer.cpp 2010-03-11 16:15:04.000000000 +0100
++++ freepv-0.3.0/src/libfreepv/OpenGLRenderer.cpp 2010-03-11 16:25:15.000000000 +0100
+@@ -26,7 +26,8 @@
+ #include <config.h>
+
+ #include <vector>
+-#include <math.h>
++#include <cmath>
++#include <cstdio>
+
+ #include "OpenGLRenderer.h"
+ #include "Scene.h"
+diff -Naur freepv-0.3.0.orig/src/libfreepv/QTVRDecoder.cpp freepv-0.3.0/src/libfreepv/QTVRDecoder.cpp
+--- freepv-0.3.0.orig/src/libfreepv/QTVRDecoder.cpp 2010-03-11 16:15:04.000000000 +0100
++++ freepv-0.3.0/src/libfreepv/QTVRDecoder.cpp 2010-03-11 16:25:15.000000000 +0100
+@@ -42,6 +42,7 @@
+ #include <errno.h>
+ #include <vector>
+ #include <cstring>
++#include <cstdio>
+
+ #include <zlib.h>
+
+diff -Naur freepv-0.3.0.orig/src/libfreepv/SPiVparser.cpp freepv-0.3.0/src/libfreepv/SPiVparser.cpp
+--- freepv-0.3.0.orig/src/libfreepv/SPiVparser.cpp 2010-03-11 16:15:04.000000000 +0100
++++ freepv-0.3.0/src/libfreepv/SPiVparser.cpp 2010-03-11 16:18:53.000000000 +0100
+@@ -488,8 +488,8 @@
+ //This method remplace the nodes that has src attributes
+ void SPiVparser::parseNodeURL(const char* _url)
+ {
+- char * aux_url=NULL;
+- char * url=(char*) _url;
++ const char * aux_url=NULL;
++ const char * url=(char*) _url;
+ if(aux_url = strrchr (_url,'/'))
+ {
+ url=aux_url;
+diff -Naur freepv-0.3.0.orig/src/libfreepv/Utils/signatures.cpp freepv-0.3.0/src/libfreepv/Utils/signatures.cpp
+--- freepv-0.3.0.orig/src/libfreepv/Utils/signatures.cpp 2010-03-11 16:15:04.000000000 +0100
++++ freepv-0.3.0/src/libfreepv/Utils/signatures.cpp 2010-03-11 16:25:15.000000000 +0100
+@@ -24,6 +24,7 @@
+
+ #include "signatures.h"
+ #include <iostream>
++#include <cstdio>
+
+ namespace FPV{
+ namespace Utils{
+diff -Naur freepv-0.3.0.orig/src/libfreepv/utils.cpp freepv-0.3.0/src/libfreepv/utils.cpp
+--- freepv-0.3.0.orig/src/libfreepv/utils.cpp 2010-03-11 16:15:04.000000000 +0100
++++ freepv-0.3.0/src/libfreepv/utils.cpp 2010-03-11 16:25:15.000000000 +0100
+@@ -23,6 +23,7 @@
+ */
+
+ #include <algorithm>
++#include <cstdio>
+
+ #include "utils.h"
+
diff --git a/media-gfx/freepv/files/freepv-0.3.0-gcc46.patch b/media-gfx/freepv/files/freepv-0.3.0-gcc46.patch
new file mode 100644
index 000000000000..be6b13f522cb
--- /dev/null
+++ b/media-gfx/freepv/files/freepv-0.3.0-gcc46.patch
@@ -0,0 +1,10 @@
+--- freepv-0.3.0.orig/src/libfreepv/Action.h 2011-06-16 17:37:55.705868856 +0200
++++ freepv-0.3.0/src/libfreepv/Action.h 2011-06-16 17:38:19.792311535 +0200
+@@ -24,6 +24,7 @@
+
+ #ifndef FPV_ACTION_H
+ #define FPV_ACTION_H
++#include <cstddef>
+ #include "Behavior.h"
+
+ namespace FPV
diff --git a/media-gfx/freepv/files/freepv-0.3.0-libpng14.patch b/media-gfx/freepv/files/freepv-0.3.0-libpng14.patch
new file mode 100644
index 000000000000..36fac0ff7419
--- /dev/null
+++ b/media-gfx/freepv/files/freepv-0.3.0-libpng14.patch
@@ -0,0 +1,20 @@
+--- freepv-0.3.0.orig/src/libfreepv/pngReader.cpp
++++ freepv-0.3.0/src/libfreepv/pngReader.cpp
+@@ -135,7 +135,7 @@
+ //Transfor grayscale images with less
+ //than 8 bits to 8 bits
+ if(color_t == PNG_COLOR_TYPE_GRAY && depth<8)
+- png_set_gray_1_2_4_to_8(p_png_struct);
++ png_set_expand_gray_1_2_4_to_8(p_png_struct);
+
+ //Add a full alpha channel if there is
+ //transparency information in the tRNS chunk
+@@ -283,7 +283,7 @@
+ //Transfor grayscale images with less
+ //than 8 bits to 8 bits.
+ if(color_t == PNG_COLOR_TYPE_GRAY && depth<8)
+- png_set_gray_1_2_4_to_8(p_png_struct);
++ png_set_expand_gray_1_2_4_to_8(p_png_struct);
+
+ //Add a full alpha channel if there is
+ //transparency information in the tRNS chunk
diff --git a/media-gfx/freepv/files/freepv-0.3.0-noplugin.patch b/media-gfx/freepv/files/freepv-0.3.0-noplugin.patch
new file mode 100644
index 000000000000..4ea51d50b0cc
--- /dev/null
+++ b/media-gfx/freepv/files/freepv-0.3.0-noplugin.patch
@@ -0,0 +1,30 @@
+diff -Naur freepv-0.3.0.orig//CMakeLists.txt freepv-0.3.0/CMakeLists.txt
+--- freepv-0.3.0.orig//CMakeLists.txt 2010-03-11 16:05:09.000000000 +0100
++++ freepv-0.3.0/CMakeLists.txt 2010-03-11 16:05:18.000000000 +0100
+@@ -89,7 +89,6 @@
+ find_package(FREEGLUT REQUIRED)
+ find_package(OpenGL REQUIRED)
+ find_package(X11 REQUIRED)
+-find_package(GECKO REQUIRED)
+ find_package(LibXml2 REQUIRED)
+ find_package(PNG REQUIRED)
+ find_package(XF86VM REQUIRED)
+@@ -107,7 +106,6 @@
+ ${OPENGL_INCLUDE_DIR}
+ ${FREEGLUT_INCLUDE_DIR}
+ ${X11_INCLUDE_DIR}
+- ${GECKO_INCLUDE_DIR}
+ ${LIBXML2_INCLUDE_DIR}
+ ${PNG_INCLUDE_DIR}
+ ${XF86VM_INCLUDE_DIR})
+diff -Naur freepv-0.3.0.orig//src/CMakeLists.txt freepv-0.3.0/src/CMakeLists.txt
+--- freepv-0.3.0.orig//src/CMakeLists.txt 2010-03-11 16:05:09.000000000 +0100
++++ freepv-0.3.0/src/CMakeLists.txt 2010-03-11 16:05:28.000000000 +0100
+@@ -5,7 +5,6 @@
+ add_subdirectory (freepv-glut)
+ add_subdirectory (utils)
+ if(UNIX)
+- add_subdirectory (freepv-mozilla)
+ add_subdirectory (freepv-glx)
+ endif(UNIX)
+
diff --git a/media-gfx/freepv/files/freepv-0.3.0-stringh.patch b/media-gfx/freepv/files/freepv-0.3.0-stringh.patch
new file mode 100644
index 000000000000..45987355a766
--- /dev/null
+++ b/media-gfx/freepv/files/freepv-0.3.0-stringh.patch
@@ -0,0 +1,10 @@
+--- freepv-0.3.0.orig/src/libfreepv/Image.cpp 2009-05-02 01:12:31.000000000 +0200
++++ freepv-0.3.0/src/libfreepv/Image.cpp 2013-04-11 09:37:07.436358208 +0200
+@@ -23,6 +23,7 @@
+ */
+
+ #include <assert.h>
++#include <string.h>
+
+ #include "Image.h"
+ #include "JpegReader.h"
diff --git a/media-gfx/freepv/files/freepv-0.3.0-unsigned_short.patch b/media-gfx/freepv/files/freepv-0.3.0-unsigned_short.patch
new file mode 100644
index 000000000000..142b8ac0d9bd
--- /dev/null
+++ b/media-gfx/freepv/files/freepv-0.3.0-unsigned_short.patch
@@ -0,0 +1,47 @@
+diff -Naur freepv-0.3.0.orig/src/libfreepv/Utils/signatures.cpp freepv-0.3.0/src/libfreepv/Utils/signatures.cpp
+--- freepv-0.3.0.orig/src/libfreepv/Utils/signatures.cpp 2009-05-02 01:12:31.000000000 +0200
++++ freepv-0.3.0/src/libfreepv/Utils/signatures.cpp 2017-01-25 15:51:23.781294110 +0100
+@@ -30,34 +30,34 @@
+
+ //JPEG Signature
+ char jpg_size=1;
+- short jpg_sig[]={0xD8FF};
++ unsigned short jpg_sig[]={0xD8FF};
+ //PNG Signature
+ char png_size=4;
+- short png_sig[]={0x5089, 0x474E, 0x0A0D, 0x0A1A};
++ unsigned short png_sig[]={0x5089, 0x474E, 0x0A0D, 0x0A1A};
+ //XML Signature
+ char xml_size=3;
+- short xml_sig[]={0x3F3C, 0x6D78, 0x206C};
++ unsigned short xml_sig[]={0x3F3C, 0x6D78, 0x206C};
+ //DCR Signature
+ char dcr_size=2;
+- short dcr_sig[]={0x4658, 0x5249};
++ unsigned short dcr_sig[]={0x4658, 0x5249};
+ //MOV (MOOV atom) Signature
+ char mov_moov_size=4;
+- short mov_moov_sig[]={0x0000, 0x0000, 0x6F6D, 0x766F};
++ unsigned short mov_moov_sig[]={0x0000, 0x0000, 0x6F6D, 0x766F};
+ //MOV (FTYP atom) Siganture
+ char mov_ftyp_size=4;
+- short mov_ftyp_sig[]={0x0000, 0x0000, 0x7466, 0x7079};
++ unsigned short mov_ftyp_sig[]={0x0000, 0x0000, 0x7466, 0x7079};
+
+ //Signatures to check
+ char sig_types_num=6;
+- short* signature[]={jpg_sig,png_sig,xml_sig,dcr_sig,mov_moov_sig,mov_ftyp_sig};
++ unsigned short* signature[]={jpg_sig,png_sig,xml_sig,dcr_sig,mov_moov_sig,mov_ftyp_sig};
+ char sig_sizes[]={jpg_size,png_size,xml_size,dcr_size,mov_moov_size,mov_ftyp_size};
+
+ const char* CheckMagicBytes(const char* filename)
+ {
+ FILE * p_file;
+ p_file=fopen(filename, "rb");
+- short number;
+- short equal=0;
++ unsigned short number;
++ unsigned short equal=0;
+ char i, type;
+
+ if(p_file==NULL){
diff --git a/media-gfx/freepv/freepv-0.3.0-r4.ebuild b/media-gfx/freepv/freepv-0.3.0-r4.ebuild
new file mode 100644
index 000000000000..e3ce52045164
--- /dev/null
+++ b/media-gfx/freepv/freepv-0.3.0-r4.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit cmake-utils eutils
+
+DESCRIPTION="Panorama viewer (Quicktime, PangeaVR, GLPanoView formats)"
+HOMEPAGE="http://freepv.sourceforge.net/"
+SRC_URI="mirror://sourceforge/freepv/${P}.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+DEPEND="dev-libs/libxml2
+ media-libs/libpng:0=
+ media-libs/freeglut
+ sys-libs/zlib
+ virtual/jpeg
+ x11-libs/libXmu
+ x11-libs/libXt
+ x11-libs/libXxf86vm"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-gcc44.patch \
+ "${FILESDIR}"/${P}-gcc46.patch \
+ "${FILESDIR}"/${P}-noplugin.patch \
+ "${FILESDIR}"/${P}-libpng14.patch \
+ "${FILESDIR}"/${P}-stringh.patch
+
+ sed -i \
+ -e 's:jpeg_mem_src:freepv_jpeg_mem_src:g' \
+ src/libfreepv/JpegReader.cpp || die 'jpeg sed failed'
+
+ sed -i -e 's:^INSTALL(.*)::' \
+ src/libfreepv/CMakeLists.txt || die 'static lib install sed failed'
+}
diff --git a/media-gfx/freepv/freepv-0.3.0-r5.ebuild b/media-gfx/freepv/freepv-0.3.0-r5.ebuild
new file mode 100644
index 000000000000..412a59122a04
--- /dev/null
+++ b/media-gfx/freepv/freepv-0.3.0-r5.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit cmake-utils
+
+DESCRIPTION="Panorama viewer (Quicktime, PangeaVR, GLPanoView formats)"
+HOMEPAGE="http://freepv.sourceforge.net/"
+SRC_URI="mirror://sourceforge/freepv/${P}.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="dev-libs/libxml2
+ media-libs/libpng:0=
+ media-libs/freeglut
+ sys-libs/zlib
+ virtual/jpeg:0
+ x11-libs/libXmu
+ x11-libs/libXt
+ x11-libs/libXxf86vm"
+RDEPEND="${DEPEND}"
+
+PATCHES=(
+ "${FILESDIR}"/${P}-gcc44.patch
+ "${FILESDIR}"/${P}-gcc46.patch
+ "${FILESDIR}"/${P}-noplugin.patch
+ "${FILESDIR}"/${P}-libpng14.patch
+ "${FILESDIR}"/${P}-stringh.patch
+ "${FILESDIR}"/${P}-unsigned_short.patch
+)
+
+src_prepare() {
+ sed -e 's:jpeg_mem_src:freepv_jpeg_mem_src:g' \
+ -i src/libfreepv/JpegReader.cpp || die
+
+ sed -e 's:^INSTALL(.*)::' \
+ -i src/libfreepv/CMakeLists.txt || die
+
+ default
+}
diff --git a/media-gfx/freepv/metadata.xml b/media-gfx/freepv/metadata.xml
new file mode 100644
index 000000000000..f072f4fe0d97
--- /dev/null
+++ b/media-gfx/freepv/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>voyageur@gentoo.org</email>
+ <name>Bernard Cafarelli</name>
+ </maintainer>
+ <longdescription>OpenGL accelerated panorama viewer and browser plugin (supports Quicktime, PangeaVR and GLPanoView panoramas)</longdescription>
+ <upstream>
+ <remote-id type="sourceforge">freepv</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/media-gfx/freewrl/Manifest b/media-gfx/freewrl/Manifest
new file mode 100644
index 000000000000..1570db54d365
--- /dev/null
+++ b/media-gfx/freewrl/Manifest
@@ -0,0 +1,15 @@
+AUX freewrl-1.22.13-desktop.patch 350 SHA256 09176fe7ef22d8d0a2381bfb70edbacc99967c03cdf8a7677f948a9ca1149efb SHA512 3e8a2e2275243ac55a0a62b105aeff1166a39798e34f94878b46e02fdacc038d386768e388529b550d755c737e574f988b2ffacbc64f224ed6e5d6d67de2b4e2 WHIRLPOOL b0b07aa8d0b7a4e181e2ae72f277c536bdb9f3e04670a021a3fd4222a6df06c81b8f72ab5fbfe4749a22865d7c65aa02d29cbe4e3821024387443fee62ab6764
+AUX freewrl-1.22.13-fontconfig-match.patch 666 SHA256 81ad402685aac3746a1d3fefe3ce77e46f0d7521e721d02f6ceb2fa60b9501c5 SHA512 8f92238be4568bea9959ffd9ac81920633340e583d175e6a35add48edbaa41aa937aa9d7494261e2edf83bbdfeadbfe597b5881c3dbf2ef9e9bf2f3ce4a508f5 WHIRLPOOL 991306f3174466a7505a85592db0b6196f0f55fe4d5b0cb70b72b20c101d7f637b4dac34c2fd9c6b5e627c7c88ccdfc8db4a2b91b863271699fd75d130b4c0b0
+AUX freewrl-1.22.13-java-fix.patch 1942 SHA256 04ab169e8ef34594c730cc7449e4a5f9c335e9125dfe8da0bf1edf043e81800b SHA512 e8224e249e28918e04117542c710b093f90e31666312c7b3f62444d68158832893cf81237c8d9c7677ac4e0b571c0a74457721f0778996a975fbdacffdebb82a WHIRLPOOL 78f23c073f94d39a54734b51320549131fbc2285501b36ea745aa2b5cb8991ab89697d72398b77d170ee9caa7ea312ddcdda21a019fb3ac546dbde30ceeef4cb
+AUX freewrl-1.22.13-mozjs187-config.patch 486 SHA256 340a489d70b1e0d450b779f35686f09c1a50ba62cd8de5bb34340dec8c5ad561 SHA512 69985ba98ca8c12e59b6aba2fda004931778f138dfd90a45fd9a65027961401f6a377bfbc55f9fb2614ada5ac291922809dc87ea8ad7bdf93bdc78ddb3c3b298 WHIRLPOOL f54fb2c381f9fcd0c284898d49c9fd10e0210ade9399a47f241c4657d0c0e6f00edcfb1c3624164ad884562a1eea905f4a59b64979d4110ba3404430eef10e67
+AUX freewrl-2.3.3-ld.gold.patch 1120 SHA256 79a67c587817e818a33a945b0c10b93b5d402f62dd3a26410695772e43bf4649 SHA512 010369ab9ec5f03f3055594b88001deb14a58e3d69cd5f8312a7a25d34ec4bef81940d911a7c13aa8872c82fe66c14284d292a33e1629ab9dfe52cd9a4412e3b WHIRLPOOL 2a535f2aa0ec7a21f1b89d6d37812dbd702cb547d385680a0914c1660192f3e3581aded53578e5ddbe5dffde4faf8cb38164c5d382faee2db5a0cde89eff9d09
+DIST freewrl-1.22.13.1.tar.bz2 1830305 SHA256 29069d63604dbbfde0f684f342f34e9d0eb216a026f83317a00fbdd31ece17e8 SHA512 6e751835a256ce08d4099e5301c0702e28e5cae2e77d8a51ab38f6f0c08680f22a9ef25ef9d2bb860680fc8c1fc22cfebf14cfb14b50ee514b5ef76e71ab1192 WHIRLPOOL 58d301f4f3c1d145b041bb626c8af18954d9cd3da88f348d2341928c2ff050b15e077855b1ef5a2fe18b2218b8d2f8a75e229ca5bf5d683c0c98e4ed132f71cd
+DIST freewrl-2.3.3.1.tar.gz 1731651 SHA256 71ed11f5f3b4b6a1d2fc740e8e3ed62a83b484c9695968fac5e30db14dbb6fef SHA512 e205e8d11a3650ddf4f7dd089bdca36fc1879424c88392229ca8c0d532ebc4662f4f2e3bc491a0a1d6300e78c55cebbb57eeef2145a8c96c727c35dfb2a7d00a WHIRLPOOL d61f65b9f0db94f73760d6b1800be5f77f9898e2305ec93cc43aa8a8631e5d002602a1b79bbec91d30a040479ae01530cb470cb411d803ff8f04c3792e35e545
+DIST freewrl-3.0.0.tar.bz2 1567282 SHA256 91ab2e8fda840c2d52951f9833fe280080fab8eabd725dcccae1a9f3506c3ceb SHA512 12e75c6891238fbc9c750a9449c8a6a9f4b86124ac12871adbfb3c68b7ef09f35d3709dcb63693e50f8ac824170aef3b97854a72de0b324e67fbbb7c081675a0 WHIRLPOOL 78734eaa5f5cd7d3dd6bb6c7dff5621ecee2d5aba9f6fc1ce0cdbc851bdf2f58bb4f6416f0e7ad2fbb04122dda4687a2764f46819b83217951e8d1207b88c0f7
+EBUILD freewrl-1.22.13-r5.ebuild 4479 SHA256 8253c0256e3071b99f558128a6ae39d99dee5540a8f6c06abd3e512a1c840c93 SHA512 33ffa5c86551c708663f56cec08d50351a8c1af2c7b2e19efe16fea09caac0e58feb206f81b85588163dba8e7eacd1043f9767364e323ce84ca12afc3fcda6ca WHIRLPOOL d4a073955a5f7ecc6865e8739aa50c0b18b212df0991b6f89676086faccb97ae9d7e19e7a1750d10629df27e173f0a62da4c6c4fd5768606eb8664fa55711a29
+EBUILD freewrl-2.3.3-r2.ebuild 4358 SHA256 03b554cff613156a75f987223d876c3abf14a9920d5cb554ca43a01e6715f8db SHA512 99a49d8d51cb37c7a462235506c2edcf02f27bef0f508f16e31fe9c2010f4339350bda9baaddba0aa1d438af649e242f865ca56dd50fd82015a8663c36965142 WHIRLPOOL 3ef819af42ca54139ce5ab28dd692bd6579e3de2d5029abdbdedb4b3907998a16748becbd99258a985c7692b59efa0f55a154353af8170cb93083b026da97fd1
+EBUILD freewrl-3.0.0-r1.ebuild 4430 SHA256 0a9f8f1e3a32387a7f277c34f390e74e9fcd25b4c34eaade2b611a1cab8929cd SHA512 0a02299bc0698e022b8eaca0aa6e9151cdb08b16155137d05a4404a467ef66ff04e0d1e0a22b86ad9d557a61210966b7a960f63c6cc478cc889b93e39f775c3a WHIRLPOOL 8745d136fe4993ef5e905a11d1ebf24baef1b11950a51059ed2653e4c0c28a2e5c3f1278b0d921560e3e337080c2a9cd5f4662ecef2f5810e80133bb0e673962
+EBUILD freewrl-9999.ebuild 4489 SHA256 964c3ed07b4a2b7fdce201e51acb34025f2b65b76ee5323cff544d11eccdcede SHA512 9d9dd93cdc9e6dae64d0bdb068b56fa2c6a0f478708be6e48aa771e10526b30c73ae039cc83fe3f62d00bab2571e60bb013ee796c7cd613c8b3c7fa8a7cc60dc WHIRLPOOL 612a144e81ed1aea08c0e1fdb36f4c1fb52c6be24c3c34e4cd7d68461ca9b990d383bf9b82b7478097804097ec198a6f726cf225e096ce9cb2399fda6f2caba4
+MISC ChangeLog 3129 SHA256 826e08a18cd888fe0cc2a46da49b3ec8d5cba1e84fe291b4229ee3ad1e20b34f SHA512 b74b417ca66739e7a64204ab9b8d3e0e72dc0896c53e6028f7b685a73c416b6fbb19e403c0b024263d4afc8597f525622a0206f8736dcd0435ff7023d4acf303 WHIRLPOOL a22408c2cc25a2060ba8d6d7f720ef6dbb80e53d38930993683c6ec73874a4a8093aba6909b3d6af82f6ce79ae478d1de4b77f9fb2a1d7720c642695d1982b8b
+MISC ChangeLog-2015 9410 SHA256 6f2861e68e01393a9d5c3f16728e0e4f72c72e5cb0c92b612c83c3bc4a750d11 SHA512 b950a6394a8ed370bbf568c8a412944644a64c30e28d64d07a56431aae73c3d88e24cf1d0394ff8fa953db3aafc21170c32b76d1219a0f8c933065ae9ffa5818 WHIRLPOOL 62dc00e1c91595c572d9ae855f477e12a8a689558c03b070e2424d10cb9999fc7bca94a3e3c3894d77e5c188f87089df65307163197c18be7bfa318b047c83c4
+MISC metadata.xml 1431 SHA256 6e87a9a8063de3b72e3c9004d1a91f3eedd5498022b1ea046006fdc0cb32d407 SHA512 7290fb74f164cf5e520a024171f43d9edb4d31f09b9806a6939d5a3e1143cd2240dc1a3bea7d02ec18ee9351f6e3e27d7117b9289e0a5eaabdb42c5ed74c9d2a WHIRLPOOL 2cc9c3b6f522e52e5249f91be24cd7348c3b8341d3219e8661fd7043b7c9f12c8cfc5ed9b01601083557eafd34f521681272e929eec447186d78ae9629968aa2
diff --git a/media-gfx/freewrl/files/freewrl-1.22.13-desktop.patch b/media-gfx/freewrl/files/freewrl-1.22.13-desktop.patch
new file mode 100644
index 000000000000..6d620b7ab94b
--- /dev/null
+++ b/media-gfx/freewrl/files/freewrl-1.22.13-desktop.patch
@@ -0,0 +1,11 @@
+--- a/freewrl-1.22.13/data/freewrl.desktop 2009-06-08 06:26:21.000000000 -0400
++++ b/freewrl-1.22.13/data/freewrl.desktop 2013-12-23 10:45:54.916307951 -0500
+@@ -3,7 +3,7 @@
+ Name=FreeWRL
+ Comment=View X3D and VRML files
+ Exec=/usr/bin/freewrl
+-Icon=freewrl.png
++Icon=freewrl
+ Terminal=false
+ Type=Application
+ Categories=Graphics;3DGraphics;Viewer;
diff --git a/media-gfx/freewrl/files/freewrl-1.22.13-fontconfig-match.patch b/media-gfx/freewrl/files/freewrl-1.22.13-fontconfig-match.patch
new file mode 100644
index 000000000000..36b844ea8b62
--- /dev/null
+++ b/media-gfx/freewrl/files/freewrl-1.22.13-fontconfig-match.patch
@@ -0,0 +1,19 @@
+--- src/lib/scenegraph/Component_Text.c 15 Aug 2012 13:31:45 -0000 1.56
++++ src/lib/scenegraph/Component_Text.c 29 Aug 2012 14:18:43 -0000 1.57
+@@ -370,6 +370,7 @@
+ FcPattern *FW_fp=NULL;
+ FcPattern *FW_fm=NULL;
+ FcChar8 *FW_file=NULL;
++ FcResult fcjunkresult;
+ #else
+
+ if (!p->font_directory) {
+@@ -487,7 +488,7 @@
+ #ifdef HAVE_FONTCONFIG
+ FcConfigSubstitute(0,FW_fp,FcMatchPattern);
+ FcDefaultSubstitute(FW_fp);
+- if (!(FW_fm = FcFontMatch(0,FW_fp,0))) {
++ if (!(FW_fm = FcFontMatch(0,FW_fp,&fcjunkresult))) {
+ /* do whatever is done when no match found */
+ printf ("could not find font for id %x\n",num);
+ } else {
diff --git a/media-gfx/freewrl/files/freewrl-1.22.13-java-fix.patch b/media-gfx/freewrl/files/freewrl-1.22.13-java-fix.patch
new file mode 100644
index 000000000000..882062cb7e10
--- /dev/null
+++ b/media-gfx/freewrl/files/freewrl-1.22.13-java-fix.patch
@@ -0,0 +1,54 @@
+--- a/src/java/Makefile.sources
++++ b/src/java/Makefile.sources
+@@ -1,4 +1,4 @@
+-dist_noinst_JAVA = \
++noinst_JAVA = \
+ org/web3d/x3d/sai/Browser.java \
+ org/web3d/x3d/sai/BrowserEvent.java \
+ org/web3d/x3d/sai/BrowserFactoryImpl.java \
+@@ -309,6 +309,7 @@ noinst_JAVA = \
+ vrml/InvalidFieldException.java \
+ vrml/InvalidRouteException.java \
+ vrml/InvalidVRMLSyntaxException.java \
++ vrml/InvalidX3DSyntaxException.java \
+ vrml/MField.java \
+ vrml/field/ConstMFColor.java \
+ vrml/field/ConstMFFloat.java \
+--- /dev/null
++++ b/src/java/vrml/InvalidX3DSyntaxException.java
+@@ -0,0 +1,6 @@
++package vrml;
++
++public class InvalidX3DSyntaxException extends Exception {
++ public InvalidX3DSyntaxException() { super(); }
++ public InvalidX3DSyntaxException(String s) { super(s); }
++}
+--- a/src/java/Makefile.am 2014-03-10 10:37:09.000000000 -0400
++++ b/src/java/Makefile.am 2014-03-12 12:29:42.000000000 -0400
+@@ -1,5 +1,10 @@
+ # Java Classes for EAI/SAI/etc.
+
++# NOTE - automake-1.11.6 changed how class*.stamp is generated, now need
++# to use noinst_JAVA and EXTRA_DIST instead of dist_noinst_JAVA to
++# keep behaviour consistent and compatible with both automake-1.11.6 and
++# older automake
++
+ # Get global variables for Makefile defined by toplevel Makefile.globals
+ include $(top_srcdir)/Makefile.globals
+
+@@ -9,11 +14,12 @@
+ jarfile = vrml.jar
+ jardir = $(JAVA_DIR)
+
+-$(jarfile): $(dist_noinst_JAVA) classdist_noinst.stamp
+- $(JAR) cmf $(JAVAROOT)/manifest.extras $@ -C $(JAVAROOT) $$(echo $(dist_noinst_JAVA:.java=.class))
++$(jarfile): $(noinst_JAVA) manifest.extras classnoinst.stamp
++ $(JAR) cmf $(JAVAROOT)/manifest.extras $@ -C $(JAVAROOT) $$(echo $(noinst_JAVA:.java=.class))
+
+ jar_DATA = $(jarfile)
+
+-CLEANFILES = $(jarfile) $$(echo $(dist_noinst_JAVA:.java=.class))
++CLEANFILES = $(jarfile) $$(echo $(noinst_JAVA:.java=.class))
++EXTRA_DIST = $(noinst_JAVA) java.policy manifest.extras
+
+ include Makefile.sources
diff --git a/media-gfx/freewrl/files/freewrl-1.22.13-mozjs187-config.patch b/media-gfx/freewrl/files/freewrl-1.22.13-mozjs187-config.patch
new file mode 100644
index 000000000000..645a2315c161
--- /dev/null
+++ b/media-gfx/freewrl/files/freewrl-1.22.13-mozjs187-config.patch
@@ -0,0 +1,10 @@
+--- a/configure.ac 2012-06-13 13:17:43.000000000 -0400
++++ b/configure.ac 2012-06-18 15:34:59.000000000 -0400
+@@ -192,6 +192,7 @@
+ AC_MY_CHECK_MODULE(JAVASCRIPT_ENGINE,[spidermonkey],[>=],[1.7.0])
+ ;;
+ *)
++ AC_MY_CHECK_MODULE(JAVASCRIPT_ENGINE,[mozjs187])
+ AC_MY_CHECK_MODULE(JAVASCRIPT_ENGINE,[mozjs185])
+ AC_MY_CHECK_MODULE(JAVASCRIPT_ENGINE,[mozilla-js],[>=],[1.9])
+ AC_MY_CHECK_MODULE(JAVASCRIPT_ENGINE,[xulrunner-js],[>=],[1.8])
diff --git a/media-gfx/freewrl/files/freewrl-2.3.3-ld.gold.patch b/media-gfx/freewrl/files/freewrl-2.3.3-ld.gold.patch
new file mode 100644
index 000000000000..6660f175b502
--- /dev/null
+++ b/media-gfx/freewrl/files/freewrl-2.3.3-ld.gold.patch
@@ -0,0 +1,35 @@
+commit 57d2d3b900c7d57e167fb7c90b36ca8c9c80b8bd
+Author: Ian Stakenvicius <axs@gentoo.org>
+Date: Mon Apr 28 10:53:57 2014 -0400
+
+ autotools: fixed underlinking issue with libm
+
+ Signed-off-by: Ian Stakenvicius <axs@gentoo.org>
+
+diff --git a/freex3d/configure.ac b/freex3d/configure.ac
+index 49db07c..48b09c8 100644
+--- a/freex3d/configure.ac
++++ b/freex3d/configure.ac
+@@ -73,6 +73,8 @@ AC_PROG_GCC_TRADITIONAL
+ dnl AC_FUNC_MALLOC
+ AC_CHECK_FUNCS([strchr strrchr strdup strndup strerror getopt getopt_long getopt_long_only malloc calloc realloc usleep gettimeofday])
+
++# Check for math
++AC_CHECK_LIBM
+
+ # ====================================================
+ # FreeWRL specific configuration: target system
+diff --git a/freex3d/src/lib/Makefile.am b/freex3d/src/lib/Makefile.am
+index ae7fb05..1b1af8a 100644
+--- a/freex3d/src/lib/Makefile.am
++++ b/freex3d/src/lib/Makefile.am
+@@ -40,7 +40,8 @@ EXTERNAL_LIBS = \
+ $(PNG_LIBS) \
+ $(LIBCURL_LIBS) \
+ $(IMLIB2_LIBS) \
+- $(LIBLO_LIBS)
++ $(LIBLO_LIBS) \
++ $(LIBM)
+
+
+ # X11 flags specific to x11 target (default on Linux -- optional on Mac)
diff --git a/media-gfx/freewrl/freewrl-1.22.13-r5.ebuild b/media-gfx/freewrl/freewrl-1.22.13-r5.ebuild
new file mode 100644
index 000000000000..29ffb3ae4676
--- /dev/null
+++ b/media-gfx/freewrl/freewrl-1.22.13-r5.ebuild
@@ -0,0 +1,141 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit autotools nsplugins eutils flag-o-matic java-pkg-opt-2 multilib
+
+DESCRIPTION="VRML97 and X3D compliant browser, library, and web-browser plugin"
+HOMEPAGE="http://freewrl.sourceforge.net/"
+SRC_URI="mirror://sourceforge/freewrl/${P}.1.tar.bz2"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="curl debug +glew java libeai motif +nsplugin osc +sox static-libs"
+
+COMMONDEPEND="x11-libs/libXau
+ x11-libs/libXdmcp
+ x11-libs/libXext
+ x11-libs/libX11
+ motif? ( x11-libs/motif:0= )
+ !motif? ( x11-libs/libXaw )
+ media-libs/mesa
+ glew? ( media-libs/glew:0= )
+ virtual/opengl
+ media-libs/libpng:0=
+ virtual/jpeg:0=
+ media-libs/imlib2
+ >=media-libs/freetype-2
+ media-libs/fontconfig
+ curl? ( net-misc/curl )
+ osc? ( media-libs/liblo )
+ dev-lang/spidermonkey:0="
+DEPEND="${COMMONDEPEND}
+ virtual/pkgconfig
+ java? ( >=virtual/jdk-1.4 )
+ nsplugin? ( net-misc/npapi-sdk )"
+RDEPEND="${COMMONDEPEND}
+ media-fonts/dejavu
+ app-arch/unzip
+ virtual/imagemagick-tools
+ java? ( >=virtual/jre-1.4 )
+ sox? ( media-sound/sox )"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-fontconfig-match.patch
+ if has_version ">=dev-lang/spidermonkey-1.8.7:0" ; then
+ epatch "${FILESDIR}"/${P}-mozjs187-config.patch
+ fi
+ epatch "${FILESDIR}"/${P}-desktop.patch
+ epatch "${FILESDIR}"/${P}-java-fix.patch
+ epatch "${FILESDIR}"/${PN}-2.3.3-ld.gold.patch
+ eautoreconf
+}
+
+src_configure() {
+ local myconf="--enable-fontconfig
+ --without-expat
+ --with-x
+ --with-imageconvert=/usr/bin/convert
+ --with-unzip=/usr/bin/unzip"
+ if use motif; then
+ myconf+=" --with-target=motif --with-statusbar=standard"
+ else
+ myconf+=" --with-target=x11 --with-statusbar=hud"
+ fi
+ if use nsplugin; then
+ myconf+=" --with-plugindir=/usr/$(get_libdir)/${PLUGINS_DIR}"
+ myconf+=" --disable-mozilla-plugin --disable-xulrunner-plugin"
+ fi
+ if use sox; then
+ myconf+=" --with-soundconv=/usr/bin/sox"
+ fi
+ # disable the checks for other js libs, in case they are installed
+ if has_version ">=dev-lang/spidermonkey-1.8.5:0" ; then
+ # spidermonkey-1.8.5 provides a .pc to pkg-config, it should be findable via mozjs185
+ for x in mozilla-js xulrunner-js firefox-js firefox2-js seamonkey-js; do
+ myconf+=" --disable-${x}"
+ done
+ else
+ for x in mozjs187 mozjs185 mozilla-js xulrunner-js firefox-js seamonkey-js; do
+ myconf+=" --disable-${x}"
+ done
+ # spidermonkey pre-1.8.5 has no pkg-config, so override ./configure
+ JAVASCRIPT_ENGINE_CFLAGS="-I/usr/include/js -DXP_UNIX"
+ if has_version ">=dev-lang/spidermonkey-1.8:0" ; then
+ # spidermonkey-1.8 changed the name of the lib
+ JAVASCRIPT_ENGINE_LIBS="-lmozjs"
+ else
+ JAVASCRIPT_ENGINE_LIBS="-ljs"
+ fi
+ if has_version "dev-lang/spidermonkey:0[threadsafe]" ; then
+ JAVASCRIPT_ENGINE_CFLAGS+=" -DJS_THREADSAFE $(pkg-config --cflags nspr)"
+ JAVASCRIPT_ENGINE_LIBS="$(pkg-config --libs nspr) ${JAVASCRIPT_ENGINE_LIBS}"
+ fi
+ export JAVASCRIPT_ENGINE_CFLAGS
+ export JAVASCRIPT_ENGINE_LIBS
+ fi
+ econf ${myconf} \
+ $(use_enable curl libcurl) \
+ $(use_with glew) \
+ $(use_enable debug) $(use_enable debug thread_colorized) \
+ $(use_enable libeai) \
+ $(use_enable java) \
+ $(use_enable nsplugin plugin) \
+ $(use_enable osc) \
+ $(use_enable static-libs static) \
+ $(use_enable sox sound)
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+
+ if use java; then
+ insinto /usr/share/${PN}/lib
+ doins src/java/java.policy
+ java-pkg_regjar src/java/vrml.jar
+ # install vrml.jar as a JRE extension
+ dodir /usr/java/packages/lib/ext
+ dosym /usr/share/${PN}/lib/vrml.jar /usr/java/packages/lib/ext/vrml.jar
+ if ! has_version "media-gfx/freewrl[java]" ; then
+ elog "Because vrml.jar requires access to sockets, you will need to incorporate the"
+ elog "contents of /usr/share/${PN}/lib/java.policy into your system or user's default"
+ elog "java policy:"
+ elog " cat /usr/share/${PN}/lib/java.policy >>~/.java.policy"
+ fi
+ fi
+
+ # remove unneeded .la files (as per Flameeyes' rant)
+ cd "${D}"
+ rm "usr/$(get_libdir)"/*.la "usr/$(get_libdir)/${PLUGINS_DIR}"/*.la
+}
+
+pkg_postinst() {
+ if [[ -z ${REPLACING_VERSIONS} ]]; then
+ elog "By default, FreeWRL expects to find the 'firefox' binary in your include"
+ elog "path. If you do not have firefox installed or you wish to use a different"
+ elog "web browser to open links that are within VRML / X3D files, please be sure to"
+ elog "specify the command via your BROWSER environment variable."
+ fi
+}
diff --git a/media-gfx/freewrl/freewrl-2.3.3-r2.ebuild b/media-gfx/freewrl/freewrl-2.3.3-r2.ebuild
new file mode 100644
index 000000000000..9a8ce5245a4d
--- /dev/null
+++ b/media-gfx/freewrl/freewrl-2.3.3-r2.ebuild
@@ -0,0 +1,138 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit autotools nsplugins eutils flag-o-matic java-pkg-opt-2 multilib
+
+if [[ ${PV} == "9999" ]]; then
+ inherit git-r3
+ EGIT_REPO_URI="git://git.code.sf.net/p/freewrl/git"
+ S="${WORKDIR}/${P}/freex3d"
+ SRC_URI=
+ KEYWORDS=
+else
+ SRC_URI="mirror://sourceforge/freewrl/${P}.1.tar.gz"
+ KEYWORDS="~amd64 ~x86"
+fi
+
+DESCRIPTION="VRML97 and X3D compliant browser, library, and web-browser plugin"
+HOMEPAGE="http://freewrl.sourceforge.net/"
+LICENSE="GPL-3"
+SLOT="0"
+IUSE="curl debug java libeai motif +nsplugin opencl osc +sox static-libs"
+
+COMMONDEPEND="x11-libs/libXau
+ x11-libs/libXdmcp
+ x11-libs/libXext
+ x11-libs/libX11
+ motif? ( x11-libs/motif:0= )
+ !motif? ( x11-libs/libXaw )
+ media-libs/mesa
+ virtual/opengl
+ media-libs/libpng:0=
+ virtual/jpeg:0=
+ media-libs/imlib2
+ >=media-libs/freetype-2
+ media-libs/fontconfig
+ curl? ( net-misc/curl )
+ osc? ( media-libs/liblo )
+ opencl? ( virtual/opencl )
+ dev-lang/spidermonkey:0="
+DEPEND="${COMMONDEPEND}
+ virtual/pkgconfig
+ java? ( >=virtual/jdk-1.4 )
+ nsplugin? ( net-misc/npapi-sdk )"
+RDEPEND="${COMMONDEPEND}
+ media-fonts/dejavu
+ app-arch/unzip
+ virtual/imagemagick-tools
+ java? ( >=virtual/jre-1.4 )
+ sox? ( media-sound/sox )"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-ld.gold.patch
+ epatch_user
+ eautoreconf
+}
+
+src_configure() {
+ # list of js libs without .pc support, to disable ./configure auto-checking
+ local spidermonkeys=( mozilla-js xulrunner-js firefox-js firefox2-js seamonkey-js )
+ # list of .pc supported spidermonkeys, to disable ./configure auto-checking
+ local spidermonkeys_pc=( mozjs187 mozjs185 )
+
+ local myconf="--enable-fontconfig
+ --without-expat
+ --with-x
+ --with-imageconvert=/usr/bin/convert
+ --with-unzip=/usr/bin/unzip
+ ${spidermonkeys[@]/#/ --disable-}"
+
+ if has_version "<dev-lang/spidermonkey-1.8.5" ; then
+ # spidermonkey pre-1.8.5 has no pkg-config, so override ./configure
+ myconf+="${spidermonkeys_pc[@]/#/ --disable-}"
+ JAVASCRIPT_ENGINE_CFLAGS="-I/usr/include/js -DXP_UNIX"
+ if has_version ">=dev-lang/spidermonkey-1.8:0" ; then
+ # spidermonkey-1.8 changed the name of the lib
+ JAVASCRIPT_ENGINE_LIBS="-lmozjs"
+ else
+ JAVASCRIPT_ENGINE_LIBS="-ljs"
+ fi
+ if has_version "dev-lang/spidermonkey:0[threadsafe]" ; then
+ JAVASCRIPT_ENGINE_CFLAGS+=" -DJS_THREADSAFE $(pkg-config --cflags nspr)"
+ JAVASCRIPT_ENGINE_LIBS="$(pkg-config --libs nspr) ${JAVASCRIPT_ENGINE_LIBS}"
+ fi
+ export JAVASCRIPT_ENGINE_CFLAGS
+ export JAVASCRIPT_ENGINE_LIBS
+ fi
+ if use nsplugin; then
+ myconf+=" --with-plugindir=/usr/$(get_libdir)/${PLUGINS_DIR}"
+ myconf+=" --disable-mozilla-plugin --disable-xulrunner-plugin"
+ fi
+ econf ${myconf} \
+ $(use_enable curl libcurl) \
+ $(use_with opencl OpenCL) \
+ $(use_enable debug) $(use_enable debug thread_colorized) \
+ $(use_enable libeai) \
+ $(use_enable java) \
+ $(use_enable nsplugin plugin) \
+ $(use_enable osc) \
+ $(use_enable static-libs static) \
+ $(use_enable sox sound) \
+ $(usex sox "--with-soundconv=/usr/bin/sox") \
+ $(usex motif "--with-target=motif" "--with-target=x11") \
+ $(usex motif "--with-statusbar=standard" "--with-statusbar=hud")
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+
+ if use java; then
+ insinto /usr/share/${PN}/lib
+ doins src/java/java.policy
+ java-pkg_regjar src/java/vrml.jar
+ # install vrml.jar as a JRE extension
+ dodir /usr/java/packages/lib/ext
+ dosym /usr/share/${PN}/lib/vrml.jar /usr/java/packages/lib/ext/vrml.jar
+ if ! has_version "media-gfx/freewrl[java]" ; then
+ elog "Because vrml.jar requires access to sockets, you will need to incorporate the"
+ elog "contents of /usr/share/${PN}/lib/java.policy into your system or user's default"
+ elog "java policy:"
+ elog " cat /usr/share/${PN}/lib/java.policy >>~/.java.policy"
+ fi
+ fi
+
+ # remove unneeded .la files (as per Flameeyes' rant)
+ cd "${D}"
+ rm "usr/$(get_libdir)"/*.la "usr/$(get_libdir)/${PLUGINS_DIR}"/*.la
+}
+
+pkg_postinst() {
+ if [[ -z ${REPLACING_VERSIONS} ]]; then
+ elog "By default, FreeWRL expects to find the 'firefox' binary in your include"
+ elog "path. If you do not have firefox installed or you wish to use a different"
+ elog "web browser to open links that are within VRML / X3D files, please be sure to"
+ elog "specify the command via your BROWSER environment variable."
+ fi
+}
diff --git a/media-gfx/freewrl/freewrl-3.0.0-r1.ebuild b/media-gfx/freewrl/freewrl-3.0.0-r1.ebuild
new file mode 100644
index 000000000000..5ff59f6d8e1d
--- /dev/null
+++ b/media-gfx/freewrl/freewrl-3.0.0-r1.ebuild
@@ -0,0 +1,143 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit autotools nsplugins eutils flag-o-matic java-pkg-opt-2 multilib
+
+if [[ ${PV} == "9999" ]]; then
+ inherit git-r3
+ EGIT_REPO_URI="git://git.code.sf.net/p/freewrl/git"
+ S="${WORKDIR}/${P}/freex3d"
+ SRC_URI=
+ KEYWORDS=
+else
+ SRC_URI="mirror://sourceforge/freewrl/${P}.tar.bz2"
+ KEYWORDS="~amd64 ~x86"
+fi
+
+DESCRIPTION="VRML97 and X3D compliant browser, library, and web-browser plugin"
+HOMEPAGE="http://freewrl.sourceforge.net/"
+LICENSE="GPL-3"
+SLOT="0"
+IUSE="curl debug java libeai motif +nsplugin opencl osc +sox static-libs"
+
+COMMONDEPEND="x11-libs/libICE
+ x11-libs/libSM
+ x11-libs/libX11
+ x11-libs/libXext
+ x11-libs/libXmu
+ x11-libs/libXt
+ x11-libs/libXxf86vm
+ motif? ( x11-libs/motif:0= )
+ !motif? ( x11-libs/libXaw )
+ media-libs/mesa
+ virtual/opengl
+ media-libs/freealut
+ media-libs/openal
+ media-libs/libpng:0=
+ virtual/jpeg:0=
+ media-libs/imlib2
+ >=media-libs/freetype-2
+ media-libs/fontconfig
+ curl? ( net-misc/curl )
+ osc? ( media-libs/liblo )
+ opencl? ( virtual/opencl )
+ dev-lang/spidermonkey:0="
+DEPEND="${COMMONDEPEND}
+ virtual/pkgconfig
+ java? ( >=virtual/jdk-1.4 )
+ nsplugin? ( net-misc/npapi-sdk )"
+RDEPEND="${COMMONDEPEND}
+ media-fonts/dejavu
+ app-arch/unzip
+ virtual/imagemagick-tools
+ java? ( >=virtual/jre-1.4 )
+ sox? ( media-sound/sox )"
+
+src_prepare() {
+ epatch_user
+ eautoreconf
+}
+
+src_configure() {
+ # list of js libs without .pc support, to disable ./configure auto-checking
+ local spidermonkeys=( mozilla-js xulrunner-js firefox-js firefox2-js seamonkey-js )
+ # list of .pc supported spidermonkeys, to disable ./configure auto-checking
+ local spidermonkeys_pc=( mozjs187 mozjs185 )
+
+ local myconf="--enable-fontconfig
+ --without-expat
+ --with-x
+ --with-imageconvert=/usr/bin/convert
+ --with-unzip=/usr/bin/unzip
+ --disable-mozjs-17.0
+ ${spidermonkeys[@]/#/ --disable-}"
+
+ if has_version "<dev-lang/spidermonkey-1.8.5" ; then
+ # spidermonkey pre-1.8.5 has no pkg-config, so override ./configure
+ myconf+="${spidermonkeys_pc[@]/#/ --disable-}"
+ JAVASCRIPT_ENGINE_CFLAGS="-I/usr/include/js -DXP_UNIX"
+ if has_version ">=dev-lang/spidermonkey-1.8:0" ; then
+ # spidermonkey-1.8 changed the name of the lib
+ JAVASCRIPT_ENGINE_LIBS="-lmozjs"
+ else
+ JAVASCRIPT_ENGINE_LIBS="-ljs"
+ fi
+ if has_version "dev-lang/spidermonkey:0[threadsafe]" ; then
+ JAVASCRIPT_ENGINE_CFLAGS+=" -DJS_THREADSAFE $(pkg-config --cflags nspr)"
+ JAVASCRIPT_ENGINE_LIBS="$(pkg-config --libs nspr) ${JAVASCRIPT_ENGINE_LIBS}"
+ fi
+ export JAVASCRIPT_ENGINE_CFLAGS
+ export JAVASCRIPT_ENGINE_LIBS
+ fi
+ if use nsplugin; then
+ myconf+=" --with-plugindir=/usr/$(get_libdir)/${PLUGINS_DIR}"
+ myconf+=" --disable-mozilla-plugin --disable-xulrunner-plugin"
+ fi
+ econf ${myconf} \
+ $(use_enable curl libcurl) \
+ $(use_with opencl OpenCL) \
+ $(use_enable debug) $(use_enable debug thread_colorized) \
+ $(use_enable libeai) \
+ $(use_enable java) \
+ $(use_enable nsplugin plugin) \
+ $(use_enable osc) \
+ $(use_enable static-libs static) \
+ $(use_enable sox sound) \
+ $(usex sox "--with-soundconv=/usr/bin/sox") \
+ $(usex motif "--with-target=motif" "--with-target=x11") \
+ $(usex motif "--with-statusbar=standard" "--with-statusbar=hud")
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+
+ if use java; then
+ insinto /usr/share/${PN}/lib
+ doins src/java/java.policy
+ java-pkg_regjar src/java/vrml.jar
+ # install vrml.jar as a JRE extension
+ dodir /usr/java/packages/lib/ext
+ dosym /usr/share/${PN}/lib/vrml.jar /usr/java/packages/lib/ext/vrml.jar
+ if ! has_version "media-gfx/freewrl[java]" ; then
+ elog "Because vrml.jar requires access to sockets, you will need to incorporate the"
+ elog "contents of /usr/share/${PN}/lib/java.policy into your system or user's default"
+ elog "java policy:"
+ elog " cat /usr/share/${PN}/lib/java.policy >>~/.java.policy"
+ fi
+ fi
+
+ # remove unneeded .la files (as per Flameeyes' rant)
+ cd "${D}"
+ rm "usr/$(get_libdir)"/*.la "usr/$(get_libdir)/${PLUGINS_DIR}"/*.la
+}
+
+pkg_postinst() {
+ if [[ -z ${REPLACING_VERSIONS} ]]; then
+ elog "By default, FreeWRL expects to find the 'firefox' binary in your include"
+ elog "path. If you do not have firefox installed or you wish to use a different"
+ elog "web browser to open links that are within VRML / X3D files, please be sure to"
+ elog "specify the command via your BROWSER environment variable."
+ fi
+}
diff --git a/media-gfx/freewrl/freewrl-9999.ebuild b/media-gfx/freewrl/freewrl-9999.ebuild
new file mode 100644
index 000000000000..9987dd19fbc8
--- /dev/null
+++ b/media-gfx/freewrl/freewrl-9999.ebuild
@@ -0,0 +1,146 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit autotools nsplugins eutils flag-o-matic java-pkg-opt-2 multilib
+
+if [[ ${PV} == "9999" ]]; then
+ inherit git-r3
+ EGIT_REPO_URI="https://git.code.sf.net/p/freewrl/git"
+ EGIT_BRANCH="develop"
+ S="${WORKDIR}/${P}/freex3d"
+ SRC_URI=
+ KEYWORDS=
+else
+ SRC_URI="mirror://sourceforge/freewrl/${P}.tar.bz2"
+ KEYWORDS="~amd64 ~x86"
+fi
+
+DESCRIPTION="VRML97 and X3D compliant browser, library, and web-browser plugin"
+HOMEPAGE="http://freewrl.sourceforge.net/"
+LICENSE="GPL-3"
+SLOT="0"
+IUSE="curl debug java libeai motif +nsplugin opencl osc rbp +sox static-libs"
+
+COMMONDEPEND="x11-libs/libICE
+ x11-libs/libSM
+ x11-libs/libX11
+ x11-libs/libXext
+ x11-libs/libXmu
+ x11-libs/libXt
+ x11-libs/libXxf86vm
+ motif? ( x11-libs/motif:0= )
+ !motif? ( x11-libs/libXaw )
+ media-libs/mesa
+ virtual/opengl
+ media-libs/freealut
+ media-libs/openal
+ media-libs/libpng:0=
+ virtual/jpeg:0=
+ media-libs/imlib2
+ >=media-libs/freetype-2
+ media-libs/fontconfig
+ curl? ( net-misc/curl )
+ osc? ( media-libs/liblo )
+ opencl? ( virtual/opencl )
+ rbp? ( dev-games/ode:0=[double-precision] )
+ dev-lang/spidermonkey:0="
+DEPEND="${COMMONDEPEND}
+ virtual/pkgconfig
+ java? ( >=virtual/jdk-1.4 )
+ nsplugin? ( net-misc/npapi-sdk )"
+RDEPEND="${COMMONDEPEND}
+ media-fonts/dejavu
+ app-arch/unzip
+ virtual/imagemagick-tools
+ java? ( >=virtual/jre-1.4 )
+ sox? ( media-sound/sox )"
+
+src_prepare() {
+ epatch_user
+ eautoreconf
+}
+
+src_configure() {
+ # list of js libs without .pc support, to disable ./configure auto-checking
+ local spidermonkeys=( mozilla-js )
+ # list of .pc supported spidermonkeys, to disable ./configure auto-checking
+ local spidermonkeys_pc=( mozjs187 mozjs185 )
+
+ local myconf="--enable-fontconfig
+ --without-expat
+ --with-x
+ --with-imageconvert=/usr/bin/convert
+ --with-unzip=/usr/bin/unzip
+ --with-javascript=spidermonkey
+ ${spidermonkeys[@]/#/ --disable-}"
+
+ if has_version "<dev-lang/spidermonkey-1.8.5:0" ; then
+ # spidermonkey pre-1.8.5 has no pkg-config, so override ./configure
+ myconf+="${spidermonkeys_pc[@]/#/ --disable-}"
+ JAVASCRIPT_ENGINE_CFLAGS="-I/usr/include/js -DXP_UNIX"
+ if has_version ">=dev-lang/spidermonkey-1.8:0" ; then
+ # spidermonkey-1.8 changed the name of the lib
+ JAVASCRIPT_ENGINE_LIBS="-lmozjs"
+ else
+ JAVASCRIPT_ENGINE_LIBS="-ljs"
+ fi
+ if has_version "dev-lang/spidermonkey:0[threadsafe]" ; then
+ JAVASCRIPT_ENGINE_CFLAGS+=" -DJS_THREADSAFE $(pkg-config --cflags nspr)"
+ JAVASCRIPT_ENGINE_LIBS="$(pkg-config --libs nspr) ${JAVASCRIPT_ENGINE_LIBS}"
+ fi
+ export JAVASCRIPT_ENGINE_CFLAGS
+ export JAVASCRIPT_ENGINE_LIBS
+ fi
+ if use nsplugin; then
+ myconf+=" --with-plugindir=/usr/$(get_libdir)/${PLUGINS_DIR}"
+ myconf+=" --disable-mozilla-plugin --disable-xulrunner-plugin"
+ fi
+ econf ${myconf} \
+ $(use_enable curl libcurl) \
+ $(use_with opencl OpenCL) \
+ $(use_enable debug) $(use_enable debug thread_colorized) \
+ $(use_enable libeai) \
+ $(use_enable java) \
+ $(use_enable nsplugin plugin) \
+ $(use_enable osc) \
+ $(use_enable rbp) \
+ $(use_enable static-libs static) \
+ $(use_enable sox sound) \
+ $(usex sox "--with-soundconv=/usr/bin/sox") \
+ $(usex motif "--with-target=motif" "--with-target=x11") \
+ $(usex motif "--with-statusbar=standard" "--with-statusbar=hud")
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+
+ if use java; then
+ insinto /usr/share/${PN}/lib
+ doins src/java/java.policy
+ java-pkg_regjar src/java/vrml.jar
+ # install vrml.jar as a JRE extension
+ dodir /usr/java/packages/lib/ext
+ dosym /usr/share/${PN}/lib/vrml.jar /usr/java/packages/lib/ext/vrml.jar
+ if ! has_version "media-gfx/freewrl[java]" ; then
+ elog "Because vrml.jar requires access to sockets, you will need to incorporate the"
+ elog "contents of /usr/share/${PN}/lib/java.policy into your system or user's default"
+ elog "java policy:"
+ elog " cat /usr/share/${PN}/lib/java.policy >>~/.java.policy"
+ fi
+ fi
+
+ # remove unneeded .la files (as per Flameeyes' rant)
+ cd "${D}"
+ rm "usr/$(get_libdir)"/*.la "usr/$(get_libdir)/${PLUGINS_DIR}"/*.la
+}
+
+pkg_postinst() {
+ if [[ -z ${REPLACING_VERSIONS} ]]; then
+ elog "By default, FreeWRL expects to find the 'firefox' binary in your include"
+ elog "path. If you do not have firefox installed or you wish to use a different"
+ elog "web browser to open links that are within VRML / X3D files, please be sure to"
+ elog "specify the command via your BROWSER environment variable."
+ fi
+}
diff --git a/media-gfx/freewrl/metadata.xml b/media-gfx/freewrl/metadata.xml
new file mode 100644
index 000000000000..21fdcd50c357
--- /dev/null
+++ b/media-gfx/freewrl/metadata.xml
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>axs@gentoo.org</email>
+ <name>Ian Stakenvicius</name>
+ </maintainer>
+ <longdescription>
+FreeWRL is a VRML97 (VRML-2.0) and X3D interactive viewer, providing both a traditional Xorg application
+and a nsbrowser plugin for use with many available web browsers. The package depends heavily on OpenGL
+support for rendering. When developing your 3D world or model, you can program with GLSL Shaders using the
+X3D Shaders Component, put your model exactly where you want them with the Geospatial Component, or just
+throw triangles to the screen as Extrusions, IndexedFaceSets, TriangleSets, Circle2D, Disk2D, Spheres, Boxes,
+Cubes; the list goes on and on. With royalty free open standards, your models will continue to render, year after year.
+</longdescription>
+ <use>
+ <flag name="glew">Enable glew extensions</flag>
+ <flag name="libeai">Build EAI C library</flag>
+ <flag name="opencl">Enable OpenCL support</flag>
+ <flag name="osc">Allows for OSC-based control and communication between multiple freewrl instances</flag>
+ <flag name="rbp">Enable support for Rigid Body Physics</flag>
+ <flag name="java">Build and install java EAI/SAI support library</flag>
+ </use>
+ <upstream>
+ <remote-id type="sourceforge">freewrl</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/media-gfx/galleryadd/Manifest b/media-gfx/galleryadd/Manifest
new file mode 100644
index 000000000000..ec5f21c03566
--- /dev/null
+++ b/media-gfx/galleryadd/Manifest
@@ -0,0 +1,5 @@
+DIST galleryadd-2.30.tar.gz 10763 SHA256 7f2f09539aeca02c6b8179b417c8f331fd135b714f3ce9b483b48f33bed5714b SHA512 f604c92eedf6e753d727c064a1460298b6155e0960cdd1795e36d29a6442e294c153842c296b5422b6a38ffbde671954ce59da27c13740f85da74b0b3efaf162 WHIRLPOOL e827d17e08b2b039391275c94aa6d60d71872751a692feca68b2edb680970ec583123026c1e73be9c167c0af34b5f2c61614a2547eb4535be64b31483d8bba7c
+EBUILD galleryadd-2.30.ebuild 488 SHA256 6eb154e99346ea2772dd9951292aa30023f59e9b4b736e42c054553c768bd328 SHA512 5b2f8dab10e049e3af572b328bcf86267b1899adb07c167005ffef07e59e866593fabb30d34bf123354afc262ce51fc3bc481b0f5e3c627d2d5672c12ee36736 WHIRLPOOL d5f3ea0a81f717f2a80b782712c36b63179857e313f388fdf1ea69b279318ed30c9e70fea8782f71f3c44b395e59973908eef346540cbc8b922b06a028dd19b3
+MISC ChangeLog 2184 SHA256 7e055c0c6feca125b03c698147a9a85bf55c5b95f1d34d33face7529ff09bf9d SHA512 5b8013535130b41576d72694c5cf6ba6c1a7815f4ad689e6e62b9a7bf4983a82de01605d607a306297c18c39d27dc5be01e26cb4bede6de6532089e2f8d4483b WHIRLPOOL 1bfd9375ec54233a4acbb0902503f130e7d3f5aafbed2107718442a5479a9ca2a10cfef9296df6cc9c9cd603fb1e1a273148ee24ed87f14588a3203dcc68ea65
+MISC ChangeLog-2015 605 SHA256 ac2d14bf51f149617cf0f06a5e3da356abd1516f96109665ebb2acd3bd3073cc SHA512 c561ccd2d710a1a73d6ca021ad5490a778b9d8e61e77ef020929cc984608066ef358f01c201544bd58726e168dc9a1bdaed36abe0af0484ebd259f418b615aae WHIRLPOOL 29fef22fb6d177fbdc32f6f8300fe808efaa66eb014ebd5c4d825898eecbfca1330af66f1523f9c214fc0add37212f4a54bab8409255d72295971cba700cd9a9
+MISC metadata.xml 216 SHA256 f7475919f28a8a93ec8bd025c8f8bbab918f66d0d1737420c876f0480308fe6a SHA512 e881b59fe49746eb25ad66c258b41aba501e4eb563129093a3898ea970a20506e7898f7c355cfcf99605234962bf2c77c1309c258b9a2b84ee4302ccb71c9dbd WHIRLPOOL 163285b60aa93e00993af659dc1e29a9eb245bd3415dd5ec75b284250596165f469028102b72fa0c344834443a44c1bbcf6272fe6a3f5211f721fc96e1c6ec16
diff --git a/media-gfx/galleryadd/galleryadd-2.30.ebuild b/media-gfx/galleryadd/galleryadd-2.30.ebuild
new file mode 100644
index 000000000000..0447fc67f4aa
--- /dev/null
+++ b/media-gfx/galleryadd/galleryadd-2.30.ebuild
@@ -0,0 +1,19 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+DESCRIPTION="Perl script to recursively adds directories/images to Gallery"
+HOMEPAGE="http://iainlea.dyndns.org/software/galleryadd/"
+SRC_URI="http://iainlea.dyndns.org/software/galleryadd/${P}.tar.gz"
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+RDEPEND="dev-perl/libwww-perl
+ virtual/perl-Time-HiRes"
+DEPEND=""
+
+S="${WORKDIR}"
+
+src_install() {
+ dobin galleryadd.pl
+}
diff --git a/media-gfx/galleryadd/metadata.xml b/media-gfx/galleryadd/metadata.xml
new file mode 100644
index 000000000000..79d462e85571
--- /dev/null
+++ b/media-gfx/galleryadd/metadata.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="person">
+ <email>robbat2@gentoo.org</email>
+</maintainer>
+</pkgmetadata>
diff --git a/media-gfx/geeqie/Manifest b/media-gfx/geeqie/Manifest
new file mode 100644
index 000000000000..fee984af4321
--- /dev/null
+++ b/media-gfx/geeqie/Manifest
@@ -0,0 +1,13 @@
+AUX geeqie-1.2.2-fix_keywords_gtk3.patch 477 SHA256 4744e41249d5c010a6fbc694fec2a092c5249a7684cf83e521c64536a9dd6390 SHA512 adcda745352c62cbc811238229aeacd8e0016c17367d60ce7571a21e9891270a5506c247b8b8adb602a655d32619cb118fb29ed85edeccddec0949600c936b3f WHIRLPOOL 71b9c6f140f51a06224c5320bd2c35328396595a18ab4d7ddf1c6acac2b51b8f9e4dd6f7dfe6c77f878677328213b698445b186b95d1f9ac1fa89d6207635b86
+AUX geeqie-1.2.3-fix_keywords_gtk3.patch 3168 SHA256 51ad3b6071021fb3ade78750327d867c1881dc663df4843dbbc408f9f495b459 SHA512 76214c6ce36c20f8af6daba22e4ea7d5021c4e5efd544298e25e7383918c94ab47cf7ce33768bf34eb7f1b319e46ad1100d3e34dd902a32234c01ea53be8be4f WHIRLPOOL fda440792a0a07e9238f32ec0e615f5a170acd14f3f108be84f2e250c90a57c56190033af06cc4a9a1e98ee8ac19d8e7ef3404050465ca417a741a6d28558e93
+AUX geeqie-1.3-stdstring.patch 2247 SHA256 a7d36c7fe77b90eade68ad306b55ec5314d4d01a1a5db9aab65f9f5d405a54ae SHA512 f26122a1419f795393174340f0e4a5b341d8341664840347730a8b19b1956d4c684b6a5a5183357250364a040eacc18267aab272789ac65ece9ece56d6b2dadf WHIRLPOOL 4595bc1fc4824c947016c575a8a2af8b26a4d1d5c3d168d6dac887d5f76c9369ac527ddb16f5db0604e3defc9b8a992b24e2802fa9b528b384069b5a8657ff0a
+DIST geeqie-1.2.2.tar.xz 1156616 SHA256 e1cbc403650730e2f4092159e4347c858d3d81e4374d2a51d635234ba90b3ee3 SHA512 0e134802b42061e76ec2f2d9069ab13ebcab17f889b04917e15aba74a208a4c4ffa5a957f45eb5bd14917d98d2d6250c1085cb065a1ae487050e5e2f325c14c4 WHIRLPOOL 78e960d2e551675b6474d30cfb0119177e14d1930a23b930c5b7ef7757092085db423713be495a4fcb51112c293eb88b12fe511b5b4bf64c86c27b8e410cb318
+DIST geeqie-1.2.3.tar.xz 1129804 SHA256 2629bf33a9070fad4804b1ef051c3bf8a8fdad3bba4e6188dc20588185003248 SHA512 1bb2a6e5782cdafb4aeb1ab9247f7d43f4ef341594ea795214c136ba1fe416cf8bc37faa43462780eca3d0b07a7852e27719f8d23c8bdb42c899857846b4f7b1 WHIRLPOOL 8b4ee7218bb1562695c5c5322e684652f9318f04ed77bc0a54e70dd46f63801a7f0cc9c9b37346a58f6c1059278c07f980dec439dd753f2f87ce7f2a98e01566
+DIST geeqie-1.3.tar.xz 1141820 SHA256 4b6f566dd1a8badac68c4353c7dd0f4de17f8627b85a7a70d5eb1ae3b540ec3f SHA512 b17c4174741acd60261af268f0e9290ee3d7766d18fc0d28ada5730bb50651a6261d0b04b9fbe810d323c8e6a1b5a21a4f1ebf0eb88daf95f123b77b8484e718 WHIRLPOOL 8b3e54ae6cf8f8a633225df4f5058c29a7dd56adc63c9594cb995929d4cebb3b07d76a257a454506330f32673ac9a57ce63eb3fbf33126ed4cbccc7542910720
+EBUILD geeqie-1.2.2-r2.ebuild 1785 SHA256 44be5242a2a0abd6ae43ae5f07d276aeef6a8264486cfa86637c35f062bb4989 SHA512 8703001eea8161e35965a9e414983aa1b493efae3edbe6b8b6fed2d221e7df72ed299c393b1072f1deb1ddfe3f5703f638916bbcca63862a765aa6d7d2648f87 WHIRLPOOL 59bf45ee95d6a041276d282b99fc19ff27f3c461e577d1bc6fa35c7c17359adf8f4cf28094b0e77dd42966e1011c3b4db773b0af736566bce47b0b4462d35b9e
+EBUILD geeqie-1.2.3-r1.ebuild 1781 SHA256 2f1191e470c4a5de056dd6dd851acf15039d0ff87d81c6b125fe34a8de80bee8 SHA512 425e3cdad548f852c470e3758cbc66be3e53ac47b543c190d8f24c7f60b682211afc6f278738d21e534569da9bc3ce23237b1fdae60bfb635d597d678312c1dc WHIRLPOOL 3b6f69bbee4e6dd22904bf299a581908ec24d1b728b9d4049f59deb2b731d1e1364075c92be25b60f4fcb9fdd84973e13f784aab6789a9017a4c1de80faf9724
+EBUILD geeqie-1.3-r1.ebuild 1943 SHA256 269e52fd48e93a558fba8c2e51c25bf783bfeb085bd28da63a6b3ebe7fdf12c4 SHA512 ac4bd6fbabda938a02bc99f8a2d6c51857dbda60c8a6f4011a9eb255bcc59e577193831469f84feb9c62e75c27cfada3a4c91b811aa592905f7a175f1c76c8fb WHIRLPOOL 1ddf209225ded1551629b59c035f4ed58df5f655bfe445b46646262682463e8af02bc9ad51ca77df1f8c324b34357e15b0e66f0c265ce1dbac0ea1fdba214972
+EBUILD geeqie-1.3.ebuild 1931 SHA256 2265f76f9b04b9afab27916755dd967e26265cecd1f2f8f83477280e35f20f28 SHA512 3c7751b1a5c6f46b2e9857be84a398ac8d76c73a8708c082da7c34440ab87af5a570295c009de46ceca8f9f83efc1f86f370d007589bf107d64adec1da5606d1 WHIRLPOOL 45be52ad0f918ed550ec9ec8bd888e1aa42e792afc7d6dd1b0867a9c5b823aa8c39771287c90247abb1b306c1a7228767647f8d6169bc496fa97da615534beb5
+MISC ChangeLog 5757 SHA256 4fda454943c101f42a7ffba538f84adbd912c761d6ed23d9ab5be3c8ee8798dd SHA512 0226f8e9bd30569db9568b2358232d7f7c11af39c3746e6ea969288f7f8cefc38b5a4989c571df93c61bc3173e915c987cdf73008bc71534fe416a41d1169d19 WHIRLPOOL ec6f9d70c3fc011d6b9b0311ad18cdf32c4e800cf0c4083150b397443a59b88341683b213860393b5665b2f20450f1cd6f69c440d3bdafc9e134dcb17f354ef9
+MISC ChangeLog-2015 6448 SHA256 bb2985e10ea688c1b54f14bc525f960dbf1c377768a4fc139aa506ebf56f6d76 SHA512 2a711623b0244311092623f3491146b63ab849839050efb125c703a98457e6a6fc1949deb8a2f141f9a844fd386211d551636b76e8a8f2ea2d9f8f19f7cfb594 WHIRLPOOL c2d9b9dd54fd2342d180fa320f63c7b0928c5aac672cf7e1978ece776f3b680456ae89379e730c07378e0933966130771d50ea3d4ca3ff13b3bdfcd4e479429d
+MISC metadata.xml 806 SHA256 db397d9f869537aba84cab87b1871c57757e2e599b0d4b954dd716e379eee4ab SHA512 f5d2929460a639de62f06abf298d4817ffbf9550892b4ad0eccbb9bb8fbffeb5e399c9184bb1d1367090135af329d36807bf1f7497ec5af77201da631a5f91d4 WHIRLPOOL c890d6f0bc44a49864a54d9380ff1269a241e6c204237e409c9cbeff318c087f4f67a4df06332c39315f149caa112dce4496567d0240fe71e43a894ae9395cfb
diff --git a/media-gfx/geeqie/files/geeqie-1.2.2-fix_keywords_gtk3.patch b/media-gfx/geeqie/files/geeqie-1.2.2-fix_keywords_gtk3.patch
new file mode 100644
index 000000000000..99bc10d9b57f
--- /dev/null
+++ b/media-gfx/geeqie/files/geeqie-1.2.2-fix_keywords_gtk3.patch
@@ -0,0 +1,12 @@
+--- a/src/bar_keywords.c 2015-05-23 14:20:43.000000000 +0200
++++ b/src/bar_keywords.c 2015-12-30 00:34:21.453531792 +0100
+@@ -1295,6 +1295,9 @@
+ g_object_set_data(G_OBJECT(pkd->widget), "pane_data", pkd);
+ g_signal_connect(G_OBJECT(pkd->widget), "destroy",
+ G_CALLBACK(bar_pane_keywords_destroy), pkd);
++#if GTK_CHECK_VERSION(3,0,0)
++ gtk_widget_set_size_request(pkd->widget, -1, 400);
++#endif
+ gtk_widget_show(hbox);
+
+ scrolled = gtk_scrolled_window_new(NULL, NULL);
diff --git a/media-gfx/geeqie/files/geeqie-1.2.3-fix_keywords_gtk3.patch b/media-gfx/geeqie/files/geeqie-1.2.3-fix_keywords_gtk3.patch
new file mode 100644
index 000000000000..695effaffaef
--- /dev/null
+++ b/media-gfx/geeqie/files/geeqie-1.2.3-fix_keywords_gtk3.patch
@@ -0,0 +1,88 @@
+From a174e816ae993e7ee9731651b2674dbfdec9ed95 Mon Sep 17 00:00:00 2001
+From: Colin Clark <cclark@mcb.net>
+Date: Wed, 30 Mar 2016 15:36:32 +0100
+Subject: [PATCH] Bug fix #227 + enable user to set height of Keywords pane
+
+Bug #227 Keywords section of Info sidebar doesn't work on GTK3 build
+https://sourceforge.net/p/geeqie/bugs/227/
+
+Permit the user to set the height of the Keywords pane in the Info
+sidebar by editing the line:
+
+<pane_keywords id = "keywords" title = "Keywords" expanded = "true" key
+= "Xmp.dc.subject" height = "200"/>
+
+in the configuration file geeqierc.xml
+---
+ src/bar_keywords.c | 10 ++++++++--
+ 1 file changed, 8 insertions(+), 2 deletions(-)
+
+diff --git a/src/bar_keywords.c b/src/bar_keywords.c
+index f58f348..0eee90c 100644
+--- a/src/bar_keywords.c
++++ b/src/bar_keywords.c
+@@ -113,6 +113,7 @@ struct _PaneKeywordsData
+ guint idle_id; /* event source id */
+ FileData *fd;
+ gchar *key;
++ gint height;
+ };
+
+ typedef struct _ConfDialogData ConfDialogData;
+@@ -249,6 +250,7 @@ static void bar_pane_keywords_write_config(GtkWidget *pane, GString *outstr, gin
+ write_char_option(outstr, indent, "title", gtk_label_get_text(GTK_LABEL(pkd->pane.title)));
+ WRITE_BOOL(pkd->pane, expanded);
+ WRITE_CHAR(*pkd, key);
++ WRITE_INT(*pkd, height);
+ WRITE_STRING("/>");
+ }
+
+@@ -1263,7 +1265,7 @@ static void bar_pane_keywords_destroy(GtkWidget *widget, gpointer data)
+ }
+
+
+-static GtkWidget *bar_pane_keywords_new(const gchar *id, const gchar *title, const gchar *key, gboolean expanded)
++static GtkWidget *bar_pane_keywords_new(const gchar *id, const gchar *title, const gchar *key, gboolean expanded, gint height)
+ {
+ PaneKeywordsData *pkd;
+ GtkWidget *hbox;
+@@ -1285,6 +1287,7 @@ static GtkWidget *bar_pane_keywords_new(const gchar *id, const gchar *title, con
+
+ pkd->pane.expanded = expanded;
+
++ pkd->height = height;
+ pkd->key = g_strdup(key);
+
+ pkd->expand_checked = TRUE;
+@@ -1295,6 +1298,7 @@ static GtkWidget *bar_pane_keywords_new(const gchar *id, const gchar *title, con
+ g_object_set_data(G_OBJECT(pkd->widget), "pane_data", pkd);
+ g_signal_connect(G_OBJECT(pkd->widget), "destroy",
+ G_CALLBACK(bar_pane_keywords_destroy), pkd);
++ gtk_widget_set_size_request(pkd->widget, -1, height);
+ gtk_widget_show(hbox);
+
+ scrolled = gtk_scrolled_window_new(NULL, NULL);
+@@ -1417,6 +1421,7 @@ GtkWidget *bar_pane_keywords_new_from_config(const gchar **attribute_names, cons
+ gchar *title = NULL;
+ gchar *key = g_strdup(COMMENT_KEY);
+ gboolean expanded = TRUE;
++ gint height = 200;
+ GtkWidget *ret;
+
+ while (*attribute_names)
+@@ -1428,13 +1433,14 @@ GtkWidget *bar_pane_keywords_new_from_config(const gchar **attribute_names, cons
+ if (READ_CHAR_FULL("title", title)) continue;
+ if (READ_CHAR_FULL("key", key)) continue;
+ if (READ_BOOL_FULL("expanded", expanded)) continue;
++ if (READ_INT_FULL("height", height)) continue;
+
+
+ log_printf("unknown attribute %s = %s\n", option, value);
+ }
+
+ bar_pane_translate_title(PANE_KEYWORDS, id, &title);
+- ret = bar_pane_keywords_new(id, title, key, expanded);
++ ret = bar_pane_keywords_new(id, title, key, expanded, height);
+ g_free(id);
+ g_free(title);
+ g_free(key);
diff --git a/media-gfx/geeqie/files/geeqie-1.3-stdstring.patch b/media-gfx/geeqie/files/geeqie-1.3-stdstring.patch
new file mode 100644
index 000000000000..fb58db6a5283
--- /dev/null
+++ b/media-gfx/geeqie/files/geeqie-1.3-stdstring.patch
@@ -0,0 +1,63 @@
+From 0b044d1d685307e5755917e31d56a1a3104cd505 Mon Sep 17 00:00:00 2001
+From: David Kalnischkies <david@kalnischkies.de>
+Date: Fri, 27 May 2016 12:04:40 +0100
+Subject: [PATCH] Work around changed c++11 std::string implementation
+
+Bug was already partly fixed by 96db62d but there was even more
+positions that was unseen by Solomon.
+
+The patch is originally from Debian bug report #800350.
+
+Signed-off-by: Klaus Ethgen <Klaus@Ethgen.de>
+---
+ src/exiv2.cc | 12 +++++++-----
+ 1 file changed, 7 insertions(+), 5 deletions(-)
+
+diff --git a/src/exiv2.cc b/src/exiv2.cc
+index 1dbe118..49b8e07 100644
+--- a/src/exiv2.cc
++++ b/src/exiv2.cc
+@@ -25,6 +25,7 @@
+ #include <exiv2/image.hpp>
+ #include <exiv2/exif.hpp>
+ #include <iostream>
++#include <string>
+
+ // EXIV2_TEST_VERSION is defined in Exiv2 0.15 and newer.
+ #ifndef EXIV2_TEST_VERSION
+@@ -1140,8 +1141,9 @@ guchar *exif_get_preview(ExifData *exif, guint *data_len, gint requested_width,
+
+ if (!exif->image()) return NULL;
+
++ std::string const path = exif->image()->io().path();
+ /* given image pathname, first do simple (and fast) file extension test */
+- gboolean is_raw = filter_file_class(exif->image()->io().path().c_str(), FORMAT_CLASS_RAWIMAGE);
++ gboolean is_raw = filter_file_class(path.c_str(), FORMAT_CLASS_RAWIMAGE);
+
+ if (!is_raw && requested_width == 0) return NULL;
+
+@@ -1241,10 +1243,10 @@ extern "C" guchar *exif_get_preview(ExifData *exif, guint *data_len, gint reques
+ if (!exif) return NULL;
+ if (!exif->image()) return NULL;
+
+- const char* path = exif->image()->io().path().c_str();
++ std::string const path = exif->image()->io().path();
+
+ /* given image pathname, first do simple (and fast) file extension test */
+- if (!filter_file_class(path, FORMAT_CLASS_RAWIMAGE)) return NULL;
++ if (!filter_file_class(path.c_str(), FORMAT_CLASS_RAWIMAGE)) return NULL;
+
+ try {
+ struct stat st;
+@@ -1255,9 +1257,9 @@ extern "C" guchar *exif_get_preview(ExifData *exif, guint *data_len, gint reques
+
+ RawFile rf(exif->image()->io());
+ offset = rf.preview_offset();
+- DEBUG_1("%s: offset %lu", path, offset);
++ DEBUG_1("%s: offset %lu", path.c_str(), offset);
+
+- fd = open(path, O_RDONLY);
++ fd = open(path.c_str(), O_RDONLY);
+ if (fd == -1)
+ {
+ return NULL;
diff --git a/media-gfx/geeqie/geeqie-1.2.2-r2.ebuild b/media-gfx/geeqie/geeqie-1.2.2-r2.ebuild
new file mode 100644
index 000000000000..de6fb6131af3
--- /dev/null
+++ b/media-gfx/geeqie/geeqie-1.2.2-r2.ebuild
@@ -0,0 +1,75 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit autotools eutils
+
+DESCRIPTION="A lightweight GTK image viewer forked from GQview"
+HOMEPAGE="http://www.geeqie.org"
+SRC_URI="http://www.geeqie.org/${P}.tar.xz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ~ppc x86"
+IUSE="debug doc exif gtk3 jpeg lcms lirc lua tiff xmp"
+
+RDEPEND="gtk3? ( x11-libs/gtk+:3 )
+ !gtk3? ( x11-libs/gtk+:2 )
+ virtual/libintl
+ doc? ( app-text/gnome-doc-utils )
+ jpeg? ( virtual/jpeg:0 )
+ lcms? ( media-libs/lcms:2 )
+ lirc? ( app-misc/lirc )
+ lua? ( >=dev-lang/lua-5.1:= )
+ xmp? ( >=media-gfx/exiv2-0.17:=[xmp] )
+ !xmp? ( exif? ( >=media-gfx/exiv2-0.17:= ) )
+ tiff? ( media-libs/tiff:0 )"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ dev-util/intltool
+ sys-devel/gettext"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-fix_keywords_gtk3.patch
+
+ epatch_user
+
+ eautoreconf
+}
+
+src_configure() {
+ # clutter does not compile, gps depends on clutter
+ local myconf="--disable-dependency-tracking
+ --with-readmedir=/usr/share/doc/${PF}
+ --disable-clutter
+ --disable-gps
+ $(use_enable debug debug-log)
+ $(use_enable gtk3)
+ $(use_enable jpeg)
+ $(use_enable lcms)
+ $(use_enable lua)
+ $(use_enable lirc)
+ $(use_enable tiff)"
+
+ if use exif || use xmp; then
+ myconf="${myconf} --enable-exiv2"
+ else
+ myconf="${myconf} --disable-exiv2"
+ fi
+
+ econf ${myconf}
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+
+ rm -f "${D}/usr/share/doc/${PF}/COPYING"
+ # Application needs access to the uncompressed file
+ docompress -x /usr/share/doc/${PF}/README
+}
+
+pkg_postinst() {
+ elog "Some plugins may require additional packages"
+ elog "- Image rotate plugin: media-gfx/fbida (JPEG), media-gfx/imagemagick (TIFF/PNG)"
+ elog "- RAW images plugin: media-gfx/ufraw"
+}
diff --git a/media-gfx/geeqie/geeqie-1.2.3-r1.ebuild b/media-gfx/geeqie/geeqie-1.2.3-r1.ebuild
new file mode 100644
index 000000000000..947373854fe5
--- /dev/null
+++ b/media-gfx/geeqie/geeqie-1.2.3-r1.ebuild
@@ -0,0 +1,77 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit autotools
+
+DESCRIPTION="A lightweight GTK image viewer forked from GQview"
+HOMEPAGE="http://www.geeqie.org"
+SRC_URI="http://www.geeqie.org/${P}.tar.xz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE="debug doc exif gtk3 jpeg lcms lirc lua tiff xmp"
+
+RDEPEND="gtk3? ( x11-libs/gtk+:3 )
+ !gtk3? ( x11-libs/gtk+:2 )
+ virtual/libintl
+ doc? ( app-text/gnome-doc-utils )
+ jpeg? ( virtual/jpeg:0 )
+ lcms? ( media-libs/lcms:2 )
+ lirc? ( app-misc/lirc )
+ lua? ( >=dev-lang/lua-5.1:= )
+ xmp? ( >=media-gfx/exiv2-0.17:=[xmp] )
+ !xmp? ( exif? ( >=media-gfx/exiv2-0.17:= ) )
+ tiff? ( media-libs/tiff:0 )"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ dev-util/intltool
+ sys-devel/gettext"
+
+PATCHES=(
+ "${FILESDIR}"/${P}-fix_keywords_gtk3.patch
+)
+
+src_prepare() {
+ default
+
+ eautoreconf
+}
+
+src_configure() {
+ # clutter does not compile, gps depends on clutter
+ local myconf="--disable-dependency-tracking
+ --with-readmedir=/usr/share/doc/${PF}
+ --disable-clutter
+ --disable-gps
+ $(use_enable debug debug-log)
+ $(use_enable gtk3)
+ $(use_enable jpeg)
+ $(use_enable lcms)
+ $(use_enable lua)
+ $(use_enable lirc)
+ $(use_enable tiff)"
+
+ if use exif || use xmp; then
+ myconf="${myconf} --enable-exiv2"
+ else
+ myconf="${myconf} --disable-exiv2"
+ fi
+
+ econf ${myconf}
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+
+ rm -f "${D}/usr/share/doc/${PF}/COPYING"
+ # Application needs access to the uncompressed file
+ docompress -x /usr/share/doc/${PF}/README
+}
+
+pkg_postinst() {
+ elog "Some plugins may require additional packages"
+ elog "- Image rotate plugin: media-gfx/fbida (JPEG), media-gfx/imagemagick (TIFF/PNG)"
+ elog "- RAW images plugin: media-gfx/ufraw"
+}
diff --git a/media-gfx/geeqie/geeqie-1.3-r1.ebuild b/media-gfx/geeqie/geeqie-1.3-r1.ebuild
new file mode 100644
index 000000000000..a113ceba2fb3
--- /dev/null
+++ b/media-gfx/geeqie/geeqie-1.3-r1.ebuild
@@ -0,0 +1,82 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit autotools
+
+DESCRIPTION="A lightweight GTK image viewer forked from GQview"
+HOMEPAGE="http://www.geeqie.org"
+SRC_URI="http://www.geeqie.org/${P}.tar.xz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE="debug doc exif gpu-accel gtk3 jpeg lcms lirc lua map tiff xmp"
+
+RDEPEND="gtk3? ( x11-libs/gtk+:3 )
+ !gtk3? ( x11-libs/gtk+:2 )
+ virtual/libintl
+ doc? ( app-text/gnome-doc-utils )
+ gpu-accel? ( media-libs/clutter-gtk )
+ jpeg? ( virtual/jpeg:0 )
+ lcms? ( media-libs/lcms:2 )
+ lirc? ( app-misc/lirc )
+ lua? ( >=dev-lang/lua-5.1:= )
+ map? ( media-libs/libchamplain:0.12 )
+ xmp? ( >=media-gfx/exiv2-0.17:=[xmp] )
+ !xmp? ( exif? ( >=media-gfx/exiv2-0.17:= ) )
+ tiff? ( media-libs/tiff:0 )"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ dev-util/intltool
+ sys-devel/gettext"
+
+REQUIRED_USE="gpu-accel? ( gtk3 )
+ map? ( gpu-accel )"
+
+PATCHES=(
+ "${FILESDIR}"/${P}-stdstring.patch
+)
+
+src_prepare() {
+ default
+
+ eautoreconf
+}
+
+src_configure() {
+ # clutter does not compile, gps depends on clutter
+ local myconf="--disable-dependency-tracking
+ --with-readmedir="${EPREFIX}"/usr/share/doc/${PF}
+ $(use_enable debug debug-log)
+ $(use_enable gpu-accel)
+ $(use_enable gtk3)
+ $(use_enable jpeg)
+ $(use_enable lcms)
+ $(use_enable lua)
+ $(use_enable lirc)
+ $(use_enable map)
+ $(use_enable tiff)"
+
+ if use exif || use xmp; then
+ myconf="${myconf} --enable-exiv2"
+ else
+ myconf="${myconf} --disable-exiv2"
+ fi
+
+ econf ${myconf}
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+
+ rm -f "${D}/usr/share/doc/${PF}/COPYING"
+ # Application needs access to the uncompressed file
+ docompress -x /usr/share/doc/${PF}/README
+}
+
+pkg_postinst() {
+ elog "Some plugins may require additional packages"
+ elog "- Image rotate plugin: media-gfx/fbida (JPEG), media-gfx/imagemagick (TIFF/PNG)"
+ elog "- RAW images plugin: media-gfx/ufraw"
+}
diff --git a/media-gfx/geeqie/geeqie-1.3.ebuild b/media-gfx/geeqie/geeqie-1.3.ebuild
new file mode 100644
index 000000000000..c9e69adfdcac
--- /dev/null
+++ b/media-gfx/geeqie/geeqie-1.3.ebuild
@@ -0,0 +1,82 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit autotools
+
+DESCRIPTION="A lightweight GTK image viewer forked from GQview"
+HOMEPAGE="http://www.geeqie.org"
+SRC_URI="http://www.geeqie.org/${P}.tar.xz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE="debug doc exif gpu-accel gtk3 jpeg lcms lirc lua map tiff xmp"
+
+RDEPEND="gtk3? ( x11-libs/gtk+:3 )
+ !gtk3? ( x11-libs/gtk+:2 )
+ virtual/libintl
+ doc? ( app-text/gnome-doc-utils )
+ gpu-accel? ( media-libs/clutter-gtk )
+ jpeg? ( virtual/jpeg:0 )
+ lcms? ( media-libs/lcms:2 )
+ lirc? ( app-misc/lirc )
+ lua? ( >=dev-lang/lua-5.1:= )
+ map? ( media-libs/libchamplain:0.12 )
+ xmp? ( >=media-gfx/exiv2-0.17:=[xmp] )
+ !xmp? ( exif? ( >=media-gfx/exiv2-0.17:= ) )
+ tiff? ( media-libs/tiff:0 )"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ dev-util/intltool
+ sys-devel/gettext"
+
+REQUIRED_USE="gpu-accel? ( gtk3 )
+ map? ( gpu-accel )"
+
+PATCHES=(
+ "${FILESDIR}"/${P}-stdstring.patch
+)
+
+src_prepare() {
+ default
+
+ eautoreconf
+}
+
+src_configure() {
+ # clutter does not compile, gps depends on clutter
+ local myconf="--disable-dependency-tracking
+ --with-readmedir=/usr/share/doc/${PF}
+ $(use_enable debug debug-log)
+ $(use_enable gpu-accel)
+ $(use_enable gtk3)
+ $(use_enable jpeg)
+ $(use_enable lcms)
+ $(use_enable lua)
+ $(use_enable lirc)
+ $(use_enable map)
+ $(use_enable tiff)"
+
+ if use exif || use xmp; then
+ myconf="${myconf} --enable-exiv2"
+ else
+ myconf="${myconf} --disable-exiv2"
+ fi
+
+ econf ${myconf}
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+
+ rm -f "${D}/usr/share/doc/${PF}/COPYING"
+ # Application needs access to the uncompressed file
+ docompress -x /usr/share/doc/${PF}/README
+}
+
+pkg_postinst() {
+ elog "Some plugins may require additional packages"
+ elog "- Image rotate plugin: media-gfx/fbida (JPEG), media-gfx/imagemagick (TIFF/PNG)"
+ elog "- RAW images plugin: media-gfx/ufraw"
+}
diff --git a/media-gfx/geeqie/metadata.xml b/media-gfx/geeqie/metadata.xml
new file mode 100644
index 000000000000..4ccccdc6d6e3
--- /dev/null
+++ b/media-gfx/geeqie/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>voyageur@gentoo.org</email>
+ <name>Bernard Cafarelli</name>
+ </maintainer>
+ <longdescription>Geeqie is a lightweight image viewer. It was forked from GQview. The development is focused on features for photo collection maintenance: raw format, Exif/IPTC/XMP metadata and integration with programs like UFraw, ImageMagick, Gimp, gPhoto or ExifTool</longdescription>
+ <use>
+ <flag name="gpu-accel">Enable GPU acceleration support - experimental</flag>
+ <flag name="gtk3">Link against <pkg>x11-libs/gtk+</pkg>:3 instead of <pkg>x11-libs/gtk+</pkg>:2</flag>
+ <flag name="map">Enable items map display - experimental</flag>
+ </use>
+</pkgmetadata>
diff --git a/media-gfx/gif2apng/Manifest b/media-gfx/gif2apng/Manifest
new file mode 100644
index 000000000000..9a199f5d104a
--- /dev/null
+++ b/media-gfx/gif2apng/Manifest
@@ -0,0 +1,6 @@
+AUX gif2apng-1.9-makefile.patch 529 SHA256 08d29293cc2a22a2a07946447636582bf6e1c425ffbe0e614b33f6116302b397 SHA512 f76e3249e8c02b4b4381a2bdfe34bba31f52d4552271b2e66eaab8214366f3464b24624cacc3597b74dfaf7c198d513e18bf9888eb0478e3372e6d3f3eccd809 WHIRLPOOL 490e1e3420ee8082f496fee1f021a381309a006455af28a79adc53a855f31f17c30fc174d3829ea8bf4e4e69a50fbf20c6c1c40a4a6e4ae015fb7c31f642b693
+DIST gif2apng-1.9-src.zip 258946 SHA256 3b21308e935d799b3ffb4a86c6e00ffa4cb9b3f72f52d58d51c66eb0574ae7d2 SHA512 6f161699aad949466c60e0fb6abb2f38e7ec8353dd15e65ccb9944a66dabc5a4acf32523cb64073c73290e54cc2b753db68123c14f3f7789343491a4f65dcd2c WHIRLPOOL 5e2058886505a89015f756c4d6a9e5f9e1a3efb74a8c754940fe79c6b9a00f54be416d2026bb7c8a3e918d051a5c7bb4681e21dfb0971d55e38f92ef5f04d631
+EBUILD gif2apng-1.9-r1.ebuild 640 SHA256 e0bcf795bf1db3bc14f85461ed5423b57ff71bac6cdedd09bc70e3304a68a9c4 SHA512 ce73b3e42b02b2f669fee62709a8575cd6b1ecfdb559fff4ac979dcd0bac62e5271520bc7974f55412504b8ba2ad5a032aa8f13e014c83e68e1b6e0f2fcae1f8 WHIRLPOOL 4b9fd037f227bfcba5e1b80d2a4478fdb23abd76dce209c2c1cd02f9730a1c2e71beaaf7b598e11a5f1a4d2681053929ab0daf4c34395f44dfdda55e8bbc4687
+MISC ChangeLog 2823 SHA256 2677302b1e21ae1b15d1386ced68897f34dfd38f6dcad9697c0cc1ff9f1b230b SHA512 87a1e7cdcecca994f8ac5d96fe524be2c287a824ba1a109cb324050e002fa02acf113dfbedd026101173350df0c1626d7652f704f3fa804f6bf28ec1bfe03531 WHIRLPOOL 93664129c4861c40a5b13161cc047368f6458b8bc02dfe5fc351104deace25db263da22fd1dac7922368123cb243b3540ae26ae8d9badb8c390b267c9517bf06
+MISC ChangeLog-2015 1062 SHA256 76d60114dcb047468e2551acbb6f40e130bf24f1f38275484f81b055e937767f SHA512 8a8face1b323c536875d767fdc7903cda397527a0668398f83ec6bfdcc12f2ba23ceae5dc51de17cfefdb59b903d73f3ce756a94a05f9f934fabbb1c3d792e96 WHIRLPOOL 1764bb1140eb7933cf4ce47bdf28413c1b9d68fb62665068c1cb42f10e100bcab1665273496dd207395fd73ba82f0c73784d5d2267f198e65d0b8fbbe08994ac
+MISC metadata.xml 337 SHA256 315a40bb837b26c2f173651176c21bbfc8b0c7cf0e91909c5098e807552b326d SHA512 f086dad518faacba9371c089e8b97651dd45d5c1fc655975dc3fa2e553c9d1026b41a46bc839df23ef60a5529e0261a9af91de65e763b63b2e3193d67f2df7e5 WHIRLPOOL 4c2a61060f79393c7883d8483960286276039279cddb70bb09e0ff46fc5b6e6e70a3e4db4400fb38853b9a90db1716eb049bff240dfb726e509322e75d05794a
diff --git a/media-gfx/gif2apng/files/gif2apng-1.9-makefile.patch b/media-gfx/gif2apng/files/gif2apng-1.9-makefile.patch
new file mode 100644
index 000000000000..2322e214fbf0
--- /dev/null
+++ b/media-gfx/gif2apng/files/gif2apng-1.9-makefile.patch
@@ -0,0 +1,18 @@
+--- gif2apng-1.9-src/Makefile
++++ gif2apng-1.9-src/Makefile
+@@ -1,11 +1,9 @@
+ PACKAGE = gif2apng
+-CC = gcc
+-SRC_DIRS = . 7z zopfli
+-CFLAGS = -Wall -pedantic
+-CFLAGS_OPT = -O2
++CC ?= gcc
++SRC_DIRS = . 7z
++CFLAGS += -Wall -pedantic
+ CFLAGS_7Z = -Wno-sign-compare -Wno-reorder -Wno-maybe-uninitialized -Wno-parentheses
+-LDFLAGS = -s
+-LIBS = -lstdc++ -lm -lz
++LIBS = -lstdc++ -lm -lz -lzopfli
+
+ INCUDE_DIRS := $(addprefix -I./, $(SRC_DIRS))
+ OBJ_DIRS := $(addprefix obj/, $(SRC_DIRS))
diff --git a/media-gfx/gif2apng/gif2apng-1.9-r1.ebuild b/media-gfx/gif2apng/gif2apng-1.9-r1.ebuild
new file mode 100644
index 000000000000..9e8aa44e1c0b
--- /dev/null
+++ b/media-gfx/gif2apng/gif2apng-1.9-r1.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit toolchain-funcs
+
+DESCRIPTION="create an APNG from a GIF"
+HOMEPAGE="https://sourceforge.net/projects/gif2apng/"
+SRC_URI="mirror://sourceforge/${PN}/${PV}/${P}-src.zip"
+
+LICENSE="ZLIB LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="sys-libs/zlib
+ app-arch/zopfli:="
+DEPEND="${RDEPEND}
+ app-arch/unzip"
+
+S=${WORKDIR}
+
+PATCHES=( "${FILESDIR}"/${P}-makefile.patch )
+
+src_prepare() {
+ default
+
+ # remove bundled libs
+ rm -r zlib zopfli || die
+
+ tc-export CC
+}
+
+src_install() {
+ dobin ${PN}
+ dodoc readme.txt
+}
diff --git a/media-gfx/gif2apng/metadata.xml b/media-gfx/gif2apng/metadata.xml
new file mode 100644
index 000000000000..8edecc7643d8
--- /dev/null
+++ b/media-gfx/gif2apng/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="sourceforge">gif2apng</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/media-gfx/gif2png/Manifest b/media-gfx/gif2png/Manifest
new file mode 100644
index 000000000000..fa559fda0deb
--- /dev/null
+++ b/media-gfx/gif2png/Manifest
@@ -0,0 +1,12 @@
+AUX gif2png-2.5.11-makefile.patch 968 SHA256 090562a1613399c3d81f583ebe0bad52477cbcf29b6ef011a76326278a790d4e SHA512 d5d10837171ebf0db971a3a0513e34f94b4a070f4cf61dcb38b3e301edb7d151c2965e2bf483dd6a0631fbc98d621a4b02f53aac6bed8ed85549dc12b7423756 WHIRLPOOL 3823c425806b5bed16ed3e0e114704a0bb9f6e9d7a9eff7e08190dfc6c32a7ac0d005a50a8f58503392886e462c293da3f577f47e6f0bfeee9db0ec2f5d0d106
+DIST gif2png-2.5.10.tar.gz 138944 SHA256 c5a43875b3c616ce102462d8c23cd09c13c9e0c234d9d7df4e4eae7ccee5494d SHA512 3ca1c0d41a38b4b628f929afa231b8f67079f9998210e63b68e4438379a5d70b64d332f7e0786fb199ef866e188f5095c0d0d4570ec9da829aeac63c8918ad3e WHIRLPOOL 668dcc30a9644495f45c3ae93d08a4463290b79b1fd7f5cca6a1813da75e696ecaea1be93fd6278557d8b2760172d44b29f572e492f673bafd2d5a4f9d010a3f
+DIST gif2png-2.5.11.tar.gz 31507 SHA256 40483169d2de06f632ada1de780c36f63325844ec62892b1652193f77fc508f7 SHA512 c7e42aca45f941bca970ff14f49881f485c4dee18be448ae71aa7c80dabd9384bcba6d6de05a0a78757150b3e775d99df315231ddae8e32c91c08f1c9cfefb67 WHIRLPOOL 436bed50cff84dde0359d6034cd872b85db60d12908c074b2db19de69747bede8661870887d65b594c500f6495cce50b0d6469d7de1eebdba3eb9ebf891a58cd
+DIST gif2png-2.5.8.tar.gz 128373 SHA256 f962c6d1a76d6ec376cd380112235901dc0c130cc134db5e65a3408b4904ff18 SHA512 050c516c125efda315e6bc7e4fadcdd612a9596bd1e6f611865a457efb06153a45516eca343422e15ad75b1219f82ec855f03781285df411590008f5a67e0554 WHIRLPOOL 7e1e69e4f74b12033a30ef9ec86be2d454e9ce2b138af38a5a1e6438f1a264dad5d4ab02e79be089d89b7fa8694c371e6e18e4e81dc84bd0fb4e60f1049f4fc4
+DIST gif2png-2.5.9.tar.gz 137750 SHA256 c8406b7c0c08f504952a1719e04f2366ee44c888c0edfac3a63fea2ab05b64c7 SHA512 0632f1b4b96a1e4b5567101fbac36db55e658503977c8c875d75d9c1db5b374deba5afbda5507585b6b79242781fd70afc477e686458cc124adb8e1b29860c1e WHIRLPOOL c4777997a3222ca209dcb10a21503130a2a691f2c5b3deb8e27f800048e502199a2ab66cc417fbec306a7f7f26eb63ac33c2b224e8f3230fd325179e0fc0b901
+EBUILD gif2png-2.5.10.ebuild 476 SHA256 3090c246b0450a57a7c971b9206e9e67e673ef69fcd0561dbf2843311c546c50 SHA512 5e94bc0156e9e0c21c12b1998c63fc1731db0501eb4b6e65286cadf4b3f6cacf40d4df9f7bea78a258affcd0cd2b25157344900f1bd6ce9970e8e5a1ac9be040 WHIRLPOOL 6a90cf6e72dbfd3a8aae5605eeb7a22c298fafe29c5c6890b36333f51841769c87a91b60ee945e991ace16eb428334ea6be5b17cda3cdf1b19eb699ad6f561e4
+EBUILD gif2png-2.5.11.ebuild 620 SHA256 58d57b2f8d2f399997ce3cb133ff79a278680b5d0d76f05ad8455a3e5f51c1de SHA512 b6b173a8a3cb48eba996253cc28eb7835d902e13db7f67c55f6e6634a27ca81a3e850eee322508e21d8127fbcfef34fe437e743a036513e4af2f363e41a8b5c1 WHIRLPOOL c3728a0d46095210e8907e043246456d7e161ecf19352898b99297e24b81879464da090513624d1f21be64f9eb9860fdb8e496435a3de92b17008a05ee94e521
+EBUILD gif2png-2.5.8.ebuild 472 SHA256 2e0b97d0ba4654fe74ace592a9f4f818bd49aaf79f354f0d02adfaee30a3c517 SHA512 7e71654906afee75a3b094ed796ccdba126b1e8c635bbd65ed018222be651a65fd5cd2ac84346beb0d2fbb305f7c8040f5dccb553ffbbcb0b80b3fcc74249daa WHIRLPOOL 3d4684ee4cb259f6a669a0d7e7be98e660068dc419607fd0cc8f31848124d4dad8bb23786d2ac44b7b2bcce8bb2ca423c8c472ceb1a80e910467b539065faebf
+EBUILD gif2png-2.5.9.ebuild 472 SHA256 0f96ba68cc8ce75fc3f87611e455309033a97571d65477ff427000a861cd1fb4 SHA512 e3fed27af7cd3ccfbe2ee618a547fc3a7a5729cef1fa48798a9f8001de6b08a23ce67a239cf33b96ff8a41a49e2941c1f68e93271de626a7a605813ac6745d8e WHIRLPOOL c1d966207df874b2656ac1edb55db5de212f293acb60925cc8ef9bd7afb7a5ee25d48d0a3be9e8aebea8a3315d9b72e1d9590b4a3519283b7cdcdc0395f04bad
+MISC ChangeLog 2969 SHA256 deecb9df59e382f69a1c5b3dca6200dc42017322e76da75b01084d683e4fb7a2 SHA512 02570cef660a116d04c72c7d97708e52bbf156ce6645a4de51e68a2e8cf44c38106069fcaf88dc26a41ccced6d28e3df8ee5c40c4c68c784825988341681453f WHIRLPOOL 7bee309db60971b6f3762902f36331ae308a86732176fb729152aae1fb41c4179391654aa9bc156b86c64f8e4bf1f7fa92da68370e69d153534608165f567b9c
+MISC ChangeLog-2015 5229 SHA256 7dbdd8d7c5bc58d071a0988349f6cb037e4ed3a0a1bad3512d923f1cfa033546 SHA512 b10f5c25da71942937a28022f7bc659d64fd19eaf7c9a673e503e2103db9c8d0fee1c81d401d4ca044086979719e88e2c6265339687a9864bdcf065a072377d3 WHIRLPOOL 66cf85bc634c0516e5dbe763d56bac963bbfc4f5d5a439835962256589d69ea05c576f91eb82ac9b333f64b4539bd3dfa2adf72214bfb335e64dbc552b1ccbb1
+MISC metadata.xml 255 SHA256 3e7137870fc49956d79719e3dfe029775cbaaa097e85748c139713c46fcd1798 SHA512 b7bc93530a1726c2d4dfbc71ae29cfbb57712fd9fdd2e76fd52f35ab4368cba0497b50145d1527a3b79e465d459a380821bb1371a01c2e915dc9adc6c7fafd5f WHIRLPOOL 392188d7e069f1720be9329edfb31b11b176bf0c411023b2ceeaeabef1cacf842d70657a2a14ac2ddabbdad70a304275f3b587e9bcdfe77be63a0092e370252c
diff --git a/media-gfx/gif2png/files/gif2png-2.5.11-makefile.patch b/media-gfx/gif2png/files/gif2png-2.5.11-makefile.patch
new file mode 100644
index 000000000000..efbd3c34e43a
--- /dev/null
+++ b/media-gfx/gif2png/files/gif2png-2.5.11-makefile.patch
@@ -0,0 +1,39 @@
+Respect CFLAGS/LDFLAGS/DESTDIR and don't try to run missing tests.
+
+--- gif2png-2.5.11/Makefile
++++ gif2png-2.5.11/Makefile
+@@ -2,8 +2,7 @@
+
+ VERSION = 2.5.11
+
+-CFLAGS = -DVERSION=\"$(VERSION)\" -O2
+-LDFLAGS = -s
++CFLAGS += -DVERSION=\"$(VERSION)\"
+
+ SOURCES = 437_l1.c gif2png.c gifread.c memory.c version.c
+ OBJECTS = $(SOURCES:.c=.o)
+@@ -28,19 +27,16 @@
+ web2png.1: web2png.xml
+ xmlto man web2png.xml
+
+-check:
+- cd test; make --quiet test
+-
+ clean:
+ rm -f gif2png *.o gif2png.1 web2png.1
+
+-prefix?=/usr
++prefix ?= /usr
+
+ install: gif2png gif2png.1 web2png.1
+- mkdir -p $(prefix)/bin
+- mkdir -p $(prefix)/share/man/man1
+- cp gif2png web2png $(prefix)/bin/
+- cp gif2png.1 web2png.1 $(prefix)/share/man/man1/
++ mkdir -p $(DESTDIR)$(prefix)/bin
++ mkdir -p $(DESTDIR)$(prefix)/share/man/man1
++ cp gif2png web2png $(DESTDIR)$(prefix)/bin/
++ cp gif2png.1 web2png.1 $(DESTDIR)$(prefix)/share/man/man1/
+
+ uninstall:
+ rm $(prefix)/bin/gif2png $(prefix)/bin/web2png
diff --git a/media-gfx/gif2png/gif2png-2.5.10.ebuild b/media-gfx/gif2png/gif2png-2.5.10.ebuild
new file mode 100644
index 000000000000..6d952faaee56
--- /dev/null
+++ b/media-gfx/gif2png/gif2png-2.5.10.ebuild
@@ -0,0 +1,19 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+DESCRIPTION="Converts images from gif format to png format"
+HOMEPAGE="http://catb.org/~esr/gif2png/"
+SRC_URI="http://catb.org/~esr/${PN}/${P}.tar.gz"
+
+LICENSE="ZLIB"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos"
+IUSE=""
+
+RDEPEND=">=media-libs/libpng-1.2:0
+ sys-libs/zlib"
+DEPEND="${RDEPEND}"
+
+DOCS="AUTHORS NEWS README"
diff --git a/media-gfx/gif2png/gif2png-2.5.11.ebuild b/media-gfx/gif2png/gif2png-2.5.11.ebuild
new file mode 100644
index 000000000000..209f7a0502d0
--- /dev/null
+++ b/media-gfx/gif2png/gif2png-2.5.11.ebuild
@@ -0,0 +1,27 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit toolchain-funcs eutils
+
+DESCRIPTION="Converts images from gif format to png format"
+HOMEPAGE="http://catb.org/~esr/gif2png/"
+SRC_URI="http://catb.org/~esr/${PN}/${P}.tar.gz"
+
+LICENSE="ZLIB"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos"
+
+RDEPEND=">=media-libs/libpng-1.2:0
+ sys-libs/zlib"
+DEPEND="${RDEPEND}"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-makefile.patch
+ tc-export CC
+}
+
+src_install() {
+ emake DESTDIR="${D}" prefix="${EPREFIX}/usr" install
+}
diff --git a/media-gfx/gif2png/gif2png-2.5.8.ebuild b/media-gfx/gif2png/gif2png-2.5.8.ebuild
new file mode 100644
index 000000000000..e3d4326da751
--- /dev/null
+++ b/media-gfx/gif2png/gif2png-2.5.8.ebuild
@@ -0,0 +1,19 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+
+DESCRIPTION="Converts images from gif format to png format"
+HOMEPAGE="http://catb.org/~esr/gif2png/"
+SRC_URI="http://catb.org/~esr/${PN}/${P}.tar.gz"
+
+LICENSE="ZLIB"
+SLOT="0"
+KEYWORDS="amd64 ppc ppc64 ~sparc x86 ~amd64-linux ~x86-linux ~ppc-macos"
+IUSE=""
+
+RDEPEND=">=media-libs/libpng-1.2:0
+ sys-libs/zlib"
+DEPEND="${RDEPEND}"
+
+DOCS="AUTHORS NEWS README"
diff --git a/media-gfx/gif2png/gif2png-2.5.9.ebuild b/media-gfx/gif2png/gif2png-2.5.9.ebuild
new file mode 100644
index 000000000000..d0cd0123f513
--- /dev/null
+++ b/media-gfx/gif2png/gif2png-2.5.9.ebuild
@@ -0,0 +1,19 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+DESCRIPTION="Converts images from gif format to png format"
+HOMEPAGE="http://catb.org/~esr/gif2png/"
+SRC_URI="http://catb.org/~esr/${PN}/${P}.tar.gz"
+
+LICENSE="ZLIB"
+SLOT="0"
+KEYWORDS="amd64 ppc ppc64 ~sparc x86 ~amd64-linux ~x86-linux ~ppc-macos"
+IUSE=""
+
+RDEPEND=">=media-libs/libpng-1.2:0
+ sys-libs/zlib"
+DEPEND="${RDEPEND}"
+
+DOCS="AUTHORS NEWS README"
diff --git a/media-gfx/gif2png/metadata.xml b/media-gfx/gif2png/metadata.xml
new file mode 100644
index 000000000000..19bf1be2581e
--- /dev/null
+++ b/media-gfx/gif2png/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 type="project">
+ <email>graphics@gentoo.org</email>
+ <name>Gentoo Graphics Project</name>
+</maintainer>
+</pkgmetadata>
diff --git a/media-gfx/gifsicle/Manifest b/media-gfx/gifsicle/Manifest
new file mode 100644
index 000000000000..abbb958f8404
--- /dev/null
+++ b/media-gfx/gifsicle/Manifest
@@ -0,0 +1,7 @@
+DIST gifsicle-1.86.tar.gz 563638 SHA256 b0046d5e619240de00a6401e0056843cd57006f674e2babe0e9013e0dcb47394 SHA512 d55609e5d71f63ec13c1eed6a9071d756f07c765d2496d468cc7291e3b9e29304be1c3a5b0e822d9dc2df29ac489bafca2650d226d5b3c51dad74dd22c725a13 WHIRLPOOL 90228030b3a75c284faa0dab42b88ce220d4bf229d17fe2b88de5af91eab4b80dfbb0fe090ce50d91a186076659e43185b27e9d176f9187966ff571d77295a34
+DIST gifsicle-1.90.tar.gz 571910 SHA256 2d73b096752d58fa604cea559199aa6f55b45a3ec833898f94ff7997d22b834d SHA512 a5fd815c3aa1388690199edc16c0d5c0c32257cefd1cf8a1b660024b8e2324a6b4a54e19013984f905549df42d7719cdb1a875979b77729723f70d8e43f9bab7 WHIRLPOOL 9578a498e8e0d40e8e47b507121cfda15b1bbf7f338a56826b620bd9d8f476c1a5999db2ccf13784133acbf96ecc9dd70b39652b2c28270f93f68e16f8c1a038
+EBUILD gifsicle-1.86.ebuild 650 SHA256 dd0d15290c78dfe4767b46f58d8f24147afc2107b748932893583d0e0262e6a5 SHA512 ab68e4ee5e3897296eea9f9cec3207c2f2ef79559d7fbeaa900e5f00e2d7a85840b57077242dcff9f370ee8d6438ede748de8d10ae92a5542a92cf0b897b0bd2 WHIRLPOOL ac1254121013e07c87f142547c19c7a5ecd57e4b37db9eac36ea21ccaf8c1110b6b307806f9fe57ca8120498dab75ce10b56f14b8f1b96500e628c0ab1700cc9
+EBUILD gifsicle-1.90.ebuild 624 SHA256 b9d20afc226768e36fbcbbfb4ab27c22b7516ec4999321b492d2faf44642bfee SHA512 6df0f3e5415f01684a563dc95cd66b9a6db704f4de6406a0b7bc98f90a6e99d8be9361d485f7b51e1837015edb4076d4b34396a68addae2bae2a21b4af02928b WHIRLPOOL ad2bb9b3a95df9b154898c64bd2232ea923d42c5a576bcc8d5eeca8ff65e9978df5e847be43bbe37dbbc56388b900f514b66ef007b043b26412526e4ef959c6e
+MISC ChangeLog 2745 SHA256 716f36ad05e67632c2c3b30a38fd1634424ccae5a213a25ea1d84b97bf376a7f SHA512 1eb2080fb2a721ac31238d9a137658841b13bab679873c5d796257143fc306afe65d5f223ec705ba44adcef98aac7139dc4c13a83630ba1ef7ee052d67056b93 WHIRLPOOL 755d1c0bf7e46807ddfdb1a55d544359ce6b023f8084e84b6857ab15b5e53bba4621105098d8fb6717e4a29f7b06227c918c496b442993d3bb6c029fd5402eef
+MISC ChangeLog-2015 6814 SHA256 44cc8f203b24fd184ee1ad8c27a56dbf8c0c3589d30de515bacdd285e53ccea8 SHA512 fb733acc049062b282fc427a32d677b2f92b45a32e574f3bcfb0ae64e7b7b34aedc3cfe24c81cf607a9e3b1205a1674859fb00aced21686101922304af11ac90 WHIRLPOOL b2d8ecbd3f1d18a322881f473e1de023beb744eb4109c1e3c0d3ab9b65278a4a8d0d4c0663408234ede2c49cf7fba9469636bfc6e68a349accb27ce6c6836a88
+MISC metadata.xml 255 SHA256 3e7137870fc49956d79719e3dfe029775cbaaa097e85748c139713c46fcd1798 SHA512 b7bc93530a1726c2d4dfbc71ae29cfbb57712fd9fdd2e76fd52f35ab4368cba0497b50145d1527a3b79e465d459a380821bb1371a01c2e915dc9adc6c7fafd5f WHIRLPOOL 392188d7e069f1720be9329edfb31b11b176bf0c411023b2ceeaeabef1cacf842d70657a2a14ac2ddabbdad70a304275f3b587e9bcdfe77be63a0092e370252c
diff --git a/media-gfx/gifsicle/gifsicle-1.86.ebuild b/media-gfx/gifsicle/gifsicle-1.86.ebuild
new file mode 100644
index 000000000000..5d14f6a42a12
--- /dev/null
+++ b/media-gfx/gifsicle/gifsicle-1.86.ebuild
@@ -0,0 +1,24 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+DESCRIPTION="Create, manipulate, and optimize GIF images and animations"
+HOMEPAGE="https://www.lcdf.org/~eddietwo/gifsicle/ https://github.com/kohler/gifsicle"
+SRC_URI="https://www.lcdf.org/~eddietwo/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2 MIT"
+SLOT="0"
+KEYWORDS="~alpha amd64 ppc ~ppc64 ~sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
+IUSE="X"
+
+RDEPEND="X? ( x11-libs/libX11 x11-libs/libXt )"
+DEPEND="${RDEPEND}
+ X? ( x11-proto/xproto )"
+
+src_configure() {
+ local myconf
+ use X || myconf='--disable-gifview'
+
+ econf ${myconf}
+}
diff --git a/media-gfx/gifsicle/gifsicle-1.90.ebuild b/media-gfx/gifsicle/gifsicle-1.90.ebuild
new file mode 100644
index 000000000000..1787353501e5
--- /dev/null
+++ b/media-gfx/gifsicle/gifsicle-1.90.ebuild
@@ -0,0 +1,21 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DESCRIPTION="Create, manipulate, and optimize GIF images and animations"
+HOMEPAGE="https://www.lcdf.org/~eddietwo/gifsicle/ https://github.com/kohler/gifsicle"
+SRC_URI="https://www.lcdf.org/~eddietwo/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2 MIT"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
+IUSE="X"
+
+RDEPEND="X? ( x11-libs/libX11 x11-libs/libXt )"
+DEPEND="${RDEPEND}
+ X? ( x11-proto/xproto )"
+
+src_configure() {
+ econf $(usex X "" "--disable-gifview")
+}
diff --git a/media-gfx/gifsicle/metadata.xml b/media-gfx/gifsicle/metadata.xml
new file mode 100644
index 000000000000..19bf1be2581e
--- /dev/null
+++ b/media-gfx/gifsicle/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 type="project">
+ <email>graphics@gentoo.org</email>
+ <name>Gentoo Graphics Project</name>
+</maintainer>
+</pkgmetadata>
diff --git a/media-gfx/gimageview/Manifest b/media-gfx/gimageview/Manifest
new file mode 100644
index 000000000000..b8176498e6ed
--- /dev/null
+++ b/media-gfx/gimageview/Manifest
@@ -0,0 +1,10 @@
+AUX gimageview-0.2.27-gtk12_fix.diff 272 SHA256 4aae464b117de3f86d4280a9dc25c24dfb987e08cbe7bc59fb16c5c1d37abd71 SHA512 97816136a63d7e1e08ff7368e8349879e723327979deb1ff11d5d87ea58ea01d9ffdc2da52a1e7425f486b1d40029699d498d548234e11f54066c67ff46de1d6 WHIRLPOOL af0495f924254bed29416315c5777bad3b3f0d501f5c9290e2fdda3586b87e816d4f0bff7b3e2f21bdac2dcb01bab0ef02b0a9dd28847942e98913992e7bd5dd
+AUX gimageview-0.2.27-gtk2.patch 624 SHA256 db861067fd6a67ce47f1065fe99ed0ebf8ad0d10742bbd4ff2322fadc5d53991 SHA512 3122a5eea7b3eaba5d896ae4258e7b608c4812db9374653eb2aa2776478b01d1edb82e5f322588e1476775e65dd719c1687b31a6981aebaad48483b9957b0c4e WHIRLPOOL 33d49fa18bdb4cf3bd546921b8a61b8b812bf974959943bf72de5b9c03957db8ff1f72b63b45f8a1a58ae9c3e4d89f3d6dbc86219183b53110eec5e5ef3769fd
+AUX gimageview-0.2.27-libpng15.patch 601 SHA256 04b468f51bb6b806a2d46860a2bc53eda7bcb49590d918482498ccbde8b9461f SHA512 390bf474bbf300cbd9c18ec3475769185f16226dfdb9389f62cd6e60bf33529009de68ee8bf387f690fc6a9e87f315f022f4f0b2fb6ef6ebfcdf49d96b5c49f9 WHIRLPOOL 1bbf3132e389f269cac5fa8f6263abcbba59c9f3f35f152a66732886d20397adf5511bfc38b32a876a69e700da0544813dd7472596f465cb61eb202212fbc51c
+AUX gimageview-0.2.27-sort_fix.diff 714 SHA256 fbb4e239b49daad78d27d5cd6b029ab1f68813fe4ca07be090a45206a1c72100 SHA512 ab3ce0f2bb9b4c1d52d05c78db4d42fa2e77e7a5d7655b82a036279c9049de609dedebdea8422596ebf91080e91ac6ce42babb4aaf22877ec3dc808cfc37a3ea WHIRLPOOL 50dc28ccd9236b46800b839b117079ca1d42ab9cda72ccc5f1c80182f1e9673c7cda2de200d3bd2b27cd7424dbabd99df334cc048dcdb471d84b28d2b59922c7
+DIST gimageview-0.2.27.tar.gz 1348286 SHA256 4bc899d734e9833478c1ae8fc6d9db0971d812aeefe6f1295b5edbd4e4639060 SHA512 36ac16f4fffcde34b608da35aa089d40225129a2f9dcd70cb024713738842600c7231522093b3d0bf5a7c4c4dcb7ba4b14d550e417e8b52030d43d4b51145220 WHIRLPOOL 61b53e811058447d74970666cb80830aeaa3da5f0d9298512bb34e5b4802101f00858ed6526b9b50a98f8528875fe9cbefc1b53500eaca7933c190e11f224e67
+EBUILD gimageview-0.2.27-r3.ebuild 1623 SHA256 6433d38de39735e54853130f11b6d0cb621d2c6c92a52a187a4d839653157c9d SHA512 5d7701d23df20be20c0d244e478f3a12b989cf37231c75fef18484a21306c1aa96a1263ef93eda451ce82f67d9dec20690526072948cf99527e546a95b58dde3 WHIRLPOOL 81c0ed94131dba96f7ccb8afa2a40d979cd1e687a3ad98b68f9523defb745d296d12d9b7734d9492300da5920e11acad147a4c03c5669d64d970963a27e9900f
+EBUILD gimageview-0.2.27-r4.ebuild 1736 SHA256 1e276cd93f4e46432f71e308e65102da58982799ff1caafc5e9180993b12f0ef SHA512 616223d1fdf7d96d40ec50c60cefc4dedefc775facbda6e1691b6b3cd9c5268c2853032045b87a3d878d4135e9ca842b2fbc3f962f67336b97e85e6882663c3a WHIRLPOOL 97be14cf1cb5cd9528700f4a5d666a5f36d28b356ed4e8cc6763d42236aa1b56d7e9961a9970ba5ae4d9f31fc75896ac7f2ae5cbe5465dde9f2f174abbb8fa8c
+MISC ChangeLog 2612 SHA256 a213db52e45337b80d17e6def70c368294caa1d2d4cecf0f062847cf554ac24b SHA512 1a2dd9468cba840f804d1a0492e46d998d9ce071c06007294c0afc870e5f42acedbd65b482f1b8413d39fd92f8f1f2948d0734ca07ab18aeef30232c1a23a03e WHIRLPOOL 960bdd556ae6b6d1d3341ff44ddcabb98770569361d9abfc67e2545f3d3db4e5ad00f15014f3f3e3538419e3c18770b45301d53c7de9c20cd2c7f1675af3d652
+MISC ChangeLog-2015 4622 SHA256 9208a36749c851a35bcbfcf704842f4aad60d9338b032dbefcf235ed5cde968f SHA512 2f08060debb174419dacabdbd93dc6f5f5f90aae517f18d7b219167f9c5d3249351f8cdd39d05659f6a0737569c61b3cda6bef34a6f397ca0fea0cace5ed230f WHIRLPOOL 9301f85011fb8d191aaccf4f3fd86e65b993d5e55bff282ead7979bc10327af9da1f008bdbdf39de60d14f7b90528394067db5ae84c1b200a9b4116c716de1a1
+MISC metadata.xml 340 SHA256 1abd0259f3ef917c5a8fb7cc5856ee51d31659fb3bda751f2a826a424df87491 SHA512 74355232aa8f1b9102de0ef61115dc39ac98890ddc93d9c0a595338bc2d23eb455c2db8fffa150c548ed5e8caa73817c046463c6190bce46761b7e17e66d594f WHIRLPOOL bf28fd722a89d4e1dc2249e8cb024e6307cb4972e5f0c8fcf2c4755475bc84f94b3a72a538c197c1c4b49633e6f5dc4a71909982d92aa173b72f657115de2bad
diff --git a/media-gfx/gimageview/files/gimageview-0.2.27-gtk12_fix.diff b/media-gfx/gimageview/files/gimageview-0.2.27-gtk12_fix.diff
new file mode 100644
index 000000000000..9b82d2f6479e
--- /dev/null
+++ b/media-gfx/gimageview/files/gimageview-0.2.27-gtk12_fix.diff
@@ -0,0 +1,11 @@
+--- src/gimv_thumb_win.c
++++ src/gimv_thumb_win.c
+@@ -2542,7 +2542,7 @@
+ {
+ if (tw && tw->priv)
+ tw->priv->slideshow_selected_only
+- = gtk_check_menu_item_get_active (GTK_CHECK_MENU_ITEM (widget));
++ = GTK_CHECK_MENU_ITEM (widget)->active;
+ }
+
+
diff --git a/media-gfx/gimageview/files/gimageview-0.2.27-gtk2.patch b/media-gfx/gimageview/files/gimageview-0.2.27-gtk2.patch
new file mode 100644
index 000000000000..7ab7ebb03212
--- /dev/null
+++ b/media-gfx/gimageview/files/gimageview-0.2.27-gtk2.patch
@@ -0,0 +1,24 @@
+--- src/gimv_cell_pixmap.c
++++ src/gimv_cell_pixmap.c
+@@ -25,10 +25,6 @@
+ * Copyright (C) 2000 Red Hat, Inc., Jonathan Blandford <jrb@redhat.com>
+ */
+
+-#ifndef GTK_DISABLE_DEPRECATED
+-# define GTK_DISABLE_DEPRECATED
+-#endif /* GTK_DISABLE_DEPRECATED */
+-
+ #include "gimv_cell_pixmap.h"
+
+ #if (GTK_MAJOR_VERSION >= 2)
+--- src/gimv_image.c
++++ src/gimv_image.c
+@@ -35,7 +35,7 @@
+ #include "gimv_io.h"
+ #include "gimv_image_saver.h"
+
+-#if defined (HAVE_GDK_PIXBUF)
++#if defined (HAVE_GDK_PIXBUF) || defined (USE_GTK2)
+ # include <gdk-pixbuf/gdk-pixbuf.h>
+ # include "pixbuf_utils.h"
+ typedef GdkPixbuf GimvRawImage;
diff --git a/media-gfx/gimageview/files/gimageview-0.2.27-libpng15.patch b/media-gfx/gimageview/files/gimageview-0.2.27-libpng15.patch
new file mode 100644
index 000000000000..2df9712869e1
--- /dev/null
+++ b/media-gfx/gimageview/files/gimageview-0.2.27-libpng15.patch
@@ -0,0 +1,24 @@
+http://bugs.gentoo.org/361941
+
+--- plugins/image_loader/png_loader.c
++++ plugins/image_loader/png_loader.c
+@@ -255,7 +255,7 @@
+ return NULL;
+ }
+
+- if (setjmp (png_ptr->jmpbuf)) goto ERROR;
++ if (setjmp (png_jmpbuf(png_ptr))) goto ERROR;
+
+ context.gio = gio;
+ context.bytes_read = 0;
+--- plugins/image_saver/png_saver.c
++++ plugins/image_saver/png_saver.c
+@@ -130,7 +130,7 @@
+ return FALSE;
+ }
+
+- if (setjmp (png_ptr->jmpbuf)) {
++ if (setjmp (png_jmpbuf(png_ptr))) {
+ png_destroy_write_struct (&png_ptr, &info_ptr);
+ fclose (handle);
+ return FALSE;
diff --git a/media-gfx/gimageview/files/gimageview-0.2.27-sort_fix.diff b/media-gfx/gimageview/files/gimageview-0.2.27-sort_fix.diff
new file mode 100644
index 000000000000..d65b3a07ad56
--- /dev/null
+++ b/media-gfx/gimageview/files/gimageview-0.2.27-sort_fix.diff
@@ -0,0 +1,30 @@
+--- src/gimv_thumb_view.c
++++ src/gimv_thumb_view.c
+@@ -1533,9 +1533,13 @@
+
+ gimv_thumb_view_sort_data (tv);
+
++#if 0
+ for (node = new_thumb_list; node; node = g_list_next (node))
+ tv->vfuncs->insert_thumb (tv, node->data, tv->summary_mode);
+ g_list_free(new_thumb_list);
++#endif
++
++ gimv_thumb_view_set_widget (tv, tv->tw, tv->container, tv->summary_mode);
+ }
+
+
+@@ -1577,9 +1581,13 @@
+
+ gimv_thumb_view_sort_data (tv);
+
++#if 0
+ for (node = new_thumb_list; node; node = g_list_next (node))
+ tv->vfuncs->insert_thumb (tv, node->data, tv->summary_mode);
+ g_list_free(new_thumb_list);
++#endif
++
++ gimv_thumb_view_set_widget (tv, tv->tw, tv->container, tv->summary_mode);
+ }
+
+
diff --git a/media-gfx/gimageview/gimageview-0.2.27-r3.ebuild b/media-gfx/gimageview/gimageview-0.2.27-r3.ebuild
new file mode 100644
index 000000000000..9e95bf3243a7
--- /dev/null
+++ b/media-gfx/gimageview/gimageview-0.2.27-r3.ebuild
@@ -0,0 +1,67 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# TODO: USE xine could be restored if support for xine-lib-1.2.x
+# is patched in wrt #397639
+
+EAPI=4
+inherit eutils libtool
+
+DESCRIPTION="Powerful GTK+ based image & movie viewer"
+HOMEPAGE="http://gtkmmviewer.sourceforge.net/"
+SRC_URI="mirror://sourceforge/gtkmmviewer/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ~hppa ppc ppc64 x86"
+IUSE="mng nls mplayer svg wmf" #xine
+
+RDEPEND="app-arch/bzip2
+ x11-libs/gtk+:2
+ >=media-libs/libpng-1.2:0
+ x11-libs/libXinerama
+ wmf? ( >=media-libs/libwmf-0.2.8 )
+ mng? ( media-libs/libmng )
+ svg? ( gnome-base/librsvg )
+ mplayer? ( media-video/mplayer )"
+#xine? ( media-libs/xine-lib )
+DEPEND="${RDEPEND}
+ nls? ( sys-devel/gettext )
+ virtual/pkgconfig"
+
+src_prepare() {
+ # link gimv executable against -lm for floor() and pow()
+ sed -i -e 's/$(gimv_LDADD)/& -lm/' src/Makefile.in || die #417995
+
+ epatch \
+ "${FILESDIR}"/${P}-sort_fix.diff \
+ "${FILESDIR}"/${P}-gtk12_fix.diff \
+ "${FILESDIR}"/${P}-gtk2.patch \
+ "${FILESDIR}"/${P}-libpng15.patch
+
+ # desktop-file-validate
+ sed -i -e '/^Term/s:0:false:' -e '/^Icon/s:.png::' etc/${PN}.desktop.in || die
+
+ elibtoolize
+}
+
+src_configure() {
+ econf \
+ --disable-imlib \
+ $(use_enable nls) \
+ --enable-splash \
+ $(use_enable mplayer) \
+ --with-gtk2 \
+ $(use_with mng libmng) \
+ $(use_with svg librsvg) \
+ $(use_with wmf libwmf) \
+ --without-xine
+}
+
+src_install() {
+ einstall \
+ desktopdir="${D}"usr/share/applications \
+ gimv_docdir="${D}"usr/share/doc/${PF}
+
+ find "${ED}"usr -name '*.la' -exec rm -f {} +
+}
diff --git a/media-gfx/gimageview/gimageview-0.2.27-r4.ebuild b/media-gfx/gimageview/gimageview-0.2.27-r4.ebuild
new file mode 100644
index 000000000000..58855443767f
--- /dev/null
+++ b/media-gfx/gimageview/gimageview-0.2.27-r4.ebuild
@@ -0,0 +1,76 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# TODO: USE xine could be restored if support for xine-lib-1.2.x
+# is patched in wrt #397639
+
+EAPI=6
+
+inherit eutils libtool
+
+DESCRIPTION="Powerful GTK+ based image & movie viewer"
+HOMEPAGE="http://gtkmmviewer.sourceforge.net/"
+SRC_URI="mirror://sourceforge/gtkmmviewer/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~hppa ppc ppc64 ~x86"
+IUSE="mng nls mplayer svg wmf" #xine
+
+RDEPEND="app-arch/bzip2
+ x11-libs/gtk+:2
+ >=media-libs/libpng-1.2:0=
+ x11-libs/libXinerama
+ wmf? ( >=media-libs/libwmf-0.2.8 )
+ mng? ( media-libs/libmng:= )
+ svg? ( gnome-base/librsvg )
+ mplayer? ( media-video/mplayer )"
+#xine? ( media-libs/xine-lib )
+DEPEND="${RDEPEND}
+ nls? ( sys-devel/gettext )
+ virtual/pkgconfig"
+
+src_prepare() {
+ # link gimv executable against -lm for floor() and pow()
+ sed -i -e 's/$(gimv_LDADD)/& -lm/' src/Makefile.in || die #417995
+
+ epatch \
+ "${FILESDIR}"/${P}-sort_fix.diff \
+ "${FILESDIR}"/${P}-gtk12_fix.diff \
+ "${FILESDIR}"/${P}-gtk2.patch \
+ "${FILESDIR}"/${P}-libpng15.patch
+
+ # desktop-file-validate
+ sed -i \
+ -e '/^Term/s:0:false:' \
+ -e '/^Icon/s:.png::' \
+ etc/${PN}.desktop.in || die
+
+ eapply_user
+ elibtoolize
+}
+
+src_configure() {
+ econf \
+ --disable-imlib \
+ $(use_enable nls) \
+ --enable-splash \
+ $(use_enable mplayer) \
+ --with-gtk2 \
+ $(use_with mng libmng) \
+ $(use_with svg librsvg) \
+ $(use_with wmf libwmf) \
+ --without-xine
+}
+
+src_install() {
+ emake \
+ bindir="${ED}usr/bin" \
+ datadir="${ED}usr/share" \
+ desktopdir="${ED}usr/share/applications" \
+ gimv_docdir="${ED}usr/share/doc/${PF}" \
+ libdir="${ED}usr/$(get_libdir)" \
+ install
+
+ prune_libtool_files --all
+}
diff --git a/media-gfx/gimageview/metadata.xml b/media-gfx/gimageview/metadata.xml
new file mode 100644
index 000000000000..9e89a41837a8
--- /dev/null
+++ b/media-gfx/gimageview/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="sourceforge">gtkmmviewer</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/media-gfx/gimmage/Manifest b/media-gfx/gimmage/Manifest
new file mode 100644
index 000000000000..36e8d68289a5
--- /dev/null
+++ b/media-gfx/gimmage/Manifest
@@ -0,0 +1,9 @@
+AUX gimmage-0.2.3-as-needed.patch 454 SHA256 fe3cfc536cdf8feacad22642f2a12f8389123f50a110a4c5ea06a1da57bdc681 SHA512 5f1a6b464ce58d98e500dad063b7fc88e12ae522b4ece3239ebfcc5205fd415422f3a9e4ca422a417aa67afb629d2eb303e069e7ea3f2206cb091219a3c75896 WHIRLPOOL d1d0ec0e2c6d392029674dd9cc851568e88513d0a1d7f4520e5603bddd747f19a255e8462a15408caa272ac17019ce23dae16a8c74b70c476e7a611face6c9db
+AUX gimmage-0.2.3-desktop-entry.patch 950 SHA256 05df00da5d4e17fbced4b100493047a502ba088b1370a5c3fa5232ddd7e226ad SHA512 3ae966b8008992fe0d3ec4daf46a5760e785d20dce4c382a3368c96079a4bd929773996c6f4056ec3834e5dbc7a6c83fccdaee8e1b04e003b0cae38d8c05a19e WHIRLPOOL e9de5e17aeaf7af2418b71a0810366054b64dfe6f8a4acbc29eba949d90ad64b22d632d4f2bdd49bf0940c3750639a122393a87916e2a3d80cdad8a8a242c7bc
+AUX gimmage-0.2.3-gcc43.patch 304 SHA256 65f9f65c8cdf8d25ac397e752722e2c537c95c025f742c8f9810d867cb7a3e3c SHA512 bd8b62588904ea4000b5b2fc846a29eae3fe48dbf22e91564e2015f263f5b47df580785fdc64d1632a6281a798c6a4d11468a3fd30eab3a6d7a7b30bdd31c3f0 WHIRLPOOL d16a184c1b426110009121cdef2b61e5c6a71475abe9c0dd58f952663531f0d3d4cf623a79579df6c53cff6c58ab57c79cb3761cc9e13f122f48c67ddf182b1e
+AUX gimmage-0.2.3-gcc47.patch 384 SHA256 fa7b885535f8ac994705a71289f096162461fc8d520dedb4d6661939c483aaed SHA512 b7fae449c2d5ebdfae415df0ad9615fa4832998170dfcfd87110e45a6041b91216d8b3e91ab056929183fd0ff6cf9e9ab154c387299b3fe1d41f6e7952062459 WHIRLPOOL 57bd3cd3afccf40c9a3957b01ced04359674124a15bada5b120ccbd4a5a9714af2c0ba6de1738603f506387fe12e66775e2dcdef841ae2f07704da129da61fd8
+DIST gimmage-0.2.3.tar.gz 193777 SHA256 3d5ce3c3fd22efc9fd930e97e33e2c13a755e0a9cf099d12d5f7ecf92cab907b SHA512 ff8fdf860d4712502e6e8656a14e5327a5b89af49f312e54de5f0e80cd6e406214a61228c79ad643c2640268d5eacfd760c83acbebdc7fa9b6e7c094728be167 WHIRLPOOL 7d1a9485da568baec8c430dc5a9fc12eb7dd8943fa17e5fbdc00ea4334548f1f42cad1690c6f171ecb682853a86d79e0e8324e49472c5ccbd8831a800d863792
+EBUILD gimmage-0.2.3-r1.ebuild 845 SHA256 9f2e2b957d2e8b22b9079a7acd089dbfd35d172c9eccc96676a419828d671a99 SHA512 1418bc3cef0cb772e3514a7bad1041e7ee768d62b39e7b7ea4966d5cb4848ce50bf921b932d8d1509575cb4c0272631c499a65c684f54e392531732b5d3c9793 WHIRLPOOL c66e9abe234a98de899e3843838c914db367d1a2c15aad83722d19d48f8dbc9b94d0d46cec0222a3ea7f0f3d6e628f968ceda9287df7041d46d0d2779dc9b658
+MISC ChangeLog 3865 SHA256 393810f2bb505b93f3e34680c5b73d6c2fdbf5243de982bd5b9cf0350a54b39d SHA512 5107d118b6e69ff4489b44cc7eac8756bd4aba6e6cefa76814c707e727bbf8891d2b2e47dce61d8be6f67acdedb5daaaec74164fd36c7e0dd1f3eeb3e7aed2c7 WHIRLPOOL 9f52ef8832746c7819a72486bd0ef2367005f621a7ac2f6987b66a63d123a1a5f0510912067f3ea0d15404734962ba237b42c0747f9ddf73d3f6b19d56f64118
+MISC ChangeLog-2015 2485 SHA256 eebed760566fe7d497656cd5b296b8670cfc6c827de674ec559e42d096cade07 SHA512 1628b4a8f33d38332af9b8bbb757912ecc8e4cb2ddfe6e946a77e6d413ab2d87b0904714214a39aec12c2cbb2905a58ace7337f41d65de25f073fae4430684ac WHIRLPOOL 1f7a57c0178d7f7c08d6dae6fcb7eb23c3ccf866f27710a170e4b492400b5afc7601175b8a6674f0ef5331a1c37e9f70ae93de9f8537e67f876ee513d9000349
+MISC metadata.xml 427 SHA256 3cf14204130ca5e53b7f9ebcaa7bde8ec5e54034da514d1b87798e24cf085eca SHA512 a77c638e65d2026b56ce1868dea6d2045c331cb0bad022978a954ade85a5e5131c67d538f5c9e0e67292c22de117e0272e0b04f49f3fdfe76c7b19fc66c73265 WHIRLPOOL 34c298833a08a5326d7a4476adfd7edd1d7dfcc554f9af11add7f1020b261af13e99626b70128a4378e61d15efdde70df5ecf8eb6067c88359e117e108d7153a
diff --git a/media-gfx/gimmage/files/gimmage-0.2.3-as-needed.patch b/media-gfx/gimmage/files/gimmage-0.2.3-as-needed.patch
new file mode 100644
index 000000000000..2e24078bd85d
--- /dev/null
+++ b/media-gfx/gimmage/files/gimmage-0.2.3-as-needed.patch
@@ -0,0 +1,11 @@
+diff -ru gimmage-0.2.3.orig/src/Makefile.am gimmage-0.2.3/src/Makefile.am
+--- gimmage-0.2.3.orig/src/Makefile.am 2008-11-30 18:43:28.000000000 +0100
++++ gimmage-0.2.3/src/Makefile.am 2008-11-30 18:43:40.000000000 +0100
+@@ -7,5 +7,5 @@
+ SaveErrorDialog.cpp SaveErrorDialog.h \
+ main.cpp defines.h
+
+-AM_CXXFLAGS = @CXXFLAGS@ $(DEPS_CFLAGS) -lcurl -lmagic
+-LDADD = $(DEPS_LIBS)
++AM_CXXFLAGS = @CXXFLAGS@ $(DEPS_CFLAGS)
++LDADD = $(DEPS_LIBS) -lcurl -lmagic
diff --git a/media-gfx/gimmage/files/gimmage-0.2.3-desktop-entry.patch b/media-gfx/gimmage/files/gimmage-0.2.3-desktop-entry.patch
new file mode 100644
index 000000000000..c80b43d0b293
--- /dev/null
+++ b/media-gfx/gimmage/files/gimmage-0.2.3-desktop-entry.patch
@@ -0,0 +1,16 @@
+diff -ur gimmage-0.2.3.orig/gimmage.desktop.in gimmage-0.2.3/gimmage.desktop.in
+--- gimmage-0.2.3.orig/gimmage.desktop.in 2007-06-27 00:22:57.000000000 +0300
++++ gimmage-0.2.3/gimmage.desktop.in 2010-08-06 20:42:55.000000000 +0300
+@@ -1,8 +1,8 @@
+ [Desktop Entry]
+ Name=gimmage
+ Exec=@prefix@/bin/gimmage
+-Icon=gimmage.png
++Icon=gimmage
+ Type=Application
+-Categories=Application;Graphics;
++Categories=Graphics;
+ Comment=A simple image viewer.
+-MimeType=image/bmp;image/gif;image/jpeg;image/jpg;image/png;image/tiff;image/x-bmp;image/x-pcx;image/x-tga;image/x-portable-pixmap;image/x-portable-bitmap;image/x-targa;image/x-portable-greymap;application/pcx;image/svg+xml;image/svg-xml
+\ No newline at end of file
++MimeType=image/bmp;image/gif;image/jpeg;image/jpg;image/png;image/tiff;image/x-bmp;image/x-pcx;image/x-tga;image/x-portable-pixmap;image/x-portable-bitmap;image/x-targa;image/x-portable-greymap;application/pcx;image/svg+xml;image/svg-xml;
diff --git a/media-gfx/gimmage/files/gimmage-0.2.3-gcc43.patch b/media-gfx/gimmage/files/gimmage-0.2.3-gcc43.patch
new file mode 100644
index 000000000000..7dd6686c1314
--- /dev/null
+++ b/media-gfx/gimmage/files/gimmage-0.2.3-gcc43.patch
@@ -0,0 +1,11 @@
+--- gimmage-0.2.3/src/FileManager.cpp~ 2007-06-26 15:51:15.000000000 +0200
++++ gimmage-0.2.3/src/FileManager.cpp 2008-02-16 13:58:34.000000000 +0100
+@@ -21,6 +21,8 @@
+
+ // we make extensive use of get_current_dir_name() from Glib
+
++#include <cstring>
++
+ #include "FileManager.h"
+ #include "defines.h"
+
diff --git a/media-gfx/gimmage/files/gimmage-0.2.3-gcc47.patch b/media-gfx/gimmage/files/gimmage-0.2.3-gcc47.patch
new file mode 100644
index 000000000000..bc39028cf161
--- /dev/null
+++ b/media-gfx/gimmage/files/gimmage-0.2.3-gcc47.patch
@@ -0,0 +1,19 @@
+https://bugs.gentoo.org/422453
+
+error: 'get_current_dir_name' was not declared in this scope
+
+
+ src/FileManager.cpp | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+--- a/src/FileManager.cpp
++++ b/src/FileManager.cpp
+@@ -30,7 +30,7 @@ Copyright 2006 Bartek Kostrzewa
+
+ extern "C" {
+ #include <libintl.h>
+-// #include <unistd.h>
++#include <unistd.h>
+ #include <sys/stat.h>
+ }
+
diff --git a/media-gfx/gimmage/gimmage-0.2.3-r1.ebuild b/media-gfx/gimmage/gimmage-0.2.3-r1.ebuild
new file mode 100644
index 000000000000..9cad305b05b6
--- /dev/null
+++ b/media-gfx/gimmage/gimmage-0.2.3-r1.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit autotools eutils flag-o-matic
+
+DESCRIPTION="A slim GTK-based image browser"
+HOMEPAGE="https://sourceforge.net/projects/gimmage.berlios/"
+SRC_URI="mirror://sourceforge/project/${PN}.berlios/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ~ppc x86"
+IUSE="debug"
+
+RDEPEND="
+ dev-cpp/cairomm
+ >=dev-cpp/gtkmm-2.6.2:2.4
+ net-misc/curl
+ sys-apps/file"
+DEPEND="${RDEPEND}
+ sys-devel/gettext
+ virtual/pkgconfig"
+
+src_prepare() {
+ epatch \
+ "${FILESDIR}"/${P}-gcc43.patch \
+ "${FILESDIR}"/${P}-as-needed.patch \
+ "${FILESDIR}"/${P}-desktop-entry.patch \
+ "${FILESDIR}"/${P}-gcc47.patch
+ eautoreconf
+}
+
+src_configure() {
+ local myconf
+ use debug && myconf="--enable-debug"
+
+ append-cxxflags -std=c++11
+ econf ${myconf}
+}
diff --git a/media-gfx/gimmage/metadata.xml b/media-gfx/gimmage/metadata.xml
new file mode 100644
index 000000000000..64b2e5e3a9e1
--- /dev/null
+++ b/media-gfx/gimmage/metadata.xml
@@ -0,0 +1,14 @@
+<?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>
+ <longdescription lang="en">
+ gimmage: the gtkmm image viewer
+ </longdescription>
+ <upstream>
+ <remote-id type="sourceforge">gimmage.berlios</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/media-gfx/gimp-arrow-brushes/Manifest b/media-gfx/gimp-arrow-brushes/Manifest
new file mode 100644
index 000000000000..62b147f7c919
--- /dev/null
+++ b/media-gfx/gimp-arrow-brushes/Manifest
@@ -0,0 +1,13 @@
+DIST arrow_action.tar.bz2 200063 SHA256 8f8efc25459419a918f52c5daa56e8a70bdc757e5930d84ceb039526f6ec83d1 SHA512 1080cd8f38695b3c2aa06b49cb30b57b52fa2c1708e01fc78b0fdd3a96c39211aed61bbb1ec5b86cd10b2994218a0579b2cc0c4d818ca67de27b1d5c63afd58f WHIRLPOOL 6f65740f6f63430de4d1888c96af805e9344b80945e22916d51f758ce8ea549066efb473dfba91b71adf7716bf90273b3d0e50762ec1b2cc2f52838b03a359d9
+DIST arrow_brushes_BW_1.tar.bz2 10222 SHA256 10acd8eaefe63eca977238863438a03a785ba2986de3a908dc73728005e532dc SHA512 45dc1c2a0a1f4015e2e736c58bff347c1b2f0fe45419110db7b29c672512a05155a1d2737ee59895adfd2c2f5fbf40d081a3fae8a4f74ce50c7c71ecabf040c7 WHIRLPOOL 301dd57fe62299184df3030b78c33d2a65af238bf5a99a236bddab82342d98f3a4ecef22c2dcdaa12762b397e5f58e6b796ea0813b9ca0e904b6c33439fd63ff
+DIST arrow_brushes_BW_2.tar.bz2 8498 SHA256 41394917472ee5efca14d6bfea3559bdc2cc7f41aae0e71501333c50ad77d3bb SHA512 02ef0b306c69bb02442f7982a45507f252a1b1bb57353717faed259a93869d4c82ad90e4a3ca3195ca10562609c9fe06092b89b189e7ee96bc09bac73a8ac02e WHIRLPOOL 66a5a6e323b90f2531502543442fd90435f0b79ae7de91fede8a544deb05d622562445596270d96d0f8284b89a2f5016ee1458341244a249cb89a7f6d97de872
+DIST arrow_brushes_black_gloss.tar.bz2 35106 SHA256 3402da70b1eda195f7541ee250298446977d560482fbf7b22149567a0b6f84cc SHA512 1cabddd3745633f574abad2eb114eae6baeb421b3e3eded3ae26c5fa06137e6b1640abd35c1189c2518da2ed770038f2b2d38faef35b4b196b4359aa62cf0b40 WHIRLPOOL 92e4db248a1fb9d6846e1a2287036e80c07875e7f935ea50b33a43d2f7597c886ff2d691eef4062fbbca298aab8bc768dee2557b9d8ddf1ca651ce67de224146
+DIST arrow_brushes_color_1.tar.bz2 6911 SHA256 3c4e2d47a65ce1fd1b2374593ed457c9943046fc8024ea1e3d56d4488d2fd272 SHA512 f656ce8a78122a041f0e3fbb1a2239e3cac71e5381a2301dacba2e72daf3ef8ff5a885979aefd5a657e5395a816b6a6a97cd0ca15c866a391f86a13d9e682c7d WHIRLPOOL 603fe3071145ca8d2f57b33b19d4c54ba6a504aedb61d43b2100cefdcc4be91c3755291c4d0db1738bd91baf392bc5980c68975b2dcaff628acdc8f6c13d1e8a
+DIST arrow_brushes_color_2.tar.bz2 33699 SHA256 b787c14fac6f347481bcdf34814b0f4bc423966d9a963c10d3eb879b57ec5cff SHA512 82ed728f812f667a37a966c91c3b7b8f95b42e449da615a92bf61c694e81930a6a9aed2b6bc49a01e81c91977152b041fa32d4de0bc23564337893e77def7080 WHIRLPOOL 722e3f2cab33b125c2fef802169db365c8ad6dccee58381caeed8fe46a4f652927160f7db16838d3c18a6dbed773197efb9d474b419b9bb0b07e122fb2a4b322
+DIST button_arrow_brushes.tar.bz2 35320 SHA256 0f53d8f2c87684cf78a2761fd1ae9aa35353535bcb1ee1b07109b573d0457a89 SHA512 54e36152f169240d5caeb6e5230c3398465b96522399044e39db2d204983decc48e0e6043d65c7647b4e46abeec24e8ac3470110541d2d38ae4e4ba44a023b21 WHIRLPOOL 71db72626cb18547ee5cb5f14e2246973ac3f0ae5129351e88897ae615c2dc5ced7138562009d2b11bda1963fdcf79fe2aaa88ec2423b80b78a7687f01623b23
+DIST cursor_brushes-1.0.tar.bz2 18272 SHA256 b18af5ee326bcf39ae08eacab7fd393d349985abd6aeead5eb4230756ed68b0a SHA512 e9fa944f9c210518c96929b6860c4234e9c7e69cada7fe85304043d5ef3118d40b3f90696057e28ab98cd4587d4aef8b150171863b5c1c1b51255b6cd23ad3ff WHIRLPOOL ce2bd82ad2bae590302babdc88883b24fce5afd406b69c4cf9cbfd5182126ac8bb01379237e01d269b23ad2a4abddae026b5f858193110216344ef1bed7b9dfb
+DIST hand_pointer_brushes.tar.bz2 19068 SHA256 703a37b79db6084b915aa535f55eaecb6d6387ee4c4e9a1f482ef9951fda5f6e SHA512 b072b58f7219057b682459b5b73d60e5cf26943436c1116dc4fb73076a32b02d0164f2f0506cb0cae4378c54bdfd2a66281c7fd42a7a6919afb19896e2193c34 WHIRLPOOL 2b1b65d7acc03546980b84e07ba348372959571c1b61517b0d41e6a6ef6f9a60d5d43bf0bb580e4569f2d86bf1e413cc60da247be68e26e4e7fe98362a319aba
+EBUILD gimp-arrow-brushes-20120122.ebuild 965 SHA256 afcca045f0aff8088b9f8248dfbf83c460eca3961fc552adccd3f37c38088f88 SHA512 3b793e9c7ae65ee2b05ace06a778cdd6dbb2b9e57c3c3be9a18415e25f2499dbf31df55c2e1365134540cae3bc65822e69580631f52464472d7e4785d019be2e WHIRLPOOL fc3e70490bd1d47fae27d48814f7976086ec9ed68038d3a5d3013ce6f7a84812bbf032f36b6c7a81f777786f1d29b7c64be91be26c379f9d50594c87c2a4a1cc
+MISC ChangeLog 2609 SHA256 00b2640a757ee9dc2bdd0b4c7ca044bd3e75881411203653c902691eda08f8b6 SHA512 8d0df8e0ac50ea42ccbc6447212c4757e95b24ae5c905d6db902a07ff4669cfbf6c42039c43e544fe84a59f0389247ec14bae4be7ec1e4c37929037e6b7a1771 WHIRLPOOL 22c430f72b00e5ef430bdbf7641905f46aaef50652594185ffc4651283cd1dd238be2da98650409172075508191722b7cbf79c90d91aeb9cf111fa6cf8e0563b
+MISC ChangeLog-2015 898 SHA256 abb83d58326772058a0f0bfc068bf7aeadb025969fc34fdca40909f0a58b72af SHA512 30efadc29a5c9f3c8a75fd59291142559348c4a0c912c0038942f979783f6b863bbec0f6fcf8dd3697976efe195341ea0ce81f33be842aded2063de1225f6eec WHIRLPOOL 95855851bddff3254f44b157d4cdf8f4124e9111849fa75d125652249f85d16dbb516fc026c7398477790c98b793ddc413ef7c82d209c925da5e96144dedf04c
+MISC metadata.xml 239 SHA256 a712e24a6753f11e79989f54afbe96fdd4f2992f1ee71e75622b3be915b4d78f SHA512 e2741d7308653b7fb13bf9b4af86c5525cea22e23e31925db40ef76a3f228ac5fe520bbf6a0c5b83565e2257e588acaa9a33cc55480138932446642cbbf15623 WHIRLPOOL c086ac59403178d68159ad470a7223dbc0ccfa028fc6f501b5827d4ea1194058dfbc7db08e770e9da9ef06039c31f80165e023c728a59c698aab375dccd85cce
diff --git a/media-gfx/gimp-arrow-brushes/gimp-arrow-brushes-20120122.ebuild b/media-gfx/gimp-arrow-brushes/gimp-arrow-brushes-20120122.ebuild
new file mode 100644
index 000000000000..e8fd55d84d65
--- /dev/null
+++ b/media-gfx/gimp-arrow-brushes/gimp-arrow-brushes-20120122.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="4"
+
+DESCRIPTION="Brushes for GIMP including the styles arrow, handpointer, button arrow and cursor"
+HOMEPAGE="http://www.gimphelp.org/index.shtml"
+SRC_URI="http://www.gimphelp.org/DL/arrow_brushes_color_1.tar.bz2
+ http://www.gimphelp.org/DL/arrow_brushes_color_2.tar.bz2
+ http://www.gimphelp.org/DL/arrow_brushes_BW_1.tar.bz2
+ http://www.gimphelp.org/DL/arrow_brushes_BW_2.tar.bz2
+ http://www.gimphelp.org/DL/arrow_brushes_black_gloss.tar.bz2
+ http://www.gimphelp.org/DL/hand_pointer_brushes.tar.bz2
+ http://www.gimphelp.org/DL/button_arrow_brushes.tar.bz2
+ http://www.gimphelp.org/DL/arrow_action.tar.bz2
+ http://www.gimphelp.org/DL/cursor_brushes-1.0.tar.bz2"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+RDEPEND=""
+DEPEND=""
+
+S="${WORKDIR}"
+
+src_install() {
+ for i in */*.gbr; do
+ insinto /usr/share/gimp/2.0/brushes
+ doins $i
+ done
+}
diff --git a/media-gfx/gimp-arrow-brushes/metadata.xml b/media-gfx/gimp-arrow-brushes/metadata.xml
new file mode 100644
index 000000000000..f61881680816
--- /dev/null
+++ b/media-gfx/gimp-arrow-brushes/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 type="person">
+ <email>pacho@gentoo.org</email>
+ <name>Pacho Ramos</name>
+</maintainer>
+</pkgmetadata>
diff --git a/media-gfx/gimp/Manifest b/media-gfx/gimp/Manifest
new file mode 100644
index 000000000000..e44064b532e6
--- /dev/null
+++ b/media-gfx/gimp/Manifest
@@ -0,0 +1,27 @@
+AUX gimp-2.7.4-no-deprecation.patch 1061 SHA256 fb9532406b62a6fa12f8598b142186fad1dc4e937328c8859cb4e8e76d2b19c7 SHA512 3454f3b1a7579b1da4c36b765ae2a54adab13f0a4ecf02c4c0c3c55a12ff7af57d6d0467f663d2ef3de6cda116095f5f662a29cb3d729e0533edd585731a1dc9 WHIRLPOOL 25b645c7e3f39cabe35155dd24c061a088a1800b0a4c154196ff89f4ccf3fc1950a1028d08eddf879cc482ca334bd99bc4c6cea8288e3bf36c0bed657485d984
+AUX gimp-2.8.10-clang.patch 7670 SHA256 a7f057002f7749cdcb07871c3ef69aa73ab28e688ed5782316d5cb1489a0af1e SHA512 772ee0837a214f3ef70e823662fe12e57ee8fd5f800c6508e757b86169b86a5cbd86695870993a66d3726c019d24f79616831bed8baabce3e1d247ecbfe204fc WHIRLPOOL 0baa2a9e7e3370d2b44a180f89c66306aa3f0a6fb4a675ae9fe3413032ce8b6a8a0bd03b33e86453a2a41340e504f641eead1c9b1e4461bb7133ecae713c52fc
+AUX gimp-2.8.14-blend-center.patch 999 SHA256 2fb7bdc7e31a833ddaa75c4ff7bd8ce0595b5a638f3cf9d387e2fd6a0f3764c4 SHA512 1d3cbe9d1b02e2d10ba982265f7d89f593aa6973f76d529dd909f36efe1c9d968360ec208943f66c00f6589f5c679368099e0db579ddb3655c15cb6ce8bdf930 WHIRLPOOL a1f3abe22a966a5490979c580e5c8bd591d0c3a12ae85fb86f306d066f18cc18249eeea2ac5459d99466161b09ba8167a52bb232f69839f383d809ec09e0705f
+AUX gimp-2.8.6-uclibc.patch 1317 SHA256 09dcec105a741627c74214ea8dec1696f921be94d3b5492b417f9a68043979c7 SHA512 0e7da897f0d654d2be233880bc80c869f869698122db779bd23f7b995de53840553a3b877b50f0297e56fc8627888b98b3206c08c03a4d22e748feeabe92391a WHIRLPOOL 0e65f6b620c23b2ff2f9b13fd555fe3c070d73b50b3ba93c61446783861f2f0fd7ecdc2102887e9673077d691e9cfcf05bd848242565776931c7f5bff628396b
+AUX gimp-2.9.2-CVE-2016-4994.patch 3118 SHA256 14f8b33b40b8de61a21276b26e6e908ef42cb19e7ea938b9a213661760af72dc SHA512 5268326b037ac174ca89525c0332620addd28348f2901e3725402c1aa9fbd2718245868fcb44405256a9c60b8b74df9c66850b0af5d80ca3c4ae7a76bbd523cb WHIRLPOOL 984d9198b18bfd7019b1b5e1348e1d7b18e2466f6d7b91ee7656feb64d2bbe9b46b376c29b8a589fea27b687ec58dd1c2255e1a99a346043ed92a3d9b5e4b0e4
+AUX gimp-2.9.2-gegl-0.3.8.patch 1810 SHA256 a10374d1992f3ead5b07d4f7b387bbb01309fc890e1c5cabeb77893bc32ef908 SHA512 215e51f12e0672dad81b87ae31cbc37a14176b357b6576057224b82d3f3b392485f1e12301ccb8cae97a9423a4ab177d9213538f0d1612e46250012ea3adeaa6 WHIRLPOOL 11bd3d0038c15b946fa1cb898d0e47b45dab06f0a1b390f627ec2b093cc4ff6ce6d2ec67c04d458525cc7528cc25f81916300f3609026bae33e56c67e2a19cd6
+AUX gimp-2.9.2-no-deprecation.patch 1391 SHA256 7e26743c6f51e942ddd051481d2ec30c59e691737f3b12bc548784243c4007e1 SHA512 69ec37957a22a8a7dfc40b912d6ba840bbaed6b27f41d1dc2447b36766c201c462a69a7b65014e21b4a4b7f87c0e630795cf64d13cf4bf7397e1a80290e71181 WHIRLPOOL 3242b67f6ca9129a0a55db340127c745de096d41d73b2666196ccaf81718b468c2393f14e57ab707856f91e5ce85787a48025f2a9f986b481ad7a158a50b78d2
+AUX gimp-2.9.2-version.patch 775 SHA256 07c83325eddd9af9be562a0878986c080ac7299954f726f5373db3ebb0bad821 SHA512 fe8894d9e89210b4d0a8584c1ad3825bb720964ad9194e0b088b6dea2e8b354a2d2f662748ea4f3c090ebb66b64c27a5922fa3d3cf3d49da9aa07e552ad608d6 WHIRLPOOL ce67beb429dd92ed1fcb6347d88eee0bf4bd7c0f36d987c35ef5edb4b7733478a253f4b00216e40f3a7964852e4094e1bcab6df73d68e8acb65fd1f5cb2964d1
+AUX gimp-2.9.4-CVE-2007-3126.patch 8937 SHA256 92dad0e1effa13636a02dd7b16d0065ca869432cff5b31366464a495a85bff4b SHA512 c3853f38204e8fcb6e492812f6c684601827517f988592526f41e285766c3ea688d404593bcaae75d8c2ba0bd2910c43f7b0ec5147659cfd2cc5429d38754306 WHIRLPOOL 8ed186ab843ecfbc82f73bf6b50938f3e0e4bb753bce8646b748d69de97d75dc6df5059338ce9978bf49f3cd52e974694beb979affcb29d5e389404be7583a73
+AUX gimp-2.9.4-gegl-bin.patch 705 SHA256 2425c117b68d812c7f1fcdac5e4654485fac0894302e5b1d7aaed281e5c0ce78 SHA512 3280cb607ba5539c17dc00816b9d745849db48ced676c0a6de3752a8ad3b7eb1717eb4b6af9a5a5db96aeaddd5992d23f0d06b2a3a967a6929e0092145594fef WHIRLPOOL 30044fb9dede9454b52d813bc445603e530e553159db90df8d84b5e26e6dc75cd0edda96d9a8080ab5cfec89662156a29d7bd498b4183bff023989122788e432
+AUX gimp-2.9.4-mkdir-makefile.patch 1492 SHA256 7bba311b9df6a17c73087bfc15db0ba7e7b215a7c4839f9fcc69aa2c826f2bc2 SHA512 c8fa19e79fcc2e38af002c472bdcf6656e3297826ba9df9e22335d09e062c84b32b5b39e9d43adc1ce8b9b20bc047e9a7ef3a52d9db39a69e03a2956204c6000 WHIRLPOOL f2ba749e8253dca3c37178aaf72a06b19d0de4582022a40613faee3058eaffcf2fde3c65f0ab89ef1bb2b530498983a6c9b7c98ea5d7585d90c6f49b2f95364f
+AUX gimp-2.9.6-underlinking.patch 653 SHA256 7a59c57012f68040d0a1df490b543566d1cc9e0530a148cc9dd505c2b66710a7 SHA512 3ed27297af495828d9394d7bdd067d416733ae7a3665784ee37b19273d002a585fcb22f30ec6db93164b0f0c7220af6020984820da4c78a356b2ae71fb9e61c3 WHIRLPOOL bbd0ecfc038fea235febb65f8859a327d37c73d40b0e1117292d7dcb05ca53769d726a8f3408f98202cea549affdc5f9a116b828eaa3346f52c904b571b9a91e
+DIST gimp-2.8.14.tar.bz2 20440077 SHA256 d82a958641c9c752d68e35f65840925c08e314cea90222ad845892a40e05b22d SHA512 533f6b931624d36525cb2f3fbc27fe27565d761bbe26873bb5445c06c01523c044d1814363a8cd76b6e381440db4c6e302b0d3f7a9e5aac7f60072770552f1ba WHIRLPOOL 8fd7b0fd5f8627b2df83481f7956727acd42eafcdc9c9116713d60faf8578005c2fb1e1d729f3b2c836a90e9bab063e477f9da5285e5c43a79f2dbe441a0565b
+DIST gimp-2.8.20.tar.bz2 20853324 SHA256 939ca1df70be865c672ffd654f4e20f188121d01601c5c90237214101533c805 SHA512 5cd02854e21098c0d9d929e9131ede628ed520b6c76190eb9f6db38f057cff956e35b0a891d04c3a2e9c9e85c77f82d7ff5e63404187a8df921553763f649fd7 WHIRLPOOL 14b4791e6849629e3794de28d3bab228dc43df844c56c7777b31e36e4db3173e6c5ccda8f8f116b4fbd2dcec31c24de94d9b822f12bdb20ddc372cf035089355
+DIST gimp-2.8.22.tar.bz2 20873278 SHA256 9187a35cc52b110d78124d7b27b68a68ade14a794c2721314bac6134d2a5638a SHA512 84a78d428282538b606b3cd1ff571e52c3d828fceade171b2012bc1cdcb85919fc7734e7e6c45ed3a8683657fa580412b32c1b511b8a512172a8c1df930493e6 WHIRLPOOL f9d2f2049b3bf91e8abb8a20b1fda93d801d66ca5d58a9710ae618b0289970c5eaf0df8f195de6c41a4f737fc9e666e011ff7061a45356f18cf426cbbedc3b06
+DIST gimp-2.9.4-r1.tar.xz 18510496 SHA256 c3f3cab83f70c1c2c11c6b94157def3a40f1fd335ffda2ef3e191865fc89d97a SHA512 60691506ad021d34a9728a76529fb7ff653f679979f23346ba84f1f9c36606c6bc118b611e92be79af894cba93746c8bdaeeb00012300c23fe995e50c3204025 WHIRLPOOL a042ac4ccbb8172526cc9fa2ff2df7ac35bd9fcd6283778e03f451766176422ddf250229d9a074821b7a991c24bb14058abe49d9739815681d250f6201467a75
+DIST gimp-2.9.6.tar.bz2 25472593 SHA256 b46f31d822a33ab416dcb15e33e10b5b98430814fa34f5ea4036230e845dfc9f SHA512 c874daedb00fbfa4156f0e244b217e221b047cb3bd22a81fb190a5d9d774212dc7802ec215151c6dc87136148bf9f84ca23a0a6340681a53c39b5fa71b2ded89 WHIRLPOOL c0166b2f7d3c0592c940030441f1d918463a5759ba8748c0c3ba0467b8dd15fea364041784e36aff4298e2754ae4f62d5cb83eb4e98531bf50bda1b7603b69c7
+EBUILD gimp-2.8.14-r2.ebuild 4872 SHA256 4dc87684397320cff14f83052aa9a617a90c13122ccf70c3dd49bea7fbda238a SHA512 168718d113cb300f08b77a5975ccd821d75139478664ea5d2d70213ce02486800fd0ff83e235361676d017e50d188e3b833e4a89bb0f0c95d48a73a3c1fa4eb7 WHIRLPOOL ad9b28244096cd4c978bc092d56e94845e8da418f4fd5a1696962f203c7b03d4fd7425d46dafa997ac46c4e893d901eebcff8f7d6045038c901adef15afb24d6
+EBUILD gimp-2.8.14-r4.ebuild 4896 SHA256 50233875990867140a44385421ca141f3252a1ab4c096f4e328ec7458e43b4ed SHA512 54a6c1a00c219df899740c2210415aab9d1e96a4439333027e7d07d0794a920e2737490b75d43375b4b2c48f812ceb07abc3c5f221f4d2bf3afd1772c0fe07bf WHIRLPOOL 30021375ad3362238393be92dfdacbc2444ab9b0019e137ada12d4a9187b79836583bedc2e130712cf30f8b9018bb1f6815a6b943c1018f6e201a0764fdabe2b
+EBUILD gimp-2.8.20-r1.ebuild 4836 SHA256 a1a54864560f650c82deec9083c44305fe7497d3badce21942e244788766fc2b SHA512 cf5fa5734366c0f716a3b4994bd0b7f16fb7f5fff5413b833659905936040016d2b966a95797a51550ffddb964bd2ad453e7f08619c1d376aae458a98869ddee WHIRLPOOL 60c0167a124cd1d7ee56dbadedff6562eefe681c8d2357227b548e189a133b8eb3f69793383178a9d8eb117d0edf0f5519dfdb20901c3358ee60a6dad69223b5
+EBUILD gimp-2.8.22.ebuild 4761 SHA256 309ea05cec920ee5c7715d6114ace627075b199f99165d62b225103846cb0f7b SHA512 3c0fb02fd4667a15f91ffc439913ec29cd66edd9eaace5079077bca69271c6901524a7ef35dd4337c4727145bf42a79c86aa65a8deaee3d5d571f593a7182a29 WHIRLPOOL d9ec98bd757339349dc337d285117ca135409c7b9caff49fde166ab6059b822f78cb1d1f7218ceda8f5afeef54ae65efb655229ff0563a7429eb8fa0725935f1
+EBUILD gimp-2.9.4-r3.ebuild 5147 SHA256 4fe9f2b17e0317cae0b70bfdd0522b9be9aee923a05f2c022ff56cf22636abff SHA512 b550dfd27f1649558ae59f7f9b2d05b95349e8c56ddd1494eec573ea92ad498f42779585f0346a1c4cca21ad970b80caf4167b23ba2676ee6aa208e555edce92 WHIRLPOOL 6dd63363a7b7299588f0d6ed5a1ffe7031cce0856ff611b4dcbb93ebbb2dc5a277e14fe00a7f5460dc096e6cb24137e674d2b9e0247a9efdb704a9dd5134bb70
+EBUILD gimp-2.9.6.ebuild 5334 SHA256 14d4b7242daaa08b7b66566bd425ebbf40028f057b8f8cf62b536cf2dad013a5 SHA512 bb8602bffe9a22b3ddd24ffcc6d08cb0dcf9f8f64052b77f0d948521c60a06ad87fbf0bdc4c0000d146e19d300fc2e76cf01e425b5a63ad15c9b20cb8c0ae960 WHIRLPOOL 47303bb7a1140d946dc5595d4101d7e614d0e87cd605038daab681416acb77d7de7ab961129cb7049a23cd344c60450a8bdcd5752bf5fd0d285fdb7ccd45ab40
+EBUILD gimp-9999.ebuild 5399 SHA256 d080f168060b128c3dfac9757af6232753e701209a61efe1f8d98b004098b7d9 SHA512 a1990254a48dc25e0f47591f500b6605bbbe8abc3d2558a7a72d078ac28698f71f95b0ba4eac28131ea2d3e064d4c64f8741693dc37d5bef517c101092e43616 WHIRLPOOL d337d6b84816e2a65def0852734c759c1875e9e74cf75e99a1fdea6149afa839ec9cc4e2f477ec67a99eb665998c43414b4dca6830eba2fd769cb6502f7286a5
+MISC ChangeLog 11158 SHA256 81ff7305864fda3dca3f0f17d5962d0a070135c39bd281dc8d4473bf407613c6 SHA512 10c4790c9bcc3c2d26f02a406591f379ac9af193e26c5d5c7933c3cbd1525fd9a6dc296680dc7c1a24b4385e4e14077b8fd9be55a5f9562f68b2e5165ea5b143 WHIRLPOOL 3f47da1911e4b4c9725f87808415aae1cddc62ccdb74314cd4af35c1c83eecf56cc4b9941623461f7731a44ff91be635eae1c816b347666919d298efd75bedae
+MISC ChangeLog-2015 64504 SHA256 0426f501e2062c13622ff33d3ae0367e738a184bcca8428d58f4110a1ff40919 SHA512 932d94434e11b833a3f63cf6ea7c0ebbdbbc7db735b6d312b3c478315128bcf7bdbd2d02731ee3bf1a061155feabe67543a384ef02008d92c986f45d8708a55a WHIRLPOOL 4bfe25f23f82e48f146ec5220389ce270cb882b2d6a22cd3abd1eb398827ee1bdf3f5fb0d346f6f6bd7ef1d4fc3fc4a632e1d154e0b64c655c146637f6ed3407
+MISC metadata.xml 388 SHA256 794711a232119fb44efec918fa98409c2c9976d9d4c5416a8023f283f5a24576 SHA512 e3a626ac39cea422d1b4660731048d764c4b6f1985e09577865f0047ecbc61c8677d6f15626dbbc03ceb3cb18887ba58747df5d91f5f4b2126afb9ad12eaccb0 WHIRLPOOL adf84ce8636c190d45d93b9de5d7dacfe13ff2ab2e2e29fe2c4d162f1fc8b842a5a67e4132f0dec1854d668120da8708eda128d7ccc722e096401ab0178fd063
diff --git a/media-gfx/gimp/files/gimp-2.7.4-no-deprecation.patch b/media-gfx/gimp/files/gimp-2.7.4-no-deprecation.patch
new file mode 100644
index 000000000000..66bd93d0d1aa
--- /dev/null
+++ b/media-gfx/gimp/files/gimp-2.7.4-no-deprecation.patch
@@ -0,0 +1,36 @@
+--- configure.ac 2012-01-02 13:15:53.695067626 +0100
++++ configure.ac 2012-01-02 13:21:49.161623684 +0100
+@@ -1943,33 +1943,6 @@
+ AC_SUBST(MIME_TYPES)
+
+
+-#########################
+-# Disable deprecated APIs
+-#########################
+-
+-CPPFLAGS="${CPPFLAGS} -DGIMP_DISABLE_DEPRECATED -DBABL_DISABLE_DEPRECATED -DGSEAL_ENABLE"
+-
+-# Make sure not to disable deprecated APIs for unreleased versions.
+-# We must build without problems with future releases of libraries
+-# and disabling deprecated API risks breaking the build
+-
+-if test "x$have_glib_2_31" != "xyes"; then
+- CPPFLAGS="${CPPFLAGS} -DG_DISABLE_DEPRECATED"
+-fi
+-
+-if test "x$have_gtk_2_26" != "xyes"; then
+- CPPFLAGS="${CPPFLAGS} -DGDK_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED"
+-fi
+-
+-if test "x$have_gdk_pixbuf_2_26" != "xyes"; then
+- CPPFLAGS="${CPPFLAGS} -DGDK_PIXBUF_DISABLE_DEPRECATED"
+-fi
+-
+-if test "x$have_pango_1_32" != "xyes"; then
+- CPPFLAGS="${CPPFLAGS} -DPANGO_DISABLE_DEPRECATED"
+-fi
+-
+-
+ ############################
+ # Require multihead safe API
+ ############################
diff --git a/media-gfx/gimp/files/gimp-2.8.10-clang.patch b/media-gfx/gimp/files/gimp-2.8.10-clang.patch
new file mode 100644
index 000000000000..065c66b36139
--- /dev/null
+++ b/media-gfx/gimp/files/gimp-2.8.10-clang.patch
@@ -0,0 +1,204 @@
+--- app/Makefile.am
++++ app/Makefile.am
+@@ -120,29 +120,29 @@
+
+ # FIXME: core should not depend on xcf
+ workaround_that_core_depends_on_xcf = \
+- -u $(SYMPREFIX)xcf_init
++ -Wl,-u,$(SYMPREFIX)xcf_init
+
+ # FIXME: core should not depend on pdb
+ workaround_that_core_depends_on_pdb = \
+- -u $(SYMPREFIX)internal_procs_init \
+- -u $(SYMPREFIX)gimp_plug_in_manager_restore
++ -Wl,-u,$(SYMPREFIX)internal_procs_init \
++ -Wl,-u,$(SYMPREFIX)gimp_plug_in_manager_restore
+
+ # FIXME: plug-in should not depend on pdb
+ workaround_that_plug_in_depends_on_pdb = \
+- -u $(SYMPREFIX)gimp_pdb_compat_param_spec
++ -Wl,-u,$(SYMPREFIX)gimp_pdb_compat_param_spec
+
+ # FIXME: file should not depend on plug-in
+ workaround_that_file_depends_on_plug_in = \
+- -u $(SYMPREFIX)plug_in_icc_profile_apply_rgb \
+- -u $(SYMPREFIX)gimp_image_map_config_get_type
++ -Wl,-u,$(SYMPREFIX)plug_in_icc_profile_apply_rgb \
++ -Wl,-u,$(SYMPREFIX)gimp_image_map_config_get_type
+
+ # core, vectors and gegl are on the same architectural layer, prevent
+ # the linker from panicing
+ calm_down_linker = \
+- -u $(SYMPREFIX)gimp_vectors_undo_get_type \
+- -u $(SYMPREFIX)gimp_vectors_mod_undo_get_type \
+- -u $(SYMPREFIX)gimp_vectors_prop_undo_get_type \
+- -u $(SYMPREFIX)gimp_curve_map_pixels
++ -Wl,-u,$(SYMPREFIX)gimp_vectors_undo_get_type \
++ -Wl,-u,$(SYMPREFIX)gimp_vectors_mod_undo_get_type \
++ -Wl,-u,$(SYMPREFIX)gimp_vectors_prop_undo_get_type \
++ -Wl,-u,$(SYMPREFIX)gimp_curve_map_pixels
+
+ AM_LDFLAGS = \
+ $(munix) \
+--- app/Makefile.in
++++ app/Makefile.in
+@@ -702,33 +702,33 @@
+
+ # FIXME: core should not depend on xcf
+ workaround_that_core_depends_on_xcf = \
+- -u $(SYMPREFIX)xcf_init
++ -Wl,-u,$(SYMPREFIX)xcf_init
+
+
+ # FIXME: core should not depend on pdb
+ workaround_that_core_depends_on_pdb = \
+- -u $(SYMPREFIX)internal_procs_init \
+- -u $(SYMPREFIX)gimp_plug_in_manager_restore
++ -Wl,-u,$(SYMPREFIX)internal_procs_init \
++ -Wl,-u,$(SYMPREFIX)gimp_plug_in_manager_restore
+
+
+ # FIXME: plug-in should not depend on pdb
+ workaround_that_plug_in_depends_on_pdb = \
+- -u $(SYMPREFIX)gimp_pdb_compat_param_spec
++ -Wl,-u,$(SYMPREFIX)gimp_pdb_compat_param_spec
+
+
+ # FIXME: file should not depend on plug-in
+ workaround_that_file_depends_on_plug_in = \
+- -u $(SYMPREFIX)plug_in_icc_profile_apply_rgb \
+- -u $(SYMPREFIX)gimp_image_map_config_get_type
++ -Wl,-u,$(SYMPREFIX)plug_in_icc_profile_apply_rgb \
++ -Wl,-u,$(SYMPREFIX)gimp_image_map_config_get_type
+
+
+ # core, vectors and gegl are on the same architectural layer, prevent
+ # the linker from panicing
+ calm_down_linker = \
+- -u $(SYMPREFIX)gimp_vectors_undo_get_type \
+- -u $(SYMPREFIX)gimp_vectors_mod_undo_get_type \
+- -u $(SYMPREFIX)gimp_vectors_prop_undo_get_type \
+- -u $(SYMPREFIX)gimp_curve_map_pixels
++ -Wl,-u,$(SYMPREFIX)gimp_vectors_undo_get_type \
++ -Wl,-u,$(SYMPREFIX)gimp_vectors_mod_undo_get_type \
++ -Wl,-u,$(SYMPREFIX)gimp_vectors_prop_undo_get_type \
++ -Wl,-u,$(SYMPREFIX)gimp_curve_map_pixels
+
+ AM_LDFLAGS = \
+ $(munix) \
+--- app/tests/Makefile.am
++++ app/tests/Makefile.am
+@@ -63,22 +63,22 @@
+ # We need this due to circular dependencies, see more detailed
+ # comments about it in app/Makefile.am
+ AM_LDFLAGS = \
+- -u $(SYMPREFIX)xcf_init \
+- -u $(SYMPREFIX)base_init \
+- -u $(SYMPREFIX)internal_procs_init \
+- -u $(SYMPREFIX)gimp_plug_in_manager_restore \
+- -u $(SYMPREFIX)gimp_pdb_compat_param_spec \
+- -u $(SYMPREFIX)gui_init \
+- -u $(SYMPREFIX)plug_in_icc_profile_apply_rgb \
+- -u $(SYMPREFIX)gimp_image_map_config_get_type \
+- -u $(SYMPREFIX)gimp_vectors_undo_get_type \
+- -u $(SYMPREFIX)gimp_vectors_mod_undo_get_type \
+- -u $(SYMPREFIX)gimp_vectors_prop_undo_get_type \
+- -u $(SYMPREFIX)actions_init \
+- -u $(SYMPREFIX)gimp_error_dialog_new \
+- -u $(SYMPREFIX)menus_save \
+- -u $(SYMPREFIX)gimp_tools_save \
+- -u $(SYMPREFIX)gimp_curve_map_pixels
++ -Wl,-u,$(SYMPREFIX)xcf_init \
++ -Wl,-u,$(SYMPREFIX)base_init \
++ -Wl,-u,$(SYMPREFIX)internal_procs_init \
++ -Wl,-u,$(SYMPREFIX)gimp_plug_in_manager_restore \
++ -Wl,-u,$(SYMPREFIX)gimp_pdb_compat_param_spec \
++ -Wl,-u,$(SYMPREFIX)gui_init \
++ -Wl,-u,$(SYMPREFIX)plug_in_icc_profile_apply_rgb \
++ -Wl,-u,$(SYMPREFIX)gimp_image_map_config_get_type \
++ -Wl,-u,$(SYMPREFIX)gimp_vectors_undo_get_type \
++ -Wl,-u,$(SYMPREFIX)gimp_vectors_mod_undo_get_type \
++ -Wl,-u,$(SYMPREFIX)gimp_vectors_prop_undo_get_type \
++ -Wl,-u,$(SYMPREFIX)actions_init \
++ -Wl,-u,$(SYMPREFIX)gimp_error_dialog_new \
++ -Wl,-u,$(SYMPREFIX)menus_save \
++ -Wl,-u,$(SYMPREFIX)gimp_tools_save \
++ -Wl,-u,$(SYMPREFIX)gimp_curve_map_pixels
+
+ # Note that we have some duplicate entries here too to work around
+ # circular dependencies and systems on the same architectural layer as
+--- app/tests/Makefile.in
++++ app/tests/Makefile.in
+@@ -1221,22 +1221,22 @@
+ # We need this due to circular dependencies, see more detailed
+ # comments about it in app/Makefile.am
+ AM_LDFLAGS = \
+- -u $(SYMPREFIX)xcf_init \
+- -u $(SYMPREFIX)base_init \
+- -u $(SYMPREFIX)internal_procs_init \
+- -u $(SYMPREFIX)gimp_plug_in_manager_restore \
+- -u $(SYMPREFIX)gimp_pdb_compat_param_spec \
+- -u $(SYMPREFIX)gui_init \
+- -u $(SYMPREFIX)plug_in_icc_profile_apply_rgb \
+- -u $(SYMPREFIX)gimp_image_map_config_get_type \
+- -u $(SYMPREFIX)gimp_vectors_undo_get_type \
+- -u $(SYMPREFIX)gimp_vectors_mod_undo_get_type \
+- -u $(SYMPREFIX)gimp_vectors_prop_undo_get_type \
+- -u $(SYMPREFIX)actions_init \
+- -u $(SYMPREFIX)gimp_error_dialog_new \
+- -u $(SYMPREFIX)menus_save \
+- -u $(SYMPREFIX)gimp_tools_save \
+- -u $(SYMPREFIX)gimp_curve_map_pixels
++ -Wl,-u,$(SYMPREFIX)xcf_init \
++ -Wl,-u,$(SYMPREFIX)base_init \
++ -Wl,-u,$(SYMPREFIX)internal_procs_init \
++ -Wl,-u,$(SYMPREFIX)gimp_plug_in_manager_restore \
++ -Wl,-u,$(SYMPREFIX)gimp_pdb_compat_param_spec \
++ -Wl,-u,$(SYMPREFIX)gui_init \
++ -Wl,-u,$(SYMPREFIX)plug_in_icc_profile_apply_rgb \
++ -Wl,-u,$(SYMPREFIX)gimp_image_map_config_get_type \
++ -Wl,-u,$(SYMPREFIX)gimp_vectors_undo_get_type \
++ -Wl,-u,$(SYMPREFIX)gimp_vectors_mod_undo_get_type \
++ -Wl,-u,$(SYMPREFIX)gimp_vectors_prop_undo_get_type \
++ -Wl,-u,$(SYMPREFIX)actions_init \
++ -Wl,-u,$(SYMPREFIX)gimp_error_dialog_new \
++ -Wl,-u,$(SYMPREFIX)menus_save \
++ -Wl,-u,$(SYMPREFIX)gimp_tools_save \
++ -Wl,-u,$(SYMPREFIX)gimp_curve_map_pixels
+
+
+ # Note that we have some duplicate entries here too to work around
+--- devel-docs/app/Makefile.am
++++ devel-docs/app/Makefile.am
+@@ -62,10 +62,10 @@
+ -UGTK_DISABLE_SINGLE_INCLUDES
+
+ GTKDOC_LIBS = \
+- -u $(SYMPREFIX)xcf_init \
+- -u $(SYMPREFIX)internal_procs_init \
+- -u $(SYMPREFIX)gimp_coords_mix \
+- -u $(SYMPREFIX)gimp_plug_in_manager_restore \
++ -Wl,-u,$(SYMPREFIX)xcf_init \
++ -Wl,-u,$(SYMPREFIX)internal_procs_init \
++ -Wl,-u,$(SYMPREFIX)gimp_coords_mix \
++ -Wl,-u,$(SYMPREFIX)gimp_plug_in_manager_restore \
+ $(top_builddir)/app/app.o \
+ $(top_builddir)/app/batch.o \
+ $(top_builddir)/app/errors.o \
+--- devel-docs/app/Makefile.in
++++ devel-docs/app/Makefile.in
+@@ -511,10 +511,10 @@
+ -UGTK_DISABLE_SINGLE_INCLUDES
+
+ GTKDOC_LIBS = \
+- -u $(SYMPREFIX)xcf_init \
+- -u $(SYMPREFIX)internal_procs_init \
+- -u $(SYMPREFIX)gimp_coords_mix \
+- -u $(SYMPREFIX)gimp_plug_in_manager_restore \
++ -Wl,-u,$(SYMPREFIX)xcf_init \
++ -Wl,-u,$(SYMPREFIX)internal_procs_init \
++ -Wl,-u,$(SYMPREFIX)gimp_coords_mix \
++ -Wl,-u,$(SYMPREFIX)gimp_plug_in_manager_restore \
+ $(top_builddir)/app/app.o \
+ $(top_builddir)/app/batch.o \
+ $(top_builddir)/app/errors.o \
diff --git a/media-gfx/gimp/files/gimp-2.8.14-blend-center.patch b/media-gfx/gimp/files/gimp-2.8.14-blend-center.patch
new file mode 100644
index 000000000000..eba04df59aa2
--- /dev/null
+++ b/media-gfx/gimp/files/gimp-2.8.14-blend-center.patch
@@ -0,0 +1,30 @@
+From 97e55692ebad5897be334c81c133b6626b9b6920 Mon Sep 17 00:00:00 2001
+From: Michael Natterer <mitch@gimp.org>
+Date: Wed, 26 Aug 2015 23:23:16 +0200
+Subject: app: the blend tool was rendering all gradients off-by-0.5
+
+When calculating the color of a pixel, we want to calculate the color
+at its center, not at its top-left corner. Found by Raymond Jennings.
+
+EDIT (by Sebastian Pipping <sping@gentoo.org>):
+ Cut away patch chunk for app/operations/gimpoperationblend.c
+ since 2.8.14 doesn't seem to have that file.
+
+diff --git a/app/core/gimpdrawable-blend.c b/app/core/gimpdrawable-blend.c
+index af565d1..e4f92a1 100644
+--- a/app/core/gimpdrawable-blend.c
++++ b/app/core/gimpdrawable-blend.c
+@@ -628,6 +628,10 @@ gradient_render_pixel (gdouble x,
+ RenderBlendData *rbd = render_data;
+ gdouble factor;
+
++ /* we want to calculate the color at the pixel's center */
++ x += 0.5;
++ y += 0.5;
++
+ /* Calculate blending factor */
+
+ switch (rbd->gradient_type)
+--
+cgit v0.10.2
+
diff --git a/media-gfx/gimp/files/gimp-2.8.6-uclibc.patch b/media-gfx/gimp/files/gimp-2.8.6-uclibc.patch
new file mode 100644
index 000000000000..855e9872f4b4
--- /dev/null
+++ b/media-gfx/gimp/files/gimp-2.8.6-uclibc.patch
@@ -0,0 +1,45 @@
+From 4fb7a436bca3e11abfda8bc23818af0f09714b9d Mon Sep 17 00:00:00 2001
+From: Michael Natterer <mitch@gimp.org>
+Date: Fri, 02 Aug 2013 14:50:00 +0000
+Subject: Bug 704980 - uclibc - base-utils.c: execinfo.h: No such file or directory
+
+Apply patch from Amadeusz Slawinski that checks for execinfo.h and
+builds the code that needs it conditionally.
+---
+diff --git a/app/base/base-utils.c b/app/base/base-utils.c
+index 757f58d..44a9e89 100644
+--- a/app/base/base-utils.c
++++ b/app/base/base-utils.c
+@@ -29,7 +29,7 @@
+ #include <process.h>
+ #endif
+
+-#ifdef G_OS_UNIX
++#if defined(G_OS_UNIX) && defined(HAVE_EXECINFO_H)
+ /* For get_backtrace() */
+ #include <stdlib.h>
+ #include <string.h>
+@@ -112,7 +112,7 @@ get_physical_memory_size (void)
+ char *
+ get_backtrace (void)
+ {
+-#ifdef G_OS_UNIX
++#if defined(G_OS_UNIX) && defined(HAVE_EXECINFO_H)
+ void *functions[MAX_FUNC];
+ char **function_names;
+ int n_functions;
+diff --git a/configure.ac b/configure.ac
+index 0bbcbc7..15c7cc6 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -416,7 +416,7 @@ AC_HEADER_STDC
+ AC_HEADER_SYS_WAIT
+ AC_HEADER_TIME
+
+-AC_CHECK_HEADERS(sys/param.h sys/time.h sys/times.h sys/wait.h unistd.h)
++AC_CHECK_HEADERS(execinfo.h sys/param.h sys/time.h sys/times.h sys/wait.h unistd.h)
+
+ AC_TYPE_PID_T
+ AC_FUNC_VPRINTF
+--
+cgit v0.9.2
diff --git a/media-gfx/gimp/files/gimp-2.9.2-CVE-2016-4994.patch b/media-gfx/gimp/files/gimp-2.9.2-CVE-2016-4994.patch
new file mode 100644
index 000000000000..846318b42149
--- /dev/null
+++ b/media-gfx/gimp/files/gimp-2.9.2-CVE-2016-4994.patch
@@ -0,0 +1,88 @@
+From 6d804bf9ae77bc86a0a97f9b944a129844df9395 Mon Sep 17 00:00:00 2001
+From: Shmuel H <shmuelgimp@gmail.com>
+Date: Mon, 20 Jun 2016 17:14:41 +0300
+Subject: Bug 767873 - (CVE-2016-4994) Multiple Use-After-Free when parsing...
+
+...XCF channel and layer properties
+
+The properties PROP_ACTIVE_LAYER, PROP_FLOATING_SELECTION,
+PROP_ACTIVE_CHANNEL saves the current object pointer the @info
+structure. Others like PROP_SELECTION (for channel) and
+PROP_GROUP_ITEM (for layer) will delete the current object and create
+a new object, leaving the pointers in @info invalid (dangling).
+
+Therefore, if a property from the first type will come before the
+second, the result will be an UaF in the last lines of xcf_load_image
+(when it actually using the pointers from @info).
+
+I wasn't able to exploit this bug because that
+g_object_instance->c_class gets cleared by the last g_object_unref and
+GIMP_IS_{LAYER,CHANNEL} detects that and return FALSE.
+---
+ app/xcf/xcf-load.c | 29 +++++++++++++++++++++++++++++
+ 1 file changed, 29 insertions(+)
+
+diff --git a/app/xcf/xcf-load.c b/app/xcf/xcf-load.c
+index f48558a..244d5c2 100644
+--- a/app/xcf/xcf-load.c
++++ b/app/xcf/xcf-load.c
+@@ -1141,6 +1141,18 @@ xcf_load_layer_props (XcfInfo *info,
+ case PROP_GROUP_ITEM:
+ {
+ GimpLayer *group;
++ gboolean is_active_layer;
++
++ /* We're going to delete *layer, Don't leave its pointers
++ * in @info. After that, we'll restore them back with the
++ * new pointer. See bug #767873.
++ */
++ is_active_layer = (*layer == info->active_layer);
++ if (is_active_layer)
++ info->active_layer = NULL;
++
++ if (*layer == info->floating_sel)
++ info->floating_sel = NULL;
+
+ group = gimp_group_layer_new (image);
+
+@@ -1150,6 +1162,13 @@ xcf_load_layer_props (XcfInfo *info,
+ g_object_ref_sink (*layer);
+ g_object_unref (*layer);
+ *layer = group;
++
++ if (is_active_layer)
++ info->active_layer = *layer;
++
++ /* Don't restore info->floating_sel because group layers
++ * can't be floating selections
++ */
+ }
+ break;
+
+@@ -1220,6 +1239,12 @@ xcf_load_channel_props (XcfInfo *info,
+ {
+ GimpChannel *mask;
+
++ /* We're going to delete *channel, Don't leave its pointer
++ * in @info. See bug #767873.
++ */
++ if (*channel == info->active_channel)
++ info->active_channel = NULL;
++
+ mask =
+ gimp_selection_new (image,
+ gimp_item_get_width (GIMP_ITEM (*channel)),
+@@ -1234,6 +1259,10 @@ xcf_load_channel_props (XcfInfo *info,
+ *channel = mask;
+ (*channel)->boundary_known = FALSE;
+ (*channel)->bounds_known = FALSE;
++
++ /* Don't restore info->active_channel because the
++ * selection can't be the active channel
++ */
+ }
+ break;
+
+--
+cgit v0.12
+
diff --git a/media-gfx/gimp/files/gimp-2.9.2-gegl-0.3.8.patch b/media-gfx/gimp/files/gimp-2.9.2-gegl-0.3.8.patch
new file mode 100644
index 000000000000..a3aa236542bf
--- /dev/null
+++ b/media-gfx/gimp/files/gimp-2.9.2-gegl-0.3.8.patch
@@ -0,0 +1,54 @@
+https://bugs.gentoo.org/586828
+
+Backported from:
+https://git.gnome.org/browse/gimp/commit/?id=2e4685013123c584354bc38612527593a815c38b
+
+--- gimp-2.9.2/app/core/gimpparamspecs-duplicate.c
++++ gimp-2.9.2/app/core/gimpparamspecs-duplicate.c
+@@ -66,23 +66,11 @@
+ }
+ else
+ {
+-
+ copy = g_param_spec_string (pspec->name,
+ g_param_spec_get_nick (pspec),
+ g_param_spec_get_blurb (pspec),
+ spec->default_value,
+ flags);
+-
+- if (GEGL_IS_PARAM_SPEC_MULTILINE (pspec))
+- {
+- static GQuark multiline_quark = 0;
+-
+- if (! multiline_quark)
+- multiline_quark = g_quark_from_static_string ("multiline");
+-
+- g_param_spec_set_qdata (copy, multiline_quark,
+- GINT_TO_POINTER (TRUE));
+- }
+ }
+ }
+ else if (G_IS_PARAM_SPEC_BOOLEAN (pspec))
+--- gimp-2.9.2/app/widgets/gimppropgui.c
++++ gimp-2.9.2/app/widgets/gimppropgui.c
+@@ -227,11 +227,6 @@
+ }
+ else if (G_IS_PARAM_SPEC_STRING (pspec))
+ {
+- static GQuark multiline_quark = 0;
+-
+- if (! multiline_quark)
+- multiline_quark = g_quark_from_static_string ("multiline");
+-
+ if (GIMP_IS_PARAM_SPEC_CONFIG_PATH (pspec))
+ {
+ widget =
+@@ -239,7 +234,7 @@
+ g_param_spec_get_nick (pspec),
+ GTK_FILE_CHOOSER_ACTION_OPEN);
+ }
+- else if (g_param_spec_get_qdata (pspec, multiline_quark))
++ else if (HAS_KEY (pspec, "multiline", "true"))
+ {
+ GtkTextBuffer *buffer;
+ GtkWidget *view;
diff --git a/media-gfx/gimp/files/gimp-2.9.2-no-deprecation.patch b/media-gfx/gimp/files/gimp-2.9.2-no-deprecation.patch
new file mode 100644
index 000000000000..441298a08fde
--- /dev/null
+++ b/media-gfx/gimp/files/gimp-2.9.2-no-deprecation.patch
@@ -0,0 +1,50 @@
+From 81d7607e5159275a9b693a170f7767ffcb548a1b Mon Sep 17 00:00:00 2001
+From: Sebastian Pipping <sebastian@pipping.org>
+Date: Sat, 5 Dec 2015 01:14:37 +0100
+Subject: [PATCH] Do not disable deprecated APIs
+
+---
+ configure.ac | 27 ---------------------------
+ 1 file changed, 27 deletions(-)
+
+diff --git a/configure.ac b/configure.ac
+index 4de6e53..8528e87 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -2111,33 +2111,6 @@ MIME_TYPES="$MIME_TYPES;"
+ AC_SUBST(MIME_TYPES)
+
+
+-#########################
+-# Disable deprecated APIs
+-#########################
+-
+-CPPFLAGS="${CPPFLAGS} -DGIMP_DISABLE_DEPRECATED -DBABL_DISABLE_DEPRECATED -DGSEAL_ENABLE"
+-
+-# Make sure not to disable deprecated APIs for unreleased versions.
+-# We must build without problems with future releases of libraries
+-# and disabling deprecated API risks breaking the build
+-
+-if test "x$have_glib_2_43" != "xyes"; then
+- CPPFLAGS="${CPPFLAGS} -DG_DISABLE_DEPRECATED"
+-fi
+-
+-if test "x$have_gtk_2_26" != "xyes"; then
+- CPPFLAGS="${CPPFLAGS} -DGDK_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED"
+-fi
+-
+-if test "x$have_gdk_pixbuf_2_31" != "xyes"; then
+- CPPFLAGS="${CPPFLAGS} -DGDK_PIXBUF_DISABLE_DEPRECATED"
+-fi
+-
+-if test "x$have_pango_1_32" != "xyes"; then
+- CPPFLAGS="${CPPFLAGS} -DPANGO_DISABLE_DEPRECATED"
+-fi
+-
+-
+ ############################
+ # Require multihead safe API
+ ############################
+--
+2.6.3
+
diff --git a/media-gfx/gimp/files/gimp-2.9.2-version.patch b/media-gfx/gimp/files/gimp-2.9.2-version.patch
new file mode 100644
index 000000000000..e48614455577
--- /dev/null
+++ b/media-gfx/gimp/files/gimp-2.9.2-version.patch
@@ -0,0 +1,28 @@
+From f2f7a29ba5aceaa38a285f15c3fe8b481d05b357 Mon Sep 17 00:00:00 2001
+From: Sebastian Pipping <sebastian@pipping.org>
+Date: Sat, 5 Dec 2015 01:15:22 +0100
+Subject: [PATCH] Sync version string
+
+.. with
+m4_define([gimp_micro_version], [2])
+above
+---
+ configure.ac | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/configure.ac b/configure.ac
+index 8528e87..21d86a3 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -20,7 +20,7 @@ m4_define([gimp_binary_age],
+ [m4_eval(100 * gimp_minor_version + gimp_micro_version)])
+
+ # For overriding the version string. Comment out if not needed.
+-# m4_define([gimp_version], [2.9.1])
++# m4_define([gimp_version], [2.9.2])
+
+ # This is the X.Y used in -lgimp-X.Y
+ m4_define([gimp_api_version], [2.0])
+--
+2.6.3
+
diff --git a/media-gfx/gimp/files/gimp-2.9.4-CVE-2007-3126.patch b/media-gfx/gimp/files/gimp-2.9.4-CVE-2007-3126.patch
new file mode 100644
index 000000000000..6c515173d9cd
--- /dev/null
+++ b/media-gfx/gimp/files/gimp-2.9.4-CVE-2007-3126.patch
@@ -0,0 +1,291 @@
+From 46bcd82800e37b0f5aead76184430ef2fe802748 Mon Sep 17 00:00:00 2001
+From: Michael Natterer <mitch@gimp.org>
+Date: Sun, 6 Nov 2016 21:34:43 +0100
+Subject: Bug 773233 - CVE-2007-3126 - Gimp 2.3.14 allows context-dependent
+ attackers...
+
+...to cause a denial of service (crash) via an ICO file with an
+InfoHeader containing a Height of zero
+
+Add some error handling to ico-load.c and bail out on zero width or height
+icons. Also some formatting cleanup.
+---
+ plug-ins/file-ico/ico-load.c | 103 ++++++++++++++++++++++++++-----------------
+ 1 file changed, 62 insertions(+), 41 deletions(-)
+
+diff --git a/plug-ins/file-ico/ico-load.c b/plug-ins/file-ico/ico-load.c
+index c8091d3..8cce94f 100644
+--- a/plug-ins/file-ico/ico-load.c
++++ b/plug-ins/file-ico/ico-load.c
+@@ -124,15 +124,17 @@ static guint32
+ ico_read_init (FILE *fp)
+ {
+ IcoFileHeader header;
++
+ /* read and check file header */
+- if (!ico_read_int16 (fp, &header.reserved, 1)
+- || !ico_read_int16 (fp, &header.resource_type, 1)
+- || !ico_read_int16 (fp, &header.icon_count, 1)
+- || header.reserved != 0
+- || header.resource_type != 1)
++ if (! ico_read_int16 (fp, &header.reserved, 1) ||
++ ! ico_read_int16 (fp, &header.resource_type, 1) ||
++ ! ico_read_int16 (fp, &header.icon_count, 1) ||
++ header.reserved != 0 ||
++ header.resource_type != 1)
+ {
+ return 0;
+ }
++
+ return header.icon_count;
+ }
+
+@@ -148,22 +150,25 @@ ico_read_size (FILE *fp,
+ gint32 color_type;
+ guint32 magic;
+
+- if ( fseek (fp, info->offset, SEEK_SET) < 0 )
++ if (fseek (fp, info->offset, SEEK_SET) < 0)
+ return FALSE;
+
+ ico_read_int32 (fp, &magic, 1);
++
+ if (magic == ICO_PNG_MAGIC)
+ {
+ png_ptr = png_create_read_struct (PNG_LIBPNG_VER_STRING, NULL, NULL,
+ NULL);
+- if (! png_ptr )
++ if (! png_ptr)
+ return FALSE;
++
+ info_ptr = png_create_info_struct (png_ptr);
+- if (! info_ptr )
++ if (! info_ptr)
+ {
+ png_destroy_read_struct (&png_ptr, NULL, NULL);
+ return FALSE;
+ }
++
+ if (setjmp (png_jmpbuf (png_ptr)))
+ {
+ png_destroy_read_struct (&png_ptr, NULL, NULL);
+@@ -182,8 +187,8 @@ ico_read_size (FILE *fp,
+ }
+ else if (magic == 40)
+ {
+- if (ico_read_int32 (fp, &info->width, 1)
+- && ico_read_int32 (fp, &info->height, 1))
++ if (ico_read_int32 (fp, &info->width, 1) &&
++ ico_read_int32 (fp, &info->height, 1))
+ {
+ info->height /= 2;
+ D(("ico_read_size: ICO: %ix%i\n", info->width, info->height));
+@@ -200,8 +205,9 @@ ico_read_size (FILE *fp,
+ }
+
+ static IcoLoadInfo*
+-ico_read_info (FILE *fp,
+- gint icon_count)
++ico_read_info (FILE *fp,
++ gint icon_count,
++ GError **error)
+ {
+ gint i;
+ IcoFileEntry *entries;
+@@ -209,8 +215,11 @@ ico_read_info (FILE *fp,
+
+ /* read icon entries */
+ entries = g_new (IcoFileEntry, icon_count);
+- if ( fread (entries, sizeof(IcoFileEntry), icon_count, fp) <= 0 )
++ if (fread (entries, sizeof (IcoFileEntry), icon_count, fp) <= 0)
+ {
++ g_set_error (error, G_FILE_ERROR, 0,
++ _("Could not read '%lu' bytes"),
++ sizeof (IcoFileEntry));
+ g_free (entries);
+ return NULL;
+ }
+@@ -218,23 +227,33 @@ ico_read_info (FILE *fp,
+ info = g_new (IcoLoadInfo, icon_count);
+ for (i = 0; i < icon_count; i++)
+ {
+- info[i].width = entries[i].width;
++ info[i].width = entries[i].width;
+ info[i].height = entries[i].height;
+- info[i].bpp = GUINT16_FROM_LE (entries[i].bpp);
+- info[i].size = GUINT32_FROM_LE (entries[i].size);
++ info[i].bpp = GUINT16_FROM_LE (entries[i].bpp);
++ info[i].size = GUINT32_FROM_LE (entries[i].size);
+ info[i].offset = GUINT32_FROM_LE (entries[i].offset);
+
+ if (info[i].width == 0 || info[i].height == 0)
+ {
+- ico_read_size (fp, info+i);
++ ico_read_size (fp, info + i);
+ }
+
+ D(("ico_read_info: %ix%i (%i bits, size: %i, offset: %i)\n",
+ info[i].width, info[i].height, info[i].bpp,
+ info[i].size, info[i].offset));
++
++ if (info[i].width == 0 || info[i].height == 0)
++ {
++ g_set_error (error, G_FILE_ERROR, 0,
++ _("Icon #%d has zero width or height"), i);
++ g_free (info);
++ g_free (entries);
++ return NULL;
++ }
+ }
+
+ g_free (entries);
++
+ return info;
+ }
+
+@@ -256,10 +275,10 @@ ico_read_png (FILE *fp,
+ gint i;
+
+ png_ptr = png_create_read_struct (PNG_LIBPNG_VER_STRING, NULL, NULL, NULL);
+- if (! png_ptr )
++ if (! png_ptr)
+ return FALSE;
+ info = png_create_info_struct (png_ptr);
+- if (! info )
++ if (! info)
+ {
+ png_destroy_read_struct (&png_ptr, NULL, NULL);
+ return FALSE;
+@@ -287,14 +306,14 @@ ico_read_png (FILE *fp,
+ {
+ case PNG_COLOR_TYPE_GRAY:
+ png_set_expand_gray_1_2_4_to_8 (png_ptr);
+- if ( bit_depth == 16 )
++ if (bit_depth == 16)
+ png_set_strip_16 (png_ptr);
+ png_set_gray_to_rgb (png_ptr);
+ png_set_add_alpha (png_ptr, 0xff, PNG_FILLER_AFTER);
+ break;
+ case PNG_COLOR_TYPE_GRAY_ALPHA:
+ png_set_expand_gray_1_2_4_to_8 (png_ptr);
+- if ( bit_depth == 16 )
++ if (bit_depth == 16)
+ png_set_strip_16 (png_ptr);
+ png_set_gray_to_rgb (png_ptr);
+ break;
+@@ -427,16 +446,18 @@ ico_read_icon (FILE *fp,
+ data.planes, data.image_size, data.bpp,
+ data.used_clrs, data.important_clrs));
+
+- if (data.planes != 1
+- || data.compression != 0)
++ if (data.planes != 1 ||
++ data.compression != 0)
+ {
+ D(("skipping image: invalid header\n"));
+ return FALSE;
+ }
+
+- if (data.bpp != 1 && data.bpp != 4
+- && data.bpp != 8 && data.bpp != 24
+- && data.bpp != 32)
++ if (data.bpp != 1 &&
++ data.bpp != 4 &&
++ data.bpp != 8 &&
++ data.bpp != 24 &&
++ data.bpp != 32)
+ {
+ D(("skipping image: invalid depth: %i\n", data.bpp));
+ return FALSE;
+@@ -590,8 +611,8 @@ ico_load_layer (FILE *fp,
+ GeglBuffer *buffer;
+ gchar name[ICO_MAXBUF];
+
+- if ( fseek (fp, info->offset, SEEK_SET) < 0
+- || !ico_read_int32 (fp, &first_bytes, 1) )
++ if (fseek (fp, info->offset, SEEK_SET) < 0 ||
++ ! ico_read_int32 (fp, &first_bytes, 1))
+ return -1;
+
+ if (first_bytes == ICO_PNG_MAGIC)
+@@ -643,7 +664,7 @@ ico_load_image (const gchar *filename,
+ gimp_filename_to_utf8 (filename));
+
+ fp = g_fopen (filename, "rb");
+- if (! fp )
++ if (! fp)
+ {
+ g_set_error (error, G_FILE_ERROR, g_file_error_from_errno (errno),
+ _("Could not open '%s' for reading: %s"),
+@@ -658,8 +679,8 @@ ico_load_image (const gchar *filename,
+ return -1;
+ }
+
+- info = ico_read_info (fp, icon_count);
+- if (!info)
++ info = ico_read_info (fp, icon_count, error);
++ if (! info)
+ {
+ fclose (fp);
+ return -1;
+@@ -670,12 +691,12 @@ ico_load_image (const gchar *filename,
+ max_height = 0;
+ for (i = 0; i < icon_count; i++)
+ {
+- if ( info[i].width > max_width )
++ if (info[i].width > max_width)
+ max_width = info[i].width;
+- if ( info[i].height > max_height )
++ if (info[i].height > max_height)
+ max_height = info[i].height;
+ }
+- if ( max_width <= 0 || max_height <= 0 )
++ if (max_width <= 0 || max_height <= 0)
+ {
+ g_free (info);
+ fclose (fp);
+@@ -721,7 +742,7 @@ ico_load_thumbnail_image (const gchar *filename,
+ gimp_filename_to_utf8 (filename));
+
+ fp = g_fopen (filename, "rb");
+- if (! fp )
++ if (! fp)
+ {
+ g_set_error (error, G_FILE_ERROR, g_file_error_from_errno (errno),
+ _("Could not open '%s' for reading: %s"),
+@@ -730,7 +751,7 @@ ico_load_thumbnail_image (const gchar *filename,
+ }
+
+ icon_count = ico_read_init (fp);
+- if (! icon_count )
++ if (! icon_count)
+ {
+ fclose (fp);
+ return -1;
+@@ -739,8 +760,8 @@ ico_load_thumbnail_image (const gchar *filename,
+ D(("*** %s: Microsoft icon file, containing %i icon(s)\n",
+ filename, icon_count));
+
+- info = ico_read_info (fp, icon_count);
+- if (! info )
++ info = ico_read_info (fp, icon_count, error);
++ if (! info)
+ {
+ fclose (fp);
+ return -1;
+@@ -758,9 +779,9 @@ ico_load_thumbnail_image (const gchar *filename,
+
+ match = i;
+ }
+- else if ( w == info[i].width
+- && h == info[i].height
+- && info[i].bpp > bpp )
++ else if (w == info[i].width &&
++ h == info[i].height &&
++ info[i].bpp > bpp)
+ {
+ /* better quality */
+ bpp = info[i].bpp;
+--
+cgit v0.12
+
diff --git a/media-gfx/gimp/files/gimp-2.9.4-gegl-bin.patch b/media-gfx/gimp/files/gimp-2.9.4-gegl-bin.patch
new file mode 100644
index 000000000000..31057b5796df
--- /dev/null
+++ b/media-gfx/gimp/files/gimp-2.9.4-gegl-bin.patch
@@ -0,0 +1,28 @@
+From 8d5de5ce62cd0410c9bccaa77725d0cad051faad Mon Sep 17 00:00:00 2001
+From: Sebastian Pipping <sebastian@pipping.org>
+Date: Mon, 18 Jul 2016 17:42:45 +0200
+Subject: [PATCH] Fix gegl executable name to check for
+
+---
+ configure.ac | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/configure.ac b/configure.ac
+index 45b31b1..0e5be99 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -674,9 +674,9 @@ else
+ fi
+ AC_MSG_RESULT($have_glib_2_43)
+
+-AC_PATH_PROG(GEGL, gegl, no)
++AC_PATH_PROG(GEGL, gegl-0.3, no)
+ if test "x$GEGL" = xno; then
+- add_deps_error([gegl], [Could not find gegl in your PATH.])
++ add_deps_error([gegl], [Could not find gegl-0.3 in your PATH.])
+ fi
+
+
+--
+2.9.2
+
diff --git a/media-gfx/gimp/files/gimp-2.9.4-mkdir-makefile.patch b/media-gfx/gimp/files/gimp-2.9.4-mkdir-makefile.patch
new file mode 100644
index 000000000000..661ad699f5de
--- /dev/null
+++ b/media-gfx/gimp/files/gimp-2.9.4-mkdir-makefile.patch
@@ -0,0 +1,36 @@
+From c081a26345ad1c5bdf6f4ffec27bca517de6d594 Mon Sep 17 00:00:00 2001
+From: Sebastian Pipping <sebastian@pipping.org>
+Date: Sat, 23 Jul 2016 01:02:10 +0200
+Subject: [PATCH] Fix creation of output directories
+
+https://bugs.gentoo.org/show_bug.cgi?id=589394
+---
+ icons/Symbolic-Inverted/Makefile.am | 8 ++++----
+ 1 file changed, 4 insertions(+), 4 deletions(-)
+
+diff --git a/icons/Symbolic-Inverted/Makefile.am b/icons/Symbolic-Inverted/Makefile.am
+index 2981cfc..f3fe6a5 100644
+--- a/icons/Symbolic-Inverted/Makefile.am
++++ b/icons/Symbolic-Inverted/Makefile.am
+@@ -10,14 +10,14 @@ include $(top_srcdir)/icons/icon-list.mk
+ # As exceptions, we do not want to invert some icons.
+ # Just use these as-is: gimp-default-colors, gimp-toilet-paper.png.
+ 12/gimp-default-colors.png: $(top_srcdir)/icons/Symbolic/12/gimp-default-colors.png
+- mkdir -p `dirname $<` && cp -f $< $@
++ mkdir -p `dirname $@` && cp -f $< $@
+ scalable/gimp-default-colors.svg: ../Symbolic/scalable/gimp-default-colors.svg
+- mkdir -p `dirname $<` && cp -f $< $@
++ mkdir -p `dirname $@` && cp -f $< $@
+
+ %/gimp-toilet-paper.png: $(top_srcdir)/icons/Symbolic/$(@D)/gimp-toilet-paper.png
+- mkdir -p `dirname $<` && cp -f $< $@
++ mkdir -p `dirname $@` && cp -f $< $@
+ scalable/gimp-toilet-paper.svg: ../Symbolic/scalable/gimp-toilet-paper.svg
+- mkdir -p `dirname $<` && cp -f $< $@
++ mkdir -p `dirname $@` && cp -f $< $@
+
+ # Other exceptions: inverted gimp-color-picker-white|black are generated
+ # from each other.
+--
+2.9.2
+
diff --git a/media-gfx/gimp/files/gimp-2.9.6-underlinking.patch b/media-gfx/gimp/files/gimp-2.9.6-underlinking.patch
new file mode 100644
index 000000000000..9208c2f329b3
--- /dev/null
+++ b/media-gfx/gimp/files/gimp-2.9.6-underlinking.patch
@@ -0,0 +1,20 @@
+diff --git a/libgimpbase/Makefile.am b/libgimpbase/Makefile.am
+index a1a6719..85c8518 100644
+--- a/libgimpbase/Makefile.am
++++ b/libgimpbase/Makefile.am
+@@ -22,6 +22,7 @@ uninstall-libtool-import-lib:
+ -rm $(DESTDIR)$(libdir)/libgimpbase-$(GIMP_API_VERSION).dll.a
+ -rm $(DESTDIR)$(libdir)/gimpbase.def
+ else
++libm = -lm
+ install-libtool-import-lib:
+ uninstall-libtool-import-lib:
+ endif
+@@ -169,6 +170,7 @@ EXTRA_libgimpbase_@GIMP_API_VERSION@_la_DEPENDENCIES = $(gimpbase_def)
+ libgimpbase_@GIMP_API_VERSION@_la_LIBADD = \
+ $(GIO_LIBS) \
+ $(GEXIV2_LIBS) \
++ $(libm) \
+ $(ole32_lib)
+
+ install-data-local: install-ms-lib install-libtool-import-lib
diff --git a/media-gfx/gimp/gimp-2.8.14-r2.ebuild b/media-gfx/gimp/gimp-2.8.14-r2.ebuild
new file mode 100644
index 000000000000..d697e22cff94
--- /dev/null
+++ b/media-gfx/gimp/gimp-2.8.14-r2.ebuild
@@ -0,0 +1,170 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+PYTHON_COMPAT=( python2_7 )
+
+inherit versionator virtualx autotools eutils gnome2 fdo-mime multilib python-single-r1
+
+DESCRIPTION="GNU Image Manipulation Program"
+HOMEPAGE="https://www.gimp.org/"
+SRC_URI="mirror://gimp/v$(get_version_component_range 1-2)/${P}.tar.bz2"
+LICENSE="GPL-3 LGPL-3"
+SLOT="2"
+KEYWORDS="alpha amd64 ~arm hppa ia64 ~mips ppc ppc64 sparc x86 ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris ~x86-solaris"
+
+LANGS="am ar ast az be bg br ca ca@valencia cs csb da de dz el en_CA en_GB eo es et eu fa fi fr ga gl gu he hi hr hu id is it ja ka kk km kn ko lt lv mk ml ms my nb nds ne nl nn oc pa pl pt pt_BR ro ru rw si sk sl sr sr@latin sv ta te th tr tt uk vi xh yi zh_CN zh_HK zh_TW"
+IUSE="alsa aalib altivec aqua bzip2 curl dbus debug doc exif gnome postscript jpeg jpeg2k lcms cpu_flags_x86_mmx mng pdf png python smp cpu_flags_x86_sse svg tiff udev webkit wmf xpm"
+
+for lang in ${LANGS}; do
+ IUSE+=" linguas_${lang}"
+done
+
+RDEPEND=">=dev-libs/glib-2.30.2:2
+ >=dev-libs/atk-2.2.0
+ >=x11-libs/gtk+-2.24.10:2
+ >=x11-libs/gdk-pixbuf-2.24.1:2
+ >=x11-libs/cairo-1.10.2
+ >=x11-libs/pango-1.29.4
+ xpm? ( x11-libs/libXpm )
+ >=media-libs/freetype-2.1.7
+ >=media-libs/fontconfig-2.2.0
+ sys-libs/zlib
+ dev-libs/libxml2
+ dev-libs/libxslt
+ x11-themes/hicolor-icon-theme
+ >=media-libs/babl-0.1.10
+ >=media-libs/gegl-0.2.0:0
+ aalib? ( media-libs/aalib )
+ alsa? ( media-libs/alsa-lib )
+ aqua? ( x11-libs/gtk-mac-integration )
+ curl? ( net-misc/curl )
+ dbus? ( dev-libs/dbus-glib )
+ gnome? ( gnome-base/gvfs )
+ webkit? ( >=net-libs/webkit-gtk-1.6.1:2 )
+ jpeg? ( virtual/jpeg:0 )
+ jpeg2k? ( media-libs/jasper:= )
+ exif? ( >=media-libs/libexif-0.6.15 )
+ lcms? ( >=media-libs/lcms-2.2:2 )
+ mng? ( media-libs/libmng )
+ pdf? ( >=app-text/poppler-0.12.4[cairo] )
+ png? ( >=media-libs/libpng-1.2.37:0 )
+ python? (
+ ${PYTHON_DEPS}
+ >=dev-python/pygtk-2.10.4:2[${PYTHON_USEDEP}]
+ )
+ tiff? ( >=media-libs/tiff-3.5.7:0 )
+ svg? ( >=gnome-base/librsvg-2.36.0:2 )
+ wmf? ( >=media-libs/libwmf-0.2.8 )
+ x11-libs/libXcursor
+ sys-libs/zlib
+ bzip2? ( app-arch/bzip2 )
+ postscript? ( app-text/ghostscript-gpl )
+ udev? ( virtual/libgudev:= )"
+DEPEND="${RDEPEND}
+ sys-apps/findutils
+ virtual/pkgconfig
+ >=dev-util/intltool-0.40.1
+ >=sys-devel/gettext-0.19
+ doc? ( >=dev-util/gtk-doc-1 )
+ >=sys-devel/libtool-2.2
+ >=sys-devel/automake-1.11
+ dev-util/gtk-doc-am" # due to our call to eautoreconf below (bug #386453)
+
+DOCS="AUTHORS ChangeLog* HACKING NEWS README*"
+
+S="${WORKDIR}"/${P}
+
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
+
+pkg_setup() {
+ G2CONF="--enable-default-binary \
+ --disable-silent-rules \
+ $(use_with !aqua x) \
+ $(use_with aalib aa) \
+ $(use_with alsa) \
+ $(use_enable altivec) \
+ $(use_with bzip2) \
+ $(use_with curl libcurl) \
+ $(use_with dbus) \
+ $(use_with gnome gvfs) \
+ $(use_with webkit) \
+ $(use_with jpeg libjpeg) \
+ $(use_with jpeg2k libjasper) \
+ $(use_with exif libexif) \
+ $(use_with lcms lcms lcms2) \
+ $(use_with postscript gs) \
+ $(use_enable cpu_flags_x86_mmx mmx) \
+ $(use_with mng libmng) \
+ $(use_with pdf poppler) \
+ $(use_with png libpng) \
+ $(use_enable python) \
+ $(use_enable smp mp) \
+ $(use_enable cpu_flags_x86_sse sse) \
+ $(use_with svg librsvg) \
+ $(use_with tiff libtiff) \
+ $(use_with udev gudev) \
+ $(use_with wmf) \
+ --with-xmc \
+ $(use_with xpm libxpm) \
+ --without-xvfb-run"
+
+ if use python; then
+ python-single-r1_pkg_setup
+ fi
+}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-blend-center.patch # bug 558878
+ epatch "${FILESDIR}"/${PN}-2.7.4-no-deprecation.patch # bug 395695, comment 9 and 16
+ epatch "${FILESDIR}"/${PN}-2.8.10-clang.patch # bug 449370 compile with clang
+ epatch "${FILESDIR}"/${PN}-2.9.2-CVE-2016-4994.patch # bug 586666
+
+ sed -i -e 's/== "xquartz"/= "xquartz"/' configure.ac || die #494864
+ eautoreconf # If you remove this: remove dev-util/gtk-doc-am from DEPEND, too
+
+ gnome2_src_prepare
+}
+
+_clean_up_locales() {
+ einfo "Cleaning up locales..."
+ for lang in ${LANGS}; do
+ use "linguas_${lang}" && {
+ einfo "- keeping ${lang}"
+ continue
+ }
+ rm -Rf "${ED}"/usr/share/locale/"${lang}" || die
+ done
+}
+
+src_test() {
+ Xemake check
+}
+
+src_install() {
+ gnome2_src_install
+
+ if use python; then
+ python_optimize
+ fi
+
+ # Workaround for bug #321111 to give GIMP the least
+ # precedence on PDF documents by default
+ mv "${ED}"/usr/share/applications/{,zzz-}gimp.desktop || die
+
+ prune_libtool_files --all
+
+ # Prevent dead symlink gimp-console.1 from downstream man page compression (bug #433527)
+ local gimp_app_version=$(get_version_component_range 1-2)
+ mv "${ED}"/usr/share/man/man1/gimp-console{-${gimp_app_version},}.1 || die
+
+ _clean_up_locales
+}
+
+pkg_postinst() {
+ gnome2_pkg_postinst
+}
+
+pkg_postrm() {
+ gnome2_pkg_postrm
+}
diff --git a/media-gfx/gimp/gimp-2.8.14-r4.ebuild b/media-gfx/gimp/gimp-2.8.14-r4.ebuild
new file mode 100644
index 000000000000..0f09309d6927
--- /dev/null
+++ b/media-gfx/gimp/gimp-2.8.14-r4.ebuild
@@ -0,0 +1,170 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+PYTHON_COMPAT=( python2_7 )
+
+inherit versionator virtualx autotools eutils gnome2 fdo-mime multilib python-single-r1
+
+DESCRIPTION="GNU Image Manipulation Program"
+HOMEPAGE="https://www.gimp.org/"
+SRC_URI="mirror://gimp/v$(get_version_component_range 1-2)/${P}.tar.bz2"
+LICENSE="GPL-3 LGPL-3"
+SLOT="2"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris ~x86-solaris"
+
+LANGS="am ar ast az be bg br ca ca@valencia cs csb da de dz el en_CA en_GB eo es et eu fa fi fr ga gl gu he hi hr hu id is it ja ka kk km kn ko lt lv mk ml ms my nb nds ne nl nn oc pa pl pt pt_BR ro ru rw si sk sl sr sr@latin sv ta te th tr tt uk vi xh yi zh_CN zh_HK zh_TW"
+IUSE="alsa aalib altivec aqua bzip2 curl dbus debug doc exif gnome postscript jpeg jpeg2k lcms cpu_flags_x86_mmx mng pdf png python smp cpu_flags_x86_sse svg tiff udev wmf xpm"
+
+for lang in ${LANGS}; do
+ IUSE+=" linguas_${lang}"
+done
+
+RDEPEND=">=dev-libs/glib-2.30.2:2
+ >=dev-libs/atk-2.2.0
+ >=x11-libs/gtk+-2.24.10:2
+ >=x11-libs/gdk-pixbuf-2.24.1:2
+ >=x11-libs/cairo-1.10.2
+ >=x11-libs/pango-1.29.4
+ xpm? ( x11-libs/libXpm )
+ >=media-libs/freetype-2.1.7
+ >=media-libs/fontconfig-2.2.0
+ sys-libs/zlib
+ dev-libs/libxml2
+ dev-libs/libxslt
+ x11-themes/hicolor-icon-theme
+ >=media-libs/babl-0.1.10
+ >=media-libs/gegl-0.2.0:0
+ aalib? ( media-libs/aalib )
+ alsa? ( media-libs/alsa-lib )
+ aqua? ( x11-libs/gtk-mac-integration )
+ curl? ( net-misc/curl )
+ dbus? ( dev-libs/dbus-glib )
+ gnome? ( gnome-base/gvfs )
+ jpeg? ( virtual/jpeg:0 )
+ jpeg2k? ( media-libs/jasper:= )
+ exif? ( >=media-libs/libexif-0.6.15 )
+ lcms? ( >=media-libs/lcms-2.2:2 )
+ mng? ( media-libs/libmng )
+ pdf? ( >=app-text/poppler-0.12.4[cairo] )
+ png? ( >=media-libs/libpng-1.2.37:0 )
+ python? (
+ ${PYTHON_DEPS}
+ >=dev-python/pygtk-2.10.4:2[${PYTHON_USEDEP}]
+ )
+ tiff? ( >=media-libs/tiff-3.5.7:0 )
+ svg? ( >=gnome-base/librsvg-2.36.0:2 )
+ wmf? ( >=media-libs/libwmf-0.2.8 )
+ x11-libs/libXcursor
+ sys-libs/zlib
+ bzip2? ( app-arch/bzip2 )
+ postscript? ( app-text/ghostscript-gpl )
+ udev? ( virtual/libgudev:= )"
+DEPEND="${RDEPEND}
+ sys-apps/findutils
+ virtual/pkgconfig
+ >=dev-util/intltool-0.40.1
+ >=sys-devel/gettext-0.19
+ doc? ( >=dev-util/gtk-doc-1 )
+ >=sys-devel/libtool-2.2
+ >=sys-devel/automake-1.11
+ dev-util/gtk-doc-am" # due to our call to eautoreconf below (bug #386453)
+
+DOCS="AUTHORS ChangeLog* HACKING NEWS README*"
+
+S="${WORKDIR}"/${P}
+
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
+
+pkg_setup() {
+ G2CONF="--enable-default-binary \
+ --disable-silent-rules \
+ $(use_with !aqua x) \
+ $(use_with aalib aa) \
+ $(use_with alsa) \
+ $(use_enable altivec) \
+ $(use_with bzip2) \
+ $(use_with curl libcurl) \
+ $(use_with dbus) \
+ $(use_with gnome gvfs) \
+ --without-webkit \
+ $(use_with jpeg libjpeg) \
+ $(use_with jpeg2k libjasper) \
+ $(use_with exif libexif) \
+ $(use_with lcms lcms lcms2) \
+ $(use_with postscript gs) \
+ $(use_enable cpu_flags_x86_mmx mmx) \
+ $(use_with mng libmng) \
+ $(use_with pdf poppler) \
+ $(use_with png libpng) \
+ $(use_enable python) \
+ $(use_enable smp mp) \
+ $(use_enable cpu_flags_x86_sse sse) \
+ $(use_with svg librsvg) \
+ $(use_with tiff libtiff) \
+ $(use_with udev gudev) \
+ $(use_with wmf) \
+ --with-xmc \
+ $(use_with xpm libxpm) \
+ --without-xvfb-run"
+
+ if use python; then
+ python-single-r1_pkg_setup
+ fi
+}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-blend-center.patch # bug 558878
+ epatch "${FILESDIR}"/${PN}-2.7.4-no-deprecation.patch # bug 395695, comment 9 and 16
+ epatch "${FILESDIR}"/${PN}-2.8.10-clang.patch # bug 449370 compile with clang
+ epatch "${FILESDIR}"/${PN}-2.9.2-CVE-2016-4994.patch # bug 586666
+ epatch "${FILESDIR}"/${PN}-2.9.4-CVE-2007-3126.patch # bug 618310
+
+ sed -i -e 's/== "xquartz"/= "xquartz"/' configure.ac || die #494864
+ eautoreconf # If you remove this: remove dev-util/gtk-doc-am from DEPEND, too
+
+ gnome2_src_prepare
+}
+
+_clean_up_locales() {
+ einfo "Cleaning up locales..."
+ for lang in ${LANGS}; do
+ use "linguas_${lang}" && {
+ einfo "- keeping ${lang}"
+ continue
+ }
+ rm -Rf "${ED}"/usr/share/locale/"${lang}" || die
+ done
+}
+
+src_test() {
+ Xemake check
+}
+
+src_install() {
+ gnome2_src_install
+
+ if use python; then
+ python_optimize
+ fi
+
+ # Workaround for bug #321111 to give GIMP the least
+ # precedence on PDF documents by default
+ mv "${ED}"/usr/share/applications/{,zzz-}gimp.desktop || die
+
+ prune_libtool_files --all
+
+ # Prevent dead symlink gimp-console.1 from downstream man page compression (bug #433527)
+ local gimp_app_version=$(get_version_component_range 1-2)
+ mv "${ED}"/usr/share/man/man1/gimp-console{-${gimp_app_version},}.1 || die
+
+ _clean_up_locales
+}
+
+pkg_postinst() {
+ gnome2_pkg_postinst
+}
+
+pkg_postrm() {
+ gnome2_pkg_postrm
+}
diff --git a/media-gfx/gimp/gimp-2.8.20-r1.ebuild b/media-gfx/gimp/gimp-2.8.20-r1.ebuild
new file mode 100644
index 000000000000..36bb5254dd15
--- /dev/null
+++ b/media-gfx/gimp/gimp-2.8.20-r1.ebuild
@@ -0,0 +1,169 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+PYTHON_COMPAT=( python2_7 )
+
+inherit versionator virtualx autotools eutils gnome2 fdo-mime multilib python-single-r1
+
+DESCRIPTION="GNU Image Manipulation Program"
+HOMEPAGE="https://www.gimp.org/"
+SRC_URI="mirror://gimp/v$(get_version_component_range 1-2)/${P}.tar.bz2"
+LICENSE="GPL-3 LGPL-3"
+SLOT="2"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris ~x86-solaris"
+
+LANGS="am ar ast az be bg br ca ca@valencia cs csb da de dz el en_CA en_GB eo es et eu fa fi fr ga gl gu he hi hr hu id is it ja ka kk km kn ko lt lv mk ml ms my nb nds ne nl nn oc pa pl pt pt_BR ro ru rw si sk sl sr sr@latin sv ta te th tr tt uk vi xh yi zh_CN zh_HK zh_TW"
+IUSE="alsa aalib altivec aqua bzip2 curl dbus debug doc exif gnome postscript jpeg jpeg2k lcms cpu_flags_x86_mmx mng pdf png python smp cpu_flags_x86_sse svg tiff udev wmf xpm"
+
+for lang in ${LANGS}; do
+ IUSE+=" linguas_${lang}"
+done
+
+RDEPEND=">=dev-libs/glib-2.30.2:2
+ >=dev-libs/atk-2.2.0
+ >=x11-libs/gtk+-2.24.10:2
+ >=x11-libs/gdk-pixbuf-2.24.1:2
+ >=x11-libs/cairo-1.10.2
+ >=x11-libs/pango-1.29.4
+ xpm? ( x11-libs/libXpm )
+ >=media-libs/freetype-2.1.7
+ >=media-libs/fontconfig-2.2.0
+ sys-libs/zlib
+ dev-libs/libxml2
+ dev-libs/libxslt
+ x11-themes/hicolor-icon-theme
+ >=media-libs/babl-0.1.10
+ >=media-libs/gegl-0.2.0:0
+ aalib? ( media-libs/aalib )
+ alsa? ( media-libs/alsa-lib )
+ aqua? ( x11-libs/gtk-mac-integration )
+ curl? ( net-misc/curl )
+ dbus? ( dev-libs/dbus-glib )
+ gnome? ( gnome-base/gvfs )
+ jpeg? ( virtual/jpeg:0 )
+ jpeg2k? ( media-libs/jasper:= )
+ exif? ( >=media-libs/libexif-0.6.15 )
+ lcms? ( >=media-libs/lcms-2.2:2 )
+ mng? ( media-libs/libmng )
+ pdf? ( >=app-text/poppler-0.12.4[cairo] )
+ png? ( >=media-libs/libpng-1.2.37:0 )
+ python? (
+ ${PYTHON_DEPS}
+ >=dev-python/pygtk-2.10.4:2[${PYTHON_USEDEP}]
+ )
+ tiff? ( >=media-libs/tiff-3.5.7:0 )
+ svg? ( >=gnome-base/librsvg-2.36.0:2 )
+ wmf? ( >=media-libs/libwmf-0.2.8 )
+ x11-libs/libXcursor
+ sys-libs/zlib
+ bzip2? ( app-arch/bzip2 )
+ postscript? ( app-text/ghostscript-gpl )
+ udev? ( virtual/libgudev:= )"
+DEPEND="${RDEPEND}
+ sys-apps/findutils
+ virtual/pkgconfig
+ >=dev-util/intltool-0.40.1
+ >=sys-devel/gettext-0.19
+ doc? ( >=dev-util/gtk-doc-1 )
+ >=sys-devel/libtool-2.2
+ >=sys-devel/automake-1.11
+ dev-util/gtk-doc-am" # due to our call to eautoreconf below (bug #386453)
+
+DOCS="AUTHORS ChangeLog* HACKING NEWS README*"
+
+S="${WORKDIR}"/${P}
+
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
+
+pkg_setup() {
+ G2CONF="--enable-default-binary \
+ --disable-silent-rules \
+ $(use_with !aqua x) \
+ $(use_with aalib aa) \
+ $(use_with alsa) \
+ $(use_enable altivec) \
+ $(use_with bzip2) \
+ $(use_with curl libcurl) \
+ $(use_with dbus) \
+ $(use_with gnome gvfs) \
+ --without-webkit \
+ $(use_with jpeg libjpeg) \
+ $(use_with jpeg2k libjasper) \
+ $(use_with exif libexif) \
+ $(use_with lcms lcms lcms2) \
+ $(use_with postscript gs) \
+ $(use_enable cpu_flags_x86_mmx mmx) \
+ $(use_with mng libmng) \
+ $(use_with pdf poppler) \
+ $(use_with png libpng) \
+ $(use_enable python) \
+ $(use_enable smp mp) \
+ $(use_enable cpu_flags_x86_sse sse) \
+ $(use_with svg librsvg) \
+ $(use_with tiff libtiff) \
+ $(use_with udev gudev) \
+ $(use_with wmf) \
+ --with-xmc \
+ $(use_with xpm libxpm) \
+ --without-xvfb-run"
+
+ if use python; then
+ python-single-r1_pkg_setup
+ fi
+}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-2.8.14-blend-center.patch # bug 558878
+ epatch "${FILESDIR}"/${PN}-2.7.4-no-deprecation.patch # bug 395695, comment 9 and 16
+ epatch "${FILESDIR}"/${PN}-2.8.10-clang.patch # bug 449370 compile with clang
+ epatch "${FILESDIR}"/${PN}-2.9.4-CVE-2007-3126.patch # bug 618310
+
+ sed -i -e 's/== "xquartz"/= "xquartz"/' configure.ac || die #494864
+ eautoreconf # If you remove this: remove dev-util/gtk-doc-am from DEPEND, too
+
+ gnome2_src_prepare
+}
+
+_clean_up_locales() {
+ einfo "Cleaning up locales..."
+ for lang in ${LANGS}; do
+ use "linguas_${lang}" && {
+ einfo "- keeping ${lang}"
+ continue
+ }
+ rm -Rf "${ED}"/usr/share/locale/"${lang}" || die
+ done
+}
+
+src_test() {
+ Xemake check
+}
+
+src_install() {
+ gnome2_src_install
+
+ if use python; then
+ python_optimize
+ fi
+
+ # Workaround for bug #321111 to give GIMP the least
+ # precedence on PDF documents by default
+ mv "${ED}"/usr/share/applications/{,zzz-}gimp.desktop || die
+
+ prune_libtool_files --all
+
+ # Prevent dead symlink gimp-console.1 from downstream man page compression (bug #433527)
+ local gimp_app_version=$(get_version_component_range 1-2)
+ mv "${ED}"/usr/share/man/man1/gimp-console{-${gimp_app_version},}.1 || die
+
+ _clean_up_locales
+}
+
+pkg_postinst() {
+ gnome2_pkg_postinst
+}
+
+pkg_postrm() {
+ gnome2_pkg_postrm
+}
diff --git a/media-gfx/gimp/gimp-2.8.22.ebuild b/media-gfx/gimp/gimp-2.8.22.ebuild
new file mode 100644
index 000000000000..51de3fe64779
--- /dev/null
+++ b/media-gfx/gimp/gimp-2.8.22.ebuild
@@ -0,0 +1,168 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+PYTHON_COMPAT=( python2_7 )
+
+inherit versionator virtualx autotools eutils gnome2 fdo-mime multilib python-single-r1
+
+DESCRIPTION="GNU Image Manipulation Program"
+HOMEPAGE="https://www.gimp.org/"
+SRC_URI="mirror://gimp/v$(get_version_component_range 1-2)/${P}.tar.bz2"
+LICENSE="GPL-3 LGPL-3"
+SLOT="2"
+KEYWORDS="alpha amd64 ~arm ~hppa ia64 ~mips ppc ppc64 sparc x86 ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris ~x86-solaris"
+
+LANGS="am ar ast az be bg br ca ca@valencia cs csb da de dz el en_CA en_GB eo es et eu fa fi fr ga gl gu he hi hr hu id is it ja ka kk km kn ko lt lv mk ml ms my nb nds ne nl nn oc pa pl pt pt_BR ro ru rw si sk sl sr sr@latin sv ta te th tr tt uk vi xh yi zh_CN zh_HK zh_TW"
+IUSE="alsa aalib altivec aqua bzip2 curl dbus debug doc exif gnome postscript jpeg jpeg2k lcms cpu_flags_x86_mmx mng pdf png python smp cpu_flags_x86_sse svg tiff udev wmf xpm"
+
+for lang in ${LANGS}; do
+ IUSE+=" linguas_${lang}"
+done
+
+RDEPEND=">=dev-libs/glib-2.30.2:2
+ >=dev-libs/atk-2.2.0
+ >=x11-libs/gtk+-2.24.10:2
+ >=x11-libs/gdk-pixbuf-2.24.1:2
+ >=x11-libs/cairo-1.10.2
+ >=x11-libs/pango-1.29.4
+ xpm? ( x11-libs/libXpm )
+ >=media-libs/freetype-2.1.7
+ >=media-libs/fontconfig-2.2.0
+ sys-libs/zlib
+ dev-libs/libxml2
+ dev-libs/libxslt
+ x11-themes/hicolor-icon-theme
+ >=media-libs/babl-0.1.10
+ >=media-libs/gegl-0.2.0:0
+ aalib? ( media-libs/aalib )
+ alsa? ( media-libs/alsa-lib )
+ aqua? ( x11-libs/gtk-mac-integration )
+ curl? ( net-misc/curl )
+ dbus? ( dev-libs/dbus-glib )
+ gnome? ( gnome-base/gvfs )
+ jpeg? ( virtual/jpeg:0 )
+ jpeg2k? ( media-libs/jasper:= )
+ exif? ( >=media-libs/libexif-0.6.15 )
+ lcms? ( >=media-libs/lcms-2.2:2 )
+ mng? ( media-libs/libmng )
+ pdf? ( >=app-text/poppler-0.12.4[cairo] )
+ png? ( >=media-libs/libpng-1.2.37:0 )
+ python? (
+ ${PYTHON_DEPS}
+ >=dev-python/pygtk-2.10.4:2[${PYTHON_USEDEP}]
+ )
+ tiff? ( >=media-libs/tiff-3.5.7:0 )
+ svg? ( >=gnome-base/librsvg-2.36.0:2 )
+ wmf? ( >=media-libs/libwmf-0.2.8 )
+ x11-libs/libXcursor
+ sys-libs/zlib
+ bzip2? ( app-arch/bzip2 )
+ postscript? ( app-text/ghostscript-gpl )
+ udev? ( virtual/libgudev:= )"
+DEPEND="${RDEPEND}
+ sys-apps/findutils
+ virtual/pkgconfig
+ >=dev-util/intltool-0.40.1
+ >=sys-devel/gettext-0.19
+ doc? ( >=dev-util/gtk-doc-1 )
+ >=sys-devel/libtool-2.2
+ >=sys-devel/automake-1.11
+ dev-util/gtk-doc-am" # due to our call to eautoreconf below (bug #386453)
+
+DOCS="AUTHORS ChangeLog* HACKING NEWS README*"
+
+S="${WORKDIR}"/${P}
+
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
+
+pkg_setup() {
+ G2CONF="--enable-default-binary \
+ --disable-silent-rules \
+ $(use_with !aqua x) \
+ $(use_with aalib aa) \
+ $(use_with alsa) \
+ $(use_enable altivec) \
+ $(use_with bzip2) \
+ $(use_with curl libcurl) \
+ $(use_with dbus) \
+ $(use_with gnome gvfs) \
+ --without-webkit \
+ $(use_with jpeg libjpeg) \
+ $(use_with jpeg2k libjasper) \
+ $(use_with exif libexif) \
+ $(use_with lcms lcms lcms2) \
+ $(use_with postscript gs) \
+ $(use_enable cpu_flags_x86_mmx mmx) \
+ $(use_with mng libmng) \
+ $(use_with pdf poppler) \
+ $(use_with png libpng) \
+ $(use_enable python) \
+ $(use_enable smp mp) \
+ $(use_enable cpu_flags_x86_sse sse) \
+ $(use_with svg librsvg) \
+ $(use_with tiff libtiff) \
+ $(use_with udev gudev) \
+ $(use_with wmf) \
+ --with-xmc \
+ $(use_with xpm libxpm) \
+ --without-xvfb-run"
+
+ if use python; then
+ python-single-r1_pkg_setup
+ fi
+}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-2.8.14-blend-center.patch # bug 558878
+ epatch "${FILESDIR}"/${PN}-2.7.4-no-deprecation.patch # bug 395695, comment 9 and 16
+ epatch "${FILESDIR}"/${PN}-2.8.10-clang.patch # bug 449370 compile with clang
+
+ sed -i -e 's/== "xquartz"/= "xquartz"/' configure.ac || die #494864
+ eautoreconf # If you remove this: remove dev-util/gtk-doc-am from DEPEND, too
+
+ gnome2_src_prepare
+}
+
+_clean_up_locales() {
+ einfo "Cleaning up locales..."
+ for lang in ${LANGS}; do
+ use "linguas_${lang}" && {
+ einfo "- keeping ${lang}"
+ continue
+ }
+ rm -Rf "${ED}"/usr/share/locale/"${lang}" || die
+ done
+}
+
+src_test() {
+ Xemake check
+}
+
+src_install() {
+ gnome2_src_install
+
+ if use python; then
+ python_optimize
+ fi
+
+ # Workaround for bug #321111 to give GIMP the least
+ # precedence on PDF documents by default
+ mv "${ED}"/usr/share/applications/{,zzz-}gimp.desktop || die
+
+ prune_libtool_files --all
+
+ # Prevent dead symlink gimp-console.1 from downstream man page compression (bug #433527)
+ local gimp_app_version=$(get_version_component_range 1-2)
+ mv "${ED}"/usr/share/man/man1/gimp-console{-${gimp_app_version},}.1 || die
+
+ _clean_up_locales
+}
+
+pkg_postinst() {
+ gnome2_pkg_postinst
+}
+
+pkg_postrm() {
+ gnome2_pkg_postrm
+}
diff --git a/media-gfx/gimp/gimp-2.9.4-r3.ebuild b/media-gfx/gimp/gimp-2.9.4-r3.ebuild
new file mode 100644
index 000000000000..8c75005f2e51
--- /dev/null
+++ b/media-gfx/gimp/gimp-2.9.4-r3.ebuild
@@ -0,0 +1,191 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+PYTHON_COMPAT=( python2_7 )
+
+inherit versionator virtualx autotools eutils gnome2 fdo-mime multilib python-single-r1
+
+DESCRIPTION="GNU Image Manipulation Program"
+HOMEPAGE="https://www.gimp.org/"
+SRC_URI="https://www.hartwork.org/public/${P}-r1.tar.xz"
+LICENSE="GPL-3 LGPL-3"
+SLOT="2"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc64 ~x86"
+
+LANGS="am ar ast az be bg br ca ca@valencia cs csb da de dz el en_CA en_GB eo es et eu fa fi fr ga gl gu he hi hr hu id is it ja ka kk km kn ko lt lv mk ml ms my nb nds ne nl nn oc pa pl pt pt_BR ro ru rw si sk sl sr sr@latin sv ta te th tr tt uk vi xh yi zh_CN zh_HK zh_TW"
+IUSE="alsa aalib altivec aqua debug doc openexr gnome postscript jpeg2k cpu_flags_x86_mmx mng pdf python smp cpu_flags_x86_sse udev vector-icons wmf xpm"
+
+for lang in ${LANGS}; do
+ IUSE+=" linguas_${lang}"
+done
+
+RDEPEND=">=dev-libs/glib-2.30.2:2
+ >=dev-libs/atk-2.2.0
+ >=x11-libs/gtk+-2.24.10:2
+ dev-util/gtk-update-icon-cache
+ >=x11-libs/gdk-pixbuf-2.31:2
+ >=x11-libs/cairo-1.12.2
+ >=x11-libs/pango-1.29.4
+ xpm? ( x11-libs/libXpm )
+ >=media-libs/freetype-2.1.7
+ >=media-libs/harfbuzz-0.9.19
+ >=media-libs/gexiv2-0.6.1
+ >=media-libs/libmypaint-1.3.0_beta0[gegl]
+ >=media-libs/fontconfig-2.2.0
+ sys-libs/zlib
+ dev-libs/libxml2
+ dev-libs/libxslt
+ x11-themes/hicolor-icon-theme
+ >=media-libs/babl-0.1.18
+ >=media-libs/gegl-0.3.8:0.3[cairo]
+ >=dev-libs/glib-2.43
+ aalib? ( media-libs/aalib )
+ alsa? ( media-libs/alsa-lib )
+ aqua? ( x11-libs/gtk-mac-integration )
+ gnome? ( gnome-base/gvfs )
+ virtual/jpeg:0
+ jpeg2k? ( media-libs/jasper:= )
+ >=media-libs/lcms-2.2:2
+ mng? ( media-libs/libmng )
+ openexr? ( >=media-libs/openexr-1.6.1 )
+ pdf? ( >=app-text/poppler-0.12.4[cairo] >=app-text/poppler-data-0.4.7 )
+ >=media-libs/libpng-1.2.37:0
+ python? (
+ ${PYTHON_DEPS}
+ >=dev-python/pygtk-2.10.4:2[${PYTHON_USEDEP}]
+ >=dev-python/pycairo-1.0.2[${PYTHON_USEDEP}]
+ )
+ >=media-libs/tiff-3.5.7:0
+ >=gnome-base/librsvg-2.36.0:2
+ wmf? ( >=media-libs/libwmf-0.2.8 )
+ x11-libs/libXcursor
+ sys-libs/zlib
+ app-arch/bzip2
+ >=app-arch/xz-utils-5.0.0
+ postscript? ( app-text/ghostscript-gpl )
+ udev? ( virtual/libgudev:= )"
+DEPEND="${RDEPEND}
+ sys-apps/findutils
+ virtual/pkgconfig
+ >=dev-util/intltool-0.40.1
+ >=sys-devel/gettext-0.19
+ doc? ( >=dev-util/gtk-doc-1 )
+ >=sys-devel/libtool-2.2
+ >=sys-devel/automake-1.11
+ dev-util/gtk-doc-am" # due to our call to eautoreconf below (bug #386453)
+
+DOCS="AUTHORS ChangeLog* HACKING NEWS README*"
+
+S="${WORKDIR}"/${P}-r1
+
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
+
+pkg_setup() {
+ G2CONF="--enable-default-binary \
+ --disable-silent-rules \
+ $(use_with !aqua x) \
+ $(use_with aalib aa) \
+ $(use_with alsa) \
+ $(use_enable altivec) \
+ --without-webkit \
+ $(use_with jpeg2k libjasper) \
+ $(use_with postscript gs) \
+ $(use_enable cpu_flags_x86_mmx mmx) \
+ $(use_with mng libmng) \
+ $(use_with openexr) \
+ $(use_with pdf poppler) \
+ $(use_enable python) \
+ $(use_enable smp mp) \
+ $(use_enable cpu_flags_x86_sse sse) \
+ --with-librsvg \
+ $(use_with udev gudev) \
+ $(use_with wmf) \
+ --with-xmc \
+ $(use_with xpm libxpm) \
+ $(use_enable vector-icons) \
+ --without-xvfb-run"
+
+ if use python; then
+ python-single-r1_pkg_setup
+ fi
+}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-2.9.2-no-deprecation.patch # bug 395695, comment 9 and 16
+ epatch "${FILESDIR}"/${PN}-2.9.4-CVE-2007-3126.patch # bug 618310
+
+ # Bug 589394
+ rm icons/Symbolic-Inverted/Makefile.in || die
+ epatch "${FILESDIR}"/${PN}-2.9.4-mkdir-makefile.patch
+
+ sed -i -e 's/== "xquartz"/= "xquartz"/' configure.ac || die #494864
+ eautoreconf # If you remove this: remove dev-util/gtk-doc-am from DEPEND, too
+
+ gnome2_src_prepare
+}
+
+src_configure() {
+ gnome2_src_configure \
+ GEGL=/usr/bin/gegl-0.3 \
+ GDBUS_CODEGEN=/bin/false
+}
+
+src_compile() {
+ # Bugs #569738 and #591214
+ local nv
+ for nv in /dev/nvidia-uvm /dev/nvidiactl /dev/nvidia{0..9} ; do
+ # We do not check for existence as they may show up later
+ # https://bugs.gentoo.org/show_bug.cgi?id=569738#c21
+ addwrite "${nv}"
+ done
+ addwrite /dev/dri/ # bug #574038
+ addwrite /dev/ati/ # bug 589198
+ addwrite /proc/mtrr # bug 589198
+
+ export XDG_DATA_DIRS=/usr/share # bug 587004
+ gnome2_src_compile
+}
+
+_clean_up_locales() {
+ einfo "Cleaning up locales..."
+ for lang in ${LANGS}; do
+ use "linguas_${lang}" && {
+ einfo "- keeping ${lang}"
+ continue
+ }
+ rm -Rf "${ED}"/usr/share/locale/"${lang}" || die
+ done
+}
+
+src_test() {
+ Xemake check
+}
+
+src_install() {
+ gnome2_src_install
+
+ if use python; then
+ python_optimize
+ fi
+
+ # Workaround for bug #321111 to give GIMP the least
+ # precedence on PDF documents by default
+ mv "${ED}"/usr/share/applications/{,zzz-}gimp.desktop || die
+
+ prune_libtool_files --all
+
+ # Prevent dead symlink gimp-console.1 from downstream man page compression (bug #433527)
+ local gimp_app_version=$(get_version_component_range 1-2)
+ mv "${ED}"/usr/share/man/man1/gimp-console{-${gimp_app_version},}.1 || die
+
+ _clean_up_locales
+}
+
+pkg_postinst() {
+ gnome2_pkg_postinst
+}
+
+pkg_postrm() {
+ gnome2_pkg_postrm
+}
diff --git a/media-gfx/gimp/gimp-2.9.6.ebuild b/media-gfx/gimp/gimp-2.9.6.ebuild
new file mode 100644
index 000000000000..b0e4b3d055e4
--- /dev/null
+++ b/media-gfx/gimp/gimp-2.9.6.ebuild
@@ -0,0 +1,197 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+PYTHON_COMPAT=( python2_7 )
+
+inherit versionator virtualx autotools eutils gnome2 multilib python-single-r1
+
+DESCRIPTION="GNU Image Manipulation Program"
+HOMEPAGE="https://www.gimp.org/"
+SRC_URI="mirror://gimp/v$(get_version_component_range 1-2)/${P}.tar.bz2"
+LICENSE="GPL-3 LGPL-3"
+SLOT="2"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc64 ~x86"
+
+LANGS="am ar ast az be bg br ca ca@valencia cs csb da de dz el en_CA en_GB eo es et eu fa fi fr ga gl gu he hi hr hu id is it ja ka kk km kn ko lt lv mk ml ms my nb nds ne nl nn oc pa pl pt pt_BR ro ru rw si sk sl sr sr@latin sv ta te th tr tt uk vi xh yi zh_CN zh_HK zh_TW"
+IUSE="alsa aalib altivec aqua debug doc openexr gnome postscript jpeg2k cpu_flags_x86_mmx mng pdf python smp cpu_flags_x86_sse udev vector-icons webp wmf xpm"
+
+for lang in ${LANGS}; do
+ IUSE+=" linguas_${lang}"
+done
+
+RDEPEND=">=dev-libs/glib-2.40.0:2
+ >=dev-libs/atk-2.2.0
+ >=x11-libs/gtk+-2.24.10:2
+ dev-util/gtk-update-icon-cache
+ >=x11-libs/gdk-pixbuf-2.31:2
+ >=x11-libs/cairo-1.12.2
+ >=x11-libs/pango-1.29.4
+ xpm? ( x11-libs/libXpm )
+ >=media-libs/freetype-2.1.7
+ >=media-libs/harfbuzz-0.9.19
+ >=media-libs/gexiv2-0.10.6
+ >=media-libs/libmypaint-1.3.0[gegl]
+ >=media-libs/fontconfig-2.2.0
+ sys-libs/zlib
+ dev-libs/libxml2
+ dev-libs/libxslt
+ x11-themes/hicolor-icon-theme
+ >=media-libs/babl-0.1.30
+ >=media-libs/gegl-0.3.20:0.3[cairo]
+ >=dev-libs/glib-2.43
+ aalib? ( media-libs/aalib )
+ alsa? ( media-libs/alsa-lib )
+ aqua? ( x11-libs/gtk-mac-integration )
+ gnome? ( gnome-base/gvfs )
+ virtual/jpeg:0
+ jpeg2k? ( media-libs/jasper:= )
+ >=media-libs/lcms-2.7:2
+ mng? ( media-libs/libmng )
+ openexr? ( >=media-libs/openexr-1.6.1 )
+ pdf? ( >=app-text/poppler-0.44[cairo] >=app-text/poppler-data-0.4.7 )
+ >=media-libs/libpng-1.6.25:0
+ python? (
+ ${PYTHON_DEPS}
+ >=dev-python/pygtk-2.10.4:2[${PYTHON_USEDEP}]
+ >=dev-python/pycairo-1.0.2[${PYTHON_USEDEP}]
+ )
+ >=media-libs/tiff-3.5.7:0
+ >=gnome-base/librsvg-2.40.6:2
+ webp? ( >=media-libs/libwebp-0.6.0 )
+ wmf? ( >=media-libs/libwmf-0.2.8 )
+ net-libs/glib-networking[ssl]
+ x11-libs/libXcursor
+ sys-libs/zlib
+ app-arch/bzip2
+ >=app-arch/xz-utils-5.0.0
+ postscript? ( app-text/ghostscript-gpl )
+ udev? ( virtual/libgudev:= )"
+DEPEND="${RDEPEND}
+ dev-libs/appstream-glib
+ sys-apps/findutils
+ virtual/pkgconfig
+ >=dev-util/intltool-0.40.1
+ >=sys-devel/gettext-0.19
+ doc? ( >=dev-util/gtk-doc-1 )
+ >=sys-devel/libtool-2.2
+ >=sys-devel/automake-1.11
+ dev-util/gtk-doc-am" # due to our call to eautoreconf below (bug #386453)
+
+DOCS="AUTHORS ChangeLog* HACKING NEWS README*"
+
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
+
+pkg_setup() {
+ if use python; then
+ python-single-r1_pkg_setup
+ fi
+}
+
+src_prepare() {
+ eapply "${FILESDIR}"/${P}-underlinking.patch # from 629304
+ eapply_user
+
+ sed -i -e 's/== "xquartz"/= "xquartz"/' configure.ac || die #494864
+ sed 's:-DGIMP_DISABLE_DEPRECATED:-DGIMP_protect_DISABLE_DEPRECATED:g' -i configure.ac || die #615144
+ eautoreconf # If you remove this: remove dev-util/gtk-doc-am from DEPEND, too
+
+ gnome2_src_prepare
+
+ sed 's:-DGIMP_protect_DISABLE_DEPRECATED:-DGIMP_DISABLE_DEPRECATED:g' -i configure || die #615144
+ fgrep -q GIMP_DISABLE_DEPRECATED configure || die #615144, self-test
+}
+
+src_configure() {
+ local myconf=(
+ GEGL=${EPREFIX}/usr/bin/gegl-0.3
+ GDBUS_CODEGEN=${EPREFIX}/bin/false
+
+ --enable-default-binary
+ --disable-silent-rules
+
+ $(use_with !aqua x)
+ $(use_with aalib aa)
+ $(use_with alsa)
+ $(use_enable altivec)
+ --with-appdata-test
+ --without-webkit
+ $(use_with jpeg2k libjasper)
+ $(use_with postscript gs)
+ $(use_enable cpu_flags_x86_mmx mmx)
+ $(use_with mng libmng)
+ $(use_with openexr)
+ $(use_with webp)
+ $(use_with pdf poppler)
+ $(use_enable python)
+ $(use_enable smp mp)
+ $(use_enable cpu_flags_x86_sse sse)
+ $(use_with udev gudev)
+ $(use_with wmf)
+ --with-xmc
+ $(use_with xpm libxpm)
+ $(use_enable vector-icons)
+ --without-xvfb-run
+ )
+
+ gnome2_src_configure "${myconf[@]}"
+}
+
+src_compile() {
+ # Bugs #569738 and #591214
+ local nv
+ for nv in /dev/nvidia-uvm /dev/nvidiactl /dev/nvidia{0..9} ; do
+ # We do not check for existence as they may show up later
+ # https://bugs.gentoo.org/show_bug.cgi?id=569738#c21
+ addwrite "${nv}"
+ done
+ addwrite /dev/dri/ # bug #574038
+ addwrite /dev/ati/ # bug 589198
+ addwrite /proc/mtrr # bug 589198
+
+ export XDG_DATA_DIRS=${EPREFIX}/usr/share # bug 587004
+ gnome2_src_compile
+}
+
+_clean_up_locales() {
+ einfo "Cleaning up locales..."
+ for lang in ${LANGS}; do
+ use "linguas_${lang}" && {
+ einfo "- keeping ${lang}"
+ continue
+ }
+ rm -Rf "${ED}"/usr/share/locale/"${lang}" || die
+ done
+}
+
+src_test() {
+ virtx emake check
+}
+
+src_install() {
+ gnome2_src_install
+
+ if use python; then
+ python_optimize
+ fi
+
+ # Workaround for bug #321111 to give GIMP the least
+ # precedence on PDF documents by default
+ mv "${ED}"/usr/share/applications/{,zzz-}gimp.desktop || die
+
+ prune_libtool_files --all
+
+ # Prevent dead symlink gimp-console.1 from downstream man page compression (bug #433527)
+ local gimp_app_version=$(get_version_component_range 1-2)
+ mv "${ED}"/usr/share/man/man1/gimp-console{-${gimp_app_version},}.1 || die
+
+ _clean_up_locales
+}
+
+pkg_postinst() {
+ gnome2_pkg_postinst
+}
+
+pkg_postrm() {
+ gnome2_pkg_postrm
+}
diff --git a/media-gfx/gimp/gimp-9999.ebuild b/media-gfx/gimp/gimp-9999.ebuild
new file mode 100644
index 000000000000..e448ccbf5aee
--- /dev/null
+++ b/media-gfx/gimp/gimp-9999.ebuild
@@ -0,0 +1,209 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+PYTHON_COMPAT=( python2_7 )
+
+inherit virtualx autotools eutils gnome2 multilib python-single-r1 git-r3
+
+DESCRIPTION="GNU Image Manipulation Program"
+HOMEPAGE="https://www.gimp.org/"
+EGIT_REPO_URI="https://git.gnome.org/browse/gimp"
+SRC_URI=""
+LICENSE="GPL-3 LGPL-3"
+SLOT="2"
+KEYWORDS=""
+
+LANGS="am ar ast az be bg br ca ca@valencia cs csb da de dz el en_CA en_GB eo es et eu fa fi fr ga gl gu he hi hr hu id is it ja ka kk km kn ko lt lv mk ml ms my nb nds ne nl nn oc pa pl pt pt_BR ro ru rw si sk sl sr sr@latin sv ta te th tr tt uk vi xh yi zh_CN zh_HK zh_TW"
+IUSE="alsa aalib altivec aqua debug doc openexr gnome postscript jpeg2k cpu_flags_x86_mmx mng pdf python smp cpu_flags_x86_sse udev vector-icons webp wmf xpm"
+
+for lang in ${LANGS}; do
+ IUSE+=" linguas_${lang}"
+done
+
+RDEPEND=">=dev-libs/glib-2.40.0:2
+ >=dev-libs/atk-2.2.0
+ >=x11-libs/gtk+-2.24.10:2
+ dev-util/gtk-update-icon-cache
+ >=x11-libs/gdk-pixbuf-2.31:2
+ >=x11-libs/cairo-1.12.2
+ >=x11-libs/pango-1.29.4
+ xpm? ( x11-libs/libXpm )
+ >=media-libs/freetype-2.1.7
+ >=media-libs/harfbuzz-0.9.19
+ >=media-libs/gexiv2-0.10.6
+ >=media-libs/libmypaint-1.3.0[gegl]
+ >=media-libs/fontconfig-2.2.0
+ sys-libs/zlib
+ dev-libs/libxml2
+ dev-libs/libxslt
+ x11-themes/hicolor-icon-theme
+ >=media-libs/babl-0.1.30
+ >=media-libs/gegl-0.3.20:0.3[cairo]
+ >=dev-libs/glib-2.43
+ aalib? ( media-libs/aalib )
+ alsa? ( media-libs/alsa-lib )
+ aqua? ( x11-libs/gtk-mac-integration )
+ gnome? ( gnome-base/gvfs )
+ virtual/jpeg:0
+ jpeg2k? ( media-libs/jasper:= )
+ >=media-libs/lcms-2.7:2
+ mng? ( media-libs/libmng )
+ openexr? ( >=media-libs/openexr-1.6.1 )
+ pdf? ( >=app-text/poppler-0.44[cairo] >=app-text/poppler-data-0.4.7 )
+ >=media-libs/libpng-1.6.25:0
+ python? (
+ ${PYTHON_DEPS}
+ >=dev-python/pygtk-2.10.4:2[${PYTHON_USEDEP}]
+ >=dev-python/pycairo-1.0.2[${PYTHON_USEDEP}]
+ )
+ >=media-libs/tiff-3.5.7:0
+ >=gnome-base/librsvg-2.40.6:2
+ webp? ( >=media-libs/libwebp-0.6.0 )
+ wmf? ( >=media-libs/libwmf-0.2.8 )
+ net-libs/glib-networking[ssl]
+ x11-libs/libXcursor
+ sys-libs/zlib
+ app-arch/bzip2
+ >=app-arch/xz-utils-5.0.0
+ postscript? ( app-text/ghostscript-gpl )
+ udev? ( virtual/libgudev:= )"
+DEPEND="${RDEPEND}
+ dev-util/gdbus-codegen
+ dev-libs/appstream-glib
+ sys-apps/findutils
+ virtual/pkgconfig
+ >=dev-util/intltool-0.40.1
+ >=sys-devel/gettext-0.19
+ doc? ( >=dev-util/gtk-doc-1 )
+ >=sys-devel/libtool-2.2
+ >=sys-devel/autoconf-2.54
+ >=sys-devel/automake-1.11
+ dev-util/gtk-doc-am" # due to our call to eautoreconf below (bug #386453)
+
+DOCS="AUTHORS ChangeLog* HACKING NEWS README*"
+
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
+
+pkg_setup() {
+ if use python; then
+ python-single-r1_pkg_setup
+ fi
+}
+
+src_prepare() {
+ eapply_user
+
+ sed -i -e 's/== "xquartz"/= "xquartz"/' configure.ac || die #494864
+ sed 's:-DGIMP_DISABLE_DEPRECATED:-DGIMP_protect_DISABLE_DEPRECATED:g' -i configure.ac || die #615144
+
+ echo '#!/bin/sh' > py-compile
+ chmod a+x py-compile || die
+ sed -i -e 's:\$srcdir/configure:#:g' autogen.sh
+ local myconf
+ if ! use doc; then
+ myconf="${myconf} --disable-gtk-doc"
+ fi
+ ./autogen.sh ${myconf} || die
+
+ # Fix "libtoolize --force" of autogen.sh (bug #476626)
+ rm install-sh ltmain.sh || die
+ _elibtoolize --copy --install || die
+
+ gnome2_src_prepare
+
+ sed 's:-DGIMP_protect_DISABLE_DEPRECATED:-DGIMP_DISABLE_DEPRECATED:g' -i configure || die #615144
+ fgrep -q GIMP_DISABLE_DEPRECATED configure || die #615144, self-test
+}
+
+src_configure() {
+ local myconf=(
+ GEGL=/usr/bin/gegl-0.3
+
+ --enable-default-binary
+ --disable-silent-rules
+
+ $(use_with !aqua x)
+ $(use_with aalib aa)
+ $(use_with alsa)
+ $(use_enable altivec)
+ --with-appdata-test
+ --without-webkit
+ $(use_with jpeg2k libjasper)
+ $(use_with postscript gs)
+ $(use_enable cpu_flags_x86_mmx mmx)
+ $(use_with mng libmng)
+ $(use_with openexr)
+ $(use_with webp)
+ $(use_with pdf poppler)
+ $(use_enable python)
+ $(use_enable smp mp)
+ $(use_enable cpu_flags_x86_sse sse)
+ $(use_with udev gudev)
+ $(use_with wmf)
+ --with-xmc
+ $(use_with xpm libxpm)
+ $(use_enable vector-icons)
+ --without-xvfb-run
+ )
+
+ gnome2_src_configure "${myconf[@]}"
+}
+
+src_compile() {
+ # Bugs #569738 and #591214
+ local nv
+ for nv in /dev/nvidia-uvm /dev/nvidiactl /dev/nvidia{0..9} ; do
+ # We do not check for existence as they may show up later
+ # https://bugs.gentoo.org/show_bug.cgi?id=569738#c21
+ addwrite "${nv}"
+ done
+ addwrite /dev/dri/ # bug #574038
+ addwrite /dev/ati/ # bug 589198
+ addwrite /proc/mtrr # bug 589198
+
+ export XDG_DATA_DIRS=/usr/share # bug 587004
+ gnome2_src_compile
+}
+
+_clean_up_locales() {
+ einfo "Cleaning up locales..."
+ for lang in ${LANGS}; do
+ use "linguas_${lang}" && {
+ einfo "- keeping ${lang}"
+ continue
+ }
+ rm -Rf "${ED}"/usr/share/locale/"${lang}" || die
+ done
+}
+
+src_test() {
+ virtx emake check
+}
+
+src_install() {
+ gnome2_src_install
+
+ if use python; then
+ python_optimize
+ fi
+
+ # Workaround for bug #321111 to give GIMP the least
+ # precedence on PDF documents by default
+ mv "${ED}"/usr/share/applications/{,zzz-}gimp.desktop || die
+
+ prune_libtool_files --all
+
+ # Prevent dead symlink gimp-console.1 from downstream man page compression (bug #433527)
+ mv "${ED}"/usr/share/man/man1/gimp-console{-*,}.1 || die
+
+ _clean_up_locales
+}
+
+pkg_postinst() {
+ gnome2_pkg_postinst
+}
+
+pkg_postrm() {
+ gnome2_pkg_postrm
+}
diff --git a/media-gfx/gimp/metadata.xml b/media-gfx/gimp/metadata.xml
new file mode 100644
index 000000000000..5bb4b5ca8ae9
--- /dev/null
+++ b/media-gfx/gimp/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>sping@gentoo.org</email>
+ </maintainer>
+ <use>
+ <flag name="smp">
+ Enable support for multiprocessors
+ </flag>
+ <flag name="vector-icons">
+ Enable support for vector icons (experimental)
+ </flag>
+ </use>
+</pkgmetadata>
diff --git a/media-gfx/gliv/Manifest b/media-gfx/gliv/Manifest
new file mode 100644
index 000000000000..a0d8d320b2f0
--- /dev/null
+++ b/media-gfx/gliv/Manifest
@@ -0,0 +1,10 @@
+AUX gliv-1.9.6-as-needed.patch 2864 SHA256 7a2a5a4016c957f7f7ab21ac905c4b73d54c16c0e489e2daa34e2a759eb21ca3 SHA512 594614f5190f9401d7759c26676a43d6a60cc81ca73e79536f5b4969252189d6a45293069f8426ed5e5ffb5d5c8a3f7e103a6243de6d6f182a20331802d16d01 WHIRLPOOL 022a0aecbc4fa26f40485018cd589f525645037a3a1ce30f03d23dafe46367fc63041ffdea921b94d39bfde4e77cf6a2fa467bc488355a1f97185d95618dd3ba
+AUX gliv-1.9.7-as-needed.patch 2374 SHA256 9a475f1bc27bc2d5d34a3e4f33f0d100f6abcfda4a43a45e05af5ad3431ae98c SHA512 8923b579d87079cffec3db5e5f00cc35c3bd516f1a878bc4d0e916150617a4f06d5ba3604d44dd128110e4398de5ab26ee8eef1d85dac74b4122e589eb6ad19d WHIRLPOOL dc6be8e9f01fe0bf3416b0a12c74a6872726b5c210750e5941a7a6c0a36e51fe13ec24288ab56d70d320c96fdb1bc9243fbec911e785f25c2195b27e4426712f
+AUX gliv-1.9.7-destdir.patch 914 SHA256 228017d88637481eca3b9cd82198ad674fa947bba9268d18977425aa566dbaa7 SHA512 1d83c62b470889260365a5ac24de591a8e817dd9d0d10d68cbf1a7ca27b544f44940b37f316956b5a4d79ce33eafb7c41a8c6cd6d943e35fba8e9fbfd1f0c9ed WHIRLPOOL 010e5dce2ee63438536527ad89c98dadfeee3b5706bd4d5a0f2bcf09f9c2ccba54fd5fa2184450039f57276c149b13193b8ea7219d81109dba2372d9c8844f7a
+DIST gliv-1.9.6.tar.bz2 518971 SHA256 aa0f3c780d5fca1eb393deaa5289c024bf3aba5b4f980fc90d4b444906534830 SHA512 bf6e7108308884d50dc47faec7d65ed27c2ea1521cfc526fb8929675d52b3437276da904c8240c5c227d7bca2d0c268311f4fdc9b2d936fecda33318ad6bce6c WHIRLPOOL 3e1690198a9b09355ac5afaf05ef6984f4f352868d0fd2be0087af3953fbf3a5efa01128e302770ee7df7cff0eea2b843213764207d0a4c3d16d2c25c6f8467b
+DIST gliv-1.9.7.tar.bz2 644305 SHA256 5be6d071927dcb371676a9e4e9e4c54e8b2f4842f04dd63727b9a5032ddbcb69 SHA512 c2276bde4b13d0dc910062e8cdec8836d751ce25e5120f4fd7987c9ba5bd62844a71a5e92c1ccf766393b47f2ff95fc3298051d3729e38696fccc024be388c4e WHIRLPOOL b7fb5fe0dad22cb4d64900227deb757df698b61123d243123e52dfe8f012d1f11952d0171b147f45fa299d4405e97dc331efa340149cc7b2eb2026d184147ab3
+EBUILD gliv-1.9.6.ebuild 908 SHA256 787a9aceb7f966f17189728ed91de8ce0e11a13fd8111d2335415b423cb9b036 SHA512 471c74c5c7210176e82e4d9f006957a670800e83774788af0d27889b178cf2b85978e1c92dc41357d4e306d1ff6e8ab6c1a1c8287da3217f7c85fb80e3d8280e WHIRLPOOL 2bab16a84d31e4d3a0588db86fa2325fec495fac340449442035392b5491f4fce3ea1c85bc022eddad85e3c24fab3b13ad703efbb1b884b266adc7e83a6d62bb
+EBUILD gliv-1.9.7.ebuild 972 SHA256 e63df27b67654d850b3e8a41690fba85575c0d0b4b9408226e37b3daafac4a18 SHA512 b3bfad666ab3aeb0abc354ce92a0f733e4618e5a8bf74b9e5de1b79b0c14e0087222150f3eb9c2d73f49f037b0ca4cedd89ecd020334b7de9cb141765dc7df5f WHIRLPOOL 1b9e86605735501e41f9cb3f67befccc21a460978aa137e437ea5a369900d2b9cf44eb8c9d882f15f130ea5ecce27640aebfc5d3d4974caf6036f1bfe5ae93d2
+MISC ChangeLog 2930 SHA256 74d2db9d22ad335fad1d5dfbb9f020d5147615a769952d3db92b6d105a9b1076 SHA512 a1da031213e6b7131bd586ea602b84e827b29806626103a13496bb5033824ba852313f201229ddc7d4b57c63c8b5f68b64bb859354f9d89efc24c06c6ad7ddd4 WHIRLPOOL af3eb7398472dc3d3e72f6340720ca19b8f39dd194be1c744f995e8418e6429b9796dfeb75cc6a252711e69596cfa884fd85298f551254415244833135e82950
+MISC ChangeLog-2015 5291 SHA256 7e1488730de71d1ee9427c7dee92b419ad3a9a735e7269b37ccf9c36093b2d6e SHA512 97cdca60090fe631f2531cabfbeb5107b385cf971b4322a1eda7cbb80b90cffa6f6b3619f489b94d43d077e95c2c2402742a883942dfbd5626417ddf24e90bee WHIRLPOOL 5861b660c958df49994705981f7eb2bb9a063c8d46ef419d3865af2937bcdb490c927978a674b84d017e514b986302fcf4123547d5b6b9e8c8ef90394eb7104a
+MISC metadata.xml 255 SHA256 3e7137870fc49956d79719e3dfe029775cbaaa097e85748c139713c46fcd1798 SHA512 b7bc93530a1726c2d4dfbc71ae29cfbb57712fd9fdd2e76fd52f35ab4368cba0497b50145d1527a3b79e465d459a380821bb1371a01c2e915dc9adc6c7fafd5f WHIRLPOOL 392188d7e069f1720be9329edfb31b11b176bf0c411023b2ceeaeabef1cacf842d70657a2a14ac2ddabbdad70a304275f3b587e9bcdfe77be63a0092e370252c
diff --git a/media-gfx/gliv/files/gliv-1.9.6-as-needed.patch b/media-gfx/gliv/files/gliv-1.9.6-as-needed.patch
new file mode 100644
index 000000000000..3128b99e4435
--- /dev/null
+++ b/media-gfx/gliv/files/gliv-1.9.6-as-needed.patch
@@ -0,0 +1,99 @@
+--- gliv-1.9.6.orig/configure.ac 2005-09-21 23:05:57.000000000 +0200
++++ gliv-1.9.6/configure.ac 2010-01-03 15:51:41.464539460 +0100
+@@ -16,18 +16,17 @@
+ # Checks for programs.
+ AC_PROG_CC
+ AC_PROG_RANLIB
+-
++AC_USE_SYSTEM_EXTENSIONS
+
+ # Default CFLAGS.
+-if test "x$GCC" = "xyes" && test "$DEFAULT_CFLAGS" = "yes"; then
+- CFLAGS="-Wall -O2 -fomit-frame-pointer -ffast-math"
+-fi
+-CFLAGS="$CFLAGS -I${srcdir}/../lib"
++#if test "x$GCC" = "xyes" && test "$DEFAULT_CFLAGS" = "yes"; then
++# CFLAGS="-Wall -O2 -fomit-frame-pointer -ffast-math"
++#fi
++#CFLAGS="$CFLAGS -I${srcdir}/../lib"
+
+ # Checks for LFS flags, we may not handle big files, but it doesn't hurt.
+ AC_SYS_LARGEFILE
+
+-
+ AC_DEFUN([CHECK_MATH],
+ [OLD_CFLAGS="$CFLAGS"]
+ [CFLAGS="$CFLAGS -w"]
+@@ -127,35 +126,22 @@
+
+ # Checks for X.
+ AC_PATH_XTRA
+-CFLAGS="$X_CFLAGS $CFLAGS"
+-LDFLAGS="$X_PRE_LIBS $X_LIBS -lX11 $X_EXTRA_LIBS $LDFLAGS"
+
+ # Checks for GtkGLExt.
+ PKG_CHECK_MODULES(GTKGLEXT, [gtkglext-1.0 >= 0.7.0])
+-CFLAGS="$GTKGLEXT_CFLAGS $CFLAGS"
+-LDFLAGS="$GTKGLEXT_LIBS $LDFLAGS"
+ GTKGL_VERSION="$($PKG_CONFIG --modversion gtkglext-1.0)"
+
+ # Checks for OpenGL.
+-AC_TRY_LINK([#include "GL/gl.h"],
+- [glBegin(GL_QUADS);],
+- [ogl="yes"],
+- [ogl="no"])
+-
++AC_SEARCH_LIBS([glBegin],[GL],[ogl="yes"],[ogl="no"],)
+ if test "x$ogl" = "xno"; then
+ AC_MSG_NOTICE([maybe libGL requires libpthread...])
+- OLD_LDFLAGS="$LDFLAGS"
+- LDFLAGS="$LDFLAGS -lpthread"
+- AC_TRY_LINK([#include "GL/gl.h"],
+- [glBegin(GL_QUADS);],
+- [],
+- AC_MSG_ERROR([cannot use -lGL]))
++ AC_SEARCH_LIBS([glBegin],[GL],[ogl="yes"],[ogl="no"],[-lpthread])
+ fi
+
+ # Checks for gtk.
+ AM_PATH_GTK_2_0([2.6.0], [
+ CFLAGS="$GTK_CFLAGS $CFLAGS"
+- LDFLAGS="$GTK_LIBS $LDFLAGS"
++ LIBS="$LIBS $GTK_LIBS"
+ GTK_VERSION="$($PKG_CONFIG --modversion gtk+-2.0)"
+ ], [exit 1], [gthread])
+
+@@ -163,9 +149,6 @@
+ ALL_LINGUAS=$(echo po/*.po | sed -e 's|\.po||g' -e 's|po/||g')
+ AM_GNU_GETTEXT_VERSION
+ AM_GNU_GETTEXT
+-CFLAGS="$CFLAGS -I../${srcdir}/intl"
+-LIBS="$LIBS $LIBINTL"
+-
+
+ AC_CONFIG_FILES([
+ Makefile
+--- gliv-1.9.6.orig/src/Makefile.am 2006-11-18 15:21:13.000000000 +0100
++++ gliv-1.9.6/src/Makefile.am 2010-01-03 15:48:45.765539472 +0100
+@@ -64,6 +64,9 @@
+ gliv_LDADD = -L../lib -lreplacements
+ endif
+
++gliv_CFLAGS = @GTKGLEXT_CFLAGS@
++gliv_LDADD = @GTKGLEXT_LIBS@
++
+ AM_CPPFLAGS = -I$(srcdir)/include -D_REENTRANT -D_THREAD_SAFE \
+ -DSYSCONFDIR=\"$(sysconfdir)\"
+
+--- gliv-1.9.6.orig/po/Makefile.in.in 2006-11-18 15:21:13.000000000 +0100
++++ gliv-1.9.6/po/Makefile.in.in 2010-01-03 16:05:43.860539403 +0100
+@@ -29,7 +29,7 @@
+
+ INSTALL = @INSTALL@
+ INSTALL_DATA = @INSTALL_DATA@
+-MKINSTALLDIRS = @MKINSTALLDIRS@
++MKINSTALLDIRS = $(top_srcdir)/mkinstalldirs
+ mkinstalldirs = $(SHELL) $(MKINSTALLDIRS)
+
+ GMSGFMT = @GMSGFMT@
+
diff --git a/media-gfx/gliv/files/gliv-1.9.7-as-needed.patch b/media-gfx/gliv/files/gliv-1.9.7-as-needed.patch
new file mode 100644
index 000000000000..6998e5fd988d
--- /dev/null
+++ b/media-gfx/gliv/files/gliv-1.9.7-as-needed.patch
@@ -0,0 +1,87 @@
+--- gliv-1.9.7.orig/configure.ac
++++ gliv-1.9.7/configure.ac
+@@ -17,18 +17,17 @@
+ # Checks for programs.
+ AC_PROG_CC
+ AC_PROG_RANLIB
+-
++AC_USE_SYSTEM_EXTENSIONS
+
+ # Default CFLAGS.
+-if test "x$GCC" = "xyes" && test "$DEFAULT_CFLAGS" = "yes"; then
+- CFLAGS="-Wall -O2 -fomit-frame-pointer -ffast-math"
+-fi
+-CFLAGS="$CFLAGS -I${srcdir}/../lib"
++#if test "x$GCC" = "xyes" && test "$DEFAULT_CFLAGS" = "yes"; then
++# CFLAGS="-Wall -O2 -fomit-frame-pointer -ffast-math"
++#fi
++#CFLAGS="$CFLAGS -I${srcdir}/../lib"
+
+ # Checks for LFS flags, we may not handle big files, but it doesn't hurt.
+ AC_SYS_LARGEFILE
+
+-
+ AC_DEFUN([CHECK_MATH],
+ [OLD_CFLAGS="$CFLAGS"]
+ [CFLAGS="$CFLAGS -w"]
+@@ -128,35 +127,22 @@
+
+ # Checks for X.
+ AC_PATH_XTRA
+-CFLAGS="$X_CFLAGS $CFLAGS"
+-LDFLAGS="$X_PRE_LIBS $X_LIBS -lX11 $X_EXTRA_LIBS $LDFLAGS"
+
+ # Checks for GtkGLExt.
+ PKG_CHECK_MODULES(GTKGLEXT, [gtkglext-1.0 >= 0.7.0])
+-CFLAGS="$GTKGLEXT_CFLAGS $CFLAGS"
+-LDFLAGS="$GTKGLEXT_LIBS $LDFLAGS"
+ GTKGL_VERSION="$($PKG_CONFIG --modversion gtkglext-1.0)"
+
+ # Checks for OpenGL.
+-AC_TRY_LINK([#include "GL/gl.h"],
+- [glBegin(GL_QUADS);],
+- [ogl="yes"],
+- [ogl="no"])
+-
++AC_SEARCH_LIBS([glBegin],[GL],[ogl="yes"],[ogl="no"],)
+ if test "x$ogl" = "xno"; then
+ AC_MSG_NOTICE([maybe libGL requires libpthread...])
+- OLD_LDFLAGS="$LDFLAGS"
+- LDFLAGS="$LDFLAGS -lpthread"
+- AC_TRY_LINK([#include "GL/gl.h"],
+- [glBegin(GL_QUADS);],
+- [],
+- AC_MSG_ERROR([cannot use -lGL]))
++ AC_SEARCH_LIBS([glBegin],[GL],[ogl="yes"],[ogl="no"],[-lpthread])
+ fi
+
+ # Checks for gtk.
+ AM_PATH_GTK_2_0([2.6.0], [
+ CFLAGS="$GTK_CFLAGS $CFLAGS"
+- LDFLAGS="$GTK_LIBS $LDFLAGS"
++ LIBS="$LIBS $GTK_LIBS"
+ GTK_VERSION="$($PKG_CONFIG --modversion gtk+-2.0)"
+ ], [exit 1], [gthread])
+
+@@ -164,9 +150,6 @@
+ ALL_LINGUAS=$(echo po/*.po | sed -e 's|\.po||g' -e 's|po/||g')
+ AM_GNU_GETTEXT_VERSION
+ AM_GNU_GETTEXT
+-CFLAGS="$CFLAGS -I../${srcdir}/intl"
+-LIBS="$LIBS $LIBINTL"
+-
+
+ AC_CONFIG_FILES([ intl/Makefile
+ Makefile
+--- gliv-1.9.7.orig/src/Makefile.am
++++ gliv-1.9.7/src/Makefile.am
+@@ -64,6 +64,9 @@
+ gliv_LDADD = -L../lib -lreplacements
+ endif
+
++gliv_CFLAGS = @GTKGLEXT_CFLAGS@
++gliv_LDADD = @GTKGLEXT_LIBS@
++
+ AM_CPPFLAGS = -I$(srcdir)/include -D_REENTRANT -D_THREAD_SAFE \
+ -DSYSCONFDIR=\"$(sysconfdir)\"
+
diff --git a/media-gfx/gliv/files/gliv-1.9.7-destdir.patch b/media-gfx/gliv/files/gliv-1.9.7-destdir.patch
new file mode 100644
index 000000000000..827c6adb10d8
--- /dev/null
+++ b/media-gfx/gliv/files/gliv-1.9.7-destdir.patch
@@ -0,0 +1,15 @@
+--- gliv-1.9.7/Makefile.am.orig
++++ gliv-1.9.7/Makefile.am
+@@ -31,9 +31,9 @@
+ @echo
+ @if desktop-file-install --help > /dev/null 2>&1; then \
+ echo "Installing the GLiv desktop file with desktop-file-install"; \
+- mkdir -p $(datadir)/{pixmaps,applications} || true; \
+- cp gliv.png $(datadir)/pixmaps/gliv.png || true; \
+- desktop-file-install --vendor=gnome --dir=$(datadir)/applications \
++ mkdir -p $(DESTDIR)$(datadir)/{pixmaps,applications} || true; \
++ cp gliv.png $(DESTDIR)$(datadir)/pixmaps/gliv.png || true; \
++ desktop-file-install --vendor=gnome --dir=$(DESTDIR)$(datadir)/applications \
+ gliv.desktop || true; \
+ else \
+ echo "No desktop-file-install(1), skipping gliv.desktop"; \
diff --git a/media-gfx/gliv/gliv-1.9.6.ebuild b/media-gfx/gliv/gliv-1.9.6.ebuild
new file mode 100644
index 000000000000..d68de9e05556
--- /dev/null
+++ b/media-gfx/gliv/gliv-1.9.6.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=2
+
+inherit eutils autotools
+
+DESCRIPTION="An image viewer that uses OpenGL"
+HOMEPAGE="http://guichaz.free.fr/gliv/"
+SRC_URI="http://guichaz.free.fr/gliv/files/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc x86"
+IUSE="nls"
+
+RDEPEND=">=x11-libs/gtk+-2.6:2
+ virtual/opengl
+ >x11-libs/gtkglext-1.0.6
+ nls? ( sys-devel/gettext )"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ >=sys-devel/bison-1.875"
+
+src_prepare() {
+ epatch "${FILESDIR}/${P}-as-needed.patch"
+ eautoreconf
+}
+
+src_configure() {
+ econf \
+ --disable-dependency-tracking \
+ $(use_enable nls)
+}
+
+src_install() {
+ # Needed if desktop-file-install is present, else we get
+ # sandbox violations.
+ export DESKTOP_FILE_INSTALL_DIR="${D}/usr/share/applications"
+
+ einstall || die "make install failed"
+ dodoc README NEWS THANKS
+}
diff --git a/media-gfx/gliv/gliv-1.9.7.ebuild b/media-gfx/gliv/gliv-1.9.7.ebuild
new file mode 100644
index 000000000000..9d1aac1ef1d3
--- /dev/null
+++ b/media-gfx/gliv/gliv-1.9.7.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils autotools
+
+DESCRIPTION="An image viewer that uses OpenGL"
+HOMEPAGE="http://guichaz.free.fr/gliv/"
+SRC_URI="http://guichaz.free.fr/gliv/files/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc x86"
+IUSE="nls"
+
+RDEPEND="
+ >=x11-libs/gtk+-2.6:2
+ virtual/opengl
+ >x11-libs/gtkglext-1.0.6
+"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ >=sys-devel/bison-1.875
+ nls? ( sys-devel/gettext )
+"
+
+src_prepare() {
+ # Fix build with gettext-0.19, bug #512624
+ # using gettextize no-interactive example from dev-util/bless package
+ if use nls; then
+ cp $(type -p gettextize) "${T}"/
+ sed -i -e 's:read dummy < /dev/tty::' "${T}/gettextize" || die
+ "${T}"/gettextize -f --no-changelog --intl > /dev/null
+ fi
+
+ epatch "${FILESDIR}"/${P}-as-needed.patch \
+ "${FILESDIR}/${P}-destdir.patch"
+ eautoreconf
+}
+
+src_configure() {
+ econf $(use_enable nls)
+}
diff --git a/media-gfx/gliv/metadata.xml b/media-gfx/gliv/metadata.xml
new file mode 100644
index 000000000000..19bf1be2581e
--- /dev/null
+++ b/media-gfx/gliv/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 type="project">
+ <email>graphics@gentoo.org</email>
+ <name>Gentoo Graphics Project</name>
+</maintainer>
+</pkgmetadata>
diff --git a/media-gfx/gmic/Manifest b/media-gfx/gmic/Manifest
new file mode 100644
index 000000000000..237e65997aa7
--- /dev/null
+++ b/media-gfx/gmic/Manifest
@@ -0,0 +1,12 @@
+AUX gmic-1.7.8-cmake.patch 2642 SHA256 7179bcf5534c75db17725a7ad0c2ee13d19b3049d9e510510fa3a20a12c46cec SHA512 76efb29a43f2408c2b1bc67de561927188f8729fac5b5a82e572856ad4fb326a7c1bb438c2811596500f80580f2e669b9dd796a5ee5dd3d0ce27cfb051c069b6 WHIRLPOOL f0a4d6ea554016e13729eddc5d7ce164621b69900720a4b13bb5834b17aa48c004881afec5c8ed124e1f9f40bd77c57c77ee267cb1beba0d764ee262574b5a34
+AUX gmic-1.7.9-flags.patch 645 SHA256 465f6b82ad5bb04b4e37b7697f10762764aa65ff8b4fe4fed1ab7e05dacc6163 SHA512 01ec915af54d606f947f87581b5386900e61cff7d175c01d01cc558a22b219eda255a1d2af93c1414adcdf6a6297d4b42893ee875a40e908e21de5d15a449d72 WHIRLPOOL 7932ad73886cb693f5420f22a716550325ae9b740fae5370c92d94e68311a5f3ff099807734f0fd2a1659bb338f66db6ebf0f598baf5901fed6dc497dfdd6859
+AUX gmic-1.7.9-man.patch 857 SHA256 18904e95125afeb16a275fd2ad20b213565e592c915cf7255a25a58bff0fbfc2 SHA512 6c205a0841fd35773ab5a8845d7efbcf57ccad74b07b5d61d45e37d07a30df6db40dd6a104fef669953e0a210869661d989a0daff1630ca7c713fbea3219fcca WHIRLPOOL 0655c3fc09afad9fae9be987a8757bc894e0e86a4f54e6ef99591f87933829418172df4166055bcfbe2c4bdc2046e6169c4541ff166adcb56b45ed40514247b9
+DIST gmic_1.7.8.tar.gz 3013635 SHA256 3a2f32d79714239cfa56ecb10799b7d73362b4e2a852444bc24866272cd041a4 SHA512 2bfa7bb9ff3a99a76c71f7c4e0d619e9c205dafc02b5a2d1f097b6285c141e5413f7016b92d974327f787010a6832d272ab21a89842eee2484151072c2d4c559 WHIRLPOOL a81e135031ac095e700302d1b59428b6f86df4543643d17e759fcde3bcd7ceac950b7418d89854d2ee8c55af18efc67efc65f41984ca1dbbe5c12c3a12c36539
+DIST gmic_1.7.9.tar.gz 3069082 SHA256 932fd2ad89d090864bd7bf3860f1751c14d34276c542416114b77fd30cc8642b SHA512 749611748c9fe2a141efc9b0a445411c1ece842f4c576b68b3b17cbbffdc1cf43a2aee55dc399b899dc03882f240289beaef96d9ec85b10ffc0ad986412cd4bc WHIRLPOOL cce3788a095d115afaa1c5641ac240d9b9977e62cdced9e0876bd53a623b91bb951faa07a404b4247c6b84e3e81eca8d3edac4bd0ff29a63efef8cf9a35a66f0
+DIST gmic_2.0.0.tar.gz 3181386 SHA256 27c57f0ca630895a0dab5c0eff854f3133a29743267c4aa196dc2d1936463ca4 SHA512 08cb3bb02d072db5881dc3b2c23be766ae9909a29042777b474733afe30efeaeff35582ac69e8c5f38258c563919a17ce22294c594cbe04f792769b6609b3efb WHIRLPOOL 2732285e61438988b71bae88ba474004c1f2c187aca3423b4d0f1c62261b2d77aaa81cdbf836d48607776da88b56c56d465bc7647e94bc8e5cf06a6282fff9de
+EBUILD gmic-1.7.8.ebuild 2117 SHA256 afb0e1d74388944940c7d94db6fa352f5ed5b6edd26f20734ed78ca460bcd4b3 SHA512 69342854e08b932da43d526cbcabe13c330e8c1036e836cfd81d2c8243c9b1bb40e83220b09b89381caae17b7a609da4842eca6e4417944be33fb943ec4cb088 WHIRLPOOL 02d2ab50c7f9b14b9b56b18aa0c26fc676e7befb0951f2ec367a8b30439f1ce2338ca5bd93bde921875528b768c4a6fd707835dfe3f21c577fde2bb0b1dbe264
+EBUILD gmic-1.7.9.ebuild 2083 SHA256 b461816f3f02da626a38ea13d0b47e2ce7e0a74090adb68876dd37d5f51ee2c6 SHA512 8d7d0d8a207298b89e395bc4f0b7204cf11584ba157c935135e9d9ae18cb7f3f849fcefb69ae7c552428d0a8a94394815f5400025cb237200dc7948310fc33ec WHIRLPOOL 5e83050f5e419673fa8d7c9c46974de4e7143f58cf73dc318204cea6805e6158e40718bfbd8e58a75cd911536845524a06193716c52b5cd06992e71e4f73d85f
+EBUILD gmic-2.0.0.ebuild 2173 SHA256 6682a7d05990c43e507b7402d7de23742d6e2a4c34e1198fbd616ffd1b245cfc SHA512 53f36dd06ed496434fdd16ab3fa0246c21499a5104f219cbbc9606b8baa70eb099dcfc9e023750f30ab2aa685defb368358fea870a1e10ec9e8d895f6aa57a3c WHIRLPOOL 8bed84afafee479c78c8e5d07575f613ea196aea1d678c2dc09145f6a8071b4396dd763109d311e77ac2d3efd8dc4343860023a40e3769dd004757163953deac
+MISC ChangeLog 4071 SHA256 a39702ae7ca400c93716b03388282f4c58cb70d24fc15e58d7570e9e404d4d93 SHA512 c48e4248977da755adec8960e327de87d1613f66915ce7ce6c2181d7f693712feab76f7c1a8598906463876078564efe5f7636810843fe74b25fbe6994a3651a WHIRLPOOL a5ee8fa3e0dbefffde033b488090cdbf1ddf9b9aa285335d7e452e3fd5673091455c0930d4aac7b0e14dc8e0ce7cb282db1621c1761a217821b11d2b2f271095
+MISC ChangeLog-2015 9281 SHA256 ef815a2d7cf76f34dc0bf14e2c93cbc01b1f22865a54c7de238dcb3bb4cb2747 SHA512 310b698275812c83b85ab5c4fbaf1502eb6550f9d19f384a8c045329bcba611877e7e02b2b4308b089fed75e9860fc61b0c296d4ed57cf7dce1741da19c537e4 WHIRLPOOL 0dde56961715bf10f8a9d9ab0d18eb8778da48b4936c528e4f36a68735574b1252d2699dc2e7dca9417accb284f31c02b5b2322514787db1da556bddc4981dc6
+MISC metadata.xml 479 SHA256 bd92ca27770590e13773dcf1419ffce1a9056d78b89a95f0eedf94d6729debe4 SHA512 78c266a5d1f3cf27d2cbaaaeabcaf5037e183a94d36761d23cf1691819405cadd484346b4d2573d03a96bbb9e9f48b1a8f75bd7286f9a77d67aa2421ca0bfd22 WHIRLPOOL 6c164a4f7e8d3d002c8de1dddb8cf316bdc7a435b5e5585fbb835a40edb49bb4914b95a8b200917c6248c4fadbac68846a2dc0f11f607f5e0a9a7abf897339d2
diff --git a/media-gfx/gmic/files/gmic-1.7.8-cmake.patch b/media-gfx/gmic/files/gmic-1.7.8-cmake.patch
new file mode 100644
index 000000000000..2c4a6b3557b7
--- /dev/null
+++ b/media-gfx/gmic/files/gmic-1.7.8-cmake.patch
@@ -0,0 +1,76 @@
+--- gmic-1.7.8/CMakeLists.txt
++++ gmic-1.7.8/CMakeLists.txt
+@@ -3,9 +3,11 @@
+ project(gmic CXX C)
+
+ find_package(PkgConfig)
++include(GNUInstallDirs)
+
+ # options controlling the build process
+ option(BUILD_LIB "Build the GMIC shared library" ON)
++option(BUILD_LIB_STATIC "Build the GMIC static library" ON)
+ option(BUILD_CLI "Build the CLI interface" ON)
+ option(BUILD_PLUGIN "Build the GIMP plug-in" ON)
+ option(ENABLE_X "Add support for X11" ON)
+@@ -44,7 +46,7 @@
+ if(ENABLE_OPENMP)
+ if(NOT APPLE)
+ set(COMPILE_FLAGS " ${COMPILE_FLAGS} -fopenmp -Dcimg_use_openmp ")
+- set(EXTRA_LIBRARIES "-lgomp ${EXTRA_LIBRARIES}")
++ set(EXTRA_LIBRARIES "${EXTRA_LIBRARIES} -lgomp")
+ endif(NOT APPLE)
+ endif(ENABLE_OPENMP)
+
+@@ -187,9 +189,9 @@
+ "Choose the type of build, options are: Debug Release RelWithDebInfo."
+ FORCE)
+ endif(NOT CMAKE_BUILD_TYPE)
+-SET(CMAKE_CXX_FLAGS_DEBUG " -O0 -g -ansi -pedantic -Dcimg_verbosity=3 ${COMPILE_FLAGS}")
+-SET(CMAKE_CXX_FLAGS_RELEASE " -O3 -mtune=generic ${COMPILE_FLAGS}")
+-SET(CMAKE_CXX_FLAGS_RELWITHDEBINFO " -O3 -g -mtune=generic ${COMPILE_FLAGS}")
++SET(CMAKE_CXX_FLAGS_DEBUG " -ansi -pedantic -Dcimg_verbosity=3 ${COMPILE_FLAGS}")
++SET(CMAKE_CXX_FLAGS_RELEASE " ${COMPILE_FLAGS}")
++SET(CMAKE_CXX_FLAGS_RELWITHDEBINFO " ${COMPILE_FLAGS}")
+
+
+ # source files
+@@ -220,7 +222,7 @@
+ if(BUILD_LIB)
+ add_library(libgmic SHARED ${CLI_Includes} ${CLI_Sources})
+ add_dependencies(libgmic gmic_extra_headers)
+- set_target_properties(libgmic PROPERTIES OUTPUT_NAME "gmic")
++ set_target_properties(libgmic PROPERTIES SOVERSION "1" OUTPUT_NAME "gmic")
+ IF(NOT APPLE)
+ set_target_properties(libgmic PROPERTIES LINK_FLAGS "-Wl,-soname,libgmic.so.1")
+ ENDIF(NOT APPLE)
+@@ -236,7 +238,13 @@
+ ${FFTW3_LIBRARIES}
+ ${EXTRA_LIBRARIES}
+ )
+-
++
++ INSTALL(TARGETS libgmic LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}")
++ INSTALL(FILES src/gmic.h DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}")
++endif(BUILD_LIB)
++
++
++if(BUILD_LIB_STATIC)
+ add_library(libgmicstatic STATIC ${CLI_Includes} ${CLI_Sources})
+ add_dependencies(libgmicstatic gmic_extra_headers)
+ set_target_properties(libgmicstatic PROPERTIES OUTPUT_NAME "gmic")
+@@ -252,11 +260,10 @@
+ ${FFTW3_LIBRARIES}
+ ${EXTRA_LIBRARIES}
+ )
+-
+- INSTALL(TARGETS libgmic LIBRARY DESTINATION lib)
+- INSTALL(TARGETS libgmicstatic ARCHIVE DESTINATION lib)
+- INSTALL(FILES src/gmic.h DESTINATION include)
+-endif(BUILD_LIB)
++
++ INSTALL(TARGETS libgmicstatic ARCHIVE DESTINATION "${CMAKE_INSTALL_LIBDIR}")
++ INSTALL(FILES src/gmic.h DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}")
++endif(BUILD_LIB_STATIC)
+
+
+ if(BUILD_CLI)
diff --git a/media-gfx/gmic/files/gmic-1.7.9-flags.patch b/media-gfx/gmic/files/gmic-1.7.9-flags.patch
new file mode 100644
index 000000000000..aea11ed50a72
--- /dev/null
+++ b/media-gfx/gmic/files/gmic-1.7.9-flags.patch
@@ -0,0 +1,15 @@
+--- gmic-1.7.9/CMakeLists.txt
++++ gmic-1.7.9/CMakeLists.txt
+@@ -190,9 +190,9 @@
+ "Choose the type of build, options are: Debug Release RelWithDebInfo."
+ FORCE)
+ endif(NOT CMAKE_BUILD_TYPE)
+-SET(CMAKE_CXX_FLAGS_DEBUG " -O0 -g -ansi -pedantic -Dcimg_verbosity=3 ${COMPILE_FLAGS}")
+-SET(CMAKE_CXX_FLAGS_RELEASE " -O3 -mtune=generic ${COMPILE_FLAGS}")
+-SET(CMAKE_CXX_FLAGS_RELWITHDEBINFO " -O3 -g -mtune=generic ${COMPILE_FLAGS}")
++SET(CMAKE_CXX_FLAGS_DEBUG " -ansi -pedantic -Dcimg_verbosity=3 ${COMPILE_FLAGS}")
++SET(CMAKE_CXX_FLAGS_RELEASE " ${COMPILE_FLAGS}")
++SET(CMAKE_CXX_FLAGS_RELWITHDEBINFO " ${COMPILE_FLAGS}")
+
+
+ # source files
diff --git a/media-gfx/gmic/files/gmic-1.7.9-man.patch b/media-gfx/gmic/files/gmic-1.7.9-man.patch
new file mode 100644
index 000000000000..44353a2123ff
--- /dev/null
+++ b/media-gfx/gmic/files/gmic-1.7.9-man.patch
@@ -0,0 +1,17 @@
+--- gmic-1.7.9/CMakeLists.txt
++++ gmic-1.7.9/CMakeLists.txt
+@@ -334,11 +334,10 @@
+ if(BUILD_MAN)
+ file(MAKE_DIRECTORY ${CMAKE_SOURCE_DIR}/man)
+ add_custom_command(
+- OUTPUT ${CMAKE_SOURCE_DIR}/man/gmic.1.gz
++ OUTPUT ${CMAKE_SOURCE_DIR}/man/gmic.1
+ DEPENDS gmic
+ COMMAND ${CMAKE_BINARY_DIR}/gmic -v - ${CMAKE_SOURCE_DIR}/src/gmic_stdlib.gmic raw:${CMAKE_SOURCE_DIR}/src/gmic_stdlib.gmic,uchar -__help man 2> ${CMAKE_SOURCE_DIR}/man/gmic.1
+- COMMAND gzip -f ${CMAKE_SOURCE_DIR}/man/gmic.1
+ )
+- add_custom_target(man ALL DEPENDS ${CMAKE_SOURCE_DIR}/man/gmic.1.gz)
+- INSTALL(FILES ${CMAKE_SOURCE_DIR}/man/gmic.1.gz DESTINATION ${CMAKE_INSTALL_MANDIR}/man1/)
++ add_custom_target(man ALL DEPENDS ${CMAKE_SOURCE_DIR}/man/gmic.1)
++ INSTALL(FILES ${CMAKE_SOURCE_DIR}/man/gmic.1 DESTINATION ${CMAKE_INSTALL_MANDIR}/man1/)
+ endif(BUILD_MAN)
diff --git a/media-gfx/gmic/gmic-1.7.8.ebuild b/media-gfx/gmic/gmic-1.7.8.ebuild
new file mode 100644
index 000000000000..985bd87c6dad
--- /dev/null
+++ b/media-gfx/gmic/gmic-1.7.8.ebuild
@@ -0,0 +1,91 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit cmake-utils bash-completion-r1
+
+DESCRIPTION="GREYC's Magic Image Converter"
+HOMEPAGE="http://gmic.eu/ https://github.com/dtschump/gmic"
+SRC_URI="http://gmic.eu/files/source/${PN}_${PV}.tar.gz"
+
+LICENSE="CeCILL-2 FDL-1.3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="+cli ffmpeg fftw gimp graphicsmagick jpeg opencv openexr openmp png static-libs tiff X zlib"
+REQUIRED_USE="|| ( cli gimp )"
+
+COMMON_DEPEND="
+ fftw? ( sci-libs/fftw:3.0[threads] )
+ gimp? ( >=media-gfx/gimp-2.4.0 )
+ graphicsmagick? ( media-gfx/graphicsmagick )
+ jpeg? ( virtual/jpeg:0 )
+ opencv? ( >=media-libs/opencv-2.3.1a-r1 )
+ openexr? (
+ media-libs/ilmbase
+ media-libs/openexr
+ )
+ png? ( media-libs/libpng:0= )
+ tiff? ( media-libs/tiff:0 )
+ X? (
+ x11-libs/libX11
+ x11-libs/libXext
+ )
+ zlib? ( sys-libs/zlib )"
+RDEPEND="${COMMON_DEPEND}
+ ffmpeg? ( media-video/ffmpeg:0 )
+ gimp? ( !media-plugins/gimp-gmic )
+"
+DEPEND="${COMMON_DEPEND}
+ virtual/pkgconfig
+"
+
+PATCHES=( "${FILESDIR}"/${P}-cmake.patch )
+
+pkg_pretend() {
+ if use openmp ; then
+ tc-has-openmp || die "Please switch to an openmp compatible compiler"
+ fi
+
+ if ! test-flag-CXX -std=c++11 ; then
+ die "You need at least GCC 4.7.x or Clang >= 3.3 for C++11-specific compiler flags"
+ fi
+}
+
+src_prepare() {
+ default
+ gunzip man/${PN}.1.gz || die
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DBUILD_LIB=ON
+ -DBUILD_LIB_STATIC=$(usex static-libs)
+ -DBUILD_CLI=$(usex cli)
+ -DBUILD_PLUGIN=$(usex gimp)
+ -DENABLE_X=$(usex X)
+ -DENABLE_FFMPEG=$(usex ffmpeg)
+ -DENABLE_FFTW=$(usex fftw)
+ -DENABLE_GRAPHICSMAGICK=$(usex graphicsmagick)
+ -DENABLE_JPEG=$(usex jpeg)
+ -DENABLE_OPENCV=$(usex opencv)
+ -DENABLE_OPENEXR=$(usex openexr)
+ -DENABLE_OPENMP=$(usex openmp)
+ -DENABLE_PNG=$(usex png)
+ -DENABLE_TIFF=$(usex tiff)
+ -DENABLE_ZLIB=$(usex zlib)
+ )
+
+ local CMAKE_BUILD_TYPE="Release"
+ cmake-utils_src_configure
+}
+
+src_install() {
+ cmake-utils_src_install
+ dodoc README
+
+ if use cli; then
+ doman man/${PN}.1
+ newbashcomp resources/${PN}_bashcompletion.sh ${PN}
+ fi
+}
diff --git a/media-gfx/gmic/gmic-1.7.9.ebuild b/media-gfx/gmic/gmic-1.7.9.ebuild
new file mode 100644
index 000000000000..f8b8e275154c
--- /dev/null
+++ b/media-gfx/gmic/gmic-1.7.9.ebuild
@@ -0,0 +1,86 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit cmake-utils bash-completion-r1
+
+DESCRIPTION="GREYC's Magic Image Converter"
+HOMEPAGE="http://gmic.eu/ https://github.com/dtschump/gmic"
+SRC_URI="http://gmic.eu/files/source/${PN}_${PV}.tar.gz"
+
+LICENSE="CeCILL-2 FDL-1.3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="+cli ffmpeg fftw gimp graphicsmagick jpeg opencv openexr openmp png static-libs tiff X zlib"
+REQUIRED_USE="|| ( cli gimp )"
+
+COMMON_DEPEND="
+ fftw? ( sci-libs/fftw:3.0[threads] )
+ gimp? ( >=media-gfx/gimp-2.4.0 )
+ graphicsmagick? ( media-gfx/graphicsmagick )
+ jpeg? ( virtual/jpeg:0 )
+ opencv? ( >=media-libs/opencv-2.3.1a-r1 )
+ openexr? (
+ media-libs/ilmbase
+ media-libs/openexr
+ )
+ png? ( media-libs/libpng:0= )
+ tiff? ( media-libs/tiff:0 )
+ X? (
+ x11-libs/libX11
+ x11-libs/libXext
+ )
+ zlib? ( sys-libs/zlib )"
+RDEPEND="${COMMON_DEPEND}
+ ffmpeg? ( media-video/ffmpeg:0 )
+ gimp? ( !media-plugins/gimp-gmic )
+"
+DEPEND="${COMMON_DEPEND}
+ virtual/pkgconfig
+"
+
+PATCHES=(
+ "${FILESDIR}"/${P}-flags.patch
+ "${FILESDIR}"/${P}-man.patch
+)
+
+pkg_pretend() {
+ if use openmp ; then
+ tc-has-openmp || die "Please switch to an openmp compatible compiler"
+ fi
+
+ if ! test-flag-CXX -std=c++11 ; then
+ die "You need at least GCC 4.7.x or Clang >= 3.3 for C++11-specific compiler flags"
+ fi
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DBUILD_LIB=ON
+ -DBUILD_LIB_STATIC=$(usex static-libs)
+ -DBUILD_CLI=$(usex cli)
+ -DBUILD_MAN=$(usex cli)
+ -DBUILD_PLUGIN=$(usex gimp)
+ -DENABLE_X=$(usex X)
+ -DENABLE_FFMPEG=$(usex ffmpeg)
+ -DENABLE_FFTW=$(usex fftw)
+ -DENABLE_GRAPHICSMAGICK=$(usex graphicsmagick)
+ -DENABLE_JPEG=$(usex jpeg)
+ -DENABLE_OPENCV=$(usex opencv)
+ -DENABLE_OPENEXR=$(usex openexr)
+ -DENABLE_OPENMP=$(usex openmp)
+ -DENABLE_PNG=$(usex png)
+ -DENABLE_TIFF=$(usex tiff)
+ -DENABLE_ZLIB=$(usex zlib)
+ )
+
+ local CMAKE_BUILD_TYPE="Release"
+ cmake-utils_src_configure
+}
+
+src_install() {
+ cmake-utils_src_install
+ dodoc README
+ use cli && newbashcomp resources/${PN}_bashcompletion.sh ${PN}
+}
diff --git a/media-gfx/gmic/gmic-2.0.0.ebuild b/media-gfx/gmic/gmic-2.0.0.ebuild
new file mode 100644
index 000000000000..bf371feb3ea2
--- /dev/null
+++ b/media-gfx/gmic/gmic-2.0.0.ebuild
@@ -0,0 +1,91 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit cmake-utils bash-completion-r1
+
+if [[ ${PV} == "9999" ]]; then
+ EGIT_REPO_URI="https://github.com/dtschump/gmic.git"
+ inherit git-r3
+else
+ SRC_URI="http://gmic.eu/files/source/${PN}_${PV}.tar.gz"
+ KEYWORDS="~amd64 ~x86"
+fi
+
+DESCRIPTION="GREYC's Magic Image Converter"
+HOMEPAGE="http://gmic.eu/ https://github.com/dtschump/gmic"
+
+LICENSE="CeCILL-2 FDL-1.3"
+SLOT="0"
+IUSE="+cli ffmpeg fftw gimp graphicsmagick jpeg opencv openexr openmp png static-libs tiff X zlib"
+REQUIRED_USE="|| ( cli gimp )"
+
+COMMON_DEPEND="
+ fftw? ( sci-libs/fftw:3.0[threads] )
+ gimp? ( >=media-gfx/gimp-2.4.0 )
+ graphicsmagick? ( media-gfx/graphicsmagick )
+ jpeg? ( virtual/jpeg:0 )
+ opencv? ( >=media-libs/opencv-2.3.1a-r1 )
+ openexr? (
+ media-libs/ilmbase
+ media-libs/openexr
+ )
+ png? ( media-libs/libpng:0= )
+ tiff? ( media-libs/tiff:0 )
+ X? (
+ x11-libs/libX11
+ x11-libs/libXext
+ )
+ zlib? ( sys-libs/zlib )"
+RDEPEND="${COMMON_DEPEND}
+ ffmpeg? ( media-video/ffmpeg:0 )
+"
+DEPEND="${COMMON_DEPEND}
+ virtual/pkgconfig
+"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-1.7.9-flags.patch
+ "${FILESDIR}"/${PN}-1.7.9-man.patch
+)
+
+pkg_pretend() {
+ if use openmp ; then
+ tc-has-openmp || die "Please switch to an openmp compatible compiler"
+ fi
+
+ if ! test-flag-CXX -std=c++11 ; then
+ die "You need at least GCC 4.7.x or Clang >= 3.3 for C++11-specific compiler flags"
+ fi
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DBUILD_LIB=ON
+ -DBUILD_LIB_STATIC=$(usex static-libs)
+ -DBUILD_CLI=$(usex cli)
+ -DBUILD_MAN=$(usex cli)
+ -DBUILD_PLUGIN=$(usex gimp)
+ -DENABLE_X=$(usex X)
+ -DENABLE_FFMPEG=$(usex ffmpeg)
+ -DENABLE_FFTW=$(usex fftw)
+ -DENABLE_GRAPHICSMAGICK=$(usex graphicsmagick)
+ -DENABLE_JPEG=$(usex jpeg)
+ -DENABLE_OPENCV=$(usex opencv)
+ -DENABLE_OPENEXR=$(usex openexr)
+ -DENABLE_OPENMP=$(usex openmp)
+ -DENABLE_PNG=$(usex png)
+ -DENABLE_TIFF=$(usex tiff)
+ -DENABLE_ZLIB=$(usex zlib)
+ )
+
+ local CMAKE_BUILD_TYPE="Release"
+ cmake-utils_src_configure
+}
+
+src_install() {
+ cmake-utils_src_install
+ dodoc README
+ use cli && newbashcomp resources/${PN}_bashcompletion.sh ${PN}
+}
diff --git a/media-gfx/gmic/metadata.xml b/media-gfx/gmic/metadata.xml
new file mode 100644
index 000000000000..97ea96d21230
--- /dev/null
+++ b/media-gfx/gmic/metadata.xml
@@ -0,0 +1,15 @@
+<?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>
+ <use>
+ <flag name="cli">Build CLI interface</flag>
+ <flag name="opencv">Enable support for webcams using the OpenCV library</flag>
+ </use>
+ <upstream>
+ <remote-id type="github">dtschump/gmic</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/media-gfx/gnofract4d/Manifest b/media-gfx/gnofract4d/Manifest
new file mode 100644
index 000000000000..edd7ce09b3b4
--- /dev/null
+++ b/media-gfx/gnofract4d/Manifest
@@ -0,0 +1,9 @@
+AUX gnofract4d-3.14-desktop.patch 479 SHA256 8ee61082543f05fbcb64ce35f7a258b8a94a30584fe7193f4a23f6a90c4a5eef SHA512 1b90e6ce53e3b346af48a680d2486a5b69de49f2059f6a02c0f6d722a52ca70165e2935818ca57d58d149625528b923a897c85a34381595b9aae94f0476f90b5 WHIRLPOOL e2f7e592e91af81f13c36b45b4901cdbd9e805e64bd3f045ea0aa60efb007cbfa90e7575ec40ceb59aa34f731a56671ae6fbf3e8ce799f75aa0d972d639ef085
+AUX gnofract4d-3.14-manual.patch 914 SHA256 e6c9868a5eb18ba86aecfca1eaea02f70193b33149c4da7aff956bcee3f1a7dc SHA512 591858a7ba5e28e24cb170b5a6d24b98fd060ca79257542f9b3bcbe26d476ae2331ffa991c5d1726d352223198077e61339277b05e65ef0975944694f74a46ce WHIRLPOOL 28471ea4418ffe9a11ee1b93171d21c483442b02a42953b4b91a16ab08480979c3f61bc1048e484abec4e85852f2a8553d1a2c6af9face01776007730e637b53
+DIST gnofract4d-3.14.1.tar.gz 4660808 SHA256 29f05d9b07f7b53bf250b0f81f74b76dbd68efc5d6ba71f4d55ef332f6b6f83d SHA512 bcec1d12c589cdee2f0da5555a075db511debd21d4536db66793f6a28be35656258daffd8cbaaff4b5af041b18ca77c94d910ec4d0c7e14960412c580fd56725 WHIRLPOOL f15d40a8572cefd32592af2ce35a3627325c2e486eaf44740ff3ce78e9fdc1a215b657c12e4f4a7931b9cde10428597886f55892a1e7b417451df6be5e9f92c3
+DIST gnofract4d-3.14.tar.gz 862499 SHA256 bdd8e950a98221054d52883d5303a435cbaa3d5d4239c36aff91598a6433d20a SHA512 cf3614f60a43f7ab20208fb1a62d3823495c84060d177d2926bad20a475e661d7ec45a7bc14e826229656027fe7c0f68aac093b6b0dc7912e84d8d8ec8ff81e5 WHIRLPOOL a4dd1f239ef0d9396288b335cd67c8d3ce0c858a18c0840ed3d07ac3fc4ba24d940f697f30b414fec82dc85843842c1173188077e2eb1b2b157997731f9733e8
+EBUILD gnofract4d-3.14-r1.ebuild 849 SHA256 232bd2d49124544f61d71907199ff3812b59fecc891f3dcc41ef0062cebaa6d5 SHA512 4c69a967bd46a44a4cf31a1d695d676afcdb0ff3307bb4ac308d86ee34a578f38575e27b40d047c4e0e85127f508e7df0116efb10b363457f856693627bc1294 WHIRLPOOL 63423cd00d3ddb106e4db1f5a2f087f86ff302044409d33fe3b51ec8f505328049feb9e3fa88c524bcd69b4b3cc434d4188fce16f299afc8c1103ffb276fdb91
+EBUILD gnofract4d-3.14.1.ebuild 1158 SHA256 c34712e1d567c4dad60f7024bada3f070118207f5b6bd21ab5124ec206917775 SHA512 b03716b6988ca4f8cfe056892cec3916a2ba39038cffe8fa4779a3e14362939eda79f87ae0e6a5c716df2c5a20a52b2359b893b1d2e09301e289b4715b57e554 WHIRLPOOL 41f90ad5ede6a898f49e240548e0e292cdb6d020c23d3a429409f2d5286ade249070a8ce738986438854f870ca3b407c62e2f6b7bdbdfac5d1a7b1cacfd8ec2e
+MISC ChangeLog 2594 SHA256 e02ebcc4f60820272a19644f6b528d928bdc396ea2b6e0b11d6930660f59c058 SHA512 2f9679602346b4f343c4dabcdbb63fd0f0aa9fb1c9e059daac6acc2e97a21160c4bf40b776b504bd884771f1e2b76193fcc1240d40927424eeab3543e0b15261 WHIRLPOOL db6c4c1538bfe9110405fac607dd4e5767f8a084d982705a12049622daf1bc436c5867244b8aad7260819bdb98850a824f7831b52faee02b70bc0c97eb2d1bf8
+MISC ChangeLog-2015 2512 SHA256 45711024d374793ad8ed5a993f32efeb5d833d43772c04933a89f2384fd25565 SHA512 6908d7b5cb3d78eb3356e003f6a81a3e9d5c1ece0db236c69638d176f3aab8b5558051982007676ea5bf9992d965ffc0de75dccdf766c5ed518cc10bd88e2478 WHIRLPOOL dd0698171ccc5c0a32574534c893222de13318903ab7d12c485372f04c7bb2c7f6011ccd89f0c5c533274ba11e9cf06310acb63025541aae4c815b065e9bb5d0
+MISC metadata.xml 397 SHA256 1f12efffae5d8e85213ddeb4a5697ebe9353825d27104a9fb73adb6460785e3b SHA512 9f2efdbbb8eefe3d2d7b42287f233db308e24b9ef825522e650b98857de963171870460a1a5c8ad2e9f65272db6bd176a552587e38d877fcad2afd6be2b0e6e6 WHIRLPOOL d95114a82f309e1789d335086b8426d0417f3b5e36cae8ec2e84c00413f85113df72e2bbb857994137477f1ede7fce8acc8e1aee49c1e5acc6b309b0e1174696
diff --git a/media-gfx/gnofract4d/files/gnofract4d-3.14-desktop.patch b/media-gfx/gnofract4d/files/gnofract4d-3.14-desktop.patch
new file mode 100644
index 000000000000..ca521962460f
--- /dev/null
+++ b/media-gfx/gnofract4d/files/gnofract4d-3.14-desktop.patch
@@ -0,0 +1,19 @@
+diff --git a/gnofract4d.desktop b/gnofract4d.desktop
+index 4bf055f..b8dfc47 100644
+--- a/gnofract4d.desktop
++++ b/gnofract4d.desktop
+@@ -1,13 +1,10 @@
+ [Desktop Entry]
+ Version=1.0
+-Encoding=UTF-8
+ Name=Gnofract 4D Fractal Generator
+ Comment=Generate fractal images such as the Mandelbrot set
+ Exec=gnofract4d %F
+-Icon=gnofract4d-logo.png
++Icon=gnofract4d-logo
+ Terminal=false
+ Type=Application
+ Categories=GNOME;Graphics;Math;
+ MimeType=text/x-gnofract4d-fractal-parameters
+-
+-
diff --git a/media-gfx/gnofract4d/files/gnofract4d-3.14-manual.patch b/media-gfx/gnofract4d/files/gnofract4d-3.14-manual.patch
new file mode 100644
index 000000000000..ce1918b33286
--- /dev/null
+++ b/media-gfx/gnofract4d/files/gnofract4d-3.14-manual.patch
@@ -0,0 +1,25 @@
+diff --git a/doc/gnofract4d-manual/C/gnofract4d-manual.xml b/doc/gnofract4d-manual/C/gnofract4d-manual.xml
+index 3cea223..0ce6e17 100644
+--- a/doc/gnofract4d-manual/C/gnofract4d-manual.xml
++++ b/doc/gnofract4d-manual/C/gnofract4d-manual.xml
+@@ -2,7 +2,6 @@
+ <!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd" [
+
+ <!ENTITY stdlib SYSTEM "stdlib.xml">
+-<!ENTITY commands SYSTEM "commands.xml">
+ <!ENTITY tutorial001 SYSTEM "tutorial001.xml">
+ <!ENTITY tutorial002 SYSTEM "tutorial002.xml">
+ <!ENTITY tutorial003 SYSTEM "tutorial003.xml">
+@@ -625,12 +624,6 @@ see weird effects unless you disable periodicity checking.
+ </sect2>
+ </sect1>
+
+-<sect1 id="cmdref">
+-<title>Command Reference</title>
+-<!-- pull in auto-generated list of keyboard and mouse commands -->
+-&commands;
+-</sect1>
+-
+ <sect1 id="maths">
+ <title> About the maths</title>
+
diff --git a/media-gfx/gnofract4d/gnofract4d-3.14-r1.ebuild b/media-gfx/gnofract4d/gnofract4d-3.14-r1.ebuild
new file mode 100644
index 000000000000..c6931c84c568
--- /dev/null
+++ b/media-gfx/gnofract4d/gnofract4d-3.14-r1.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+PYTHON_COMPAT=( python2_7 )
+
+inherit distutils-r1 fdo-mime
+
+DESCRIPTION="A program for drawing beautiful mathematically-based images known as fractals"
+HOMEPAGE="http://gnofract4d.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+RDEPEND="x11-libs/gtk+:2
+ >=media-libs/libpng-1.4
+ virtual/jpeg
+ >=dev-python/pygtk-2[${PYTHON_USEDEP}]
+ >=gnome-base/gconf-2[${PYTHON_USEDEP}]"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+src_install() {
+ distutils-r1_src_install
+ rm -rf "${D}"/usr/share/doc/${PN}
+}
+
+pkg_postinst() {
+ fdo-mime_desktop_database_update
+ fdo-mime_mime_database_update
+}
+
+pkg_postrm() {
+ fdo-mime_desktop_database_update
+ fdo-mime_mime_database_update
+}
diff --git a/media-gfx/gnofract4d/gnofract4d-3.14.1.ebuild b/media-gfx/gnofract4d/gnofract4d-3.14.1.ebuild
new file mode 100644
index 000000000000..437acd4d8528
--- /dev/null
+++ b/media-gfx/gnofract4d/gnofract4d-3.14.1.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python2_7 )
+DISTUTILS_SINGLE_IMPL=1
+MY_PV=V_${PV//./_}
+
+inherit distutils-r1 fdo-mime
+
+DESCRIPTION="A program for drawing beautiful mathematically-based images known as fractals"
+HOMEPAGE="http://edyoung.github.io/gnofract4d/"
+SRC_URI="https://github.com/edyoung/${PN}/archive/${MY_PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="x11-libs/gtk+:2
+ media-libs/libpng:0=
+ virtual/jpeg:0
+ >=dev-python/pygtk-2[${PYTHON_USEDEP}]"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+PATCHES=(
+ "${FILESDIR}"/gnofract4d-3.14-desktop.patch
+ "${FILESDIR}"/gnofract4d-3.14-manual.patch
+)
+
+S="${WORKDIR}"/${PN}-${MY_PV}
+
+python_compile_all() {
+ # Needs fixing to be able to generate commands.xml
+ "${EPYTHON}" createdocs.py || die
+}
+
+python_install_all() {
+ distutils-r1_python_install_all
+ rm -rf "${ED%/}"/usr/share/doc/${PN} || die
+}
+
+pkg_postinst() {
+ fdo-mime_desktop_database_update
+ fdo-mime_mime_database_update
+}
+
+pkg_postrm() {
+ fdo-mime_desktop_database_update
+ fdo-mime_mime_database_update
+}
diff --git a/media-gfx/gnofract4d/metadata.xml b/media-gfx/gnofract4d/metadata.xml
new file mode 100644
index 000000000000..fb2b6be847f0
--- /dev/null
+++ b/media-gfx/gnofract4d/metadata.xml
@@ -0,0 +1,12 @@
+<?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="sourceforge">gnofract4d</remote-id>
+ <remote-id type="github">edyoung/gnofract4d</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/media-gfx/gnome-font-viewer/Manifest b/media-gfx/gnome-font-viewer/Manifest
new file mode 100644
index 000000000000..d54434d713cc
--- /dev/null
+++ b/media-gfx/gnome-font-viewer/Manifest
@@ -0,0 +1,7 @@
+DIST gnome-font-viewer-3.22.0.tar.xz 320680 SHA256 bd27cbc523016711508d7913878f32e262893cfcc7e10795171dbf8e35af9be0 SHA512 deea5dce759fa7134701f5edddf4838a0221ef776777fabd071982fddc8d3a6c535a55035d4457d262db54760c3616335d9ef89e29f846a648c1d9d522018978 WHIRLPOOL 88ba5900674e3ede4325968a322541c3ca641f98550f36d16c7d86970e6b94584a99366fb66beeda6251f8595c07e8ae7d466aac4389b76f51ad5e186e3f26e3
+DIST gnome-font-viewer-3.24.0.tar.xz 321600 SHA256 f3658216a744603fd2100d60de7b31062e014f02333e8433dcaf6a3bb4b7dc76 SHA512 b951e98161dde808aaea0666c0266a3381c82a264dc7280fcd4e4debcf07bd44c940e738a2dd5134276625e404f87323f57930764ed2faeedad831ba6a8bb591 WHIRLPOOL ee437830404328af15aa586b1324a632fb5899d8357dfbb9559b0a83e250f5df3ea0df3bf32ee12d32fb2594ff5cb07588976edf87493e54ea313dc14ac579c7
+EBUILD gnome-font-viewer-3.22.0.ebuild 603 SHA256 b46dc5776e6c333893eaf7dd2273c19926c368084b3c1b73b34c535e699fbbf3 SHA512 0f831db3a3dff5c49953f884bdb073a5b61636b3252c6600b9c0281426c3c5b3267155118595a286cfdd71565e89f609761debf4fc5dd37d144b5f7b1326620c WHIRLPOOL f1df1cc302abfba4dc8141800ba0cbf3290ca927026f4c64f41188a157140ab6c14848344b4fe460d9176ba96836631ec4576738b0235dfb0434af2192153108
+EBUILD gnome-font-viewer-3.24.0.ebuild 605 SHA256 2ba63ff021a8d7dae384fdd1779ff993577038a4e6043c33ab877fec3bf8b957 SHA512 b3d6f7a108d11b44d43bd89cace5197c45cd3f7357fc1e406bc2bc3cd9535cb642abe3ed8c63ed4a84892a6a88fbfb591a276f61622e49a1ad340275333b9778 WHIRLPOOL d7e9bdcbaf814b9c9f053dd0802e0291a5840a17ba99228063cc8785ba76aab5a7cb9d843bc4e5d45215be9876e4928fa89e2f4d7876374e20807ffc882d5e49
+MISC ChangeLog 3940 SHA256 6db02dd5873f45c1958c9c68396801575abebb1c7fdb5e86f92db9acab652100 SHA512 372ca29a62d78ffcd6151990e90f135286d5fe9ada2d2c4400530b647b672097c9c26e575ac49bc165a9deff462ea9d3f21616ab18a2b9eb8a633dc69986f5fb WHIRLPOOL be50e7a19e18213dffd38a49fac33fca175cc435ba3abfb16f79de59ea24614cb1862dff57e8503ca8228ca095fb942ccbc4df3d1a9755dd256894d583ea8e7b
+MISC ChangeLog-2015 3556 SHA256 b76f685afc4bf7c684f2b7f13b5b29d504b7a34f4f0662a6e7ef369a2dccc066 SHA512 d95a469757f03928e2de1415e1ebe9a30581d7a829cb9e22fdd54eda33c93033dd1510a7927454243e3522d90f00f54e967428dd3d1e5b7dabb3444f44e82c1a WHIRLPOOL c935af933c4311ae4fcc0bec9f1825d7b20e68d134b5c7fc459f702c1fd822bac77cb7e0dc01a42dd67d294b08a1b436a08d7903ae8168514d12ff4c3e644c20
+MISC metadata.xml 249 SHA256 4505b0bfeadff287958620b7dc7b7209699065a8f17139a237a5dd409a726a97 SHA512 c40662134899a5c9f0369a1017806f35adf3280a0b3c91726f7a8ca6012a073a8b471583f5bfb6fe95faac1dcf607e8e2e43f8c91d48ec46f4a8824e2f551506 WHIRLPOOL 333a938ee1d2124595596c572697bf5ebad523a92ba12005cfb12e6bb6270881a94a911f0cc9c1cf2bb571559e8271e07dfd307dabe50058236dbe7103562b92
diff --git a/media-gfx/gnome-font-viewer/gnome-font-viewer-3.22.0.ebuild b/media-gfx/gnome-font-viewer/gnome-font-viewer-3.22.0.ebuild
new file mode 100644
index 000000000000..9b22738513c7
--- /dev/null
+++ b/media-gfx/gnome-font-viewer/gnome-font-viewer-3.22.0.ebuild
@@ -0,0 +1,26 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit gnome2
+
+DESCRIPTION="Font viewer for GNOME"
+HOMEPAGE="https://git.gnome.org/browse/gnome-font-viewer"
+
+LICENSE="GPL-2+ LGPL-2.1+"
+SLOT="0"
+IUSE=""
+KEYWORDS="~alpha amd64 ~arm ~ia64 ~ppc ~ppc64 ~sh ~sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux"
+
+RDEPEND="
+ >=dev-libs/glib-2.35.1:2
+ gnome-base/gnome-desktop:3=
+ media-libs/fontconfig:1.0
+ media-libs/freetype:2
+ >=media-libs/harfbuzz-0.9.9
+ >=x11-libs/gtk+-3.20:3
+"
+DEPEND="${RDEPEND}
+ >=dev-util/intltool-0.40
+ virtual/pkgconfig
+"
diff --git a/media-gfx/gnome-font-viewer/gnome-font-viewer-3.24.0.ebuild b/media-gfx/gnome-font-viewer/gnome-font-viewer-3.24.0.ebuild
new file mode 100644
index 000000000000..96f51de5f72f
--- /dev/null
+++ b/media-gfx/gnome-font-viewer/gnome-font-viewer-3.24.0.ebuild
@@ -0,0 +1,26 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit gnome2
+
+DESCRIPTION="Font viewer for GNOME"
+HOMEPAGE="https://git.gnome.org/browse/gnome-font-viewer"
+
+LICENSE="GPL-2+ LGPL-2.1+"
+SLOT="0"
+IUSE=""
+KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux"
+
+RDEPEND="
+ >=dev-libs/glib-2.35.1:2
+ gnome-base/gnome-desktop:3=
+ media-libs/fontconfig:1.0
+ media-libs/freetype:2
+ >=media-libs/harfbuzz-0.9.9
+ >=x11-libs/gtk+-3.20:3
+"
+DEPEND="${RDEPEND}
+ >=dev-util/intltool-0.40
+ virtual/pkgconfig
+"
diff --git a/media-gfx/gnome-font-viewer/metadata.xml b/media-gfx/gnome-font-viewer/metadata.xml
new file mode 100644
index 000000000000..39980802b1da
--- /dev/null
+++ b/media-gfx/gnome-font-viewer/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 type="project">
+ <email>gnome@gentoo.org</email>
+ <name>Gentoo GNOME Desktop</name>
+</maintainer>
+</pkgmetadata>
diff --git a/media-gfx/gnome-photos/Manifest b/media-gfx/gnome-photos/Manifest
new file mode 100644
index 000000000000..64364aedc52f
--- /dev/null
+++ b/media-gfx/gnome-photos/Manifest
@@ -0,0 +1,9 @@
+DIST gnome-photos-3.22.6.tar.xz 962468 SHA256 476a901e4ed3eb9759a5e379937ff91e985f2f796de8d76289580b8b2f7fd86e SHA512 4fb2a67b5acdbd63cf6f252d0116a4b759e0e6daae48d638ce96ec35f24deee44720c45cb0720a26b6a380e66bbde1619173de340375828bc2f4ef943606fe26 WHIRLPOOL 78557d62348844a6cba345f7a9f6eff8e584494e0f0fc95f6410ff0f4f05ef888e7f2bdefbf03904ff7e9fffcd1d81a7c3373ebd58ee182a91eddbcc129320e0
+DIST gnome-photos-3.24.2.tar.xz 984372 SHA256 31ddc078ad2f6bc4bbfa2f71eb23377782750b9cb2ad2b0e6ff2a1971548cdf9 SHA512 6747d7f7b0fe8710f299a7cd72916a1abd2e6296d642f9d7bf027de731f0fa4e0f862cb6bcb5622bb2d69298b911433df2a31f37f1f7d02fd4e5582234fe0c9f WHIRLPOOL f8abd3026cbc28b32253e59a89468f44cd5d852394c3e0881e9d06af92776b386ebd97a80d31f54db19a18cfcb94af68cafa87c6a5edbae8f9e063e01a7ce412
+DIST gnome-photos-3.24.3.tar.xz 984796 SHA256 cd365629ce584d223c023676a88b6194012bbc561c4a4b1c8eca462425e76288 SHA512 254fc37cfdfcd1b2d854e1ddb5a71d28aab6da3caa6a8739dcbecdabc8a9cb449b2b4080319bb9b73d4b16464f7a7ab7060304fd1194f3bc8cacc67497567a2c WHIRLPOOL 1cd7bc12fb529fe3f5e168ccee3b1e2ad1f9d6f6d8ece6aad6b05fa49a51115c25d17f43f3532364f5ff0dfd46c8999fc40dec9815227abe94f889a476561e9d
+EBUILD gnome-photos-3.22.6.ebuild 1735 SHA256 a6be27c5119d57d88a00b787bdd34de3c1d6913f0aebab5153afae7938a4845e SHA512 fe73b9b9a9cf368b41a06c8f4a33625a5684c9e41b376145c55aa51e990be34e8ef5066017d4d38ce7e0666fe587b3d90ec340f73837a6e0703978e94ff1a34a WHIRLPOOL 31ab38a42cfe96be09bbdeef5ee1689c946990ea82657f87b57ba3530ffd3ae184fd4ddd5144b1d4da63d387b6feb5c10609e5e1a1b2123bdfc4cc6613d97e3f
+EBUILD gnome-photos-3.24.2.ebuild 1769 SHA256 35a7e354e799ff7299f9b62f98e114170b78f24ab1713650c98981c64464d392 SHA512 6dfe7169df882a7a22374aa12f4c82f2447d42e6b0ebc285d2c2a1c12aa4ab4211587b1b328728861e6185a8534ee831b3da5b0d43ba7d218b723bbb51589f77 WHIRLPOOL 3dd0c6277f4596581d984ce84b95e8640ee8943727fcaae92cf701b86df9722f35f089333163a5cc11d1c60bfe0134ef2b0b70c0cd25add6e4b623a168fbe900
+EBUILD gnome-photos-3.24.3.ebuild 1778 SHA256 a2347c13f08563cea42aedf85e2ac1d6e2836833742e423fd0df0d347f8064e4 SHA512 6d581d5f2a383b9484bcd41d75268b00e141eeeeff39a2d1e657dfb66393d25e2a1e259b09501b801db7a9a35a658d91f7a5268f30b9b6ed28177874f902a6c5 WHIRLPOOL c8441ff4e0d4debedb1e7d99dc08d1213bbfe76f4a9d7124a4963444f5103e0667379adcbff8731bec4372a7edc294fed00ec2089eee4d876956750a65da6359
+MISC ChangeLog 7354 SHA256 e061342cb159dceb57b39d7bab541ab164c69321c282dfd8d56a2b1772faa9a0 SHA512 e6c92db9f341fb9418d33b9d053eb78a369c10753e6272a1929d3066c966c1537591c7aedb11c3ebe7cd0cb738041dc4dc8ab7ba63f34e192d83ce1f5c18db93 WHIRLPOOL 4297c6f0fd9d03204807f93e165e1b8efab99b7404ea5c923bc0306ec2b36525d5aa2f4db33d0b83fccfd5385357338a4d164b1379e8d07e8fe99680885323ad
+MISC ChangeLog-2015 2894 SHA256 50492dd1b57185d4e0b7e5f60f7dd9bb3e9cb31f7dea0760bf80d9d98ccb27ca SHA512 1fbf680f3da3a727f74438c097679d6a603dfba88b0b81f5bcfc516702b736d08c5c0455c36d7044395bb7d086673628b8654cf435a5091dfb85f37afbf5efa6 WHIRLPOOL d1ac283b0bd0ba0237ebded54e083ec06b1d072b40e26cdfff9ed1105c214540cb7d94ee588a78578e3ae7cca3597277f60358416766e7561abcced339e6590c
+MISC metadata.xml 320 SHA256 f4d1bc56303038e5a58834f58e167751d97393e6c85affee9ddc12b13c8016c6 SHA512 86c99b12ed97b3f09e9469dcb093e18f844f5b3efb3a3169e62e10fe446075c7839ba7ca00e3537744d3c839522cf5ed2ee33215cd5988466e35d0f4dd739b11 WHIRLPOOL e975e13ac9a3172c332ae472c0d0ec7ee560f909453350914672881219e3303937ec69982bd7c74b2317583b52b9f0d13fbb4eef741c31d59e625b9f60b86a6b
diff --git a/media-gfx/gnome-photos/gnome-photos-3.22.6.ebuild b/media-gfx/gnome-photos/gnome-photos-3.22.6.ebuild
new file mode 100644
index 000000000000..5a11fd322e72
--- /dev/null
+++ b/media-gfx/gnome-photos/gnome-photos-3.22.6.ebuild
@@ -0,0 +1,65 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+PYTHON_COMPAT=( python2_7 )
+
+inherit gnome2 python-any-r1 virtualx
+
+DESCRIPTION="Access, organize and share your photos on GNOME"
+HOMEPAGE="https://wiki.gnome.org/Apps/Photos"
+
+LICENSE="GPL-2+ LGPL-2+"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="flickr test upnp-av"
+
+COMMON_DEPEND="
+ >=app-misc/tracker-1:=[miner-fs]
+ >=dev-libs/glib-2.44:2
+ gnome-base/gnome-desktop:3=
+ >=dev-libs/libgdata-0.15.2:0=[gnome-online-accounts]
+ media-libs/babl
+ >=media-libs/gegl-0.3.5:0.3[cairo,jpeg2k,raw]
+ media-libs/gexiv2
+ >=media-libs/grilo-0.3.0:0.3=
+ >=media-libs/libpng-1.6:0=
+ >=net-libs/gnome-online-accounts-3.8:=
+ >=net-libs/libgfbgraph-0.2.1:0.2
+ >=x11-libs/cairo-1.14
+ x11-libs/gdk-pixbuf:2
+ >=x11-libs/gtk+-3.19.1:3
+"
+# gnome-online-miners is also used for google, facebook, DLNA - not only flickr
+# but out of all the grilo-plugins, only upnp-av and flickr get used, which have USE flags here,
+# so don't pull it always, but only if either USE flag is enabled
+RDEPEND="${COMMON_DEPEND}
+ net-misc/gnome-online-miners[flickr?]
+ upnp-av? ( media-plugins/grilo-plugins:0.3[upnp-av] )
+ flickr? ( media-plugins/grilo-plugins:0.3[flickr] )
+"
+DEPEND="${COMMON_DEPEND}
+ app-text/yelp-tools
+ dev-util/desktop-file-utils
+ >=dev-util/intltool-0.50.1
+ virtual/pkgconfig
+ test? ( $(python_gen_any_dep 'dev-util/dogtail[${PYTHON_USEDEP}]') )
+"
+
+python_check_deps() {
+ use test && has_version "dev-util/dogtail[${PYTHON_USEDEP}]"
+}
+
+pkg_setup() {
+ use test && python-any-r1_pkg_setup
+}
+
+src_configure() {
+ # XXX: how to deal with rdtscp support, x86intrin
+ gnome2_src_configure \
+ $(use_enable test dogtail)
+}
+
+src_test() {
+ virtx emake check
+}
diff --git a/media-gfx/gnome-photos/gnome-photos-3.24.2.ebuild b/media-gfx/gnome-photos/gnome-photos-3.24.2.ebuild
new file mode 100644
index 000000000000..542f1adbcb97
--- /dev/null
+++ b/media-gfx/gnome-photos/gnome-photos-3.24.2.ebuild
@@ -0,0 +1,66 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+PYTHON_COMPAT=( python2_7 )
+
+inherit gnome2 python-any-r1 virtualx
+
+DESCRIPTION="Access, organize and share your photos on GNOME"
+HOMEPAGE="https://wiki.gnome.org/Apps/Photos"
+
+LICENSE="GPL-2+ LGPL-2+"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="flickr test upnp-av"
+
+COMMON_DEPEND="
+ >=app-misc/tracker-1:=[miner-fs]
+ >=dev-libs/glib-2.44:2
+ gnome-base/gnome-desktop:3=
+ >=dev-libs/libgdata-0.15.2:0=[gnome-online-accounts]
+ media-libs/babl
+ >=media-libs/gegl-0.3.14:0.3[cairo,jpeg2k,raw]
+ media-libs/gexiv2
+ >=media-libs/grilo-0.3.0:0.3=
+ >=media-libs/libpng-1.6:0=
+ >=net-libs/gnome-online-accounts-3.8:=
+ >=net-libs/libgfbgraph-0.2.1:0.2
+ sci-geosciences/geocode-glib
+ >=x11-libs/cairo-1.14
+ x11-libs/gdk-pixbuf:2
+ >=x11-libs/gtk+-3.22.10:3
+"
+# gnome-online-miners is also used for google, facebook, DLNA - not only flickr
+# but out of all the grilo-plugins, only upnp-av and flickr get used, which have USE flags here,
+# so don't pull it always, but only if either USE flag is enabled
+RDEPEND="${COMMON_DEPEND}
+ net-misc/gnome-online-miners[flickr?]
+ upnp-av? ( media-plugins/grilo-plugins:0.3[upnp-av] )
+ flickr? ( media-plugins/grilo-plugins:0.3[flickr] )
+"
+DEPEND="${COMMON_DEPEND}
+ app-text/yelp-tools
+ dev-util/desktop-file-utils
+ >=dev-util/intltool-0.50.1
+ virtual/pkgconfig
+ test? ( $(python_gen_any_dep 'dev-util/dogtail[${PYTHON_USEDEP}]') )
+"
+
+python_check_deps() {
+ use test && has_version "dev-util/dogtail[${PYTHON_USEDEP}]"
+}
+
+pkg_setup() {
+ use test && python-any-r1_pkg_setup
+}
+
+src_configure() {
+ # XXX: how to deal with rdtscp support, x86intrin
+ gnome2_src_configure \
+ $(use_enable test dogtail)
+}
+
+src_test() {
+ virtx emake check
+}
diff --git a/media-gfx/gnome-photos/gnome-photos-3.24.3.ebuild b/media-gfx/gnome-photos/gnome-photos-3.24.3.ebuild
new file mode 100644
index 000000000000..72c739cc8396
--- /dev/null
+++ b/media-gfx/gnome-photos/gnome-photos-3.24.3.ebuild
@@ -0,0 +1,66 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+PYTHON_COMPAT=( python2_7 )
+
+inherit gnome2 python-any-r1 virtualx
+
+DESCRIPTION="Access, organize and share your photos on GNOME"
+HOMEPAGE="https://wiki.gnome.org/Apps/Photos"
+
+LICENSE="GPL-2+ LGPL-2+"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="flickr test upnp-av"
+
+COMMON_DEPEND="
+ >=app-misc/tracker-1:=[miner-fs]
+ >=dev-libs/glib-2.44:2
+ gnome-base/gsettings-desktop-schemas
+ >=dev-libs/libgdata-0.15.2:0=[gnome-online-accounts]
+ media-libs/babl
+ >=media-libs/gegl-0.3.14:0.3[cairo,jpeg2k,raw]
+ media-libs/gexiv2
+ >=media-libs/grilo-0.3.0:0.3=
+ >=media-libs/libpng-1.6:0=
+ >=net-libs/gnome-online-accounts-3.8:=
+ >=net-libs/libgfbgraph-0.2.1:0.2
+ sci-geosciences/geocode-glib
+ >=x11-libs/cairo-1.14
+ x11-libs/gdk-pixbuf:2
+ >=x11-libs/gtk+-3.22.15:3
+"
+# gnome-online-miners is also used for google, facebook, DLNA - not only flickr
+# but out of all the grilo-plugins, only upnp-av and flickr get used, which have USE flags here,
+# so don't pull it always, but only if either USE flag is enabled
+RDEPEND="${COMMON_DEPEND}
+ net-misc/gnome-online-miners[flickr?]
+ upnp-av? ( media-plugins/grilo-plugins:0.3[upnp-av] )
+ flickr? ( media-plugins/grilo-plugins:0.3[flickr] )
+"
+DEPEND="${COMMON_DEPEND}
+ app-text/yelp-tools
+ dev-util/desktop-file-utils
+ >=dev-util/intltool-0.50.1
+ virtual/pkgconfig
+ test? ( $(python_gen_any_dep 'dev-util/dogtail[${PYTHON_USEDEP}]') )
+"
+
+python_check_deps() {
+ use test && has_version "dev-util/dogtail[${PYTHON_USEDEP}]"
+}
+
+pkg_setup() {
+ use test && python-any-r1_pkg_setup
+}
+
+src_configure() {
+ # XXX: how to deal with rdtscp support, x86intrin
+ gnome2_src_configure \
+ $(use_enable test dogtail)
+}
+
+src_test() {
+ virtx emake check
+}
diff --git a/media-gfx/gnome-photos/metadata.xml b/media-gfx/gnome-photos/metadata.xml
new file mode 100644
index 000000000000..97374ee59f59
--- /dev/null
+++ b/media-gfx/gnome-photos/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>gnome@gentoo.org</email>
+ <name>Gentoo GNOME Desktop</name>
+</maintainer>
+<use>
+ <flag name="flickr">Ensure runtime Flickr support</flag>
+</use>
+</pkgmetadata>
diff --git a/media-gfx/gnome-raw-thumbnailer/Manifest b/media-gfx/gnome-raw-thumbnailer/Manifest
new file mode 100644
index 000000000000..9ed8b3b5716f
--- /dev/null
+++ b/media-gfx/gnome-raw-thumbnailer/Manifest
@@ -0,0 +1,9 @@
+AUX gnome-raw-thumbnailer-3.0.0-deprecation-warning.patch 1715 SHA256 dbb494438ac4f19bb05ad87051302f3e20ef2b69491c1694867aa622000d30fc SHA512 412e7cabc34431730b60efe5c88514c1c60b691f7b305ac408adb7403f3c2795c6712b5b058f83b17d6bc80240656af1edae3ad68ededa5e7e971af9038158ce WHIRLPOOL 74565f479578d3420239f34952e00326a4be08fc6a96de6242bf320744166425481508357eb4946b64e0afb7ad51bce054f7ac12f99b37aa41e81e8e62b5e231
+AUX gnome-raw-thumbnailer-3.0.0-fix-downscale.patch 1030 SHA256 f9b841c97fa5d0eaf16f78e6ecfe63ac17f1c9c7aec79005284453388e6f3368 SHA512 b4985090dad9a06087d2b598eed03333a80d71343a244db3c08fc0f5ef1fc8baae1969b0cdaad460cdd54106173fdd9aa52086203727e823e20bb830deee1242 WHIRLPOOL b7cd3d968434892f96e267e48e9be1141339daea2b9e8646ac7e4169ddc485a3837ff2e69f3178c0e0d65fda9bbf4f1680546237955dce2ed02d800673b76c90
+AUX gnome-raw-thumbnailer-3.0.0-libopenraw-0.1.patch 696 SHA256 5a18c7de9f6cf0c849d735a6e0762f63ad6bfdb37a1c3d953bfe65a796412871 SHA512 ac12cf060a1f40abecb2ff86429766662632e1a448dd84c5205c8def987d7e20c1738402cfd7d6c76b4a5f908872c77ddc046e6379705c1e69277543828bdab7 WHIRLPOOL bb318fcfdf31263d2e8efef36b0191dba2b37c0093dae110be85e631fdb6f7572dd825957bd1a4d20091f3f0f692361a0d60f5bb275a15b32ddb85f5b980718d
+DIST raw-thumbnailer-3.0.0.tar.bz2 270499 SHA256 27afbc429f2772d5b9190c5443158ac33352e6bd5fede3aa1a7aa6b5fbb9d253 SHA512 b6b477af0ec604e100a67829bc9262a3aa54db9beb644e60a9ae95f916fd641ad7ccaa908fc6458be2eee60ecdb47bda9449720bc078f1c4fe0135fabf0bd9eb WHIRLPOOL 02862ef003dac30394d089f0573a40b1dd1d2c676a71d5b9bfc43803b75b94b72c851eceb9b803f3334c893f3a906818e5445b7faa9eb9500bf3d7aef99c1aa9
+EBUILD gnome-raw-thumbnailer-3.0.0-r1.ebuild 866 SHA256 9fca2749498751b900e65d7ffb4ed84a93adf72c90cb4696090ad943c681b0b8 SHA512 06ac66c3e701c12aeeb9756d48bcb7b7cf166a9a97795f2cae8c553298f3859f468bd1f9ab5fc6c1bfe4132146b9811e3398c2ab8e80e6e34121d060491a967c WHIRLPOOL 506c8b1de9efab90cab38e13fec9cc3462f15e06e980e78146fc8114063f4b8555a9abd6dade3694ff0cd0f08ff30803e11f8b3c43299caf6055250da28b9b05
+EBUILD gnome-raw-thumbnailer-3.0.0.ebuild 648 SHA256 de2c1f59e14865d17f267103fb140f5d103f2d88ed87f730a0a58a240730ef59 SHA512 c129fee26c644d9f1577aa53c0bca841047cf93a0c5d65442ae141b21bd82ce4097e932969a745df528a1703ceee65a0d9c667c7888321e3347997fd156787b8 WHIRLPOOL b07b794c37e3b05f707276b1c3f9877a77dfa4229c5f85da7caad80aa1f9d239f156378bd75772b3d8f21da28010d8867bb82a9bc73d7889bdeea3898f7bd1cf
+MISC ChangeLog 3530 SHA256 7f6bc34dd593754d4420a549b60b6c4af8c9f69f3d845f9094e0b1b8d39c6593 SHA512 5a5befae077b99f185e98434cee9fbc55e4cae1eb37527d0cbe1fa6b9e6bbec87a34ce9d6979876c3b5e64dfad43a041d6139d969189500e31d867db47d19098 WHIRLPOOL c3a3b83b6260dd7d64cdef2ba5db9fdc493bf7afaa02421f5afb3a340b7a5de41f0a78fb51dfa09c04d679dff578a8cec210cd06716573ff564ef32a227f6070
+MISC ChangeLog-2015 2293 SHA256 6ec01977f747de35be37cebae03c4c001ec3dd533b62994580ade570c05e0546 SHA512 ac8b07aca395f39ec68369105094312c8e692797984b76e085667b6c7077d1a11ba797578fe7a6b00c82690e9c12141c968585663c876f7917d42dcfdfb93376 WHIRLPOOL a2767c9f4bc99b9627a3d79a225878fb6afa59a6bc5cc56bb6ec0029631cfd51988535d5710d8adc822fc453d164dddb3cfd8d952448cddbbca7b95492fbeb8d
+MISC metadata.xml 259 SHA256 6d16d32cce05219baff0d7aef9baf4f8f4622ba77a55e9bc5ae9b074ae8d4600 SHA512 fbef629394690b3a5608abc6344816f6acf1e8e2663f29949fd14a662c628f16fee77a1ec1641066806d143fb94c1571bc5b46b829dc53620af6956377fe15cc WHIRLPOOL dd2c856848fdc98df5a4ffca31b95078656373a87ccf2e44be410e7139f2980f3ebb0ae951e2e92fc46ce8e3a3ecefec169c3a15bbcceba69c1bd8224a8dd271
diff --git a/media-gfx/gnome-raw-thumbnailer/files/gnome-raw-thumbnailer-3.0.0-deprecation-warning.patch b/media-gfx/gnome-raw-thumbnailer/files/gnome-raw-thumbnailer-3.0.0-deprecation-warning.patch
new file mode 100644
index 000000000000..8fddadb435ab
--- /dev/null
+++ b/media-gfx/gnome-raw-thumbnailer/files/gnome-raw-thumbnailer-3.0.0-deprecation-warning.patch
@@ -0,0 +1,63 @@
+From e769ad77617a3456f0f4aee9418ef6bdbab40403 Mon Sep 17 00:00:00 2001
+From: Anton Keks <anton@codeborne.com>
+Date: Thu, 2 Jan 2014 23:14:55 +0200
+Subject: [PATCH 1/8] fix deprecation warnings
+
+---
+ src/raw-thumbnailer.c | 11 ++---------
+ 1 file changed, 2 insertions(+), 9 deletions(-)
+
+diff --git a/src/raw-thumbnailer.c b/src/raw-thumbnailer.c
+index d638102..b32bc49 100644
+--- a/src/raw-thumbnailer.c
++++ b/src/raw-thumbnailer.c
+@@ -64,7 +64,7 @@ save_pixbuf (GdkPixbuf *pixbuf, const char *path, int size)
+ }
+ else {
+ small = pixbuf;
+- gdk_pixbuf_ref (small);
++ g_object_ref (small);
+ }
+
+ a_width = g_strdup_printf ("%d", width);
+@@ -88,14 +88,11 @@ save_pixbuf (GdkPixbuf *pixbuf, const char *path, int size)
+ g_free(a_height);
+
+ if (small) {
+- gdk_pixbuf_unref (small);
++ g_object_unref (small);
+ }
+ return;
+ }
+
+-
+-
+-
+ static const GOptionEntry entries[] = {
+ { "jpeg", 'j', 0, G_OPTION_ARG_NONE, &jpeg_output, "Output the thumbnail as a JPEG instead of PNG", NULL },
+ { "size", 's', 0, G_OPTION_ARG_INT, &output_size, "Size of the thumbnail in pixels", NULL },
+@@ -107,8 +104,6 @@ static const GOptionEntry entries[] = {
+ { NULL }
+ };
+
+-
+-
+ int main (int argc, char ** argv)
+ {
+ const char *output_name;
+@@ -121,7 +116,6 @@ int main (int argc, char ** argv)
+
+ context = g_option_context_new ("Thumbnail camera RAW files.");
+ g_option_context_add_main_entries (context, entries, GETTEXT_PACKAGE);
+- g_type_init ();
+
+ if (g_option_context_parse (context, &argc, &argv, &err) == FALSE) {
+ g_print ("couldn't parse command-line options: %s\n", err->message);
+@@ -161,4 +155,3 @@ int main (int argc, char ** argv)
+ return 0;
+ }
+
+-
+--
+2.12.2
+
diff --git a/media-gfx/gnome-raw-thumbnailer/files/gnome-raw-thumbnailer-3.0.0-fix-downscale.patch b/media-gfx/gnome-raw-thumbnailer/files/gnome-raw-thumbnailer-3.0.0-fix-downscale.patch
new file mode 100644
index 000000000000..def91cb3fb39
--- /dev/null
+++ b/media-gfx/gnome-raw-thumbnailer/files/gnome-raw-thumbnailer-3.0.0-fix-downscale.patch
@@ -0,0 +1,35 @@
+From 5a03b1a9ffece1d38cc0cf91c599975b9f2b028e Mon Sep 17 00:00:00 2001
+From: Anton Keks <anton@codeborne.com>
+Date: Thu, 2 Jan 2014 23:44:03 +0200
+Subject: [PATCH 1/7] downscale thumbnail if requested size is smaller than it
+ is, do not hardcode 128
+
+---
+ src/raw-thumbnailer.c | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/src/raw-thumbnailer.c b/src/raw-thumbnailer.c
+index b32bc49..135dbe3 100644
+--- a/src/raw-thumbnailer.c
++++ b/src/raw-thumbnailer.c
+@@ -47,7 +47,7 @@ save_pixbuf (GdkPixbuf *pixbuf, const char *path, int size)
+ height = gdk_pixbuf_get_height (pixbuf);
+ width = gdk_pixbuf_get_width (pixbuf);
+
+- if (size <= 128) {
++ if (size < height || size < width) {
+ int d_width, d_height;
+
+ if (width > height) {
+@@ -143,7 +143,7 @@ int main (int argc, char ** argv)
+
+ char* inputfname = g_filename_from_uri (uri, NULL, NULL);
+ g_free(uri);
+-
++
+ pixbuf = or_gdkpixbuf_extract_rotated_thumbnail(inputfname, output_size);
+ g_free(inputfname);
+
+--
+2.12.2
+
diff --git a/media-gfx/gnome-raw-thumbnailer/files/gnome-raw-thumbnailer-3.0.0-libopenraw-0.1.patch b/media-gfx/gnome-raw-thumbnailer/files/gnome-raw-thumbnailer-3.0.0-libopenraw-0.1.patch
new file mode 100644
index 000000000000..50e5433809a0
--- /dev/null
+++ b/media-gfx/gnome-raw-thumbnailer/files/gnome-raw-thumbnailer-3.0.0-libopenraw-0.1.patch
@@ -0,0 +1,25 @@
+From 5cc4ad36b9f25f6973ae48166595d201f215a012 Mon Sep 17 00:00:00 2001
+From: Gilles Dartiguelongue <eva@gentoo.org>
+Date: Sun, 16 Apr 2017 16:50:00 +0200
+Subject: [PATCH] Update pkgconfig name of libopenraw
+
+---
+ configure.ac | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/configure.ac b/configure.ac
+index 0f637b5..26dbf5a 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -22,7 +22,7 @@ PKG_CHECK_MODULES(GNOME, gdk-pixbuf-2.0 gio-2.0 glib-2.0)
+ AC_SUBST(GNOME_CFLAGS)
+ AC_SUBST(GNOME_LIBS)
+
+-PKG_CHECK_MODULES(OPENRAW, libopenraw-gnome-1.0 >= 0.0.9)
++PKG_CHECK_MODULES(OPENRAW, libopenraw-gnome-0.1 >= 0.1.0)
+ AC_SUBST(OPENRAW_CFLAGS)
+ AC_SUBST(OPENRAW_LIBS)
+
+--
+2.12.2
+
diff --git a/media-gfx/gnome-raw-thumbnailer/gnome-raw-thumbnailer-3.0.0-r1.ebuild b/media-gfx/gnome-raw-thumbnailer/gnome-raw-thumbnailer-3.0.0-r1.ebuild
new file mode 100644
index 000000000000..710d2a6cde41
--- /dev/null
+++ b/media-gfx/gnome-raw-thumbnailer/gnome-raw-thumbnailer-3.0.0-r1.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit autotools gnome2
+
+MY_P="${PN/gnome-}-${PV}"
+
+DESCRIPTION="A lightweight and fast raw image thumbnailer for GNOME"
+HOMEPAGE="https://libopenraw.freedesktop.org/wiki/RawThumbnailer"
+SRC_URI="https://libopenraw.freedesktop.org/download/${MY_P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="
+ >=media-libs/libopenraw-0.1.0[gtk]
+ >=x11-libs/gdk-pixbuf-2:2
+ >=dev-libs/glib-2.26:2
+ !media-gfx/raw-thumbnailer
+"
+DEPEND="${RDEPEND}
+ dev-util/intltool
+ gnome-base/gnome-common
+ sys-devel/gettext
+ virtual/pkgconfig
+"
+
+S="${WORKDIR}/${MY_P}"
+
+PATCHES=(
+ "${FILESDIR}"/${P}-deprecation-warning.patch
+ "${FILESDIR}"/${P}-fix-downscale.patch
+ "${FILESDIR}"/${P}-libopenraw-0.1.patch
+)
+
+src_prepare() {
+ default
+ eautoreconf
+}
diff --git a/media-gfx/gnome-raw-thumbnailer/gnome-raw-thumbnailer-3.0.0.ebuild b/media-gfx/gnome-raw-thumbnailer/gnome-raw-thumbnailer-3.0.0.ebuild
new file mode 100644
index 000000000000..b42ec755b1f2
--- /dev/null
+++ b/media-gfx/gnome-raw-thumbnailer/gnome-raw-thumbnailer-3.0.0.ebuild
@@ -0,0 +1,30 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit gnome2
+
+MY_P="${PN/gnome-}-${PV}"
+
+DESCRIPTION="A lightweight and fast raw image thumbnailer for GNOME"
+HOMEPAGE="https://libopenraw.freedesktop.org/wiki/RawThumbnailer"
+SRC_URI="https://libopenraw.freedesktop.org/download/${MY_P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+RDEPEND="
+ >=media-libs/libopenraw-0.0.9[gtk]
+ >=x11-libs/gdk-pixbuf-2:2
+ >=dev-libs/glib-2.26:2
+ !media-gfx/raw-thumbnailer
+"
+DEPEND="${RDEPEND}
+ dev-util/intltool
+ virtual/pkgconfig
+ sys-devel/gettext
+"
+
+S="${WORKDIR}/${MY_P}"
diff --git a/media-gfx/gnome-raw-thumbnailer/metadata.xml b/media-gfx/gnome-raw-thumbnailer/metadata.xml
new file mode 100644
index 000000000000..4cbddcaa19ad
--- /dev/null
+++ b/media-gfx/gnome-raw-thumbnailer/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 type="project">
+ <email>gnome@gentoo.org</email>
+ <name>Gentoo GNOME Desktop</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/media-gfx/gnome-screenshot/Manifest b/media-gfx/gnome-screenshot/Manifest
new file mode 100644
index 000000000000..d438676c3ec4
--- /dev/null
+++ b/media-gfx/gnome-screenshot/Manifest
@@ -0,0 +1,5 @@
+DIST gnome-screenshot-3.22.0.tar.xz 258888 SHA256 8a05f14b3c7c6cb42f9848ad0332034c7fe5c34a69742910203588fd60b00230 SHA512 a532e9cc8615ce22db5805c1857a3bad5bf69a3436a45574384c6c8f848ae67d6991dbfc5556e7cf08f630915c0666bba0c4bee9e4190340bbad57faa9af2ff9 WHIRLPOOL e9656be6dffcbc1c668ce4eb43434acf336199fa3de55a3d33aa18a63b615ad75c5c415f27fa351e9c33fe2d8533d3558389cdb47a437d99e3f9767c893f0a44
+EBUILD gnome-screenshot-3.22.0.ebuild 1203 SHA256 b8e0cfcf6162f99af7e6dbea6a910baa3db51da4c7ba61cd7a8feb60f217526e SHA512 12622777d2c645303e62e2c74fd34fce705f96d3c05de28ce89d2cb424d272f2500aaa8b673833389689db817d362c272a6dcf5bce5ce52f45fb77506fadb69c WHIRLPOOL 66db2bfb790142f86484d7220572ebd2746f3b073f3a8df40c3294148295dcef557c4e1610cefd7cad85ec6fafe0f2f9ab0e7929a21ff78006af5f0a0a01e69a
+MISC ChangeLog 4660 SHA256 ed29c39b9b7462624150a62448021884ad41ba8e51975f05944036310377ca75 SHA512 aa12986abc372551d9c01501604d482c1f5eec316241d224184094e3b134769f1db44f94eb8c051ed96ca7fd164835a9ac2115254dd32babeda637c82a0eb2af WHIRLPOOL 2f0e9a7345e3d7ee87225e1c522891d5b49d72a9f181b627a13783b9c6cec15620aec95df2140e14043f33f9818032b73c3c72756c6c109ab6349d81af25fe4f
+MISC ChangeLog-2015 3870 SHA256 0dbd4cdfc2b64cab61c7e081ace4f24adf08688f19087b0d26300a388a82e582 SHA512 7174bf18270ec119bb5cceab33f9cbbf71e3035b236ad6f452ecf1f0c8c8feb875cef2e36a90f05f502258319bf40a67e0d9393c5c3c1098ee6dbe064e75fe77 WHIRLPOOL f9310780df60fc4b14af942d73aeb5e16afd8fe8c6aa09c95d9ba9ab3d73018ebf1906b07beb12819a592890b9598a792b789e52d1bb117a319bac14e745b5b9
+MISC metadata.xml 249 SHA256 4505b0bfeadff287958620b7dc7b7209699065a8f17139a237a5dd409a726a97 SHA512 c40662134899a5c9f0369a1017806f35adf3280a0b3c91726f7a8ca6012a073a8b471583f5bfb6fe95faac1dcf607e8e2e43f8c91d48ec46f4a8824e2f551506 WHIRLPOOL 333a938ee1d2124595596c572697bf5ebad523a92ba12005cfb12e6bb6270881a94a911f0cc9c1cf2bb571559e8271e07dfd307dabe50058236dbe7103562b92
diff --git a/media-gfx/gnome-screenshot/gnome-screenshot-3.22.0.ebuild b/media-gfx/gnome-screenshot/gnome-screenshot-3.22.0.ebuild
new file mode 100644
index 000000000000..8067e0b9f597
--- /dev/null
+++ b/media-gfx/gnome-screenshot/gnome-screenshot-3.22.0.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit gnome2 readme.gentoo-r1
+
+DESCRIPTION="Screenshot utility for GNOME"
+HOMEPAGE="https://wiki.gnome.org/Apps/Attic/GnomeUtils"
+
+LICENSE="GPL-2+"
+SLOT="0"
+IUSE=""
+KEYWORDS="~alpha amd64 ~arm ~ia64 ~ppc ~ppc64 ~sh ~sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux"
+
+# libcanberra 0.26-r2 is needed for gtk+:3 fixes
+COMMON_DEPEND="
+ >=dev-libs/glib-2.35.1:2[dbus]
+ >=media-libs/libcanberra-0.26-r2[gtk3]
+ x11-libs/cairo
+ x11-libs/gdk-pixbuf
+ >=x11-libs/gtk+-3.0.3:3
+ x11-libs/libX11
+ x11-libs/libXext
+"
+RDEPEND="${COMMON_DEPEND}
+ >=gnome-base/gsettings-desktop-schemas-0.1.0
+ !<gnome-extra/gnome-utils-3.4
+"
+# ${PN} was part of gnome-utils before 3.4
+DEPEND="${COMMON_DEPEND}
+ x11-proto/xextproto
+ >=dev-util/intltool-0.50.2
+ virtual/pkgconfig
+"
+
+DOC_CONTENTS="${P} saves screenshots in ~/Pictures/ and defaults to
+ non-interactive mode when launched from a terminal. If you want to choose
+ where to save the screenshot, run 'gnome-screenshot --interactive'"
+
+src_install() {
+ gnome2_src_install
+ readme.gentoo_create_doc
+}
+
+pkg_postinst() {
+ gnome2_pkg_postinst
+ readme.gentoo_print_elog
+}
diff --git a/media-gfx/gnome-screenshot/metadata.xml b/media-gfx/gnome-screenshot/metadata.xml
new file mode 100644
index 000000000000..39980802b1da
--- /dev/null
+++ b/media-gfx/gnome-screenshot/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 type="project">
+ <email>gnome@gentoo.org</email>
+ <name>Gentoo GNOME Desktop</name>
+</maintainer>
+</pkgmetadata>
diff --git a/media-gfx/gnome-specimen/Manifest b/media-gfx/gnome-specimen/Manifest
new file mode 100644
index 000000000000..c51fdc6ea1af
--- /dev/null
+++ b/media-gfx/gnome-specimen/Manifest
@@ -0,0 +1,5 @@
+DIST gnome-specimen-0.4.tar.gz 220574 SHA256 353ef10e647e5d06354dd827a4152a8cb45bf56b2f1c72e449a41e5175880424 SHA512 87edab052f777a67671d644aa132c3461662f1905cecc494777da44cf909d9ad8f85c5ae7a1114f2944a671079b89dc6a1c72f2e7ee6cc05594ba970c149afc9 WHIRLPOOL e6404bb813f84663494c3b6b307cf2924f8742baf809df884c2e694a17d7e331723b356db67dfbadc8ecbfc2f9765a04272311e451ec5fe8b2adc4c8eaacbfcf
+EBUILD gnome-specimen-0.4-r1.ebuild 778 SHA256 1dc72f3e09d62cd51f85da3bab6f55d3500de126f56b0837dbf0b85ff4d81379 SHA512 4c7550c83da8c2041389278abe76d801d41ecad1411a88c94ecdad22b2c7586707ea7c73b17b63c08fbaa60d73856105ccefb425d46dbbb722cfc65e949c5359 WHIRLPOOL 267bf2dec52f69990ad8dbc68431773335a936cd7032cb969cdd71994e5371a30c83089f5c0436a23722423791415dbfedfdf0f72ad55a65c5628b4728333262
+MISC ChangeLog 2451 SHA256 392db3a9740feef3f7842cb33666eb847400b4afb32a7007cc6573b9af223b6b SHA512 f109eeb99a868b1cd195a09f588d3be1fef37e8c484aa939850f88b974e0a252acfba9b1cbe24921351195e7316edcaa54a5f5b65df6339ace5d8bdf240c869d WHIRLPOOL ed5ca627272d280acdbbc3fc2908591e4dd1dbb22d644f4a03c0115ce25916ac1a129abf7cecddaa1d40bf54f90f61ef925e8b4bbea99781df2bd0984bb9a107
+MISC ChangeLog-2015 1936 SHA256 198d65da2d5c61570d1c078f215a4e705f4944b8baffdc6ee4f3e76dda28965a SHA512 d47b811004f35f8760d858337be9bd3cdf61dcddd317d068f26ef088f11216bd1938d1a39d1d6d49208f2a226bcc2f8dc9b1413c5003843c232058c647c7b5e2 WHIRLPOOL b03f8e4bca1d288bdcc01eb7ed349087240d219bd2f2a13e098f309ae92dd6f707f2b3da79c11d816af6232935a040e5b6c40115a579d7ed318b5192b02c2282
+MISC metadata.xml 255 SHA256 3e7137870fc49956d79719e3dfe029775cbaaa097e85748c139713c46fcd1798 SHA512 b7bc93530a1726c2d4dfbc71ae29cfbb57712fd9fdd2e76fd52f35ab4368cba0497b50145d1527a3b79e465d459a380821bb1371a01c2e915dc9adc6c7fafd5f WHIRLPOOL 392188d7e069f1720be9329edfb31b11b176bf0c411023b2ceeaeabef1cacf842d70657a2a14ac2ddabbdad70a304275f3b587e9bcdfe77be63a0092e370252c
diff --git a/media-gfx/gnome-specimen/gnome-specimen-0.4-r1.ebuild b/media-gfx/gnome-specimen/gnome-specimen-0.4-r1.ebuild
new file mode 100644
index 000000000000..aa07ebda56af
--- /dev/null
+++ b/media-gfx/gnome-specimen/gnome-specimen-0.4-r1.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+GCONF_DEBUG=no
+PYTHON_COMPAT=( python2_7)
+
+inherit autotools gnome2 python-single-r1
+
+DESCRIPTION="Font preview application"
+HOMEPAGE="http://uwstopia.nl"
+SRC_URI="http://uwstopia.nl/geek/projects/${PN}/releases/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+
+IUSE=""
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+RDEPEND="${PYTHON_DEPS}
+ dev-python/gconf-python[${PYTHON_USEDEP}]
+ dev-python/libgnome-python[${PYTHON_USEDEP}]
+ dev-python/pygtk[${PYTHON_USEDEP}]
+ dev-python/pygobject:2[${PYTHON_USEDEP}]
+"
+DEPEND="${RDEPEND}
+ dev-util/intltool
+ virtual/pkgconfig
+ sys-devel/gettext
+"
+
+src_prepare() {
+ eautoreconf # To fix bug 408099
+ gnome2_src_prepare
+}
diff --git a/media-gfx/gnome-specimen/metadata.xml b/media-gfx/gnome-specimen/metadata.xml
new file mode 100644
index 000000000000..19bf1be2581e
--- /dev/null
+++ b/media-gfx/gnome-specimen/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 type="project">
+ <email>graphics@gentoo.org</email>
+ <name>Gentoo Graphics Project</name>
+</maintainer>
+</pkgmetadata>
diff --git a/media-gfx/gnuclad/Manifest b/media-gfx/gnuclad/Manifest
new file mode 100644
index 000000000000..2c2d309d7f15
--- /dev/null
+++ b/media-gfx/gnuclad/Manifest
@@ -0,0 +1,3 @@
+DIST gnuclad-0.2.4.tar.gz 287763 SHA256 7136ee0e36d8de61a97235556f879bb0abe6521efb65a5a97bc73979999e424d SHA512 881b1feab8cb7458223987c5a36359e31e7e00e94d60cd0002c289930b99236947aadbea40f96aaa6aa4b5d7953278bf581edbd6df3cb660bca1505950e66b67 WHIRLPOOL 8ebd31e6f147cdc8092e4109062e864878b40967ce323d19faee2dc2a4104d1d491ab38741431a5569dc25065c91d469b147f6180d400be230a0c1abb62141fc
+EBUILD gnuclad-0.2.4.ebuild 492 SHA256 88e13c6d6b905b72cb0855734bca5f812ee0d78c9f4aba742934d8ea043492c5 SHA512 3947b22788843c39a146ca59c2f6296387c295d6b5f0b56775139d61576c720faba99ed3e11fe480dd74b2cbc0ce00ec8b6884ee9fbd8ce38ef2ce174339244a WHIRLPOOL 10f51f8178d147c9a28c7cbc68993256b49968831970880e7bc5da0ba01ca59b3a981d3aaf15126aca9e381b96896156d71901f5d67e4a77f4693cf851b7a729
+MISC metadata.xml 339 SHA256 e195198ff99aa7374b6493192df58bd12fba1314fdc2e0e0e41bb89189640c4b SHA512 a7b03367e25abd644a51dd72a7d21f3cfd571662233afc1094434373865ed01e2865b16f7e02f313448be372306be2ec842ea03e5015d68657b2c926fa365628 WHIRLPOOL de66cbc9b8e36ef342a7952da042183be3689e3d4b1294b487e98c97f435c0c25fe0059052d574ec79847959c6e9160d01a927e0b781e1c94a5afeeff1897570
diff --git a/media-gfx/gnuclad/gnuclad-0.2.4.ebuild b/media-gfx/gnuclad/gnuclad-0.2.4.ebuild
new file mode 100644
index 000000000000..77b5f29236f9
--- /dev/null
+++ b/media-gfx/gnuclad/gnuclad-0.2.4.ebuild
@@ -0,0 +1,24 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DESCRIPTION="Cladogram tree generator mainly used by the GNU/Linux distro timeline project"
+HOMEPAGE="https://launchpad.net/gnuclad/"
+SRC_URI="http://launchpad.net/gnuclad/trunk/0.2/+download/${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="examples"
+
+DEPEND=""
+RDEPEND=""
+
+src_install() {
+ default
+
+ doman doc/man/gnuclad.1
+
+ use examples && dodoc -r example
+}
diff --git a/media-gfx/gnuclad/metadata.xml b/media-gfx/gnuclad/metadata.xml
new file mode 100644
index 000000000000..df2c9cb19525
--- /dev/null
+++ b/media-gfx/gnuclad/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>dilfridge@gentoo.org</email>
+ <name>Andreas K. Huettel</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="launchpad">gnuclad</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/media-gfx/gozer/Manifest b/media-gfx/gozer/Manifest
new file mode 100644
index 000000000000..11e92d8679a5
--- /dev/null
+++ b/media-gfx/gozer/Manifest
@@ -0,0 +1,6 @@
+DIST gozer-0.7.tar.gz 103545 SHA256 a99400630cb7f362717f08d650aff8c59624fdd5dd70cfa7c1efe17d3bf58fd9 SHA512 ae39b74272f87d5e9bf71c9df7e6e9ac37a44a54dafba45aa5e8037657ba128e4e6c77a5624921fbca5c57791a0047f491013582cd9e5a6a5c8932a23233a29c WHIRLPOOL 78179c93e0a8e1bbac21910039de7651ce16fbb67330fe5c622707edbd8128773da23444f21ebabb25635a0f5c466fb7eaf53d036f55311ad28222c41b29dd93
+EBUILD gozer-0.7-r2.ebuild 760 SHA256 12b0c04284c29acda76c36b4b69eab6722afcc49da01c94c57cf23bd8b92cdf8 SHA512 4db8ecb35307fbc730100c259c18b509473bd9793d829afb430a158dc4e430aabba87983bf865e8c95d68cc47e46a180a1d4c17f3f8c337d9a870592f43da8f5 WHIRLPOOL b79eaa58d30b6d31bf8e3fc1c4a9a6edbe521720b663fb646fe13b70e367b8b723c98fdede5d492f9fbaaf5c4531d5e17d443183d59bf976a1c0621d7ad422c6
+EBUILD gozer-0.7-r3.ebuild 770 SHA256 e25ba1cf618434da7cf4c2e9d6512aa598e46b31a6277b8e206c42203c0a6501 SHA512 4ef3c7130b17a1c1131f8eac61d223f2123e3f2d3ef5f47a8ade96e54e602cdde0667732909857a7d98d3def54b7305cc3869c1df22c3fbd3692e2f6e7a3494d WHIRLPOOL 399a88f715017bbe0c1a83ca80ad306645e310e55787bc7e8c4f0a0b7cd1c81302c1eb9a7913332c1be09dd70965b40adc0d7a4406bc353109fe8e98893accab
+MISC ChangeLog 2519 SHA256 911204f6805580deae0e61ec2dc41b46bf632ce23729e059809b4d12f59776f8 SHA512 be3afcb9648cd41eac01ea5c5596d2917f5de66f9dda82ae46376539cf290f0438c752d9285531c6d5dcdd157110306958973ff541798b1635f156a63df36e24 WHIRLPOOL fd21099b3fc20f62717797d50c17adecaf2da76bca0c05d2e9d46082d73b5a77bf1ea6972315669a2c7d0d480189c54ee53ccb4a7dc8f3a3416342c6d6fcc21f
+MISC ChangeLog-2015 2633 SHA256 f6eb41fb4d788ff6718daeb383cc4f72b0e5921965f2b1cadb1c3982924b39c9 SHA512 aa0547928b4f633a9464bfc078e72cf241a2d76eba605899828cc7028ad8278ee1e5a3a412451f8732e134e01a661f1e3b200adc49b73fb88156b94d853acb51 WHIRLPOOL 5c3f046004ba516d8d7ed3949ade61c564727d8affb7be0e492b0626c128dccf07775bf33e0339320a4386a1affe16e1da51187432c993a48c17b39c01243e9d
+MISC metadata.xml 166 SHA256 2caff447f5bd2701d8456ada5cc633c41ef4373fa4bfeabeb73599d40bcc941b SHA512 a56648c974a1d14dd4c18237532773c72057a13ab90c58b5da04f185e3c12a8bd8d5c21fb06053507f31766291a82dc7d87b34cd65fd94cfe2af7295c813ef84 WHIRLPOOL 1ff70497eca6531f0e0614c72a19f4b8e5ff486a58d369f4f0b36308d1d6b01168f9da887740e3b9f536236be251d3fe05f904d27a9233a7cf613416ba882968
diff --git a/media-gfx/gozer/gozer-0.7-r2.ebuild b/media-gfx/gozer/gozer-0.7-r2.ebuild
new file mode 100644
index 000000000000..db1e762db93e
--- /dev/null
+++ b/media-gfx/gozer/gozer-0.7-r2.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="2"
+
+inherit autotools
+
+DESCRIPTION="tool for rendering arbitrary text as graphics, using ttfs and styles"
+HOMEPAGE="http://www.linuxbrit.co.uk/gozer/"
+SRC_URI="http://www.linuxbrit.co.uk/downloads/${P}.tar.gz"
+
+LICENSE="feh LGPL-2+"
+SLOT="0"
+KEYWORDS="amd64 ppc x86"
+IUSE=""
+
+DEPEND="x11-libs/libXext
+ >=media-libs/giblib-1.2.1"
+RDEPEND=">=media-libs/giblib-1.2.1
+ media-libs/imlib2"
+
+src_prepare() {
+ sed -i src/Makefile.am \
+ -e 's|-g -O3|$(CFLAGS)|g' \
+ -e '/LDFLAGS/s|=|+=|g' \
+ || die "sed src/Makefile.am"
+ eautoreconf
+}
+
+src_install() {
+ emake install DESTDIR="${D}" || die
+ rm -rf "${D}"/usr/doc
+ dodoc TODO README AUTHORS ChangeLog
+}
diff --git a/media-gfx/gozer/gozer-0.7-r3.ebuild b/media-gfx/gozer/gozer-0.7-r3.ebuild
new file mode 100644
index 000000000000..32cb422209cc
--- /dev/null
+++ b/media-gfx/gozer/gozer-0.7-r3.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit autotools
+
+DESCRIPTION="tool for rendering arbitrary text as graphics, using ttfs and styles"
+HOMEPAGE="http://www.linuxbrit.co.uk/gozer/"
+SRC_URI="http://www.linuxbrit.co.uk/downloads/${P}.tar.gz"
+
+LICENSE="feh LGPL-2+"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE=""
+
+DEPEND="x11-libs/libXext
+ >=media-libs/giblib-1.2.1"
+RDEPEND=">=media-libs/giblib-1.2.1
+ media-libs/imlib2"
+
+src_prepare() {
+ default
+ sed -i src/Makefile.am \
+ -e 's|-g -O3|$(CFLAGS)|g' \
+ -e '/LDFLAGS/s|=|+=|g' \
+ || die "sed src/Makefile.am"
+ eautoreconf
+}
+
+src_install() {
+ emake install DESTDIR="${D}"
+ rm -rf "${D}"/usr/doc || die
+ dodoc TODO README AUTHORS ChangeLog
+}
diff --git a/media-gfx/gozer/metadata.xml b/media-gfx/gozer/metadata.xml
new file mode 100644
index 000000000000..6f49eba8f496
--- /dev/null
+++ b/media-gfx/gozer/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<!-- maintainer-needed -->
+</pkgmetadata>
diff --git a/media-gfx/gphoto2/Manifest b/media-gfx/gphoto2/Manifest
new file mode 100644
index 000000000000..3d91b3f78846
--- /dev/null
+++ b/media-gfx/gphoto2/Manifest
@@ -0,0 +1,9 @@
+DIST gphoto2-2.5.10.tar.bz2 784459 SHA256 66cc2f535d54b7e5a2164546a8955a58e23745e91e916757c0bf070699886690 SHA512 b6bca41b9787a475eaa0d094a2de261d1013fb2845fd7f3735099100df243860e50d3cce8a1e5afd8c29a4dcfc65367f83b0fc85185b80f5de732bf3faa0e06d WHIRLPOOL 2f3c15c675803206cfad5f4189e47f9e5a03b4ad1c45b1c94f87aaebda69ad7929f51496b3c1e511cb7f809c50aedae29ad1171e96eb0790118b4efd47e09d41
+DIST gphoto2-2.5.11.tar.bz2 785251 SHA256 392844d6a06512b0d85e7983a5a0c85c8039feb6ab3bc420674ffdbf7536f9e9 SHA512 e1393797eaf94f4d6226fdbc390145c7a0caa5ed3422ab34185b27666887cd79bf832f7ff3a580aa5ea8740b429b235079e54f40a1bc92e37e0051cfeea5fa9a WHIRLPOOL d9a5b48ea230fcdbe7bdeba2337d6276d78bb8c8c83fe06a5a5272a8339bb2462c035bd943f021ff30029fcbf93b74811f2a55198f832cdf06bd417bf5279c61
+DIST gphoto2-2.5.14.tar.bz2 784442 SHA256 9302d02fb472d4936988382b7277ccdc4edaf7ede56c490278912ffd0627699c SHA512 47cb0d212673c9c0dbc996e0a67191a307599c844293a67184bd1529d9e3b417e154c6de64f4563f6f7e599a1bd6b127266f85f5baa97bd7d86922405bf45331 WHIRLPOOL 333bc0925b36ff5254a5e1d740536129ed08bdbfde7c57ba337aec7fe8cd2dcf8720ab6e1b13dc469b86cd10918926daa65f378e12cf0f29ebe2ff71a5cf62d4
+EBUILD gphoto2-2.5.10.ebuild 1258 SHA256 07cf6cd804166f391501dcef1689ee97c905e56845c3cf5f3ef6b8f1797bee86 SHA512 3566fa93cf6afa51f4673a862c9f26689a8d64e127b9eb8f268d278335171333051ea7bb809efce21d4ad69a4b8936af50db3e2d02b8e22b5298147a3494c341 WHIRLPOOL 7d9468c6ea58253239f22110bf9d31f3be2073e39c23e8fe5613d04fd8aabcfa500ba3135b172573c85f48a5471f6f43d420bb7d3b0b25c20a9d04bc953042bd
+EBUILD gphoto2-2.5.11.ebuild 1393 SHA256 7b34c6f5dc94184f5e135fe78cd8f31e9cf673d34da511343fecf9ca010effea SHA512 c467516e247d1c0b6579ea1b5e0b6e706883a52ffc8848ee6a5d8533d69387d675362621b47a45c5b2fc1f4681aa9793d6dd2e1421da7e04f1a8895163bc397a WHIRLPOOL f64749e0a108cbda6cb2dd12d9ae8b15500a3a04c1ccbb446c48fb57221f76faf5aa480e2682a2c86791e9c6b6d87dd5b3f8c0d79d241ff4cfa7df93210f75eb
+EBUILD gphoto2-2.5.14.ebuild 1395 SHA256 57c0931bc658869c369a096e52f016aebd23a067e4ff06e3584ff1a6a30e6235 SHA512 4e1e4f15318b933a1580585630a652c3c481c5ed774d71091951b73c22d52d8000f5bcb804cbf14bfee3166cca21c011569432d1d120599cfb78e4eab5bd389f WHIRLPOOL 8c5cff1ad27d493f0ea924ef718b153b6dda11cd7723764120ad14aa414ce0445285cbd1e0bff7600159915535466415e3dbc9a00d33e5cc9a703ad809b10033
+MISC ChangeLog 6553 SHA256 f8ecc7ea4f29c4d7685825c7202177b3f921a5d1aaa3d3b651939d50ddc147ee SHA512 76d83584319485d19314f6432533aeb8adc43a99c8f34151a21ddad065f17286eebfba52a0d1c515dc60dc2b85fe434a1b0c5276529a150830152f63d7975d8d WHIRLPOOL 49228705dce8fa812215b238c99811f41dc91a771b4d3c410cdafa0027179b7b2a5a580c7d05c24895fd894f70735240d4c233aef8cb540797a4b27484cd20dc
+MISC ChangeLog-2015 21574 SHA256 08159f5e47c8d762386fda5cfd18b4317a6598d1e4d7ae4489e8afea5ebe1436 SHA512 ff3248b17169cb0c25ab4da00cd589797609a2b73cb65f6930acd42efd91e3244571655209f7fd524984f5fe6bc01c9da699eb2e47e8496b7b57f36e79614692 WHIRLPOOL 5f8936414452b2308b2c108ac4f1d8ffb76bcc01020f96ae788117ba96324227e55176308de07880ec17771b7571de501050030e8ed5fa37f97be42ae494803c
+MISC metadata.xml 449 SHA256 9e3d5c2509e7e36290a192a72f04825f111c9cceaf386756aa544c5094226e1a SHA512 f938819a203e0119b1d81aa1dc812717d6ef02c3012f8ed667db452c7712bb7b142cee36d519ec33f4cf65ebcba7a660e2f67f6b66087ec6be832a4987e10c53 WHIRLPOOL d61f1a2cafc04238d88764b8a3202744de7536cd6b29232a96547920bf852220961ff0436757ab4087fbae05d5efea22703a0282d5585043df1d1d1f232a0b84
diff --git a/media-gfx/gphoto2/gphoto2-2.5.10.ebuild b/media-gfx/gphoto2/gphoto2-2.5.10.ebuild
new file mode 100644
index 000000000000..e5942a1eb4ab
--- /dev/null
+++ b/media-gfx/gphoto2/gphoto2-2.5.10.ebuild
@@ -0,0 +1,58 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit autotools
+
+DESCRIPTION="Free, redistributable digital camera software application"
+HOMEPAGE="http://www.gphoto.org/"
+SRC_URI="mirror://sourceforge/gphoto/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 hppa ppc ppc64 ~sparc x86"
+IUSE="aalib exif ncurses nls readline"
+
+# aalib -> needs libjpeg
+RDEPEND="
+ dev-libs/popt
+ >=media-libs/libgphoto2-2.5.10:=[exif?]
+ aalib? (
+ media-libs/aalib
+ virtual/jpeg:0 )
+ exif? ( media-libs/libexif )
+ ncurses? ( dev-libs/cdk )
+ readline? ( sys-libs/readline:0 )
+"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ nls? ( >=sys-devel/gettext-0.14.1 )
+"
+
+src_prepare() {
+ default
+ # Leave GCC debug builds under user control
+ sed -r '/(C|LD)FLAGS/ s/ -g( |")/\1/' \
+ -i configure{.ac,} || die
+ eautoreconf
+}
+
+src_configure() {
+ CPPFLAGS="-I/usr/include/cdk" \
+ econf \
+ $(use_with aalib) \
+ $(use_with aalib jpeg) \
+ $(use_with exif libexif auto) \
+ $(use_with ncurses cdk) \
+ $(use_enable nls) \
+ $(use_with readline)
+}
+
+src_install() {
+ emake DESTDIR="${D}" \
+ HTML_DIR="${D}"/usr/share/doc/${PF}/sgml \
+ install
+
+ einstalldocs
+ rm -rf "${D}"/usr/share/doc/${PF}/sgml/gphoto2
+}
diff --git a/media-gfx/gphoto2/gphoto2-2.5.11.ebuild b/media-gfx/gphoto2/gphoto2-2.5.11.ebuild
new file mode 100644
index 000000000000..8cc221391d98
--- /dev/null
+++ b/media-gfx/gphoto2/gphoto2-2.5.11.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit autotools
+
+DESCRIPTION="Free, redistributable digital camera software application"
+HOMEPAGE="http://www.gphoto.org/"
+SRC_URI="mirror://sourceforge/gphoto/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 hppa ppc ppc64 ~sparc x86"
+IUSE="aalib exif ncurses nls readline"
+
+# aalib -> needs libjpeg
+RDEPEND="
+ dev-libs/popt
+ >=media-libs/libgphoto2-2.5.10:=[exif?]
+ aalib? (
+ media-libs/aalib
+ virtual/jpeg:0 )
+ exif? ( media-libs/libexif )
+ ncurses? ( dev-libs/cdk:0= )
+ readline? ( sys-libs/readline:0= )
+"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ nls? ( >=sys-devel/gettext-0.14.1 )
+"
+
+src_prepare() {
+ default
+ if ! use exif ; then
+ # Remove tests that require EXIF to pass, bug 610024
+ rm "${S}"/tests/data/test0{35,36,37,40}* || die
+ fi
+ # Leave GCC debug builds under user control
+ sed -r '/(C|LD)FLAGS/ s/ -g( |")/\1/' \
+ -i configure{.ac,} || die
+ eautoreconf
+}
+
+src_configure() {
+ CPPFLAGS="-I/usr/include/cdk" \
+ econf \
+ $(use_with aalib) \
+ $(use_with aalib jpeg) \
+ $(use_with exif libexif auto) \
+ $(use_with ncurses cdk) \
+ $(use_enable nls) \
+ $(use_with readline)
+}
+
+src_install() {
+ emake DESTDIR="${D}" \
+ HTML_DIR="${D}"/usr/share/doc/${PF}/sgml \
+ install
+
+ einstalldocs
+ rm -rf "${D}"/usr/share/doc/${PF}/sgml/gphoto2
+}
diff --git a/media-gfx/gphoto2/gphoto2-2.5.14.ebuild b/media-gfx/gphoto2/gphoto2-2.5.14.ebuild
new file mode 100644
index 000000000000..9866396a715e
--- /dev/null
+++ b/media-gfx/gphoto2/gphoto2-2.5.14.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit autotools
+
+DESCRIPTION="Free, redistributable digital camera software application"
+HOMEPAGE="http://www.gphoto.org/"
+SRC_URI="mirror://sourceforge/gphoto/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="alpha ~amd64 ~hppa ppc ppc64 ~sparc x86"
+IUSE="aalib exif ncurses nls readline"
+
+# aalib -> needs libjpeg
+RDEPEND="
+ dev-libs/popt
+ >=media-libs/libgphoto2-2.5.10:=[exif?]
+ aalib? (
+ media-libs/aalib
+ virtual/jpeg:0 )
+ exif? ( media-libs/libexif )
+ ncurses? ( dev-libs/cdk:0= )
+ readline? ( sys-libs/readline:0= )
+"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ nls? ( >=sys-devel/gettext-0.14.1 )
+"
+
+src_prepare() {
+ default
+ if ! use exif ; then
+ # Remove tests that require EXIF to pass, bug 610024
+ rm "${S}"/tests/data/test0{35,36,37,40}* || die
+ fi
+ # Leave GCC debug builds under user control
+ sed -r '/(C|LD)FLAGS/ s/ -g( |")/\1/' \
+ -i configure{.ac,} || die
+ eautoreconf
+}
+
+src_configure() {
+ CPPFLAGS="-I/usr/include/cdk" \
+ econf \
+ $(use_with aalib) \
+ $(use_with aalib jpeg) \
+ $(use_with exif libexif auto) \
+ $(use_with ncurses cdk) \
+ $(use_enable nls) \
+ $(use_with readline)
+}
+
+src_install() {
+ emake DESTDIR="${D}" \
+ HTML_DIR="${D}"/usr/share/doc/${PF}/sgml \
+ install
+
+ einstalldocs
+ rm -rf "${D}"/usr/share/doc/${PF}/sgml/gphoto2
+}
diff --git a/media-gfx/gphoto2/metadata.xml b/media-gfx/gphoto2/metadata.xml
new file mode 100644
index 000000000000..842fcbe7e761
--- /dev/null
+++ b/media-gfx/gphoto2/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>gnome@gentoo.org</email>
+ <name>Gentoo GNOME Desktop</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>graphics@gentoo.org</email>
+ <name>Gentoo Graphics Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">gphoto</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/media-gfx/gphotofs/Manifest b/media-gfx/gphotofs/Manifest
new file mode 100644
index 000000000000..8223b9819013
--- /dev/null
+++ b/media-gfx/gphotofs/Manifest
@@ -0,0 +1,5 @@
+DIST gphotofs-0.5.tar.bz2 261357 SHA256 676ec4de69a81c193ffc31bdc7b587ac2a2cc3780b14f0e7c9c4c0a517b343cc SHA512 6f5bcaf8ca820c0590ec95af55ec9438c864a298660ad15c6d6e8f59201a7f873d29f16cf77d13538111f6cec3f958ea0ac88c6c51836ab2d8c9d6cca156ed3a WHIRLPOOL b149c965d51a5c5b6f9ce37603760f4d2b98ee188611863cf22ecad6e3dc26e6984233ce95ab8b3d9256eb7c9d76f7ca0ee164a37870f3bbcddd85fe7d044ca4
+EBUILD gphotofs-0.5.ebuild 488 SHA256 17f8da8a10fe11a3565124fb19239a8bb4ae438bb16950101ad4ba13c235b1c7 SHA512 87322ad31c19cd6af2191b0da285d75ec5b10066ab3e5b84afbef51b2b767428bbaf98937ea83836c1baab02a2d629ac8873adeb57a5a432aa583398be4ba6cf WHIRLPOOL 8b00d4f29f4698b24c33fe6a6fe899c4ff0b4a11adb6bd4a161e6f909564a5af81816217fd98a4b2ff8d7a1f05d6db6d7f2e4d9c299b3a61cc841cb272cf4690
+MISC ChangeLog 2887 SHA256 510d488c62a1674a7aa78642ceaa9ee0a759b85abc321e254830d9adc5721351 SHA512 86a664e914e6ab47087c7d043f475925130b49c79e7e47fa5b85bf48354c48358f8cc6dceafbc87ec62d00338b9abeca58d5a674b0bf2673aff17ecb248a0e4b WHIRLPOOL b1f5460f6c585b409ba414ee52cdf9cd66c0a2d9eedd04cb79620bc883210a936d4ae0a1b7c22ec4918151448780860489e4799f9b629b232da239defa3709b6
+MISC ChangeLog-2015 382 SHA256 b87879f3e25e981ac6a6ecbad250d89144115eb694d6e670901fe27375a6c966 SHA512 c5cca30f815782af0f3efa9f8ac1abf9de071a3ab97351ab73b5fa3f00978bcf2d4c5d4e391179b96f1e77a1a6701534ce09cfdf53bbbd69362510da8502d384 WHIRLPOOL a39603140ecfb8bc43d25d530ebb8d6e3ea68d4e1600a2835f9dd3309aa873c4534314c1816ca8953d8f944cb6e255bee5fe04354da42931cdec41e60996baa9
+MISC metadata.xml 446 SHA256 b741a41f86f1e2dacab9c540881f2ebc3c9b721f57f450272f238ddd4a34325d SHA512 619180d3c610d109b8a379a83995c56b74cfb33af9bfb16c23d4fd95a0790a1f43ad14617f2024a58d7fca5886f51c7129c542adaab0a6db3b1b9583efce036c WHIRLPOOL 8b10b510a8b7a304c53ba947cc5b5bd623672242ac66f3efe6074797c38802cfba50c188ad70d6b50ed6eabb7eca3bc385daa2eaaf6a015209487879b3eba74f
diff --git a/media-gfx/gphotofs/gphotofs-0.5.ebuild b/media-gfx/gphotofs/gphotofs-0.5.ebuild
new file mode 100644
index 000000000000..c1b0cfced6b0
--- /dev/null
+++ b/media-gfx/gphotofs/gphotofs-0.5.ebuild
@@ -0,0 +1,20 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="4"
+
+DESCRIPTION="FUSE file system for interfacing with digital cameras using gphoto2"
+HOMEPAGE="http://www.gphoto.org/"
+SRC_URI="mirror://sourceforge/gphoto/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+RDEPEND=">=media-libs/libgphoto2-2.5.0
+ >=sys-fs/fuse-2.5
+ >=dev-libs/glib-2.6"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ >=sys-devel/gettext-0.14.1"
diff --git a/media-gfx/gphotofs/metadata.xml b/media-gfx/gphotofs/metadata.xml
new file mode 100644
index 000000000000..3f9c388f95cd
--- /dev/null
+++ b/media-gfx/gphotofs/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>zx2c4@gentoo.org</email>
+ <name>Jason A. Donenfeld</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>graphics@gentoo.org</email>
+ <name>Gentoo Graphics Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">gphoto</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/media-gfx/gpicview/Manifest b/media-gfx/gpicview/Manifest
new file mode 100644
index 000000000000..90a2267bac74
--- /dev/null
+++ b/media-gfx/gpicview/Manifest
@@ -0,0 +1,7 @@
+DIST gpicview-0.2.4.tar.gz 488510 SHA256 99beb7df6765b386cd3f65b3ff77e9a25027a009db432f02bd60be8558f06ceb SHA512 60aeae5100ceafc5131cf61d600be5e5fd21c7d0fa62b8124b6f5bc917666b80908ba9e540010867c6d3eab485d9735dfa72f16095be468a718c55eeb65cef34 WHIRLPOOL 347196e41ada9345c42268e59c9ee35e5372802f32b17c19cdcb96f25c3e525ec144dd6f4cbe168808f4436e73f2fb76341d60084f3e4d637af04d8a13863bd1
+DIST gpicview-0.2.5.tar.xz 349536 SHA256 38466058e53702450e5899193c4b264339959b563dd5cd81f6f690de32d82942 SHA512 afc7e67c7ae1252f9c1816ee46fe69e96ea7be9a60e03406a539f17b2e4f0e4b93a028c6f3f1c455f5433d6d7d78a58dcee2cb0ac91ea53093a21935bf454afd WHIRLPOOL d7307a9c9cae7bbe156a597b07bdaad36acea94bdb96dde410193b6509997bdc8a18baacc0a614586675adc3660ec1c017d5ef8685bcb6147195b63d0071b219
+EBUILD gpicview-0.2.4.ebuild 557 SHA256 493c05144dd86ab8342fca7a127ee010e0a28a4b89f6fa713de50d03473cb7ae SHA512 e828f13b60422bb346cec11a7f517627da4b7c3c723c158ec526c1f55790a0d141f24c1745154ab99480af33a73d546820a5b3f8ec671f3d7b7e5fad2c20fe85 WHIRLPOOL a03989b416effec8a92bde53cefebeeb8d9111728e99c7041b8b106db4d32bbf0782c0058489df8aaf6c5fd6b235d83f51d46a47330eaa62ff4319ed316aba15
+EBUILD gpicview-0.2.5.ebuild 559 SHA256 81917d611f296040c4fcf45794c5ede3ee3d4fa1b4f5b92105c3f4d91f589f08 SHA512 93b64543846b23886439429a96f9ba7e743818dd5e705582a5395de2afa6851b924d2f7318814c08920f98294cb5f170c29242fa95371e280a943ed64ab62992 WHIRLPOOL 82357ac5390b2fa5482b6dd0f66c9bf793376347ad59005d9509f3125f2e8823a4eee63d5cdec14f3b30eb3dda64f0d2e5796253079cee7e1e7f83d19633c3b1
+MISC ChangeLog 2759 SHA256 3c1f7d433477c59beb9cfe69662ef0c7f29d2db648a555edd8ed0b25cee1fce2 SHA512 43bfbcc62850e8ff3c011591ea30b6dcbbd0ac7ba25230851c22d290ce7d9c08ceb0ea2e30a0d6f86e19e56579b8836aaef7b427cf6d0139cfca9cc23547dc81 WHIRLPOOL dbb97cdffdd97c66e61c034057407414ada81d4ec24747dab6ae389b56373076e870a029dd880548cc40cd107eaaacbb9976b986ab9f23cdea2dd486ac9f5264
+MISC ChangeLog-2015 4584 SHA256 e4666ab215515398953b71c1237a964a7a271c4ecfd3e985520a8b786983cda0 SHA512 f2b2cac2aee8407a611a05a5d81dffd0acf28d2721ec6ab88b5fa89ca4db4ba92af38cce5ead48bdbdc2fb85da909c8b9e7359266a8a5125b32f14b1bf8f558f WHIRLPOOL 6acfd2091b8e0da1fd2e4076b953fa902b2a16ade4c8d342c896b31b30ff75073a20c08e1f3e4ae17c27069183423b174dc1b710e262ab5267ec1993c90768a5
+MISC metadata.xml 445 SHA256 eef304df6c5608e822a58ef8d48e125379d0c5b6ae444bd97c3dbfc4b738e80d SHA512 bbc64e2e70d381c829c9ef28d202be2b2418b5d387d99f281db5f666a45bd67cbde4c161c99a2e39f4bdd2a3a276574aab878c0a7e0a861f2483aee0bdca55b5 WHIRLPOOL eeff5bc6e96d9223a677598d6d883b24c3b510c662bfd8a7e9634d92a591cf4856258051c65f9364f6eb2cde1f5eef16a91a995905b1e681443db0ec26c1faf4
diff --git a/media-gfx/gpicview/gpicview-0.2.4.ebuild b/media-gfx/gpicview/gpicview-0.2.4.ebuild
new file mode 100644
index 000000000000..66ef13b04816
--- /dev/null
+++ b/media-gfx/gpicview/gpicview-0.2.4.ebuild
@@ -0,0 +1,25 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+
+DESCRIPTION="A Simple and Fast Image Viewer for X"
+HOMEPAGE="http://lxde.sourceforge.net/gpicview"
+SRC_URI="mirror://sourceforge/lxde/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha amd64 arm ~arm64 ppc x86 ~arm-linux ~x86-linux"
+IUSE=""
+
+RDEPEND="virtual/jpeg
+ >=x11-libs/gtk+-2.6:2"
+DEPEND="${RDEPEND}
+ >=dev-util/intltool-0.40
+ virtual/pkgconfig
+ sys-devel/gettext"
+
+src_install() {
+ emake DESTDIR="${D}" install
+ dodoc AUTHORS
+}
diff --git a/media-gfx/gpicview/gpicview-0.2.5.ebuild b/media-gfx/gpicview/gpicview-0.2.5.ebuild
new file mode 100644
index 000000000000..0457519406ae
--- /dev/null
+++ b/media-gfx/gpicview/gpicview-0.2.5.ebuild
@@ -0,0 +1,25 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DESCRIPTION="A Simple and Fast Image Viewer for X"
+HOMEPAGE="http://lxde.sourceforge.net/gpicview"
+SRC_URI="mirror://sourceforge/lxde/${P}.tar.xz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha amd64 arm ~arm64 ppc x86 ~arm-linux ~x86-linux"
+IUSE=""
+
+RDEPEND="virtual/jpeg:0
+ >=x11-libs/gtk+-2.6:2"
+DEPEND="${RDEPEND}
+ >=dev-util/intltool-0.40
+ virtual/pkgconfig
+ sys-devel/gettext"
+
+src_install() {
+ emake DESTDIR="${D}" install
+ dodoc AUTHORS
+}
diff --git a/media-gfx/gpicview/metadata.xml b/media-gfx/gpicview/metadata.xml
new file mode 100644
index 000000000000..3266980e1ed0
--- /dev/null
+++ b/media-gfx/gpicview/metadata.xml
@@ -0,0 +1,15 @@
+<?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>
+ <maintainer type="project">
+ <email>lxde@gentoo.org</email>
+ <name>Gentoo LXDE Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">lxde</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/media-gfx/gqview/Manifest b/media-gfx/gqview/Manifest
new file mode 100644
index 000000000000..cec0ce1cc8de
--- /dev/null
+++ b/media-gfx/gqview/Manifest
@@ -0,0 +1,7 @@
+AUX gqview-2.1.5-glibc.patch 1113 SHA256 f811ab6c389fa614ea7a6e23950fb2301724a1b33116b51d7c61ca0802b28a44 SHA512 c2605aa15c6515fab27e494cc05fd41196bd36ce696831d10b078680836546e8cd1252837712cecc10d6dc2635819babb37b85820b12cc9bf060796d3bc63c67 WHIRLPOOL c1de1852424478623f50b5145f58d6626ac86c8e5fdee6a0d4e02a468b1e033da88ede7eaf7af4ba8ce0d73a59fd3258bf874e57f8243eccecab0f37654d1da8
+AUX gqview-2.1.5-windows.patch 561 SHA256 d464db032e62fb7d356a215bf5912bf89d6e710136c2a64807640de14943cd2f SHA512 f4382d81362efca9decd18f93ffcabc5eeb36251b67377d35a6de87eb0672b24e15d82610b64865415fa23f6e26090c557b7f1df8092cf34b38f7106dd7a33c3 WHIRLPOOL 5a44d9804d43efe8d4a1c09e21529d15ad02b48e6d5c8ad10703e44b7db3f4e6f47d0578f122dea2b803196bfcfb82865171ff3811580764d6c1aa811b6e50f7
+DIST gqview-2.1.5.tar.gz 1685061 SHA256 12fea494e607a69eff31cdca13d306ef1b0b3b7850be0f8b236f267d8f2e9546 SHA512 a9e184f9bfbcb789fa732f490b5b1883aaa4c153fb924e2995f36ddef2d170ad9d0695689221d7a0ccae587f5de07b34ca03fa407f774ed3505d0183bf44b555 WHIRLPOOL 04c0adab83e6a0114dd7d73c1dc6705122dfd44d5851532c59ac9c3b1a231d4110069978ba85a6f98c8675cac59c72b0304667b4e967daef4d4e9a9475d07083
+EBUILD gqview-2.1.5-r1.ebuild 969 SHA256 ab43eadc362902f6c15c9ba3db0877f546bf68f287febcfe2dac15ef0b49a071 SHA512 a2ad1697208f0f963886e6551ab455cfa002ab2461bac416ea7e53134d0d50e31c5bf7c4b4ef72655c485773b42842d11fc657897f1c8ebf07909cee23a4d1d0 WHIRLPOOL 4dd563b57b70992cd3ea049de3e0a446370d3e970b67668270f87c49e08c9c323b0397f98de105b401b3fa48718ca7dbb16a1bccdd26adc69d3b3f600b35e2e3
+MISC ChangeLog 2501 SHA256 8b483068dad30e16c43e2d41c6713410586a072f2cf70adceb31ac4fc6bc93d9 SHA512 b999eb8c4772ac62ff08e243cd2f02ad9a55aafb46a47bb0aebe9c3b08aa20bd4685a80fca9045dfa9b3c5568dcadae2eec654da4933b12820e4e319c79223f8 WHIRLPOOL cd8be5cf67681ddc8316400493539ca34e822cc090f84f1b0b6087ce00a06b96ce50cea73ed520851518a4e34f619caea4c79f59785dea9b5f636aac38fa1ac2
+MISC ChangeLog-2015 14132 SHA256 67e1f528533e2e3991608c8dce4e59fb4a0d95ef6b8b33d8326ff360c567c07f SHA512 b9e9637bd5fb661886d6197f64156210d83e00e8ccd0bb3d3353e1e6e236bbdd1e5934195d597cfca1422e70f91941c2e3a3e02b55d7096e6d808d8ea263679b WHIRLPOOL eb599106561e21713a5e630eca7e71cb2aa6119b2f2e8be357e2d3c062f1c8d8856d75bc900581976c5d9357f8f0fa5b54ce306ee06b7bc336565ab692e5956b
+MISC metadata.xml 448 SHA256 00183337dd107a48006a6bddfab78a18764b6e2ee8bf8f9f7af57e4e0d4301ed SHA512 ec3a30d414e66064cb7345123ea0762c89cf33b6cd61dd50a1ab330be22070d7fd0d76122ecbb3fbf094015feacf7b673fcbf19bbb027bfd4d15f715346d80d9 WHIRLPOOL b49c752f1e2bd0921dab328c0aca74f5c1af4f6bb06c25eaa6bae30cd80c49a30e53ec2bca960662757b81accc903c034be6468fa808f9e131ea48bd7862a063
diff --git a/media-gfx/gqview/files/gqview-2.1.5-glibc.patch b/media-gfx/gqview/files/gqview-2.1.5-glibc.patch
new file mode 100644
index 000000000000..957080737040
--- /dev/null
+++ b/media-gfx/gqview/files/gqview-2.1.5-glibc.patch
@@ -0,0 +1,39 @@
+diff --git a/Makefile.in b/Makefile.in
+index 38f6b25..4d7ad2c 100644
+--- a/Makefile.in
++++ b/Makefile.in
+@@ -123,6 +123,7 @@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
+ INSTOBJEXT = @INSTOBJEXT@
+ INTLLIBS = @INTLLIBS@
+ LCMS_LIBS = @LCMS_LIBS@
++LIBM = @LIBM@
+ LDFLAGS = @LDFLAGS@
+ LIBOBJS = @LIBOBJS@
+ LIBS = @LIBS@
+diff --git a/configure.in b/configure.in
+index 9335493..2299b4a 100644
+--- a/configure.in
++++ b/configure.in
+@@ -52,6 +52,9 @@ fi
+ AC_SUBST(LCMS_LIBS)
+ AM_CONDITIONAL(HAVE_LCMS, test "$have_lcms" = "yes")
+
++AC_CHECK_LIB(m, ceil, LIBM="-lm")
++AC_SUBST(LIBM)
++
+ ALL_LINGUAS="ar be bg ca cs da de eo es et eu fi fr hu id it ja ko nl no pl pt_BR ro ru sk sl sv th tr uk vi zh_CN.GB2312 zh_TW"
+ GETTEXT_PACKAGE=$PACKAGE
+ AC_SUBST(GETTEXT_PACKAGE)
+diff --git a/src/Makefile.am b/src/Makefile.am
+index 7ce4702..5005877 100644
+--- a/src/Makefile.am
++++ b/src/Makefile.am
+@@ -166,7 +166,7 @@ gqview_SOURCES = \
+ view_file_icon.c \
+ view_file_icon.h
+
+-gqview_LDADD = $(GTK_LIBS) $(INTLLIBS) $(LCMS_LIBS)
++gqview_LDADD = $(GTK_LIBS) $(INTLLIBS) $(LCMS_LIBS) $(LIBM)
+
+ EXTRA_DIST = \
+ $(extra_SLIK)
diff --git a/media-gfx/gqview/files/gqview-2.1.5-windows.patch b/media-gfx/gqview/files/gqview-2.1.5-windows.patch
new file mode 100644
index 000000000000..207f3c02fabd
--- /dev/null
+++ b/media-gfx/gqview/files/gqview-2.1.5-windows.patch
@@ -0,0 +1,16 @@
+--- old/src/main.c 2006-11-01 17:28:37.000000000 +0000
++++ new/src/main.c 2008-06-21 23:31:06.000000000 +0000
+@@ -1054,11 +1054,8 @@
+ if (layout_valid(&lw))
+ {
+ main_window_maximized = window_maximized(lw->window);
+- if (!main_window_maximized)
+- {
+- layout_geometry_get(NULL, &main_window_x, &main_window_y,
+- &main_window_w, &main_window_h);
+- }
++ layout_geometry_get(NULL, &main_window_x, &main_window_y,
++ &main_window_w, &main_window_h);
+ }
+
+ layout_geometry_get_dividers(NULL, &window_hdivider_pos, &window_vdivider_pos);
diff --git a/media-gfx/gqview/gqview-2.1.5-r1.ebuild b/media-gfx/gqview/gqview-2.1.5-r1.ebuild
new file mode 100644
index 000000000000..c1d9ad5dcda9
--- /dev/null
+++ b/media-gfx/gqview/gqview-2.1.5-r1.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils autotools
+
+DESCRIPTION="A GTK-based image browser"
+HOMEPAGE="http://gqview.sourceforge.net/"
+SRC_URI="mirror://sourceforge/gqview/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha amd64 ~arm ~ia64 ~mips ppc ppc64 ~sparc x86"
+IUSE=""
+
+RDEPEND=">=x11-libs/gtk+-2.4:2
+ virtual/libintl"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ sys-devel/gettext"
+
+src_prepare() {
+ epatch \
+ "${FILESDIR}/${P}-windows.patch" \
+ "${FILESDIR}/${P}-glibc.patch"
+ sed -i \
+ -e '/^Encoding/d' \
+ -e '/^Icon/s/\.png//' \
+ -e '/^Categories/s/Application;//' \
+ gqview.desktop || die
+ mv configure.in configure.ac || die
+ eautoreconf
+}
+
+src_configure() {
+ econf --without-lcms
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+ # leave README uncompressed because the program reads it
+ dodoc AUTHORS ChangeLog TODO
+ rm -f "${D}/usr/share/doc/${PF}/COPYING"
+}
diff --git a/media-gfx/gqview/metadata.xml b/media-gfx/gqview/metadata.xml
new file mode 100644
index 000000000000..3a1ad9f3f3f4
--- /dev/null
+++ b/media-gfx/gqview/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>mr_bones_@gentoo.org</email>
+ <name>Michael Sterrett</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>graphics@gentoo.org</email>
+ <name>Gentoo Graphics Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">gqview</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/media-gfx/graphicsmagick/Manifest b/media-gfx/graphicsmagick/Manifest
new file mode 100644
index 000000000000..15fbd333b399
--- /dev/null
+++ b/media-gfx/graphicsmagick/Manifest
@@ -0,0 +1,10 @@
+AUX graphicsmagick-1.3.19-flags.patch 1800 SHA256 e6a26ed636d74cb1ae32030b6680d6468cd6a511b6230df37e6362f578bb2572 SHA512 fa1bdbe718ae8ae49a58f6fc1728f1bb6b869a907f77e41eec92c452f86e05cf821548409f2a5d55dcdb38b8a80d7ef2b1d37d2111c3fd5088a118626479ad2c WHIRLPOOL 7f8eee01b60981f2615a82662d76290e497796453022eabde3ae06280d8e310ce68385eb63b18fbc83f71fe87a222a03c6e5cdf611c89dd9e8b115c70bace948
+AUX graphicsmagick-1.3.19-perl.patch 491 SHA256 98899a22071a112e332bbe2dfec119e05737fd4ecb19d7a38c2c8c034b003e01 SHA512 da114b891ec923253048d90ee14f136742072bcb70e512e8d2838bbcac57b5fe6ea580cdccfd1bba5156777623c43e946ce2a8661f88612d4c24849bef0fb865 WHIRLPOOL cf87f9772acf5b2c60d28498381afcfbb640c4f21829e78baa9112888d626e29b521454ec22a19b0b471a4fad3296bf65c7911aae008ce7d8e8e586a4eb683f3
+DIST GraphicsMagick-1.3.25.tar.xz 5387880 SHA256 d64bfa52d2e0730eff9ce3ed51d4fc78dbb68e2adaa317b2bb3c56e6ee61ac9f SHA512 d62d6aee96d7b8444f1aa206b0c5cbbed9511612cb71d667af072ea52b68dcd11088699debc58faacbb014ad83fb8c2b3e474220f506069f7b5d22f0340f8ef8 WHIRLPOOL 8c2ffccf588495b78e0d84737e83ae396cbe86efa5dfddf6ec440626829d7b83f036771ec8be585dae58c3076eba8190ee809f0c09fc74c744efec96480a634b
+DIST GraphicsMagick-1.3.26.tar.xz 5400564 SHA256 fba015f3d5e5d5f17e57db663f1aa9d338e7b62f1d415b85d13ee366927e5f88 SHA512 b33ca0f1c858428693aee27a9089acff9e63d1110f85fa036894cfefe6274e7b2422758ea39852f94fdb4823c9c3f3c44b0d8906627503301f5928096f739f22 WHIRLPOOL 8c8874c34be6c921dfc5623352a04d2cf502f2b28aebad1f8d63c1067d5ffa7af6a22e9b9b7095bd98674ffc5c456434598145721431d1d5f7c7e68ab362e238
+EBUILD graphicsmagick-1.3.25.ebuild 3162 SHA256 9772c4d5ffdfbe07e98e4e9597f845925a1b5a29c8890e4c7e64f130bc9d5f8a SHA512 ec889b617290ea3163b25be55260dffc754867db2f730104de45b465e90ad31550fd451c813d52dc611e66f5a2639e5d4923e48e25a5ca49ccd8797183385c32 WHIRLPOOL 617d7a9a3c1ad531e39107a9c1dcf3497e6adee6cb72e4f515afb70e2e273ff9e7f8e320253bed59cb028f913aaa1fc6bec36e96380237cc2583f8a67f8c7bb0
+EBUILD graphicsmagick-1.3.26.ebuild 3283 SHA256 604914952995e6c0e53f6b86df71007a8e9c3b13a6351546b82060e3a5970817 SHA512 361ebf78cf28c28073a786931e0470e8bbf0da188edd5c9b68e51d1c3cf04916ead74e743b9fd8e5980bb9de37c4d639c5c32fc630665d55e6fc9c4717a15480 WHIRLPOOL dae4588534d0b627051adae32c8ac6d9b10593bb7e9c6a443e2f9979a5fc9ae9e59d2ae501e90989bcd23bd6361617b1c7f3219a4310e3a26dddf0a5e2338e26
+EBUILD graphicsmagick-9999.ebuild 3283 SHA256 604914952995e6c0e53f6b86df71007a8e9c3b13a6351546b82060e3a5970817 SHA512 361ebf78cf28c28073a786931e0470e8bbf0da188edd5c9b68e51d1c3cf04916ead74e743b9fd8e5980bb9de37c4d639c5c32fc630665d55e6fc9c4717a15480 WHIRLPOOL dae4588534d0b627051adae32c8ac6d9b10593bb7e9c6a443e2f9979a5fc9ae9e59d2ae501e90989bcd23bd6361617b1c7f3219a4310e3a26dddf0a5e2338e26
+MISC ChangeLog 8279 SHA256 942d53bb0df3374e5a890ba0fa3b6410a4570e4f32a6140422760aca294f2729 SHA512 4e57e7d633fa10818e13e5b66cbd914a8d359bd1982d828c11328cb52eb00994b0ae62e1917722085736c16e06677da0e67e76b92eb38cb130f13adaec362e05 WHIRLPOOL 21c6e65a2aa94a1588479e9b42943c774507f49127db5c056c3b9d6652562cec97d32e68817052c5a8e95fdfa4f36e710a22e3c55e08fcf88ab31e32005d3b3e
+MISC ChangeLog-2015 14451 SHA256 22b7127860406f4d3c6e56317c76c6765e1fe46a790f238506c83101199c9a92 SHA512 50e9a3c6b90e6ec809048762d154a075f4e3c9468bdfd8d1cebdd4cda067f82a9e58380c7c74565058de80cc4a180558613d9c5c7459bb5b13335b6a84db0cc0 WHIRLPOOL 7820861ab3397fc23dd4a497cc4860beef98393d0e6ed95b82dc35bae54357f8ab4bf2ac6c270fa7bfb6fbcea959f955272cee989b0ae8cc4715226464d6a741
+MISC metadata.xml 1220 SHA256 5659fd5f52847c8839a69d2b7b61f4ef7cf59a147166182d3a9d35ed08ab4a68 SHA512 1bb5a109f05ee51df889358ceb97669aaaa75356390ff85b7ad2ea7659fcc4cf7ad811b2795121ff9957ad58f27fd47dfaf792e0d5afbe31d84cf755158c66fd WHIRLPOOL f97b0a85a563c2b2efefced0d66379c298ef6080e5c2b67ebe9cc10f94611132f734e5b1c8c7bb70dcf83f80494aabbe29a6eafccae0937680abe5cb4b433500
diff --git a/media-gfx/graphicsmagick/files/graphicsmagick-1.3.19-flags.patch b/media-gfx/graphicsmagick/files/graphicsmagick-1.3.19-flags.patch
new file mode 100644
index 000000000000..1ebef5400337
--- /dev/null
+++ b/media-gfx/graphicsmagick/files/graphicsmagick-1.3.19-flags.patch
@@ -0,0 +1,56 @@
+Fix various preprocessor, compiler, and linker flags added to config wrappers.
+Previously they would add build time flags to the files which is incorrect.
+
+--- GraphicsMagick-1.3.19/configure.ac
++++ GraphicsMagick-1.3.19/configure.ac
+@@ -346,6 +346,7 @@
+
+ AC_OPENMP([C])
+ CFLAGS="$OPENMP_CFLAGS $CFLAGS"
++MAGICK_API_CFLAGS="$MAGICK_API_CFLAGS $OPENMP_CFLAGS"
+ #CXXFLAGS="$OPENMP_CXXFLAGS $CXXFLAGS"
+ #LDFLAGS="$LDFLAGS $OPENMP_CFLAGS"
+ AC_SUBST(OPENMP_CFLAGS)
+@@ -3407,9 +3408,10 @@
+ MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/ */ /g'`
+ #LIBS=`echo $LIBS | sed -e 's/ */ /g'`
+
+-MAGICK_API_CFLAGS=$CFLAGS
++MAGICK_API_CFLAGS=`echo $MAGICK_API_CFLAGS | sed -e 's/ */ /g'`
+ MAGICK_API_CPPFLAGS=`echo $MAGICK_API_CPPFLAGS | sed -e 's/ */ /g'`
+-MAGICK_API_LDFLAGS="-L$LIB_DIR $LDFLAGS"
++MAGICK_API_CXXFLAGS=""
++MAGICK_API_LDFLAGS="-L$LIB_DIR"
+ MAGICK_API_DEP_LIBS="$MAGICK_DEP_LIBS"
+ MAGICK_API_LIBS="-lGraphicsMagick $MAGICK_API_DEP_LIBS"
+
+@@ -3440,6 +3442,7 @@
+
+ AC_SUBST(MAGICK_API_CFLAGS)
+ AC_SUBST(MAGICK_API_CPPFLAGS)
++AC_SUBST(MAGICK_API_CXXFLAGS)
+ AC_SUBST(MAGICK_API_PC_CPPFLAGS)
+ AC_SUBST(MAGICK_API_LDFLAGS)
+ AC_SUBST(MAGICK_API_LIBS)
+--- GraphicsMagick-1.3.19/magick/GraphicsMagick-config.in
++++ GraphicsMagick-1.3.19/magick/GraphicsMagick-config.in
+@@ -30,7 +30,7 @@
+ echo @PACKAGE_VERSION@
+ ;;
+ --cflags)
+- echo '@CFLAGS@'
++ echo '@MAGICK_API_CFLAGS@'
+ ;;
+ --cppflags)
+ echo '@MAGICK_API_CPPFLAGS@'
+--- GraphicsMagick-1.3.19/Magick++/bin/GraphicsMagick++-config.in
++++ GraphicsMagick-1.3.19/Magick++/bin/GraphicsMagick++-config.in
+@@ -33,7 +33,7 @@
+ echo '@MAGICK_API_CPPFLAGS@'
+ ;;
+ --cxxflags)
+- echo '@CXXFLAGS@'
++ echo '@MAGICK_API_CXXFLAGS@'
+ ;;
+ --ldflags)
+ echo '@MAGICK_API_LDFLAGS@'
diff --git a/media-gfx/graphicsmagick/files/graphicsmagick-1.3.19-perl.patch b/media-gfx/graphicsmagick/files/graphicsmagick-1.3.19-perl.patch
new file mode 100644
index 000000000000..39cf05fd55f1
--- /dev/null
+++ b/media-gfx/graphicsmagick/files/graphicsmagick-1.3.19-perl.patch
@@ -0,0 +1,13 @@
+Link perl bindings against built libraries instead of system libraries (bug #456180).
+
+--- GraphicsMagick-1.3.19/PerlMagick/Makefile.PL.in
++++ GraphicsMagick-1.3.19/PerlMagick/Makefile.PL.in
+@@ -23,7 +23,7 @@
+ my $magick_BIN_DIR="$ENV{'DESTDIR'}@BIN_DIR@";
+ my $magick_DEP_LIBS='@MAGICK_DEP_LIBS@';
+ my $magick_PERLMAINCC='@PERLMAINCC@';
+-my $magick_LIB_DIR="$ENV{'DESTDIR'}@MAGICKLIBDIR@";
++my $magick_LIB_DIR="../magick/.libs";
+
+ # Compute test specification
+ my $delegate_tests='t/*.t';
diff --git a/media-gfx/graphicsmagick/graphicsmagick-1.3.25.ebuild b/media-gfx/graphicsmagick/graphicsmagick-1.3.25.ebuild
new file mode 100644
index 000000000000..8d6ce9bfd2a2
--- /dev/null
+++ b/media-gfx/graphicsmagick/graphicsmagick-1.3.25.ebuild
@@ -0,0 +1,128 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit autotools toolchain-funcs
+
+MY_P=${P/graphicsm/GraphicsM}
+
+DESCRIPTION="Collection of tools and libraries for many image formats"
+HOMEPAGE="http://www.graphicsmagick.org/"
+SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.xz"
+
+LICENSE="MIT"
+SLOT="0/${PV%.*}"
+KEYWORDS="alpha amd64 hppa ia64 ppc ppc64 sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos"
+IUSE="bzip2 cxx debug fpx imagemagick jbig jpeg jpeg2k lcms lzma modules openmp
+ perl png postscript q16 q32 static-libs svg test threads tiff truetype
+ webp wmf X zlib"
+
+RDEPEND="dev-libs/libltdl:0
+ bzip2? ( app-arch/bzip2 )
+ fpx? ( media-libs/libfpx )
+ imagemagick? ( !media-gfx/imagemagick )
+ jbig? ( media-libs/jbigkit )
+ jpeg? ( virtual/jpeg:0 )
+ jpeg2k? ( media-libs/jasper:= )
+ lcms? ( media-libs/lcms:2 )
+ lzma? ( app-arch/xz-utils )
+ perl? ( dev-lang/perl )
+ png? ( media-libs/libpng:0 )
+ postscript? ( app-text/ghostscript-gpl )
+ svg? ( dev-libs/libxml2 )
+ tiff? ( media-libs/tiff:0 )
+ truetype? (
+ media-fonts/urw-fonts
+ >=media-libs/freetype-2
+ )
+ webp? ( media-libs/libwebp:= )
+ wmf? ( media-libs/libwmf )
+ X? (
+ x11-libs/libSM
+ x11-libs/libXext
+ )
+ zlib? ( sys-libs/zlib )"
+# corefonts are required because needed arial font (bug #588398).
+DEPEND="${RDEPEND}
+ test? ( media-fonts/corefonts )"
+
+S=${WORKDIR}/${MY_P}
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-1.3.19-flags.patch
+ "${FILESDIR}"/${PN}-1.3.19-perl.patch
+)
+
+src_prepare() {
+ default
+ eautoreconf
+}
+
+src_configure() {
+ local depth=8
+ use q16 && depth=16
+ use q32 && depth=32
+
+ local openmp=disable
+ if use openmp && tc-has-openmp; then
+ openmp=enable
+ fi
+
+ econf \
+ --${openmp}-openmp \
+ --enable-largefile \
+ --enable-shared \
+ $(use_enable static-libs static) \
+ $(use_enable debug prof) \
+ $(use_enable debug gcov) \
+ $(use_enable imagemagick magick-compat) \
+ $(use_with threads) \
+ $(use_with modules) \
+ --with-quantum-depth=${depth} \
+ --without-frozenpaths \
+ $(use_with cxx magick-plus-plus) \
+ $(use_with perl) \
+ --with-perl-options=INSTALLDIRS=vendor \
+ $(use_with bzip2 bzlib) \
+ $(use_with postscript dps) \
+ $(use_with fpx) \
+ --without-gslib \
+ $(use_with jbig) \
+ $(use_with webp) \
+ $(use_with jpeg) \
+ $(use_with jpeg2k jp2) \
+ $(use_with lcms lcms2) \
+ $(use_with lzma) \
+ $(use_with png) \
+ $(use_with tiff) \
+ $(use_with truetype ttf) \
+ $(use_with wmf) \
+ --with-fontpath="${EPREFIX}"/usr/share/fonts \
+ --with-gs-font-dir="${EPREFIX}"/usr/share/fonts/urw-fonts \
+ --with-windows-font-dir="${EPREFIX}"/usr/share/fonts/corefonts \
+ $(use_with svg xml) \
+ $(use_with zlib) \
+ $(use_with X x)
+}
+
+src_compile() {
+ default
+ use perl && emake perl-build
+}
+
+src_test() {
+ unset DISPLAY # some perl tests fail when DISPLAY is set
+ default
+}
+
+src_install() {
+ default
+
+ if use perl; then
+ emake -C PerlMagick DESTDIR="${D}" install
+ find "${ED}" -type f -name perllocal.pod -exec rm -f {} + || die
+ find "${ED}" -depth -mindepth 1 -type d -empty -exec rm -rf {} + || die
+ fi
+
+ find "${ED}" -name '*.la' -exec sed -i -e "/^dependency_libs/s:=.*:='':" {} + || die
+}
diff --git a/media-gfx/graphicsmagick/graphicsmagick-1.3.26.ebuild b/media-gfx/graphicsmagick/graphicsmagick-1.3.26.ebuild
new file mode 100644
index 000000000000..aecb472c7108
--- /dev/null
+++ b/media-gfx/graphicsmagick/graphicsmagick-1.3.26.ebuild
@@ -0,0 +1,134 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit autotools toolchain-funcs
+
+MY_P=${P/graphicsm/GraphicsM}
+
+DESCRIPTION="Collection of tools and libraries for many image formats"
+HOMEPAGE="http://www.graphicsmagick.org/"
+LICENSE="MIT"
+SLOT="0/${PV%.*}"
+
+if [[ ${PV} == "9999" ]] ; then
+ inherit mercurial
+ EHG_REPO_URI="http://hg.code.sf.net/p/${PN}/code"
+else
+ SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.xz"
+ KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos"
+fi
+
+IUSE="bzip2 cxx debug fpx imagemagick jbig jpeg jpeg2k lcms lzma modules openmp
+ perl png postscript q16 q32 static-libs svg test threads tiff truetype
+ webp wmf X zlib"
+
+RDEPEND="dev-libs/libltdl:0
+ bzip2? ( app-arch/bzip2 )
+ fpx? ( media-libs/libfpx )
+ imagemagick? ( !media-gfx/imagemagick )
+ jbig? ( media-libs/jbigkit )
+ jpeg? ( virtual/jpeg:0 )
+ jpeg2k? ( media-libs/jasper:= )
+ lcms? ( media-libs/lcms:2 )
+ lzma? ( app-arch/xz-utils )
+ perl? ( dev-lang/perl )
+ png? ( media-libs/libpng:0 )
+ postscript? ( app-text/ghostscript-gpl )
+ svg? ( dev-libs/libxml2 )
+ tiff? ( media-libs/tiff:0 )
+ truetype? (
+ media-fonts/urw-fonts
+ >=media-libs/freetype-2
+ )
+ webp? ( media-libs/libwebp:= )
+ wmf? ( media-libs/libwmf )
+ X? (
+ x11-libs/libSM
+ x11-libs/libXext
+ )
+ zlib? ( sys-libs/zlib )"
+# corefonts are required because needed arial font (bug #588398).
+DEPEND="${RDEPEND}
+ test? ( media-fonts/corefonts )"
+
+S=${WORKDIR}/${MY_P}
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-1.3.19-flags.patch
+ "${FILESDIR}"/${PN}-1.3.19-perl.patch
+)
+
+src_prepare() {
+ default
+ eautoreconf
+}
+
+src_configure() {
+ local depth=8
+ use q16 && depth=16
+ use q32 && depth=32
+
+ local openmp=disable
+ if use openmp && tc-has-openmp; then
+ openmp=enable
+ fi
+
+ econf \
+ --${openmp}-openmp \
+ --enable-largefile \
+ --enable-shared \
+ $(use_enable static-libs static) \
+ $(use_enable debug prof) \
+ $(use_enable debug gcov) \
+ $(use_enable imagemagick magick-compat) \
+ $(use_with threads) \
+ $(use_with modules) \
+ --with-quantum-depth=${depth} \
+ --without-frozenpaths \
+ $(use_with cxx magick-plus-plus) \
+ $(use_with perl) \
+ --with-perl-options=INSTALLDIRS=vendor \
+ $(use_with bzip2 bzlib) \
+ $(use_with postscript dps) \
+ $(use_with fpx) \
+ --without-gslib \
+ $(use_with jbig) \
+ $(use_with webp) \
+ $(use_with jpeg) \
+ $(use_with jpeg2k jp2) \
+ $(use_with lcms lcms2) \
+ $(use_with lzma) \
+ $(use_with png) \
+ $(use_with tiff) \
+ $(use_with truetype ttf) \
+ $(use_with wmf) \
+ --with-fontpath="${EPREFIX}"/usr/share/fonts \
+ --with-gs-font-dir="${EPREFIX}"/usr/share/fonts/urw-fonts \
+ --with-windows-font-dir="${EPREFIX}"/usr/share/fonts/corefonts \
+ $(use_with svg xml) \
+ $(use_with zlib) \
+ $(use_with X x)
+}
+
+src_compile() {
+ default
+ use perl && emake perl-build
+}
+
+src_test() {
+ unset DISPLAY # some perl tests fail when DISPLAY is set
+ default
+}
+
+src_install() {
+ default
+
+ if use perl; then
+ emake -C PerlMagick DESTDIR="${D}" install
+ find "${ED}" -type f -name perllocal.pod -exec rm -f {} + || die
+ find "${ED}" -depth -mindepth 1 -type d -empty -exec rm -rf {} + || die
+ fi
+
+ find "${ED}" -name '*.la' -exec sed -i -e "/^dependency_libs/s:=.*:='':" {} + || die
+}
diff --git a/media-gfx/graphicsmagick/graphicsmagick-9999.ebuild b/media-gfx/graphicsmagick/graphicsmagick-9999.ebuild
new file mode 100644
index 000000000000..aecb472c7108
--- /dev/null
+++ b/media-gfx/graphicsmagick/graphicsmagick-9999.ebuild
@@ -0,0 +1,134 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit autotools toolchain-funcs
+
+MY_P=${P/graphicsm/GraphicsM}
+
+DESCRIPTION="Collection of tools and libraries for many image formats"
+HOMEPAGE="http://www.graphicsmagick.org/"
+LICENSE="MIT"
+SLOT="0/${PV%.*}"
+
+if [[ ${PV} == "9999" ]] ; then
+ inherit mercurial
+ EHG_REPO_URI="http://hg.code.sf.net/p/${PN}/code"
+else
+ SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.xz"
+ KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos"
+fi
+
+IUSE="bzip2 cxx debug fpx imagemagick jbig jpeg jpeg2k lcms lzma modules openmp
+ perl png postscript q16 q32 static-libs svg test threads tiff truetype
+ webp wmf X zlib"
+
+RDEPEND="dev-libs/libltdl:0
+ bzip2? ( app-arch/bzip2 )
+ fpx? ( media-libs/libfpx )
+ imagemagick? ( !media-gfx/imagemagick )
+ jbig? ( media-libs/jbigkit )
+ jpeg? ( virtual/jpeg:0 )
+ jpeg2k? ( media-libs/jasper:= )
+ lcms? ( media-libs/lcms:2 )
+ lzma? ( app-arch/xz-utils )
+ perl? ( dev-lang/perl )
+ png? ( media-libs/libpng:0 )
+ postscript? ( app-text/ghostscript-gpl )
+ svg? ( dev-libs/libxml2 )
+ tiff? ( media-libs/tiff:0 )
+ truetype? (
+ media-fonts/urw-fonts
+ >=media-libs/freetype-2
+ )
+ webp? ( media-libs/libwebp:= )
+ wmf? ( media-libs/libwmf )
+ X? (
+ x11-libs/libSM
+ x11-libs/libXext
+ )
+ zlib? ( sys-libs/zlib )"
+# corefonts are required because needed arial font (bug #588398).
+DEPEND="${RDEPEND}
+ test? ( media-fonts/corefonts )"
+
+S=${WORKDIR}/${MY_P}
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-1.3.19-flags.patch
+ "${FILESDIR}"/${PN}-1.3.19-perl.patch
+)
+
+src_prepare() {
+ default
+ eautoreconf
+}
+
+src_configure() {
+ local depth=8
+ use q16 && depth=16
+ use q32 && depth=32
+
+ local openmp=disable
+ if use openmp && tc-has-openmp; then
+ openmp=enable
+ fi
+
+ econf \
+ --${openmp}-openmp \
+ --enable-largefile \
+ --enable-shared \
+ $(use_enable static-libs static) \
+ $(use_enable debug prof) \
+ $(use_enable debug gcov) \
+ $(use_enable imagemagick magick-compat) \
+ $(use_with threads) \
+ $(use_with modules) \
+ --with-quantum-depth=${depth} \
+ --without-frozenpaths \
+ $(use_with cxx magick-plus-plus) \
+ $(use_with perl) \
+ --with-perl-options=INSTALLDIRS=vendor \
+ $(use_with bzip2 bzlib) \
+ $(use_with postscript dps) \
+ $(use_with fpx) \
+ --without-gslib \
+ $(use_with jbig) \
+ $(use_with webp) \
+ $(use_with jpeg) \
+ $(use_with jpeg2k jp2) \
+ $(use_with lcms lcms2) \
+ $(use_with lzma) \
+ $(use_with png) \
+ $(use_with tiff) \
+ $(use_with truetype ttf) \
+ $(use_with wmf) \
+ --with-fontpath="${EPREFIX}"/usr/share/fonts \
+ --with-gs-font-dir="${EPREFIX}"/usr/share/fonts/urw-fonts \
+ --with-windows-font-dir="${EPREFIX}"/usr/share/fonts/corefonts \
+ $(use_with svg xml) \
+ $(use_with zlib) \
+ $(use_with X x)
+}
+
+src_compile() {
+ default
+ use perl && emake perl-build
+}
+
+src_test() {
+ unset DISPLAY # some perl tests fail when DISPLAY is set
+ default
+}
+
+src_install() {
+ default
+
+ if use perl; then
+ emake -C PerlMagick DESTDIR="${D}" install
+ find "${ED}" -type f -name perllocal.pod -exec rm -f {} + || die
+ find "${ED}" -depth -mindepth 1 -type d -empty -exec rm -rf {} + || die
+ fi
+
+ find "${ED}" -name '*.la' -exec sed -i -e "/^dependency_libs/s:=.*:='':" {} + || die
+}
diff --git a/media-gfx/graphicsmagick/metadata.xml b/media-gfx/graphicsmagick/metadata.xml
new file mode 100644
index 000000000000..7b04761e284d
--- /dev/null
+++ b/media-gfx/graphicsmagick/metadata.xml
@@ -0,0 +1,27 @@
+<?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>
+ <longdescription lang="en">
+ This is a port of GraphicsMagick(TM), the "swiss army knife" of
+ image processing. It provides a robust collection of tools and libraries
+ which support reading, writing, and manipulating an image in over 88 major
+ formats including formats like DPX, GIF, JPEG, JPEG-2000, PNG, PDF,
+ SVG and TIFF.
+ The program is the fork of a better-known ImageMagick (5.5.2), which
+ emphasizes end-user and API-stabilities.
+</longdescription>
+ <use>
+ <flag name="fpx">Enable FlashPix support with <pkg>media-libs/libfpx</pkg></flag>
+ <flag name="modules">Compile graphicsmagick with dynamically loadable modules</flag>
+ <flag name="q16">Set storage quantum size to 16 (~2*memory)</flag>
+ <flag name="q32">Set storage quantum size to 32 (~5*memory)</flag>
+ <flag name="webp">Enable support for webp image format</flag>
+ </use>
+ <upstream>
+ <remote-id type="sourceforge">graphicsmagick</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/media-gfx/graphite2/Manifest b/media-gfx/graphite2/Manifest
new file mode 100644
index 000000000000..0042469f1c0a
--- /dev/null
+++ b/media-gfx/graphite2/Manifest
@@ -0,0 +1,6 @@
+AUX graphite2-1.3.5-includes-libs-perl.patch 836 SHA256 050696b93d5a93b3f4631ed4ac73e5e43b3116bdf01dfcd76690b842794af4dc SHA512 26ab6dda13d758a5e4237c8b5d207d3c5111afbb11b2c3984cd742913c3c7932559b23b5ea9f774f1c6373eb0f761a9400dccc95876740b3cd06c44084a10965 WHIRLPOOL 2dac8975ed0a308c2a4f978b3ce07634c7ec11ae52a66c8e870cfca7e161468fd1027f67e2311f8ecca72ef8d9e345fe08d802ce8d69afb6b538e3910a323971
+DIST graphite2-1.3.10.tgz 3889647 SHA256 90fde3b2f9ea95d68ffb19278d07d9b8a7efa5ba0e413bebcea802ce05cda1ae SHA512 d6d578feaa2d9304dc9bcd3926958070b8c23b27437a9fcb801e08e62f33a5549b7a6aa9636c7f8eb80a2a2c6d5cac97d58050fb30fd102b9fd0f8c558f4252b WHIRLPOOL 8a10ae32a7f02ad9e64982ece9b4b5169355f52160f8b9f00d1a892f785bbe14c2fdde24f5e84f6b8cbd7012edaf91b639beeeba400a3f6432b2436278a5df06
+EBUILD graphite2-1.3.10.ebuild 2506 SHA256 0f0b81c7f14a12b593dba76e68cba3429eb50705cf4fd565dcbaedc8e8828cd7 SHA512 b1eabe9d6440f6547e356027df84ec18eac1e1967ba434d5ca06252f8a80b64a137e417f6c1e581f2e6bdf7da0fdc6afbc642ec395fac0e20c3cee949dac1800 WHIRLPOOL c0423101afe1c6ecbbdd44587d65e51a7b1b300b60b56ae7caeebe440b97dc68894275849ba298970e53bf7acd0640406d2de8ed0f7fbe173f966c820113233a
+MISC ChangeLog 10831 SHA256 16e3f38bad5eb2c147857735642f964ba2731a669e3115877fd49c0dc83262c6 SHA512 016774595ae72d6929b67782274de10fc36bec4cd5ef90080b49fb59b82107b9d99fd6accfbcb24494402de2c3a6035e7837fa4b8f1958b80ec36ca85cc01e94 WHIRLPOOL c773650de8d325230bd6b33eafcbab9be15ac577e2ebd6e9dfb86f40c269741f726623bf6f92726da374ec3b7922a5f73cfce94de71bfb206f71a294c8cceb10
+MISC ChangeLog-2015 12412 SHA256 c1184653e5384e3e5b5695241d530b0ced5d0b21200791707f1e7c838fd5f7f8 SHA512 80f2c1f075bd15154712d09c6955bf04b8d0416b51f63f1b10a4c8eb118f7a05edbbe6186d6e44509f107a9a9640f0bd0999b01d456d4d24d513b72fc19a57b7 WHIRLPOOL 21151e112ce1a2b71e8f96de1258a15d66afc3eaf39115211082b3d3bb08d5ec843d44e071766c04a112fe8f264a2210bc559df0301836319a2d31c00468cb4e
+MISC metadata.xml 336 SHA256 c76a3a8a9a4c6dd54355b3a2d116f35db6ce1d93a299d8924ed6484d099c9921 SHA512 ac8ae39ab005c1562818a97b64bfef48ab64e2a1993aa3eef4ee4b3066b32d9211787df1273e20cb767839e42364ed72b3e99c51bb65f0c88937564d5dbb5380 WHIRLPOOL 704eb87c7e1a01956485f13dca9986793955996192f1a984777c0acb87c1363c55e127e0170bd58d91765f527a3652a25c545cce09081f5ff87220c1da541373
diff --git a/media-gfx/graphite2/files/graphite2-1.3.5-includes-libs-perl.patch b/media-gfx/graphite2/files/graphite2-1.3.5-includes-libs-perl.patch
new file mode 100644
index 000000000000..b6168828dc26
--- /dev/null
+++ b/media-gfx/graphite2/files/graphite2-1.3.5-includes-libs-perl.patch
@@ -0,0 +1,14 @@
+diff -ruN graphite2-1.3.5.orig/contrib/perl/Build.PL graphite2-1.3.5/contrib/perl/Build.PL
+--- graphite2-1.3.5.orig/contrib/perl/Build.PL 2016-01-15 05:17:18.000000000 +0100
++++ graphite2-1.3.5/contrib/perl/Build.PL 2016-02-16 11:11:23.922397562 +0100
+@@ -8,8 +8,8 @@
+ dist_author => 'Simon Cozens <simon@cpan.org>',
+ dist_version_from => 'lib/Text/Gr2.pm',
+ extra_compiler_flags => $^O ne 'MSWin32' ? '-Wall -Wno-unused-variable' : '',
+- extra_linker_flags => $^O eq 'MSWin32' ? '../../build/src/graphite2.lib' : '-lgraphite2',
+- include_dirs => ['.', '../include'],
++ extra_linker_flags => $^O eq 'MSWin32' ? '../../build/src/graphite2.lib' : '-L @BUILD_DIR@ -lgraphite2',
++ include_dirs => ['.', '../include', '../../include'],
+ requires => {
+ 'Test::More' => 0,
+ },
diff --git a/media-gfx/graphite2/graphite2-1.3.10.ebuild b/media-gfx/graphite2/graphite2-1.3.10.ebuild
new file mode 100644
index 000000000000..68b22139c69e
--- /dev/null
+++ b/media-gfx/graphite2/graphite2-1.3.10.ebuild
@@ -0,0 +1,118 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python2_7 )
+
+GENTOO_DEPEND_ON_PERL="no"
+inherit eutils perl-module python-any-r1 cmake-multilib
+
+DESCRIPTION="Library providing rendering capabilities for complex non-Roman writing systems"
+HOMEPAGE="http://graphite.sil.org/"
+SRC_URI="mirror://sourceforge/silgraphite/${PN}/${P}.tgz"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="alpha amd64 arm arm64 ~hppa ia64 ~mips ppc ppc64 ~sh sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris"
+IUSE="perl test"
+
+RDEPEND="
+ perl? ( dev-lang/perl:= )
+"
+DEPEND="${RDEPEND}
+ perl? (
+ dev-perl/Module-Build
+ dev-perl/Locale-Maketext-Lexicon
+ )
+ test? (
+ dev-libs/glib:2
+ media-libs/fontconfig
+ $(python_gen_any_dep '
+ dev-python/fonttools[${PYTHON_USEDEP}]
+ ')
+ ${PYTHON_DEPS}
+ perl? ( virtual/perl-Test-Simple )
+ )
+"
+
+PATCHES=(
+ "${FILESDIR}/${PN}-1.3.5-includes-libs-perl.patch"
+)
+
+pkg_setup() {
+ use perl && perl_set_version
+ use test && python-any-r1_pkg_setup
+}
+
+python_check_deps() {
+ has_version "dev-python/fonttools[${PYTHON_USEDEP}]"
+}
+
+src_prepare() {
+ cmake-utils_src_prepare
+
+ # make tests optional
+ if ! use test; then
+ sed -i \
+ -e '/tests/d' \
+ CMakeLists.txt || die
+ fi
+}
+
+multilib_src_configure() {
+ local mycmakeargs=(
+ "-DVM_MACHINE_TYPE=direct"
+ # https://sourceforge.net/p/silgraphite/bugs/49/
+ $([[ ${CHOST} == powerpc*-apple* ]] && \
+ echo "-DGRAPHITE2_NSEGCACHE:BOOL=ON")
+ )
+
+ cmake-utils_src_configure
+
+ # fix perl linking
+ if multilib_is_native_abi && use perl; then
+ # we rely on the fact that cmake-utils_src_configure sets BUILD_DIR
+ sed -i \
+ -e "s:@BUILD_DIR@:\"${BUILD_DIR}/src\":" \
+ "${S}"/contrib/perl/Build.PL || die
+ fi
+}
+
+src_compile() {
+ cmake-multilib_src_compile
+ if use perl; then
+ cd contrib/perl || die
+ perl-module_src_configure
+ perl-module_src_compile
+ fi
+}
+
+multilib_src_test() {
+ if multilib_is_native_abi; then
+ cmake-utils_src_test
+ else
+ einfo Cannot test since python is not multilib.
+ fi
+}
+
+src_test() {
+ cmake-multilib_src_test
+ if use perl; then
+ # Perl tests fail due to missing POD coverage...
+ perl_rm_files "contrib/perl/t/pod.t" "contrib/perl/t/pod-coverage.t"
+ cd contrib/perl || die
+ perl-module_src_test
+ fi
+}
+
+src_install() {
+ cmake-multilib_src_install
+ if use perl; then
+ cd contrib/perl || die
+ perl-module_src_install
+ perl_delete_localpod
+ fi
+
+ prune_libtool_files --all
+}
diff --git a/media-gfx/graphite2/metadata.xml b/media-gfx/graphite2/metadata.xml
new file mode 100644
index 000000000000..1d691cf5e290
--- /dev/null
+++ b/media-gfx/graphite2/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>office@gentoo.org</email>
+ <name>Gentoo Office project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">silgraphite</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/media-gfx/graphviz/Manifest b/media-gfx/graphviz/Manifest
new file mode 100644
index 000000000000..508ac46481c5
--- /dev/null
+++ b/media-gfx/graphviz/Manifest
@@ -0,0 +1,10 @@
+AUX graphviz-2.34.0-Xaw-configure.patch 2445 SHA256 93fa487d0170cce51779a94039814e3924afa88320b5de254f270d6705c8d5a0 SHA512 473d2ed9070329512cbc26929267b25fb8d7726e21ed01d2921d4d8ac13b8ffaf166f07229fa7409192cfa14fabb0cf68b299bb3331b3cc953ae5363274fd15c WHIRLPOOL 0f3468f1e23807728a46b5028c8f7df3887cc5219616779dc261bf8d6c7a2aa942740f05ef1c490ce4a66cd026e583e93cf751ae087414bf11f5a8717dbc1682
+AUX graphviz-2.34.0-dot-pangocairo-link.patch 882 SHA256 aa50acee0568c250286affdaaa2625347f2ea982b581c7831a9424f2fac03114 SHA512 8e40b35d8d1ec6a9e683e4f4f39fd5e6c253015727172ba0ed1cf6d9a3b4cc20e3d4169a11bbed29c3cf3dc8ff6d14508ea6459dd62e53e7d69b62ee39ef9f26 WHIRLPOOL 24b6e40c3e70397c099748511ccd34cf88ed1ecd4956b4924a80fe06c09858aa4ec67fcb6194ec7019a74f4ced0435461d18682dcabb5a77a147f345cebbed38
+AUX graphviz-2.38.0-ghostscript-9.18.patch 753 SHA256 b82a0026d528b9e6ffe74798361fd6404bf9dedd87c646d667ff19534a4498d8 SHA512 19327b3fbfecdad1990fd4d9668c3f318da5907c1a8c7e3abd1f1f5a0703c474975b7f08425eb2c0f5c32522ebea614d02b4db9e83cce7fb975458fb87cafc62 WHIRLPOOL 90b8e0ecbf5bfbfbf262af384d8faa2e91e31ed06762c12c8a542caadc64b0634046cdd5245da79e7525d0226064c4f36e6fd93bc2741e2979c21e44c15a810a
+DIST graphviz-2.38.0.tar.gz 25848858 SHA256 81aa238d9d4a010afa73a9d2a704fc3221c731e1e06577c2ab3496bdef67859e SHA512 0e51a97dae595f4e80bc9e4a12ba3c48485fab19941a28d522f5a0624b6a767e0ba720e9e55bff8efe8308dd1cd3793e2c99cb5fdfceb2d5cafb0cbee907e531 WHIRLPOOL b59bb517c4aa690ffd23e1b4d448d5dbaae5594eb1059d574e0cb3bf2091beb9ed867bd4fa7e8ca0259863f24849c96d4d1da056091922bf33ace7da43c8b5d4
+DIST graphviz-2.40.1.tar.gz 25633455 SHA256 ca5218fade0204d59947126c38439f432853543b0818d9d728c589dfe7f3a421 SHA512 a3f358a7050523a39b91a259563a95925b37853ffec799e571211af5b686d3af42457c937882954482785745d90416b1abd945caf05f8abb52b3876e07aa70f5 WHIRLPOOL 0ff4a23cf8c3e0bcbf12776d65ea0aa538050286d6b25bcc3707c7c1ad2d0f8c282239f57bfc0c3795bccf276e9d6627d77ed2920781008a2558af126787a72c
+EBUILD graphviz-2.38.0-r1.ebuild 7839 SHA256 58865a08ad9177b0547fbb219ac8d8149da90f970ff579751f0e68988ed22b6a SHA512 5033b119a945305cf1535b64a6fea92a1be164d23aa8413b69dafc46f6dea2058f843b63776c13c175101840d4648cf56c9b9dade6c0bd6b443dbb1c8c20fb89 WHIRLPOOL 8002451394fc1a8362d22c98b357f6d1b67fe0d7397d9024e1b019f2d2fb98aedbdaf79478a3947ab019585ee2ddd5406d4e21ad26f5fcabbe8a58de2f7e5eb7
+EBUILD graphviz-2.40.1.ebuild 7789 SHA256 4429467b1732701f6a2dc142b3b9c74a69b8dfe4a1a62871c83120906e4892ec SHA512 abf891342a6aa4a71a6d1d7066bfbfdc0bf1846447fc1cd87a2a9cb600f3b2f623e52bdc1aac060e39623ec489d6d2820333ccc7831b229211a27753f04b9081 WHIRLPOOL ecfb2c0f49ca26a8d6c45103f646d5e0da4fe279db62b32c3b9a4e16fb4e5b778b2171950621a2cd6b7b4892cc1b59730aaede1ab533fcd1bd37c186e65da88d
+MISC ChangeLog 6266 SHA256 5fa7dbf137ef0d386e76e36a0b34599dc0540c2844af95c701073a6fee6e919d SHA512 12824a1ff6e84e4928dfaa16ec9d6c71aa026cf2a78b0fee03299af3600e2720b7bc3cf096840fa31923cdebbfe790f34f99eb4041652d60e7be2795dd37de52 WHIRLPOOL 0449cea470386a2aadfe3a44e7aff59a3e710aa557dc25760dfcb6b59f98302216d15c4935397c38aed015be4d097e9719cadc98142864230d9bcfac9017604a
+MISC ChangeLog-2015 43213 SHA256 9fc790211b1c5ceeaf32fd859f9932dc4ddc452f7b54a5a7d52aef4627fe37bc SHA512 b7214b158c935dd7a5072eabed9717a756062bac87db70b34e756ca6cf20a655af589acbc7b13d90f3c9396794a580741b9ca8a407f3457938a13549a3277f8c WHIRLPOOL ff154647150d1c6409eee72c2b7eb08297a93f1a68c4f1d69be27105e70d2e4009f9763e306731f5fcd85aa60f08325c583073b33e35b3b3db0aaaa9d2f3bfbb
+MISC metadata.xml 2243 SHA256 3e1e0a6a9490585ed6f600e307b58a17faed88855cefdea806a845431a8cdcf1 SHA512 1834830ffacc66c508b0eb5c8897957d4f22d9cdb66176dfdd2c9fa17542561330bbec428658d8677db21ad2e05ebdb166912cbc799d27b24e94ff5b8477ef53 WHIRLPOOL 87907fd500244d3d05f95a8af20eb860b677374630f16917d6a3cf7f21606be0f1e83290931f458b6b16428023b0e53e190a7b3e7dfe48935a78da905c48cb65
diff --git a/media-gfx/graphviz/files/graphviz-2.34.0-Xaw-configure.patch b/media-gfx/graphviz/files/graphviz-2.34.0-Xaw-configure.patch
new file mode 100644
index 000000000000..2283cc5dab40
--- /dev/null
+++ b/media-gfx/graphviz/files/graphviz-2.34.0-Xaw-configure.patch
@@ -0,0 +1,81 @@
+--- a/configure.ac
++++ b/configure.ac
+@@ -560,8 +560,8 @@
+ use_xlib="Yes"
+ #no x11.pc on centos4
+ # PKG_CHECK_MODULES(X11, [x11])
+- PKG_CHECK_MODULES(XRENDER, [xrender],HAVE_XRENDER="yes" ,HAVE_XRENDER="no")
+ fi
++PKG_CHECK_MODULES(XRENDER, [xrender],HAVE_XRENDER="yes" ,HAVE_XRENDER="no")
+ AM_CONDITIONAL(WITH_X, [test "x$use_xlib" = "xYes"])
+ AM_CONDITIONAL(WITH_XRENDER, [test "x$,HAVE_XRENDER" = "xyes"])
+
+@@ -1924,6 +1924,10 @@
+ # so we set HAVE_LIBXPMFORLEFTY instead of the usual HAVE_LIBXPM
+ #
+
++AC_ARG_WITH(lefty,
++ [AS_HELP_STRING([--with-lefty=yes],[build lefty])],
++ [],[with_xaw=yes])
++
+ AC_ARG_WITH(Xpmincludedir,
+ [AS_HELP_STRING([--with-Xpmincludedir=DIR],[use Xpm includes from DIR])],
+ [XPM_INCLUDES="-I$withval"])
+@@ -1931,6 +1935,17 @@
+ [AS_HELP_STRING([--with-Xpmlibdir=DIR],[use Xpm libraries from DIR])],
+ [XPM_LIBS="-L$withval"])
+
++AC_ARG_WITH(Xawincludedir,
++ [AS_HELP_STRING([--with-Xawincludedir=DIR],[use Xaw includes from DIR])],
++ [XAW_INCLUDES="-I$withval"])
++AC_ARG_WITH(Xawlibdir,
++ [AS_HELP_STRING([--with-Xawlibdir=DIR],[use Xaw libraries from DIR])],
++ [XAW_LIBS="-L$withval"])
++
++if test "x$with_xaw" != "xyes"; then
++ use_lefty="No (disabled)"
++else
++
+ save_CPPFLAGS=$CPPFLAGS
+ save_LDFLAGS=$LDFLAGS
+ CPPFLAGS="$CPPFLAGS $XPM_INCLUDES $X_CFLAGS"
+@@ -1941,18 +1956,10 @@
+ AC_MSG_WARN(Optional Xpm library not available), [-lXmu -lXt -lX11 -lXext $SOCKET_LIBS])
+ LDFLAGS=$save_LDFLAGS
+ CPPFLAGS=$save_CPPFLAGS
+-AC_SUBST([XPM_INCLUDES])
+-AC_SUBST([XPM_LIBS])
+
+ dnl -----------------------------------
+ dnl INCLUDES and LIBS for XAW
+
+-AC_ARG_WITH(Xawincludedir,
+- [AS_HELP_STRING([--with-Xawincludedir=DIR],[use Xaw includes from DIR])],
+- [XAW_INCLUDES="-I$withval"])
+-AC_ARG_WITH(Xawlibdir,
+- [AS_HELP_STRING([--with-Xawlibdir=DIR],[use Xaw libraries from DIR])],
+- [XAW_LIBS="-L$withval"])
+ save_CPPFLAGS=$CPPFLAGS
+ save_LDFLAGS=$LDFLAGS
+ CPPFLAGS="$CPPFLAGS $XAW_INCLUDES $X_CFLAGS"
+@@ -1978,12 +1985,17 @@
+ fi
+ LDFLAGS=$save_LDFLAGS
+ CPPFLAGS=$save_CPPFLAGS
++
++fi
++
++AC_SUBST([XPM_INCLUDES])
++AC_SUBST([XPM_LIBS])
+ AC_SUBST([XAW_INCLUDES])
+ AC_SUBST([XAW_LIBS])
+-AM_CONDITIONAL(WITH_XAW, [test "x$with_xaw" != "xno"])
+-if test "x$with_xaw" = "xno"; then
++AM_CONDITIONAL(WITH_XAW, [test "x$with_xaw" = "xyes"])
++if test "x$with_xaw" != "xyes"; then
+ if test "x$no_x" != "xyes"; then
+- AC_MSG_WARN(Lefty cannot be built)
++ AC_MSG_WARN(Lefty will not be built)
+ fi
+ fi
+
diff --git a/media-gfx/graphviz/files/graphviz-2.34.0-dot-pangocairo-link.patch b/media-gfx/graphviz/files/graphviz-2.34.0-dot-pangocairo-link.patch
new file mode 100644
index 000000000000..df5ea34d3297
--- /dev/null
+++ b/media-gfx/graphviz/files/graphviz-2.34.0-dot-pangocairo-link.patch
@@ -0,0 +1,17 @@
+--- a/cmd/dot/Makefile.am
++++ b/cmd/dot/Makefile.am
+@@ -115,12 +115,8 @@
+ dot_static_LDADD += $(top_builddir)/plugin/webp/.libs/libgvplugin_webp_C.a $(WEBP_LIBS)
+ dot_builtins_LDADD += $(top_builddir)/plugin/webp/libgvplugin_webp.la $(WEBP_LIBS)
+ endif
+-dot_static_LDADD += $(top_builddir)/plugin/pango/.libs/libgvplugin_pango_C.a $(PANGOCAIRO_LIBS)
+-dot_builtins_LDADD += $(top_builddir)/plugin/pango/libgvplugin_pango.la $(PANGOCAIRO_LIBS)
+-if WITH_WEBP
+-dot_static_LDADD += $(top_builddir)/plugin/webp/.libs/libgvplugin_webp_C.a $(WEBP_LIBS)
+-dot_builtins_LDADD += $(top_builddir)/plugin/webp/libgvplugin_webp.la $(WEBP_LIBS)
+-endif
++dot_static_LDADD += $(top_builddir)/plugin/pango/.libs/libgvplugin_pango_C.a $(PANGOCAIRO_LIBS) $(PANGOFT2_LIBS)
++dot_builtins_LDADD += $(top_builddir)/plugin/pango/libgvplugin_pango.la $(PANGOCAIRO_LIBS) $(PANGOFT2_LIBS)
+ endif
+
+ if WITH_LASI
diff --git a/media-gfx/graphviz/files/graphviz-2.38.0-ghostscript-9.18.patch b/media-gfx/graphviz/files/graphviz-2.38.0-ghostscript-9.18.patch
new file mode 100644
index 000000000000..9d0d78a1580a
--- /dev/null
+++ b/media-gfx/graphviz/files/graphviz-2.38.0-ghostscript-9.18.patch
@@ -0,0 +1,32 @@
+From 8da53964edec8a665c3996d483df243eb150c2c4 Mon Sep 17 00:00:00 2001
+From: Jakob Nixdorf <flocke@shadowice.org>
+Date: Fri, 22 Jan 2016 20:10:42 +0100
+Subject: [PATCH] Fix build with ghostscript-9.18.
+
+--- a/plugin/gs/gvloadimage_gs.c
++++ b/plugin/gs/gvloadimage_gs.c
+@@ -32,6 +32,24 @@
+ #include <ghostscript/ierrors.h>
+ #include <cairo/cairo.h>
+
++
++/**
++ * Ensure compatibility with Ghostscipt versions newer than 9.18
++ * while maintaining compatibility with the older versions.
++ **/
++
++#ifndef e_VMerror
++#define e_VMerror gs_error_VMerror
++#endif
++
++#ifndef e_unregistered
++#define e_unregistered gs_error_unregistered
++#endif
++
++#ifndef e_invalidid
++#define e_invalidid gs_error_invalidid
++#endif
++
+ #ifdef WIN32
+ #define NUL_FILE "nul"
+ #else
diff --git a/media-gfx/graphviz/graphviz-2.38.0-r1.ebuild b/media-gfx/graphviz/graphviz-2.38.0-r1.ebuild
new file mode 100644
index 000000000000..435949e5f477
--- /dev/null
+++ b/media-gfx/graphviz/graphviz-2.38.0-r1.ebuild
@@ -0,0 +1,267 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+PYTHON_COMPAT=( python2_7 )
+
+inherit autotools eutils flag-o-matic java-pkg-opt-2 multilib python-single-r1 qmake-utils
+
+DESCRIPTION="Open Source Graph Visualization Software"
+HOMEPAGE="http://www.graphviz.org/"
+SRC_URI="http://www.graphviz.org/pub/graphviz/stable/SOURCES/${P}.tar.gz"
+
+LICENSE="CPL-1.0"
+SLOT="0"
+KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 ~s390 ~sh sparc x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris"
+IUSE="+cairo devil doc examples gdk-pixbuf gtk gts guile java lasi nls pdf perl postscript python qt4 ruby svg static-libs tcl X elibc_FreeBSD"
+
+# Requires ksh
+RESTRICT="test"
+
+RDEPEND="
+ sys-libs/zlib
+ >=dev-libs/expat-2
+ >=dev-libs/glib-2.11.1:2
+ dev-libs/libltdl:0
+ >=media-libs/fontconfig-2.3.95
+ >=media-libs/freetype-2.1.10
+ >=media-libs/gd-2.0.34:=[fontconfig,jpeg,png,truetype,zlib]
+ >=media-libs/libpng-1.2:0
+ !<=sci-chemistry/cluster-1.3.081231
+ virtual/jpeg:0
+ virtual/libiconv
+ X? (
+ x11-libs/libXaw
+ x11-libs/libX11
+ x11-libs/libXmu
+ x11-libs/libXpm
+ x11-libs/libXt
+ )
+ cairo? (
+ >=x11-libs/pango-1.12
+ >=x11-libs/cairo-1.1.10[svg]
+ )
+ devil? ( media-libs/devil[png,jpeg] )
+ postscript? ( app-text/ghostscript-gpl )
+ gtk? ( x11-libs/gtk+:2 )
+ gts? ( sci-libs/gts )
+ lasi? ( media-libs/lasi )
+ pdf? ( app-text/poppler )
+ perl? ( dev-lang/perl:= )
+ python? ( ${PYTHON_DEPS} )
+ qt4? (
+ dev-qt/qtcore:4
+ dev-qt/qtgui:4
+ )
+ ruby? ( dev-lang/ruby:* )
+ svg? ( gnome-base/librsvg )
+ tcl? ( >=dev-lang/tcl-8.3:0= )"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ sys-devel/flex
+ sys-devel/libtool
+ guile? ( dev-scheme/guile dev-lang/swig )
+ java? ( >=virtual/jdk-1.5 dev-lang/swig )
+ nls? ( >=sys-devel/gettext-0.14.5 )
+ perl? ( dev-lang/swig )
+ python? ( dev-lang/swig )
+ ruby? ( dev-lang/swig )
+ tcl? ( dev-lang/swig )"
+REQUIRED_USE="
+ !cairo? ( !X !gtk !postscript !lasi )
+ python? ( ${PYTHON_REQUIRED_USE} )"
+
+# Dependency description / Maintainer-Info:
+
+# Rendering is done via the following plugins (/plugins):
+# - core, dot_layout, neato_layout, gd , dot
+# the ones which are always compiled in, depend on zlib, gd
+# - gtk
+# Directly depends on gtk-2.
+# needs 'pangocairo' enabled in graphviz configuration
+# gtk-2 depends on pango, cairo and libX11 directly.
+# - gdk-pixbuf
+# Disabled, GTK-1 junk.
+# - glitz
+# Disabled, no particular reason
+# needs 'pangocairo' enabled in graphviz configuration
+# - ming
+# flash plugin via -Tswf requires media-libs/ming-0.4. Disabled as it's
+# incomplete.
+# - cairo/pango:
+# Needs pango for text layout, uses cairo methods to draw stuff
+# - xlib:
+# needs cairo+pango,
+# can make use of gnomeui and inotify support (??? unsure),
+# needs libXaw for UI
+# UI also links directly against libX11, libXmu, and libXt
+# and uses libXpm if available so we make sure it always is
+
+# There can be swig-generated bindings for the following languages (/tclpkg/gv):
+# - c-sharp (disabled)
+# - scheme (enabled via guile) ... no longer broken on ~x86
+# - io (disabled)
+# - java (enabled via java) *2
+# - lua (enabled via lua)
+# - ocaml (enabled via ocaml)
+# - perl (enabled via perl) *1
+# - php (enabled via php) *2
+# - python (enabled via python) *1
+# - ruby (enabled via ruby) *1
+# - tcl (enabled via tcl)
+# *1 = The ${P}-bindings.patch takes care that those bindings are installed to the right location
+# *2 = Those bindings don't build because the paths for the headers/libs aren't
+# detected correctly and/or the options passed to swig are wrong (-php instead of -php4/5)
+
+# There are several other tools in /tclpkg:
+# gdtclft, tcldot, tclhandle, tclpathplan, tclstubs ; enabled with: --with-tcl
+# tkspline, tkstubs ; enabled with: --with-tk
+
+# And the commands (/cmd):
+# - dot, dotty, gvedit, gvpr, lefty, lneato, smyrna, tools/* :)
+# sci-libs/gts can be used for some of these
+# - lefty:
+# needs Xaw and X to build
+# - gvedit (via 'qt4'):
+# based on ./configure it needs qt-core and qt-gui only
+# - smyrna : experimental opengl front-end (via 'smyrna')
+# currently disabled -- it segfaults a lot
+# needs x11-libs/gtkglext, gnome-base/libglade, media-libs/freeglut
+# sci-libs/gts, x11-libs/gtk. Also needs 'gtk','glade','glut','gts' and 'png'
+# with flags enabled at configure time
+
+pkg_setup() {
+ use python && python-single-r1_pkg_setup
+
+ java-pkg-opt-2_pkg_setup
+}
+
+src_prepare() {
+ epatch \
+ "${FILESDIR}"/${PN}-2.34.0-Xaw-configure.patch \
+ "${FILESDIR}"/${PN}-2.34.0-dot-pangocairo-link.patch \
+ "${FILESDIR}"/${PN}-2.38.0-ghostscript-9.18.patch
+
+ # ToDo: Do the same thing for examples and/or
+ # write a patch for a configuration-option
+ # and send it to upstream
+ # note - the longer sed expression removes multi-line assignments that are extended via '\'
+ if ! use doc ; then
+ find . -iname Makefile.am \
+ | xargs sed -i -e '/^\(html\|pdf\)_DATA.*\\[[:space:]]*$/{:m;N;s/\\\n//;tm;d}' \
+ -e '/^\(html\|pdf\)_DATA/d' || die
+ fi
+
+ # This is an old version of libtool
+ # use the ./configure option to exclude its use, and
+ # delete the dir since we don't need to eautoreconf it
+ rm -rf libltdl || die
+
+ # no nls, no gettext, no iconv macro, so disable it
+ use nls || { sed -i -e '/^AM_ICONV/d' configure.ac || die; }
+
+ # Nuke the dead symlinks for the bindings
+ sed -i -e '/$(pkgluadir)/d' tclpkg/gv/Makefile.am || die
+
+ # replace the whitespace with tabs
+ sed -i -e 's: :\t:g' doc/info/Makefile.am || die
+
+ # use correct version of qmake. bug #567236
+ sed -i -e "/AC_CHECK_PROGS(QMAKE/a AC_SUBST(QMAKE,$(qt4_get_bindir)/qmake)" configure.ac || die
+
+ # workaround for http://www.graphviz.org/mantisbt/view.php?id=1895
+ use elibc_FreeBSD && append-flags $(test-flags -fno-builtin-sincos)
+
+ use java && append-cppflags $(java-pkg_get-jni-cflags)
+
+ eautoreconf
+}
+
+src_configure() {
+ # libtool file collision, bug 276609
+ local myconf="--without-included-ltdl --disable-ltdl-install"
+
+ myconf="${myconf}
+ $(use_with cairo pangocairo)
+ $(use_with devil)
+ $(use_with gtk)
+ $(use_with gts)
+ $(use_with qt4 qt)
+ $(use_with lasi)
+ $(use_with pdf poppler)
+ $(use_with postscript ghostscript)
+ $(use_with svg rsvg)
+ $(use_with X x)
+ $(use_with X xaw)
+ $(use_with X lefty)
+ --with-digcola
+ --with-fontconfig
+ --with-freetype2
+ --with-ipsepcola
+ --with-libgd
+ --with-sfdp
+ $(use_enable gdk-pixbuf)
+ --without-ming"
+
+ # new/experimental features, to be tested, disable for now
+ myconf="${myconf}
+ --with-cgraph
+ --without-glitz
+ --without-ipsepcola
+ --without-smyrna
+ --without-visio"
+
+ # Bindings:
+ myconf="${myconf}
+ $(use_enable guile)
+ --disable-io
+ $(use_enable java)
+ --disable-lua
+ --disable-ocaml
+ $(use_enable perl)
+ --disable-php
+ $(use_enable python)
+ --disable-r
+ $(use_enable ruby)
+ --disable-sharp
+ $(use_enable tcl)"
+
+ econf \
+ --enable-ltdl \
+ --disable-silent-rules \
+ $(use_enable static-libs static) \
+ ${myconf}
+}
+
+src_install() {
+ sed -i -e "s:htmldir:htmlinfodir:g" doc/info/Makefile || die
+
+ emake DESTDIR="${D}" \
+ txtdir="${EPREFIX}"/usr/share/doc/${PF} \
+ htmldir="${EPREFIX}"/usr/share/doc/${PF}/html \
+ htmlinfodir="${EPREFIX}"/usr/share/doc/${PF}/html/info \
+ pdfdir="${EPREFIX}"/usr/share/doc/${PF}/pdf \
+ pkgconfigdir="${EPREFIX}"/usr/$(get_libdir)/pkgconfig \
+ install
+
+ use examples || rm -rf "${ED}"/usr/share/graphviz/demo
+
+ use static-libs || find "${ED}" -name '*.la' -exec rm -f {} +
+
+ dodoc AUTHORS ChangeLog NEWS README
+
+ use python && python_optimize \
+ "${D}$(python_get_sitedir)" \
+ "${D}/usr/$(get_libdir)/graphviz/python"
+}
+
+pkg_postinst() {
+ # This actually works if --enable-ltdl is passed
+ # to configure
+ dot -c
+}
+
+pkg_postrm() {
+ # Remove cruft, bug #547344
+ rm -f "${EROOT}usr/lib/graphviz/config{,6}"
+}
diff --git a/media-gfx/graphviz/graphviz-2.40.1.ebuild b/media-gfx/graphviz/graphviz-2.40.1.ebuild
new file mode 100644
index 000000000000..5d3f2809fa6a
--- /dev/null
+++ b/media-gfx/graphviz/graphviz-2.40.1.ebuild
@@ -0,0 +1,275 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+PYTHON_COMPAT=( python2_7 )
+
+inherit autotools eutils flag-o-matic java-pkg-opt-2 multilib python-single-r1 qmake-utils
+
+DESCRIPTION="Open Source Graph Visualization Software"
+HOMEPAGE="http://www.graphviz.org/ https://github.com/ellson/graphviz"
+SRC_URI="http://www.graphviz.org/pub/graphviz/stable/SOURCES/${P}.tar.gz"
+
+LICENSE="CPL-1.0"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris"
+IUSE="+cairo devil doc examples gdk-pixbuf gtk gts guile java lasi nls pdf perl postscript python qt4 ruby svg static-libs tcl X elibc_FreeBSD"
+
+# Requires ksh
+RESTRICT="test"
+
+RDEPEND="
+ sys-libs/zlib
+ >=dev-libs/expat-2
+ >=dev-libs/glib-2.11.1:2
+ dev-libs/libltdl:0
+ >=media-libs/fontconfig-2.3.95
+ >=media-libs/freetype-2.1.10
+ >=media-libs/gd-2.0.34:=[fontconfig,jpeg,png,truetype,zlib]
+ >=media-libs/libpng-1.2:0
+ !<=sci-chemistry/cluster-1.3.081231
+ virtual/jpeg:0
+ virtual/libiconv
+ X? (
+ x11-libs/libXaw
+ x11-libs/libX11
+ x11-libs/libXmu
+ x11-libs/libXpm
+ x11-libs/libXt
+ )
+ cairo? (
+ >=x11-libs/pango-1.12
+ >=x11-libs/cairo-1.1.10[svg]
+ )
+ devil? ( media-libs/devil[png,jpeg] )
+ postscript? ( app-text/ghostscript-gpl )
+ gtk? ( x11-libs/gtk+:2 )
+ gts? ( sci-libs/gts )
+ lasi? ( media-libs/lasi )
+ pdf? ( app-text/poppler )
+ perl? ( dev-lang/perl:= )
+ python? ( ${PYTHON_DEPS} )
+ qt4? (
+ dev-qt/qtcore:4
+ dev-qt/qtgui:4
+ )
+ ruby? ( dev-lang/ruby:* )
+ svg? ( gnome-base/librsvg )
+ tcl? ( >=dev-lang/tcl-8.3:0= )"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ sys-devel/flex
+ sys-devel/libtool
+ guile? ( dev-scheme/guile dev-lang/swig )
+ java? ( >=virtual/jdk-1.5 dev-lang/swig )
+ nls? ( >=sys-devel/gettext-0.14.5 )
+ perl? ( dev-lang/swig )
+ python? ( dev-lang/swig )
+ ruby? ( dev-lang/swig )
+ tcl? ( dev-lang/swig )"
+REQUIRED_USE="
+ !cairo? ( !X !gtk !postscript !lasi )
+ python? ( ${PYTHON_REQUIRED_USE} )"
+
+# Dependency description / Maintainer-Info:
+
+# Rendering is done via the following plugins (/plugins):
+# - core, dot_layout, neato_layout, gd , dot
+# the ones which are always compiled in, depend on zlib, gd
+# - gtk
+# Directly depends on gtk-2.
+# needs 'pangocairo' enabled in graphviz configuration
+# gtk-2 depends on pango, cairo and libX11 directly.
+# - gdk-pixbuf
+# Disabled, GTK-1 junk.
+# - glitz
+# Disabled, no particular reason
+# needs 'pangocairo' enabled in graphviz configuration
+# - ming
+# flash plugin via -Tswf requires media-libs/ming-0.4. Disabled as it's
+# incomplete.
+# - cairo/pango:
+# Needs pango for text layout, uses cairo methods to draw stuff
+# - xlib:
+# needs cairo+pango,
+# can make use of gnomeui and inotify support (??? unsure),
+# needs libXaw for UI
+# UI also links directly against libX11, libXmu, and libXt
+# and uses libXpm if available so we make sure it always is
+
+# There can be swig-generated bindings for the following languages (/tclpkg/gv):
+# - c-sharp (disabled)
+# - scheme (enabled via guile) ... no longer broken on ~x86
+# - io (disabled)
+# - java (enabled via java) *2
+# - lua (enabled via lua)
+# - ocaml (enabled via ocaml)
+# - perl (enabled via perl) *1
+# - php (enabled via php) *2
+# - python (enabled via python) *1
+# - ruby (enabled via ruby) *1
+# - tcl (enabled via tcl)
+# *1 = The ${P}-bindings.patch takes care that those bindings are installed to the right location
+# *2 = Those bindings don't build because the paths for the headers/libs aren't
+# detected correctly and/or the options passed to swig are wrong (-php instead of -php4/5)
+
+# There are several other tools in /tclpkg:
+# gdtclft, tcldot, tclhandle, tclpathplan, tclstubs ; enabled with: --with-tcl
+# tkspline, tkstubs ; enabled with: --with-tk
+
+# And the commands (/cmd):
+# - dot, dotty, gvedit, gvpr, lefty, lneato, smyrna, tools/* :)
+# sci-libs/gts can be used for some of these
+# - lefty:
+# needs Xaw and X to build
+# - gvedit (via 'qt4'):
+# based on ./configure it needs qt-core and qt-gui only
+# - smyrna : experimental opengl front-end (via 'smyrna')
+# currently disabled -- it segfaults a lot
+# needs x11-libs/gtkglext, gnome-base/libglade, media-libs/freeglut
+# sci-libs/gts, x11-libs/gtk. Also needs 'gtk','glade','glut','gts' and 'png'
+# with flags enabled at configure time
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-2.34.0-Xaw-configure.patch
+)
+
+pkg_setup() {
+ use python && python-single-r1_pkg_setup
+
+ java-pkg-opt-2_pkg_setup
+}
+
+src_prepare() {
+ default
+
+ # ToDo: Do the same thing for examples and/or
+ # write a patch for a configuration-option
+ # and send it to upstream
+ # note - the longer sed expression removes multi-line assignments that are extended via '\'
+ if ! use doc ; then
+ find . -iname Makefile.am \
+ | xargs sed -i -e '/^\(html\|pdf\)_DATA.*\\[[:space:]]*$/{:m;N;s/\\\n//;tm;d}' \
+ -e '/^\(html\|pdf\)_DATA/d' || die
+ fi
+
+ # This is an old version of libtool
+ # use the ./configure option to exclude its use, and
+ # delete the dir since we don't need to eautoreconf it
+ rm -r libltdl || die
+
+ # no nls, no gettext, no iconv macro, so disable it
+ if ! use nls ; then
+ sed -i -e '/^AM_ICONV/d' configure.ac || die
+ fi
+
+ # Nuke the dead symlinks for the bindings
+ sed -i -e '/$(pkgluadir)/d' tclpkg/gv/Makefile.am || die
+
+ # replace the whitespace with tabs
+ sed -i -e 's: :\t:g' doc/info/Makefile.am || die
+
+ # use correct version of qmake. bug #567236
+ sed -i -e "/AC_CHECK_PROGS(QMAKE/a AC_SUBST(QMAKE,$(qt4_get_bindir)/qmake)" configure.ac || die
+
+ # workaround for http://www.graphviz.org/mantisbt/view.php?id=1895
+ use elibc_FreeBSD && append-flags $(test-flags -fno-builtin-sincos)
+
+ use java && append-cppflags $(java-pkg_get-jni-cflags)
+
+ eautoreconf
+}
+
+src_configure() {
+ local myconf=(
+ --enable-ltdl
+ --disable-silent-rules
+ $(use_enable static-libs static)
+ )
+
+ # libtool file collision, bug 276609
+ myconf+=( --without-included-ltdl --disable-ltdl-install )
+
+ myconf+=(
+ $(use_with cairo pangocairo)
+ $(use_with devil)
+ $(use_with gtk)
+ $(use_with gts)
+ $(use_with qt4 qt)
+ $(use_with lasi)
+ $(use_with pdf poppler)
+ $(use_with postscript ghostscript)
+ $(use_with svg rsvg)
+ $(use_with X x)
+ $(use_with X xaw)
+ $(use_with X lefty)
+ --with-digcola
+ --with-fontconfig
+ --with-freetype2
+ --with-ipsepcola
+ --with-libgd
+ --with-sfdp
+ $(use_enable gdk-pixbuf)
+ --without-ming
+ )
+
+ # new/experimental features, to be tested, disable for now
+ myconf+=(
+ --with-cgraph
+ --without-glitz
+ --without-ipsepcola
+ --without-smyrna
+ --without-visio
+ )
+
+ # Bindings:
+ myconf+=(
+ $(use_enable guile)
+ --disable-io
+ $(use_enable java)
+ --disable-lua
+ --disable-ocaml
+ $(use_enable perl)
+ --disable-php
+ $(use_enable python)
+ --disable-r
+ $(use_enable ruby)
+ --disable-sharp
+ $(use_enable tcl)
+ )
+
+ econf ${myconf[@]}
+}
+
+src_install() {
+ sed -i -e "s:htmldir:htmlinfodir:g" doc/info/Makefile || die
+
+ emake DESTDIR="${D}" \
+ txtdir="${EPREFIX}"/usr/share/doc/${PF} \
+ htmldir="${EPREFIX}"/usr/share/doc/${PF}/html \
+ htmlinfodir="${EPREFIX}"/usr/share/doc/${PF}/html/info \
+ pdfdir="${EPREFIX}"/usr/share/doc/${PF}/pdf \
+ pkgconfigdir="${EPREFIX}"/usr/$(get_libdir)/pkgconfig \
+ install
+
+ use examples || rm -rf "${ED}"/usr/share/graphviz/demo
+
+ use static-libs || find "${ED}" -name '*.la' -exec rm -f {} +
+
+ dodoc AUTHORS ChangeLog NEWS README
+
+ use python && python_optimize \
+ "${D}$(python_get_sitedir)" \
+ "${D}/usr/$(get_libdir)/graphviz/python"
+}
+
+pkg_postinst() {
+ # This actually works if --enable-ltdl is passed
+ # to configure
+ dot -c
+}
+
+pkg_postrm() {
+ # Remove cruft, bug #547344
+ rm -f "${EROOT}usr/lib/graphviz/config{,6}"
+}
diff --git a/media-gfx/graphviz/metadata.xml b/media-gfx/graphviz/metadata.xml
new file mode 100644
index 000000000000..73daee8cb67b
--- /dev/null
+++ b/media-gfx/graphviz/metadata.xml
@@ -0,0 +1,49 @@
+<?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>
+ <longdescription>
+graphviz is a set of graph drawing tools for Unix or MS-Windows
+(win32), including a web service interface (webdot). Source code and
+binary executables for common platforms are available. Graph drawing
+addresses the problem of visualizing structural information by
+constructing geometric representations of abstract graphs and networks.
+Automatic generation of graph drawings has important applications in key
+technologies such as database design, software engineering, VLSI and
+network design and visual interfaces in other domains. Situations where
+these tools might be particularly useful include:
+
+ * you would like to restructure a program and first need to
+understand the relationships between its types, procedures, and source
+files.
+ * you need to find the bottlenecks in an Internet backbone - not
+only individual links, but their relationships
+ * you're debugging a protocol or microarchitecture represented as a
+finite state machine and need to figure out how a certain
+ error state arises
+ * you would like to browse a database schema, knowledge base, or
+distributed program represented pictorially
+ * you would like to see an overview of a collection of linked
+documents
+ * you would like to discover patterns and communities of interest in
+a database of telephone calls or e-mail messages
+</longdescription>
+ <use>
+ <flag name="devil">Enables DevIL output plugin -Tdevil</flag>
+ <flag name="gdk-pixbuf">Enables gdk-pixbuf2 plugin</flag>
+ <flag name="gtk">Enables gtk+ output plugin -Tgtk (needs cairo)</flag>
+ <flag name="gts">Enables support for gts</flag>
+ <flag name="lasi">
+ Enables PostScript output via <pkg>media-libs/lasi</pkg>, for
+ plugin -Tlasi (needs cairo)
+ </flag>
+ <flag name="qt4">Builds gvedit front-end</flag>
+ <flag name="X">
+ Builds lefty front-end, builds plugin -Txlib, and enables support
+ for x11 in various other modules (needs cairo)
+ </flag>
+ </use>
+</pkgmetadata>
diff --git a/media-gfx/greycstoration/Manifest b/media-gfx/greycstoration/Manifest
new file mode 100644
index 000000000000..7dc3774fe9fb
--- /dev/null
+++ b/media-gfx/greycstoration/Manifest
@@ -0,0 +1,7 @@
+AUX greycstoration-2.9-gcc6.patch 396 SHA256 2d21af168688d61636926aebf611caf4384e2b5593033a9b220840e9ef42cd65 SHA512 a7d9b02824790d16548ca83278d57906ee55004f01fed5ae2fef4ca2f4a492971caa83cb8bd7ba3639426f087d0c42c290a6c592712dc6180f43cd69f65bd00d WHIRLPOOL cc3ee0c49852eaa6f120dbffc995ecff43d0eb515783fe8279bce420ec238fcd16e2729379a27d76a6c5afae0524e599e25266f158a5cd34fb22267ce6043049
+AUX greycstoration-2.9-libpng14.patch 843 SHA256 8d531bdf7c5bc8bb6ca5a16f23fb8be9eae19af7af7ddd3474458403cb1f1989 SHA512 3fead7452c311467ae6a2f91452243f233cd4c45fc58ffc191ad4a6b151080a9df2cf4994f2cc3b2a6b4980e0142076ac3134d3a76b77f8d94b202daafb1c885 WHIRLPOOL ba1a40b5de9e6f5ebcc6496f7e38d63250981b6d9bada996761afa84accfe28a6ab122f0c7713616ffe6e177abebdb19d6ac0a7be13a8d065a098d9851b795e0
+DIST GREYCstoration-2.9.zip 3639412 SHA256 dfc867bffd38fc204b5fe6a3952d7aa4ac53c2b75aabf45102ed7f6022c1c7be SHA512 f0f90e02087d2670213ed72876105202eab996bb483bed069046c0e01153eb05da91d92f00aa3ed5cc2fecba19f35e20739049c149426453e0e11efd446844ba WHIRLPOOL 667e7411261446d507f26a54d1a95691f81ca878908661ad0c51145a9956b872553b62eeb1937e72fb0d819c97f160af8479c544c9b7b7879afed297daf4f57e
+EBUILD greycstoration-2.9-r2.ebuild 1792 SHA256 17caae4d6c26117bdca1ef28f4bcc2663fa4b040b3daf5cec007e3e5378bf5a4 SHA512 a8c35a0d0528f4a0375726a91adc1acd94d917f9964e6a0024d488a1c8a095e4f4b86cb58561ee3e3309213d521d57be94c6e66fe945e34f179a4c935a3e93b7 WHIRLPOOL 6c47e52f65cf58e69ea8e7d0a29fc1a3e53cef155eade2cdd8696c55a2f9bcc0c086074d177fc2c42e01caea585d95c772e3f335745c8e82d47bc4fca8b7f3fe
+MISC ChangeLog 2244 SHA256 52f55068ec867863c52862a3390769fd64f243369c4242a72ee81b48c6999b75 SHA512 c4d39f19c824edb70431cf680c4725854521c0ecd11d82286117022bfdb5e7f4be2eaa9b5a88b7a60a20b5b28134bd8a3aad903e90d7565b3613068e05622eb6 WHIRLPOOL da7baea20b8fd786b6acee1a24a2169902eea46679a129904f4057b8f2df44c86d6c28931c15e3d239cd79634dad2f848edacb6607fd29b5b2617fea455597b7
+MISC ChangeLog-2015 1572 SHA256 5b9084a21432997e274e7186aaaaa0e25e6ecb51c7872f9676a6e3d20ef67148 SHA512 cc2599d4e8043e533780923f794c01e5455b259210b9eef4f6920e072b2d520d33f7f721a3002feef3ae312ecb545efbea8e97d68e1ebc348724921e0d48afe3 WHIRLPOOL a44cdd47d3d104c372ad2519f81e69b794df516a5ba88fa3fd05206dd1ce8dda040c3f055f7e5c75fd4d6e589b344ef1caaf909455e18abda7cace14fbca7e47
+MISC metadata.xml 332 SHA256 2b11e1250f208dd0be723aa2aa401228df958c9bcedc0ec5ba1acf33e46827c4 SHA512 1e2071791ac7b3c3b911678b83c10fe09b75ecff6c7266b49bb45b115f64df50af33017ce4192df94fa2c3960817bd8e47ecdde6b98e39765e167df3f41ad7b1 WHIRLPOOL 7b8dbeab47baf62376b176d3959d8966ecf2fe1bf698575acd00a47e22763d02f27edde7bdfffba274a1bee68b95545e2007ec818f64b2774c8d2bbb2ee5f1bb
diff --git a/media-gfx/greycstoration/files/greycstoration-2.9-gcc6.patch b/media-gfx/greycstoration/files/greycstoration-2.9-gcc6.patch
new file mode 100644
index 000000000000..5b957c6ece9d
--- /dev/null
+++ b/media-gfx/greycstoration/files/greycstoration-2.9-gcc6.patch
@@ -0,0 +1,11 @@
+--- a/plugins/greycstoration.h 2016-09-22 22:46:42.907946423 -0400
++++ b/plugins/greycstoration.h 2016-09-22 22:49:56.439530308 -0400
+@@ -454,7 +454,7 @@
+ p.temporary = 0;
+ p.counter = 0;
+ p.tile = p.tile_border = p.thread = p.nb_threads = 0;
+- p.stop_request = false;
++ p.stop_request = NULL;
+ greycstoration_mutex_destroy(p);
+ }
+ p.is_running = false;
diff --git a/media-gfx/greycstoration/files/greycstoration-2.9-libpng14.patch b/media-gfx/greycstoration/files/greycstoration-2.9-libpng14.patch
new file mode 100644
index 000000000000..087f20fb8756
--- /dev/null
+++ b/media-gfx/greycstoration/files/greycstoration-2.9-libpng14.patch
@@ -0,0 +1,22 @@
+http://repos.archlinux.org/wsvn/community/greycstoration/trunk/libpng14.patch
+
+--- a/CImg.h
++++ b/CImg.h
+@@ -25671,7 +25671,7 @@
+ png_read_info(png_ptr,info_ptr);
+ png_uint_32 W, H;
+ int bit_depth, color_type, interlace_type;
+- png_get_IHDR(png_ptr,info_ptr,&W,&H,&bit_depth,&color_type,&interlace_type,int_p_NULL,int_p_NULL);
++ png_get_IHDR(png_ptr,info_ptr,&W,&H,&bit_depth,&color_type,&interlace_type,NULL,NULL);
+ int new_bit_depth = bit_depth;
+ int new_color_type = color_type;
+
+@@ -25682,7 +25682,7 @@
+ new_bit_depth = 8;
+ }
+ if (new_color_type == PNG_COLOR_TYPE_GRAY && bit_depth < 8){
+- png_set_gray_1_2_4_to_8(png_ptr);
++ png_set_expand_gray_1_2_4_to_8(png_ptr);
+ new_bit_depth = 8;
+ }
+ if (png_get_valid(png_ptr, info_ptr, PNG_INFO_tRNS))
diff --git a/media-gfx/greycstoration/greycstoration-2.9-r2.ebuild b/media-gfx/greycstoration/greycstoration-2.9-r2.ebuild
new file mode 100644
index 000000000000..393b930c5b28
--- /dev/null
+++ b/media-gfx/greycstoration/greycstoration-2.9-r2.ebuild
@@ -0,0 +1,68 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit toolchain-funcs
+
+DESCRIPTION="Image regularization algorithm for denoising, inpainting and resizing"
+HOMEPAGE="http://www.greyc.ensicaen.fr/~dtschump/greycstoration/"
+SRC_URI="mirror://sourceforge/cimg/GREYCstoration-${PV}.zip"
+
+LICENSE="CeCILL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="fftw imagemagick jpeg lapack png tiff"
+
+RDEPEND="
+ x11-libs/libX11
+ x11-libs/libXext
+ x11-libs/libXrandr
+ fftw? ( >=sci-libs/fftw-3:3.0= )
+ imagemagick? ( media-gfx/imagemagick:0= )
+ jpeg? ( virtual/jpeg:0 )
+ lapack? ( virtual/lapack )
+ png? ( >=media-libs/libpng-1.4:0= )
+ tiff? ( media-libs/tiff:0 )
+"
+DEPEND="${RDEPEND}
+ app-arch/unzip
+ fftw? ( virtual/pkgconfig )
+ lapack? ( virtual/pkgconfig )
+ png? ( virtual/pkgconfig )
+"
+
+S="${WORKDIR}/GREYCstoration-${PV}/src"
+
+PATCHES=(
+ "${FILESDIR}"/${P}-libpng14.patch
+ "${FILESDIR}"/${P}-gcc6.patch
+)
+
+src_prepare() {
+ default
+ sed -i \
+ -e "s:../CImg.h:CImg.h:" \
+ greycstoration.cpp || die
+}
+
+src_compile() {
+ local myconf="-Dcimg_use_xshm -Dcimg_use_xrandr -lX11 -lXext -lXrandr"
+
+ use png && myconf+=" -Dcimg_use_png $($(tc-getPKG_CONFIG) --libs libpng) -lz"
+ use jpeg && myconf+=" -Dcimg_use_jpeg -ljpeg"
+ use tiff && myconf+=" -Dcimg_use_tiff -ltiff"
+ use imagemagick && \
+ myconf+=" -Dcimg_use_magick $(Magick++-config --cppflags) $(Magick++-config --libs)"
+ use fftw && myconf+=" -Dcimg_use_fftw3 $($(tc-getPKG_CONFIG) --libs fftw3)"
+ use lapack && myconf+=" -Dcimg_use_lapack $($(tc-getPKG_CONFIG) --libs lapack)"
+
+ _cmd="$(tc-getCXX) ${LDFLAGS} ${CXXFLAGS} -fno-tree-pre \
+ -o greycstoration greycstoration.cpp \
+ ${myconf} -lm -lpthread"
+ einfo "${_cmd}"
+ eval ${_cmd} || die
+}
+
+src_install() {
+ dobin greycstoration
+}
diff --git a/media-gfx/greycstoration/metadata.xml b/media-gfx/greycstoration/metadata.xml
new file mode 100644
index 000000000000..665279969af4
--- /dev/null
+++ b/media-gfx/greycstoration/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>calchan@gentoo.org</email>
+ <name>Denis Dupeyron</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">cimg</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/media-gfx/grub-splashes/Manifest b/media-gfx/grub-splashes/Manifest
new file mode 100644
index 000000000000..84ababb84536
--- /dev/null
+++ b/media-gfx/grub-splashes/Manifest
@@ -0,0 +1,7 @@
+DIST 49074-natural_gentoo-8.0.tar.gz 278632 SHA256 89c142d782a813af1fa39f1dcf5294a7b6cb12957eebb0c0a33b133b05b595e5 SHA512 49ede8f41139e2b0e88e173ac9157566c71abec567275aa582db81b3455eddeb3c48b61a66a10ff93bd421c9b45527278debd03c1c93040aa74c81356f280870 WHIRLPOOL a305edda530e506aafefa887f241f9c96b396553f653426724c7def0276ba553c1df8827ba3e883bf768036325fa0019a4dcc3d7cb14e0a100f35a7eb0a0ac83
+DIST 98478-gentoo-splash.xpm.gz 18681 SHA256 c5ec10b98bd4d699e2a6e389ebce30c296ec1243efafcd16757116a2b20db2cd SHA512 ea3b6d284e5d41462dede7705a2aa5b6655c1f6aae630cd508dc653391c741cf0a3f487e5694e50769e23696c16279280f89325cfdb47994d8d7210eb447117d WHIRLPOOL 4143f499668aabcad042913effcc8438552bae336a17adf3e4b22c908d66d6d7c85c1f6b7b2a78c1b847d7275b7ce74cef2e361e1007a709a22f19c1ce3e563b
+DIST grub-splashes-0.1.tar.gz 180413 SHA256 a3f8e54e215315b91603300e20e2599e5ffcf34358427fe3417dbdf6b5cf74b5 SHA512 af96ff45778ccf062d26ac1fd0ea9cf47678faf9c0891040580e0563ef5591fc9b2c34d338568b77c0683d7c8814b89ff7d62dec582fb714ae503a86ff6b84be WHIRLPOOL 09c8ca0fb8d8c83b19eeeb42600a8881fd46115b8bb0cf658bfcea2b94db6945c367f9d37d348f6086875c010cfe503a355b74a6fea4b778d95d6251beb1d7c3
+EBUILD grub-splashes-20091109.ebuild 1028 SHA256 8e25267881c277ec910247c95f855280259b2e79cf3f86479918a9f060b651ea SHA512 9c6c813677afd26763b5c254f6b7361c95e93f5e4d77981cb3a4cb31f8f9e06ecaee4d397b6ac45c61de0e3321075ff39387b430f72e2d5aa4c199e1d6ac6d31 WHIRLPOOL 2b487a7bae80239ab9618ecb82b792c313c523da85b13f1edc8aa4ad4484ecd3ec58532498affb352e164bf19e1bd79ef072eb34618f6d4674f7e5550e2ee4ca
+MISC ChangeLog 2670 SHA256 ed2d92fec34a01e9ae6b0c624704eec96af61729f3cdfb4b6745655a1b1eb022 SHA512 9927faa1868a49a90845f83ca149e2454a54f5ff274c22b1896fb2ded05d6d6c61088392f1a5e3f943c3de7279dbf6e88c937e538785b72140d79190c8451a19 WHIRLPOOL 41a0dc0ab4d7f82a4fefb8bb6ed9b61b30bbef6bcadbecea3fe52ab6a9a2ac180470b0ce8a56162fb6f1ce420ed92e6fd608ebe122ea499444477b9ee543f258
+MISC ChangeLog-2015 1537 SHA256 3c85ce8d3398bd89d8742b41abdc55f030ed71d61d5ae3ec54364029a6a646cf SHA512 fd345733344197c404e38ebfef54da947cdfe131aa75e00de097fd77df0bed954f27f27d2cebe6f6cc02aabaf5818506cde5090a2f55542fd0b877b226688ef4 WHIRLPOOL f1768b83640ba7261184dd216ded7ab5d56b4b199dada33b46dcc0555f4d8dfe1e5f6e3f05ed0e06673d1b9753663f82a4a0a9d404f67dbe348628dd9eb54b13
+MISC metadata.xml 374 SHA256 855f38c13b4acdeabc5d4a8dd9dbcc4c39133523b5f5085daadc08ef22aab05b SHA512 3a7bde7a98a32b728bcc93ff3aca84b44649475559bd06845f6f1d0994c681ee91d42c72bceb5db1eb267a951b3101ce593d23ac477c21d4e68f073d0e6ef78a WHIRLPOOL 1b83145b72b0b3a01d0e2a733602245d4112e02c6f29019d20c1afc618308866c15cb7e41aa907a0a7092e93b0da84d5334cbd338e01163d1919eb0b0a3086ff
diff --git a/media-gfx/grub-splashes/grub-splashes-20091109.ebuild b/media-gfx/grub-splashes/grub-splashes-20091109.ebuild
new file mode 100644
index 000000000000..3c80c5241972
--- /dev/null
+++ b/media-gfx/grub-splashes/grub-splashes-20091109.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit mount-boot
+
+DESCRIPTION="Collection of grub splashes"
+HOMEPAGE="https://dev.gentoo.org/~welp/grub-splashes.xml"
+SRC_URI="mirror://gentoo/${PN}-0.1.tar.gz
+ http://www.kde-look.org/CONTENT/content-files/49074-natural_gentoo-8.0.tar.gz
+ http://www.kde-look.org/CONTENT/content-files/98478-gentoo-splash.xpm.gz"
+
+LICENSE="GPL-2 Artistic-2"
+SLOT="0"
+KEYWORDS="amd64 x86 ~x86-fbsd"
+IUSE=""
+
+S="${WORKDIR}"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ cp "${DISTDIR}"/98478-gentoo-splash.xpm.gz gentoo-blue.xpm.gz
+}
+
+src_install() {
+ insinto /boot/grub
+ find . -name '*.xpm.gz' -exec doins {} \;
+}
+
+pkg_postinst() {
+ elog "Please note that this ebuild makes the assumption that you're"
+ elog "using /boot/grub/ for your grub configuration."
+ elog ""
+ elog "To use your new grub splashes edit your /boot/grub/grub.conf"
+ elog "You can see available splash screens by running"
+ elog "\`ls /boot/grub/ | grep xpm\`"
+}
diff --git a/media-gfx/grub-splashes/metadata.xml b/media-gfx/grub-splashes/metadata.xml
new file mode 100644
index 000000000000..3834e3316ab4
--- /dev/null
+++ b/media-gfx/grub-splashes/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>
+<longdescription>
+A collection of grub themes provided and maintained by the Gentoo Artwork project
+</longdescription>
+</pkgmetadata>
diff --git a/media-gfx/gscan2pdf/Manifest b/media-gfx/gscan2pdf/Manifest
new file mode 100644
index 000000000000..683b339533be
--- /dev/null
+++ b/media-gfx/gscan2pdf/Manifest
@@ -0,0 +1,5 @@
+DIST gscan2pdf-1.8.6.tar.xz 402532 SHA256 0674d9f1decc84b0abfa7849a66d0d50fc508cef2b901a3806addb017c4e4645 SHA512 3d33d0666e452b313a8dca91734188ab268e2fae9f0e259cd2142661a61697302bba5d602ee7395c1ffd7c87e0c52b422f9201a2b70f5211246aed359ff4092c WHIRLPOOL 59ed68feaff638f24add40f1c931ca3bfe476e26edf9c40ce0fd22c21b7a0aa43711c205362506fae0a4b5c4bbab95edfc0c35f9c56e4f70c3c7d3ea80d231a9
+DIST gscan2pdf-1.8.7.tar.xz 403676 SHA256 91ac65d3a331109bcb4995e3a379991cb50815dab7f8e3fe68e055bbc271f78a SHA512 990338c9dd9bdd5685a40792803b3077e27296c5a3363471e55d3297a815e1c344bc94e3430981764531fb02380d7d7b1c253dda5e9e65e86e632ae8371ca72d WHIRLPOOL 2a1eb67942efb7ad703560a228d3a0cfe09081e30b688c68d2a7621a5ccfce73ae7711db1d6b02b9b57462ed0d94c7ff2a16da8ebd7a25beac08098077346768
+EBUILD gscan2pdf-1.8.6.ebuild 1670 SHA256 03dbd33510b056ac48912da6cb3f18c75b5c730479b692c95b9bd707d262dc65 SHA512 a67f54ab33bfc53571e4a87be08e9a561c731360fed7737baf13ec2696ad3b4a15b149e9be165742dc25b2829995f7e36bc0cdce58fdfba0e590f45a89779ceb WHIRLPOOL 16dab5a48dce34088b7230d27a447050a3eb6b1eb0cec789106efebf29e85ed8ef2641bde02a8efb48ba9eb9a6e4899e9f9a980043b26b0c4863e0890525f9e4
+EBUILD gscan2pdf-1.8.7.ebuild 1733 SHA256 4dd0e4ba6d019e7e1a320ff90aa717a94dc30fb14f4bf62e86063f88d81374cc SHA512 046288f89b95875f7acb9150a6f9099ad25d17e4dfd68cbaaeb5c147352fcee2ebe306bbf58e3dba3873eb2ace0d62eef97c445b75efd4abef469d29d49d742d WHIRLPOOL 5df92c7c6507cd8d1f493ac23f9b773a7c698bb74bb3baa09c9b9525f34dc91b21089a3a5d86ffdc373aec68a31d676a838a6750b7a32087f8cdb72a18a941b6
+MISC metadata.xml 439 SHA256 fe0ce730516bb9a9d15b43abd2b150e5a37a55dd46fa74b16779cc7dd86c2e27 SHA512 af1cc05ac693899586df81036d2fa11af187edbb3c9449862298ba05efd0dbd0c4c5b008a1a21328c1f9a27a690671bd7a9967d2e457efb31561044e45984401 WHIRLPOOL 622d34572b44041a0763005814401166ac60342e4173987249dd5da9a442a7b0ca36713e59317821097066ee4e78921bfde26af33a4097c42396721bef62ff3a
diff --git a/media-gfx/gscan2pdf/gscan2pdf-1.8.6.ebuild b/media-gfx/gscan2pdf/gscan2pdf-1.8.6.ebuild
new file mode 100644
index 000000000000..ef4bdc2f70b7
--- /dev/null
+++ b/media-gfx/gscan2pdf/gscan2pdf-1.8.6.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit eutils perl-module
+
+DESCRIPTION="Scan documents, perform OCR, produce PDFs and DjVus"
+HOMEPAGE="http://gscan2pdf.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.xz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+# OCR tests fail with tesseract[opencl], not fixed by addpredict
+# and others on Wayland and the console
+RESTRICT="test"
+
+RDEPEND="
+ dev-perl/Config-General
+ dev-perl/Date-Calc
+ dev-perl/Data-UUID
+ dev-perl/Filesys-Df
+ dev-perl/glib-perl
+ dev-perl/Goo-Canvas
+ dev-perl/Gtk2-Ex-PodViewer
+ dev-perl/Gtk2-Ex-Simple-List
+ dev-perl/Gtk2-ImageView
+ dev-perl/Gtk2
+ dev-perl/HTML-Parser
+ dev-perl/Image-Sane
+ dev-perl/Locale-gettext
+ dev-perl/List-MoreUtils
+ dev-perl/Log-Log4perl
+ dev-perl/PDF-API2
+ dev-perl/Proc-ProcessTable
+ dev-perl/Readonly
+ dev-perl/Set-IntSpan
+ dev-perl/Try-Tiny
+ virtual/perl-Archive-Tar
+ virtual/perl-Carp
+ virtual/perl-Data-Dumper
+ virtual/perl-File-Temp
+ virtual/perl-Getopt-Long
+ virtual/perl-threads
+ virtual/perl-threads-shared
+ media-gfx/gtkimageview
+ media-gfx/imagemagick[png,tiff,perl]
+ media-gfx/sane-backends
+ media-libs/tiff"
+
+mydoc="History"
+
+pkg_postinst() {
+ optfeature "DjVu file support" "app-text/djvu[tiff] media-gfx/imagemagick[djvu]"
+ optfeature "creating PostScript files from PDFs" app-text/ghostscript-gpl
+ optfeature "Optical Character Recognition" app-text/tesseract[osd,tiff]
+ optfeature "scan post-processing" app-text/unpaper
+ optfeature "automatic document feeder support" media-gfx/sane-frontends
+ optfeature "sending PDFs as email attachments" x11-misc/xdg-utils
+}
diff --git a/media-gfx/gscan2pdf/gscan2pdf-1.8.7.ebuild b/media-gfx/gscan2pdf/gscan2pdf-1.8.7.ebuild
new file mode 100644
index 000000000000..00f29f30d45d
--- /dev/null
+++ b/media-gfx/gscan2pdf/gscan2pdf-1.8.7.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit eutils perl-module
+
+DESCRIPTION="Scan documents, perform OCR, produce PDFs and DjVus"
+HOMEPAGE="http://gscan2pdf.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.xz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+# OCR tests fail with tesseract[opencl], not fixed by addpredict
+# and others on Wayland and the console
+RESTRICT="test"
+
+RDEPEND="
+ dev-perl/Config-General
+ dev-perl/Date-Calc
+ dev-perl/Data-UUID
+ dev-perl/Filesys-Df
+ dev-perl/glib-perl
+ dev-perl/Goo-Canvas
+ dev-perl/Gtk2-Ex-PodViewer
+ dev-perl/Gtk2-Ex-Simple-List
+ dev-perl/Gtk2-ImageView
+ dev-perl/Gtk2
+ dev-perl/HTML-Parser
+ dev-perl/Image-Sane
+ dev-perl/Locale-gettext
+ dev-perl/List-MoreUtils
+ dev-perl/Log-Log4perl
+ dev-perl/PDF-API2
+ dev-perl/Proc-ProcessTable
+ dev-perl/Readonly
+ dev-perl/Set-IntSpan
+ dev-perl/Try-Tiny
+ virtual/perl-Archive-Tar
+ virtual/perl-Carp
+ virtual/perl-Data-Dumper
+ virtual/perl-File-Temp
+ virtual/perl-Getopt-Long
+ virtual/perl-threads
+ virtual/perl-threads-shared
+ media-gfx/gtkimageview
+ media-gfx/imagemagick[png,tiff,perl]
+ media-gfx/sane-backends
+ media-libs/tiff"
+
+mydoc="History"
+
+pkg_postinst() {
+ optfeature "DjVu file support" "app-text/djvu[tiff] media-gfx/imagemagick[djvu]"
+ optfeature "creating PostScript files from PDFs" app-text/poppler[utils]
+ optfeature "adding to an existing PDF" app-text/poppler[utils]
+ optfeature "Optical Character Recognition" app-text/tesseract[osd,tiff]
+ optfeature "scan post-processing" app-text/unpaper
+ optfeature "automatic document feeder support" media-gfx/sane-frontends
+ optfeature "sending PDFs as email attachments" x11-misc/xdg-utils
+}
diff --git a/media-gfx/gscan2pdf/metadata.xml b/media-gfx/gscan2pdf/metadata.xml
new file mode 100644
index 000000000000..79c9ea23cc9f
--- /dev/null
+++ b/media-gfx/gscan2pdf/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>aklhfex@gmail.com</email>
+ <name>Chris Mayo</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">gscan2pdf</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/media-gfx/gthumb/Manifest b/media-gfx/gthumb/Manifest
new file mode 100644
index 000000000000..37f50f8b2c33
--- /dev/null
+++ b/media-gfx/gthumb/Manifest
@@ -0,0 +1,7 @@
+DIST gthumb-3.4.4.1.tar.xz 3420356 SHA256 4dc63bb1cc1f139259bba7f9fd1735182f16ba37254119a9f9c3e13a898a9533 SHA512 e70eb1d27af3fa9320d556f56c2b283d26115eb145188811e4ece5b9599f2abb21c95be40b33c88defef9d4678ba84faa5a1c988240e532c8c055ff30c054c00 WHIRLPOOL a4b702a493e0b622731d5ecca1f437fec4f924576e78476c6460e159f3f052b287838573bbf1eeb0af485e4e97db7d3dc799e0524e55571d36e9f4a0fb92ab2a
+DIST gthumb-3.4.5.tar.xz 3391492 SHA256 816fc63ba9cfc397ea8c9a4d21870051813aa4d97383f3d3ae74cb3ea8235746 SHA512 a709e9af9626578a6121fc6d60aa8ec2ee9f1758e9078f2e77498cbfc28cd0f1c8631aeb5c9312496b344ff889f4545935871409af5e3cd625c9a62df5d22d85 WHIRLPOOL ee5b9d4e379e3c0ef56c3e1fe19d5e231f768ac02fb5ff5d28f15707ec137ea704d87dec8630763cf4a2b75fc0a08466a06a8d08b262e4e139830ca2a3da9719
+EBUILD gthumb-3.4.4.1.ebuild 2354 SHA256 b0b9392cafb5c71b3bfae20358271809bcc613ff891836c45d6d56602bb2bb4c SHA512 e345bb36baf53b509a3ea879c71ae668df28adcc1e695cb939ee933848c1379dc4dcac4b6086afc3a7cfd94ab868917eb85e4ecfb2687c9f9475ab1a2923f79e WHIRLPOOL de88f9b78da598afbe29689ccad4a446862429fa8ecb830eb868d2880891c5095d465923908a8ea4f09f6b2a968c745aba581ce9f3cceac3cb502f044de7f48a
+EBUILD gthumb-3.4.5.ebuild 2291 SHA256 12cd36c46d440447018dc506831d990ede9da1091e26c1162ad239e6a219659e SHA512 dd98e2667a400bfa05c02247f1fd78764ccabeaf19951801f0b4567a2b1bb31ddaf0af614c9a622972915f711bf5e2372f3408892e2ca661481984cea436d6a5 WHIRLPOOL a89190b8c745f19ae3e3b0e43169ff75837ed1f0e3e86d3689ba9b4be21043bafcdab35c41ee38a3a7b5d96127c90b6f45bdfe0a697064b18e68fd1f51833856
+MISC ChangeLog 4460 SHA256 964608c1a761bee22f8fc7a1246db69e529ae02f33e6325c37434b06f4678b89 SHA512 b017e91f43f1cdd3db18ea84df14ff2c4d9f054d70d93bf57c9ca7906cc8b1e982d45edbb75c1329f87300c5f1340a5f2acd0231309ff43c75f4cb22efd5e689 WHIRLPOOL 1cb5c1132c6e78b0af96d2f27c71ed05c078ecc6dbb500c149e08c3fc6c1babd8cab19b757d9426f4709353ebe341d4a7faee5ebb53d520e00b79125212db2f6
+MISC ChangeLog-2015 27345 SHA256 0e4765938d4bf473c1e4d9b0107f406b79f30e732c8c20240b38454d7ae4d5a6 SHA512 a00c04321c2217e469d4b6ea473307b2450158a0eab23d13e17f84cd28a977f85dfce4721316ce40df7ee82f125e9e373e9f461853525f3ce120c192cc59220a WHIRLPOOL 67e60b9799cbe59967d6652ad4fb81cbdc7372dabc0db09a2e76f8a58c2e2f8faf18a9d0d45d20ed51c7d727a8596249bffe349382232195355516bae32c90ae
+MISC metadata.xml 556 SHA256 6588f8411e37bfb0964d354d38bf449179e9c90ad995b2674f745ea49ebb3c7f SHA512 93979d481efa334ef94d23abc755ac4a333d327154c110da091d213a73f0c4d0ab216e73af0085b0842af7a782c25e4d69e4b9bd76fffc610272c043f37bad4b WHIRLPOOL f3234cd00233f3ebe79d2860470f69af4dc5157db95f403205863b791acd18c5a95c287034660e3a23f7925a673391618f5a0a8d6eec4eee0b6c078eb7a87148
diff --git a/media-gfx/gthumb/gthumb-3.4.4.1.ebuild b/media-gfx/gthumb/gthumb-3.4.4.1.ebuild
new file mode 100644
index 000000000000..e4519b944ea0
--- /dev/null
+++ b/media-gfx/gthumb/gthumb-3.4.4.1.ebuild
@@ -0,0 +1,90 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+GNOME2_LA_PUNT="yes"
+
+inherit gnome2
+
+DESCRIPTION="Image viewer and browser for Gnome"
+HOMEPAGE="https://wiki.gnome.org/Apps/gthumb"
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="amd64 ~arm ~ppc ~ppc64 x86 ~amd64-linux ~x86-linux ~x86-solaris"
+IUSE="cdr debug exif gnome-keyring gstreamer http jpeg json lcms raw slideshow svg tiff test webkit webp"
+
+COMMON_DEPEND="
+ >=dev-libs/glib-2.36.0:2[dbus]
+ >=x11-libs/gtk+-3.10.0:3
+
+ media-libs/libpng:0=
+ sys-libs/zlib
+ x11-libs/libICE
+ x11-libs/libSM
+
+ cdr? ( >=app-cdr/brasero-3.2 )
+ exif? ( >=media-gfx/exiv2-0.21:= )
+ gnome-keyring? ( >=app-crypt/libsecret-0.11 )
+ gstreamer? (
+ media-libs/gstreamer:1.0
+ media-libs/gst-plugins-base:1.0 )
+ http? ( >=net-libs/libsoup-2.42.0:2.4 )
+ jpeg? ( virtual/jpeg:0= )
+ json? ( >=dev-libs/json-glib-0.15.0 )
+ lcms? ( >=media-libs/lcms-2.6:2 )
+ slideshow? (
+ >=media-libs/clutter-1.12.0:1.0
+ >=media-libs/clutter-gtk-1:1.0 )
+ svg? ( >=gnome-base/librsvg-2.34:2 )
+ tiff? ( media-libs/tiff:= )
+ raw? ( >=media-libs/libraw-0.14:= )
+ !raw? ( media-gfx/dcraw )
+ webkit? ( net-libs/webkit-gtk:4 )
+ webp? ( >=media-libs/libwebp-0.2.0 )
+"
+RDEPEND="${COMMON_DEPEND}
+ >=gnome-base/gsettings-desktop-schemas-0.1.4
+"
+DEPEND="${COMMON_DEPEND}
+ app-text/yelp-tools
+ >=dev-util/intltool-0.35
+ sys-devel/bison
+ sys-devel/flex
+ virtual/pkgconfig
+ test? ( ~app-text/docbook-xml-dtd-4.1.2 )
+"
+# eautoreconf needs:
+# gnome-base/gnome-common
+
+src_prepare() {
+ # Remove unwanted CFLAGS added with USE=debug
+ sed -e 's/CFLAGS="$CFLAGS -g -O0 -DDEBUG"//' \
+ -i configure.ac -i configure || die
+
+ gnome2_src_prepare
+}
+
+src_configure() {
+ # Upstream says in configure help that libchamplain support
+ # crashes frequently
+ gnome2_src_configure \
+ --disable-static \
+ --disable-libchamplain \
+ $(use_enable cdr libbrasero) \
+ $(use_enable debug) \
+ $(use_enable exif exiv2) \
+ $(use_enable gnome-keyring libsecret) \
+ $(use_enable gstreamer) \
+ $(use_enable http libsoup) \
+ $(use_enable jpeg) \
+ $(use_enable json libjson-glib) \
+ $(use_enable lcms lcms2) \
+ $(use_enable raw libraw) \
+ $(use_enable slideshow clutter) \
+ $(use_enable svg librsvg) \
+ $(use_enable test test-suite) \
+ $(use_enable tiff) \
+ $(use_enable webkit webkit2) \
+ $(use_enable webp libwebp)
+}
diff --git a/media-gfx/gthumb/gthumb-3.4.5.ebuild b/media-gfx/gthumb/gthumb-3.4.5.ebuild
new file mode 100644
index 000000000000..bbdc812b369a
--- /dev/null
+++ b/media-gfx/gthumb/gthumb-3.4.5.ebuild
@@ -0,0 +1,85 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+GNOME2_LA_PUNT="yes"
+
+inherit gnome2
+
+DESCRIPTION="Image viewer and browser for Gnome"
+HOMEPAGE="https://wiki.gnome.org/Apps/gthumb"
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~x86-solaris"
+IUSE="cdr debug exif gnome-keyring gstreamer http jpeg json lcms raw slideshow svg tiff test webkit webp"
+
+RDEPEND="
+ >=dev-libs/glib-2.36.0:2[dbus]
+ >=x11-libs/gtk+-3.10.0:3
+ exif? ( >=media-gfx/exiv2-0.21:= )
+ slideshow? (
+ >=media-libs/clutter-1.12.0:1.0
+ >=media-libs/clutter-gtk-1:1.0 )
+ gstreamer? (
+ media-libs/gstreamer:1.0
+ media-libs/gst-plugins-base:1.0 )
+ raw? ( >=media-libs/libraw-0.14:= )
+ http? ( >=net-libs/libsoup-2.42.0:2.4 )
+ gnome-keyring? ( >=app-crypt/libsecret-0.11 )
+ cdr? ( >=app-cdr/brasero-3.2 )
+ svg? ( >=gnome-base/librsvg-2.34:2 )
+ webp? ( >=media-libs/libwebp-0.2.0 )
+ json? ( >=dev-libs/json-glib-0.15.0 )
+ webkit? ( >=net-libs/webkit-gtk-1.10.0:4 )
+ lcms? ( >=media-libs/lcms-2.6:2 )
+
+ media-libs/libpng:0=
+ sys-libs/zlib
+ >=gnome-base/gsettings-desktop-schemas-0.1.4
+ jpeg? ( virtual/jpeg:0= )
+ tiff? ( media-libs/tiff:= )
+ !raw? ( media-gfx/dcraw )
+"
+DEPEND="${RDEPEND}
+ app-text/yelp-tools
+ >=dev-util/intltool-0.35
+ sys-devel/bison
+ sys-devel/flex
+ virtual/pkgconfig
+ test? ( ~app-text/docbook-xml-dtd-4.1.2 )
+"
+# eautoreconf needs:
+# gnome-base/gnome-common
+
+src_prepare() {
+ # Remove unwanted CFLAGS added with USE=debug
+ sed -e 's/CFLAGS="$CFLAGS -g -O0 -DDEBUG"//' \
+ -i configure.ac -i configure || die
+
+ gnome2_src_prepare
+}
+
+src_configure() {
+ # Upstream says in configure help that libchamplain support
+ # crashes frequently
+ gnome2_src_configure \
+ --disable-static \
+ --disable-libchamplain \
+ $(use_enable cdr libbrasero) \
+ $(use_enable debug) \
+ $(use_enable exif exiv2) \
+ $(use_enable gnome-keyring libsecret) \
+ $(use_enable gstreamer) \
+ $(use_enable http libsoup) \
+ $(use_enable jpeg) \
+ $(use_enable json libjson-glib) \
+ $(use_enable lcms lcms2) \
+ $(use_enable raw libraw) \
+ $(use_enable slideshow clutter) \
+ $(use_enable svg librsvg) \
+ $(use_enable test test-suite) \
+ $(use_enable tiff) \
+ $(use_enable webkit webkit2) \
+ $(use_enable webp libwebp)
+}
diff --git a/media-gfx/gthumb/metadata.xml b/media-gfx/gthumb/metadata.xml
new file mode 100644
index 000000000000..13064f965256
--- /dev/null
+++ b/media-gfx/gthumb/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>gnome@gentoo.org</email>
+ <name>Gentoo GNOME Desktop</name>
+ </maintainer>
+ <use>
+ <flag name="http">Enable webservice integration through <pkg>net-libs/libsoup</pkg></flag>
+ <flag name="json">Compile code that uses the libjson-glib library</flag>
+ <flag name="slideshow">Enable slideshow plugin</flag>
+ <flag name="webp">Enable support for webp image format</flag>
+ </use>
+</pkgmetadata>
diff --git a/media-gfx/gtkam/Manifest b/media-gfx/gtkam/Manifest
new file mode 100644
index 000000000000..b1cd4ae1162c
--- /dev/null
+++ b/media-gfx/gtkam/Manifest
@@ -0,0 +1,6 @@
+AUX gtkam-0.1.18-desktop-validation.patch 536 SHA256 7ddb8b5369bfaba237b269fd17d82b6ae2ef4519f74381b7ac9c3c718b6b6ea3 SHA512 2b6cf0e5c680debb3b724e6fa1afffafce05d2f2bbf022d51157b958ad6d7f71b4027c8ec29ae1115c30bc8091c53173fea40211b494afbccd9cf97cc209f0a8 WHIRLPOOL 88c050bf531e9b6c073697e84afa8d3bbebcaaf3dc1408ad96b169887b79638d3479c356657ea7a1fa470d65f4a43eacfaac2fe01dd84233ddb8b6a2b027f299
+DIST gtkam-1.0.tar.bz2 908986 SHA256 ab7f50d4654d129cd8b386658249b05ea739a446f08026c7352b829c63382c3d SHA512 3b2b8aa5114237dc6fd5d6727e9ae76e88afa3257d0f18d790cc706b737c0a1002b86559621b3357629f9a7fb4d8f321c46f9eec83c7aa27998acb0f48904f7c WHIRLPOOL 9310abc8308337225945a8cdfc947a610f669470e96b865264d3950cfa774e8c242fb7361abd2c4c5e87b83bb1d3a2bdc27065146472da8accb5799efd22a73d
+EBUILD gtkam-1.0.ebuild 944 SHA256 f95678a859d6beb1cfe452da32b43f4b967f5733db450c959412feeb3ed31544 SHA512 94b699f89877e1eb8ae5513e47ac01060adc3a30b2123b0f96b1ec7c69df6d997397b7fe9e1c294943ffbb5991d93f1a56f335006b362f100276060ae8473c0d WHIRLPOOL bd99e45bc96de5401116a313400306e690fe8e821b89506028e986170aa167e451f5e2088365686b56833987ff58468aaafd44c625691e381e1349b44d767468
+MISC ChangeLog 3428 SHA256 f05fa63540fa2a56afba8222c2257b8653374e183e8f478c26fea30e4f41703c SHA512 bc7dd7c61c00009f0958a99ab8cae190b9eb0b7739054c9802f9ce6ea7a48810ffacb049a2eb7295dbff976abee79b50c936cb91fb17fce43b455fdab2fe2fb7 WHIRLPOOL be58690b5e5192d15d67cdbb55b71fdc26db72b9d8210f0cbbafbcf83364f6e4ffd97e9f256d35d3b53144144f3759eca0d5da5d6ba26c27b0e6a71883e6538a
+MISC ChangeLog-2015 12230 SHA256 043939f7d2c8af20605a98fa6275fa5148f0fb174336da73770e9e6509d2745b SHA512 1790ed886ce2658a5f39455a8e2a75ddd0a52638be2a190669f8a8e6b9bd5aa9dca7ab07f960993cd539b26a3efae8b52ed492b3d09b97fcb8572d2433932258 WHIRLPOOL c8ccb8a17dd1ec47e4bdd517f8065279619723493f9387f10a3fe0c19acfb3eb0ef321e32b3de818e71c4f3469350a6ce07326eee11ff4f8484bb700d11316f6
+MISC metadata.xml 449 SHA256 9e3d5c2509e7e36290a192a72f04825f111c9cceaf386756aa544c5094226e1a SHA512 f938819a203e0119b1d81aa1dc812717d6ef02c3012f8ed667db452c7712bb7b142cee36d519ec33f4cf65ebcba7a660e2f67f6b66087ec6be832a4987e10c53 WHIRLPOOL d61f1a2cafc04238d88764b8a3202744de7536cd6b29232a96547920bf852220961ff0436757ab4087fbae05d5efea22703a0282d5585043df1d1d1f232a0b84
diff --git a/media-gfx/gtkam/files/gtkam-0.1.18-desktop-validation.patch b/media-gfx/gtkam/files/gtkam-0.1.18-desktop-validation.patch
new file mode 100644
index 000000000000..c9d6ae6989cf
--- /dev/null
+++ b/media-gfx/gtkam/files/gtkam-0.1.18-desktop-validation.patch
@@ -0,0 +1,15 @@
+--- a/gtkam.desktop.in~ 2011-05-26 09:57:43.000000000 +0200
++++ b/gtkam.desktop.in 2012-01-31 10:00:56.687216188 +0100
+@@ -1,11 +1,10 @@
+ [Desktop Entry]
+-Encoding=UTF-8
+ _Name=Gtkam Digital Camera Browser
+ _Comment=Browse and download images from an attached digital camera
+ Exec=gtkam
+ Icon=gtkam-camera
+ Terminal=false
+ Type=Application
+-Categories=GNOME;GTK;Photography;Graphics;RasterGraphics;Viewer;
++Categories=GNOME;GTK;Photography;Graphics;2DGraphics;RasterGraphics;Viewer;
+ StartupNotify=true
+ X-GNOME-DocPath=gtkam/gtkam.xml
diff --git a/media-gfx/gtkam/gtkam-1.0.ebuild b/media-gfx/gtkam/gtkam-1.0.ebuild
new file mode 100644
index 000000000000..c5029ddcfd60
--- /dev/null
+++ b/media-gfx/gtkam/gtkam-1.0.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit gnome2
+
+DESCRIPTION="A frontend for gPhoto 2"
+HOMEPAGE="http://gphoto.org/proj/gtkam"
+SRC_URI="mirror://sourceforge/gphoto/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha amd64 ~ppc ~sparc x86"
+IUSE="gimp nls"
+
+RDEPEND="
+ x11-libs/gtk+:2
+ >=media-libs/libgphoto2-2.5.0
+ >=media-libs/libexif-0.3.2
+ media-libs/libexif-gtk
+ gimp? ( >=media-gfx/gimp-2 )
+"
+DEPEND="${RDEPEND}
+ >=dev-util/intltool-0.40
+ virtual/pkgconfig
+ nls? ( >=sys-devel/gettext-0.14.1 )
+"
+
+PATCHES=(
+ # Fix .desktop validity, bug #271569
+ "${FILESDIR}/${PN}-0.1.18-desktop-validation.patch"
+)
+
+src_configure() {
+ gnome2_src_configure \
+ --without-bonobo \
+ --without-gnome \
+ $(use_with gimp) \
+ $(use_enable nls) \
+ --with-rpmbuild=/bin/false
+}
+
+src_install() {
+ gnome2_src_install
+ rm -rf "${ED}"/usr/share/doc/gtkam || die "rm failed"
+}
diff --git a/media-gfx/gtkam/metadata.xml b/media-gfx/gtkam/metadata.xml
new file mode 100644
index 000000000000..842fcbe7e761
--- /dev/null
+++ b/media-gfx/gtkam/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>gnome@gentoo.org</email>
+ <name>Gentoo GNOME Desktop</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>graphics@gentoo.org</email>
+ <name>Gentoo Graphics Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">gphoto</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/media-gfx/gtkimageview/Manifest b/media-gfx/gtkimageview/Manifest
new file mode 100644
index 000000000000..54311c914a25
--- /dev/null
+++ b/media-gfx/gtkimageview/Manifest
@@ -0,0 +1,5 @@
+DIST gtkimageview-1.6.4.tar.gz 1158138 SHA256 4c681d38d127ee3950a29bce9aa7aa8a2abe3b4d915f7a0c88e526999c1a46f2 SHA512 6378c640006e73aa1ffbf92eb9d4e42570707bc159f0a657b11f027d328088f5e89fc334de170de5ab1a39bed588b0b76f4633688a894cb7def16f1dea9f8e39 WHIRLPOOL b623aad67b2cc3c2f6ed9bb61bf62fe75095ec3119cd0c2abd87de4d79a1d9a855f0a224e49e14f884f12a32270145233eb83f43847577b02cc536ce6212e24b
+EBUILD gtkimageview-1.6.4.ebuild 1233 SHA256 fcae571070e27f6109b7bc2c82dd1f3723e4c8ab6f0236f6e795172b6d5613b6 SHA512 e6d9c1938faa96d5bbd712da9376382c21c66742040c77baed0cd237bb5f85f52038256665f13a52efed153f362e74ecbb7092d2bb1940b799db1264d2db2273 WHIRLPOOL 4390f847683b3032d1183dc0de9b3b7a14ed60b2ce858e97f64b125f07bd5c2f9ed6cb79b1a1dc6af16a498b23c2e3eed39c038643a2d278e076b88618450e80
+MISC ChangeLog 2688 SHA256 4aee037152500def9e27f599d4a8886c46b24d345ef5b551da7587a5730e8db7 SHA512 62442614fddb2c4c09ce37377132e733e8e69d345b2f1d40647c7979d7de6d055761e0572bbfb1059d6c6a5b1597978a58095124c8226286dcbc88eeb50faa83 WHIRLPOOL b2fd6d2c17cf335fa03c3cb6d9cf5b47264642bdf387475e5f8582f2208f5fbd83bc09c765a884b4e5a70bc43fbc039874c3986b30307bbdf50c788bfcd506e6
+MISC ChangeLog-2015 3697 SHA256 a9e1b9469a322e02889aff2ba5666227512fc9166ba137ec0994d73915dfea31 SHA512 b9021d339728cad63891ba97dbe6dfc11ab5f377b74b2ecceb96b2a5087c3de29cd69744efe3c5069084d58edd6fca72ac78989444d474268a6fdaaf072a4678 WHIRLPOOL a1ee4cdaf5046c837ff3e226259154fd30b937c49670b7380d253eeca664eade1af7ea7ed06e5c13ec621c71d04f9ee74fc718bd60d6f49846c267ebf61ede49
+MISC metadata.xml 259 SHA256 2caf73387680548983b5ebbd5db6bffbfaab184fa3242d42bb1386e2cc4fe604 SHA512 6744883613ae3b83c57ec9604c5f31717ab714b4f3e7f4f680e4b9e54f622f8e5f753b3cd666862f0e3e6dc4223aee87b89aba472d9f20e1b317595e06aeae30 WHIRLPOOL 87955f0841a0da62f06108f592e31dc2d16cc6b9581afee9eb0098c85bbb539c24e8082ed5fd659158721d3c241ffbf15b2c186a33fa29f76a4b18b9fb0b6d7a
diff --git a/media-gfx/gtkimageview/gtkimageview-1.6.4.ebuild b/media-gfx/gtkimageview/gtkimageview-1.6.4.ebuild
new file mode 100644
index 000000000000..f3789f949bf4
--- /dev/null
+++ b/media-gfx/gtkimageview/gtkimageview-1.6.4.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+GNOME2_LA_PUNT="yes"
+
+inherit autotools gnome2
+
+DESCRIPTION="A simple image viewer widget for GTK"
+HOMEPAGE="https://projects.gnome.org/gtkimageview/"
+SRC_URI="mirror://gentoo/${P}.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ppc ppc64 sh sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~x64-solaris ~x86-solaris"
+IUSE="examples static-libs"
+
+# tests are severely broken, bug #483952
+RESTRICT="test"
+
+RDEPEND="x11-libs/gtk+:2"
+DEPEND="${RDEPEND}
+ gnome-base/gnome-common
+ dev-util/gtk-doc-am
+"
+
+src_prepare() {
+ gnome2_src_prepare
+
+ # Prevent excessive build failures due to gcc changes
+ sed -e '/CFLAGS/s/-Werror //g' -i configure.in || die
+
+ # Gold linker fix
+ sed -e '/libtest.la/s:$: -lm:g' -i tests/Makefile.am || die
+
+ # Don't rebuild gtk-doc
+ sed "/^TARGET_DIR/i \GTKDOC_REBASE=true" -i gtk-doc.make || die
+
+ mv configure.in configure.ac || die
+ AT_NOELIBTOOLIZE=yes eautoreconf
+}
+
+src_configure() {
+ gnome2_src_configure \
+ $(use_enable static-libs static)
+}
+
+src_install() {
+ gnome2_src_install
+ if use examples ; then
+ docinto examples
+ dodoc tests/ex-*.c
+ fi
+}
diff --git a/media-gfx/gtkimageview/metadata.xml b/media-gfx/gtkimageview/metadata.xml
new file mode 100644
index 000000000000..899a49093b0d
--- /dev/null
+++ b/media-gfx/gtkimageview/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 type="project">
+ <email>graphics@gentoo.org</email>
+ <name>Gentoo Graphics Project</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/media-gfx/hp2xx/Manifest b/media-gfx/hp2xx/Manifest
new file mode 100644
index 000000000000..bfc40a6a78e9
--- /dev/null
+++ b/media-gfx/hp2xx/Manifest
@@ -0,0 +1,8 @@
+AUX hp2xx-3.4.4-docbuild.patch 474 SHA256 a7abbdc8b1dc4b15734eadb64e256999e5e17e1488794a444ccef23c25402598 SHA512 48e103f3f6d71f31fa4734a500d173afa33564eebe56ded5edf42c30b6a6c52b22f7742293661328bf26111e4b7fa68c6f47fec7e9ab387d49551b49147ebc70 WHIRLPOOL 62addb152b6cdf349fecec17e6292c7aa5719bd1239ac76f5775569f108d00016349485e6f84fa93d81641d83c7847c202a95a02dd4ca6dcb3bfd80d547b706d
+AUX hp2xx-3.4.4-r1.patch 3824 SHA256 a4b4a81f113bde0436546f37b19ebb61e5c78f8eb45d148f61309bce217fb23d SHA512 49a98dc29f820bf43550bec589045e81eaaed991681625bce1a192fee967e28663f053503644663cdb0e57709ba67000dc7f6922054a4ec3969f1555a63df0a3 WHIRLPOOL 8a6229f211ea7ce13a4a841fb6ddaf1ca0d03d57d2b751c2f8f8e3ac1d13197826fba3037df7eea6f9a430dcbf0ba05cb0b8d1e73db3373422ad242360ec27b9
+DIST hp2xx-3.4.4.tar.gz 610330 SHA256 47b72fb386a189b52f07e31e424c038954c4e0ce405803841bed742bab488817 SHA512 ccfe4a23ca482471506e59d6d459ce3ed56d9d775613e3238bd82d11cf4ea0595bf57ff95b3bd22a674865ec7f07dc63c1bcf0deb2a430b7ae241734c7e57ccd WHIRLPOOL ee3415eadaef3065239859de414d78f6619feef9e70c80a53fc835b52a2acb476645d7040880d2ab480cd92b53f002f58da7a6774bc436a5bfe587acc6b38f00
+EBUILD hp2xx-3.4.4-r1.ebuild 1608 SHA256 3078b17d676c34f19015b871f3d623e887d2f7e00c10d5c5a6fd77852fe5a763 SHA512 564dc7efb794a295afda77d82dded7b2c82c3f76ef072ac74ea739b7b84f9fcff5c42923daa1075f9ee57bce11d96f79dfd8cf256c8174bbbc19dbe82abd10ac WHIRLPOOL 99ccd9aa03eb69a792cb5091af24a61ff265d8f2f91ca7c79d0d160a5751cd70c489a1994535a60657ffb2fb7c4a0c3284886ceb6c2caf8d92bc30752c367c81
+EBUILD hp2xx-3.4.4.ebuild 852 SHA256 2b3b5c1376cbf806e948d1f56de6c55b0ec873f03a4fc6f884869426af25292c SHA512 0fb2ca8a2f88889878acef6fb6e4f11063383a07802e4ed657f3179fd8d6638d231b1534f225077a42d0e4f34b47298ff9e3e89af1e73fc62c1b00fc25ed1e3f WHIRLPOOL e2731cb74147076039628b7611829a498b326dc03def8f01285aad1a25732e9dcb18f5d1f6036bfbf84cfab78f7623cfdc1b95cd7a12b498be7593bd221c5aef
+MISC ChangeLog 2719 SHA256 6c6c4a68d4ce4b790154b46e9363ffdde0588decbb288600fe969966d22096d3 SHA512 413977f9a536b068bf7aa250f00d4fc7a64f8adb5162a65b60a73b787e29ca643664bac68012e1c0711232e7e35d53cb5822876c4bbf900d2e456184148bffcb WHIRLPOOL c34dd888bc1007d533d20da828e3cee2ad9e0ab98afb211bda862655fcb78ec37d2918d4dc01208b5d82f00d2836c6ac0359afa592dbdd60f794982fc36cb5a8
+MISC ChangeLog-2015 914 SHA256 1811824973ef014ca7f7921c5e66d51bc834086d86b08458a3d9959156cc5998 SHA512 fa089ba22a2d5ad16540cac8344fcd9facd1908bdce09631a1ff3a6887f7ff9dd39fc9f46a930cd381a5bd5498c1f1a252f52147bf03c7fe681847bb04f25be1 WHIRLPOOL 983ef86c0a6c3f83e12faaa514c33097b51bb51ecf37610634a03aaf7b5c28af718ddaf60fbb26c7565f9f1cb3af542508cc2f52b7c670c8518bc47e12565729
+MISC metadata.xml 496 SHA256 54af2f31b59e3b2d68e23dd30ebac69fa17eab31e75a18fe16dfbc41350e579e SHA512 301342c36942f65692c763b055abacd9d927760a9fab3640713d39983a69c49fc2adf321f2fa03ff2229970515b0ae2dc6ac87c34e3fe24a81840944d2d2fbf2 WHIRLPOOL 9023351d2cb02b79d402c2ba69c3a503e6a1a27bb45eca9cc89dd3823fd2cc7eb10a5b33aab0baed112af988822989a220a5082939802da38ce254acfc9be1d6
diff --git a/media-gfx/hp2xx/files/hp2xx-3.4.4-docbuild.patch b/media-gfx/hp2xx/files/hp2xx-3.4.4-docbuild.patch
new file mode 100644
index 000000000000..4245eea61254
--- /dev/null
+++ b/media-gfx/hp2xx/files/hp2xx-3.4.4-docbuild.patch
@@ -0,0 +1,14 @@
+https://bugs.gentoo.org/attachment.cgi?id=399898
+Only first hunk preserved.
+diff -ruN hp2xx-3.4.4-r0/doc/hp2xxinf.tex hp2xx-3.4.4-r3/doc/hp2xxinf.tex
+--- hp2xx-3.4.4-r0/doc/hp2xxinf.tex 2003-06-21 17:41:16.000000000 +0200
++++ hp2xx-3.4.4-r3/doc/hp2xxinf.tex 2015-03-27 20:36:32.000000000 +0100
+@@ -92,7 +92,7 @@
+ @page
+ @tex
+ {\parskip=0pt
+-\hfill mk\@daveg.com\par
++\hfill mk@@daveg.com\par
+ \hfill {\it Using HP2XX}, \manvers\par
+ \hfill \TeX{}info \texinfoversion\par
+ }
diff --git a/media-gfx/hp2xx/files/hp2xx-3.4.4-r1.patch b/media-gfx/hp2xx/files/hp2xx-3.4.4-r1.patch
new file mode 100644
index 000000000000..9bff4f43b922
--- /dev/null
+++ b/media-gfx/hp2xx/files/hp2xx-3.4.4-r1.patch
@@ -0,0 +1,137 @@
+diff -ruN hp2xx-3.4.4.orig/makes/generic.mak hp2xx-3.4.4/makes/generic.mak
+--- hp2xx-3.4.4.orig/makes/generic.mak 2003-06-21 17:16:35.000000000 +0200
++++ hp2xx-3.4.4/makes/generic.mak 2012-02-07 22:30:29.000000000 +0100
+@@ -30,11 +30,11 @@
+ CP = cp
+ MKINFO = makeinfo
+ RMCMD = rm -f
+-STRIP = strip
++STRIP = true
+
+ # Installation sites (GNU conventions):
+ #
+-prefix = /usr/local
++prefix = /usr
+ bindir = $(prefix)/bin
+ includedir = $(prefix)/include
+ mandir = $(prefix)/man
+@@ -44,10 +44,10 @@
+ # CC and CFLAGS set for gcc, but any ANSI-C compiler should work.
+ # For non-gcc compilers, simply set CFLAGS = -O (to start with)
+ #
+-CC = gcc
+-CFLAGS = -O2 -Wall -finline-functions
++#CC = gcc
++#CFLAGS = -O2 -Wall -finline-functions
+
+-LFLAGS = # only sometimes needed; see below for examples
++LFLAGS = $(LDFLAGS) # only sometimes needed; see below for examples
+ CPPFLAGS = -I. # only sometimes needed; see below for examples
+ BINDCMD = # only needed for EMX and DJGPP DOS extenders
+
+@@ -62,7 +62,7 @@
+ #
+ DEFINES = -DUNIX -DHAS_UNIX_X11
+ PREVIEWER = to_x11
+-ALL_LIBS = -lX11 -lm # Maybe -lX instead of -lX11 is needed?
++ALL_LIBS = -L/usr/X11R6/lib/ -lX11 -lm # Maybe -lX instead of -lX11 is needed?
+ #
+ # Generic UNIX, no previewer
+ #
+@@ -195,31 +195,41 @@
+ EX_SRC =
+ EX_OBJ =
+ EX_DEFS =
++EX_LIBS = -lz
+ #
+ # PNG support (requires -lpng and -lz on the ALL_LIBS line)
+-#EX_SRC = png.c to_png.c
+-#EX_OBJ = png.o to_png.o
+-#EX_DEFS= -DPNG
++EX_SRC += png.c to_png.c
++EX_OBJ += png.o to_png.o
++EX_DEFS += -DPNG
++EX_LIBS += -lpng
+ #
+ # TIFF support (requires -ltiff and possibly -lz on the ALL_LIBS line)
+-#EX_SRC = to_tif.c
+-#EX_OBJ = to_tif.o
+-#EX_DEFS = -DTIF
++EX_SRC += to_tif.c
++EX_OBJ += to_tif.o
++EX_DEFS += -DTIF
++EX_LIBS += -ltiff
+ #
+ # JPEG support (requires -ljpeg)
+-#EX_SRC = to_jpg.c
+-#EX_OBJ = to_jpg.o
+-#EX_DEFS = -DJPG
++EX_SRC += to_jpg.c
++EX_OBJ += to_jpg.o
++EX_DEFS += -DJPG
++EX_LIBS += -ljpeg
+ #
+ # PDF support (requires -lpdf)
+-#EX_SRC = to_pdf.c
+-#EX_OBJ = to_pdf.o
+-#EX_DEFS = -DUSEPDF
++#EX_SRC += to_pdf.c
++#EX_OBJ += to_pdf.o
++#EX_DEFS += -DUSEPDF
++#EX_LIBS += -lpdf
+ #
+ # Include extras:
+-# EX_SRC = to_pic.c to_pac.c
+-# EX_OBJ = to_pic.o to_pac.o
+-# EX_DEFS = -DPIC_PAC
++EX_SRC += to_pic.c to_pac.c
++EX_OBJ += to_pic.o to_pac.o
++EX_DEFS += -DPIC_PAC
++#
++# Epson Esc/P2 support
++EX_SRC += to_escp2.c
++EX_OBJ += to_escp2.o
++EX_DEFS += -DEPSON
+ #
+ #############################################################################
+ # No user-serviceable parts below!
+@@ -245,8 +255,8 @@
+ PROGRAM = hp2xx
+
+ default:
+- @echo "This makefile needs manual configuration! Edit it now!
+- @echo "After configuration, you may use the following commands:
++ @echo "This makefile needs manual configuration! Edit it now!"
++ @echo "After configuration, you may use the following commands:"
+ @echo ""
+ @echo "make all Compile everything"
+ @echo "make check Run a color application in preview mode"
+@@ -267,7 +277,7 @@
+ #########################################################################
+
+ all: $(OBJS)
+- $(CC) $(LFLAGS) $(OBJS) $(ALL_LIBS) -o $(PROGRAM)
++ $(CC) $(LFLAGS) $(OBJS) $(ALL_LIBS) $(EX_LIBS) -o $(PROGRAM)
+ $(BINDCMD)
+
+
+diff -ruN hp2xx-3.4.4.orig/sources/png.c hp2xx-3.4.4/sources/png.c
+--- hp2xx-3.4.4.orig/sources/png.c 2003-06-21 17:31:51.000000000 +0200
++++ hp2xx-3.4.4/sources/png.c 2012-02-07 22:26:33.000000000 +0100
+@@ -5,6 +5,7 @@
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include "to_png.h"
++#include <zlib.h>
+ #include <png.h>
+
+ #define PDNCOL 256
+@@ -36,7 +37,7 @@
+ }
+
+ /* set up error handlimg for libpng */
+- if (setjmp(png_ptr->jmpbuf)) {
++ if (setjmp(png_jmpbuf(png_ptr))) {
+ png_destroy_write_struct(&png_ptr, &info_ptr);
+ return;
+ }
diff --git a/media-gfx/hp2xx/hp2xx-3.4.4-r1.ebuild b/media-gfx/hp2xx/hp2xx-3.4.4-r1.ebuild
new file mode 100644
index 000000000000..81f8977412f5
--- /dev/null
+++ b/media-gfx/hp2xx/hp2xx-3.4.4-r1.ebuild
@@ -0,0 +1,69 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+
+inherit eutils base
+
+DESCRIPTION="Versatile tool to convert Hewlett-Packard's HP-GL plotter language into other graphics formats"
+HOMEPAGE="https://www.gnu.org/software/hp2xx/"
+SRC_URI="mirror://gnu/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86 ~amd64"
+IUSE="X jpeg png tiff"
+
+RDEPEND="
+ png? ( media-libs/libpng sys-libs/zlib )
+ tiff? ( media-libs/tiff )
+ jpeg? ( virtual/jpeg )
+ X? ( x11-libs/libX11 )"
+DEPEND="${RDEPEND}
+ sys-apps/texinfo"
+
+PATCHES=( "${FILESDIR}"/${P}-r1.patch
+ "${FILESDIR}"/${P}-docbuild.patch )
+
+src_prepare() {
+ base_src_prepare
+ cp -v makes/generic.mak sources/Makefile || die
+}
+
+src_compile() {
+ cd "${S}/sources" || die
+ export PREVIEWER="no_prev"
+ export EX_SRC=
+ export EX_OBJ=
+ export EX_DEFS=-DUNIX
+ export ALL_LIBS=-lm
+ use X && \
+ PREVIEWER="to_x11" \
+ EX_DEFS="-DHAS_UNIX_X11" \
+ ALL_LIBS="${ALL_LIBS} -lX11"
+ use jpeg && \
+ EX_SRC="${EX_SRC} to_jpg.c" \
+ EX_OBJ="${EX_OBJ} to_jpg.o" \
+ EX_DEFS="${EX_DEFS} -DJPG" \
+ ALL_LIBS="${ALL_LIBS} -ljpeg"
+ use png && \
+ EX_SRC="${EX_SRC} png.c to_png.c" \
+ EX_OBJ="${EX_OBJ} png.o to_png.o" \
+ EX_DEFS="${EX_DEFS} -DPNG" \
+ ALL_LIBS="${ALL_LIBS} -lpng"
+ use tiff && \
+ EX_SRC="${EX_SRC} to_tif.c" \
+ EX_OBJ="${EX_OBJ} to_tif.o" \
+ EX_DEFS="${EX_DEFS} -DTIF" \
+ ALL_LIBS="${ALL_LIBS} -ltiff"
+ emake all
+}
+
+src_install() {
+ dodir /usr/bin /usr/share/info /usr/share/man/man1
+
+ make prefix="${D}/usr" \
+ mandir="${D}/usr/share/man" \
+ infodir="${D}/usr/share/info" \
+ install || die
+}
diff --git a/media-gfx/hp2xx/hp2xx-3.4.4.ebuild b/media-gfx/hp2xx/hp2xx-3.4.4.ebuild
new file mode 100644
index 000000000000..387ff013c002
--- /dev/null
+++ b/media-gfx/hp2xx/hp2xx-3.4.4.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+
+inherit eutils base
+
+DESCRIPTION="Versatile tool to convert Hewlett-Packard's HP-GL plotter language into other graphics formats"
+HOMEPAGE="https://www.gnu.org/software/hp2xx/"
+SRC_URI="mirror://gnu/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86 ~amd64"
+IUSE=""
+
+DEPEND="
+ media-libs/libpng
+ media-libs/tiff
+ sys-libs/zlib
+ virtual/jpeg
+"
+RDEPEND="${DEPEND}"
+
+PATCHES=( "${FILESDIR}/${P}-r1.patch" )
+
+src_prepare() {
+ base_src_prepare
+ cp -v makes/generic.mak sources/Makefile || die
+}
+
+src_compile() {
+ cd "${S}/sources" || die
+ emake all
+}
+
+src_install() {
+ dodir /usr/bin /usr/share/info /usr/share/man/man1
+
+ make prefix="${D}/usr" \
+ mandir="${D}/usr/share/man" \
+ infodir="${D}/usr/share/info" \
+ install || die
+}
diff --git a/media-gfx/hp2xx/metadata.xml b/media-gfx/hp2xx/metadata.xml
new file mode 100644
index 000000000000..06c031cac403
--- /dev/null
+++ b/media-gfx/hp2xx/metadata.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>konstantin@muenning.com</email>
+ <name>Konstantin Münning</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>printing@gentoo.org</email>
+ <name>Gentoo Printing Project</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+ </maintainer>
+ </pkgmetadata>
diff --git a/media-gfx/hugin/Manifest b/media-gfx/hugin/Manifest
new file mode 100644
index 000000000000..f632e8a56811
--- /dev/null
+++ b/media-gfx/hugin/Manifest
@@ -0,0 +1,8 @@
+DIST hugin-2016.2.0.tar.bz2 10386216 SHA256 54ab1bc8dd94d83c02bfd4082c4454b3b33f0fa56bc17b45cf3e89be87691f15 SHA512 9c652e685d0135afef6418bdf5fce39cec8ef1ec0dbe3a325151957c91495db0a2a3171ee04a28955a638493913c1bc800a90c37347ad17612584646c8a65510 WHIRLPOOL 4a61d4aa9d9362b03a04cdff192247c3d71b1e10bac5495165b870e47de2d66890c5895e94a56059df21be8c072600f7c6b18f66584979d40b755fcc1d8a9a64
+DIST hugin-2017.0.tar.bz2 9803272 SHA256 86646ea27f32b959d38e7d36270703214b1ae961e379dd64b14d027139cd4609 SHA512 bfd39135119fddb559ecec220da36a4c15d96bda7f93e738d8815aafca94685ba879239202e2cc81c87787188ee3b1b6dc5cbe8014aa12e2f95d654591dc1969 WHIRLPOOL 72978ca95f4f0aa17dda68beec925521969e39d000da9d00b014923a53387280b74571b4874f1dc506abceb2019dca7a2f2aba3e9128bdd9490f962f452296f8
+EBUILD hugin-2016.2.0.ebuild 1936 SHA256 b3d4ffd5934c7474de9ee6853367b93da4e5b0adc1367daad217ec507e47d3ec SHA512 454c46fd7baa9adc344e489dd6187137578fa3efb77574ebdad692a0e4f062f31a2182d087b35168140ab456e843fbf9fed8e74612661c24bf7c586eb23ee527 WHIRLPOOL a9b772eefc7d4462d7f21a7793d957d94e3e1a2cf3056e6295a1e9bea82be73c2f22796cbd17a60bc9840c98193d9c20e7a576d1e606fb84abf59fbedfe85db8
+EBUILD hugin-2017.0.ebuild 1911 SHA256 c4f6275edc49f8db1a3d169eb4e252bf774c847a644eadb59bf94506f5e82b9c SHA512 1ed1eae05bd56d17a0611f193522b94948430db6345a1afdca703afd9ddda5e76607e767f15e788f517311e9b01f5f80525a30d6655d977d1e293d9e6880730e WHIRLPOOL de82bfff2a25d8118020e642f9ff2bd640b47d08a669f28006569d01760a33433554725e79674f5f44e41eadc6f8fe2451fb32c5fc8be590f0af011eeaf12f46
+EBUILD hugin-9999.ebuild 1966 SHA256 14848d86c6cc8fd9dd2b913308803464566a0cb9ebec0f8de15a8023c0de1067 SHA512 4078ea6e87847b07304d91767bcc8d50982609156ca82680cfec7085d327a8bec906e2987adc5b7eb7adfb7103ddac63f1315abb2e537de33f6f0f6b59d819c2 WHIRLPOOL 1861877205afe24a287d24171e50c1d95110f6ac68232b468faf20b09c83d0a42b521b99c434352e9c27e78cbadba0887594971b6ff85b53280afdf409dfe89f
+MISC ChangeLog 5939 SHA256 ca23a3584c3a00215318477829bea1970015993db60b91af9ba68140bf720e55 SHA512 97876023dd9809347b362740267a3b1bcf602be43f89127837d3939f3c5a31049ca7b8450283c1d61ab97d438c2efba866deee6919b83fbb5833b13800b9f5da WHIRLPOOL f261fcf2de2b2de3f0c05782a2bf2072d148af0e15df2f26aaa0e2a3c4279e406f4b0883cbbc63e48c6cfd4743f6cd737bf122e78bb1e165b7b26ecad08e606b
+MISC ChangeLog-2015 26668 SHA256 c6a0e422399c178801148fb90b01f6583bd61f5081e0f2cd91f43c9801eaf6ac SHA512 7786e63d3293c37110d55a7fbfa483da82635120cf4792a2f0e35cc41e9d53e8e6851867fcfe0627e7089029e06ddd2ff3066d617bc672e4129de8d173733cdf WHIRLPOOL ce79892ccf5f4941ce711b6490aab265ad544d01b8563ee5dffeebd79f55867fc57bda03d74ecc8741b70bbb0e638fa04de1f1a19069bef090d71328bfa4db87
+MISC metadata.xml 536 SHA256 a2bb194594830de80874b2b3d92676d3cef71bbc88c74e51d58e146053d01fec SHA512 43c6f8e931cfcc90ff2fbb79ec5c6b3045a571add719515cd98900e45a3d1f5c6139ca0ca1076c2b919bc28cd6317bc2a840dc4a54ee491c501d08703fdea8e4 WHIRLPOOL d49b19de63fea15dbef5eea75b70d9186966dd87b555043229e6b55d9976ed3494eb970957c56efe45c3f9feb8f716bf486d0cfd277869ed42dae7c0ff1411ef
diff --git a/media-gfx/hugin/hugin-2016.2.0.ebuild b/media-gfx/hugin/hugin-2016.2.0.ebuild
new file mode 100644
index 000000000000..d20586db4628
--- /dev/null
+++ b/media-gfx/hugin/hugin-2016.2.0.ebuild
@@ -0,0 +1,87 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+WX_GTK_VER="3.0"
+PYTHON_COMPAT=( python{2_7,3_4,3_5} )
+
+inherit python-single-r1 wxwidgets versionator cmake-utils
+
+DESCRIPTION="GUI for the creation & processing of panoramic images"
+HOMEPAGE="http://hugin.sf.net"
+SRC_URI="mirror://sourceforge/${PN}/${P/_/-}.tar.bz2"
+
+LICENSE="GPL-2 SIFT"
+SLOT="0"
+KEYWORDS="amd64 ~ppc x86"
+
+LANGS=" ca ca-valencia cs da de en-GB es eu fi fr hu it ja nl pl pt-BR ro ru sk sv zh-CN zh-TW"
+IUSE="debug lapack python sift $(echo ${LANGS//\ /\ l10n_})"
+
+CDEPEND="
+ !!dev-util/cocom
+ dev-db/sqlite:3
+ dev-libs/boost:=
+ dev-libs/zthread
+ >=media-gfx/enblend-4.0
+ media-gfx/exiv2:=
+ media-libs/freeglut
+ media-libs/glew:=
+ >=media-libs/libpano13-2.9.19_beta1:0=
+ media-libs/libpng:0=
+ media-libs/openexr:=
+ media-libs/tiff:0
+ >=media-libs/vigra-1.9.0[openexr]
+ sci-libs/fftw:3.0=
+ sys-libs/zlib
+ virtual/glu
+ virtual/jpeg:0
+ virtual/opengl
+ x11-libs/wxGTK:3.0=[X,opengl]
+ lapack? ( virtual/blas virtual/lapack )
+ python? ( ${PYTHON_DEPS} )
+ sift? ( media-gfx/autopano-sift-C )"
+RDEPEND="${CDEPEND}
+ media-libs/exiftool"
+DEPEND="${CDEPEND}
+ dev-cpp/tclap
+ sys-devel/gettext
+ virtual/pkgconfig
+ python? ( >=dev-lang/swig-2.0.4 )"
+
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
+
+DOCS=( authors.txt README TODO )
+
+S=${WORKDIR}/${PN}-$(get_version_component_range 1-3)
+
+pkg_setup() {
+ use python && python-single-r1_pkg_setup
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DBUILD_HSI=$(usex python)
+ -DENABLE_LAPACK=$(usex lapack)
+ )
+ cmake-utils_src_configure
+}
+
+src_install() {
+ cmake-utils_src_install
+ use python && python_optimize
+
+ local lang
+ for lang in ${LANGS} ; do
+ case ${lang} in
+ ca) dir=ca_ES;;
+ ca-valencia) dir=ca_ES@valencia;;
+ cs) dir=cs_CZ;;
+ *) dir=${lang/-/_};;
+ esac
+ if ! use l10n_${lang} ; then
+ rm -r "${ED%/}"/usr/share/locale/${dir} || die
+ fi
+ done
+}
diff --git a/media-gfx/hugin/hugin-2017.0.ebuild b/media-gfx/hugin/hugin-2017.0.ebuild
new file mode 100644
index 000000000000..ec84702f5856
--- /dev/null
+++ b/media-gfx/hugin/hugin-2017.0.ebuild
@@ -0,0 +1,87 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+WX_GTK_VER="3.0"
+PYTHON_COMPAT=( python{2_7,3_4,3_5} )
+
+inherit python-single-r1 wxwidgets versionator cmake-utils
+
+DESCRIPTION="GUI for the creation & processing of panoramic images"
+HOMEPAGE="http://hugin.sf.net"
+SRC_URI="mirror://sourceforge/${PN}/${P/_/}.tar.bz2"
+
+LICENSE="GPL-2 SIFT"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+
+LANGS=" ca ca-valencia cs da de en-GB es eu fi fr hu it ja nl pl pt-BR ro ru sk sv zh-CN zh-TW"
+IUSE="debug lapack python sift $(echo ${LANGS//\ /\ l10n_})"
+
+CDEPEND="
+ !!dev-util/cocom
+ dev-db/sqlite:3
+ dev-libs/boost:=
+ dev-libs/zthread
+ >=media-gfx/enblend-4.0
+ media-gfx/exiv2:=
+ media-libs/freeglut
+ media-libs/glew:=
+ >=media-libs/libpano13-2.9.19_beta1:0=
+ media-libs/libpng:0=
+ media-libs/openexr:=
+ media-libs/tiff:0
+ >=media-libs/vigra-1.9.0[openexr]
+ sci-libs/fftw:3.0=
+ sys-libs/zlib
+ virtual/glu
+ virtual/jpeg:0
+ virtual/opengl
+ x11-libs/wxGTK:3.0=[X,opengl]
+ lapack? ( virtual/blas virtual/lapack )
+ python? ( ${PYTHON_DEPS} )
+ sift? ( media-gfx/autopano-sift-C )"
+RDEPEND="${CDEPEND}
+ media-libs/exiftool"
+DEPEND="${CDEPEND}
+ dev-cpp/tclap
+ sys-devel/gettext
+ virtual/pkgconfig
+ python? ( >=dev-lang/swig-2.0.4 )"
+
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
+
+DOCS=( authors.txt README TODO )
+
+S=${WORKDIR}/${PN}-2017.0.0
+
+pkg_setup() {
+ use python && python-single-r1_pkg_setup
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DBUILD_HSI=$(usex python)
+ -DENABLE_LAPACK=$(usex lapack)
+ )
+ cmake-utils_src_configure
+}
+
+src_install() {
+ cmake-utils_src_install
+ use python && python_optimize
+
+ local lang
+ for lang in ${LANGS} ; do
+ case ${lang} in
+ ca) dir=ca_ES;;
+ ca-valencia) dir=ca_ES@valencia;;
+ cs) dir=cs_CZ;;
+ *) dir=${lang/-/_};;
+ esac
+ if ! use l10n_${lang} ; then
+ rm -r "${ED%/}"/usr/share/locale/${dir} || die
+ fi
+ done
+}
diff --git a/media-gfx/hugin/hugin-9999.ebuild b/media-gfx/hugin/hugin-9999.ebuild
new file mode 100644
index 000000000000..c71b0cdc559c
--- /dev/null
+++ b/media-gfx/hugin/hugin-9999.ebuild
@@ -0,0 +1,89 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+WX_GTK_VER="3.0"
+PYTHON_COMPAT=( python{2_7,3_4,3_5} )
+
+inherit mercurial python-single-r1 wxwidgets versionator cmake-utils
+
+DESCRIPTION="GUI for the creation & processing of panoramic images"
+HOMEPAGE="http://hugin.sf.net"
+SRC_URI=""
+EHG_REPO_URI="http://hg.code.sf.net/p/hugin/hugin"
+EHG_PROJECT="${PN}-${PN}"
+
+LICENSE="GPL-2 SIFT"
+SLOT="0"
+KEYWORDS=""
+
+LANGS=" ca ca-valencia cs da de en-GB es eu fi fr hu it ja nl pl pt-BR ro ru sk sv zh-CN zh-TW"
+IUSE="debug lapack python sift $(echo ${LANGS//\ /\ l10n_})"
+
+CDEPEND="
+ !!dev-util/cocom
+ dev-db/sqlite:3
+ dev-libs/boost:=
+ dev-libs/zthread
+ >=media-gfx/enblend-4.0
+ media-gfx/exiv2:=
+ media-libs/freeglut
+ media-libs/glew:=
+ >=media-libs/libpano13-2.9.19_beta1:0=
+ media-libs/libpng:0=
+ media-libs/openexr:=
+ media-libs/tiff:0
+ >=media-libs/vigra-1.9.0[openexr]
+ sci-libs/fftw:3.0=
+ sys-libs/zlib
+ virtual/glu
+ virtual/jpeg:0
+ virtual/opengl
+ x11-libs/wxGTK:3.0=[X,opengl]
+ lapack? ( virtual/blas virtual/lapack )
+ python? ( ${PYTHON_DEPS} )
+ sift? ( media-gfx/autopano-sift-C )"
+RDEPEND="${CDEPEND}
+ media-libs/exiftool"
+DEPEND="${CDEPEND}
+ dev-cpp/tclap
+ sys-devel/gettext
+ virtual/pkgconfig
+ python? ( >=dev-lang/swig-2.0.4 )"
+
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
+
+DOCS=( authors.txt README TODO )
+
+S=${WORKDIR}/${PN}-$(get_version_component_range 1-3)
+
+pkg_setup() {
+ use python && python-single-r1_pkg_setup
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DBUILD_HSI=$(usex python)
+ -DENABLE_LAPACK=$(usex lapack)
+ )
+ cmake-utils_src_configure
+}
+
+src_install() {
+ cmake-utils_src_install
+ use python && python_optimize
+
+ local lang
+ for lang in ${LANGS} ; do
+ case ${lang} in
+ ca) dir=ca_ES;;
+ ca-valencia) dir=ca_ES@valencia;;
+ cs) dir=cs_CZ;;
+ *) dir=${lang/-/_};;
+ esac
+ if ! use l10n_${lang} ; then
+ rm -r "${ED%/}"/usr/share/locale/${dir} || die
+ fi
+ done
+}
diff --git a/media-gfx/hugin/metadata.xml b/media-gfx/hugin/metadata.xml
new file mode 100644
index 000000000000..48424f55e336
--- /dev/null
+++ b/media-gfx/hugin/metadata.xml
@@ -0,0 +1,16 @@
+<?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>
+ <longdescription>hugin is a panorama stitching program</longdescription>
+ <use>
+ <flag name="sift">automatically align images with
+ <pkg>media-gfx/autopano-sift-C</pkg></flag>
+ </use>
+ <upstream>
+ <remote-id type="sourceforge">hugin</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/media-gfx/icc_examin/Manifest b/media-gfx/icc_examin/Manifest
new file mode 100644
index 000000000000..8b35e56de25b
--- /dev/null
+++ b/media-gfx/icc_examin/Manifest
@@ -0,0 +1,7 @@
+AUX icc_examin-0.55-fix-xrandr-test.patch 896 SHA256 1b8e840dd1e4f9183e8a2110af6413c3a4aeebc926bfdf4f586c315ef67bab05 SHA512 a7226ece057eb4ef215852a99437efc57f8173021dffc82e1e7f480832a4cd8fb5f8a76a0eedf450dca42b1346c9871e63b83d24e02c43ae8721c403e85b2379 WHIRLPOOL 8d11b3e9ba57a85b67f699ca2d901a39dd637e7be7c67c42ef3768c39c022f39705e89c652c25e0192225fb2ab8c2c3414bc2806dfa8dc165421a741a6d778c5
+DIST icc_examin-0.55.tar.gz 692711 SHA256 6a6036e4724845368c2ade86c3d29e9cf0e09801f704d02f45ed2b2481924bab SHA512 503d932890c747b9111167df360e9deedd985a4cd434610a6c0de42d4d36ff22907c1441485731349661ddab85d39268fcfc69c035601c1066ec9b63566f491a WHIRLPOOL b6014338eb79e3ac2bdbbb7e4f817a49cca0d34e6dc3b10fe74f6bc4cc1c85d57d7b76d53574aebdcb7dff599a1f0ade1f809006ada01977361d59a64ca8d413
+EBUILD icc_examin-0.55-r1.ebuild 976 SHA256 995cff1cb94c465e28f04c6bf14429f84ab76858aa77cf16bd3c00fb7003d302 SHA512 ce29066e0b6d7d91486de60dc3f09495924e4b090d7d60020b0e7cc75f2cce4e5e037a16ec198df18f9e5dad6d4e0cfa21bf66d47410f02b1aed6dd0f003b6d6 WHIRLPOOL 9df97471442c8b0e2f03cf2cc19f9b663d5a648115545c94a58c97b2c70b7782b12e718619312ea3a5f394a4f52fe5ce9e7dfcf92a75c328168a1be19124cf69
+EBUILD icc_examin-9999.ebuild 921 SHA256 f76cb47ac872189f02bebff881686d4003ecec34e0ec194d707bd0f4d75729cb SHA512 2f04f522df9bf49bbd8d676fadf9d5414ef94f9396591efa8eb425f270c1d51110b80036a759afbc7bd20a35a7d36a102e866a232078109e92c23bd6643898cd WHIRLPOOL d7f87cb4242753acf067f5a0ff1612a12f75f735305401aaaa04745c420572084df810b3aeb5a33ecb87ec357b3b9da5c8628f22e32f45f368c523bef99414e8
+MISC ChangeLog 3200 SHA256 f6c0aead1cf65cb3e260a517e7bfaf2e7776945ce54aed6a0ab9fd2f50f113e4 SHA512 1b911e869e7c1c59eace132e2a67491c911da8f79b5ef1b0c45e41f513038ca7429ad69749f996666c40083b19fc85166d32b715e9fa8c8bb3eb719add7d8c93 WHIRLPOOL 35f21a77e9893bbe286718c17f4cc67fcc492397d92c30e8fd57ea852922e8fd37681bd64f9f43f8e81fed1bb5c31610222f04d9f913092a29d32c847260d183
+MISC ChangeLog-2015 1796 SHA256 0bc367d031970d60d3c0b0cdb5be9ef821880e395ed48d66ae0a744f82db5755 SHA512 8ab752449e672fa12661b15e2faa661dc86f75462fdfb9cbde53f007657acd1c0ad0c4c5d141ece2a206f8a6fedd13c0824ae4ca3338e10575bd233eaaa189fe WHIRLPOOL f4c5e6604b60f4aac5df7c6a3709ddfbf10d0ac809cf2d7a499ad069d13aea333e0ccbdbe787d15abae3f16b4c81c70ac263641780ccf3c060e72cc06a1f7961
+MISC metadata.xml 382 SHA256 32192873b2fe6313f1382602937b93d69869936bf5de03c3ea88278d281a6333 SHA512 7a5dc10551b676b47699b1a41a1016528efd794de47216fbf68eea9645cb4db32179eacf87fb4b986308b9a64c0cfd36406ed8326859e5247c8f9eb6083be8be WHIRLPOOL 47ac441ea4d3cfe460c4a71981980ba2c9cc670ece3ea47efedfe5a0852af154c739123839a2dbb523cca52dfb338bc93f12edda93bb54cdc16da45728bc3649
diff --git a/media-gfx/icc_examin/files/icc_examin-0.55-fix-xrandr-test.patch b/media-gfx/icc_examin/files/icc_examin-0.55-fix-xrandr-test.patch
new file mode 100644
index 000000000000..b9acf4c2d049
--- /dev/null
+++ b/media-gfx/icc_examin/files/icc_examin-0.55-fix-xrandr-test.patch
@@ -0,0 +1,25 @@
+Upstream as https://sourceforge.net/p/oyranos/patches/6/
+
+Michael Weber
+
+--- icc_examin-0.55/configure_tests.sh
++++ icc_examin-0.55/configure_tests.sh
+@@ -689,7 +689,8 @@
+ if [ -z "$found" ]; then
+ pkg-config --atleast-version=1.2 $pc_package
+ if [ $? = 0 ]; then
+- found=`pkg-config --cflags $pc_package`
++ found="yes"
++ cflags=`pkg-config --cflags $pc_package`
+ version=`pkg-config --modversion $pc_package`
+ fi
+ fi
+@@ -703,7 +704,7 @@
+ if [ -n "$MAKEFILE_DIR" ]; then
+ for i in $MAKEFILE_DIR; do
+ test -f "$ROOT_DIR/$i/makefile".in && echo "XRANDR = 1" >> "$i/makefile"
+- test -f "$ROOT_DIR/$i/makefile".in && echo "XRANDR_INC = $found" >> "$i/makefile"
++ test -f "$ROOT_DIR/$i/makefile".in && echo "XRANDR_INC = $cflags" >> "$i/makefile"
+ done
+ fi
+ elif [ $OSUNAME = "Linux" ]; then
diff --git a/media-gfx/icc_examin/icc_examin-0.55-r1.ebuild b/media-gfx/icc_examin/icc_examin-0.55-r1.ebuild
new file mode 100644
index 000000000000..bceddcfdbc66
--- /dev/null
+++ b/media-gfx/icc_examin/icc_examin-0.55-r1.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit eutils toolchain-funcs
+
+DESCRIPTION="Viewer for ICC and CGATS profiles, argylls gamut vrml visualisations and GPU gamma tables"
+HOMEPAGE="http://www.oyranos.org/wiki/index.php?title=ICC_Examin"
+SRC_URI="https://github.com/oyranos-cms/${PN/_/-}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="app-admin/elektra
+ media-libs/ftgl
+ media-libs/libXcm
+ =media-libs/oyranos-0.9.5*
+ media-libs/tiff:0
+ x11-libs/fltk
+ x11-libs/libX11
+ x11-libs/libXinerama
+ x11-libs/libXpm
+ x11-libs/libXrandr
+ x11-libs/libXxf86vm"
+
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+S=${WORKDIR}/${P/_/-}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-0.55-fix-xrandr-test.patch
+
+ sed -e '/xdg-icon-resource\|xdg-desktop-menu/d' \
+ -i makefile.in
+}
+
+src_configure() {
+ tc-export CC CXX
+ econf --enable-verbose \
+ --disable-static
+}
diff --git a/media-gfx/icc_examin/icc_examin-9999.ebuild b/media-gfx/icc_examin/icc_examin-9999.ebuild
new file mode 100644
index 000000000000..045fa7a82065
--- /dev/null
+++ b/media-gfx/icc_examin/icc_examin-9999.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit eutils toolchain-funcs git-r3
+
+DESCRIPTION="Viewer for ICC and CGATS profiles, argylls gamut vrml visualisations and GPU gamma tables"
+HOMEPAGE="http://www.oyranos.org/wiki/index.php?title=ICC_Examin"
+EGIT_REPO_URI="https://github.com/oyranos-cms/${PN/_/-}.git"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS=""
+IUSE=""
+
+RDEPEND="app-admin/elektra
+ media-libs/ftgl
+ media-libs/libXcm
+ =media-libs/oyranos-9999
+ media-libs/tiff:0
+ x11-libs/fltk
+ x11-libs/libX11
+ x11-libs/libXinerama
+ x11-libs/libXpm
+ x11-libs/libXrandr
+ x11-libs/libXxf86vm"
+
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-0.55-fix-xrandr-test.patch
+
+ sed -e '/xdg-icon-resource\|xdg-desktop-menu/d' \
+ -i makefile.in
+}
+
+src_configure() {
+ tc-export CC CXX
+ econf --enable-verbose \
+ --disable-static
+}
diff --git a/media-gfx/icc_examin/metadata.xml b/media-gfx/icc_examin/metadata.xml
new file mode 100644
index 000000000000..6f7073269406
--- /dev/null
+++ b/media-gfx/icc_examin/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>xmw@gentoo.org</email>
+ <name>Michael Weber</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">oyranos-cms/icc-examin</remote-id>
+ <remote-id type="sourceforge">oyranos</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/media-gfx/icon-slicer/Manifest b/media-gfx/icon-slicer/Manifest
new file mode 100644
index 000000000000..e1717ca79d68
--- /dev/null
+++ b/media-gfx/icon-slicer/Manifest
@@ -0,0 +1,5 @@
+DIST icon-slicer-0.3.tar.gz 112429 SHA256 05f0216dd0c25a17859de66357f64da5033375b6fbf5f31ca54867311160b64d SHA512 09e46dca933a7c647b232d2ae8f589526e5f1cb43e07fe7056f0449cfbe812becc3a171c4f7c716bc65c0f95dc4de989a99b4f1b3566ac52e7ad67965f5be4ab WHIRLPOOL 2f3922fd82570ccad0ec6b4b06abb34d0e85b074700715d9fd484bf851692fcdb436f9307ab242865a5d2c1faa1003f4cf6072ca8bc178daffcc2be6f7d3627e
+EBUILD icon-slicer-0.3.ebuild 636 SHA256 5a066a020315fb4df5861281984998951fd50e596e9dd935d26cb0fb6238c696 SHA512 94d11d743fbb7004c6d40612d1df7d498175f939ef7893399d0cd8c05a3b8bdf74b3815267e82f9854b9e150752050e815a21c67bcb2b9fb91fd245995d47f43 WHIRLPOOL b04d5dee111b0330b5c219613584436abb0f4b46a695e43b9a9ed6065af851b9ace46bc5d08e0e226f6032f0851d3a8bbaeb7db16e5cbc63248f1675a5a79540
+MISC ChangeLog 3227 SHA256 8d85b38bf08897e56f351a9d350b792733a56ed861a538d065fe3099bd6f055c SHA512 5a03bacc8015e50106f8c2a0e7ae7fcf91eb128aff3487c9324c943eb862a6a60770dd6be78bc3139d73ab8542ba5cdc688a47cc6579c6a4ecb4eb0c19a7a438 WHIRLPOOL a875d160c2ede11ec5d4f633292b2e73c86c59a91a9e9554a5228c74dfa533fcc8fc336d653cadf6ac86d0d0d27764bb92f019e95ed132bd76c0a4ffdd238426
+MISC ChangeLog-2015 1822 SHA256 b79ffd3123a4d53b45773b0a3d82cfbac465aa0c3a520578fcfc2d9691e09889 SHA512 94b9e121dd03372927792dbaec862ddb29b9e123236f19236f1da151bba480fa9c3283c7c09dbc86062dd2b07281b176ed4d2e767dc9234f2754ad8e674c6000 WHIRLPOOL d673da5ad8c06fe52cb995c7e3061624ef6ceccfc875ae7003d0421afc3a2b3cc0e7146eb7e173fc2c506b3efe85f23f0b9ad0b509c5cff1499505de5279de75
+MISC metadata.xml 255 SHA256 3e7137870fc49956d79719e3dfe029775cbaaa097e85748c139713c46fcd1798 SHA512 b7bc93530a1726c2d4dfbc71ae29cfbb57712fd9fdd2e76fd52f35ab4368cba0497b50145d1527a3b79e465d459a380821bb1371a01c2e915dc9adc6c7fafd5f WHIRLPOOL 392188d7e069f1720be9329edfb31b11b176bf0c411023b2ceeaeabef1cacf842d70657a2a14ac2ddabbdad70a304275f3b587e9bcdfe77be63a0092e370252c
diff --git a/media-gfx/icon-slicer/icon-slicer-0.3.ebuild b/media-gfx/icon-slicer/icon-slicer-0.3.ebuild
new file mode 100644
index 000000000000..6673de8de85b
--- /dev/null
+++ b/media-gfx/icon-slicer/icon-slicer-0.3.ebuild
@@ -0,0 +1,24 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=2
+
+DESCRIPTION="utility for generating icon themes and libXcursor cursor themes"
+HOMEPAGE="https://www.freedesktop.org/software/icon-slicer/"
+SRC_URI="https://www.freedesktop.org/software/icon-slicer/releases/${P}.tar.gz"
+
+KEYWORDS="alpha amd64 ~hppa ia64 ppc sparc x86"
+LICENSE="GPL-2"
+SLOT="0"
+IUSE=""
+
+RDEPEND="x11-apps/xcursorgen
+ x11-libs/gtk+:2
+ dev-libs/popt"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+src_install() {
+ emake DESTDIR="${D}" install || die "emake install failed."
+ dodoc AUTHORS ChangeLog README TODO
+}
diff --git a/media-gfx/icon-slicer/metadata.xml b/media-gfx/icon-slicer/metadata.xml
new file mode 100644
index 000000000000..19bf1be2581e
--- /dev/null
+++ b/media-gfx/icon-slicer/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 type="project">
+ <email>graphics@gentoo.org</email>
+ <name>Gentoo Graphics Project</name>
+</maintainer>
+</pkgmetadata>
diff --git a/media-gfx/icoutils/Manifest b/media-gfx/icoutils/Manifest
new file mode 100644
index 000000000000..53701107eb95
--- /dev/null
+++ b/media-gfx/icoutils/Manifest
@@ -0,0 +1,11 @@
+AUX icoutils-0.29.1-gettext.patch 354 SHA256 5f5461741fb9ba94fb30d0df4c6379bd31b59d7546ccb3f1ceb448d157fdc200 SHA512 d5efb49f9ba8411b682047fc5de3a9605c89c5d8f9a0fa67b7de52719630187f36abf7ffc7cc1e53481c7474c0b7e5d8b3074a81fca02061c4685053c9cb221f WHIRLPOOL c454dfcd975fc97bf92dd3db73848a93a5bdb8bbd0bcc934de36d50ad55a6d9dbd2e980b84b49041e5dbb17128108270d2e1459e3c78255646c8e52db5c56a36
+AUX icoutils-0.29.1-locale.patch 831 SHA256 dcbe19a6826c339bcde7773b18947ec479312effe748c5b78b0500862ed2287a SHA512 bcb0ef117c7f1434e63e411d270a2cad8e4d0ad214c7bd516494c7718b605234ad5920b9e16c5627c98e8e1065bc2550e55b1e2e8b846a5854999419c999107b WHIRLPOOL 8fc725e02667d656a59bbd51fa94edf55ee22e4a41726205d91d337ecb0386a74dad2734b07872ee19b9d331ea645c55864ca667b8ac916835adac937e9aa7c7
+DIST icoutils-0.31.0.tar.bz2 559836 SHA256 a895d9d74a418d65d39a667e58ae38be79c9e726711384551d36531696f3af71 SHA512 f6ee954784abd9f6cf1f6a2424b89e917de2e3950a5411c6790f1a7a34522e067308677ab00bd34781d179fde1192ec91dcd400207edb09bdb20d503507b5cca WHIRLPOOL 92a3905315973ed016bb2000881d5c39f7306c792feaed302bf183d62056217a9aa76e90dc25a44ffb43434053f3c5ced90e100bd59c284a26fa14b7ffbe0b4a
+DIST icoutils-0.31.1.tar.bz2 573484 SHA256 26e29d3c78f25d4cdf402501ac0414c51a9a092daebf6c9dee3b837dee693093 SHA512 47fe41429cee73b6aff90e2b385b621314700dedfe09989318e439b19a484d806a9428652008be2db70598ba1337e860fba30b6d8104525f9e0bcbb4dc61dc56 WHIRLPOOL 893fbbf7f4dd1ebb06c14d22baf0ac1c126941688ac451b4976e1d0d505056714361f8ab99e2c8f080e20b0d1a8670e375cc2f663ab2bb8861e0af1152fb7504
+DIST icoutils-0.31.3.tar.bz2 593403 SHA256 d4651de8e3f9e28d24b5343a2b7564f49754e5fe7d211c5d4dd60dcd65c8a152 SHA512 3c25dfff0d947ad4688e57871888b7d03ecc1d5aaf2dd957bbfd5d034cbde03238a03446a719b637d2f0c309af424359435d98bddfbdf1ea9d4c08bb23f154d8 WHIRLPOOL 4c0d34484d956f8817b25ed87e36d868ad35ec74d49ad02b4503c3029ab0253b8bbf38b5687f965fe609b4e6d42a1be1da8debe2f8ec5e168136fe7833e341ab
+EBUILD icoutils-0.31.0.ebuild 1004 SHA256 207b9fb11d387366e03218bcbb24c9ec8460eaf72b6da4e145a7465e55f87015 SHA512 5e82edbd17a21b2ed1526738cf508ae3fe01b4b29176d78702f0eeca7fa36f4b3421eedad22cb6b83723a18408b84be480c607cf2755458905bf1ad2385f6a2b WHIRLPOOL 19b0c7f843f3ad164d56ff39939b15f6a928953a2e028cea2305041103efb6a0e7b9d30d60833b830e9c98f9ef9ed817c0615d408903f1893a7de49c64b5b638
+EBUILD icoutils-0.31.1.ebuild 1007 SHA256 4dacb5c5a9599d50d94bdd0e68fc90676cd96149a65f05f04c79cdfa508e0b2b SHA512 cf84f5caf427ce6a5aa454a698888338c46c3f2e99b084a0dba71030ce4048d62c7491e2d1d1cc20fc0c7f653ecbeb67c6f948c51a0eb8c5da34cafa10b5e236 WHIRLPOOL 8281e7a183404bdce1e89fd4825744fbabf1019664feea8a5c542524ff56773ab7e0fb454f57af605078e8ab2dd05542d6341a98891ce99b4484ab558bc08b67
+EBUILD icoutils-0.31.3.ebuild 1038 SHA256 43a080d957d2d2fe623568188ece6ed2798e9041f0ac2c023bfc8a2bfea4dec3 SHA512 90954b017763bfd24a215189739b5b0fd7572113b1a5bbf24a184429d4125713811aaf08bd6212fea89745ae2bae82bb91d2264843ead403936f936fc576395c WHIRLPOOL a34e9ab609517ea838a83b24ad8e3cdc2b76d7f5783570774ec52a9d0d7dcf55fa09b814f321d7f8858abf125765af893723dd4a75276cccb160d79e0d2095ca
+MISC ChangeLog 2510 SHA256 16bb342dc64591f7a55a8eccb53a4437aa5de0c0d54683639d5f619f65b40b1c SHA512 3a3eb3226ac14a51798e9d5eccba44b0e008158487423fd6d0b4ac2a07ca2972d6a1700c8cb9a2f3952e7f789222ae8e7399e20fd97ebb421e06ca776ec36648 WHIRLPOOL b213562329abab32308e7ff7f3b621b30c09547095128af9da2bbe6e29d5729c3dc2ae7caafb2d0a1efb10bd86651de4b6e3e834a636e25574a77ae5f1132be5
+MISC ChangeLog-2015 4903 SHA256 b54828e070b7eac9017d1ec4e59e82ac0bb4d05c4b0357d48e72e9ac3ef958e2 SHA512 106efa193f846b6a13e0e7f7756998843cbba042c7c8b957e49c1b496360a74bcd517dc31a2088feebdf707adb6bce3591eb70433965aff89f0eeb065d322383 WHIRLPOOL 55ff0ac9c4a5ad4921d90ff0ce1c42a47c7a3ad110d05a91089e42f32101043f71651df828e95c0c08294849708bd0f1187c2cdf346fdc0bca583e2fe3a4d95c
+MISC metadata.xml 607 SHA256 8dbe241b0fb3ba0cccadaa8f635a29d0430cc6a4a16b132ed30d8285513acb73 SHA512 5e47301ff2b8831e681251443f94c4008c0406e03b691e648566f1208829c6d56e4a42bb7add3c00dfcd5167fc169ba5de5244e8d18333e2b75e597f85318544 WHIRLPOOL 1d3dc72efe319a19676a7cd33ad6e584dc99657ffc2df69c01c4faed594a507b1b6ccf303b7e8f964e2f74e3a8927d4bafcd0ff5295049f95cf0c9d988963148
diff --git a/media-gfx/icoutils/files/icoutils-0.29.1-gettext.patch b/media-gfx/icoutils/files/icoutils-0.29.1-gettext.patch
new file mode 100644
index 000000000000..4aa4c44cc3ce
--- /dev/null
+++ b/media-gfx/icoutils/files/icoutils-0.29.1-gettext.patch
@@ -0,0 +1,13 @@
+Index: icoutils-0.29.1/configure.ac
+===================================================================
+--- icoutils-0.29.1.orig/configure.ac
++++ icoutils-0.29.1/configure.ac
+@@ -26,7 +26,7 @@ gl_INIT
+
+ # Gettext
+ AM_GNU_GETTEXT([external])
+-# AM_GNU_GETTEXT_VERSION(0.14.1)
++AM_GNU_GETTEXT_VERSION(0.14.1)
+
+ # Checks for header files.
+ AC_HEADER_STDC
diff --git a/media-gfx/icoutils/files/icoutils-0.29.1-locale.patch b/media-gfx/icoutils/files/icoutils-0.29.1-locale.patch
new file mode 100644
index 000000000000..d73ae119ea5e
--- /dev/null
+++ b/media-gfx/icoutils/files/icoutils-0.29.1-locale.patch
@@ -0,0 +1,39 @@
+Fix compiling with -O0 (see <https://bugs.gentoo.org/show_bug.cgi?id=319559>)
+
+
+--- a/wrestool/main.c
++++ b/wrestool/main.c
+@@ -32,6 +32,10 @@
+ #include "common/string-utils.h"
+ #include "wrestool.h"
+
++#ifdef HAVE_LOCALE_H
++#include <locale.h>
++#endif
++
+ #define PROGRAM "wrestool"
+
+
+--- a/icotool/main.c
++++ b/icotool/main.c
+@@ -37,6 +37,10 @@
+ #include "common/io-utils.h"
+ #include "icotool.h"
+
++#ifdef HAVE_LOCALE_H
++#include <locale.h>
++#endif
++
+ #define PROGRAM "icotool"
+
+ static int32_t image_index = -1;
+--- a/configure.ac
++++ b/configure.ac
+@@ -34,6 +34,7 @@
+ AC_HEADER_SYS_WAIT
+ AC_HEADER_TIME
+ #AC_CHECK_HEADERS([byteswap.h errno.h fcntl.h getopt.h limits.h sys/stat.h sys/time.h sys/types.h unistd.h])
++AC_CHECK_HEADERS([locale.h])
+
+ # Checks for typedefs, structures, and compiler characteristics.
+ AC_C_INLINE
diff --git a/media-gfx/icoutils/icoutils-0.31.0.ebuild b/media-gfx/icoutils/icoutils-0.31.0.ebuild
new file mode 100644
index 000000000000..db7c409d2c2f
--- /dev/null
+++ b/media-gfx/icoutils/icoutils-0.31.0.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+inherit autotools eutils flag-o-matic
+
+DESCRIPTION="A set of programs for extracting and converting images in icon and cursor files (.ico, .cur)"
+HOMEPAGE="http://www.nongnu.org/icoutils/"
+SRC_URI="mirror://nongnu/${PN}/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ~arm ppc x86 ~amd64-linux ~x86-linux ~ppc-macos"
+IUSE="nls"
+
+RDEPEND=">=dev-lang/perl-5.6
+ >=dev-perl/libwww-perl-5.64
+ media-libs/libpng:0
+ sys-libs/zlib
+ nls? ( virtual/libintl )"
+DEPEND="${RDEPEND}
+ nls? ( sys-devel/gettext )"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-0.29.1-{locale,gettext}.patch
+ rm m4/po.m4* || die
+ cp /usr/share/aclocal/po.m4 m4/
+ AT_M4DIR=m4 eautoreconf
+}
+
+src_configure() {
+ [[ ${CHOST} != *-linux-gnu* ]] && use nls && append-libs -lintl
+ econf $(use_enable nls)
+}
+
+src_install() {
+ emake DESTDIR="${D}" mkinstalldirs="mkdir -p" install
+ dodoc AUTHORS ChangeLog NEWS README TODO
+}
diff --git a/media-gfx/icoutils/icoutils-0.31.1.ebuild b/media-gfx/icoutils/icoutils-0.31.1.ebuild
new file mode 100644
index 000000000000..772d516133f4
--- /dev/null
+++ b/media-gfx/icoutils/icoutils-0.31.1.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+inherit autotools eutils flag-o-matic
+
+DESCRIPTION="A set of programs for extracting and converting images in icon and cursor files (.ico, .cur)"
+HOMEPAGE="http://www.nongnu.org/icoutils/"
+SRC_URI="mirror://nongnu/${PN}/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~ppc ~x86 ~amd64-linux ~x86-linux ~ppc-macos"
+IUSE="nls"
+
+RDEPEND=">=dev-lang/perl-5.6
+ >=dev-perl/libwww-perl-5.64
+ media-libs/libpng:0
+ sys-libs/zlib
+ nls? ( virtual/libintl )"
+DEPEND="${RDEPEND}
+ nls? ( sys-devel/gettext )"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-0.29.1-{locale,gettext}.patch
+ rm m4/po.m4* || die
+ cp /usr/share/aclocal/po.m4 m4/
+ AT_M4DIR=m4 eautoreconf
+}
+
+src_configure() {
+ [[ ${CHOST} != *-linux-gnu* ]] && use nls && append-libs -lintl
+ econf $(use_enable nls)
+}
+
+src_install() {
+ emake DESTDIR="${D}" mkinstalldirs="mkdir -p" install
+ dodoc AUTHORS ChangeLog NEWS README TODO
+}
diff --git a/media-gfx/icoutils/icoutils-0.31.3.ebuild b/media-gfx/icoutils/icoutils-0.31.3.ebuild
new file mode 100644
index 000000000000..4241e878763a
--- /dev/null
+++ b/media-gfx/icoutils/icoutils-0.31.3.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit autotools flag-o-matic
+
+DESCRIPTION="A set of programs for extracting and converting images in icon and cursor files (.ico, .cur)"
+HOMEPAGE="http://www.nongnu.org/icoutils/"
+SRC_URI="mirror://nongnu/${PN}/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~ppc ~x86 ~amd64-linux ~x86-linux ~ppc-macos"
+IUSE="nls"
+
+RDEPEND="
+ >=dev-lang/perl-5.6
+ >=dev-perl/libwww-perl-5.64
+ media-libs/libpng:0
+ sys-libs/zlib
+ nls? ( virtual/libintl )
+"
+DEPEND="
+ ${RDEPEND}
+ nls? ( sys-devel/gettext )
+"
+
+DOCS=( AUTHORS ChangeLog NEWS README TODO )
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-0.29.1-{locale,gettext}.patch
+)
+
+src_prepare() {
+ default
+ rm m4/po.m4* || die
+ cp /usr/share/aclocal/po.m4 m4/
+ AT_M4DIR=m4 eautoreconf
+}
+
+src_configure() {
+ [[ ${CHOST} != *-linux-gnu* ]] && use nls && append-libs -lintl
+ econf $(use_enable nls)
+}
+
+src_install() {
+ emake DESTDIR="${D}" mkinstalldirs="mkdir -p" install
+ einstalldocs
+}
diff --git a/media-gfx/icoutils/metadata.xml b/media-gfx/icoutils/metadata.xml
new file mode 100644
index 000000000000..5753237ba130
--- /dev/null
+++ b/media-gfx/icoutils/metadata.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>res@crystalspace3d.org</email>
+ <name>Frank Richter (upstream)</name>
+ </maintainer>
+ <maintainer type="person">
+ <email>patrick@gentoo.org</email>
+ <name>Patrick Lauer (proxy)</name>
+ </maintainer>
+<maintainer type="project">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/media-gfx/igal/Manifest b/media-gfx/igal/Manifest
new file mode 100644
index 000000000000..473f18d1c35c
--- /dev/null
+++ b/media-gfx/igal/Manifest
@@ -0,0 +1,5 @@
+DIST igal2-2.0.tar.gz 27206 SHA256 5f696d0c94c75082ddb0391d4bba96ec11d60710e0ba6996a9653aad75b81629 SHA512 663bc4f05fbb226c55c3304126ceb480f050715499a2849567ad1d33da568ed02f85b64ad176f6e1cb1c99c8f50650676a7323f0d0497880802a245274a77a0f WHIRLPOOL a26bd086430d568ffef6fb512b78a549f704238aaea060da5645d01b1fb1b2ee51d829032e42c01236ebadff6d73108e879561c59cd60dbc39b41ff9776d248b
+EBUILD igal-2.0-r1.ebuild 881 SHA256 bd4f492c1a7134efb4d58cddd53ed9f384b091ddfc145f0e086d1f17fbcbed04 SHA512 62f833ff22484403adb19fa355e93a1aa57e4e8dd9d8f8e65fde84202402a86e083cefa056875079ced7d186e8098a4c6ec6b6e1c3522f0591ba16c71e21c128 WHIRLPOOL fcd0104f99cb1ef729a517a4760c2edcaa744d72322863f903bcb435f1c1557b460c069cf27b03c899d98dce47ca698bfeb50b625a58f7b3d4c81435a91f0b04
+MISC ChangeLog 2415 SHA256 2ef664df9b6793b6ddd8cf1ed4eb442aca2ca93e017445cb0fa9920e455ea946 SHA512 4f360e66b06eb450e38b4c105d2945873dbee9882c2fd88ca193f48ceccefcfb50769d83f5304e5f88121257dd74b89520da2e99f4757ba6877129860c34364b WHIRLPOOL 038298b448360b02b66e9cd4d6db5f17e036af3a6b54bd79a39a79f5dcfc9028d2ca50ae3b5d9f9a9f3a32043259f36bb2210c56d78c563522cc90aa99fced0d
+MISC ChangeLog-2015 2682 SHA256 a62822327811f0964382a3942edbc3b1f2c1bec3e1e0459b2a240345a1bcd3bb SHA512 c18423b34c1df578de7fd26227811a62c03a0ba4f5c315fe44fdeba2183ef3027c14b91ec045f7f9d1e5e4e3ca48eddb35bccf6660e15bbbb0a9e4905f8e8d3e WHIRLPOOL 3e35e7866658c8d42302fe192c4139faf7e6875c19ba0a71c0a8b4ff76fb826a8b2dc569a066a66acb66f95c5d45f9bc553de3f8c027927ebb25779e06a89021
+MISC metadata.xml 515 SHA256 2c6509574710d013e00771c7de59522919461777c2e7a568c8e2767346168d47 SHA512 379299c58fe3018ce51c1e54302dafcc9c258661368101503c1995d7bd0a435175ffe32ff3e7ac6087fa1fb39f4d6e9623acb4ee3acd73a333c95375cb3de072 WHIRLPOOL c0c800c6d081fe3be20f0ea6163d51677997244d7405986907b2682cb2758e54662241c0236e647218f31cf027b46a348b94a081dbcb69bfd17c797f1dd0d0e6
diff --git a/media-gfx/igal/igal-2.0-r1.ebuild b/media-gfx/igal/igal-2.0-r1.ebuild
new file mode 100644
index 000000000000..dbb1bb4aa718
--- /dev/null
+++ b/media-gfx/igal/igal-2.0-r1.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=2
+
+MY_P=${PN}2-${PV}
+
+DESCRIPTION="Static HTML image gallery generator"
+HOMEPAGE="http://igal.trexler.at"
+SRC_URI="http://${PN}.trexler.at/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 ppc ppc64 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos"
+IUSE=""
+
+RDEPEND="dev-lang/perl
+ virtual/imagemagick-tools
+ virtual/jpeg"
+DEPEND=""
+
+S=${WORKDIR}/${MY_P}
+
+src_prepare() {
+ sed -e "s:/usr/local/lib/igal2:/usr/share/igal2:g" \
+ -i igal2 -i igal2.1 || die
+ sed -i -e "s:/usr/local/bin/igal2:/usr/bin/igal2:" \
+ utilities/igal2.sh || die
+}
+
+src_compile() { :; }
+
+src_install() {
+ dobin igal2 utilities/igal2.sh || die
+ dosym igal2 /usr/bin/igal || die
+ doman igal2.1
+ dodoc ChangeLog README
+ insinto /usr/share/igal2
+ doins *.html tile.png igal2.css || die
+}
diff --git a/media-gfx/igal/metadata.xml b/media-gfx/igal/metadata.xml
new file mode 100644
index 000000000000..e9a0ce3136a7
--- /dev/null
+++ b/media-gfx/igal/metadata.xml
@@ -0,0 +1,13 @@
+<?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>
+ <longdescription lang="en">
+ iGal is a Perl program that can generate and publish an entire online
+ picture show (static HTML slides, thumbnails and index page) with just
+ one command line invocation in a Linux or Unix environment.
+ </longdescription>
+</pkgmetadata>
diff --git a/media-gfx/imagemagick/Manifest b/media-gfx/imagemagick/Manifest
new file mode 100644
index 000000000000..5b760a0a195f
--- /dev/null
+++ b/media-gfx/imagemagick/Manifest
@@ -0,0 +1,13 @@
+DIST ImageMagick-6.9.9-0.tar.xz 8780640 SHA256 0a8a091dc4f57ec486e03285a1c30dc3f062d58133f848b6274dfc6ae5dbb60b SHA512 ddd2042e5d9fd2ee9ba91f65c7be3f0cf1a8ce340be9cefaaca2517073d2319b43b7190c5302c92e845f8e250d87681e375aec7238ca93401b42dd248776e338 WHIRLPOOL 603965b07098c3963ab5c089ee4a3fa4b1d36eb8fa52d1e5c22d2dd9bdd6b5ffa165713274fb524991faffe447ce7df14df40c8848f1436e7b86c25d901eda45
+DIST ImageMagick-6.9.9-18.tar.xz 8797460 SHA256 121dd50d051488e908306d7d1ba624781f5ec9532d30a2281b4a2bf6f26ee0b4 SHA512 b18733e01c3f41a221a691ceb992bb2e7ecabbdd1b4765c5dd46f00c2047db8534acee9659aed55786baa00062946353bd02ac60b0609caf21f87fb34a40d290 WHIRLPOOL 9077ece10f3ab8be3334816589640523bed69eef1a3cb789653cb9b260caef6721ef941010f806b00a65f8bd5a9bafa87578163b2b92888f488cdabc49218408
+DIST ImageMagick-6.9.9-9.tar.xz 8797832 SHA256 59eed394d295d651e49ec0f3cfe3f0bb7aeccc28bd7a32360db9f8fc4bf9f25c SHA512 d024f753e1bf234e38736935f38a9bf82969ca77130059383f9d1871a39f68d7678a546d2786d57d602744e2008909df3f2ab08e1207b4c97c0952e7b03876d8 WHIRLPOOL f56279a778c81b6a1b61b7e47f24de25b4758c6d46fabf1f63c6847dac151297ec6bd76e390b3f21b0521963b254771ad9779ed3b4e62f0d77e94f225ec595ef
+DIST ImageMagick-7.0.6-9.tar.xz 8550004 SHA256 aa8cb89dad36b555d8ca497f207008a56b315727c9b5d6d7b28f8f9e3ee7ac25 SHA512 5756d2605cbfbd876765372e954aeefdcdf60f1ee364ce40c3302f8958c510e6f0ecf47a3ee3c264eaaade1504bdae068118eb2cb96d418237f7f53da94a6c11 WHIRLPOOL 602c18d89b4f463d1bbd96d2a9e75c3dd2c2b11419ebe8611121f3a8d6c9ec82798cc5b1183d2f8c2cf7e174695faad4b35468540e3ee7a8c58de4a240035dfe
+DIST ImageMagick-7.0.7-6.tar.xz 8556160 SHA256 52ae1acad9cfbba871b9d3cf033235067a49a20a510c1d6228a4fb3372d5b50e SHA512 9dff09a29b94f0de8ede82473820860f812edf3fc8edb0d1f8daa21c127d3e7831047f33ab22c407f2803a03561b690a52525672da837bbab1a1255156b4e6ff WHIRLPOOL ca21db0a46d055e7bc3a942e70f785599eafbd44e325dd6a33bf42dd19e655ebb0143a12d26b460d9708600e3925aab97f7ce403fbadb65eb14cb90cb3254313
+EBUILD imagemagick-6.9.9.0.ebuild 5158 SHA256 4822fa883719ae3c6bb7d9e0056326f7a4970483c617c1becb7db7fac2068f7d SHA512 ddec64d6ede1cf433bce3a4da1fb74c0346349b922cc1dd164acfb6cce99df1c207296a2334a7b59163a34250e91a80b8a7cb4a607fbca1bdb84bb3ee3c9f36c WHIRLPOOL 6e34e09dffaeaa9da599cc2b3536f16a455c6dd0fc872ff3ac7b8b07040ca77f487bdb7d09d54992356584bfc7203c7124952dbf7467f46f9fff2620bae82abb
+EBUILD imagemagick-6.9.9.18.ebuild 5128 SHA256 69585ea6cefba51c7f455a1ae8b70ad42b55ca1dee9cb4e592daf6817096e65d SHA512 86114b9cd2ffb6aa94808060abb78a03897e7ae0611b3c326ba60fe2ff17506209c413fc863a32ac63ae36d24ae2960cdc931b7b0493a8cb04189fa163990c68 WHIRLPOOL 940edc57060600983539f50dfcb635e36e9a642fa5cabe4874f95acc8a1a37b2fe96b2b715b546feb9aa7d30d75f8e5adf5af0f731f3c3b455428e34747c23d3
+EBUILD imagemagick-6.9.9.9.ebuild 5128 SHA256 69585ea6cefba51c7f455a1ae8b70ad42b55ca1dee9cb4e592daf6817096e65d SHA512 86114b9cd2ffb6aa94808060abb78a03897e7ae0611b3c326ba60fe2ff17506209c413fc863a32ac63ae36d24ae2960cdc931b7b0493a8cb04189fa163990c68 WHIRLPOOL 940edc57060600983539f50dfcb635e36e9a642fa5cabe4874f95acc8a1a37b2fe96b2b715b546feb9aa7d30d75f8e5adf5af0f731f3c3b455428e34747c23d3
+EBUILD imagemagick-7.0.6.9.ebuild 5134 SHA256 8af6a6b8deb0b4e8de1796d6d13fd6fafeb732b95fe421a46ea4da39dc662ceb SHA512 e16e30d01265170f4e39cce0d9d4385246dbff419d021f80bae3c1138b076b14e8cfb58fa8e4adde535c2866c62d3a2c3fac4adf07be5c118e0ea15d3b5c6ae0 WHIRLPOOL ccd9a043a143f3da3af17dcf5253ed1cb66fd34d9d343239d4a65bdbb63855a8c5727610ad352c8dce6289316a315e8ae3799947096028c2b5cc10553c4f56a2
+EBUILD imagemagick-7.0.7.6.ebuild 5134 SHA256 8af6a6b8deb0b4e8de1796d6d13fd6fafeb732b95fe421a46ea4da39dc662ceb SHA512 e16e30d01265170f4e39cce0d9d4385246dbff419d021f80bae3c1138b076b14e8cfb58fa8e4adde535c2866c62d3a2c3fac4adf07be5c118e0ea15d3b5c6ae0 WHIRLPOOL ccd9a043a143f3da3af17dcf5253ed1cb66fd34d9d343239d4a65bdbb63855a8c5727610ad352c8dce6289316a315e8ae3799947096028c2b5cc10553c4f56a2
+MISC ChangeLog 20380 SHA256 10035fab48a5e4cf8e34a2012a5db0ec65d4031b7df442d1a53dc2b7230ef9ee SHA512 b4021c1454a9df5c9bb50090122f997cf0f00664c568cf0def90af7e096dd2bbf30fdf9f7773468ae50c0367563384e98c8dc5cfc279b5b00f02832570c4f6d9 WHIRLPOOL 9bcc31f87c6248716fd48ecc5d2e5d07e0269e887f9dd8ed10a9b24f73d2c0795395c0711abea8767b9b399acf407bad358b0592ddc13a82414e920b82eca638
+MISC ChangeLog-2015 87760 SHA256 1834d883d60f41b0d6e6f851379779e4cc99fb52433b977af8c8e9b3782559d4 SHA512 3c1e2ece8d51a1e2aae9688411cff7d4cd5e31fc36e7958cb6ece5733a1feb2329e4c299d64cf894537c94c6dcbe79c097c493ca4438d38d707d0dbaae824a0a WHIRLPOOL 1e98ac43b05ce9b8eb9141476f6f1af383daea23ceb27cf8f12c89048980ebeaf30f147f665ea5eafa7df6363c73c073b8e1c09d5665736e0d67bb73f265308b
+MISC metadata.xml 984 SHA256 14ff1c5241377a5857c52b45fb317ac531afa99b6a01b6f55ec21d6e59a09dcf SHA512 39a4c5aa27db2de81ad4621bacf43baf96415eecdf836fb2024890634c025b29f2b41dc003ac4d6f87b2365c1a4c68b6af2b9e169b3137bbee3e0a6cb435c5c7 WHIRLPOOL 4df1670e22b5393b0e64408091f5874839f8c89b2aeb926f13b1967bf3bd65fa18617845788e4a31906fa4ebc76fc68e2d5cd16de07f89ad3944e07f63bb5898
diff --git a/media-gfx/imagemagick/imagemagick-6.9.9.0.ebuild b/media-gfx/imagemagick/imagemagick-6.9.9.0.ebuild
new file mode 100644
index 000000000000..ff4e49a50ce4
--- /dev/null
+++ b/media-gfx/imagemagick/imagemagick-6.9.9.0.ebuild
@@ -0,0 +1,184 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit eutils flag-o-matic libtool multilib toolchain-funcs versionator
+
+MY_P=ImageMagick-$(replace_version_separator 3 '-')
+
+DESCRIPTION="A collection of tools and libraries for many image formats"
+HOMEPAGE="http://www.imagemagick.org/"
+SRC_URI="mirror://${PN}/${MY_P}.tar.xz"
+
+LICENSE="imagemagick"
+SLOT="0/${PV}"
+KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 ~s390 ~sh sparc x86 ~ppc-aix ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
+IUSE="bzip2 corefonts cxx djvu fftw fontconfig fpx graphviz hdri jbig jpeg jpeg2k lcms lqr lzma opencl openexr openmp pango perl png postscript q32 q8 raw static-libs svg test tiff truetype webp wmf X xml zlib"
+
+RESTRICT="perl? ( userpriv )"
+
+RDEPEND="
+ dev-libs/libltdl:0
+ bzip2? ( app-arch/bzip2 )
+ corefonts? ( media-fonts/corefonts )
+ djvu? ( app-text/djvu )
+ fftw? ( sci-libs/fftw:3.0 )
+ fontconfig? ( media-libs/fontconfig )
+ fpx? ( >=media-libs/libfpx-1.3.0-r1 )
+ graphviz? ( media-gfx/graphviz )
+ jbig? ( >=media-libs/jbigkit-2:= )
+ jpeg? ( virtual/jpeg:0 )
+ jpeg2k? ( >=media-libs/openjpeg-2.1.0:2 )
+ lcms? ( media-libs/lcms:2= )
+ lqr? ( media-libs/liblqr )
+ opencl? ( virtual/opencl )
+ openexr? ( media-libs/openexr:0= )
+ pango? ( x11-libs/pango )
+ perl? ( >=dev-lang/perl-5.8.8:0= )
+ png? ( media-libs/libpng:0= )
+ postscript? ( app-text/ghostscript-gpl )
+ raw? ( media-gfx/ufraw )
+ svg? ( gnome-base/librsvg )
+ tiff? ( media-libs/tiff:0= )
+ truetype? (
+ media-fonts/urw-fonts
+ >=media-libs/freetype-2
+ )
+ webp? ( media-libs/libwebp:0= )
+ wmf? ( media-libs/libwmf )
+ X? (
+ x11-libs/libICE
+ x11-libs/libSM
+ x11-libs/libXext
+ x11-libs/libXt
+ )
+ xml? ( dev-libs/libxml2:= )
+ lzma? ( app-arch/xz-utils )
+ zlib? ( sys-libs/zlib:= )"
+DEPEND="${RDEPEND}
+ !media-gfx/graphicsmagick[imagemagick]
+ virtual/pkgconfig
+ X? ( x11-proto/xextproto )"
+
+REQUIRED_USE="corefonts? ( truetype )
+ test? ( corefonts )"
+
+S=${WORKDIR}/${MY_P}
+
+src_prepare() {
+ local mesa_cards ati_cards nvidia_cards render_cards
+ default
+
+ elibtoolize # for Darwin modules
+
+ # For testsuite, see https://bugs.gentoo.org/show_bug.cgi?id=500580#c3
+ shopt -s nullglob
+ ati_cards=$(echo -n /dev/ati/card* | sed 's/ /:/g')
+ if test -n "${ati_cards}"; then
+ addpredict "${ati_cards}"
+ fi
+ mesa_cards=$(echo -n /dev/dri/card* | sed 's/ /:/g')
+ if test -n "${mesa_cards}"; then
+ addpredict "${mesa_cards}"
+ fi
+ nvidia_cards=$(echo -n /dev/nvidia** | sed 's/ /:/g')
+ if test -n "${nvidia_cards}"; then
+ addpredict "${nvidia_cards}"
+ fi
+ render_cards=$(echo -n /dev/dri/renderD128* | sed 's/ /:/g')
+ if test -n "${render_cards}"; then
+ addpredict "${render_cards}"
+ fi
+ shopt -u nullglob
+ addpredict /dev/nvidiactl
+}
+
+src_configure() {
+ local depth=16
+ use q8 && depth=8
+ use q32 && depth=32
+
+ local openmp=disable
+ use openmp && { tc-has-openmp && openmp=enable; }
+
+ [[ ${CHOST} == *-solaris* ]] && append-ldflags -lnsl -lsocket
+
+ CONFIG_SHELL=$(type -P bash) \
+ econf \
+ $(use_enable static-libs static) \
+ $(use_enable hdri) \
+ $(use_enable opencl) \
+ --with-threads \
+ --with-modules \
+ --with-quantum-depth=${depth} \
+ $(use_with cxx magick-plus-plus) \
+ $(use_with perl) \
+ --with-perl-options='INSTALLDIRS=vendor' \
+ --with-gs-font-dir="${EPREFIX}"/usr/share/fonts/urw-fonts \
+ $(use_with bzip2 bzlib) \
+ $(use_with X x) \
+ $(use_with zlib) \
+ --without-autotrace \
+ $(use_with postscript dps) \
+ $(use_with djvu) \
+ --with-dejavu-font-dir="${EPREFIX}"/usr/share/fonts/dejavu \
+ $(use_with fftw) \
+ $(use_with fpx) \
+ $(use_with fontconfig) \
+ $(use_with truetype freetype) \
+ $(use_with postscript gslib) \
+ $(use_with graphviz gvc) \
+ $(use_with jbig) \
+ $(use_with jpeg) \
+ $(use_with jpeg2k openjp2) \
+ $(use_with lcms) \
+ $(use_with lqr) \
+ $(use_with lzma) \
+ $(use_with openexr) \
+ $(use_with pango) \
+ $(use_with png) \
+ $(use_with svg rsvg) \
+ $(use_with tiff) \
+ $(use_with webp) \
+ $(use_with corefonts windows-font-dir "${EPREFIX}"/usr/share/fonts/corefonts) \
+ $(use_with wmf) \
+ $(use_with xml) \
+ --${openmp}-openmp \
+ --with-gcc-arch=no-automagic
+}
+
+src_test() {
+ LD_LIBRARY_PATH="${S}/coders/.libs:${S}/filters/.libs:${S}/Magick++/lib/.libs:${S}/magick/.libs:${S}/wand/.libs" \
+ emake check
+}
+
+src_install() {
+ # Ensure documentation installation files and paths with each release!
+ emake \
+ DESTDIR="${D}" \
+ DOCUMENTATION_PATH="${EPREFIX}"/usr/share/doc/${PF}/html \
+ install
+
+ rm -f "${ED}"/usr/share/doc/${PF}/html/{ChangeLog,LICENSE,NEWS.txt}
+ dodoc {AUTHORS,README}.txt ChangeLog
+
+ if use perl; then
+ find "${ED}" -type f -name perllocal.pod -exec rm -f {} +
+ find "${ED}" -depth -mindepth 1 -type d -empty -exec rm -rf {} +
+ fi
+
+ find "${ED}" -name '*.la' -exec sed -i -e "/^dependency_libs/s:=.*:='':" {} +
+
+ if use opencl; then
+ cat <<-EOF > "${T}"/99${PN}
+ SANDBOX_PREDICT="/dev/nvidiactl:/dev/nvidia-uvm:/dev/ati/card:/dev/dri/card:/dev/dri/renderD128"
+ EOF
+
+ insinto /etc/sandbox.d
+ doins "${T}"/99${PN} #472766
+ fi
+
+ insinto /usr/share/${PN}
+ doins config/*icm
+}
diff --git a/media-gfx/imagemagick/imagemagick-6.9.9.18.ebuild b/media-gfx/imagemagick/imagemagick-6.9.9.18.ebuild
new file mode 100644
index 000000000000..d91b5ff35eef
--- /dev/null
+++ b/media-gfx/imagemagick/imagemagick-6.9.9.18.ebuild
@@ -0,0 +1,185 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit eutils flag-o-matic libtool multilib toolchain-funcs versionator
+
+MY_P=ImageMagick-$(replace_version_separator 3 '-')
+
+DESCRIPTION="A collection of tools and libraries for many image formats"
+HOMEPAGE="http://www.imagemagick.org/"
+SRC_URI="mirror://${PN}/${MY_P}.tar.xz"
+
+LICENSE="imagemagick"
+SLOT="0/${PV}"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
+IUSE="bzip2 corefonts cxx djvu fftw fontconfig fpx graphviz hdri jbig jpeg jpeg2k lcms lqr lzma opencl openexr openmp pango perl png postscript q32 q8 raw static-libs svg test tiff truetype webp wmf X xml zlib"
+
+RESTRICT="perl? ( userpriv )"
+
+RDEPEND="
+ dev-libs/libltdl:0
+ bzip2? ( app-arch/bzip2 )
+ corefonts? ( media-fonts/corefonts )
+ djvu? ( app-text/djvu )
+ fftw? ( sci-libs/fftw:3.0 )
+ fontconfig? ( media-libs/fontconfig )
+ fpx? ( >=media-libs/libfpx-1.3.0-r1 )
+ graphviz? ( media-gfx/graphviz )
+ jbig? ( >=media-libs/jbigkit-2:= )
+ jpeg? ( virtual/jpeg:0 )
+ jpeg2k? ( >=media-libs/openjpeg-2.1.0:2 )
+ lcms? ( media-libs/lcms:2= )
+ lqr? ( media-libs/liblqr )
+ opencl? ( virtual/opencl )
+ openexr? ( media-libs/openexr:0= )
+ pango? ( x11-libs/pango )
+ perl? ( >=dev-lang/perl-5.8.8:0= )
+ png? ( media-libs/libpng:0= )
+ postscript? ( app-text/ghostscript-gpl )
+ raw? ( media-gfx/ufraw )
+ svg? ( gnome-base/librsvg )
+ tiff? ( media-libs/tiff:0= )
+ truetype? (
+ media-fonts/urw-fonts
+ >=media-libs/freetype-2
+ )
+ webp? ( media-libs/libwebp:0= )
+ wmf? ( media-libs/libwmf )
+ X? (
+ x11-libs/libICE
+ x11-libs/libSM
+ x11-libs/libXext
+ x11-libs/libXt
+ )
+ xml? ( dev-libs/libxml2:= )
+ lzma? ( app-arch/xz-utils )
+ zlib? ( sys-libs/zlib:= )"
+DEPEND="${RDEPEND}
+ !media-gfx/graphicsmagick[imagemagick]
+ virtual/pkgconfig
+ X? ( x11-proto/xextproto )"
+
+REQUIRED_USE="corefonts? ( truetype )
+ test? ( corefonts )"
+
+S=${WORKDIR}/${MY_P}
+
+src_prepare() {
+ local mesa_cards ati_cards nvidia_cards render_cards
+ default
+
+ elibtoolize # for Darwin modules
+
+ # For testsuite, see https://bugs.gentoo.org/show_bug.cgi?id=500580#c3
+ shopt -s nullglob
+ ati_cards=$(echo -n /dev/ati/card* | sed 's/ /:/g')
+ if test -n "${ati_cards}"; then
+ addpredict "${ati_cards}"
+ fi
+ mesa_cards=$(echo -n /dev/dri/card* | sed 's/ /:/g')
+ if test -n "${mesa_cards}"; then
+ addpredict "${mesa_cards}"
+ fi
+ nvidia_cards=$(echo -n /dev/nvidia** | sed 's/ /:/g')
+ if test -n "${nvidia_cards}"; then
+ addpredict "${nvidia_cards}"
+ fi
+ render_cards=$(echo -n /dev/dri/renderD128* | sed 's/ /:/g')
+ if test -n "${render_cards}"; then
+ addpredict "${render_cards}"
+ fi
+ shopt -u nullglob
+ addpredict /dev/nvidiactl
+}
+
+src_configure() {
+ local depth=16
+ use q8 && depth=8
+ use q32 && depth=32
+
+ local openmp=disable
+ use openmp && { tc-has-openmp && openmp=enable; }
+
+ [[ ${CHOST} == *-solaris* ]] && append-ldflags -lnsl -lsocket
+
+ local myeconfargs=(
+ $(use_enable static-libs static)
+ $(use_enable hdri)
+ $(use_enable opencl)
+ --with-threads
+ --with-modules
+ --with-quantum-depth=${depth}
+ $(use_with cxx magick-plus-plus)
+ $(use_with perl)
+ --with-perl-options='INSTALLDIRS=vendor'
+ --with-gs-font-dir="${EPREFIX}"/usr/share/fonts/urw-fonts
+ $(use_with bzip2 bzlib)
+ $(use_with X x)
+ $(use_with zlib)
+ --without-autotrace
+ $(use_with postscript dps)
+ $(use_with djvu)
+ --with-dejavu-font-dir="${EPREFIX}"/usr/share/fonts/dejavu
+ $(use_with fftw)
+ $(use_with fpx)
+ $(use_with fontconfig)
+ $(use_with truetype freetype)
+ $(use_with postscript gslib)
+ $(use_with graphviz gvc)
+ $(use_with jbig)
+ $(use_with jpeg)
+ $(use_with jpeg2k openjp2)
+ $(use_with lcms)
+ $(use_with lqr)
+ $(use_with lzma)
+ $(use_with openexr)
+ $(use_with pango)
+ $(use_with png)
+ $(use_with svg rsvg)
+ $(use_with tiff)
+ $(use_with webp)
+ $(use_with corefonts windows-font-dir "${EPREFIX}"/usr/share/fonts/corefonts)
+ $(use_with wmf)
+ $(use_with xml)
+ --${openmp}-openmp
+ --with-gcc-arch=no-automagic
+ )
+ CONFIG_SHELL=$(type -P bash) econf "${myeconfargs[@]}"
+}
+
+src_test() {
+ LD_LIBRARY_PATH="${S}/coders/.libs:${S}/filters/.libs:${S}/Magick++/lib/.libs:${S}/magick/.libs:${S}/wand/.libs" \
+ emake check
+}
+
+src_install() {
+ # Ensure documentation installation files and paths with each release!
+ emake \
+ DESTDIR="${D}" \
+ DOCUMENTATION_PATH="${EPREFIX}"/usr/share/doc/${PF}/html \
+ install
+
+ rm -f "${ED}"/usr/share/doc/${PF}/html/{ChangeLog,LICENSE,NEWS.txt}
+ dodoc {AUTHORS,README}.txt ChangeLog
+
+ if use perl; then
+ find "${ED}" -type f -name perllocal.pod -exec rm -f {} +
+ find "${ED}" -depth -mindepth 1 -type d -empty -exec rm -rf {} +
+ fi
+
+ find "${ED}" -name '*.la' -exec sed -i -e "/^dependency_libs/s:=.*:='':" {} +
+
+ if use opencl; then
+ cat <<-EOF > "${T}"/99${PN}
+ SANDBOX_PREDICT="/dev/nvidiactl:/dev/nvidia-uvm:/dev/ati/card:/dev/dri/card:/dev/dri/renderD128"
+ EOF
+
+ insinto /etc/sandbox.d
+ doins "${T}"/99${PN} #472766
+ fi
+
+ insinto /usr/share/${PN}
+ doins config/*icm
+}
diff --git a/media-gfx/imagemagick/imagemagick-6.9.9.9.ebuild b/media-gfx/imagemagick/imagemagick-6.9.9.9.ebuild
new file mode 100644
index 000000000000..d91b5ff35eef
--- /dev/null
+++ b/media-gfx/imagemagick/imagemagick-6.9.9.9.ebuild
@@ -0,0 +1,185 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit eutils flag-o-matic libtool multilib toolchain-funcs versionator
+
+MY_P=ImageMagick-$(replace_version_separator 3 '-')
+
+DESCRIPTION="A collection of tools and libraries for many image formats"
+HOMEPAGE="http://www.imagemagick.org/"
+SRC_URI="mirror://${PN}/${MY_P}.tar.xz"
+
+LICENSE="imagemagick"
+SLOT="0/${PV}"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
+IUSE="bzip2 corefonts cxx djvu fftw fontconfig fpx graphviz hdri jbig jpeg jpeg2k lcms lqr lzma opencl openexr openmp pango perl png postscript q32 q8 raw static-libs svg test tiff truetype webp wmf X xml zlib"
+
+RESTRICT="perl? ( userpriv )"
+
+RDEPEND="
+ dev-libs/libltdl:0
+ bzip2? ( app-arch/bzip2 )
+ corefonts? ( media-fonts/corefonts )
+ djvu? ( app-text/djvu )
+ fftw? ( sci-libs/fftw:3.0 )
+ fontconfig? ( media-libs/fontconfig )
+ fpx? ( >=media-libs/libfpx-1.3.0-r1 )
+ graphviz? ( media-gfx/graphviz )
+ jbig? ( >=media-libs/jbigkit-2:= )
+ jpeg? ( virtual/jpeg:0 )
+ jpeg2k? ( >=media-libs/openjpeg-2.1.0:2 )
+ lcms? ( media-libs/lcms:2= )
+ lqr? ( media-libs/liblqr )
+ opencl? ( virtual/opencl )
+ openexr? ( media-libs/openexr:0= )
+ pango? ( x11-libs/pango )
+ perl? ( >=dev-lang/perl-5.8.8:0= )
+ png? ( media-libs/libpng:0= )
+ postscript? ( app-text/ghostscript-gpl )
+ raw? ( media-gfx/ufraw )
+ svg? ( gnome-base/librsvg )
+ tiff? ( media-libs/tiff:0= )
+ truetype? (
+ media-fonts/urw-fonts
+ >=media-libs/freetype-2
+ )
+ webp? ( media-libs/libwebp:0= )
+ wmf? ( media-libs/libwmf )
+ X? (
+ x11-libs/libICE
+ x11-libs/libSM
+ x11-libs/libXext
+ x11-libs/libXt
+ )
+ xml? ( dev-libs/libxml2:= )
+ lzma? ( app-arch/xz-utils )
+ zlib? ( sys-libs/zlib:= )"
+DEPEND="${RDEPEND}
+ !media-gfx/graphicsmagick[imagemagick]
+ virtual/pkgconfig
+ X? ( x11-proto/xextproto )"
+
+REQUIRED_USE="corefonts? ( truetype )
+ test? ( corefonts )"
+
+S=${WORKDIR}/${MY_P}
+
+src_prepare() {
+ local mesa_cards ati_cards nvidia_cards render_cards
+ default
+
+ elibtoolize # for Darwin modules
+
+ # For testsuite, see https://bugs.gentoo.org/show_bug.cgi?id=500580#c3
+ shopt -s nullglob
+ ati_cards=$(echo -n /dev/ati/card* | sed 's/ /:/g')
+ if test -n "${ati_cards}"; then
+ addpredict "${ati_cards}"
+ fi
+ mesa_cards=$(echo -n /dev/dri/card* | sed 's/ /:/g')
+ if test -n "${mesa_cards}"; then
+ addpredict "${mesa_cards}"
+ fi
+ nvidia_cards=$(echo -n /dev/nvidia** | sed 's/ /:/g')
+ if test -n "${nvidia_cards}"; then
+ addpredict "${nvidia_cards}"
+ fi
+ render_cards=$(echo -n /dev/dri/renderD128* | sed 's/ /:/g')
+ if test -n "${render_cards}"; then
+ addpredict "${render_cards}"
+ fi
+ shopt -u nullglob
+ addpredict /dev/nvidiactl
+}
+
+src_configure() {
+ local depth=16
+ use q8 && depth=8
+ use q32 && depth=32
+
+ local openmp=disable
+ use openmp && { tc-has-openmp && openmp=enable; }
+
+ [[ ${CHOST} == *-solaris* ]] && append-ldflags -lnsl -lsocket
+
+ local myeconfargs=(
+ $(use_enable static-libs static)
+ $(use_enable hdri)
+ $(use_enable opencl)
+ --with-threads
+ --with-modules
+ --with-quantum-depth=${depth}
+ $(use_with cxx magick-plus-plus)
+ $(use_with perl)
+ --with-perl-options='INSTALLDIRS=vendor'
+ --with-gs-font-dir="${EPREFIX}"/usr/share/fonts/urw-fonts
+ $(use_with bzip2 bzlib)
+ $(use_with X x)
+ $(use_with zlib)
+ --without-autotrace
+ $(use_with postscript dps)
+ $(use_with djvu)
+ --with-dejavu-font-dir="${EPREFIX}"/usr/share/fonts/dejavu
+ $(use_with fftw)
+ $(use_with fpx)
+ $(use_with fontconfig)
+ $(use_with truetype freetype)
+ $(use_with postscript gslib)
+ $(use_with graphviz gvc)
+ $(use_with jbig)
+ $(use_with jpeg)
+ $(use_with jpeg2k openjp2)
+ $(use_with lcms)
+ $(use_with lqr)
+ $(use_with lzma)
+ $(use_with openexr)
+ $(use_with pango)
+ $(use_with png)
+ $(use_with svg rsvg)
+ $(use_with tiff)
+ $(use_with webp)
+ $(use_with corefonts windows-font-dir "${EPREFIX}"/usr/share/fonts/corefonts)
+ $(use_with wmf)
+ $(use_with xml)
+ --${openmp}-openmp
+ --with-gcc-arch=no-automagic
+ )
+ CONFIG_SHELL=$(type -P bash) econf "${myeconfargs[@]}"
+}
+
+src_test() {
+ LD_LIBRARY_PATH="${S}/coders/.libs:${S}/filters/.libs:${S}/Magick++/lib/.libs:${S}/magick/.libs:${S}/wand/.libs" \
+ emake check
+}
+
+src_install() {
+ # Ensure documentation installation files and paths with each release!
+ emake \
+ DESTDIR="${D}" \
+ DOCUMENTATION_PATH="${EPREFIX}"/usr/share/doc/${PF}/html \
+ install
+
+ rm -f "${ED}"/usr/share/doc/${PF}/html/{ChangeLog,LICENSE,NEWS.txt}
+ dodoc {AUTHORS,README}.txt ChangeLog
+
+ if use perl; then
+ find "${ED}" -type f -name perllocal.pod -exec rm -f {} +
+ find "${ED}" -depth -mindepth 1 -type d -empty -exec rm -rf {} +
+ fi
+
+ find "${ED}" -name '*.la' -exec sed -i -e "/^dependency_libs/s:=.*:='':" {} +
+
+ if use opencl; then
+ cat <<-EOF > "${T}"/99${PN}
+ SANDBOX_PREDICT="/dev/nvidiactl:/dev/nvidia-uvm:/dev/ati/card:/dev/dri/card:/dev/dri/renderD128"
+ EOF
+
+ insinto /etc/sandbox.d
+ doins "${T}"/99${PN} #472766
+ fi
+
+ insinto /usr/share/${PN}
+ doins config/*icm
+}
diff --git a/media-gfx/imagemagick/imagemagick-7.0.6.9.ebuild b/media-gfx/imagemagick/imagemagick-7.0.6.9.ebuild
new file mode 100644
index 000000000000..fc7b7060e362
--- /dev/null
+++ b/media-gfx/imagemagick/imagemagick-7.0.6.9.ebuild
@@ -0,0 +1,185 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit eutils flag-o-matic libtool multilib toolchain-funcs versionator
+
+MY_P=ImageMagick-$(replace_version_separator 3 '-')
+
+DESCRIPTION="A collection of tools and libraries for many image formats"
+HOMEPAGE="http://www.imagemagick.org/"
+SRC_URI="mirror://${PN}/${MY_P}.tar.xz"
+
+LICENSE="imagemagick"
+SLOT="0/${PV}"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
+IUSE="bzip2 corefonts cxx djvu fftw fontconfig fpx graphviz hdri jbig jpeg jpeg2k lcms lqr lzma opencl openexr openmp pango perl png postscript q32 q8 raw static-libs svg test tiff truetype webp wmf X xml zlib"
+
+RESTRICT="perl? ( userpriv )"
+
+RDEPEND="
+ dev-libs/libltdl:0
+ bzip2? ( app-arch/bzip2 )
+ corefonts? ( media-fonts/corefonts )
+ djvu? ( app-text/djvu )
+ fftw? ( sci-libs/fftw:3.0 )
+ fontconfig? ( media-libs/fontconfig )
+ fpx? ( >=media-libs/libfpx-1.3.0-r1 )
+ graphviz? ( media-gfx/graphviz )
+ jbig? ( >=media-libs/jbigkit-2:= )
+ jpeg? ( virtual/jpeg:0 )
+ jpeg2k? ( >=media-libs/openjpeg-2.1.0:2 )
+ lcms? ( media-libs/lcms:2= )
+ lqr? ( media-libs/liblqr )
+ opencl? ( virtual/opencl )
+ openexr? ( media-libs/openexr:0= )
+ pango? ( x11-libs/pango )
+ perl? ( >=dev-lang/perl-5.8.8:0= )
+ png? ( media-libs/libpng:0= )
+ postscript? ( app-text/ghostscript-gpl )
+ raw? ( media-gfx/ufraw )
+ svg? ( gnome-base/librsvg )
+ tiff? ( media-libs/tiff:0= )
+ truetype? (
+ media-fonts/urw-fonts
+ >=media-libs/freetype-2
+ )
+ webp? ( media-libs/libwebp:0= )
+ wmf? ( media-libs/libwmf )
+ X? (
+ x11-libs/libICE
+ x11-libs/libSM
+ x11-libs/libXext
+ x11-libs/libXt
+ )
+ xml? ( dev-libs/libxml2:= )
+ lzma? ( app-arch/xz-utils )
+ zlib? ( sys-libs/zlib:= )"
+DEPEND="${RDEPEND}
+ !media-gfx/graphicsmagick[imagemagick]
+ virtual/pkgconfig
+ X? ( x11-proto/xextproto )"
+
+REQUIRED_USE="corefonts? ( truetype )
+ test? ( corefonts )"
+
+S=${WORKDIR}/${MY_P}
+
+src_prepare() {
+ local ati_cards mesa_cards nvidia_cards render_cards
+ default
+
+ elibtoolize # for Darwin modules
+
+ # For testsuite, see https://bugs.gentoo.org/show_bug.cgi?id=500580#c3
+ shopt -s nullglob
+ ati_cards=$(echo -n /dev/ati/card* | sed 's/ /:/g')
+ if test -n "${ati_cards}"; then
+ addpredict "${ati_cards}"
+ fi
+ mesa_cards=$(echo -n /dev/dri/card* | sed 's/ /:/g')
+ if test -n "${mesa_cards}"; then
+ addpredict "${mesa_cards}"
+ fi
+ nvidia_cards=$(echo -n /dev/nvidia* | sed 's/ /:/g')
+ if test -n "${nvidia_cards}"; then
+ addpredict "${nvidia_cards}"
+ fi
+ render_cards=$(echo -n /dev/dri/renderD128* | sed 's/ /:/g')
+ if test -n "${render_cards}"; then
+ addpredict "${render_cards}"
+ fi
+ shopt -u nullglob
+ addpredict /dev/nvidiactl
+}
+
+src_configure() {
+ local depth=16
+ use q8 && depth=8
+ use q32 && depth=32
+
+ local openmp=disable
+ use openmp && { tc-has-openmp && openmp=enable; }
+
+ [[ ${CHOST} == *-solaris* ]] && append-ldflags -lnsl -lsocket
+
+ local myeconfargs=(
+ $(use_enable static-libs static)
+ $(use_enable hdri)
+ $(use_enable opencl)
+ --with-threads
+ --with-modules
+ --with-quantum-depth=${depth}
+ $(use_with cxx magick-plus-plus)
+ $(use_with perl)
+ --with-perl-options='INSTALLDIRS=vendor'
+ --with-gs-font-dir="${EPREFIX}"/usr/share/fonts/urw-fonts
+ $(use_with bzip2 bzlib)
+ $(use_with X x)
+ $(use_with zlib)
+ --without-autotrace
+ $(use_with postscript dps)
+ $(use_with djvu)
+ --with-dejavu-font-dir="${EPREFIX}"/usr/share/fonts/dejavu
+ $(use_with fftw)
+ $(use_with fpx)
+ $(use_with fontconfig)
+ $(use_with truetype freetype)
+ $(use_with postscript gslib)
+ $(use_with graphviz gvc)
+ $(use_with jbig)
+ $(use_with jpeg)
+ $(use_with jpeg2k openjp2)
+ $(use_with lcms)
+ $(use_with lqr)
+ $(use_with lzma)
+ $(use_with openexr)
+ $(use_with pango)
+ $(use_with png)
+ $(use_with svg rsvg)
+ $(use_with tiff)
+ $(use_with webp)
+ $(use_with corefonts windows-font-dir "${EPREFIX}"/usr/share/fonts/corefonts)
+ $(use_with wmf)
+ $(use_with xml)
+ --${openmp}-openmp
+ --with-gcc-arch=no-automagic
+ )
+ CONFIG_SHELL=$(type -P bash) econf "${myeconfargs[@]}"
+}
+
+src_test() {
+ LD_LIBRARY_PATH="${S}/coders/.libs:${S}/filters/.libs:${S}/Magick++/lib/.libs:${S}/magick/.libs:${S}/wand/.libs" \
+ emake check
+}
+
+src_install() {
+ # Ensure documentation installation files and paths with each release!
+ emake \
+ DESTDIR="${D}" \
+ DOCUMENTATION_PATH="${EPREFIX}"/usr/share/doc/${PF}/html \
+ install
+
+ rm -f "${ED}"/usr/share/doc/${PF}/html/{ChangeLog,LICENSE,NEWS.txt}
+ dodoc {AUTHORS,README}.txt ChangeLog
+
+ if use perl; then
+ find "${ED}" -type f -name perllocal.pod -exec rm -f {} +
+ find "${ED}" -depth -mindepth 1 -type d -empty -exec rm -rf {} +
+ fi
+
+ find "${ED}" -name '*.la' -exec sed -i -e "/^dependency_libs/s:=.*:='':" {} +
+
+ if use opencl; then
+ cat <<-EOF > "${T}"/99${PN}
+ SANDBOX_PREDICT="/dev/nvidiactl:/dev/nvidia-uvm:/dev/ati/card:/dev/dri/card:/dev/dri/renderD128"
+ EOF
+
+ insinto /etc/sandbox.d
+ doins "${T}"/99${PN} #472766
+ fi
+
+ insinto /usr/share/${PN}
+ doins config/*icm
+}
diff --git a/media-gfx/imagemagick/imagemagick-7.0.7.6.ebuild b/media-gfx/imagemagick/imagemagick-7.0.7.6.ebuild
new file mode 100644
index 000000000000..fc7b7060e362
--- /dev/null
+++ b/media-gfx/imagemagick/imagemagick-7.0.7.6.ebuild
@@ -0,0 +1,185 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit eutils flag-o-matic libtool multilib toolchain-funcs versionator
+
+MY_P=ImageMagick-$(replace_version_separator 3 '-')
+
+DESCRIPTION="A collection of tools and libraries for many image formats"
+HOMEPAGE="http://www.imagemagick.org/"
+SRC_URI="mirror://${PN}/${MY_P}.tar.xz"
+
+LICENSE="imagemagick"
+SLOT="0/${PV}"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
+IUSE="bzip2 corefonts cxx djvu fftw fontconfig fpx graphviz hdri jbig jpeg jpeg2k lcms lqr lzma opencl openexr openmp pango perl png postscript q32 q8 raw static-libs svg test tiff truetype webp wmf X xml zlib"
+
+RESTRICT="perl? ( userpriv )"
+
+RDEPEND="
+ dev-libs/libltdl:0
+ bzip2? ( app-arch/bzip2 )
+ corefonts? ( media-fonts/corefonts )
+ djvu? ( app-text/djvu )
+ fftw? ( sci-libs/fftw:3.0 )
+ fontconfig? ( media-libs/fontconfig )
+ fpx? ( >=media-libs/libfpx-1.3.0-r1 )
+ graphviz? ( media-gfx/graphviz )
+ jbig? ( >=media-libs/jbigkit-2:= )
+ jpeg? ( virtual/jpeg:0 )
+ jpeg2k? ( >=media-libs/openjpeg-2.1.0:2 )
+ lcms? ( media-libs/lcms:2= )
+ lqr? ( media-libs/liblqr )
+ opencl? ( virtual/opencl )
+ openexr? ( media-libs/openexr:0= )
+ pango? ( x11-libs/pango )
+ perl? ( >=dev-lang/perl-5.8.8:0= )
+ png? ( media-libs/libpng:0= )
+ postscript? ( app-text/ghostscript-gpl )
+ raw? ( media-gfx/ufraw )
+ svg? ( gnome-base/librsvg )
+ tiff? ( media-libs/tiff:0= )
+ truetype? (
+ media-fonts/urw-fonts
+ >=media-libs/freetype-2
+ )
+ webp? ( media-libs/libwebp:0= )
+ wmf? ( media-libs/libwmf )
+ X? (
+ x11-libs/libICE
+ x11-libs/libSM
+ x11-libs/libXext
+ x11-libs/libXt
+ )
+ xml? ( dev-libs/libxml2:= )
+ lzma? ( app-arch/xz-utils )
+ zlib? ( sys-libs/zlib:= )"
+DEPEND="${RDEPEND}
+ !media-gfx/graphicsmagick[imagemagick]
+ virtual/pkgconfig
+ X? ( x11-proto/xextproto )"
+
+REQUIRED_USE="corefonts? ( truetype )
+ test? ( corefonts )"
+
+S=${WORKDIR}/${MY_P}
+
+src_prepare() {
+ local ati_cards mesa_cards nvidia_cards render_cards
+ default
+
+ elibtoolize # for Darwin modules
+
+ # For testsuite, see https://bugs.gentoo.org/show_bug.cgi?id=500580#c3
+ shopt -s nullglob
+ ati_cards=$(echo -n /dev/ati/card* | sed 's/ /:/g')
+ if test -n "${ati_cards}"; then
+ addpredict "${ati_cards}"
+ fi
+ mesa_cards=$(echo -n /dev/dri/card* | sed 's/ /:/g')
+ if test -n "${mesa_cards}"; then
+ addpredict "${mesa_cards}"
+ fi
+ nvidia_cards=$(echo -n /dev/nvidia* | sed 's/ /:/g')
+ if test -n "${nvidia_cards}"; then
+ addpredict "${nvidia_cards}"
+ fi
+ render_cards=$(echo -n /dev/dri/renderD128* | sed 's/ /:/g')
+ if test -n "${render_cards}"; then
+ addpredict "${render_cards}"
+ fi
+ shopt -u nullglob
+ addpredict /dev/nvidiactl
+}
+
+src_configure() {
+ local depth=16
+ use q8 && depth=8
+ use q32 && depth=32
+
+ local openmp=disable
+ use openmp && { tc-has-openmp && openmp=enable; }
+
+ [[ ${CHOST} == *-solaris* ]] && append-ldflags -lnsl -lsocket
+
+ local myeconfargs=(
+ $(use_enable static-libs static)
+ $(use_enable hdri)
+ $(use_enable opencl)
+ --with-threads
+ --with-modules
+ --with-quantum-depth=${depth}
+ $(use_with cxx magick-plus-plus)
+ $(use_with perl)
+ --with-perl-options='INSTALLDIRS=vendor'
+ --with-gs-font-dir="${EPREFIX}"/usr/share/fonts/urw-fonts
+ $(use_with bzip2 bzlib)
+ $(use_with X x)
+ $(use_with zlib)
+ --without-autotrace
+ $(use_with postscript dps)
+ $(use_with djvu)
+ --with-dejavu-font-dir="${EPREFIX}"/usr/share/fonts/dejavu
+ $(use_with fftw)
+ $(use_with fpx)
+ $(use_with fontconfig)
+ $(use_with truetype freetype)
+ $(use_with postscript gslib)
+ $(use_with graphviz gvc)
+ $(use_with jbig)
+ $(use_with jpeg)
+ $(use_with jpeg2k openjp2)
+ $(use_with lcms)
+ $(use_with lqr)
+ $(use_with lzma)
+ $(use_with openexr)
+ $(use_with pango)
+ $(use_with png)
+ $(use_with svg rsvg)
+ $(use_with tiff)
+ $(use_with webp)
+ $(use_with corefonts windows-font-dir "${EPREFIX}"/usr/share/fonts/corefonts)
+ $(use_with wmf)
+ $(use_with xml)
+ --${openmp}-openmp
+ --with-gcc-arch=no-automagic
+ )
+ CONFIG_SHELL=$(type -P bash) econf "${myeconfargs[@]}"
+}
+
+src_test() {
+ LD_LIBRARY_PATH="${S}/coders/.libs:${S}/filters/.libs:${S}/Magick++/lib/.libs:${S}/magick/.libs:${S}/wand/.libs" \
+ emake check
+}
+
+src_install() {
+ # Ensure documentation installation files and paths with each release!
+ emake \
+ DESTDIR="${D}" \
+ DOCUMENTATION_PATH="${EPREFIX}"/usr/share/doc/${PF}/html \
+ install
+
+ rm -f "${ED}"/usr/share/doc/${PF}/html/{ChangeLog,LICENSE,NEWS.txt}
+ dodoc {AUTHORS,README}.txt ChangeLog
+
+ if use perl; then
+ find "${ED}" -type f -name perllocal.pod -exec rm -f {} +
+ find "${ED}" -depth -mindepth 1 -type d -empty -exec rm -rf {} +
+ fi
+
+ find "${ED}" -name '*.la' -exec sed -i -e "/^dependency_libs/s:=.*:='':" {} +
+
+ if use opencl; then
+ cat <<-EOF > "${T}"/99${PN}
+ SANDBOX_PREDICT="/dev/nvidiactl:/dev/nvidia-uvm:/dev/ati/card:/dev/dri/card:/dev/dri/renderD128"
+ EOF
+
+ insinto /etc/sandbox.d
+ doins "${T}"/99${PN} #472766
+ fi
+
+ insinto /usr/share/${PN}
+ doins config/*icm
+}
diff --git a/media-gfx/imagemagick/metadata.xml b/media-gfx/imagemagick/metadata.xml
new file mode 100644
index 000000000000..c0cb28c0d869
--- /dev/null
+++ b/media-gfx/imagemagick/metadata.xml
@@ -0,0 +1,19 @@
+<?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>
+ <use>
+ <flag name="corefonts">Use <pkg>media-fonts/corefonts</pkg> which is required by some commands</flag>
+ <flag name="fpx">Enable <pkg>media-libs/libfpx</pkg> support</flag>
+ <flag name="hdri">enable High Dynamic Range Images formats</flag>
+ <flag name="lqr">Enable experimental liquid rescale support using <pkg>media-libs/liblqr</pkg></flag>
+ <flag name="opencl">Enable OpenCL support</flag>
+ <flag name="pango">Enable Pango support using <pkg>x11-libs/pango</pkg></flag>
+ <flag name="q32">Set quantum depth value to 32</flag>
+ <flag name="q8">Set quantum depth value to 8</flag>
+ <flag name="webp">Enable webp image format support using <pkg>media-libs/libwebp</pkg></flag>
+ </use>
+</pkgmetadata>
diff --git a/media-gfx/imageworsener/Manifest b/media-gfx/imageworsener/Manifest
new file mode 100644
index 000000000000..e037cc10b962
--- /dev/null
+++ b/media-gfx/imageworsener/Manifest
@@ -0,0 +1,7 @@
+DIST imageworsener-1.3.1.tar.gz 661055 SHA256 beb0c988c02b1d461dccdb3d6c4fc229316a692ea38689874013ba349dff66d1 SHA512 a44589e720bc91662e286096f744347e3ec3669c33791f81c3f2aeb9d0514ed909dc73615db1d7631139df72aba9ccfbada61b7dcf82f6ffac622ab64a186b49 WHIRLPOOL a7d995a63f9e637ce4ab5da4967ef8e1b8a9108b4ace256e6ddf2b33c9a5445cd85caf74f83f51635789971676124c5b175c16df2cccf85f93e6544cd59ba096
+DIST imageworsener-1.3.2.tar.gz 661710 SHA256 0946f8e82eaf4c51b7f3f2624eef89bfdf73b7c5b04d23aae8d3fbe01cca3ea2 SHA512 99b30ac838f437a85985eb830d0557f22c69bc40ef2dafe3493f145b70a89b72699e134f061719fa0dcc8b585ed2b418a6afc0c2f7ce67e2e9383d48a7b7b668 WHIRLPOOL 439e38478334fb66455a77fe674a58c9392f009420f9465e533f0101824e18d9c537910af6d5eaa1f0f32f8ee22b710ec2963f9003e6e39bc92e44115f6b7abe
+EBUILD imageworsener-1.3.1.ebuild 1007 SHA256 5d7b952adb0fc2442a0b804c99edb4a74b83541e911f105ebcd20e01b6ef98ec SHA512 bfe07f2ebb359e3b53cf2f86a7bb766084633b6a5f14a0aba8d8997797f5a36da8e81a30ba62715d73461bdbdf56dea887951663d8891a1514b1dc8c31f398e7 WHIRLPOOL 32c7c389eb8ae64b07158a36b8839ffab1bf8fcae3df97840da48894a684a31716939b0db499439d2fcecf11b1f11017f3da2fae76375be2294d3cafab77c93f
+EBUILD imageworsener-1.3.2.ebuild 1009 SHA256 93f9ca4629e67ff17afa9fed917db52088de588997a5c009ae3c41b6e698d91a SHA512 2807e1a69dd14048d592a1aa7a3ed8aae752d1bdcfe41ccf79c37acf05c2f1b16ceb10e3cf96d7ed7690282839ecc10ad519ffe7efaa90c089b54127b2fcffb3 WHIRLPOOL d951478d68048140971610e723a7206d80dda451f8c9c951837f057f2f9e89ba4b5c687437a083f7320d56a60d098000378605176bcfc0291072cf932ef66a44
+MISC ChangeLog 2880 SHA256 4b8517955d6e569a2e82cb4c3b8dc899f72be4221acd2b1c195b1c0ac4b7f7ba SHA512 9efddf99bb2f5951768f06d750390b977b005345bf0480ea4fcb0910dd05dc127e70ef79fb982eb5d5a0a7a5b4803c694c213b1ed97c8a0f785fe5d24d585fa3 WHIRLPOOL 5eca88843ec7e23725a166d40494b1904ccfe8a53c01e4f5056e4fd00c5020b5d74a0a25cc4a7478c5aeec7878e6a701f4b625363bb12c3f024f30795706f83f
+MISC ChangeLog-2015 4803 SHA256 de31e91ac68d5ce7c33e999f39d72dbd91db0dd49e232a11f819faa9645a217b SHA512 1fb53a2cd82449db3ed3c853f93a4fa73e079052dcdf0e650e049a4a433481ee39685ba01005522bd8df76960cffbb87825c94b6f98b0fbdbb9840a6a2fd15c7 WHIRLPOOL a2ef88194d3b0255b0dc8dbe46ddfcb6fbce30e6ddb0e30a5bdb51d41c4d2a5a14b53bdbddda9f6818ea320b00cb9b21b1fb7cfe3a58d5c41bb44e91eb9a0049
+MISC metadata.xml 317 SHA256 5d10bd548020dee0cd77c547cb2cf7da3c2e0325320bf519e2c82b53711d6640 SHA512 128c5649fb194a4fef505f3445de2e4f114a966ddde1af3ac3ca5af23b260e0c038b743a7f95f7cc5e3268aeebbdfa9afeca7d152b5cb7a297d69c1ad4ef4e6a WHIRLPOOL babda29d7160676bdc4920a0f5a2f83c84f6978188cc04227c6b02df5f5f6de01956a55ce7e6fe1acbde094fe4a015d20453414ab550d80cae187bc1af9bc9f7
diff --git a/media-gfx/imageworsener/imageworsener-1.3.1.ebuild b/media-gfx/imageworsener/imageworsener-1.3.1.ebuild
new file mode 100644
index 000000000000..39edd7cfaa89
--- /dev/null
+++ b/media-gfx/imageworsener/imageworsener-1.3.1.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit eutils
+
+MY_P=${PN}-src-${PV}
+MY_PN=imagew
+
+DESCRIPTION="Utility for image scaling and processing"
+HOMEPAGE="http://entropymine.com/imageworsener/"
+SRC_URI="http://entropymine.com/${PN}/${P}.tar.gz"
+
+LICENSE="MIT-with-advertising"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="jpeg png static-libs test webp zlib"
+
+DEPEND="png? ( media-libs/libpng:0 )
+ jpeg? ( virtual/jpeg:0 )
+ webp? ( >=media-libs/libwebp-0.1.3 )
+ zlib? ( sys-libs/zlib )"
+RDEPEND="${DEPEND}"
+
+REQUIRED_USE="test? ( jpeg png webp zlib )"
+
+src_configure() {
+ local switch=''
+ use test && switch=test
+
+ econf \
+ $(use_enable static-libs static) \
+ $(use_with ${switch} jpeg) \
+ $(use_with ${switch} png) \
+ $(use_with ${switch} webp) \
+ $(use_with ${switch} zlib)
+}
+
+src_install() {
+ default
+ dodoc {changelog,readme,technical}.txt
+ prune_libtool_files
+}
+
+src_test() {
+ cd "${S}"/tests || die
+ ./runtest "${S}"/${MY_PN}
+}
diff --git a/media-gfx/imageworsener/imageworsener-1.3.2.ebuild b/media-gfx/imageworsener/imageworsener-1.3.2.ebuild
new file mode 100644
index 000000000000..c03573408ae1
--- /dev/null
+++ b/media-gfx/imageworsener/imageworsener-1.3.2.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit eutils
+
+MY_P=${PN}-src-${PV}
+MY_PN=imagew
+
+DESCRIPTION="Utility for image scaling and processing"
+HOMEPAGE="http://entropymine.com/imageworsener/"
+SRC_URI="http://entropymine.com/${PN}/${P}.tar.gz"
+
+LICENSE="MIT-with-advertising"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="jpeg png static-libs test webp zlib"
+
+DEPEND="png? ( media-libs/libpng:0 )
+ jpeg? ( virtual/jpeg:0 )
+ webp? ( >=media-libs/libwebp-0.1.3 )
+ zlib? ( sys-libs/zlib )"
+RDEPEND="${DEPEND}"
+
+REQUIRED_USE="test? ( jpeg png webp zlib )"
+
+src_configure() {
+ local switch=''
+ use test && switch=test
+
+ econf \
+ $(use_enable static-libs static) \
+ $(use_with ${switch} jpeg) \
+ $(use_with ${switch} png) \
+ $(use_with ${switch} webp) \
+ $(use_with ${switch} zlib)
+}
+
+src_install() {
+ default
+ dodoc {changelog,readme,technical}.txt
+ prune_libtool_files
+}
+
+src_test() {
+ cd "${S}"/tests || die
+ ./runtest "${S}"/${MY_PN}
+}
diff --git a/media-gfx/imageworsener/metadata.xml b/media-gfx/imageworsener/metadata.xml
new file mode 100644
index 000000000000..41005b6e9c32
--- /dev/null
+++ b/media-gfx/imageworsener/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>sping@gentoo.org</email>
+ <name>Sebastian Pipping</name>
+</maintainer>
+<use>
+ <flag name="webp">enable webp image format support</flag>
+</use>
+</pkgmetadata>
diff --git a/media-gfx/img2pdf/Manifest b/media-gfx/img2pdf/Manifest
new file mode 100644
index 000000000000..6fb9388740a1
--- /dev/null
+++ b/media-gfx/img2pdf/Manifest
@@ -0,0 +1,3 @@
+DIST img2pdf-0.2.4.tar.gz 54426 SHA256 140b70fa3a3bfb54e92947818cee01483a4f1492b5d1d02b0f649257f5ffc9ae SHA512 c2d99da7076411cf4acabe8929fc8af4005ef1f3e3d9edc953f2731b8d41159c9e4637a803765e1405c595daebfb3d519d4c7903003ce0118d8b0c6e88f11860 WHIRLPOOL 12ab900d9758aadc79195dd81dc82c5193df0dbc1041083ddf50a7786f555c8c82d2fb622bc4a6c477e9cf500527fa448587192f244c53fec6db4891c52d8f47
+EBUILD img2pdf-0.2.4.ebuild 576 SHA256 3e6d599a2c3cfed00ab56a395140ad23f368414dc3c7c1bc6d39ecfbf99993c6 SHA512 b3239673b80292319b7f5e9286d6b9ecf20a0e478e3fc685f3dd448dbbb9d598b28bfb086bf8a3cd5dbb7431e3a2d89f1dc975f87aca56d7bf45897535dd0002 WHIRLPOOL 6e96e18edfb258cd26bcee9967d69fc4013fd0e76f46fed3525b5975d4282676d71fb641a11fe75722df2717be3a2194c19c37220ba5aa7d977aeee8f10863a1
+MISC metadata.xml 1096 SHA256 590e9d9df2a9ea58e52ee42028c80c09140ae0026be79da9c7e63ab4ed8319c9 SHA512 c4f5e02479a3ca0d6a2a52c58c25197cae533855500327c84c694b82e2ad625e149124c555b8822f79ec8000a4f926b6e21dd59db92b0989a316687d56775531 WHIRLPOOL 45b78d8125c0fc96b82239b1a5ab1fde2f13de2bad86b92f64dcb7988d63d801fa3b436563228c45b62d2e3e597dc35adb8715e1f5f440019b09a0a4d9103b6d
diff --git a/media-gfx/img2pdf/img2pdf-0.2.4.ebuild b/media-gfx/img2pdf/img2pdf-0.2.4.ebuild
new file mode 100644
index 000000000000..c392f9e3c04d
--- /dev/null
+++ b/media-gfx/img2pdf/img2pdf-0.2.4.ebuild
@@ -0,0 +1,25 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python3_{4,5,6} )
+
+inherit distutils-r1
+
+DESCRIPTION="Losslessly convert raster images to PDF"
+HOMEPAGE="https://gitlab.mister-muffin.de/josch/img2pdf"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="LGPL-3+"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="test"
+
+DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
+ test? ( dev-python/pdfrw[${PYTHON_USEDEP}] )"
+RDEPEND="dev-python/pillow[${PYTHON_USEDEP}]"
+
+python_test() {
+ esetup.py test
+}
diff --git a/media-gfx/img2pdf/metadata.xml b/media-gfx/img2pdf/metadata.xml
new file mode 100644
index 000000000000..e2dc940bfb61
--- /dev/null
+++ b/media-gfx/img2pdf/metadata.xml
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>sir.suriv@gmail.com</email>
+ <name>Diogo Pereira</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+ </maintainer>
+ <longdescription lang="en">
+ Losslessly convert raster images to PDF. The file size will not
+ unnecessarily increase. It can for example be used to create a PDF
+ document from a number of scans that are only available in JPEG format.
+ Existing solutions would either re-encode the input JPEG files (leading
+ to quality loss) or store them in the zip/flate format which results in
+ the PDF becoming unnecessarily large in terms of its file size.
+ </longdescription>
+ <upstream>
+ <maintainer status="active">
+ <email>josch@mister-muffin.de</email>
+ <name>Johannes Schauer</name>
+ </maintainer>
+ <remote-id type="pypi">img2pdf</remote-id>
+ <bugs-to>https://gitlab.mister-muffin.de/josch/img2pdf/issues</bugs-to>
+ </upstream>
+</pkgmetadata>
diff --git a/media-gfx/imv/Manifest b/media-gfx/imv/Manifest
new file mode 100644
index 000000000000..94792e522775
--- /dev/null
+++ b/media-gfx/imv/Manifest
@@ -0,0 +1,5 @@
+DIST imv-2.1.3.tar.gz 27664 SHA256 f0b9acd7cff1d2f7301cb5cffb261ace4d0af2003dc4a293d9a37e73074978b7 SHA512 0ecdaad9b4518c2107a14969cf9348542c2ef88707be7b2b5eed435915292687d63e4ebd29cb42297cbc3dfee408ec29fd019ad6ae4f0cd789753aad84aa8128 WHIRLPOOL 66aee4eb99650c542bd776ea0383c0e22f58140d462901571da90644353c9100f7462104b2d7625e3af2ed7aa2817139b4edde53fea58afb7a4dc5b63ca1c18e
+EBUILD imv-2.1.3.ebuild 668 SHA256 095b169b66180900c432a0ff1260622e59840ccb7882dfa85911bbb41c96c282 SHA512 04ffd663398a06c61d30d2591571b4b4633147d6327b8815bb43e1a2a38a0a14d2d59d2f9ede068217fba9bb50ae50083645cb1cb64c3a331fd9ec124c785aa3 WHIRLPOOL 6b0ad6ee222dec74feab71359c0f6060a40c18dfeac54449c3ce82f06a66a803f1840a48c0cb229aea58d8f88a183df59c9ec97141c0065849d8a12ed6073568
+EBUILD imv-9999.ebuild 635 SHA256 100f97693b67fb5798a1670292a0aa2b0fc979cabb771a126f488b79c25ec46c SHA512 b2d9daa0ad63e7d0dc472ebe479c4c59a19dd81f68453014ae2865a75fd1ae4dd178f3480a171350d1d72698e1007d8761d15ee43347bae7757a3e5ad4b3d7b0 WHIRLPOOL 99a05798e4b7490a7d7cd47f1a6e3b250f86df973889d1430622c8f86243f5550f3a081dc73435617e2e127aef29e9650f46f26c48060978a9d1b95925c9192c
+MISC ChangeLog 1490 SHA256 173d2ce95c913573c232700d00bab924f96f5bf83ebfeba1f5cb6ec932c618bb SHA512 1d7da6593258659ef598512cd484465fe89198b2816661b07b7b5546476abbe533632f0403110b015cf1206bf100c55c764b3ae60aa37467c49018576a573e68 WHIRLPOOL af0ca9e624ab99aebcfc14a2f65c2c6ccd8f47c2ac889c034dae3c966de800efae39fc8d7fddef6e897493488fe17f1075619adf105a2b0170c372bb802e3203
+MISC metadata.xml 458 SHA256 eeabb430b16d8e1b503cc3e87394c5cf02f1d3454fcaed8a2fa62b3088ed51f0 SHA512 50c52ee98f3dc37c68a2d4034ea3eb6809b46db6dce50520a10553280758dc34eb0670954d1cb8ee8b0cb2fbf3362d381901a0370123eccb61177bffc2485eb4 WHIRLPOOL 03f7809d4c1754e78ad1adaf79df83e70d6ff172dc18af43b72d53db00ecc87f310bf668e5c0d54196e06db5b10a027fa0dfdd7dcda084004981a065f3f0a539
diff --git a/media-gfx/imv/imv-2.1.3.ebuild b/media-gfx/imv/imv-2.1.3.ebuild
new file mode 100644
index 000000000000..516993fa83fd
--- /dev/null
+++ b/media-gfx/imv/imv-2.1.3.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit fdo-mime
+
+DESCRIPTION="Minimal image viewer designed for tiling window manager users"
+HOMEPAGE="https://github.com/eXeC64/imv"
+SRC_URI="https://github.com/eXeC64/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="test"
+
+RDEPEND="
+ !sys-apps/renameutils
+ media-libs/fontconfig
+ media-libs/libsdl2
+ media-libs/sdl2-ttf
+ media-libs/freeimage
+"
+
+DEPEND="${RDEPEND}
+ test? ( dev-util/cmocka )"
+
+pkg_postinst() {
+ fdo-mime_desktop_database_update
+}
+
+pkg_postrm() {
+ fdo-mime_desktop_database_update
+}
diff --git a/media-gfx/imv/imv-9999.ebuild b/media-gfx/imv/imv-9999.ebuild
new file mode 100644
index 000000000000..bd5cc85e3766
--- /dev/null
+++ b/media-gfx/imv/imv-9999.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit fdo-mime git-r3
+
+DESCRIPTION="Minimal image viewer designed for tiling window manager users"
+HOMEPAGE="https://github.com/eXeC64/imv"
+EGIT_REPO_URI="https://github.com/eXeC64/imv.git"
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS=""
+IUSE="test"
+
+RDEPEND="
+ !sys-apps/renameutils
+ media-libs/fontconfig
+ media-libs/libsdl2
+ media-libs/sdl2-ttf
+ media-libs/freeimage
+"
+
+DEPEND="${RDEPEND}
+ test? ( dev-util/cmocka )"
+
+pkg_postinst() {
+ fdo-mime_desktop_database_update
+}
+
+pkg_postrm() {
+ fdo-mime_desktop_database_update
+}
diff --git a/media-gfx/imv/metadata.xml b/media-gfx/imv/metadata.xml
new file mode 100644
index 000000000000..4272ef098767
--- /dev/null
+++ b/media-gfx/imv/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>hilobakho@gmail.com</email>
+ <name>Mykyta Holubakha</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Gentoo Proxy Maintainers Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">eXeC64/imv</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/media-gfx/inkscape/Manifest b/media-gfx/inkscape/Manifest
new file mode 100644
index 000000000000..ce237eb444e3
--- /dev/null
+++ b/media-gfx/inkscape/Manifest
@@ -0,0 +1,17 @@
+AUX inkscape-0.48.4-epython.patch 441 SHA256 279c1dd278bf69c69f4ac2351d8d069f08aa444e45c32ccd564f6962304f3cdb SHA512 49253f2cc984b70cb09e90393fda8690efb47b511883ec6e8fcd9942442dadbb2085f5b6eb529b8cf4cb7cd1f4b8e39b88bf68a867d7f0724382d3da89eddc67 WHIRLPOOL 768acee72f3747fdb23a5bdf0665364a316c8b6d9abaa582a7d897153b38f271db25bc1a9c2d4893a45021f1098565dbedba77360add0d50404f2320cb134d87
+AUX inkscape-0.91-fix-gtkmm-2.48.patch 2302 SHA256 e1d8210e3d7ee684ffcaaabe72790cf884af6e44ea3a2f153882e168afcb3ffa SHA512 fcb986d33d1481d9cc9343c833b3cbdd5cc1d25fe71692e078b0ca4b2d934cf776e668500ca65f0b6179e1499281763ba5bfbd0f31db93c0fdf40dee21125215 WHIRLPOOL 3208277a57517ad90799b482a581fd0f5329a522f03f15662488ee405d04246d4a305f7bc7bd49a1bfde5cf45e0ca4bf6849044a2f027ba97ff28da5040454a5
+AUX inkscape-0.91_pre3-automagic.patch 5281 SHA256 100b94eee2a9f5ffacafe0732735342cb14b873296de1e982e7db24ced31124e SHA512 badd58f08d1e3b4e84e8b18de23e08a1ad44b24367e05092629e7793b4c5f54653b3c47ec9189f1297d071cb3ac9cb098ca65aa16f79e5c3e0bb3a97ee5cc9a2 WHIRLPOOL 21ea0226ae352d6225e2065b74e3763b9feb71feb8c9bb072f46a5e7496eae619c42ac62cd560017f0cfb426993f7da5d157c3fc1562a397c90228c20a9d51ad
+AUX inkscape-0.91_pre3-cppflags.patch 493 SHA256 49596723efb606990e2131ba637567a2749add6a55505bc6bb6156d3c96ac087 SHA512 12253f89d51b2ad7610381aeba637d844c5ee2579eebc75aaad1791c87ef455a6a9a8dd1db5fc9e1adf51a928e8efe06946efc73e3743e209f970a457b397c35 WHIRLPOOL 037907d21ddc1234376188cf3837e5fd2d671fc7f3ad7c254489525b17e5de9f93485cecbb8c451a2e86b8adb3c8fe34a4d518c083854007f527741860375cc8
+AUX inkscape-0.91_pre3-desktop.patch 693 SHA256 016adfaddb1c6c509318430fab9d74ee81f5ce9f71a85ccb4b06d6dc221fff03 SHA512 036ddbe38cb2bb229a864ed43445d1b9a2b3a1ade882edf8f24aa2df10c317f60c6be3849470729a1dabe81282864fcfa6e6283b0df5cf0fdbc2f31f0c3bdc46 WHIRLPOOL cf4c975d042490b364fa1705c3fc6cdcbc838674831217a94876dc0ebdbca2fbe197e137b59acce91b2adf2daaaeb023ff3fadb5c62a456cc30b3b699cf8e413
+AUX inkscape-0.91_pre3-exif.patch 321 SHA256 ad4295f73e386ebe89c6f86d456853ceba0b7af24a584b51348b788280145ef0 SHA512 c35b97cceba4e9470bd04d3f01f1eb8469c817b848c604540e61830321281b642856b6e38446cb9762c1501c16606ace2776344df20fd80a6952e6cd2e6e9ff2 WHIRLPOOL 2234659df87bfd28099850828a39ba9619431de92d4154d766e96a2cac8d5acc5b56c49959ce4cf7f54e5e119e8d69495c14d79e4bc9cf3fd6fb0d35806d99c5
+AUX inkscape-0.91_pre3-sk-man.patch 362 SHA256 56e24d84d5217308df178d64214ec13c4b81ba59541cc6f52415f2207825a274 SHA512 5b4b6fd927b88fbf5d113da7fbd70a5d39a7926849b7e0118bbade0218e8429e751d977e0630894ba7f024d1628c4ff9e54c9a0a4ed6b9b87315e200b04bd8ab WHIRLPOOL d92a002591b0c4c6dd898fd720827ef94d6f801fd025ad8bfd4eaddb262240fb9cbc84485087063485292a300a7411a21c1666de8a3f51178103720079f57eee
+AUX inkscape-0.92.1-automagic.patch 5421 SHA256 6e78f7c83c4112142dbd1e0acd1eb9f0f8f961e4e2993e3c4046f3bd2feb7ef8 SHA512 c6bc791c8e0a4302f2b21c1ad4d39e8e880017f4cdcf8b23d7749498a0f0a1d2460abeab3216e9eeb6b87a300e17451ace86c738c58a174e92946cb280ef43b9 WHIRLPOOL df3f024943af84bbd26f7446746f013cffb8e123e9cb21c1921a728d87f84a350decd6d8e19252406faa1cedcc618d63b4819aaf964b441cc624548fb6e08e52
+AUX inkscape-0.92.1-desktop.patch 919 SHA256 d86658e1579d1d6730f9b332cbc2c26ba2723aa36ca3418f1b9b422592d19fe8 SHA512 0000e5c6bd83e7d3994712d5a9f7369b2ecb7a15ba8371bfc9e2646b33293334eff987ffc360c2753025d0561395368024587d71ffc015f5a0e8c39077fd45b2 WHIRLPOOL d4b8e3591a2b553e10cdbc2a30df5c05e1d3f083d2f417956492a917b712a827eca4826f07f3c23dee1764b8711756e58b9639a6fcc0a8d91201a11e7491ce89
+DIST inkscape-0.91.tar.bz2 25858909 SHA256 4d901f8a9e1924404e797ad23b8b0c495a9d155448816d95a55974314e1f141b SHA512 3778ef7d4a1c759a7afc093e55eefb69a78dcb60332655cc8ab8c481f54a3e6550df6070178390eb08588245531906b8bef33301f0765a4d28d6c7506fcf3bc7 WHIRLPOOL ff538bd47dbea3bc461f24b09f2d26e3b6141053e8289bac1ac973b65b6957257c5aede30e782201c2813919643bf23989c7ce6a8492fa259b3d506e427e4126
+DIST inkscape-0.92.1.tar.bz2 31222684 SHA256 257405bf802de125f17d123638093a37db02ebe334d243cf9b0d8903f7c89005 SHA512 f8f3bfb812a214216c3ffac7064a4619f847cf9810417c782481dba12e6c6a44123c8b8a9289fbf5287f2e6b6df39a641d94a000d842faee5ff808eec86187a0 WHIRLPOOL f8134aed9ddb174fda88e13c201cf9099604e9591228ec306feeabaeee859f657961370ba4d1420f51e5e520f3543d7d129577144d9221e52f638a9f0bf81493
+EBUILD inkscape-0.91-r3.ebuild 3969 SHA256 3d056feb2e3ac701e1df7de7836f0766d30c56447169059e8d99add791387c95 SHA512 d89f30c679ce18adcf6115b7643ff34f144d7bfc71249804042c1ef292225f9bd5aa6c03708eb3401ad4ae3ad8c466008695d23791cd01bebe72de065c1cee2d WHIRLPOOL 0f001e6bedb57d469b0dbb7a07062b5c2c86eea649644e8c419f340938afa801a3171916a05b7b6b0e36ecba9959c9392fc5f1b28cb34ea9bf7563f6c8faae28
+EBUILD inkscape-0.92.1-r1.ebuild 3748 SHA256 6fc21153ce792cafddbdc348109f4af26041f1d8f900a584e8a08297b627bafe SHA512 b5b1ade6467ea28df30cc5f3a900c62703c6de6f702e2668008e98af22be79abc09675ab7a46cd095cf66a7377d2670be8a42e6834b827a88186648e545d4fa9 WHIRLPOOL 3d82b915dab8648ab20f697928c3d4692ac6ead463e2cb8093454a4194823f6f13f9ebab9ab785aa319069cf1ec77fff1fd64a3d52ea4917c53066285f96ec13
+EBUILD inkscape-0.92.1.ebuild 3746 SHA256 03e8b8d78546298a4ca523de755bed03377fb27b2fcd13e42bfb304da45a8926 SHA512 3febfb0363cf5370890302d7b7cd94af50ece5f89edec1541b549b0c4fb75799826f01c858734cd35e148725eed8c881282b639223a8e2c18ee11a37f7bf7c10 WHIRLPOOL 7f3d5af5ab93069de9f7b88b0b651c1454fd3c61bfc6f9813939d9c26875fc0f79398afc21de42191b75f27eed702584939d1b274224d1e8de0c6af4ca494d39
+MISC ChangeLog 5566 SHA256 36b4ba9a002d3ca8e19dc6264d57a2f5180a7be9447188426ce7d99d8b6561fe SHA512 60ae15caf06a68e7ccfc850f5531ae0d8c1235d50480a2f3651c71c8383a6b882f506882a038b9ad7051a4c47d6ff27a07d8ea7b7778ab6e10ffd2eaeb6c7773 WHIRLPOOL 8c3756628d9f582a5e199178f21946ded1c5621c3fa312dfdc643113b03f156cb93e6b7cffbebf75e5f437d2e7ec795f0418c06ab00ac4327bbdf270668c508f
+MISC ChangeLog-2015 33070 SHA256 0b3855102ff38bd7fcd17330dbdef8dc2ba7bbaba17d6d5a6d4982aa1e816f77 SHA512 8fd8f84e2f94fddcc87e8226fab56e5a7e84a703482ee513e14208ef5084eded321c70b992d0687b62674a7e648c454ebb528fd03e98fa1e1b80ac0e5995d1a3 WHIRLPOOL fb3232d6cd9c1d90f353990f988d5b45410b73895683b6958c820a9b4cb7bee1ab9ba108c3cfc9ce79e6d3f3bc299008a303e33dccf9c5257e2bb65436d2ed9b
+MISC metadata.xml 812 SHA256 e71ef237c62542fe3e7c624141ca294b59436e358763ae68f76b052dbf3a0450 SHA512 dbe4bb2e918a4c8a20c9a273cef29976d8cfe74e6c2ae1ba8cb77f592c885e8353b7bc3ca8f529e00629f6a0ac7627877cdef68fe07472fc1f417abba5d0268b WHIRLPOOL 40dd86012e03c8c60ac93a88b5d223dcba80efce8d635c9f0707074371e0367111defb3900806597beedfd4f4137d3f01b968926e3f35a86f119160a175ddc73
diff --git a/media-gfx/inkscape/files/inkscape-0.48.4-epython.patch b/media-gfx/inkscape/files/inkscape-0.48.4-epython.patch
new file mode 100644
index 000000000000..2e2483c1b1e3
--- /dev/null
+++ b/media-gfx/inkscape/files/inkscape-0.48.4-epython.patch
@@ -0,0 +1,11 @@
+--- inkscape-0.48.4/src/extension/implementation/script.cpp
++++ inkscape-0.48.4/src/extension/implementation/script.cpp
+@@ -89,7 +89,7 @@
+ #ifdef WIN32
+ {"python", "python-interpreter", "pythonw" },
+ #else
+- {"python", "python-interpreter", "python" },
++ {"python", "python-interpreter", "@EPYTHON@" },
+ #endif
+ {"ruby", "ruby-interpreter", "ruby" },
+ {"shell", "shell-interpreter", "sh" },
diff --git a/media-gfx/inkscape/files/inkscape-0.91-fix-gtkmm-2.48.patch b/media-gfx/inkscape/files/inkscape-0.91-fix-gtkmm-2.48.patch
new file mode 100644
index 000000000000..f9c06601e837
--- /dev/null
+++ b/media-gfx/inkscape/files/inkscape-0.91-fix-gtkmm-2.48.patch
@@ -0,0 +1,63 @@
+--- a/src/ui/clipboard.cpp 2016-04-02 15:15:43 +0000
++++ b/src/ui/clipboard.cpp 2016-04-07 16:30:32 +0000
+@@ -146,8 +146,6 @@
+ void _setClipboardColor(guint32);
+ void _userWarn(SPDesktop *, char const *);
+
+- void _inkscape_wait_for_targets(std::list<Glib::ustring> &);
+-
+ // private properites
+ SPDocument *_clipboardSPDoc; ///< Document that stores the clipboard until someone requests it
+ Inkscape::XML::Node *_defs; ///< Reference to the clipboard document's defs node
+@@ -1302,9 +1300,7 @@
+ */
+ Glib::ustring ClipboardManagerImpl::_getBestTarget()
+ {
+- // GTKmm's wait_for_targets() is broken, see the comment in _inkscape_wait_for_targets()
+- std::list<Glib::ustring> targets; // = _clipboard->wait_for_targets();
+- _inkscape_wait_for_targets(targets);
++ std::list<Glib::ustring> targets = _clipboard->wait_for_targets();
+
+ // clipboard target debugging snippet
+ /*
+@@ -1456,39 +1452,6 @@
+ desktop->messageStack()->flash(Inkscape::WARNING_MESSAGE, msg);
+ }
+
+-
+-// GTKMM's clipboard::wait_for_targets is buggy and might return bogus, see
+-//
+-// https://bugs.launchpad.net/inkscape/+bug/296778
+-// http://mail.gnome.org/archives/gtk-devel-list/2009-June/msg00062.html
+-//
+-// for details. Until this has been fixed upstream we will use our own implementation
+-// of this method, as copied from /gtkmm-2.16.0/gtk/gtkmm/clipboard.cc.
+-void ClipboardManagerImpl::_inkscape_wait_for_targets(std::list<Glib::ustring> &listTargets)
+-{
+- //Get a newly-allocated array of atoms:
+- GdkAtom* targets = NULL;
+- gint n_targets = 0;
+- gboolean test = gtk_clipboard_wait_for_targets( gtk_clipboard_get(GDK_SELECTION_CLIPBOARD), &targets, &n_targets );
+- if (!test || (targets == NULL)) {
+- return;
+- }
+-
+- //Add the targets to the C++ container:
+- for (int i = 0; i < n_targets; i++)
+- {
+- //Convert the atom to a string:
+- gchar* const atom_name = gdk_atom_name(targets[i]);
+-
+- Glib::ustring target;
+- if (atom_name) {
+- target = Glib::ScopedPtr<char>(atom_name).get(); //This frees the gchar*.
+- }
+-
+- listTargets.push_back(target);
+- }
+-}
+-
+ /* #######################################
+ ClipboardManager class
+ ####################################### */
+
diff --git a/media-gfx/inkscape/files/inkscape-0.91_pre3-automagic.patch b/media-gfx/inkscape/files/inkscape-0.91_pre3-automagic.patch
new file mode 100644
index 000000000000..e29b7e9f787e
--- /dev/null
+++ b/media-gfx/inkscape/files/inkscape-0.91_pre3-automagic.patch
@@ -0,0 +1,154 @@
+Respect configure option for openmp and add configure options for aspell,
+gtkspell, imagemagick, jpeg, and exif.
+
+--- inkscape-0.91pre3/configure.ac
++++ inkscape-0.91pre3/configure.ac
+@@ -233,19 +233,28 @@
+ dnl Check for OpenMP
+ dnl ******************************
+ AC_OPENMP
+-if test "x$ac_cv_prog_cxx_openmp" != "xunsupported"; then
+- openmp_ok=yes
+- dnl We have it, now set up the flags
+- CXXFLAGS="$CXXFLAGS $OPENMP_CXXFLAGS"
+- AC_DEFINE(HAVE_OPENMP, 1, [Use OpenMP])
++openmp_ok="no"
++if test "x$enable_openmp" = "xyes"; then
++ if test "x$ac_cv_prog_cxx_openmp" != "xunsupported"; then
++ openmp_ok=yes
++ dnl We have it, now set up the flags
++ CXXFLAGS="$CXXFLAGS $OPENMP_CXXFLAGS"
++ AC_DEFINE(HAVE_OPENMP, 1, [Use OpenMP])
++ fi
+ fi
+
+ dnl ******************************
+ dnl Check for libexif
+ dnl ******************************
+-PKG_CHECK_MODULES(EXIF, libexif, exif_ok=yes, exif_ok=no)
+-if test "x$exif_ok" = "xyes"; then
+- AC_DEFINE(HAVE_EXIF, 1, [Use libexif])
++AC_ARG_ENABLE(exif,
++ AS_HELP_STRING([--enable-exif], [compile with EXIF support]),
++ enable_exif=$enableval,enable_exif=no)
++
++if test "x$enable_exif" = "xyes"; then
++ PKG_CHECK_MODULES(EXIF, libexif, exif_ok=yes, exif_ok=no)
++ if test "x$exif_ok" = "xyes"; then
++ AC_DEFINE(HAVE_EXIF, 1, [Use libexif])
++ fi
+ fi
+ AC_SUBST(EXIF_LIBS)
+ AC_SUBST(EXIF_CFLAGS)
+@@ -253,10 +262,16 @@
+ dnl ******************************
+ dnl Check for libjpeg
+ dnl ******************************
+-AC_CHECK_LIB(jpeg, jpeg_CreateDecompress, [AC_CHECK_HEADER(jpeglib.h, jpeg_ok=yes, jpeg_ok=no)], jpeg_ok=no)
+-if test "x$jpeg_ok" = "xyes"; then
+- LIBS="-ljpeg $LIBS"
+- AC_DEFINE(HAVE_JPEG, 1, [Use libjpeg])
++AC_ARG_ENABLE(jpeg,
++ AS_HELP_STRING([--enable-jpeg], [compile with JPEG support]),
++ enable_jpeg=$enableval,enable_jpeg=no)
++
++if test "x$enable_jpeg" = "xyes"; then
++ AC_CHECK_LIB(jpeg, jpeg_CreateDecompress, [AC_CHECK_HEADER(jpeglib.h, jpeg_ok=yes, jpeg_ok=no)], jpeg_ok=no)
++ if test "x$jpeg_ok" = "xyes"; then
++ LIBS="-ljpeg $LIBS"
++ AC_DEFINE(HAVE_JPEG, 1, [Use libjpeg])
++ fi
+ fi
+
+ dnl This check is to get a FIONREAD definition on Solaris 8
+@@ -675,9 +690,16 @@
+ dnl Check for ImageMagick Magick++
+ dnl ******************************
+
+-PKG_CHECK_MODULES(IMAGEMAGICK, ImageMagick++, magick_ok=yes, magick_ok=no)
+-if test "x$magick_ok" = "xyes"; then
+- AC_DEFINE(WITH_IMAGE_MAGICK,1,[Image Magick++ support for bitmap effects])
++AC_ARG_ENABLE(magick,
++ AS_HELP_STRING([--enable-magick], [compile with Image Magick++ support for bitmap effects]),
++ enable_magick=$enableval,enable_magick=no)
++
++magick_ok="no"
++if test "x$enable_magick" = "xyes"; then
++ PKG_CHECK_MODULES(IMAGEMAGICK, ImageMagick++, magick_ok=yes, magick_ok=no)
++ if test "x$magick_ok" = "xyes"; then
++ AC_DEFINE(WITH_IMAGE_MAGICK,1,[Image Magick++ support for bitmap effects])
++ fi
+ fi
+ AM_CONDITIONAL(USE_IMAGE_MAGICK, test "x$magick_ok" = "xyes")
+
+@@ -712,6 +734,10 @@
+ AC_DEFINE(WITH_GLIBMM_2_32,1,[Build with Glibmm 2.32 or higher])
+ fi
+
++
++AC_ARG_WITH([gtkspell],
++ AS_HELP_STRING([--without-gtkspell], [disable gtk spelling widget]),[with_gtkspell=$withval], [with_gtkspell=yes])
++
+ dnl *********************************
+ dnl Allow experimental GTK+3 build
+ dnl *********************************
+@@ -723,11 +749,13 @@
+ if test "x$enable_gtk3" = "xyes"; then
+
+ ink_spell_pkg=
+- if pkg-config --exists gtkspell-3.0; then
+- ink_spell_pkg=gtkspell-3.0
+- AC_DEFINE(WITH_GTKSPELL, 1, [enable gtk spelling widget])
++ if test "x$with_gtkspell" = "xyes"; then
++ if pkg-config --exists gtkspell-3.0; then
++ ink_spell_pkg=gtkspell-3.0
++ AC_DEFINE(WITH_GTKSPELL, 1, [enable gtk spelling widget])
++ fi
+ fi
+-
++
+ PKG_CHECK_MODULES(GTK,
+ gtkmm-3.0 >= 3.2
+ gdkmm-3.0 >= 3.2
+@@ -800,11 +828,13 @@
+ else
+
+ ink_spell_pkg=
+- if pkg-config --exists gtkspell-2.0; then
+- ink_spell_pkg=gtkspell-2.0
+- AC_DEFINE(WITH_GTKSPELL, 1, [enable gtk spelling widget])
++ if test "x$with_gtkspell" = "xyes"; then
++ if pkg-config --exists gtkspell-2.0; then
++ ink_spell_pkg=gtkspell-2.0
++ AC_DEFINE(WITH_GTKSPELL, 1, [enable gtk spelling widget])
++ fi
+ fi
+-
++
+ PKG_CHECK_MODULES(GTK,
+ gtk+-2.0 >= 2.24
+ $ink_spell_pkg
+@@ -928,12 +958,17 @@
+ dnl **************************
+ dnl Check for aspell
+ dnl ******************************
+-AC_CHECK_LIB(aspell, new_aspell_config, [AC_CHECK_HEADER(aspell.h, aspell_ok=yes, aspell_ok=no)], aspell_ok=no, -lz -lm)
+-if test "x$aspell_ok" = "xyes"; then
+- AC_DEFINE(HAVE_ASPELL, 1, [Use aspell for built-in spellchecker])
+- INKSCAPE_LIBS="$INKSCAPE_LIBS -laspell"
+-else
+- AC_MSG_CHECKING([Aspell not found, spell checker will be disabled])
++AC_ARG_WITH([aspell],
++ AS_HELP_STRING([--without-aspell], [disable aspell spell checker]),[with_aspell=$withval], [with_aspell=yes])
++
++if test "x$with_aspell" = "xyes"; then
++ AC_CHECK_LIB(aspell, new_aspell_config, [AC_CHECK_HEADER(aspell.h, aspell_ok=yes, aspell_ok=no)], aspell_ok=no, -lz -lm)
++ if test "x$aspell_ok" = "xyes"; then
++ AC_DEFINE(HAVE_ASPELL, 1, [Use aspell for built-in spellchecker])
++ INKSCAPE_LIBS="$INKSCAPE_LIBS -laspell"
++ else
++ AC_MSG_CHECKING([Aspell not found, spell checker will be disabled])
++ fi
+ fi
+
+ dnl Check for bind_textdomain_codeset, including -lintl if GLib brings it in.
diff --git a/media-gfx/inkscape/files/inkscape-0.91_pre3-cppflags.patch b/media-gfx/inkscape/files/inkscape-0.91_pre3-cppflags.patch
new file mode 100644
index 000000000000..94dbf881de0c
--- /dev/null
+++ b/media-gfx/inkscape/files/inkscape-0.91_pre3-cppflags.patch
@@ -0,0 +1,14 @@
+Gentoo enables _FORTIFY_SOURCE by default so this avoids redefined warnings.
+
+--- inkscape-0.91pre3/configure.ac
++++ inkscape-0.91pre3/configure.ac
+@@ -72,9 +72,6 @@
+ ####
+ # Generic cpp flags...
+
+- # What is just plain "-W" ?
+- # Fortify source requires -O2 or higher, which is handled with newer autoconf
+- CPPFLAGS="-W -D_FORTIFY_SOURCE=2 $CPPFLAGS"
+ # Enable format and format security warnings
+ CPPFLAGS="-Wformat -Wformat-security $CPPFLAGS"
+ # Enable all default warnings
diff --git a/media-gfx/inkscape/files/inkscape-0.91_pre3-desktop.patch b/media-gfx/inkscape/files/inkscape-0.91_pre3-desktop.patch
new file mode 100644
index 000000000000..f02fa1a8aca5
--- /dev/null
+++ b/media-gfx/inkscape/files/inkscape-0.91_pre3-desktop.patch
@@ -0,0 +1,20 @@
+--- inkscape-0.91pre3/inkscape.desktop.in
++++ inkscape-0.91pre3/inkscape.desktop.in
+@@ -5,7 +5,7 @@
+ _X-GNOME-FullName=Inkscape Vector Graphics Editor
+ _Comment=Create and edit Scalable Vector Graphics images
+ Type=Application
+-Categories=Graphics;VectorGraphics;GTK;
++Categories=Graphics;2DGraphics;VectorGraphics;GTK;
+ MimeType=image/svg+xml;image/svg+xml-compressed;application/vnd.corel-draw;application/pdf;application/postscript;image/x-eps;application/illustrator;
+ Exec=inkscape %F
+ TryExec=inkscape
+@@ -14,7 +14,7 @@
+ Icon=inkscape
+ X-Ayatana-Desktop-Shortcuts=Drawing
+
+-[Drawing Shortcut Group]
++[X-Drawing Shortcut Group]
+ _Name=New Drawing
+ Exec=inkscape
+ TargetEnvironment=Unity
diff --git a/media-gfx/inkscape/files/inkscape-0.91_pre3-exif.patch b/media-gfx/inkscape/files/inkscape-0.91_pre3-exif.patch
new file mode 100644
index 000000000000..4180fd4d2ef0
--- /dev/null
+++ b/media-gfx/inkscape/files/inkscape-0.91_pre3-exif.patch
@@ -0,0 +1,12 @@
+Actually try to use EXIF support if it's enabled.
+
+--- inkscape-0.91pre3/src/extension/internal/image-resolution.cpp
++++ inkscape-0.91pre3/src/extension/internal/image-resolution.cpp
+@@ -18,6 +18,7 @@
+ #include <png.h>
+
+ #ifdef HAVE_EXIF
++#define IR_TRY_EXIF 1
+ #include <math.h>
+ #include <libexif/exif-data.h>
+ #endif
diff --git a/media-gfx/inkscape/files/inkscape-0.91_pre3-sk-man.patch b/media-gfx/inkscape/files/inkscape-0.91_pre3-sk-man.patch
new file mode 100644
index 000000000000..f14e7d152e19
--- /dev/null
+++ b/media-gfx/inkscape/files/inkscape-0.91_pre3-sk-man.patch
@@ -0,0 +1,15 @@
+Install sk man page to the right directory.
+
+https://bugs.gentoo.org/show_bug.cgi?id=481276
+
+--- inkscape-0.91pre3/Makefile.am
++++ inkscape-0.91pre3/Makefile.am
+@@ -561,7 +561,7 @@
+ manja_DATA = inkscape.ja.1
+ manjadir = $(mandir)/ja/man1
+
+-mansk_DATA = inkscape.ja.1
++mansk_DATA = inkscape.sk.1
+ manskdir = $(mandir)/sk/man1
+
+ manzhtw_DATA = inkscape.zh_TW.1
diff --git a/media-gfx/inkscape/files/inkscape-0.92.1-automagic.patch b/media-gfx/inkscape/files/inkscape-0.92.1-automagic.patch
new file mode 100644
index 000000000000..141878b2bcd5
--- /dev/null
+++ b/media-gfx/inkscape/files/inkscape-0.92.1-automagic.patch
@@ -0,0 +1,154 @@
+diff -ruN inkscape-0.92.1.orig/configure.ac inkscape-0.92.1/configure.ac
+--- inkscape-0.92.1.orig/configure.ac 2017-02-14 00:46:57.000000000 +0100
++++ inkscape-0.92.1/configure.ac 2017-05-12 21:20:45.880842301 +0200
+@@ -201,11 +201,14 @@
+ dnl Check for OpenMP
+ dnl ******************************
+ AC_OPENMP
+-if test "x$ac_cv_prog_cxx_openmp" != "xunsupported"; then
+- openmp_ok=yes
+- dnl We have it, now set up the flags
+- CXXFLAGS="$CXXFLAGS $OPENMP_CXXFLAGS"
+- AC_DEFINE(HAVE_OPENMP, 1, [Use OpenMP])
++openmp_ok="no"
++if test "x$enable_openmp" = "xyes"; then
++ if test "x$ac_cv_prog_cxx_openmp" != "xunsupported"; then
++ openmp_ok=yes
++ dnl We have it, now set up the flags
++ CXXFLAGS="$CXXFLAGS $OPENMP_CXXFLAGS"
++ AC_DEFINE(HAVE_OPENMP, 1, [Use OpenMP])
++ fi
+ fi
+
+ dnl ********************
+@@ -222,9 +225,15 @@
+ dnl ******************************
+ dnl Check for libexif
+ dnl ******************************
+-PKG_CHECK_MODULES(EXIF, libexif, exif_ok=yes, exif_ok=no)
+-if test "x$exif_ok" = "xyes"; then
+- AC_DEFINE(HAVE_EXIF, 1, [Use libexif])
++AC_ARG_ENABLE(exif,
++ AS_HELP_STRING([--enable-exif], [compile with EXIF support]),
++ enable_exif=$enableval,enable_exif=no)
++
++if test "x$enable_exif" = "xyes"; then
++ PKG_CHECK_MODULES(EXIF, libexif, exif_ok=yes, exif_ok=no)
++ if test "x$exif_ok" = "xyes"; then
++ AC_DEFINE(HAVE_EXIF, 1, [Use libexif])
++ fi
+ fi
+ AC_SUBST(EXIF_LIBS)
+ AC_SUBST(EXIF_CFLAGS)
+@@ -232,10 +241,16 @@
+ dnl ******************************
+ dnl Check for libjpeg
+ dnl ******************************
+-AC_CHECK_LIB(jpeg, jpeg_CreateDecompress, [AC_CHECK_HEADER(jpeglib.h, jpeg_ok=yes, jpeg_ok=no)], jpeg_ok=no)
+-if test "x$jpeg_ok" = "xyes"; then
+- LIBS="-ljpeg $LIBS"
+- AC_DEFINE(HAVE_JPEG, 1, [Use libjpeg])
++AC_ARG_ENABLE(jpeg,
++ AS_HELP_STRING([--enable-jpeg], [compile with JPEG support]),
++ enable_jpeg=$enableval,enable_jpeg=no)
++
++if test "x$enable_jpeg" = "xyes"; then
++ AC_CHECK_LIB(jpeg, jpeg_CreateDecompress, [AC_CHECK_HEADER(jpeglib.h, jpeg_ok=yes, jpeg_ok=no)], jpeg_ok=no)
++ if test "x$jpeg_ok" = "xyes"; then
++ LIBS="-ljpeg $LIBS"
++ AC_DEFINE(HAVE_JPEG, 1, [Use libjpeg])
++ fi
+ fi
+
+ dnl This check is to get a FIONREAD definition on Solaris 8
+@@ -614,9 +629,16 @@
+ dnl Check for ImageMagick Magick++
+ dnl ******************************
+
+-PKG_CHECK_MODULES(IMAGEMAGICK, ImageMagick++, magick_ok=yes, magick_ok=no)
+-if test "x$magick_ok" = "xyes"; then
+- AC_DEFINE(WITH_IMAGE_MAGICK,1,[Image Magick++ support for bitmap effects])
++AC_ARG_ENABLE(magick,
++ AS_HELP_STRING([--enable-magick], [compile with Image Magick++ support for bitmap effects]),
++ enable_magick=$enableval,enable_magick=no)
++
++magick_ok="no"
++if test "x$enable_magick" = "xyes"; then
++ PKG_CHECK_MODULES(IMAGEMAGICK, ImageMagick++, magick_ok=yes, magick_ok=no)
++ if test "x$magick_ok" = "xyes"; then
++ AC_DEFINE(WITH_IMAGE_MAGICK,1,[Image Magick++ support for bitmap effects])
++ fi
+ fi
+ AM_CONDITIONAL(USE_IMAGE_MAGICK, test "x$magick_ok" = "xyes")
+
+@@ -712,6 +734,10 @@
+
+ AC_CHECK_HEADER([boost/unordered_set.hpp], [AC_DEFINE(HAVE_BOOST_UNORDERED_SET, 1, [Boost unordered_set (Boost >= 1.36)])], [])
+
++
++AC_ARG_WITH([gtkspell],
++ AS_HELP_STRING([--without-gtkspell], [disable gtk spelling widget]),[with_gtkspell=$withval], [with_gtkspell=yes])
++
+ dnl *********************************
+ dnl Allow experimental GTK+3 build
+ dnl *********************************
+@@ -723,11 +749,13 @@
+ if test "x$enable_gtk3" = "xyes"; then
+
+ ink_spell_pkg=
+- if pkg-config --exists gtkspell-3.0; then
+- ink_spell_pkg=gtkspell-3.0
+- AC_DEFINE(WITH_GTKSPELL, 1, [enable gtk spelling widget])
++ if test "x$with_gtkspell" = "xyes"; then
++ if pkg-config --exists gtkspell-3.0; then
++ ink_spell_pkg=gtkspell-3.0
++ AC_DEFINE(WITH_GTKSPELL, 1, [enable gtk spelling widget])
++ fi
+ fi
+-
++
+ PKG_CHECK_MODULES(GTK,
+ gtk+-3.0 >= 3.8
+ gdk-3.0 >= 3.8
+@@ -804,11 +832,13 @@
+ else
+
+ ink_spell_pkg=
+- if pkg-config --exists gtkspell-2.0; then
+- ink_spell_pkg=gtkspell-2.0
+- AC_DEFINE(WITH_GTKSPELL, 1, [enable gtk spelling widget])
++ if test "x$with_gtkspell" = "xyes"; then
++ if pkg-config --exists gtkspell-2.0; then
++ ink_spell_pkg=gtkspell-2.0
++ AC_DEFINE(WITH_GTKSPELL, 1, [enable gtk spelling widget])
++ fi
+ fi
+-
++
+ PKG_CHECK_MODULES(GTK,
+ gtk+-2.0 >= 2.24
+ $ink_spell_pkg)
+@@ -931,12 +961,17 @@
+ dnl **************************
+ dnl Check for aspell
+ dnl ******************************
+-AC_CHECK_LIB(aspell, new_aspell_config, [AC_CHECK_HEADER(aspell.h, aspell_ok=yes, aspell_ok=no)], aspell_ok=no, -lz -lm)
+-if test "x$aspell_ok" = "xyes"; then
+- AC_DEFINE(HAVE_ASPELL, 1, [Use aspell for built-in spellchecker])
+- INKSCAPE_LIBS="$INKSCAPE_LIBS -laspell"
+-else
+- AC_MSG_CHECKING([Aspell not found, spell checker will be disabled])
++AC_ARG_WITH([aspell],
++ AS_HELP_STRING([--without-aspell], [disable aspell spell checker]),[with_aspell=$withval], [with_aspell=yes])
++
++if test "x$with_aspell" = "xyes"; then
++ AC_CHECK_LIB(aspell, new_aspell_config, [AC_CHECK_HEADER(aspell.h, aspell_ok=yes, aspell_ok=no)], aspell_ok=no, -lz -lm)
++ if test "x$aspell_ok" = "xyes"; then
++ AC_DEFINE(HAVE_ASPELL, 1, [Use aspell for built-in spellchecker])
++ INKSCAPE_LIBS="$INKSCAPE_LIBS -laspell"
++ else
++ AC_MSG_CHECKING([Aspell not found, spell checker will be disabled])
++ fi
+ fi
+
+ dnl Check for bind_textdomain_codeset, including -lintl if GLib brings it in.
diff --git a/media-gfx/inkscape/files/inkscape-0.92.1-desktop.patch b/media-gfx/inkscape/files/inkscape-0.92.1-desktop.patch
new file mode 100644
index 000000000000..be49ea505d36
--- /dev/null
+++ b/media-gfx/inkscape/files/inkscape-0.92.1-desktop.patch
@@ -0,0 +1,12 @@
+diff -ruN inkscape-0.92.1.orig/inkscape.desktop.in inkscape-0.92.1/inkscape.desktop.in
+--- inkscape-0.92.1.orig/inkscape.desktop.in 2017-02-14 00:46:57.000000000 +0100
++++ inkscape-0.92.1/inkscape.desktop.in 2017-05-12 21:25:01.628853033 +0200
+@@ -6,7 +6,7 @@
+ _Comment=Create and edit Scalable Vector Graphics images
+ _Keywords=image;editor;vector;drawing;
+ Type=Application
+-Categories=Graphics;VectorGraphics;GTK;
++Categories=Graphics;2DGraphics;VectorGraphics;GTK;
+ MimeType=image/svg+xml;image/svg+xml-compressed;application/vnd.corel-draw;application/pdf;application/postscript;image/x-eps;application/illustrator;image/cgm;image/x-wmf;application/x-xccx;application/x-xcgm;application/x-xcdt;application/x-xsk1;application/x-xcmx;image/x-xcdr;application/visio;application/x-visio;application/vnd.visio;application/visio.drawing;application/vsd;application/x-vsd;image/x-vsd;
+ Exec=inkscape %F
+ TryExec=inkscape
diff --git a/media-gfx/inkscape/inkscape-0.91-r3.ebuild b/media-gfx/inkscape/inkscape-0.91-r3.ebuild
new file mode 100644
index 000000000000..7bf584961456
--- /dev/null
+++ b/media-gfx/inkscape/inkscape-0.91-r3.ebuild
@@ -0,0 +1,176 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+PYTHON_COMPAT=( python2_7 )
+PYTHON_REQ_USE="xml"
+
+inherit autotools eutils flag-o-matic gnome2-utils fdo-mime toolchain-funcs python-single-r1
+
+MY_P=${P/_/}
+
+DESCRIPTION="A SVG based generic vector-drawing program"
+HOMEPAGE="https://inkscape.org/"
+SRC_URI="https://inkscape.global.ssl.fastly.net/media/resources/file/${P}.tar.bz2"
+
+LICENSE="GPL-2 LGPL-2.1"
+SLOT="0"
+KEYWORDS="amd64 ~arm ~hppa ppc ppc64 x86 ~amd64-linux ~x86-linux ~sparc-solaris ~x86-solaris"
+IUSE="cdr dia dbus exif gnome imagemagick openmp postscript inkjar jpeg latex"
+IUSE+=" lcms nls spell static-libs visio wpg"
+
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+WPG_DEPS="
+ || (
+ ( app-text/libwpg:0.3 dev-libs/librevenge )
+ ( app-text/libwpd:0.9 app-text/libwpg:0.2 )
+ )
+"
+COMMON_DEPEND="
+ ${PYTHON_DEPS}
+ >=app-text/poppler-0.26.0:=[cairo]
+ >=dev-cpp/glibmm-2.48
+ >=dev-cpp/gtkmm-2.18.0:2.4
+ >=dev-cpp/cairomm-1.9.8
+ >=dev-libs/boehm-gc-6.4
+ >=dev-libs/glib-2.28
+ >=dev-libs/libsigc++-2.0.12
+ >=dev-libs/libxml2-2.6.20
+ >=dev-libs/libxslt-1.0.15
+ dev-libs/popt
+ dev-python/lxml[${PYTHON_USEDEP}]
+ media-libs/fontconfig
+ media-libs/freetype:2
+ media-libs/libpng:0
+ sci-libs/gsl:=
+ x11-libs/libX11
+ >=x11-libs/gtk+-2.10.7:2
+ >=x11-libs/pango-1.24
+ cdr? (
+ media-libs/libcdr
+ ${WPG_DEPS}
+ )
+ dbus? ( dev-libs/dbus-glib )
+ exif? ( media-libs/libexif )
+ gnome? ( >=gnome-base/gnome-vfs-2.0 )
+ imagemagick? ( media-gfx/imagemagick:=[cxx] )
+ jpeg? ( virtual/jpeg:0 )
+ lcms? ( media-libs/lcms:2 )
+ spell? (
+ app-text/aspell
+ app-text/gtkspell:2
+ )
+ visio? (
+ media-libs/libvisio
+ ${WPG_DEPS}
+ )
+ wpg? ( ${WPG_DEPS} )
+"
+
+# These only use executables provided by these packages
+# See share/extensions for more details. inkscape can tell you to
+# install these so we could of course just not depend on those and rely
+# on that.
+RDEPEND="${COMMON_DEPEND}
+ dev-python/numpy[${PYTHON_USEDEP}]
+ media-gfx/uniconvertor
+ dia? ( app-office/dia )
+ latex? (
+ media-gfx/pstoedit[plotutils]
+ app-text/dvipsk
+ app-text/texlive
+ )
+ postscript? ( app-text/ghostscript-gpl )
+"
+
+DEPEND="${COMMON_DEPEND}
+ >=dev-libs/boost-1.36
+ >=dev-util/intltool-0.40
+ >=sys-devel/gettext-0.17
+ virtual/pkgconfig
+"
+
+PATCHES=(
+ "${FILESDIR}/${PN}-0.91_pre3-automagic.patch"
+ "${FILESDIR}/${PN}-0.91_pre3-cppflags.patch"
+ "${FILESDIR}/${PN}-0.91_pre3-desktop.patch"
+ "${FILESDIR}/${PN}-0.91_pre3-exif.patch"
+ "${FILESDIR}/${PN}-0.91_pre3-sk-man.patch"
+ "${FILESDIR}/${PN}-0.48.4-epython.patch"
+ "${FILESDIR}/${PN}-0.91-fix-gtkmm-2.48.patch"
+)
+
+S=${WORKDIR}/${MY_P}
+
+RESTRICT="test"
+
+pkg_pretend() {
+ if use openmp; then
+ tc-has-openmp || die "Please switch to an openmp compatible compiler"
+ fi
+}
+
+src_prepare() {
+ default
+
+ sed -i "s#@EPYTHON@#${EPYTHON}#" \
+ src/extension/implementation/script.cpp || die
+
+ eautoreconf
+
+ # bug 421111
+ python_fix_shebang share/extensions
+}
+
+src_configure() {
+ # aliasing unsafe wrt #310393
+ append-flags -fno-strict-aliasing
+ # enable c++11 as needed for sigc++-2.6, #566318
+ # remove it when upstream solves the issue
+ # https://bugs.launchpad.net/inkscape/+bug/1488079
+ append-cxxflags -std=c++11
+
+ econf \
+ $(use_enable static-libs static) \
+ $(use_enable nls) \
+ $(use_enable openmp) \
+ $(use_enable exif) \
+ $(use_enable jpeg) \
+ $(use_enable lcms) \
+ --enable-poppler-cairo \
+ $(use_enable wpg) \
+ $(use_enable visio) \
+ $(use_enable cdr) \
+ $(use_enable dbus dbusapi) \
+ $(use_enable imagemagick magick) \
+ $(use_with gnome gnome-vfs) \
+ $(use_with inkjar) \
+ $(use_with spell gtkspell) \
+ $(use_with spell aspell)
+}
+
+src_compile() {
+ emake AR="$(tc-getAR)"
+}
+
+src_install() {
+ default
+
+ prune_libtool_files
+ python_optimize "${ED}"/usr/share/${PN}/extensions
+}
+
+pkg_preinst() {
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ gnome2_icon_cache_update
+ fdo-mime_desktop_database_update
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+ fdo-mime_desktop_database_update
+}
diff --git a/media-gfx/inkscape/inkscape-0.92.1-r1.ebuild b/media-gfx/inkscape/inkscape-0.92.1-r1.ebuild
new file mode 100644
index 000000000000..09084673b9c3
--- /dev/null
+++ b/media-gfx/inkscape/inkscape-0.92.1-r1.ebuild
@@ -0,0 +1,173 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+PYTHON_COMPAT=( python2_7 )
+PYTHON_REQ_USE="xml"
+
+inherit autotools eutils flag-o-matic gnome2-utils fdo-mime toolchain-funcs python-single-r1
+
+MY_P=${P/_/}
+
+DESCRIPTION="A SVG based generic vector-drawing program"
+HOMEPAGE="https://inkscape.org/"
+SRC_URI="https://inkscape.global.ssl.fastly.net/media/resources/file/${P}.tar.bz2"
+
+LICENSE="GPL-2 LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~hppa ~ppc ~ppc64 ~x86"
+IUSE="cdr dia dbus exif gnome imagemagick openmp postscript inkjar jpeg latex"
+IUSE+=" lcms nls spell static-libs visio wpg"
+
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+WPG_DEPS="
+ || (
+ ( app-text/libwpg:0.3 dev-libs/librevenge )
+ ( app-text/libwpd:0.9 app-text/libwpg:0.2 )
+ )
+"
+COMMON_DEPEND="
+ ${PYTHON_DEPS}
+ >=app-text/poppler-0.26.0:=[cairo]
+ >=dev-cpp/glibmm-2.48
+ >=dev-cpp/gtkmm-2.18.0:2.4
+ >=dev-cpp/cairomm-1.9.8
+ >=dev-libs/boehm-gc-6.4
+ >=dev-libs/glib-2.28
+ >=dev-libs/libsigc++-2.0.12
+ >=dev-libs/libxml2-2.6.20
+ >=dev-libs/libxslt-1.0.15
+ dev-libs/popt
+ dev-python/lxml[${PYTHON_USEDEP}]
+ media-gfx/potrace
+ media-gfx/scour[${PYTHON_USEDEP}]
+ media-libs/fontconfig
+ media-libs/freetype:2
+ media-libs/libpng:0
+ sci-libs/gsl:=
+ x11-libs/libX11
+ >=x11-libs/gtk+-2.10.7:2
+ >=x11-libs/pango-1.24
+ cdr? (
+ media-libs/libcdr
+ ${WPG_DEPS}
+ )
+ dbus? ( dev-libs/dbus-glib )
+ exif? ( media-libs/libexif )
+ gnome? ( >=gnome-base/gnome-vfs-2.0 )
+ imagemagick? ( media-gfx/imagemagick:=[cxx] )
+ jpeg? ( virtual/jpeg:0 )
+ lcms? ( media-libs/lcms:2 )
+ spell? (
+ app-text/aspell
+ app-text/gtkspell:2
+ )
+ visio? (
+ media-libs/libvisio
+ ${WPG_DEPS}
+ )
+ wpg? ( ${WPG_DEPS} )
+"
+
+# These only use executables provided by these packages
+# See share/extensions for more details. inkscape can tell you to
+# install these so we could of course just not depend on those and rely
+# on that.
+RDEPEND="${COMMON_DEPEND}
+ dev-python/numpy[${PYTHON_USEDEP}]
+ media-gfx/uniconvertor
+ dia? ( app-office/dia )
+ latex? (
+ media-gfx/pstoedit[plotutils]
+ app-text/dvipsk
+ app-text/texlive
+ )
+ postscript? ( app-text/ghostscript-gpl )
+"
+
+DEPEND="${COMMON_DEPEND}
+ >=dev-libs/boost-1.36
+ >=dev-util/intltool-0.40
+ >=sys-devel/gettext-0.17
+ virtual/pkgconfig
+"
+
+PATCHES=(
+ "${FILESDIR}/${PN}-0.92.1-automagic.patch"
+ "${FILESDIR}/${PN}-0.91_pre3-cppflags.patch"
+ "${FILESDIR}/${PN}-0.92.1-desktop.patch"
+ "${FILESDIR}/${PN}-0.91_pre3-exif.patch"
+ "${FILESDIR}/${PN}-0.91_pre3-sk-man.patch"
+ "${FILESDIR}/${PN}-0.48.4-epython.patch"
+)
+
+S=${WORKDIR}/${MY_P}
+
+RESTRICT="test"
+
+pkg_pretend() {
+ if use openmp; then
+ tc-has-openmp || die "Please switch to an openmp compatible compiler"
+ fi
+}
+
+src_prepare() {
+ default
+
+ sed -i "s#@EPYTHON@#${EPYTHON}#" \
+ src/extension/implementation/script.cpp || die
+
+ eautoreconf
+
+ # bug 421111
+ python_fix_shebang share/extensions
+}
+
+src_configure() {
+ # aliasing unsafe wrt #310393
+ append-flags -fno-strict-aliasing
+
+ econf \
+ $(use_enable static-libs static) \
+ $(use_enable nls) \
+ $(use_enable openmp) \
+ $(use_enable exif) \
+ $(use_enable jpeg) \
+ $(use_enable lcms) \
+ --enable-poppler-cairo \
+ $(use_enable wpg) \
+ $(use_enable visio) \
+ $(use_enable cdr) \
+ $(use_enable dbus dbusapi) \
+ $(use_enable imagemagick magick) \
+ $(use_with gnome gnome-vfs) \
+ $(use_with inkjar) \
+ $(use_with spell gtkspell) \
+ $(use_with spell aspell)
+}
+
+src_compile() {
+ emake AR="$(tc-getAR)"
+}
+
+src_install() {
+ default
+
+ prune_libtool_files
+ python_optimize "${ED}"/usr/share/${PN}/extensions
+}
+
+pkg_preinst() {
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ gnome2_icon_cache_update
+ fdo-mime_desktop_database_update
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+ fdo-mime_desktop_database_update
+}
diff --git a/media-gfx/inkscape/inkscape-0.92.1.ebuild b/media-gfx/inkscape/inkscape-0.92.1.ebuild
new file mode 100644
index 000000000000..efd58af66c68
--- /dev/null
+++ b/media-gfx/inkscape/inkscape-0.92.1.ebuild
@@ -0,0 +1,171 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+PYTHON_COMPAT=( python2_7 )
+PYTHON_REQ_USE="xml"
+
+inherit autotools eutils flag-o-matic gnome2-utils fdo-mime toolchain-funcs python-single-r1
+
+MY_P=${P/_/}
+
+DESCRIPTION="A SVG based generic vector-drawing program"
+HOMEPAGE="https://inkscape.org/"
+SRC_URI="https://inkscape.global.ssl.fastly.net/media/resources/file/${P}.tar.bz2"
+
+LICENSE="GPL-2 LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~hppa ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~sparc-solaris ~x86-solaris"
+IUSE="cdr dia dbus exif gnome imagemagick openmp postscript inkjar jpeg latex"
+IUSE+=" lcms nls spell static-libs visio wpg"
+
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+WPG_DEPS="
+ || (
+ ( app-text/libwpg:0.3 dev-libs/librevenge )
+ ( app-text/libwpd:0.9 app-text/libwpg:0.2 )
+ )
+"
+COMMON_DEPEND="
+ ${PYTHON_DEPS}
+ >=app-text/poppler-0.26.0:=[cairo]
+ >=dev-cpp/glibmm-2.48
+ >=dev-cpp/gtkmm-2.18.0:2.4
+ >=dev-cpp/cairomm-1.9.8
+ >=dev-libs/boehm-gc-6.4
+ >=dev-libs/glib-2.28
+ >=dev-libs/libsigc++-2.0.12
+ >=dev-libs/libxml2-2.6.20
+ >=dev-libs/libxslt-1.0.15
+ dev-libs/popt
+ dev-python/lxml[${PYTHON_USEDEP}]
+ media-libs/fontconfig
+ media-libs/freetype:2
+ media-libs/libpng:0
+ sci-libs/gsl:=
+ x11-libs/libX11
+ >=x11-libs/gtk+-2.10.7:2
+ >=x11-libs/pango-1.24
+ cdr? (
+ media-libs/libcdr
+ ${WPG_DEPS}
+ )
+ dbus? ( dev-libs/dbus-glib )
+ exif? ( media-libs/libexif )
+ gnome? ( >=gnome-base/gnome-vfs-2.0 )
+ imagemagick? ( media-gfx/imagemagick:=[cxx] )
+ jpeg? ( virtual/jpeg:0 )
+ lcms? ( media-libs/lcms:2 )
+ spell? (
+ app-text/aspell
+ app-text/gtkspell:2
+ )
+ visio? (
+ media-libs/libvisio
+ ${WPG_DEPS}
+ )
+ wpg? ( ${WPG_DEPS} )
+"
+
+# These only use executables provided by these packages
+# See share/extensions for more details. inkscape can tell you to
+# install these so we could of course just not depend on those and rely
+# on that.
+RDEPEND="${COMMON_DEPEND}
+ dev-python/numpy[${PYTHON_USEDEP}]
+ media-gfx/uniconvertor
+ dia? ( app-office/dia )
+ latex? (
+ media-gfx/pstoedit[plotutils]
+ app-text/dvipsk
+ app-text/texlive
+ )
+ postscript? ( app-text/ghostscript-gpl )
+"
+
+DEPEND="${COMMON_DEPEND}
+ >=dev-libs/boost-1.36
+ >=dev-util/intltool-0.40
+ >=sys-devel/gettext-0.17
+ virtual/pkgconfig
+"
+
+PATCHES=(
+ "${FILESDIR}/${PN}-0.92.1-automagic.patch"
+ "${FILESDIR}/${PN}-0.91_pre3-cppflags.patch"
+ "${FILESDIR}/${PN}-0.92.1-desktop.patch"
+ "${FILESDIR}/${PN}-0.91_pre3-exif.patch"
+ "${FILESDIR}/${PN}-0.91_pre3-sk-man.patch"
+ "${FILESDIR}/${PN}-0.48.4-epython.patch"
+)
+
+S=${WORKDIR}/${MY_P}
+
+RESTRICT="test"
+
+pkg_pretend() {
+ if use openmp; then
+ tc-has-openmp || die "Please switch to an openmp compatible compiler"
+ fi
+}
+
+src_prepare() {
+ default
+
+ sed -i "s#@EPYTHON@#${EPYTHON}#" \
+ src/extension/implementation/script.cpp || die
+
+ eautoreconf
+
+ # bug 421111
+ python_fix_shebang share/extensions
+}
+
+src_configure() {
+ # aliasing unsafe wrt #310393
+ append-flags -fno-strict-aliasing
+
+ econf \
+ $(use_enable static-libs static) \
+ $(use_enable nls) \
+ $(use_enable openmp) \
+ $(use_enable exif) \
+ $(use_enable jpeg) \
+ $(use_enable lcms) \
+ --enable-poppler-cairo \
+ $(use_enable wpg) \
+ $(use_enable visio) \
+ $(use_enable cdr) \
+ $(use_enable dbus dbusapi) \
+ $(use_enable imagemagick magick) \
+ $(use_with gnome gnome-vfs) \
+ $(use_with inkjar) \
+ $(use_with spell gtkspell) \
+ $(use_with spell aspell)
+}
+
+src_compile() {
+ emake AR="$(tc-getAR)"
+}
+
+src_install() {
+ default
+
+ prune_libtool_files
+ python_optimize "${ED}"/usr/share/${PN}/extensions
+}
+
+pkg_preinst() {
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ gnome2_icon_cache_update
+ fdo-mime_desktop_database_update
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+ fdo-mime_desktop_database_update
+}
diff --git a/media-gfx/inkscape/metadata.xml b/media-gfx/inkscape/metadata.xml
new file mode 100644
index 000000000000..80bd107567a8
--- /dev/null
+++ b/media-gfx/inkscape/metadata.xml
@@ -0,0 +1,19 @@
+<?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>
+ <use>
+ <flag name="cdr">Enable support for CorelDRAW Diagrams</flag>
+ <flag name="dia">pull in <pkg>app-office/dia</pkg> for dia import extension</flag>
+ <flag name="inkjar">Enable support for OpenOffice.org SVG jar files</flag>
+ <flag name="latex">pull in dependencies for LaTeX formulas</flag>
+ <flag name="visio">Enable support for Microsoft Visio Diagrams</flag>
+ <flag name="wpg">Enable support for WordPerfect Graphics</flag>
+ </use>
+ <upstream>
+ <remote-id type="gitlab">inkscape/inkscape</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/media-gfx/ipe/Manifest b/media-gfx/ipe/Manifest
new file mode 100644
index 000000000000..4637a1af9feb
--- /dev/null
+++ b/media-gfx/ipe/Manifest
@@ -0,0 +1,8 @@
+AUX ipe-7.1.3-gold.patch 1175 SHA256 dda6c10cdfeeb81d177f8e394bbd8fadec6ae9b74b4bf638c9972f45e3f9642a SHA512 8ae03dd3b1720223db8a009948f09b0581eeeb7df02f61558d26c27a36108ee780d071ae46bea81c5173b3329b1ec856f3ded10faf0609cc59c140910f1af562 WHIRLPOOL 59dcfe264404a275e9075480ca54a52627abc3fd586c6dc3b1204d58d01482455a8930fd348944d47fde4e0f2b174bd7f0dff3c88cbb98fcf97d25d57a62a308
+DIST ipe-7.1.2-src.tar.gz 1416404 SHA256 3390de67ee22b2de74acfab2e9fb29bcfd6fe180688086febb758dc8a82eda11 SHA512 9d49c5f116a6271fce5a5a6c77cad64e348b17b9b02d1be8bece341231ebc15f642d6af49e73958e4d26814eafc52be38855e4d24e8cf44488da6a752151a189 WHIRLPOOL 80770369cf07fa9bdf2f3d40fe88e2e312d65c9b075f3eae44822ede2e38cc5f378c8078ab21e14a25a604977578b3be71978dd71844c7877abc50ba0f7f8f4c
+DIST ipe-7.1.3-src.tar.gz 1497624 SHA256 4b3c537aeb9720e74ee5e63d50e1ec1f760f90b3896ffb9acc8c20353f60b8e9 SHA512 eea85ed6f4bc23e746222e01f4cdfd101c9c18aeb19fcba9abff565a65614a2a5e6630ddf9f7b024cac225582a34238a22f6fc5cf7dcc3733b8281ce844ef23d WHIRLPOOL a1b46452fb3b2d5da72a411eca48a2e24331416727b4013cecebad962817d3029c63a972ae7ee743b35cfe9adc4dc3c59d04572e9b472fdf774ad67202b0b264
+EBUILD ipe-7.1.2.ebuild 1712 SHA256 e0d10bb682286f68a0fad864222e77f28e448f9785e83f83d131ca941b3a9ea2 SHA512 ab00eda3ddbcadf56f98014a95fa86456ffda64241dff4341e5127297f67e82fe9d2b024c658557619767940e00a1087e494da00e07a36b91337b6701af01e4c WHIRLPOOL 98b3fe2f1397e9a874accfcf0abd5647f20b731501eb7d872eb50b9b6ed0c1e6e98844621fc82b80eb7708a185492df148ab94fc649e453f0a680c0dda1df048
+EBUILD ipe-7.1.3.ebuild 1753 SHA256 3847eb4c92ab724e9905e41a89aaa1cea3fc1845ff1f817b04f590a9fc030559 SHA512 a7cf07a4e420e181e7692eb2226c74119b94af44181ee14f622f6077e3e296b7f1b7303efa44a51a8180e7055cbbf9d3b6259e82748986464dfc38681c3e34af WHIRLPOOL 3c72bd542ec31a5511dd1a6eb3e3dad67d19c19e740d98061ed7541a03c288606af8156fe2d8e0e36bd56d10218a8ff4401d019f35e974234636d3ff7516bea1
+MISC ChangeLog 2491 SHA256 56dce1a3ff82bb94bf3c5af839a3f52f9fff1cd5158d00f30b9ec66c90476c52 SHA512 0395b21687b9b01252f2bfb9b29ef56024593801d9ea974b75c8cc7142bb5b8644899ac0facf4796bd1d25b29a8722dfb5c4455772af36982e038ada0222da43 WHIRLPOOL 431032efb6addf1b0ce70ca14c64be1df498083b686a96078dd58e553e35ed91d56a2010b3b6284a651be9141dc1ff7ba2b9ccf0ed45851e6e9cb8187a2dd29c
+MISC ChangeLog-2015 5143 SHA256 6d172c109897b2b771a3a9db351e34fc4fa0fcba558fcc2d23b269e3de191a73 SHA512 279dac179a1ba70b738fe78cc2f57f6ebfe435dbfea90f9dea3ace85183888e9ae50dac8005b72828cc46bad1bcede997bf6efafffe1beffaafe6213dbebdd88 WHIRLPOOL d21202e057a22cc983c985cd15f10d544e5cacb6537f3017dac2fe4d5ddd05977c4ba9aa8ae0122e921c090d4dc8edf16ce626d76bfe33aa690135125ac18a4d
+MISC metadata.xml 600 SHA256 72e3e04d4e4d8c71eeff8c1529ab149ba025d600d20f1c0d5b911dcd7677ae83 SHA512 7a0feac244ba6e344f4a88f41bf9c4ffb25c9a37c62326ad71bcd5b64ad61edab86f14b59121182d21f2e171899fd5a1ec63869b06ebb88773eed1e150f7d417 WHIRLPOOL 6e6aa6381805063995ec495b5c1e0b757e920d1c5bff33035b4cc906031d5d565e1ea9ac03a104a792f6a8d35facd5d76d3d078f0163d7e0b7a887d37544c60f
diff --git a/media-gfx/ipe/files/ipe-7.1.3-gold.patch b/media-gfx/ipe/files/ipe-7.1.3-gold.patch
new file mode 100644
index 000000000000..a28fafa15c43
--- /dev/null
+++ b/media-gfx/ipe/files/ipe-7.1.3-gold.patch
@@ -0,0 +1,30 @@
+ src/ipe/Makefile | 2 +-
+ src/ipescript/Makefile | 2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/src/ipe/Makefile b/src/ipe/Makefile
+index 21ac500..5a7a1ad 100644
+--- a/src/ipe/Makefile
++++ b/src/ipe/Makefile
+@@ -10,7 +10,7 @@ TARGET = $(call exe_target,ipe)
+ CPPFLAGS += -I../include -I../ipecanvas -I../ipecairo -I../ipelua \
+ $(LUA_CFLAGS) $(UI_CFLAGS) $(CAIRO_CFLAGS) $(ZLIB_CFLAGS)
+ LIBS += -L$(buildlib) -lipecanvas -lipecairo -lipelua -lipe -lipeui \
+- $(LUA_LIBS) $(UI_LIBS) $(CAIRO_LIBS) $(ZLIB_LIBS)
++ $(LUA_LIBS) $(UI_LIBS) $(CAIRO_LIBS) $(ZLIB_LIBS) -ldl
+
+ CPPFLAGS += -DIPELETDIR=\"$(IPELETDIR)\"
+ CPPFLAGS += -DIPELUADIR=\"$(IPELUADIR)\"
+diff --git a/src/ipescript/Makefile b/src/ipescript/Makefile
+index ff35fd9..2315f1f 100644
+--- a/src/ipescript/Makefile
++++ b/src/ipescript/Makefile
+@@ -8,7 +8,7 @@ include ../common.mak
+ TARGET = $(call exe_target,ipescript)
+
+ CPPFLAGS += -I../include -I../ipelua $(LUA_CFLAGS)
+-LIBS += -L$(buildlib) -lipelua -lipe $(LUA_LIBS)
++LIBS += -L$(buildlib) -lipelua -lipe $(LUA_LIBS) -ldl
+
+ CPPFLAGS += -DIPELETDIR=\"$(IPELETDIR)\"
+ CPPFLAGS += -DIPESTYLEDIR=\"$(IPESTYLEDIR)\"
diff --git a/media-gfx/ipe/ipe-7.1.2.ebuild b/media-gfx/ipe/ipe-7.1.2.ebuild
new file mode 100644
index 000000000000..95a1767ba501
--- /dev/null
+++ b/media-gfx/ipe/ipe-7.1.2.ebuild
@@ -0,0 +1,77 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+inherit eutils toolchain-funcs qt4-r2
+
+DESCRIPTION="Drawing editor for creating figures in PDF or PS formats"
+HOMEPAGE="http://ipe7.sourceforge.net/"
+SRC_URI="mirror://sourceforge/ipe7/${PN}/7.1.0/${P}-src.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="app-text/texlive-core
+ dev-lang/lua
+ media-libs/freetype:2
+ x11-libs/cairo
+ dev-qt/qtcore:4
+ dev-qt/qtgui:4"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+S="${WORKDIR}/${P}/src"
+
+search_urw_fonts() {
+ # colon-separated list of paths
+ local texmfdist="$(kpsewhich -var-value=TEXMFDIST)"
+ # according to TeX directory structure
+ local urwdir=fonts/type1/urw
+ # add colon as field separator
+ local IFS="${IFS}:" dir
+ for dir in ${texmfdist}; do
+ if [[ -d ${dir}/${urwdir} ]]; then
+ URWFONTDIR="${dir}/${urwdir}"
+ return 0
+ fi
+ done
+ return 1
+}
+
+pkg_setup() {
+ if search_urw_fonts; then
+ einfo "URW fonts found in ${URWFONTDIR}"
+ else
+ ewarn "Could not find directory containing URW fonts"
+ ewarn "Ipe will not function properly without them."
+ fi
+}
+
+src_prepare() {
+ sed -i \
+ -e 's/fpic/fPIC/' \
+ -e 's/moc-qt4/moc/' \
+ -e "s:\$(IPEPREFIX)/lib:\$(IPEPREFIX)/$(get_libdir):g" \
+ config.mak || die
+ sed -i -e 's/install -s/install/' common.mak || die
+
+}
+
+src_compile() {
+ emake \
+ CXX=$(tc-getCXX) \
+ IPEPREFIX="${EPREFIX}/usr" \
+ IPEDOCDIR="${EPREFIX}/usr/share/doc/${PF}/html"
+}
+
+src_install() {
+ emake install \
+ IPEPREFIX="${EPREFIX}/usr" \
+ IPEDOCDIR="${EPREFIX}/usr/share/doc/${PF}/html" \
+ INSTALL_ROOT="${ED}"
+ dodoc ../{news,readme}.txt
+ doicon ipe/icons/ipe.png
+ make_desktop_entry ipe Ipe ipe
+}
diff --git a/media-gfx/ipe/ipe-7.1.3.ebuild b/media-gfx/ipe/ipe-7.1.3.ebuild
new file mode 100644
index 000000000000..c25f67000442
--- /dev/null
+++ b/media-gfx/ipe/ipe-7.1.3.ebuild
@@ -0,0 +1,80 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit eutils qt4-r2 toolchain-funcs
+
+DESCRIPTION="Drawing editor for creating figures in PDF or PS formats"
+HOMEPAGE="http://ipe7.sourceforge.net/"
+SRC_URI="mirror://sourceforge/ipe7/${PN}/7.1.0/${P}-src.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="
+ app-text/texlive-core
+ dev-lang/lua
+ media-libs/freetype:2
+ x11-libs/cairo
+ dev-qt/qtcore:4
+ dev-qt/qtgui:4"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+S="${WORKDIR}/${P}/src"
+
+search_urw_fonts() {
+ # colon-separated list of paths
+ local texmfdist="$(kpsewhich -var-value=TEXMFDIST)"
+ # according to TeX directory structure
+ local urwdir=fonts/type1/urw
+ # add colon as field separator
+ local IFS="${IFS}:" dir
+ for dir in ${texmfdist}; do
+ if [[ -d ${dir}/${urwdir} ]]; then
+ URWFONTDIR="${dir}/${urwdir}"
+ return 0
+ fi
+ done
+ return 1
+}
+
+pkg_setup() {
+ if search_urw_fonts; then
+ einfo "URW fonts found in ${URWFONTDIR}"
+ else
+ ewarn "Could not find directory containing URW fonts"
+ ewarn "Ipe will not function properly without them."
+ fi
+}
+
+src_prepare() {
+ sed -i \
+ -e 's/fpic/fPIC/' \
+ -e 's/moc-qt4/moc/' \
+ -e "s:\$(IPEPREFIX)/lib:\$(IPEPREFIX)/$(get_libdir):g" \
+ config.mak || die
+ sed -i -e 's/install -s/install/' common.mak || die
+
+ epatch "${FILESDIR}"/${P}-gold.patch
+}
+
+src_compile() {
+ emake \
+ CXX=$(tc-getCXX) \
+ IPEPREFIX="${EPREFIX}/usr" \
+ IPEDOCDIR="${EPREFIX}/usr/share/doc/${PF}/html"
+}
+
+src_install() {
+ emake install \
+ IPEPREFIX="${EPREFIX}/usr" \
+ IPEDOCDIR="${EPREFIX}/usr/share/doc/${PF}/html" \
+ INSTALL_ROOT="${ED}"
+ dodoc ../{news,readme}.txt
+ doicon ipe/icons/ipe.png
+ make_desktop_entry ipe Ipe ipe
+}
diff --git a/media-gfx/ipe/metadata.xml b/media-gfx/ipe/metadata.xml
new file mode 100644
index 000000000000..6446d13a5fe6
--- /dev/null
+++ b/media-gfx/ipe/metadata.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>sci@gentoo.org</email>
+ <name>Gentoo Science Project</name>
+ </maintainer>
+ <longdescription lang="en">
+ Ipe is a drawing editor for creating figures in PDF or
+ (encapsulated) Postscript format. Ipe supports making small figures
+ for inclusion into LaTeX documents as well as making multi-page PDF
+ presentations.
+</longdescription>
+ <upstream>
+ <remote-id type="sourceforge">ipe7</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/media-gfx/iscan-data/Manifest b/media-gfx/iscan-data/Manifest
new file mode 100644
index 000000000000..728a7acb1d1b
--- /dev/null
+++ b/media-gfx/iscan-data/Manifest
@@ -0,0 +1,7 @@
+DIST iscan-data_1.22.0-1.tar.gz 96626 SHA256 e6ef1c275488d907869f48eb7889d9a01e564ea4b39e291e90843feb59e92ef8 SHA512 2adc6c125045803ffd269abab4f58d6d1c87ebd4c959985e6689d0b2e7f5a84fb1956d0e559c35b1704a1e330bc639e668c37f718c871e076a7ccf6c35562e6f WHIRLPOOL f4b7aaf68396c54295b40999653b4f1f8777d154e38ff1612a2458c2449570a6213fd41abeb13d6d06cba09828f8f35d485a6cce7303e8657a7ce87887657cc2
+DIST iscan-data_1.36.0-1.tar.gz 100218 SHA256 3a0a0075d0f7fcb0f482cbde2e74c9f6bee64268db32a4e6f470f1a6069117ba SHA512 a9711264c852dd4bdcdb10c1153f725a111bd74b03705c99265b6692bf47236c6e4f5e7e4813991eb5991deb198adeee272c8c3eb53da641ba189d923916d3cb WHIRLPOOL 5fc6bc042c7ee587e00b47f46f7b3ae3eba8646ac8c66ea5a1641d616f54fe75e7a1285b7146a4bba0e75bb88dae8c4478cefc270f6bf07e89f67b6ec3141f02
+EBUILD iscan-data-1.22.0.1.ebuild 965 SHA256 a3c7500068e3437aaa5351af4cad67bc16af7a1db997bd24c85cbfd6901f7cb7 SHA512 c6c6e62bbcc930bf9d045be41260312d5e0a693a016a37847a609d0dea7aed1e1f9ead5cb910675f612a88c420b368f79ca1565959f05eb4cef4562471269ebe WHIRLPOOL 2d71ca2b239b248673a66275619537b980e0e2b87ec48854b7360c216e09655b32a4e30441949568169d1022ef37dbadfdd31d0479a5d380a1ea076ada9af3c7
+EBUILD iscan-data-1.36.0.1.ebuild 1265 SHA256 1c9f4ff5a558b1385ec516fa13ee7089ae1cf97cf03d009853f8c03ee37fa314 SHA512 4dd435ffc75204b5a87d7dbd144cffe96ee92a25e6bbd5fb19680eac5cf192404d252c5582b4acaf24cb2fe764f25611ab2bd16a4cf63b58ab758166b3315c1a WHIRLPOOL f417f4037da8a358289d004c1993405178152f08336af96852b8c907cb008a6de34b56a944b605ac7ae26fb362a726ee9ad840870b7c4015b35e422c64a1d72f
+MISC ChangeLog 2565 SHA256 d400a4deba2030010b6ac5b855cdf6fb887eea4dddaafbe9cf327f53c843d705 SHA512 97f3f48eab11bcad8eff67aab07c20bef3639f1733aa7280857324d20e64fe8ef1239a4f7b866b73f11870cd8a13f59c63ad2e7ea4b858f1f18b90baf2ba8706 WHIRLPOOL 0bb098615299cddf7f55658a0ef4be7415e1518a1964ea15bbb666ab3ead7fc11bd85bf2777fde6b0d053248a50a6fe46b259c701801cd717c9e281b2cda9fca
+MISC ChangeLog-2015 2728 SHA256 994256822fd50248733a9bbe6a87dd3b8debd99d0bbd1578c202ff94c1ffd1b5 SHA512 d650b93316735f1a2c852fc9865df12a9a5829d46e8d3ce0e8a0877a3e5a3175896365ff831ae2b0467d73beaf785f33e5e902268e478707ed147e56293e9d8d WHIRLPOOL e5924b748c4ea70338100bb5fb5cddd1dac60a329debf31df2532073ec5907fbd51ebc19196cc53ecae6c1d1e1dfdb665ac0b34279dc971433c1d157749861dc
+MISC metadata.xml 609 SHA256 e3a414be89b6ff07a66be5a87500ff61da9763b6952e5970e7f4e27acadf7ad4 SHA512 32ede245d749b0be045e45a5c8a6f68f9487d807f8777c0da84fd93b20ca11aa1ec3d132d2b24a7a58802a112b71ace82fa03f3e618a9d66bc99101eefb7b5df WHIRLPOOL df5a0aa1b70a14d8697f143c4913104895fa638c48651de82ab9ac5e1b13a29d85b318e7ee0a00bec44601fdf3a82fb5fa72a4c5742c21c13128aac720103aef
diff --git a/media-gfx/iscan-data/iscan-data-1.22.0.1.ebuild b/media-gfx/iscan-data/iscan-data-1.22.0.1.ebuild
new file mode 100644
index 000000000000..e2901b89af22
--- /dev/null
+++ b/media-gfx/iscan-data/iscan-data-1.22.0.1.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit eutils versionator udev multilib
+
+MY_PV="$(get_version_component_range 1-3)"
+MY_PVR="$(replace_version_separator 3 -)"
+
+DESCRIPTION="Image Scan! for Linux data files"
+HOMEPAGE="http://download.ebz.epson.net/dsc/search/01/search/?OSC=LX"
+SRC_URI="https://dev.gentoo.org/~flameeyes/avasys/${PN}_${MY_PVR}.tar.gz"
+LICENSE="GPL-2"
+SLOT="0"
+
+KEYWORDS="amd64 x86"
+IUSE="udev"
+
+DEPEND="udev? (
+ dev-libs/libxslt
+ media-gfx/sane-backends
+ )"
+RDEPEND=""
+
+S="${WORKDIR}/${PN}-${MY_PV}"
+
+DOCS=( NEWS SUPPORTED-DEVICES KNOWN-PROBLEMS )
+
+src_install() {
+ default
+
+ if use udev; then
+ # create udev rules
+ local rulesdir=$(get_udevdir)/rules.d
+ dodir ${rulesdir}
+ "${D}usr/$(get_libdir)/iscan-data/make-policy-file" \
+ --force --quiet --mode udev \
+ -d "${D}usr/share/iscan-data/epkowa.desc" \
+ -o "${D}${rulesdir}/99-iscan.rules" || die
+ fi
+}
diff --git a/media-gfx/iscan-data/iscan-data-1.36.0.1.ebuild b/media-gfx/iscan-data/iscan-data-1.36.0.1.ebuild
new file mode 100644
index 000000000000..8cb288324b4a
--- /dev/null
+++ b/media-gfx/iscan-data/iscan-data-1.36.0.1.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit eutils versionator udev multilib
+
+MY_PV="$(get_version_component_range 1-3)"
+MY_PVR="$(replace_version_separator 3 -)"
+
+DESCRIPTION="Image Scan! for Linux data files"
+HOMEPAGE="http://download.ebz.epson.net/dsc/search/01/search/?OSC=LX"
+# Use a gentoo hosted url since upstream uses a session based url that causes the
+# files to no longer be available after the session expires.
+SRC_URI="https://dev.gentoo.org/~idella4/tarballs//${PN}_${MY_PVR}.tar.gz"
+LICENSE="GPL-2"
+SLOT="0"
+
+KEYWORDS="amd64 x86"
+IUSE="udev"
+
+DEPEND="udev? (
+ dev-libs/libxslt
+ media-gfx/sane-backends
+ )"
+RDEPEND=""
+
+S="${WORKDIR}/${PN}-${MY_PV}"
+
+DOCS=( NEWS SUPPORTED-DEVICES KNOWN-PROBLEMS )
+
+src_install() {
+ ewarn ""; ewarn "Some profiles automatically enable udev which will cause install to fail"
+ ewarn "if media-gfx/sane-backends is not already installed."; ewarn ""
+ default
+
+ if use udev; then
+ # create udev rules
+ local rulesdir=$(get_udevdir)/rules.d
+ dodir ${rulesdir}
+ "${D}usr/$(get_libdir)/iscan-data/make-policy-file" \
+ --force --mode udev \
+ -d "${D}usr/share/iscan-data/epkowa.desc" \
+ -o "${D}${rulesdir}/99-iscan.rules" || die
+ fi
+}
diff --git a/media-gfx/iscan-data/metadata.xml b/media-gfx/iscan-data/metadata.xml
new file mode 100644
index 000000000000..b2d428e4c97a
--- /dev/null
+++ b/media-gfx/iscan-data/metadata.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>mattsch@gmail.com</email>
+ <name>Matthew Schultz</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+ </maintainer>
+ <longdescription lang="en">
+ Provides the necessary support files for Image Scan! for Linux,
+ including device information and policy file generation logic.
+ Image Scan! for Linux will not function without this package.
+ </longdescription>
+</pkgmetadata>
diff --git a/media-gfx/iscan-plugin-esdip/Manifest b/media-gfx/iscan-plugin-esdip/Manifest
new file mode 100644
index 000000000000..9bb43dab91f3
--- /dev/null
+++ b/media-gfx/iscan-plugin-esdip/Manifest
@@ -0,0 +1,6 @@
+DIST iscan-plugin-esdip-1.0.0-5.ltdl7.i386.rpm 1311240 SHA256 2f30cd6b30193c5eda0f94ee1cd9204fe8427507802bd095a790f33a5a0a1bec SHA512 cff826ad66e1718a9b59f09849522af70789f782e36d5ed979ef4296eee7be5e4e02375c939300b94d6ac555f1db2441bee59758a8a0d040770d25b47ba8dbab WHIRLPOOL 5326584ff96e4c779d611db15913f43176484067b03d3cd2b59e615ac85fb777198b15150a338f1abf7009178d6c16d624d572f1fa8efda3db1c5a95d4567cac
+DIST iscan-plugin-esdip-1.0.0-5.ltdl7.x86_64.rpm 1359799 SHA256 fb17948a12f34e943613484ca9d05c80806cab34bd28dbcfe3ff593363b2ddd4 SHA512 3d5f9721eb9d8b56d16800a4a4a25c4b887d593e08d1d0c3709f10b92c52b906000e84c99f41eec13b9ccdbaf53d2621f6f1582d69a1e5e291239a47987776a7 WHIRLPOOL 88d747fcbe29a859326029584bb25c630217a1159aaca8ca9e7bdfc9e6782e758040b0da2a0e8b9c6fa73677eb11516ed9f21865bc13ce656362044dd814803a
+EBUILD iscan-plugin-esdip-1.0.0.5-r1.ebuild 970 SHA256 33ce69152b14c7247703ab672cc6702c94be758a72c880f5431471951a606d4c SHA512 a75453cb7d7da79b8fde6f60f3459158c284117b2e674622b5ee95e742cd3eb8faa8eb5e34ed19e33305d3a4ef77f52d2a78e03c77a726df39edd997c99da703 WHIRLPOOL c0cb1d7e392ee9349d16c0d415f3a7d6a03b8075b40fa2afb93c4fcbe414d07eb32b8c1e0c49c213264806bb101ebfa3cf7bfe8dfc358fd9599afb212907b82f
+MISC ChangeLog 2380 SHA256 63717a139d3f5b4d1967c8cf73cb34190d7218cf76efa2b0f6cc825fb45c6f77 SHA512 3a1d4c5f1ecea698bb55ad16dbb9b318cf1ad06916d54564003291d6c56931228b5819db188539b8c4b21b3da2cf99fcda883d0537cfe86bfa1c3bb5fb3cd87e WHIRLPOOL 9218096d568ba95a14b4535073f047d0fa5159b866657053276ad3add67ecd4b993c7e733d8306069d6f86ea20211786d01dc00da1c66e1b85a18a4341ff56b1
+MISC ChangeLog-2015 1046 SHA256 062ebee5b9ff9b94227b0f163ea813fae5db220d0c60e099e245281d0c6bd465 SHA512 bab7492a8749324a9583b51012859e383ba8c1c4b6f37a455a735931ddaf4526818669918f2b98037ffef04971b8e6235b0e97d71d5dd27ae84920fdf255d25e WHIRLPOOL 6761e20bd65363dd69be94d85ac945b7ded6d4f46c60a46c34c819df11de1ba5d5137b904b25c4703aed2b8ee405557251aa314d1ee421c6ad923beec09cf897
+MISC metadata.xml 424 SHA256 80843a3d0c4358905f75cd71ef7bb6d80fa03b24ec7d88b71eb4e374a006e3ce SHA512 c2a7bfe181fdb15dc9921d600107e41335f592d132e53ec180181d6c830eb353260c93cf230b97b5aca52d4e0003d3d2b60cb37726d49bacd8ba07716467a0b2 WHIRLPOOL d634733c7b1aa70f09c55ace8409ba3557e06a5778656f4647577e9014842f7ed2c3bdd1e76cfdb290e99cc24eaca8c73417ef15a6599bf59d9d9ea9f779709b
diff --git a/media-gfx/iscan-plugin-esdip/iscan-plugin-esdip-1.0.0.5-r1.ebuild b/media-gfx/iscan-plugin-esdip/iscan-plugin-esdip-1.0.0.5-r1.ebuild
new file mode 100644
index 000000000000..f8a30eaf927f
--- /dev/null
+++ b/media-gfx/iscan-plugin-esdip/iscan-plugin-esdip-1.0.0.5-r1.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+
+inherit rpm versionator multilib
+
+MY_PV="$(get_version_component_range 1-3)"
+MY_PVR="$(replace_version_separator 3 -)"
+
+DESCRIPTION="Plugin for 'epkowa' backend for image manipulation"
+HOMEPAGE="http://download.ebz.epson.net/dsc/search/01/search/?OSC=L"
+SRC_URI="amd64? ( https://dev.gentoo.org/~flameeyes/avasys/${PN}-${MY_PVR}.ltdl7.x86_64.rpm )
+ x86? ( https://dev.gentoo.org/~flameeyes/avasys/${PN}-${MY_PVR}.ltdl7.i386.rpm )"
+
+LICENSE="AVASYS"
+SLOT="0"
+KEYWORDS="-* ~amd64 ~x86"
+
+IUSE=""
+
+DEPEND=">=media-gfx/iscan-2.28.0"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}"
+
+QA_PREBUILT="/usr/lib64/iscan/libesdtr.so.0*
+ /usr/lib64/iscan/libesdtr2.so.0*"
+
+src_configure() { :; }
+src_compile() { :; }
+
+src_install() {
+ dodoc usr/share/doc/*/*
+
+ exeinto /usr/$(get_libdir)/iscan
+ doexe usr/$(get_libdir)/iscan/*
+
+ insinto /usr/share/iscan
+ doins usr/share/iscan/*
+}
diff --git a/media-gfx/iscan-plugin-esdip/metadata.xml b/media-gfx/iscan-plugin-esdip/metadata.xml
new file mode 100644
index 000000000000..ccb742d82570
--- /dev/null
+++ b/media-gfx/iscan-plugin-esdip/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <longdescription lang="en">
+ Proprietary plugin for several EPSON scanner models, to be used
+ with the epkowa SANE backend (provided by
+ <pkg>media-gfx/iscan</pkg>). 32-bit and 64-bit.
+
+ Provides support for image manipulation (deskew and autocrop).
+ </longdescription>
+</pkgmetadata>
diff --git a/media-gfx/iscan-plugin-gt-f500/Manifest b/media-gfx/iscan-plugin-gt-f500/Manifest
new file mode 100644
index 000000000000..d4ab2aa518a8
--- /dev/null
+++ b/media-gfx/iscan-plugin-gt-f500/Manifest
@@ -0,0 +1,5 @@
+DIST iscan-plugin-gt-f500-1.0.0-1.c2.i386.rpm 126130 SHA256 fe87d16ce22c28e2c320286758bea32ea4cad75c83debd6fe95670b704701464 SHA512 efecbb6e3f4fe3f498ebf9bb68a1755405c675d67c52042dcfc2e4e7f98903a870f969b4453d110c9f774452c6ae44042482ee954762c5f5a559e2d3e52a98d0 WHIRLPOOL 11ac8ac1e40b95a2a6128fc3c7fca8c27483c8305f87c989d4102b3d26acd655d7436c7a11547e8c08dac2a488c98b16699e801a5e794f6122935e91116b9bce
+EBUILD iscan-plugin-gt-f500-1.0.0.1-r1.ebuild 2044 SHA256 d8785a1edff3b67527ae1f8417b3e664371478fd275efbd971bf6590d16a2801 SHA512 13cd13f9ce2fb9190afe00116af1c469e76caca24572e0bf0db2f23c2abd1ec4129cc9020fef52a7062dd2f3a8d5d3c57bef700eb3ae1c114fa3ecaac7226e82 WHIRLPOOL 0a7cc0cba543e0c6135c2c29842fa71288010b603f9a142492ec862771e88508c682c00a1f535a639883c7ca454d89b3a82759ba04cdf0ee7a33c33bfd50ebc4
+MISC ChangeLog 2781 SHA256 7932c6468c501d8a42eecc0910d7b115ecb2a9870eabf4322a33b7d125230792 SHA512 6c280d4c73b1b64116b4721d5b5bcd5b8d31bbe1147d673f2f4a0dcc81619da1cd2fb71cd4feb20369e4f62f3a6a8b2046c2d9954e3dd0f6c628c59945b906ff WHIRLPOOL bbdb1a94315312745675524b1b4a69fb480a623d7c9079802f8cc01c2f9b50e42a3c87c53637c0d7b4950a0a63eb783e1e0ade680457451436e4860daf7462a8
+MISC ChangeLog-2015 1501 SHA256 0b329280322b64add89435bbab8f004326a6bf86c59fe15ecd6c41617b62370f SHA512 5e168c5c49f71731de373bc3b12c78549919b573bf82d6c0547937c13079aadeca72ae167f4b1e3f901ba8f5048002f7f4d13d7690d471b41b2d177989976622 WHIRLPOOL ca082d7c47322d55ec29d638511382f9556a02b932320d19a8088e1b8942c1456c2f5041a2770c823961bf5831853b627c7dfffffad060386149b2d904ccd09c
+MISC metadata.xml 718 SHA256 079aab5685fe82fbbdd03cb112716cd630ff3de78c10ddab6bb64540a71b73eb SHA512 4115f0c83b8865fe26ed3a1b796d9491f8fda3c8f03ad611fee755fa91b591f4297656340efc7d4b916a8a215e0ee5d8fea9fc824a5139305fe2a1525b135271 WHIRLPOOL a6708cf469b961222c74e22f630f427c031568e2733ce42443906e699df83db465e3329d849d15a1b161fa4d86e0b59ad0077a73d947b79383aa6064d1a0dbbb
diff --git a/media-gfx/iscan-plugin-gt-f500/iscan-plugin-gt-f500-1.0.0.1-r1.ebuild b/media-gfx/iscan-plugin-gt-f500/iscan-plugin-gt-f500-1.0.0.1-r1.ebuild
new file mode 100644
index 000000000000..ec4ff46f4fda
--- /dev/null
+++ b/media-gfx/iscan-plugin-gt-f500/iscan-plugin-gt-f500-1.0.0.1-r1.ebuild
@@ -0,0 +1,84 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="4"
+
+inherit multilib rpm versionator
+
+MY_P="${PN}-$(replace_version_separator 3 -)"
+
+DESCRIPTION="Epson Perfection 2480/2580 PHOTO scanner plugin for SANE 'epkowa' backend"
+HOMEPAGE="http://download.ebz.epson.net/dsc/search/01/search/?OSC=LX"
+SRC_URI="https://dev.gentoo.org/~flameeyes/avasys/${MY_P}.c2.i386.rpm"
+
+LICENSE="EPSON EAPL"
+SLOT="0"
+KEYWORDS="-* ~amd64"
+
+IUSE="minimal"
+
+DEPEND="minimal? ( >=media-gfx/iscan-2.21.0 )"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}"
+
+src_configure() { :; }
+src_compile() { :; }
+
+src_install() {
+ # install scanner firmware
+ insinto /usr/share/iscan
+ doins "${WORKDIR}/usr/share/iscan/"*
+
+ dodoc usr/share/doc/*/*
+
+ use minimal && return
+ # install scanner plugins
+ exeinto /opt/iscan/esci
+ doexe "${WORKDIR}/usr/$(get_libdir)/iscan/"*
+}
+
+pkg_setup() {
+ basecmds=(
+ "iscan-registry --COMMAND interpreter usb 0x04b8 0x0121 '/opt/iscan/esci/libesint41.so.2 /usr/share/iscan/esfw41.bin'"
+ )
+}
+
+pkg_postinst() {
+ elog
+ elog "Firmware file esfw41.bin for Epson Perfection 2480/2580 PHOTO"
+ elog "has been installed in /usr/share/iscan."
+ elog
+ use minimal && return
+ [[ -n ${REPLACING_VERSIONS} ]] && return
+
+ # Needed for scanner to work properly.
+ if [[ ${ROOT} == "/" ]]; then
+ for basecmd in "${basecmds[@]}"; do
+ eval ${basecmd/COMMAND/add}
+ done
+ else
+ ewarn "Unable to register the plugin and firmware when installing outside of /."
+ ewarn "execute the following command yourself:"
+ for basecmd in "${basecmds[@]}"; do
+ ewarn "${basecmd/COMMAND/add}"
+ done
+ fi
+}
+
+pkg_prerm() {
+ use minimal && return
+ [[ -n ${REPLACED_BY_VERSION} ]] && return
+
+ if [[ ${ROOT} == "/" ]]; then
+ for basecmd in "${basecmds[@]}"; do
+ eval ${basecmd/COMMAND/remove}
+ done
+ else
+ ewarn "Unable to de-register the plugin and firmware when installing outside of /."
+ ewarn "execute the following command yourself:"
+ for basecmd in "${basecmds[@]}"; do
+ ewarn "${basecmd/COMMAND/remove}"
+ done
+ fi
+}
diff --git a/media-gfx/iscan-plugin-gt-f500/metadata.xml b/media-gfx/iscan-plugin-gt-f500/metadata.xml
new file mode 100644
index 000000000000..c1744e26e874
--- /dev/null
+++ b/media-gfx/iscan-plugin-gt-f500/metadata.xml
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <longdescription lang="en">
+ Proprietary plugin for several EPSON scanner models, to be used
+ with the epkowa SANE backend (provided by
+ <pkg>media-gfx/iscan</pkg>). 32-bit only.
+
+ Also includes the firmware for them, to be used with the snapscan
+ SANE backend (provided by <pkg>media-gfx/sane-backends</pkg>).
+
+ Supports the following models:
+
+ EPSON Perfection 2480 PHOTO / GT-F500
+ EPSON Perfection 2580 PHOTO / GT-F550
+ </longdescription>
+
+ <use>
+ <flag name="minimal">
+ Install the firmware only, and not the plugin.
+ </flag>
+ </use>
+</pkgmetadata>
diff --git a/media-gfx/iscan-plugin-gt-f720/Manifest b/media-gfx/iscan-plugin-gt-f720/Manifest
new file mode 100644
index 000000000000..f5fc35f0dd1f
--- /dev/null
+++ b/media-gfx/iscan-plugin-gt-f720/Manifest
@@ -0,0 +1,7 @@
+DIST esci-interpreter-gt-f720-0.0.1-2.i386.rpm 381387 SHA256 c47d2acfb6de4d9c300e2f26df5b8a7c250e07195245d638457b8a4ea61f0903 SHA512 6ccc6f48d8c00614346a0faee798b876497ba5ac1b35e3fd558a6e01711b944dc713e654d53fff09daff00b91251150665932564fea4fc60ec1a0a7ec95fa1f5 WHIRLPOOL 2edd2338e00d05a017e68bdae4ca791dd409e8138adfff7cc45557ec612a209b1cb01f2ce823fbc2de4afead23019c1962a013885886bafe838ed51b018635e7
+DIST esci-interpreter-gt-f720-0.0.1-2.x86_64.rpm 170040 SHA256 9e82fc5110b4f2b08402ac4e0a4391665b7edccaba43df4299f5c48b60faaabb SHA512 457fcfa3ae8291336a127e95dc81e24a2125ae8f861bf74d2006e4d019c54bd351c2480254b9173e52dfe489962dffea2819963596f280e1dc05c527fbf6b625 WHIRLPOOL 362e8030b9c55f12ff56c9883689b8d0d9e5387c55fdcd9b0fbb5ca418b479a081b3bdd845f59ad3381ff52c96fd25d879746786d1b129cc5d1d27f6c358cd65
+EBUILD iscan-plugin-gt-f720-0.0.1.2.ebuild 1796 SHA256 725122ced43e8ffcad70af0c8faad1ab215c15bcb8841caefe56775161e5b62d SHA512 f7e55bc3e4860c160b910e2c43c5b0fa42a8135da87ac733af10926edf6a43450e0b0f49470f57aaf1cd7817d9088d252bdfe272a9dc5cf93e434b70d49ac361 WHIRLPOOL cbe1f3e6ba77a46c04d1bd7c0e0c40ae1fcdcc0c717ce9616ab8beaa8df88cc5e562247af0ab4b767c5aab2a035be5359012ec1ae65ae25b1a41fb2e056273c9
+EBUILD iscan-plugin-gt-f720-0.0.1.ebuild 1714 SHA256 6c57dd796782c96ec36c5e93deb097604ec651c5ffcf44b26ad2e508edb14f63 SHA512 a97b614e4315947f23fbac62c508c34784c1f39016e040a0280264497dcc5e9609bb58aa18bb2fb290aee0d59656ae3e45fbda11477a33ba9d770434835ef93f WHIRLPOOL 18c92700eec221731024d6ba0413a64ab230f0759ce219b2a9c7156c813bed927444bf294ef0b65eac50692eb2f529db52ccf7f9edc6c8ebe7be3322d71d735a
+MISC ChangeLog 2617 SHA256 423de0775e71965a3bbc054e019497ee5436566302d195b71f49031e04de3c40 SHA512 3ab2504b42c24c672efa63eff3fb9aff25a12ed904c21d13b069a6f2edc05ad2cf804196dc133af7ca82f1cd8f1ef16aae41487ac77fc999610cc9cb3e81192b WHIRLPOOL 04665ead365af4cc5e735c0dca51243619756bd787676416aadd2aa1bd74cd9f42fa63b9272a9a3b06ae1f2c74af66bba7d113ef9dac3ab447d3ff461737089c
+MISC ChangeLog-2015 1728 SHA256 6dfd0e3278ec6b9b7fd5cd88b6e74c864afff92d8dfcd2071977d61ee540dd59 SHA512 09506739a7358e19f88e553ac2250f7307ace09908aa61f1f52ddb32d7845061bcdbad3c88025f5633b03a61d6f303fd746a35977ebfd1a21786d3f5d0611666 WHIRLPOOL aa61ae9331d0e183e33c0128c1327764b21918ac0ea0cd0830b359fa2874eaa2ee0126898ee89e2e6d7a9fd5f520165f3cf765ebafb0ba4bbfcb0209ebc4ba06
+MISC metadata.xml 445 SHA256 535fdb6bff553d471e4a1c734337bbb2b2f7f9d2b3a08ecb904a16f8a52270d6 SHA512 ed7c058931f20c758d70f6751841acfafdf388d98d17e80e700d69613e841cf883f02a3a134fb37e24c834012dfa0d8ec67b976ff866a90880b9b561f9c15164 WHIRLPOOL 3a260544d4b7afa1d699a35281beba078fa1675f67ac5e3d9ddbca1b66a4159dee83ad31d4f81c0106e0c8d0e728cfdb6bb4f41203c313dc6879e12dc0557451
diff --git a/media-gfx/iscan-plugin-gt-f720/iscan-plugin-gt-f720-0.0.1.2.ebuild b/media-gfx/iscan-plugin-gt-f720/iscan-plugin-gt-f720-0.0.1.2.ebuild
new file mode 100644
index 000000000000..369ca44f7cfa
--- /dev/null
+++ b/media-gfx/iscan-plugin-gt-f720/iscan-plugin-gt-f720-0.0.1.2.ebuild
@@ -0,0 +1,68 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="4"
+
+inherit multilib versionator rpm
+
+MY_PV="$(get_version_component_range 1-3)"
+MY_PVR="$(replace_version_separator 3 -)"
+MY_P="esci-interpreter-gt-f720-${MY_PVR}"
+
+DESCRIPTION="Epson Perfection V300 PHOTO scanner plugin for SANE 'epkowa' backend"
+HOMEPAGE="http://download.ebz.epson.net/dsc/search/01/search/?OSC=LX"
+SRC_URI="amd64? ( https://dev.gentoo.org/~flameeyes/avasys/${MY_P}.x86_64.rpm )
+ x86? ( https://dev.gentoo.org/~flameeyes/avasys/${MY_P}.i386.rpm )"
+
+LICENSE="AVASYS"
+SLOT="0"
+KEYWORDS="-* amd64 x86"
+
+IUSE=""
+IUSE_LINGUAS="ja"
+
+for X in ${IUSE_LINGUAS}; do IUSE="${IUSE} linguas_${X}"; done
+
+DEPEND=">=media-gfx/iscan-2.21.0"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}"
+
+QA_PREBUILT="usr/lib64/esci/libesci-interpreter-gt-f720.so*"
+
+src_install() {
+ local MY_LIB="/usr/$(get_libdir)"
+
+ # install scanner firmware
+ insinto /usr/share/esci
+ doins "${WORKDIR}/usr/share/esci/"*
+
+ # install docs
+ if use linguas_ja; then
+ dodoc usr/share/doc/*/AVASYSPL.ja.txt
+ else
+ dodoc usr/share/doc/*/AVASYSPL.en.txt
+ fi
+
+ # install scanner plugins
+ insinto "${MY_LIB}/esci"
+ insopts -m0755
+ doins "${WORKDIR}/usr/$(get_libdir)/esci/"*
+}
+
+pkg_postinst() {
+ local MY_LIB="/usr/$(get_libdir)"
+
+ # Needed for scaner to work properly.
+ iscan-registry --add interpreter usb 0x04b8 0x0131 "${MY_LIB}/esci/libesci-interpreter-gt-f720 /usr/share/esci/esfw8b.bin"
+ elog
+ elog "Firmware file esfw8b.bin for Epson Perfection V300 PHOTO"
+ elog "has been installed in /usr/share/esci and registered for use."
+ elog
+}
+
+pkg_prerm() {
+ local MY_LIB="/usr/$(get_libdir)"
+
+ iscan-registry --remove interpreter usb 0x04b8 0x0131 "${MY_LIB}/esci/libesci-interpreter-gt-f720 /usr/share/esci/esfw8b.bin"
+}
diff --git a/media-gfx/iscan-plugin-gt-f720/iscan-plugin-gt-f720-0.0.1.ebuild b/media-gfx/iscan-plugin-gt-f720/iscan-plugin-gt-f720-0.0.1.ebuild
new file mode 100644
index 000000000000..949f41b34450
--- /dev/null
+++ b/media-gfx/iscan-plugin-gt-f720/iscan-plugin-gt-f720-0.0.1.ebuild
@@ -0,0 +1,66 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="2"
+
+inherit multilib rpm
+
+# Revision used by upstream
+SRC_REV="2"
+
+MY_P="esci-interpreter-gt-f720-${PV}"
+
+DESCRIPTION="Epson Perfection V300 PHOTO scanner plugin for SANE 'epkowa' backend"
+HOMEPAGE="http://www.avasys.jp/english/linux_e/dl_scan.html"
+SRC_URI="
+ x86? ( http://linux.avasys.jp/drivers/scanner-plugins/GT-F720/${MY_P}-${SRC_REV}.i386.rpm )
+ amd64? ( http://linux.avasys.jp/drivers/scanner-plugins/GT-F720/${MY_P}-${SRC_REV}.x86_64.rpm )"
+
+LICENSE="AVASYS"
+SLOT="0"
+KEYWORDS="amd64 x86"
+
+IUSE=""
+IUSE_LINGUAS="ja"
+
+for X in ${IUSE_LINGUAS}; do IUSE="${IUSE} linguas_${X}"; done
+
+DEPEND=">=media-gfx/iscan-2.21.0"
+RDEPEND="${DEPEND}"
+
+src_install() {
+ local MY_LIB="/usr/$(get_libdir)"
+
+ # install scanner firmware
+ insinto /usr/share/esci
+ doins "${WORKDIR}/usr/share/esci/"*
+
+ # install docs
+ if use linguas_ja; then
+ dodoc "usr/share/doc/${MY_P}/AVASYSPL.ja.txt"
+ else
+ dodoc "usr/share/doc/${MY_P}/AVASYSPL.en.txt"
+ fi
+
+ # install scanner plugins
+ insinto "${MY_LIB}/esci"
+ insopts -m0755
+ doins "${WORKDIR}/usr/$(get_libdir)/esci/"*
+}
+
+pkg_postinst() {
+ local MY_LIB="/usr/$(get_libdir)"
+
+ # Needed for scaner to work properly.
+ iscan-registry --add interpreter usb 0x04b8 0x0131 "${MY_LIB}/esci/libesci-interpreter-gt-f720 /usr/share/esci/esfw8b.bin"
+ elog
+ elog "Firmware file esfw8b.bin for Epson Perfection V300 PHOTO"
+ elog "has been installed in /usr/share/esci and registered for use."
+ elog
+}
+
+pkg_prerm() {
+ local MY_LIB="/usr/$(get_libdir)"
+
+ iscan-registry --remove interpreter usb 0x04b8 0x0131 "${MY_LIB}/esci/libesci-interpreter-gt-f720 /usr/share/esci/esfw8b.bin"
+}
diff --git a/media-gfx/iscan-plugin-gt-f720/metadata.xml b/media-gfx/iscan-plugin-gt-f720/metadata.xml
new file mode 100644
index 000000000000..8cb2931d6deb
--- /dev/null
+++ b/media-gfx/iscan-plugin-gt-f720/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <longdescription lang="en">
+ Proprietary plugin for several EPSON scanner models with the epkowa SANE backend (provided by media-gfx/iscan).
+ This particular plugin (f720) seems to be required for:
+ Epson GT-F720
+ Epson GT-S620
+ Epson Perfection V30
+ Epson Perfection V300 Photo
+ </longdescription>
+</pkgmetadata>
diff --git a/media-gfx/iscan-plugin-gt-x770/Manifest b/media-gfx/iscan-plugin-gt-x770/Manifest
new file mode 100644
index 000000000000..98d5ab698c5a
--- /dev/null
+++ b/media-gfx/iscan-plugin-gt-x770/Manifest
@@ -0,0 +1,6 @@
+DIST iscan-plugin-gt-x770-2.1.2-1.i386.rpm 462166 SHA256 8ce99f42e302d6686f71c3e697f75ca1eb608af72d5986d785c9cf8bc4bd93fc SHA512 b8c16dd1c3d2d8f01956a72a170fa9b51520c78ab9d2d0cd581ee1b18760a28693d364e3bc3ac50a4f1c794fb4da777d452fe12ae3cf513a06eb5bedd2543b30 WHIRLPOOL 696dfe85f2d0cb49525e310f76adb73a68406b6a66e531b49ddadef9d0d696b7d9623aae481834279a4840bd0c63c72183acaccba4dda397d04ec9528255f8f7
+DIST iscan-plugin-gt-x770-2.1.2-1.x86_64.rpm 196426 SHA256 87db6217232e0ce6ee2f50183f831fd923aaa76b34e0da7445f4cd7bcad5b902 SHA512 a69830fb35b2732351b35ef39a6863886bf6bc992242188e57d273444ea17e55294b5b9331c5e770b8af179e4f346e5be74c5fd79e1e6cefd2a1e975c3e68a43 WHIRLPOOL 1c79c49c9d31f37f061a8e314e53f1d8846a64d448b73c1c503ea8dc1c90d11b1142c26ee4618117041de9e78c395643506d9d7e8821cef3cd84b0ba0b3457b6
+EBUILD iscan-plugin-gt-x770-2.1.2.1-r3.ebuild 2186 SHA256 aaf324448b6d423f142550ee27a25c88b48473c29cb997ab756410cbb3156fdf SHA512 405c062938edb045612d4589e9a3d39b87826e931ca19a15ef7093ecfff9ee295c235deebc2581fa733928fbbc893c3a01b491b38449ada022349163143704a5 WHIRLPOOL c189a9487eaaf8207b5a2dbd6cb1c5178c2334608e9fdb345b6d7f03a9881e365a96a79296fd0389ae553b31531b7d256db66446d7286d23157540a7fc1f3fd2
+MISC ChangeLog 2639 SHA256 f53aff2033049aeae9a73255a8b9bd265fa9ea3ba5a277055f509aca975af59b SHA512 8dfdaedca74fce5a931c98ddd11f74a7b6cd9264577d0efd14f3eec9991014d4d63d94977ecf16c328ce2704b08b17cb95ea9a03c482f07543c49b97be3d47ab WHIRLPOOL ccabae1a2dc280012f2551bf289bd41c508717847acbfc031ca297300508e9a82b7d8966336769dc6231053b0354bc36721f1409abfcb1ed6c08a3c2c7676033
+MISC ChangeLog-2015 1184 SHA256 cf988cef0728e0d567b7945a05cfed729091380424b70a9290f5c8f495ef32d4 SHA512 782ed100aaecd01f1debef66b8c6e48c3af5892be0e02780017fba97bded8eb166ea9f166c03a83237c027010f5bd5d3f93d9a1f44d4a569e9112077b7e2e1ef WHIRLPOOL 9c7bf00e17a59b54ed72a45824e778991779e1598cc185eb68c967269fc92710bcdc13303c091d3a0c81fc0acd59b72c67d16e4d0af8b12ad15b3c94490b4d70
+MISC metadata.xml 634 SHA256 8b657c507dfbbb69e4f7f01748cfabbf67ca2f7728785071d083d917010c2903 SHA512 5ec1987c34a9c70cb81ede5b5f91d859e01d036c3a82a2b187fb4553ed6c18f6404954acabc67138e6bd249a3d9ab4e1025be66f660613c21a79aa39fbf07c6a WHIRLPOOL b0bb0858cf0d08426e126e3b527cfea4092d311379886568e4b6a64b0ca325fa37cccc2767a9908331a0728d799ceb2ad1be9867d5766e4706eb775172f3e47e
diff --git a/media-gfx/iscan-plugin-gt-x770/iscan-plugin-gt-x770-2.1.2.1-r3.ebuild b/media-gfx/iscan-plugin-gt-x770/iscan-plugin-gt-x770-2.1.2.1-r3.ebuild
new file mode 100644
index 000000000000..380f3d1e59ea
--- /dev/null
+++ b/media-gfx/iscan-plugin-gt-x770/iscan-plugin-gt-x770-2.1.2.1-r3.ebuild
@@ -0,0 +1,89 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="4"
+
+inherit rpm versionator multilib
+
+MY_PV="$(get_version_component_range 1-3)"
+MY_PVR="$(replace_version_separator 3 -)"
+
+DESCRIPTION="Epson Perfection V500 scanner plugin for SANE 'epkowa' backend"
+HOMEPAGE="http://download.ebz.epson.net/dsc/search/01/search/?OSC=LX"
+SRC_URI="
+ x86? ( https://dev.gentoo.org/~flameeyes/avasys/${PN}/${MY_PV}/${PN}-${MY_PVR}.i386.rpm )
+ amd64? ( https://dev.gentoo.org/~flameeyes/avasys/${PN}/${MY_PV}/${PN}-${MY_PVR}.x86_64.rpm )
+"
+
+LICENSE="AVASYS"
+SLOT="0"
+KEYWORDS="-* ~amd64 ~x86"
+
+IUSE=""
+
+DEPEND=">=media-gfx/iscan-2.21.0
+ !!<media-gfx/iscan-plugin-gt-x770-2.1.2.1-r2"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}"
+
+QA_PREBUILT="/opt/iscan/esci/libesint7C.so*"
+
+src_configure() { :; }
+src_compile() { :; }
+
+src_install() {
+ # install scanner firmware
+ insinto /usr/share/iscan
+ doins "${WORKDIR}/usr/share/iscan/"*
+
+ dodoc usr/share/doc/*/*
+
+ # install scanner plugins
+ exeinto /opt/iscan/esci
+ doexe "${WORKDIR}/usr/$(get_libdir)/iscan/"*
+}
+
+pkg_setup() {
+ basecmds=(
+ "iscan-registry --COMMAND interpreter usb 0x04b8 0x0130 /opt/iscan/esci/libesint7C /usr/share/iscan/esfw7C.bin"
+ )
+}
+
+pkg_postinst() {
+ elog
+ elog "Firmware file esfw41.bin for Epson Perfection V500"
+ elog "has been installed in /usr/share/iscan."
+ elog
+
+ [[ -n ${REPLACING_VERSIONS} ]] && return
+
+ # Needed for scanner to work properly.
+ if [[ ${ROOT} == "/" ]]; then
+ for basecmd in "${basecmds[@]}"; do
+ eval ${basecmd/COMMAND/add}
+ done
+ else
+ ewarn "Unable to register the plugin and firmware when installing outside of /."
+ ewarn "execute the following command yourself:"
+ for basecmd in "${basecmds[@]}"; do
+ ewarn "${basecmd/COMMAND/add}"
+ done
+ fi
+}
+
+pkg_prerm() {
+ [[ -n ${REPLACED_BY_VERSION} ]] && return
+
+ if [[ ${ROOT} == "/" ]]; then
+ for basecmd in "${basecmds[@]}"; do
+ eval ${basecmd/COMMAND/remove}
+ done
+ else
+ ewarn "Unable to de-register the plugin and firmware when installing outside of /."
+ ewarn "execute the following command yourself:"
+ for basecmd in "${basecmds[@]}"; do
+ ewarn "${basecmd/COMMAND/remove}"
+ done
+ fi
+}
diff --git a/media-gfx/iscan-plugin-gt-x770/metadata.xml b/media-gfx/iscan-plugin-gt-x770/metadata.xml
new file mode 100644
index 000000000000..542b0a3df39d
--- /dev/null
+++ b/media-gfx/iscan-plugin-gt-x770/metadata.xml
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>mattsch@gmail.com</email>
+ </maintainer>
+ <maintainer type="project">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+ </maintainer>
+ <longdescription lang="en">
+ Proprietary plugin for several EPSON scanner models, to be used
+ with the epkowa SANE backend (provided by
+ <pkg>media-gfx/iscan</pkg>). 32-bit and 64-bit.
+
+ Supports the following models:
+
+ EPSON Perfection V500 (GT-X770)
+ </longdescription>
+</pkgmetadata>
diff --git a/media-gfx/iscan-plugin-gt-x820/Manifest b/media-gfx/iscan-plugin-gt-x820/Manifest
new file mode 100644
index 000000000000..ca24ddec85a2
--- /dev/null
+++ b/media-gfx/iscan-plugin-gt-x820/Manifest
@@ -0,0 +1,6 @@
+DIST iscan-plugin-gt-x820-2.2.0-1.i386.rpm 490641 SHA256 aef57fde9829bb888dd091cd7423778a88511e4d580f519d06f43d097db80c84 SHA512 37f72ce8d71d315f51f45cd08c8865a2e613b8a6c6a27e7f4671bd5a796d10f3f9cffb954dd5f3875395f49244b090f5a2a4f2749d6c5d080ce4766faf7ccdf1 WHIRLPOOL fd5de9365d0ade03958e86e8f015a209abe47f3dea58550c057067c4a1986404c0d7b171958774ac0acb533d6c08ccf60e195baa64f1466bce7d30ff1c6f780e
+DIST iscan-plugin-gt-x820-2.2.0-1.x86_64.rpm 206774 SHA256 4be3bed1d6292822f7e963de183683a987db1f59a911688985b00af3d231b317 SHA512 342b034ae7cf1f2b346ffce8719a025e55df2295daaad896acb072e3e36b916f0503106293dc88340d4b1b732b8daa6f4d0681f843754824b757667940b5b545 WHIRLPOOL 726de2d88a2bfd16f2ad34318cfe90ea89f1a46091a7aaf97e232256f61f795caf271131414a7eb3fca3e2ded4963e068752774c351cd1c9f38bccf5619bcf1a
+EBUILD iscan-plugin-gt-x820-2.2.0.1.ebuild 2241 SHA256 3d0156520619b4e8f0c2ea06e6d9083010d8919ae6fe16b07ae187664cd9af6c SHA512 843cf78f8b5c874db81ede7a0a3e78f924ddcf66031bc093c2ec99d33db671b388d40351080b4afa610438f0abe6de9b28ff9fd43d6ee43498c9e2fcf52044bc WHIRLPOOL 567a2403dbdabe12b0fdaa943ce82f06e37e5774081d4e4b915f6db122ee6930724ead49e0af1aa94e78ada56e627c8cdfedaf05757235acac5bb83216449fcc
+MISC ChangeLog 2630 SHA256 c2dddca5127a6c3bd54995ad750cef4845f36c69df586b948de45aef6b03ec73 SHA512 121e9f91b9d225e63064b9b58f050fe8b641dd4fc9a060cd76ac9133e1e4a34b7e8ddd9cc1df9ec6007075fb6053b3a1ab555c95c364adb299974a35b7d3a0cd WHIRLPOOL abea8ee59bcfbf427e3fa376e6ffeb0e1e7962d14e4875c1ece8e281e31f4a4334c8504b0ebb5619d23b534721414cc648c2b103112710b7807163c7c0cf3598
+MISC ChangeLog-2015 1181 SHA256 b2a4141b19956c2c4c320eae846ed8772fbf891887204f538fc727aa13859ea6 SHA512 fe007d634e7082e8c2e64b23ff14f2f308b21a268e037726a380fbb83b8f35694d20b1654aa9863893006fc2ed7c21c299cb9a0c5f26c37347cf6bdb4a0e4900 WHIRLPOOL f5386f0a76dc7709401418406d402d5a82b822a9c30f2f451ca942f15c99f6d808baeae5e41a207c04435ec9954fee5cee3bc28d47b6f5ccb4ddd517c560b7e3
+MISC metadata.xml 640 SHA256 aba334fd063e6f54059204045ebb0fc2b03939f8c14d1aa34b2aa510b8ebed25 SHA512 e9ae09c376840d2cfb75aeaa2fa3414b86ee5e6e3703ae5915950d5d8b5b9699a6d27920a127be2514ad0cac8bd1c9453bf711492a7946fa64d2ba52d71414e4 WHIRLPOOL 940281bdc27822b6f498ee829529f02788f99ea4248d6eaa7f6a45cdac70a1db079ac27e9dfae3fbecbd505b7e51d93521271f116dc8c9ab742d529b975ebd19
diff --git a/media-gfx/iscan-plugin-gt-x820/iscan-plugin-gt-x820-2.2.0.1.ebuild b/media-gfx/iscan-plugin-gt-x820/iscan-plugin-gt-x820-2.2.0.1.ebuild
new file mode 100644
index 000000000000..ba7639fb7a51
--- /dev/null
+++ b/media-gfx/iscan-plugin-gt-x820/iscan-plugin-gt-x820-2.2.0.1.ebuild
@@ -0,0 +1,90 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="4"
+
+inherit rpm versionator multilib
+
+MY_PV="$(get_version_component_range 1-3)"
+MY_PVR="$(replace_version_separator 3 -)"
+
+DESCRIPTION="Epson Perfection V600 scanner plugin for SANE 'epkowa' backend"
+HOMEPAGE="http://download.ebz.epson.net/dsc/search/01/search/?OSC=LX"
+SRC_URI="amd64? ( https://dev.gentoo.org/~flameeyes/avasys/${PN}-${MY_PVR}.x86_64.rpm )
+ x86? ( https://dev.gentoo.org/~flameeyes/avasys/${PN}-${MY_PVR}.i386.rpm )"
+
+LICENSE="AVASYS"
+SLOT="0"
+KEYWORDS="-* ~amd64 ~x86"
+
+IUSE=""
+
+DEPEND=">=media-gfx/iscan-2.21.0"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}"
+
+QA_PREBUILT="/opt/iscan/lib/libesintA1.so*"
+
+src_configure() { :; }
+src_compile() { :; }
+
+src_install() {
+ # install scanner firmware
+ insinto /usr/share/iscan
+ doins "${WORKDIR}"/usr/share/iscan/*
+
+ dodoc usr/share/doc/*/*
+
+ # install scanner plugins
+ exeinto /opt/iscan/lib
+ doexe "${WORKDIR}/usr/$(get_libdir)/iscan/"*
+}
+
+pkg_setup() {
+ basecmds=(
+ "iscan-registry --COMMAND interpreter usb 0x04b8 0x013a /opt/iscan/lib/libesintA1 /usr/share/iscan/esfwA1.bin"
+ )
+}
+
+pkg_postinst() {
+ elog
+ elog "Firmware file esfwA1.bin for Epson Perfection V600"
+ elog "has been installed in /usr/share/iscan."
+ elog
+
+ # Only register scanner on new installs
+ [[ -n ${REPLACING_VERSIONS} ]] && return
+
+ # Needed for scanner to work properly.
+ if [[ ${ROOT} == "/" ]]; then
+ for basecmd in "${basecmds[@]}"; do
+ eval ${basecmd/COMMAND/add}
+ done
+ elog "New firmware has been registered automatically."
+ elog
+ else
+ ewarn "Unable to register the plugin and firmware when installing outside of /."
+ ewarn "execute the following command yourself:"
+ for basecmd in "${basecmds[@]}"; do
+ ewarn "${basecmd/COMMAND/add}"
+ done
+ fi
+}
+
+pkg_prerm() {
+ # Only unregister on on uninstall
+ [[ -n ${REPLACED_BY_VERSION} ]] && return
+
+ if [[ ${ROOT} == "/" ]]; then
+ for basecmd in "${basecmds[@]}"; do
+ eval ${basecmd/COMMAND/remove}
+ done
+ else
+ ewarn "Unable to register the plugin and firmware when installing outside of /."
+ ewarn "execute the following command yourself:"
+ for basecmd in "${basecmds[@]}"; do
+ ewarn "${basecmd/COMMAND/remove}"
+ done
+ fi
+}
diff --git a/media-gfx/iscan-plugin-gt-x820/metadata.xml b/media-gfx/iscan-plugin-gt-x820/metadata.xml
new file mode 100644
index 000000000000..334d8b9301ef
--- /dev/null
+++ b/media-gfx/iscan-plugin-gt-x820/metadata.xml
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>nitro@legroom.net</email>
+ </maintainer>
+ <maintainer type="project">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+ </maintainer>
+ <longdescription lang="en">
+ Proprietary plugin for several EPSON scanner models, to be used
+ with the epkowa SANE backend (provided by
+ <pkg>media-gfx/iscan</pkg>). 32-bit and 64-bit.
+
+ Supports the following models:
+
+ EPSON Perfection V600 Photo (GT-X820)
+ </longdescription>
+</pkgmetadata>
diff --git a/media-gfx/iscan-plugin-perfection-v370/Manifest b/media-gfx/iscan-plugin-perfection-v370/Manifest
new file mode 100644
index 000000000000..f1cecf04b194
--- /dev/null
+++ b/media-gfx/iscan-plugin-perfection-v370/Manifest
@@ -0,0 +1,6 @@
+DIST iscan-plugin-perfection-v370-1.0.0-2.i386.rpm 383681 SHA256 0fcd95b3c7fb5c1b26fc482513c8220d44a1cde174169e831eea9d5b04ad8537 SHA512 ca0d77e614b826529b23e7ccb6f8546143c471757fb9648c30830055764442c44c811d12c61b04e14d6d435c5de67eb20d24653aee23022ed7104ce89074fdf1 WHIRLPOOL 3b46c6b03e4a03c84348c1f6fb1ed6cdce5d8427017785d66f29f5e96d602f4ab3bc117caabe1fe309a4f8c032a3e1e7fe0091b7b008dd9b08a3b51714e03fac
+DIST iscan-plugin-perfection-v370-1.0.0-2.x86_64.rpm 172082 SHA256 072ddd22e627ee4ed8736bb8726905349bc3879c4127fcbc3b3b90f252ffd823 SHA512 d0a942f4dbf51edf773e3bd83749ffc5dc9b1b67daec042fb49b4050ead34c604ce0183b138dd0719c2fe1ba2d610034b8d2d16ba12df4cd8617d1182b66466f WHIRLPOOL f7e2a21a51589b2907ca4626cbc8dd47af338cd286c383f43ed150c3ae1871543b04faf4a6f7a3431deb767c0d5d3d18889065b353f6eef58cbcfbdad860bab1
+EBUILD iscan-plugin-perfection-v370-1.0.0.2.ebuild 2294 SHA256 1c8206cfde542b7d65978dacc8b28415cc1daa46b82ac17afa3f6089de02475e SHA512 53ead17b26b8ca0aec5f8d4a39f959c0db44d9c85cb02c52905eac7bf83a4cbfe6f74cb912bd77d14e8bad8af2f722430049cab6fb5e1c421ef967a30cfc621a WHIRLPOOL 71b7e36b78b33f6b9acfa4144de7d110705feb8353b50e4193b94d6a9bdc4d5b14bfb1f096ee3bc200144f6d994412ad067dd5b452af098894964a62bdaa9961
+MISC ChangeLog 2411 SHA256 1f8d35d4150e2ad97b7fe955a50f85e4b18d81d1e67f20c41eeed37b71326afc SHA512 e8c471064d83c7d44af78ad1f48c0d44e1f3d9cf5eeb778daa1decb0922de4b73de2182b07bbd8d57be2f18e1ace95b7cb968cc70f9440dd9dd77f23740ef1fe WHIRLPOOL bf31293098c2ddbf799c8d579887245f25c204ff7a566d12d4abe79c15cbdbfd333dbaea1ad33ba0d23e13413408f7d9a5e41183e9b14c992913e6f8cc422a80
+MISC ChangeLog-2015 626 SHA256 393e79687a042e31787bfe2cb4ab77e43607de3c12d10e3cdf866ae4bba72192 SHA512 14289b9023d3d747697f0de8fbbb16158cdd9e73f796219ae1aea6b6c230db536bab38fe16b49a932c80e9ae399b5dd844dde685f81dc8e99eeaf21d5810db4d WHIRLPOOL 33a3f6f211992bb65d5deaf7930fd8c4bc02500978500e78e3ca5603b642d846fc13aa10e7caa8dec4175a8162b7b821a96e4901f4e8a716396d0bce653b8d66
+MISC metadata.xml 486 SHA256 e8ccead065d6f232dcc7bf2d5bf0329d2ee050fe6c3e7a7ce47e317ffb6875ca SHA512 510143fb16b2d57709327f38a5fe23a9512edf6ce507e46f3d17217794a3afaac0eaf939b9b82fc9f3e605bdee196064354c5be52cddd1e7f9a4acc79e45d9fb WHIRLPOOL e14550ed24913ab44df22c7d6cbe84baa3eeeea505efdae6006d221c23acca3a3957a5875f9f3162eb56280ddd558b00e37cd4a3031813bb51c3914c054fc97f
diff --git a/media-gfx/iscan-plugin-perfection-v370/iscan-plugin-perfection-v370-1.0.0.2.ebuild b/media-gfx/iscan-plugin-perfection-v370/iscan-plugin-perfection-v370-1.0.0.2.ebuild
new file mode 100644
index 000000000000..ce0c32ffb21f
--- /dev/null
+++ b/media-gfx/iscan-plugin-perfection-v370/iscan-plugin-perfection-v370-1.0.0.2.ebuild
@@ -0,0 +1,93 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit rpm versionator multilib
+
+MY_PV="$(get_version_component_range 1-3)"
+MY_PVR="$(replace_version_separator 3 -)"
+
+SCANNER="Perfection V370"
+FIRMWARE="esfwdd.bin"
+
+DESCRIPTION="Epson ${SCANNER} and similar scanner plugin for SANE 'epkowa' backend"
+HOMEPAGE="http://download.ebz.epson.net/dsc/search/01/search/?OSC=LX"
+SRC_URI="amd64? ( https://dev.gentoo.org/~flameeyes/avasys/${PN}-${MY_PVR}.x86_64.rpm )
+ x86? ( https://dev.gentoo.org/~flameeyes/avasys/${PN}-${MY_PVR}.i386.rpm )"
+
+LICENSE="AVASYS"
+SLOT="0"
+KEYWORDS="-* ~amd64 ~x86"
+
+IUSE=""
+
+DEPEND=">=media-gfx/iscan-2.21.0"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}"
+
+QA_PREBUILT="/opt/iscan/lib/*"
+
+src_configure() { :; }
+src_compile() { :; }
+
+src_install() {
+ # install scanner firmware
+ insinto /usr/share/iscan
+ doins "${WORKDIR}"/usr/share/iscan/*
+
+ dodoc usr/share/doc/*/*
+
+ # install scanner plugins
+ exeinto /opt/iscan/lib
+ doexe "${WORKDIR}/usr/$(get_libdir)/iscan/"*
+}
+
+pkg_setup() {
+ basecmds=(
+ "iscan-registry --COMMAND interpreter usb 0x04b8 0x014a /opt/iscan/lib/libiscan-plugin-perfection-v370 /usr/share/iscan/${FIRMWARE}"
+ )
+}
+
+pkg_postinst() {
+ elog
+ elog "Firmware file ${FIRMWARE} for ${SCANNER}"
+ elog "has been installed in /usr/share/iscan."
+ elog
+
+ # Only register scanner on new installs
+ [[ -n ${REPLACING_VERSIONS} ]] && return
+
+ # Needed for scanner to work properly.
+ if [[ ${ROOT} == "/" ]]; then
+ for basecmd in "${basecmds[@]}"; do
+ eval ${basecmd/COMMAND/add}
+ done
+ elog "New firmware has been registered automatically."
+ elog
+ else
+ ewarn "Unable to register the plugin and firmware when installing outside of /."
+ ewarn "execute the following command yourself:"
+ for basecmd in "${basecmds[@]}"; do
+ ewarn "${basecmd/COMMAND/add}"
+ done
+ fi
+}
+
+pkg_prerm() {
+ # Only unregister on on uninstall
+ [[ -n ${REPLACED_BY_VERSION} ]] && return
+
+ if [[ ${ROOT} == "/" ]]; then
+ for basecmd in "${basecmds[@]}"; do
+ eval ${basecmd/COMMAND/remove}
+ done
+ else
+ ewarn "Unable to register the plugin and firmware when installing outside of /."
+ ewarn "execute the following command yourself:"
+ for basecmd in "${basecmds[@]}"; do
+ ewarn "${basecmd/COMMAND/remove}"
+ done
+ fi
+}
diff --git a/media-gfx/iscan-plugin-perfection-v370/metadata.xml b/media-gfx/iscan-plugin-perfection-v370/metadata.xml
new file mode 100644
index 000000000000..a5cee8e84a03
--- /dev/null
+++ b/media-gfx/iscan-plugin-perfection-v370/metadata.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <longdescription lang="en">
+ Proprietary plugin for several EPSON scanner models, to be used
+ with the epkowa SANE backend (provided by
+ <pkg>media-gfx/iscan</pkg>). 32-bit and 64-bit.
+
+ Supports the following models:
+
+ Epson GT-F740
+ Epson GT-S640
+ Epson Perfection V37
+ Epson Perfection V370 Photo
+ </longdescription>
+</pkgmetadata>
diff --git a/media-gfx/iscan/Manifest b/media-gfx/iscan/Manifest
new file mode 100644
index 000000000000..7397ebd5804d
--- /dev/null
+++ b/media-gfx/iscan/Manifest
@@ -0,0 +1,19 @@
+AUX iscan-2.25.0-drop-ltdl.patch 2121 SHA256 690b675dc3ac242131809fc5bec79f7542be2165216aaa2da5f7f9e4a88aff47 SHA512 9f279db992101a525e83b14e45c60840c8a546c70e6087dd4210c647bf9f6fe5bf22fb34402c31da4070089f7869bc59d8a4ab4b772d7efc8f2429b2791e503f WHIRLPOOL 299bb1f1ae16361097a5f0b60a6f7fea04674e426a70459aee2f1581e8a5dad1e0ee3480ad99eef56a61672c615ad453cbe5d4c5f06c6f2ffb2c0f2419bb0a15
+AUX iscan-2.25.0-fix-g++-test.patch 523 SHA256 3a5e8fb2c765d20de0233592bf1c0c41a703c7c5e185228c613dcd5ac70b2339 SHA512 3b0182d2023077b7d6339b594843a53fcba1cad6f45b5ad4596efcef214aac1170664e184f65e326cdc7a2ac3ce98340c72ca48eaf9e0ec34cfa0e8edfd6f840 WHIRLPOOL 3d39ab224eeb252266efa35ccd6824c562bfbed3c97794f9deef58c24b174e03b1e5d2a6205153f13febf01b9af22795d3d718381a458fbf6ada80fb7aff894d
+AUX iscan-2.26.2-libpng15.patch 1490 SHA256 9062d329eb1af1c6c1ac7bba187d83d6551b13472acaefd1b9f05aacd0496f32 SHA512 85adc14eeb8833e91e09bcc36488b773790ecc0b8889961380c330995e703345439b028572f94dbb50a59cb67ddff014257283d72dce0a42d4bd112d684b1c2a WHIRLPOOL 864d62c4153841222d4c266597c9cf447d4f41e653c8ff480a7b773eafc2a366019ad06a6e3d16a53f93048d3cda683b0e4cd3a261daf86d42ea3a242e115848
+AUX iscan-2.26.2-png-libs.patch 1309 SHA256 068fd3feb945cd159269b7abd1fe9e77941e50ce1e69983a22f5c74148bd7fc5 SHA512 030e0072d9f70b690a5f0927fdcf7587bee1022d69b2672be27d893a224573c752bbb950f87cdd48a6eaac2cfbeca4dc7fc9a2e4f23fb49f3facee7f0f6d65a2 WHIRLPOOL bb145e751246d26d3c9b6041577ec1cdd96dd11b492190edd4043e459ab9b26c25cef1a2129c626c9ba69f137275d70463a59c8596b60887b23239909339d63b
+AUX iscan-2.28.1.3+libpng-1.5.patch 1466 SHA256 4d0679a7e9d5b5cf247fd1559474bd26284841c1d18573a0bf0d08d12406c713 SHA512 914861963db02f1a330a7e2f90bfc545fb411d6a418567811452454ad14ff912f504beba8a30fa668e6e7e83aaf826cae142adf9433adf0d3e972e72e0147714 WHIRLPOOL ade65a6eb984ab5548145ad564eb0ec076df54c2b22a058fb60a70bd93d991bc90aa93342771aa767233952c9f0941c00614bb4fe5f9d81113687bdb2d4fd83e
+AUX iscan-2.29.1-drop-ltdl.patch 2107 SHA256 e81e83b3b3b95533df6a32358617497340d4ef8abe9c23cb784d6d5a459bd10e SHA512 593f9a8c7a85ed4e379553c63a75eec09965e803f2785456a4416895cb2d13048db8c7d731bd427cfb4049386a1270b676edad5cc92c354c7e2eaa4542d930dd WHIRLPOOL e5533b6ced56d4607338ec121e458a6ed89fc649810c1713044b864b572fd89892d3c78c30a7cf48d7e1178b8855f694caea51213972d6bcf9d90cd1ab05d9a9
+AUX iscan-2.29.1-png-libs.patch 1309 SHA256 6babae43c82460bcf2a4f78f9c86887f1dc091f8146ef9f8bd5451fe7ff35b09 SHA512 ea2347e169118cfa2916f9ef3f0715d2322763715198714271fc611203a37cec5977ec0de5de0e737a5dd8cf223f2e23198faf52d79671b85173f4a02d3982c5 WHIRLPOOL 2c0a686a4ab9a6e57f4537b1d0c3cb2de58cd5b0a89d14801b880e9516eaa05e91d9bcc14d7f5b08b59ae5fe7cf401fa04accd5906b926e2c9bdd2047e33d729
+AUX iscan-2.30.1-fix-g++-test.patch 1394 SHA256 8fb5754e22a826e98ba55714722a030e4f9693a0a0dcdf181ef3c2a213c69d91 SHA512 b11667e6698955b482c9cffd88413180d77b700ca040bf70969ce10be652cfa38fe2fb3de930519bdfe098f18ce258f24859ab79a93032dbe5052e0e1059ce63 WHIRLPOOL 07a2424879c28f66e4b214abe1f325775110915b736905558f834d046e9f682c2b73dc3d8bfa54df9710d9a1300b93641d2e94a1a83739303013bb0fc8c8b0bc
+AUX iscan-2.30.1.1-gcc6.patch 564 SHA256 e6a4007deae4c91d6e311e3f0553c11109292ddf93131175affe2a03eacb82a9 SHA512 4c0ef22323f26282596d5705b0a3982bc8bca17e84f54ad9b1a23290cadbc617ae55492fd3d25e9edd283509e0a8ea1de047b18fd98fdfaf8bb22fd90c096e32 WHIRLPOOL d8305bf3142d1d5c2960c155b97f19f86aabc87d8149d7edf7acee0a66f77d8affc75389366756031205fcf004a60dec3872416e82e8e6c9da7f976e762516e7
+AUX iscan-usb.sh 715 SHA256 f8a1cad3ca99a5d4af7d03edbbeb1a7759e3de0c8f78e6ac62937dd1bb21ae62 SHA512 39762e587163658f6481bc16e75605aeee1251acc52cf51f0e9360c25298290fdd04140dd0e8863105bfafeb5dd69502b490972bf1bc2f3e2ade667e1f51cd35 WHIRLPOOL 0b6e112758eab4f6c1d574834923683ce4d44c00765dde15b426a173bf0cad01e834f11520c1d24959a75e12f778a1ade5035edab4c0a7958c96dc0b77e7803d
+DIST iscan_2.30.1-1.tar.gz 1217985 SHA256 79aa9a9f81a7146beb22a382bbaf840fbce61b1bdb82660e541946a471e48426 SHA512 0562be739b637ee78a5bf2612e7b148de60709c32550742383b76750688d48e42834acbe050c5f2fad26bd9063c9faff425bf906dcebc3e4160d17cd5481850a WHIRLPOOL f3492bff532779987aa8b47f8bb4a1a16164c3d77386d7906dc6b2c6a606b25bcdb4d15766971f8e9bb5b23c4522a3b601e4198212e8fddd54f75f046dda85ef
+DIST iscan_2.30.2-2.tar.gz 1216875 SHA256 ca2322a527ab41c8207b060ee54fc3782cba84c444bcf6b9c8ee32f7cda007d9 SHA512 bc5e871fa5e3baa62eee7b8b0a73abf2640a38f71f98248b1c9e1cace17c2a32de2f64c2a7527e8618f20e9913a16d0f55a8a94b3aea88ae8a157339e8bcf8e9 WHIRLPOOL 4727f6103639d6fe6e70f1651c4c5b2414ebd244ee395add2aa93849170c9abc815b82fd7fbcc0a3e2394a7fa0849ce5c58865d2a18e3bc4831a94b70ad28b49
+DIST userg_revQ_e.pdf 627189 SHA256 7f40dfb94bf747a5059c17cba21e72e2485226ea41655453d010b46ed96e8a1c SHA512 b09d5143855a759e0fa3e74794762566b6fbf734642f9d7f712e5f2f20e3dce6b830465fd65f83f9cc368292ce7a2c0cec709b0eba6356d95e1ba5114b3348fc WHIRLPOOL f1497a87ad9b991a05a7a93ff5603944b1cadf00b5162498ff4c0ff1d85615de922324ee5574d0f8540e2d44fc2dede2a25157e562633f51b75eb8e4d4e56dc2
+DIST userg_revQ_j.pdf 734920 SHA256 22d29bd17fe8c5772cdcdfb5201eff54eeaadebe3c94563ee4fcfc04579a1c4d SHA512 d5cb0cebaae0ac36951379cad516f0575e85e0bb509cf88549239e300c7d6c6a4996497145acaa9e9783de6b08c6e352c7ffbedb23ed04c15eefbe9c3cf0bc90 WHIRLPOOL 0f567a4d3543ea0df1d49e92211ba3811a03f200f828d4348eb00bb695df915ae75001faec52d616ff98d4da617ef6cfe95795ece33eeb114b0378892294647e
+EBUILD iscan-2.30.1.1.ebuild 4852 SHA256 844e6b8baf077b4054134b4561e36c359437127f3f204ecec1071c6b3de2c56a SHA512 a3189e93f15c89e9a8f89efd67f938cecbdbbe9d975c5378a67e687ffb1fad65df76f6198258f591c56749daa1d38803966e392fb1b77c9422441fe60e263411 WHIRLPOOL c9a1a8312a15b6046ded7caf996376530190837ad09569d3707f23dc4f4937d5f45a10d92faea043734d6dead4a0d7455461b30414ccb11388dfec526775743a
+EBUILD iscan-2.30.2.2.ebuild 4700 SHA256 9c380f0f774982e56feccafa2817c13f2c937cdf5c5075e2d8efde2db2f9b9dc SHA512 59c3f9daef1ab2be73aaf83e63b47ede6146001c5ee255bf82096f02e1e53b659a00528069e40f07503834a7d9f735e0bcfecaaff9a1db2073c6817aa0444298 WHIRLPOOL 3e96dca49aa050c5db5591a98d15a1b14ead9b53d757522728c43eb7c0308f3320a2a1da9ccf759467c570d747ed18b0c78b411f02cbeca00eac4975f0c1a6f0
+MISC ChangeLog 3096 SHA256 a7ab8a2ba43d22300dda5ba833e43cf7fe3d5718b2a3ab940fa7249d2f10e8a1 SHA512 1d32bca7b22cd415d67cc86d4308acc760441433e40770c07ce45546d76448206bfeca14039dc0f3a63505a0615ef5811bcadd3a8a33c97f4775214a79036533 WHIRLPOOL 26348641042d8b726b039211d40555c2ddd1281f5a93f33bb7323eda2cf63d5f99ab3959de233ecf21e4e383ef308c7e419330d6961a7da4c5a3f79caddeec2e
+MISC ChangeLog-2015 10413 SHA256 375cb477fe5e7e60c0456a1d467b4608bb45f9d2d4680cd2e609768a156142e2 SHA512 fc1cf6c80eec70adcb7addfbee97138627be76b547f619f8def4047ffadc14901210ace09e1f5a16afb5883fe2849fa48627fcc3c141d7e8eea8a243cb630c5f WHIRLPOOL 12f3c2d777cfcbfe6aaed8704cf62bd7f1e7e8bf9a69586ff64faee2f1120f45f49e6ef55b45d52e3d4788b59024e0df2c06ead65d20abab37a1d56046c37aa8
+MISC metadata.xml 779 SHA256 58e63bb2feb68b87b4645d6d184f231036fdca2734161636ea88bbd2a0cff8ab SHA512 9ead68d2de8d4b5e09e2d478b6f198d8a83985eaa779e941189f1017beb081910fcc6c7d3c1f41db84b91df55399e5e005c326c7bb2841b2ef745d735aef562f WHIRLPOOL 52c3cf109cb8e5a088c50c41c97d684fc1285b29dc8a3039f16dc3bd80f5639b3a63ec3970d641d928b92d9372407808389f072f822fd4062d6402bf1d0ef8af
diff --git a/media-gfx/iscan/files/iscan-2.25.0-drop-ltdl.patch b/media-gfx/iscan/files/iscan-2.25.0-drop-ltdl.patch
new file mode 100644
index 000000000000..8ac18defc007
--- /dev/null
+++ b/media-gfx/iscan/files/iscan-2.25.0-drop-ltdl.patch
@@ -0,0 +1,64 @@
+diff -Naur iscan-2.25.0.orig//backend/Makefile.am iscan-2.25.0/backend/Makefile.am
+--- iscan-2.25.0.orig//backend/Makefile.am 2010-05-19 07:51:55.000000000 +0200
++++ iscan-2.25.0/backend/Makefile.am 2010-07-21 22:49:08.579705272 +0200
+@@ -56,7 +56,6 @@
+
+ libepkowa_la_CPPFLAGS = \
+ $(AM_CPPFLAGS) \
+- $(LTDLINCL) \
+ -I$(top_srcdir)/include \
+ -I$(top_srcdir)/non-free \
+ $(XML_CFLAGS) \
+@@ -66,7 +65,7 @@
+ libepkowa_la_LIBADD = \
+ -lm \
+ $(XML_LIBS) \
+- $(LIBLTDL)
++ -lltdl
+ libepkowa_la_SOURCES = \
+ $(sane_backends_files) \
+ marshal.c \
+diff -Naur iscan-2.25.0.orig//configure.ac iscan-2.25.0/configure.ac
+--- iscan-2.25.0.orig//configure.ac 2010-07-21 22:48:11.411332268 +0200
++++ iscan-2.25.0/configure.ac 2010-07-21 22:49:58.918332411 +0200
+@@ -261,13 +261,10 @@
+ dnl The somewhat obscure LT_AC_PROG_SED is here to make sure that the
+ dnl SED environment variable gets set before it's used by the libtool
+ dnl machinery. This works around buggy libtool versions.
+-LT_AC_PROG_SED
+-AC_LIBLTDL_INSTALLABLE
+-AC_LIBTOOL_DLOPEN
+ AC_PROG_LIBTOOL
+-AC_LIB_LTDL
+-AC_SUBST(LTDLINCL)
+-AC_SUBST(LIBLTDL)
++AC_LTDL_SHLIBPATH
++AC_LTDL_SHLIBEXT
++AC_LTDL_SYSSEARCHPATH
+
+
+ dnl Graphic file format options
+diff -Naur iscan-2.25.0.orig//frontend/Makefile.am iscan-2.25.0/frontend/Makefile.am
+--- iscan-2.25.0.orig//frontend/Makefile.am 2010-05-19 07:51:54.000000000 +0200
++++ iscan-2.25.0/frontend/Makefile.am 2010-07-21 22:50:53.965581385 +0200
+@@ -34,7 +34,7 @@
+ iscan_LDADD = \
+ $(top_builddir)/lib/libimage-stream.la \
+ -lsane \
+- @LIBLTDL@ \
++ -lltdl \
+ @GTK_LIBS@ \
+ @GDK_IMLIB_LIBS@ \
+ $(top_builddir)/non-free/libesmod.so
+diff -Naur iscan-2.25.0.orig//lib/Makefile.am iscan-2.25.0/lib/Makefile.am
+--- iscan-2.25.0.orig//lib/Makefile.am 2010-05-19 07:51:56.000000000 +0200
++++ iscan-2.25.0/lib/Makefile.am 2010-07-21 22:51:29.794329919 +0200
+@@ -29,7 +29,7 @@
+ libimage_stream_la_CPPFLAGS = -I$(top_srcdir)/include
+ libimage_stream_la_LDFLAGS = -static
+ libimage_stream_la_LIBADD = \
+- $(LIBLTDL) \
++ -lltdl \
+ $(top_builddir)/lib/pdf/libpdf.la
+ libimage_stream_la_SOURCES = \
+ $(libimage_stream_la_files)
diff --git a/media-gfx/iscan/files/iscan-2.25.0-fix-g++-test.patch b/media-gfx/iscan/files/iscan-2.25.0-fix-g++-test.patch
new file mode 100644
index 000000000000..23fa6edd76b4
--- /dev/null
+++ b/media-gfx/iscan/files/iscan-2.25.0-fix-g++-test.patch
@@ -0,0 +1,13 @@
+Index: iscan-2.21.0/configure.ac
+===================================================================
+--- iscan-2.21.0.orig/configure.ac
++++ iscan-2.21.0/configure.ac
+@@ -68,7 +68,7 @@ AC_PROG_CXX
+ # to be larger than that for the gcc-3.[23] packages (as long as both
+ # are distributed) for smooth upgrade paths.
+
+-if test x"$CXX" = xg++; then
++if test "$GXX" = "yes"; then
+ AC_MSG_CHECKING([C++ ABI version])
+ CXX_ABI="`$CXX -E -dM - < /dev/null | $AWK '/GXX_ABI/ { print $3 }'`"
+ AC_MSG_RESULT([$CXX_ABI])
diff --git a/media-gfx/iscan/files/iscan-2.26.2-libpng15.patch b/media-gfx/iscan/files/iscan-2.26.2-libpng15.patch
new file mode 100644
index 000000000000..1b89b735c23f
--- /dev/null
+++ b/media-gfx/iscan/files/iscan-2.26.2-libpng15.patch
@@ -0,0 +1,51 @@
+http://bugs.gentoo.org/show_bug.cgi?id=383799#c13
+Upstream: http://www.avasys.jp/cgi-bin/lx/bbs/en/scanner-bbs/hyperbbs.cgi?mode=view;Code=5197
+
+--- lib/pngstream.cc
++++ lib/pngstream.cc
+@@ -76,7 +76,12 @@
+ set_error_handler (_png, _info);
+
+ lib->write_flush (_png);
++/* when not interlacing (ie, only one pass), number of rows is image height: _v_sz */
++#if PNG_LIBPNG_VER > 10499
++ if (!_footer && _v_sz == lib->get_current_row_number(_png))
++#else
+ if (!_footer && _png->num_rows == _png->flush_rows)
++#endif
+ {
+ lib->write_end (_png, _info);
+ _footer = true;
+@@ -161,6 +166,9 @@
+ funcsym (write_row);
+ funcsym (write_flush);
+ funcsym (write_end);
++#if PNG_LIBPNG_VER > 10499
++ funcsym (get_current_row_number);
++#endif
+
+ if (lib->access_version_number
+ && lib->create_write_struct
+@@ -170,6 +178,9 @@
+ && lib->set_IHDR
+ && lib->set_pHYs
+ && lib->set_invert_mono
++#if PNG_LIBPNG_VER > 10499
++ && lib->get_current_row_number
++#endif
+ && lib->write_info
+ && lib->write_row
+ && lib->write_flush
+--- lib/pngstream.hh
++++ lib/pngstream.hh
+@@ -108,6 +108,10 @@
+ png_structp);
+ fundecl (void, write_end,
+ png_structp, png_infop);
++#if PNG_LIBPNG_VER > 10499
++ fundecl (png_uint_32, get_current_row_number,
++ png_structp);
++#endif
+ #endif /* HAVE_PNG_H */
+ };
+ static png_lib_handle *lib;
diff --git a/media-gfx/iscan/files/iscan-2.26.2-png-libs.patch b/media-gfx/iscan/files/iscan-2.26.2-png-libs.patch
new file mode 100644
index 000000000000..0866e604915a
--- /dev/null
+++ b/media-gfx/iscan/files/iscan-2.26.2-png-libs.patch
@@ -0,0 +1,37 @@
+diff -ur iscan-2.26.2/configure.ac iscan-2.26.2.new/configure.ac
+--- iscan-2.26.2/configure.ac 2014-01-27 13:37:26.782024452 -0500
++++ iscan-2.26.2.new/configure.ac 2014-01-27 13:36:47.738024120 -0500
+@@ -274,6 +274,9 @@
+ AC_HELP_STRING([--enable-$1],
+ [ensure support for the $3 file format]),
+ [if test "x$enable_$1" != xno; then
++ if test "x$4" != xno; then
++ PKG_CHECK_MODULES($3,[$4])
++ fi
+ iff_header="`echo $2 | $as_tr_sh`"
+ AC_CHECK_HEADERS([$2])
+ if test `eval echo '$ac_cv_header_'$iff_header` \
+@@ -284,9 +287,9 @@
+ [AC_CHECK_HEADERS([$2])])
+ ])
+
+-ISCAN_FILE_FORMAT(jpeg,jpeglib.h,JPEG)
+-ISCAN_FILE_FORMAT(png,png.h,PNG)
+-ISCAN_FILE_FORMAT(tiff,tiffio.h,TIFF)
++ISCAN_FILE_FORMAT(jpeg,jpeglib.h,JPEG,no)
++ISCAN_FILE_FORMAT(png,png.h,PNG,libpng)
++ISCAN_FILE_FORMAT(tiff,tiffio.h,TIFF,no)
+
+
+ dnl Support for performance measurements.
+diff -ur iscan-2.26.2/frontend/Makefile.am iscan-2.26.2.new/frontend/Makefile.am
+--- iscan-2.26.2/frontend/Makefile.am 2014-01-27 13:31:09.488021241 -0500
++++ iscan-2.26.2.new/frontend/Makefile.am 2014-01-27 13:37:50.065024650 -0500
+@@ -37,6 +37,7 @@
+ -lltdl \
+ @GTK_LIBS@ \
+ @GDK_IMLIB_LIBS@ \
++ @PNG_LIBS@ \
+ $(top_builddir)/non-free/libesmod.so
+ iscan_SOURCES = \
+ $(iscan_source_files)
diff --git a/media-gfx/iscan/files/iscan-2.28.1.3+libpng-1.5.patch b/media-gfx/iscan/files/iscan-2.28.1.3+libpng-1.5.patch
new file mode 100644
index 000000000000..7205028d8248
--- /dev/null
+++ b/media-gfx/iscan/files/iscan-2.28.1.3+libpng-1.5.patch
@@ -0,0 +1,48 @@
+--- lib/pngstream.cc 2011-12-01 02:30:53.000000000 +0100
++++ lib/pngstream.cc 2012-02-06 03:06:22.000000000 +0100
+@@ -83,7 +83,12 @@
+ #if HAVE_PNG_H
+ set_error_handler (_png, _info);
+
++/* when not interlacing (ie, only one pass), number of rows is image height: _v_sz */
++#if PNG_LIBPNG_VER > 10499
++ if (!_footer && _v_sz == lib->get_current_row_number(_png))
++#else
+ if (_header && !_footer && _png->num_rows == _png->flush_rows)
++#endif
+ {
+ lib->write_end (_png, _info);
+ _footer = true;
+@@ -167,6 +172,9 @@
+ funcsym (write_row);
+ funcsym (write_flush);
+ funcsym (write_end);
++#if PNG_LIBPNG_VER > 10499
++ funcsym (get_current_row_number);
++#endif
+
+ if (lib->access_version_number
+ && lib->create_write_struct
+@@ -176,6 +184,9 @@
+ && lib->set_IHDR
+ && lib->set_pHYs
+ && lib->set_invert_mono
++#if PNG_LIBPNG_VER > 10499
++ && lib->get_current_row_number
++#endif
+ && lib->write_info
+ && lib->write_row
+ && lib->write_flush
+--- lib/pngstream.hh 2011-12-01 02:30:53.000000000 +0100
++++ lib/pngstream.hh 2012-02-06 03:09:09.000000000 +0100
+@@ -108,6 +108,10 @@
+ png_structp);
+ fundecl (void, write_end,
+ png_structp, png_infop);
++#if PNG_LIBPNG_VER > 10499
++ fundecl (png_uint_32, get_current_row_number,
++ png_structp);
++#endif
+ #endif /* HAVE_PNG_H */
+ };
+ static png_lib_handle *lib;
diff --git a/media-gfx/iscan/files/iscan-2.29.1-drop-ltdl.patch b/media-gfx/iscan/files/iscan-2.29.1-drop-ltdl.patch
new file mode 100644
index 000000000000..489f0c5cd71e
--- /dev/null
+++ b/media-gfx/iscan/files/iscan-2.29.1-drop-ltdl.patch
@@ -0,0 +1,64 @@
+diff -Naur iscan-2.29.1.orig/backend/Makefile.am iscan-2.29.1/backend/Makefile.am
+--- iscan-2.29.1.orig/backend/Makefile.am 2012-06-11 23:33:33.000000000 -0500
++++ iscan-2.29.1/backend/Makefile.am 2013-02-18 20:29:05.091814060 -0600
+@@ -58,7 +58,6 @@
+
+ libepkowa_la_CPPFLAGS = \
+ $(AM_CPPFLAGS) \
+- $(LTDLINCL) \
+ -I$(top_srcdir)/include \
+ -I$(top_srcdir)/non-free \
+ $(XML_CFLAGS) \
+@@ -70,7 +69,7 @@
+ -lm \
+ $(XML_LIBS) \
+ $(LIBUSB_1_0_LIBS) \
+- $(LIBLTDL)
++ -lltdl
+ libepkowa_la_SOURCES = \
+ $(sane_backends_files) \
+ ipc.c \
+diff -Naur iscan-2.29.1.orig/configure.ac iscan-2.29.1/configure.ac
+--- iscan-2.29.1.orig/configure.ac 2012-06-11 23:33:34.000000000 -0500
++++ iscan-2.29.1/configure.ac 2013-02-18 20:30:10.413311997 -0600
+@@ -266,13 +266,10 @@
+ dnl The somewhat obscure LT_AC_PROG_SED is here to make sure that the
+ dnl SED environment variable gets set before it's used by the libtool
+ dnl machinery. This works around buggy libtool versions.
+-LT_AC_PROG_SED
+-AC_LIBLTDL_INSTALLABLE
+-AC_LIBTOOL_DLOPEN
+ AC_PROG_LIBTOOL
+-AC_LIB_LTDL
+-AC_SUBST(LTDLINCL)
+-AC_SUBST(LIBLTDL)
++AC_LTDL_SHLIBPATH
++AC_LTDL_SHLIBEXT
++AC_LTDL_SYSSEARCHPATH
+
+
+ dnl Graphic file format options
+diff -Naur iscan-2.29.1.orig/frontend/Makefile.am iscan-2.29.1/frontend/Makefile.am
+--- iscan-2.29.1.orig/frontend/Makefile.am 2012-06-11 23:33:33.000000000 -0500
++++ iscan-2.29.1/frontend/Makefile.am 2013-02-18 20:30:38.764092975 -0600
+@@ -34,7 +34,7 @@
+ iscan_LDADD = \
+ $(top_builddir)/lib/libimage-stream.la \
+ -lsane \
+- @LIBLTDL@ \
++ -lltdl \
+ @GTK_LIBS@ \
+ @GDK_IMLIB_LIBS@ \
+ $(top_builddir)/non-free/libesmod.so
+diff -Naur iscan-2.29.1.orig/lib/Makefile.am iscan-2.29.1/lib/Makefile.am
+--- iscan-2.29.1.orig/lib/Makefile.am 2012-06-11 23:33:34.000000000 -0500
++++ iscan-2.29.1/lib/Makefile.am 2013-02-18 20:30:58.852936051 -0600
+@@ -30,7 +30,7 @@
+ libimage_stream_la_CPPFLAGS = -I$(top_srcdir)/include
+ libimage_stream_la_LDFLAGS = -static
+ libimage_stream_la_LIBADD = \
+- $(LIBLTDL) \
++ -lltdl \
+ $(top_builddir)/lib/pdf/libpdf.la
+ libimage_stream_la_SOURCES = \
+ $(libimage_stream_la_files)
diff --git a/media-gfx/iscan/files/iscan-2.29.1-png-libs.patch b/media-gfx/iscan/files/iscan-2.29.1-png-libs.patch
new file mode 100644
index 000000000000..32de60a83899
--- /dev/null
+++ b/media-gfx/iscan/files/iscan-2.29.1-png-libs.patch
@@ -0,0 +1,37 @@
+diff -ur iscan-2.29.1/configure.ac iscan-2.29.1.new/configure.ac
+--- iscan-2.29.1/configure.ac 2014-01-27 14:15:28.139043864 -0500
++++ iscan-2.29.1.new/configure.ac 2014-01-27 14:17:10.608044736 -0500
+@@ -279,6 +279,9 @@
+ AC_HELP_STRING([--enable-$1],
+ [ensure support for the $3 file format]),
+ [if test "x$enable_$1" != xno; then
++ if test "x$4" != xno; then
++ PKG_CHECK_MODULES($3,[$4])
++ fi
+ iff_header="`echo $2 | $as_tr_sh`"
+ AC_CHECK_HEADERS([$2])
+ if test `eval echo '$ac_cv_header_'$iff_header` \
+@@ -289,9 +292,9 @@
+ [AC_CHECK_HEADERS([$2])])
+ ])
+
+-ISCAN_FILE_FORMAT(jpeg,jpeglib.h,JPEG)
+-ISCAN_FILE_FORMAT(png,png.h,PNG)
+-ISCAN_FILE_FORMAT(tiff,tiffio.h,TIFF)
++ISCAN_FILE_FORMAT(jpeg,jpeglib.h,JPEG,no)
++ISCAN_FILE_FORMAT(png,png.h,PNG,libpng)
++ISCAN_FILE_FORMAT(tiff,tiffio.h,TIFF,no)
+
+
+ dnl Support for performance measurements.
+diff -ur iscan-2.29.1/frontend/Makefile.am iscan-2.29.1.new/frontend/Makefile.am
+--- iscan-2.29.1/frontend/Makefile.am 2014-01-27 14:15:28.123043864 -0500
++++ iscan-2.29.1.new/frontend/Makefile.am 2014-01-27 14:17:43.628045017 -0500
+@@ -37,6 +37,7 @@
+ -lltdl \
+ @GTK_LIBS@ \
+ @GDK_IMLIB_LIBS@ \
++ @PNG_LIBS@ \
+ $(top_builddir)/non-free/libesmod.so
+ iscan_SOURCES = \
+ $(iscan_source_files)
diff --git a/media-gfx/iscan/files/iscan-2.30.1-fix-g++-test.patch b/media-gfx/iscan/files/iscan-2.30.1-fix-g++-test.patch
new file mode 100644
index 000000000000..5a7f26eb4ca5
--- /dev/null
+++ b/media-gfx/iscan/files/iscan-2.30.1-fix-g++-test.patch
@@ -0,0 +1,45 @@
+Drop obsolete C++ ABI transistion code.
+https://bugs.gentoo.org/549866
+
+
+--- a/configure.ac
++++ b/configure.ac
+@@ -62,27 +62,6 @@ dnl checks for programs
+
+ AC_PROG_CXX
+
+-# Transitionary check for the C++ ABI while we are switching provided
+-# binaries from gcc-3.[23] to gcc-3.4 or later. Currently gcc-3.[23]
+-# is still the official compiler version to use, but experimental bi-
+-# naries are released with a ".c2" suffix.
+-# The CXX_ABI for gcc-3.[23] is 102, btw.
+-# Note that the PACKAGE_RELEASE for the gcc-3.4 or later packages has
+-# to be larger than that for the gcc-3.[23] packages (as long as both
+-# are distributed) for smooth upgrade paths.
+-
+-if test x"$CXX" = xg++; then
+- AC_MSG_CHECKING([C++ ABI version])
+- CXX_ABI="`$CXX -E -dM - < /dev/null | $AWK '/GXX_ABI/ { print $3 }'`"
+- AC_MSG_RESULT([$CXX_ABI])
+- if test x"$CXX_ABI" = x1002; then
+- PACKAGE_CXX_ABI=".c2"
+- else
+- PACKAGE_CXX_ABI=""
+- fi
+- AC_SUBST(PACKAGE_CXX_ABI)
+-fi
+-
+ AC_PROG_CC
+ AC_PROG_CPP
+ AC_PROG_INSTALL
+--- a/non-free/Makefile.am
++++ b/non-free/Makefile.am
+@@ -65,7 +65,7 @@ $(NON_FREE_SOLIBS):
+ *) echo "unsupported architecture" 1>&2; \
+ exit 1;; \
+ esac; \
+- $(LN_S) $(srcdir)/libesmod-$${arch}$(PACKAGE_CXX_ABI).so $@
++ $(LN_S) $(srcdir)/libesmod-$${arch}.c2.so $@
+
+ install-exec-local: $(NON_FREE_SOLIBS)
+ $(mkinstalldirs) $(DESTDIR)$(libdir)
diff --git a/media-gfx/iscan/files/iscan-2.30.1.1-gcc6.patch b/media-gfx/iscan/files/iscan-2.30.1.1-gcc6.patch
new file mode 100644
index 000000000000..14a64bcdd9cc
--- /dev/null
+++ b/media-gfx/iscan/files/iscan-2.30.1.1-gcc6.patch
@@ -0,0 +1,11 @@
+--- iscan-2.30.1/lib/jpegstream.cc.old 2016-10-12 02:55:47.345862674 -0400
++++ iscan-2.30.1/lib/jpegstream.cc 2016-10-12 03:02:53.790439580 -0400
+@@ -82,7 +82,7 @@
+ // only that _bits != 8.
+ for (unsigned int i = 0; i < _h_sz; ++i)
+ {
+- div_t index = div (i, 8 * sizeof (JSAMPLE));
++ div_t index = div ((int) i, (int) 8 * sizeof (JSAMPLE));
+ int offset = 8 * sizeof (JSAMPLE) - 1 - index.rem;
+ _scanline[i] = ((line[index.quot] & (1 << offset))
+ ? 0 : ~0);
diff --git a/media-gfx/iscan/files/iscan-usb.sh b/media-gfx/iscan/files/iscan-usb.sh
new file mode 100644
index 000000000000..49430616e69e
--- /dev/null
+++ b/media-gfx/iscan/files/iscan-usb.sh
@@ -0,0 +1,26 @@
+#!/bin/sh
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# This file is part of media-gfx/iscan
+#
+# This script changes the permissions and ownership of a USB device under
+# /proc/bus/usb to grant access to this device to users in the scanner group.
+#
+# Ownership is set to root:scanner, permissions are set to 0660.
+#
+# Arguments :
+# -----------
+# ACTION=[add|remove]
+# DEVNAME=/dev/bus/usb/BBB/DDD
+# SUBSYSTEM=usb_device
+
+OWNER="root"
+GROUP="scanner"
+PERMS="0660"
+
+DEVICE="${DEVNAME/dev/proc}"
+
+if [ "${ACTION}" = "add" -a "${SUBSYSTEM}" = "usb_device" -a -f "${DEVICE}" ]; then
+ chmod ${PERMS} "${DEVICE}" && chown ${OWNER}:${GROUP} "${DEVICE}"
+fi
diff --git a/media-gfx/iscan/iscan-2.30.1.1.ebuild b/media-gfx/iscan/iscan-2.30.1.1.ebuild
new file mode 100644
index 000000000000..dc0a72b55cd0
--- /dev/null
+++ b/media-gfx/iscan/iscan-2.30.1.1.ebuild
@@ -0,0 +1,179 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+inherit eutils flag-o-matic autotools versionator
+
+# HINTS:
+# -> non-free modules are x86 and amd64 only
+# -> iscan frontend needs non-free modules
+# -> sane-epkowa should be usable on every arch
+# -> ${P}-${SRC_REV}.tar.gz (for gcc 3.2/3.3)
+# -> ${P}-${SRC_REV}.c2.tar.gz (for gcc 3.4 or later)
+
+# FIXME:
+# Make jpeg/png optional. The problem is, that the configure script ignores --disable-*,
+# if the corresponding lib is found on the system.
+# Furthermore, iscan doesn't compile w/o libusb, this should be fixed somehow.
+
+# TODO:
+# (re)add closed-source binary modules which are needed for some scanners.
+
+KEYWORDS="amd64 x86"
+
+MY_PV="$(get_version_component_range 1-3)"
+MY_PVR="$(replace_version_separator 3 -)"
+MY_DOC="userg_revQ"
+
+DESCRIPTION="EPSON Image Scan! for Linux (including sane-epkowa backend)"
+HOMEPAGE="http://download.ebz.epson.net/dsc/search/01/search/?OSC=LX"
+# Use a gentoo hosted url since upstream uses a session based url that causes the
+# files to no longer be available after the session expires.
+SRC_URI="
+ https://dev.gentoo.org/~idella4/tarballs/${PN}_${MY_PVR}.tar.gz
+ https://dev.gentoo.org/~flameeyes/avasys/${PN}_${MY_PVR}.tar.gz
+ doc? (
+ https://dev.gentoo.org/~flameeyes/avasys/${MY_DOC}_e.pdf
+ l10n_ja? ( https://dev.gentoo.org/~flameeyes/avasys/${MY_DOC}_j.pdf )
+ )"
+LICENSE="GPL-2 AVASYS"
+SLOT="0"
+
+IUSE="X doc gimp jpeg png tiff l10n_ja"
+IUSE_LINGUAS="ar de es fr it ja ko nl pt zh_CN zh_TW"
+
+for X in ${IUSE_LINGUAS}; do IUSE="${IUSE} linguas_${X}"; done
+
+REQUIRED_USE="gimp? ( X )
+ jpeg? ( X )
+ png? ( X )
+ tiff? ( X )"
+
+QA_PRESTRIPPED="usr/$(get_libdir)/libesmod.so.*"
+QA_TEXTRELS="${QA_PRESTRIPPED}"
+QA_FLAGS_IGNORED="${QA_PRESTRIPPED}"
+
+# Upstream ships broken sanity test
+RESTRICT="test"
+
+RDEPEND="dev-libs/libxml2
+ media-gfx/iscan-data
+ media-gfx/sane-backends
+ virtual/udev
+ virtual/libusb:1
+ X? ( x11-libs/gtk+:2 )
+ gimp? ( media-gfx/gimp )
+ jpeg? ( virtual/jpeg:= )
+ png? ( media-libs/libpng:= )
+ tiff? ( media-libs/tiff:= )"
+
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ X? ( sys-devel/gettext )"
+
+S="${WORKDIR}/${PN}-${MY_PV}"
+
+src_prepare() {
+ local i
+
+ # convert japanese docs to UTF-8
+ if use l10n_ja; then
+ for i in {NEWS,README}.ja non-free/*.ja.txt; do
+ if [ -f "${i}" ]; then
+ echo ">>> Converting ${i} to UTF-8"
+ iconv -f eucjp -t utf8 -o "${i}~" "${i}" && mv -f "${i}~" "${i}" || rm -f "${i}~"
+ fi
+ done
+ fi
+
+ # disable checks for gtk+
+ if ! use X; then
+ sed -i -e "s:PKG_CHECK_MODULES(GTK,.*):AC_DEFINE([HAVE_GTK_2], 0):g" \
+ -e "s:\(PKG_CHECK_MODULES(GDK_IMLIB,.*)\):#\1:g" configure.ac || die
+ fi
+
+ epatch "${FILESDIR}"/iscan-2.29.1-drop-ltdl.patch
+ epatch "${FILESDIR}"/iscan-2.28.1.3+libpng-1.5.patch
+ epatch "${FILESDIR}"/iscan-2.29.1-png-libs.patch
+ epatch "${FILESDIR}"/iscan-2.30.1-fix-g++-test.patch
+
+ eautoreconf
+}
+
+src_configure() {
+ append-cppflags -D_GNU_SOURCE # needed for 'strndup'
+ # Fix selector box bug 388073
+ replace-flags "-O[0-9s]" "-O1"
+
+ local myconf=(
+ --enable-dependency-reduction
+ --disable-static
+ $(use_enable X frontend)
+ $(use_enable gimp)
+ $(use_enable jpeg)
+ $(use_enable png)
+ $(use_enable tiff)
+ )
+ econf ${myconf[@]}
+}
+
+src_install() {
+ local MY_LIB="/usr/$(get_libdir)"
+ emake DESTDIR="${D}" install || die "emake install failed"
+
+ # install docs
+ dodoc AUTHORS NEWS README
+ use l10n_ja && dodoc NEWS.ja README.ja
+
+ # install sane config
+ insinto /etc/sane.d
+ doins backend/epkowa.conf
+
+ # install extra docs
+ if use doc; then
+ insinto /usr/share/doc/${PF}
+ if use l10n_ja; then
+ doins "${DISTDIR}/${MY_DOC}_j.pdf"
+ else
+ doins "${DISTDIR}/${MY_DOC}_e.pdf"
+ fi
+ fi
+
+ # link iscan so it is seen as a plugin in gimp
+ if use X && use gimp; then
+ local plugindir
+ if [ -x /usr/bin/gimptool ]; then
+ plugindir="$(gimptool --gimpplugindir)/plug-ins" || die "Failed to get gimpplugindir"
+ elif [ -x /usr/bin/gimptool-2.0 ]; then
+ plugindir="$(gimptool-2.0 --gimpplugindir)/plug-ins" || die "Failed to get gimpplugindir"
+ else
+ die "Can't find GIMP plugin directory."
+ fi
+ dodir "${plugindir}"
+ dosym /usr/bin/iscan "${plugindir}"/iscan
+ fi
+
+ # install desktop entry
+ if use X; then
+ make_desktop_entry iscan "Image Scan! for Linux ${PV}" scanner
+ fi
+}
+
+pkg_postinst() {
+ local i
+ local DLL_CONF="/etc/sane.d/dll.conf"
+ local EPKOWA_CONF="/etc/sane.d/epkowa.conf"
+
+ elog
+ if grep -q "^[ \t]*\<epkowa\>" ${DLL_CONF}; then
+ elog "Please edit ${EPKOWA_CONF} to suit your needs."
+ elif grep -q "\<epkowa\>" ${DLL_CONF}; then
+ elog "Hint: to enable the backend, add 'epkowa' to ${DLL_CONF}"
+ elog "Then edit ${EPKOWA_CONF} to suit your needs."
+ else
+ echo "epkowa" >> ${DLL_CONF}
+ elog "A new entry 'epkowa' was added to ${DLL_CONF}"
+ elog "Please edit ${EPKOWA_CONF} to suit your needs."
+ fi
+}
diff --git a/media-gfx/iscan/iscan-2.30.2.2.ebuild b/media-gfx/iscan/iscan-2.30.2.2.ebuild
new file mode 100644
index 000000000000..d956e4fc1b27
--- /dev/null
+++ b/media-gfx/iscan/iscan-2.30.2.2.ebuild
@@ -0,0 +1,177 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit eutils flag-o-matic autotools versionator
+
+# HINTS:
+# -> non-free modules are x86 and amd64 only
+# -> iscan frontend needs non-free modules
+# -> sane-epkowa should be usable on every arch
+# -> ${P}-${SRC_REV}.tar.gz (for gcc 3.2/3.3)
+# -> ${P}-${SRC_REV}.c2.tar.gz (for gcc 3.4 or later)
+
+# FIXME:
+# Make jpeg/png optional. The problem is, that the configure script ignores --disable-*,
+# if the corresponding lib is found on the system.
+# Furthermore, iscan doesn't compile w/o libusb, this should be fixed somehow.
+
+# TODO:
+# (re)add closed-source binary modules which are needed for some scanners.
+
+KEYWORDS="amd64 x86"
+
+MY_PV="$(get_version_component_range 1-3)"
+MY_PVR="$(replace_version_separator 3 -)"
+MY_DOC="userg_revQ"
+
+DESCRIPTION="EPSON Image Scan! for Linux (including sane-epkowa backend)"
+HOMEPAGE="http://download.ebz.epson.net/dsc/search/01/search/?OSC=LX"
+SRC_URI="http://support.epson.net/linux/src/scanner/iscan/${PN}_${MY_PVR}.tar.gz
+ doc? (
+ https://dev.gentoo.org/~flameeyes/avasys/${MY_DOC}_e.pdf
+ l10n_ja? ( https://dev.gentoo.org/~flameeyes/avasys/${MY_DOC}_j.pdf )
+ )"
+LICENSE="GPL-2 AVASYS"
+SLOT="0"
+
+IUSE="X doc gimp jpeg png tiff l10n_ja"
+IUSE_LINGUAS="ar de es fr it ja ko nl pt zh_CN zh_TW"
+
+for X in ${IUSE_LINGUAS}; do IUSE="${IUSE} linguas_${X}"; done
+
+REQUIRED_USE="gimp? ( X )
+ jpeg? ( X )
+ png? ( X )
+ tiff? ( X )"
+
+QA_PRESTRIPPED="usr/lib*/libesmod.so.*"
+QA_TEXTRELS="${QA_PRESTRIPPED}"
+QA_FLAGS_IGNORED="${QA_PRESTRIPPED}"
+
+# Upstream ships broken sanity test
+RESTRICT="test"
+
+RDEPEND="dev-libs/libxml2
+ media-gfx/iscan-data
+ media-gfx/sane-backends
+ virtual/udev
+ virtual/libusb:1
+ X? ( x11-libs/gtk+:2 )
+ gimp? ( media-gfx/gimp )
+ jpeg? ( virtual/jpeg:= )
+ png? ( media-libs/libpng:= )
+ tiff? ( media-libs/tiff:= )"
+
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ X? ( sys-devel/gettext )"
+
+S="${WORKDIR}/${PN}-${MY_PV}"
+
+src_prepare() {
+ eapply_user
+ local i
+
+ # convert japanese docs to UTF-8
+ if use l10n_ja; then
+ for i in {NEWS,README}.ja non-free/*.ja.txt; do
+ if [ -f "${i}" ]; then
+ echo ">>> Converting ${i} to UTF-8"
+ iconv -f eucjp -t utf8 -o "${i}~" "${i}" && mv -f "${i}~" "${i}" || rm -f "${i}~"
+ fi
+ done
+ fi
+
+ # disable checks for gtk+
+ if ! use X; then
+ sed -i -e "s:PKG_CHECK_MODULES(GTK,.*):AC_DEFINE([HAVE_GTK_2], 0):g" \
+ -e "s:\(PKG_CHECK_MODULES(GDK_IMLIB,.*)\):#\1:g" configure.ac || die
+ fi
+
+ epatch "${FILESDIR}"/iscan-2.29.1-drop-ltdl.patch
+ epatch "${FILESDIR}"/iscan-2.28.1.3+libpng-1.5.patch
+ epatch "${FILESDIR}"/iscan-2.29.1-png-libs.patch
+ epatch "${FILESDIR}"/iscan-2.30.1-fix-g++-test.patch
+ epatch "${FILESDIR}"/iscan-2.30.1.1-gcc6.patch
+
+ eautoreconf
+}
+
+src_configure() {
+ append-cppflags -D_GNU_SOURCE # needed for 'strndup'
+ # Fix selector box bug 388073
+ replace-flags "-O[0-9s]" "-O1"
+
+ local myconf=(
+ --enable-dependency-reduction
+ --disable-static
+ $(use_enable X frontend)
+ $(use_enable gimp)
+ $(use_enable jpeg)
+ $(use_enable png)
+ $(use_enable tiff)
+ )
+ econf ${myconf[@]}
+}
+
+src_install() {
+ local MY_LIB="/usr/$(get_libdir)"
+ emake DESTDIR="${D}" install || die "emake install failed"
+
+ # install docs
+ dodoc AUTHORS NEWS README
+ use l10n_ja && dodoc NEWS.ja README.ja
+
+ # install sane config
+ insinto /etc/sane.d
+ doins backend/epkowa.conf
+
+ # install extra docs
+ if use doc; then
+ insinto /usr/share/doc/${PF}
+ if use l10n_ja; then
+ doins "${DISTDIR}/${MY_DOC}_j.pdf"
+ else
+ doins "${DISTDIR}/${MY_DOC}_e.pdf"
+ fi
+ fi
+
+ # link iscan so it is seen as a plugin in gimp
+ if use X && use gimp; then
+ local plugindir
+ if [ -x /usr/bin/gimptool ]; then
+ plugindir="$(gimptool --gimpplugindir)/plug-ins" || die "Failed to get gimpplugindir"
+ elif [ -x /usr/bin/gimptool-2.0 ]; then
+ plugindir="$(gimptool-2.0 --gimpplugindir)/plug-ins" || die "Failed to get gimpplugindir"
+ else
+ die "Can't find GIMP plugin directory."
+ fi
+ dodir "${plugindir}"
+ dosym /usr/bin/iscan "${plugindir}"/iscan
+ fi
+
+ # install desktop entry
+ if use X; then
+ make_desktop_entry iscan "Image Scan! for Linux ${PV}" scanner
+ fi
+}
+
+pkg_postinst() {
+ local i
+ local DLL_CONF="/etc/sane.d/dll.conf"
+ local EPKOWA_CONF="/etc/sane.d/epkowa.conf"
+
+ elog
+ if grep -q "^[ \t]*\<epkowa\>" ${DLL_CONF}; then
+ elog "Please edit ${EPKOWA_CONF} to suit your needs."
+ elif grep -q "\<epkowa\>" ${DLL_CONF}; then
+ elog "Hint: to enable the backend, add 'epkowa' to ${DLL_CONF}"
+ elog "Then edit ${EPKOWA_CONF} to suit your needs."
+ else
+ echo "epkowa" >> ${DLL_CONF}
+ elog "A new entry 'epkowa' was added to ${DLL_CONF}"
+ elog "Please edit ${EPKOWA_CONF} to suit your needs."
+ fi
+}
diff --git a/media-gfx/iscan/metadata.xml b/media-gfx/iscan/metadata.xml
new file mode 100644
index 000000000000..4a9a095daf72
--- /dev/null
+++ b/media-gfx/iscan/metadata.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>mattsch@gmail.com</email>
+ <name>Matthew Schultz</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+ </maintainer>
+ <longdescription lang="en">
+ Image Scan! is a graphical scanner utility for people that do not need all
+ the bells and whistles provided by several of the other utilities out there
+ (xsane, QuiteInsane, Kooka). At the moment it only supports SEIKO EPSON
+ scanners and all-in-ones. However, the scanner driver it provides can
+ be used by any other SANE standard compliant scanner utility.
+ </longdescription>
+</pkgmetadata>
diff --git a/media-gfx/jhead/Manifest b/media-gfx/jhead/Manifest
new file mode 100644
index 000000000000..088efcbce965
--- /dev/null
+++ b/media-gfx/jhead/Manifest
@@ -0,0 +1,8 @@
+AUX jhead-2.90-mkstemp_respect_flags.patch 892 SHA256 ee4648d28e15e254a1de55341948084de0ca89aa95e59c1d466afdfe19eeead5 SHA512 14051d7088685dd957d0bdaace752167ebcdac7eb3b01b033918897e8c349e417e662688d7737f916f59d4f1dd7ad9752172791699da0565dd2d5b4f908a4ed8 WHIRLPOOL 624a2c21337ecb9f37589ae873b8ace1920022d42494f562e79f7b178bf4a01c81b3308d8e7aad5bf6d4ec2143574218d52e85d42e73ab81b3d5db76fcc08f34
+DIST jhead-2.97.tar.gz 68361 SHA256 04b55c5cd27882f631c2b25316803d8ac81c6d2408e6129ca47019c018324f17 SHA512 9b33451546e5ad3b82fe6001515fd572925a1e2c11af763ae32d71ad2cb056ffa8d97abe14bd48ae5f6144da9d8322965387537d61e22d22b02624ebf351c230 WHIRLPOOL 094f6ef96332c0b207f270295a2ef5595644a1dd305dc940920c868719d73f10efdf08a34a141838f61bb70cb7bed94b5d5e0ab302dee2546e2252aefffa8b85
+DIST jhead-3.00.tar.gz 69151 SHA256 88cc01da018e242fe2e05db73f91b6288106858dd70f27506c4989a575d2895e SHA512 daedfe7ea6be051f769e9a1e0946ea0fa741f387bbc5ba55eec394fb3f37b18a66aa8826190c790eb50a5b9d445ee0d5a28a08d181db3be469686b0675540fbe WHIRLPOOL 7c17ab30dc379a9642f55f1b05e0ad83b77ac967cc8c1f0994e204e5701d56c803ee7dd154866cb8398106bf514c87ed351f97cd01914015bbc6e1e21a4ad975
+EBUILD jhead-2.97.ebuild 745 SHA256 ef88c39d745938224153ec2c9468bee9c3395ad1c4835147d5e1284ff58b8119 SHA512 690547b5b0b4eb36153ff782f6e55e8b67155e677cba2ace3a0ec6cdd0f3d1eda313dcaea5e33a417e98c1c113cfb22de011a88117f31dcea7ab7858e229bb67 WHIRLPOOL a9a4746e125d4b298ee2df45e98cb8b6d6928a77f1344b3f4413e15caa43b7454206cda48023ad0bed6f2140d99e735d1c48d1a12f871edcd89919c2987d1397
+EBUILD jhead-3.00.ebuild 746 SHA256 395b85b64173e1f3908a165a7d0d68bb1126d10f67fc72511bea0652cb4fcdca SHA512 2f711c62175a02cc968fc698fffff784743a8befe3c315d294e78978357de5df3ee0c665ae70baf64091db4c3744f1c2aa3853fcae87754eb8a67d0a08ebe4a5 WHIRLPOOL 70cd7a9ff5d372883d2b7d67025637514e2777b3ccd4921d65ff4ce0629a62ee845b6f77ba4cad8f90f48f8edf28a433c3199126997f5aab37997403297ba8e0
+MISC ChangeLog 2561 SHA256 c6e576a9300fb75e4b2e7d080fb86ab53e288f58fdc142e39248badd8662ae4f SHA512 bc02728e403a0def6ad3e645250a0ce92cfa717f42198f10bf5b76c815dd1d57f6fdc896f424e56df0117399619af4422257f354acce29243394f8ac3123296f WHIRLPOOL ca17965c5a611b0d5ae0f115ef954d0b35e5d9dde90c128eac0fdd16745b0529acd39ac2ce21f1cc0d76f6db2607eec3b0c2bd2d248be87f7cec868abf3b328f
+MISC ChangeLog-2015 16764 SHA256 9e8e0286e6cd138c86d3746a1b38f79d628ebdc99d67dafdaf63dc43981f59ee SHA512 8119070aa3e0cb17c001a9b86943dce98ba260d9b904b92284726e4aa2a56cbb74f17a602cb80af3eba53fb01883c1c44442dd4c569e7a3f7e516a891b07dd70 WHIRLPOOL 81ec285b3ece3fcf810aaf90eea2b5a010365e2a83b70d7beb35e1ac5473b333ac2f7fad60a65a6b7792b277208a349244d97899acbc358d9f1d57ad43add8c0
+MISC metadata.xml 255 SHA256 3e7137870fc49956d79719e3dfe029775cbaaa097e85748c139713c46fcd1798 SHA512 b7bc93530a1726c2d4dfbc71ae29cfbb57712fd9fdd2e76fd52f35ab4368cba0497b50145d1527a3b79e465d459a380821bb1371a01c2e915dc9adc6c7fafd5f WHIRLPOOL 392188d7e069f1720be9329edfb31b11b176bf0c411023b2ceeaeabef1cacf842d70657a2a14ac2ddabbdad70a304275f3b587e9bcdfe77be63a0092e370252c
diff --git a/media-gfx/jhead/files/jhead-2.90-mkstemp_respect_flags.patch b/media-gfx/jhead/files/jhead-2.90-mkstemp_respect_flags.patch
new file mode 100644
index 000000000000..f09214b9f3d6
--- /dev/null
+++ b/media-gfx/jhead/files/jhead-2.90-mkstemp_respect_flags.patch
@@ -0,0 +1,26 @@
+diff --exclude='*~' -Naur -Naur jhead-2.90.orig/jhead.c jhead-2.90/jhead.c
+--- jhead-2.90.orig/jhead.c 2011-02-12 14:36:47.000000000 -0200
++++ jhead-2.90/jhead.c 2011-02-12 14:39:28.000000000 -0200
+@@ -358,7 +358,7 @@
+ // as mktemp - that is, that between getting the random name, and making the file
+ // some other program could snatch that exact same name!
+ // also, not all pltforms support mkstemp.
+- mktemp(TempName);
++ mkstemp(TempName);
+
+
+ if(!TempName[0]) {
+diff --exclude='*~' -Naur -Naur jhead-2.90.orig/makefile jhead-2.90/makefile
+--- jhead-2.90.orig/makefile 2011-02-12 14:36:47.000000000 -0200
++++ jhead-2.90/makefile 2011-02-12 14:40:50.000000000 -0200
+@@ -13,8 +13,9 @@
+ $(OBJ)/%.o:$(SRC)/%.c
+ ${CC} $(CFLAGS) -c $< -o $@
+
++
+ jhead: $(objs) jhead.h
+- ${CC} -o jhead $(objs) -lm
++ ${CC} ${LDFLAGS} -o jhead $(objs) -lm
+
+ clean:
+ rm -f $(objs) jhead
diff --git a/media-gfx/jhead/jhead-2.97.ebuild b/media-gfx/jhead/jhead-2.97.ebuild
new file mode 100644
index 000000000000..21e355e2ae1e
--- /dev/null
+++ b/media-gfx/jhead/jhead-2.97.ebuild
@@ -0,0 +1,31 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit eutils toolchain-funcs
+
+DESCRIPTION="Exif Jpeg camera setting parser and thumbnail remover"
+HOMEPAGE="http://www.sentex.net/~mwandel/jhead"
+SRC_URI="http://www.sentex.net/~mwandel/${PN}/${P}.tar.gz"
+
+LICENSE="public-domain"
+SLOT="0"
+KEYWORDS="alpha amd64 hppa ia64 ppc ppc64 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
+IUSE=""
+
+src_prepare() {
+ # bug 275200 - respect flags and use mktemp instead of mkstemp
+ epatch "${FILESDIR}"/${PN}-2.90-mkstemp_respect_flags.patch
+}
+
+src_compile() {
+ emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}"
+}
+
+src_install() {
+ dobin ${PN}
+ dodoc *.txt
+ dohtml *.html
+ doman ${PN}.1
+}
diff --git a/media-gfx/jhead/jhead-3.00.ebuild b/media-gfx/jhead/jhead-3.00.ebuild
new file mode 100644
index 000000000000..a2d8d93f35bf
--- /dev/null
+++ b/media-gfx/jhead/jhead-3.00.ebuild
@@ -0,0 +1,32 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit toolchain-funcs
+
+DESCRIPTION="Exif Jpeg camera setting parser and thumbnail remover"
+HOMEPAGE="http://www.sentex.net/~mwandel/jhead"
+SRC_URI="http://www.sentex.net/~mwandel/${PN}/${P}.tar.gz"
+
+LICENSE="public-domain"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
+IUSE=""
+
+PATCHES=(
+ # bug 275200 - respect flags and use mktemp instead of mkstemp
+ "${FILESDIR}"/${PN}-2.90-mkstemp_respect_flags.patch
+)
+
+src_compile() {
+ emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}"
+}
+
+src_install() {
+ dobin ${PN}
+ dodoc *.txt
+ docinto html
+ dodoc *.html
+ doman ${PN}.1
+}
diff --git a/media-gfx/jhead/metadata.xml b/media-gfx/jhead/metadata.xml
new file mode 100644
index 000000000000..19bf1be2581e
--- /dev/null
+++ b/media-gfx/jhead/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 type="project">
+ <email>graphics@gentoo.org</email>
+ <name>Gentoo Graphics Project</name>
+</maintainer>
+</pkgmetadata>
diff --git a/media-gfx/jigl/Manifest b/media-gfx/jigl/Manifest
new file mode 100644
index 000000000000..ca2a383a21ac
--- /dev/null
+++ b/media-gfx/jigl/Manifest
@@ -0,0 +1,5 @@
+DIST jigl-2.0.1.tar.gz 35423 SHA256 52641395bf1fa91cb3e6d4771db51507284890250937dd8c1f3b58ce558170e8 SHA512 648d00d5c6b57ade66da388dc6168289260006f08f971b9a353529191c06357604a341df371c9638762ad3232efc275cd685c2c3c258472c8503742113c41e77 WHIRLPOOL a5b2c691327b4dcf3cc0baab8ddaea5557630982fae488d095ac74e374a4856b9a762846a02972dfd25a7ca18e28fa01edbca62cab3fa8ca468578d5f4f392bf
+EBUILD jigl-2.0.1.ebuild 444 SHA256 e4c99fffe8919e2af2f6c7f82f8e9e4eb4e72d3d134ad9627a29c97e442449d5 SHA512 6c3cdf42cc9b8eee696717aa6da1b9f255ae77a607839d942bbf6e775cf982fb23db1d597ba848e3dfe3013644417f5f4ecdb49b997ad2f96a66ca0c69f5d021 WHIRLPOOL 40070dc016fac59117286ed61cd30a3fd5600afce60f00f079b9f1e6f1a6ffcc800ef379f9751c9dc8bf2198e620c2b3a3319ff9c85a622e7470f55eaa96faa4
+MISC ChangeLog 2419 SHA256 0e24a593ee8718318bd114c3ebfaa02767966eddd34ed3615019b2e5a826e55e SHA512 617eb7bd2caad4632082fc2dc682907dcc2983ecaf7c2b19050b1ca4d7548a656f29520d31cd89364547d2a54d520a86f7d34f6f65d0fe8a618ecd6b2812bc02 WHIRLPOOL 4bfed3d8aa41217e5a9221fb8b3865139036a942363d9c36bc6b49c63633319dc6c16fb80b814dbe203497d3f73e84693852fe4d86c03f5a77ae36d0599acc61
+MISC ChangeLog-2015 564 SHA256 16a9fbee0204955a62db44afa06f79e530f7df829811591bf87492399b984bec SHA512 1d0aa6acef83e5a7806e0e4366cab4df7a00c00b2f4458fbf7be8ac6a06f560b7bf4c834e8c3cf71147bba99db9f6a7eefce98918916f48d133b2ec5c88aa0cd WHIRLPOOL 015dd71c9fba223d669bfd3d9d4686eecd358d3cba93c8a546fbb38ecbd969b9a0db24360b6be4f501adc174af33e407789825ad03bedfcacc5d53885ca309c4
+MISC metadata.xml 265 SHA256 db1cfbffc28a5904257a8fbd4f99c081aa42b08239ff8d97aa299983b32d58fd SHA512 65fd64249e8dde8eb2ddcb67c58c05b36b10e51956e2237f60dd3ae50872492f3d5872b64106acb13e453a41960f4f817161be3c8b89e6b9a2367b8f1403ffaf WHIRLPOOL ea60bca9e9cd33aa65e8800ca0bc1c3e84a3f4cad168d7d3d8a8b73d335b866442271f1b027f7f1a6d69dbd1408555c495a581a9280c0b217036a6b736276906
diff --git a/media-gfx/jigl/jigl-2.0.1.ebuild b/media-gfx/jigl/jigl-2.0.1.ebuild
new file mode 100644
index 000000000000..e5e5f2067b43
--- /dev/null
+++ b/media-gfx/jigl/jigl-2.0.1.ebuild
@@ -0,0 +1,21 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+DESCRIPTION="Jason's Image Gallery"
+HOMEPAGE="http://xome.net/projects/jigl/"
+SRC_URI="http://xome.net/projects/jigl/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+RDEPEND="dev-lang/perl
+ media-gfx/jhead
+ media-gfx/imagemagick"
+DEPEND=""
+
+src_install() {
+ newbin jigl.pl jigl || die
+ dodoc ChangeLog Themes Todo
+}
diff --git a/media-gfx/jigl/metadata.xml b/media-gfx/jigl/metadata.xml
new file mode 100644
index 000000000000..6ade85e1c642
--- /dev/null
+++ b/media-gfx/jigl/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 type="project">
+ <email>graphics@gentoo.org</email>
+ <name>Gentoo Graphics Project</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/media-gfx/jp2a/Manifest b/media-gfx/jp2a/Manifest
new file mode 100644
index 000000000000..e6916c695c9a
--- /dev/null
+++ b/media-gfx/jp2a/Manifest
@@ -0,0 +1,5 @@
+DIST jp2a-1.0.6.tar.bz2 306975 SHA256 7869c13744b0e15c250cae88b55f0dfade17e6c2b0a03b309dbe89bd34b342d4 SHA512 00c7f7b62a3d1f4238d7513167eebd6ead9447ac90b66fd3f9529f6e99dd1a021385ff970aabd005a88db1614636be57547494dfe00c7e687a11953066a6ecce WHIRLPOOL 1ab6226faea0988faabd765dff36f30977584e6f20a448a79fd3d975dba4cf06bfe9564638551aa8614b02b72a9c6190e3824fd8fe910eed3177e15c627ffb12
+EBUILD jp2a-1.0.6-r1.ebuild 626 SHA256 8ec71a4614e106575ce74e5e6031a1a7e9496c5328d767621eeb1ef2d60ab010 SHA512 173fe4cbae8933db42cfd77c29cb259ff862c7c46231c2fdf21edf8c6aa6def687e71c050cdf4116b4b76dae01defea1531149d2d5273b38a4f15edb23dd457e WHIRLPOOL e0d8882f79abfc4fe218be40576d05eb29cd426a9319ee6f0f452d644b58f623432a856b160a56ba6ad8b9ff9580def8bc12b5fc5a5115aedee06118bed10a39
+MISC ChangeLog 2174 SHA256 02b7b3a0e75960118c36e7c985369db27112145691caa15b392a843d37980a67 SHA512 557e311e0270fe194766789d0e646c0cbd05007c0b1bad040772da14c1c892d7983376e978e83c0bc32f1729b5901d3873e2615aad1c5d2f8383f231a0e992ef WHIRLPOOL 07947a1a3a245e65d31da1d86058e685cb30a35b6f2c0e80dc3bb5dcb7dbdc0b771e59c905d51f33b4cf111a7fa07fb75d3561327c1a04a6983b06606612e98c
+MISC ChangeLog-2015 1821 SHA256 8cfb8e584ea475206cddd409e434c833f18230908ca5870766778840623c359e SHA512 4b05b917cf58bdf1708de36ff262487e3137a8fc35fc16a13f41227a2c50abe669c24bab37e6339e45c876866bb1f455014fdd2c722ad8eaaef24c33c976525b WHIRLPOOL 8fd98579bc24952b37f020d39784578b3835581c218a7a62e941ea00fd68272f009c63bd1454a2e28fd6187f1490d6ce108c853e65cf44f552aeff347f5566e7
+MISC metadata.xml 329 SHA256 0d7958c86edc555582a8376bdb5c9038d38932bd69d38d0fbd7f12e5e30fd34b SHA512 c86c3d7a051e7b1b89fbaa8315f073490e5fbfaeac9cbef1551d453d485f52cc4f1a664e5ec14be9b751d7771780e4a8a891bc0d6558c3154e9d3b04835a63b0 WHIRLPOOL a97aff7811c9e4868a1ef2bf96caff7ae308dbc940867c269fb2f0a198b7cbc386ab94c754103114197fec68f284aaed7f954da409f55f522bf95ebe834d12e2
diff --git a/media-gfx/jp2a/jp2a-1.0.6-r1.ebuild b/media-gfx/jp2a/jp2a-1.0.6-r1.ebuild
new file mode 100644
index 000000000000..921a7338c888
--- /dev/null
+++ b/media-gfx/jp2a/jp2a-1.0.6-r1.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=2
+
+DESCRIPTION="JPEG image to ASCII art converter"
+HOMEPAGE="http://csl.sublevel3.org/jp2a/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ~ia64 ppc ppc64 ~sparc x86 ~x64-macos ~x86-macos ~x64-solaris"
+IUSE="curl"
+
+RDEPEND="sys-libs/ncurses
+ virtual/jpeg
+ curl? ( net-misc/curl )"
+DEPEND="${RDEPEND}"
+
+src_configure() {
+ econf \
+ $(use_enable curl)
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die
+ dodoc AUTHORS ChangeLog NEWS README
+ dohtml man/jp2a.html
+}
diff --git a/media-gfx/jp2a/metadata.xml b/media-gfx/jp2a/metadata.xml
new file mode 100644
index 000000000000..a8764429bc70
--- /dev/null
+++ b/media-gfx/jp2a/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>chainsaw@gentoo.org</email>
+ <name>Tony Vroon</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">jp2a</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/media-gfx/jpeg2ps/Manifest b/media-gfx/jpeg2ps/Manifest
new file mode 100644
index 000000000000..57da05d9c893
--- /dev/null
+++ b/media-gfx/jpeg2ps/Manifest
@@ -0,0 +1,6 @@
+AUX jpeg2ps-1.9-include.diff 341 SHA256 33481d82661a44fe8e52ecad7c467173d6570e8e64e9b0b7f54d05575e013cd4 SHA512 b67639f655ee752ea2ee3fa881767af46a1f1722510a9e85fd6f79553cda772e9550fd80070084fb85865ee6046469a90b9c90885c1f875d50a1eb1dac59cbd4 WHIRLPOOL e3ac27c4685121ae66ef7ca7bc33b7c3bfe466881b9648c63ae064fb1dc7a3da620e861f55780e585e88142a08ae23ae2ca3a391112e2dbd01354b55bfd5d6a7
+DIST jpeg2ps-1.9.tar.gz 67105 SHA256 e09919ff55bb1fd26299adfe92e5ea0e7daaa3bfa0277a0483cac9764eac25a2 SHA512 babc6183db2c95d0bcfba3d34f924bd2a37d0a566bf684f3af3955b8b3978cd4b94b10e94f366aec641988258476f84ce730e4da43f2bb0a836e81da4892ad3c WHIRLPOOL bc78fc722f851acd11418f7ebdc145466a34d43c293edb4ee96edec5ff41b995c2c11dd46f1936d3c5fb6c4c241c64f3c073efc88ae0022f2b0e1f53790338c9
+EBUILD jpeg2ps-1.9-r1.ebuild 1363 SHA256 ddfeb88ba417089519448545a46e1d2f01f803f7b6e8e2bb58a15dcaba42d2c3 SHA512 a0c8092d4d0b84a8fb4f935a72b7109fe881671946c3b641dcbaa1495413746d43ed29b8854a3366bea20f6eb5014a82f2815a570a9b2f162259dd50fd4110e2 WHIRLPOOL 3eda22463e7e897340c63b3f3a2af795fb6092f77370d2ecc9333cfd32da2246822b4fc26487169be128aa85f30b76cdb9809353375670e2b8d67509206918f3
+MISC ChangeLog 2856 SHA256 29a2cfdb1208c7024b2d5d1d081f3ab1b0011b7c55563d27e93bedf5a6aef566 SHA512 232f01a655d4eaaba9b6bf7c1c7aca0b7f27b6c5dd78a39d504f55e08c9c7a500b2db765d7c24ac7997953ca32f4a2fbbc8ef5eecb2a0e2a55605a1484726a3a WHIRLPOOL f31770f64c32b8be9658d71b32531414acade386fad7000f50c0846a775b356cc6cd50438a17e1b9c1e7c5835e60f2275005a1fad6ca38d48137f56dea2d7121
+MISC ChangeLog-2015 3182 SHA256 7486c20fb43a1a2af6cd87851de1525dc815cd8c7503bfeb91f65caea96ae59c SHA512 5b58629726975e39763821a18b3ab05516729a027a68aac5219684fe3407f70bbfcce2e235f7484bf9b2f3a8a3535b345b8d02a8cf0bb77f84657a4841d381a4 WHIRLPOOL 5ab86c3f740163370fd378ff0d98bd432c7b246a74b14b020726a41357e8d1aecbdc6ebe5ccfe22bb12aa56f6435a010b9f65a6b937efe3ca4cdcece5d7cae2f
+MISC metadata.xml 330 SHA256 d29096e898a4501a55d3604cbcf95b789b236c6cbd5d387f8bbb08bc83230eac SHA512 14d8957884806cffc9fed806bacba7331e4669164b4be427aac8a9c1d0af7d6da815249c34e6bf5832370c20eeda683af2296f1d3145aecbd8030237a73a47a9 WHIRLPOOL c627a0bbc6a847358beb4299f9fcd75771f748a69cb70870dd504d758bb8aff3935b47286044fa7af885f20dd0354cece77977a977457bb9bb82770a7ca9bbb9
diff --git a/media-gfx/jpeg2ps/files/jpeg2ps-1.9-include.diff b/media-gfx/jpeg2ps/files/jpeg2ps-1.9-include.diff
new file mode 100644
index 000000000000..f07b69c5bc6a
--- /dev/null
+++ b/media-gfx/jpeg2ps/files/jpeg2ps-1.9-include.diff
@@ -0,0 +1,11 @@
+diff --exclude='*~' -Naur jpeg2ps-1.9.orig/asc85ec.c jpeg2ps-1.9/asc85ec.c
+--- jpeg2ps-1.9.orig/asc85ec.c 2005-09-10 23:02:15.000000000 -0300
++++ jpeg2ps-1.9/asc85ec.c 2005-09-10 23:08:08.000000000 -0300
+@@ -3,6 +3,7 @@
+
+ #include <stdio.h>
+ #include <fcntl.h>
++#include <stdlib.h>
+
+ /* try to identify Mac compilers */
+ #ifdef __MWERKS__
diff --git a/media-gfx/jpeg2ps/jpeg2ps-1.9-r1.ebuild b/media-gfx/jpeg2ps/jpeg2ps-1.9-r1.ebuild
new file mode 100644
index 000000000000..7ee60c97d61f
--- /dev/null
+++ b/media-gfx/jpeg2ps/jpeg2ps-1.9-r1.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+inherit eutils toolchain-funcs
+
+DESCRIPTION="Converts JPEG images to Postscript using a wrapper"
+HOMEPAGE="http://www.pdflib.com/download/free-software/jpeg2ps/"
+SRC_URI="http://www.pdflib.com/products/more/jpeg2ps/${P}.tar.gz"
+
+LICENSE="free-noncomm"
+SLOT="0"
+KEYWORDS="amd64 ppc ~ppc64 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos"
+IUSE="metric"
+
+DEPEND="sys-apps/sed"
+RDEPEND=""
+
+src_unpack() {
+ unpack ${A}
+
+ #bug 105561
+ epatch "${FILESDIR}"/${P}-include.diff
+}
+
+src_compile() {
+ pagesize=""
+ use metric && pagesize="-DA4"
+ emake CFLAGS="-c ${CFLAGS} ${pagesize}" CC="$(tc-getCC)" || die "emake failed"
+}
+
+src_install() {
+ # The Makefile is hard-coded to install to /usr/local/ so we
+ # simply copy the files manually
+ dobin jpeg2ps || die "dobin failed"
+ doman jpeg2ps.1 || die "doman failed"
+ dodoc jpeg2ps.txt || die "dodoc failed"
+}
+
+pkg_postinst() {
+ elog
+ if [ -z ${pagesize} ]; then
+ elog "By default, this installation of jpeg2ps will generate"
+ elog "letter size output. You can force A4 output with"
+ elog " jpeg2ps -p a4 file.jpg > file.ps"
+ else
+ elog "By default, this installation of jpeg2ps will generate"
+ elog "A4 size output. You can force letter output with"
+ elog " jpeg2ps -p letter file.jpg > file.ps"
+ fi
+ elog
+}
diff --git a/media-gfx/jpeg2ps/metadata.xml b/media-gfx/jpeg2ps/metadata.xml
new file mode 100644
index 000000000000..d6fe5b053823
--- /dev/null
+++ b/media-gfx/jpeg2ps/metadata.xml
@@ -0,0 +1,13 @@
+<?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>
+<use>
+ <flag name="metric">
+ Default to A4 paper size
+ </flag>
+</use>
+</pkgmetadata>
diff --git a/media-gfx/jpeginfo/Manifest b/media-gfx/jpeginfo/Manifest
new file mode 100644
index 000000000000..a03e4714a25a
--- /dev/null
+++ b/media-gfx/jpeginfo/Manifest
@@ -0,0 +1,6 @@
+AUX jpeginfo-1.6.0-parallel_install.patch 330 SHA256 8bfc4d74c67b37e44b64e9890e10934f91d5e8142d4df52563945e04c0208219 SHA512 1e403edabb6e8379d55922b2ae8247d7b18d86b93fed9fe51998d9e7b0cbb41be7ee7fc58a27c012fd56ee9aa9cea3c73c9f758042f2abb3bdb027e7202f3410 WHIRLPOOL 8084a80aed52ee77a4ddf037951d2d4464eeccdf8468fbd81cc7fcc0d07c379c95010318b0269083ccc8b1340fab5536300e7533329e084a9f38483464d6fbe2
+DIST jpeginfo-1.6.1.tar.gz 64856 SHA256 629e31cf1da0fa1efe4a7cc54c67123a68f5024f3d8e864a30457aeaed1d7653 SHA512 9cc9367b8b3e38ba46bff9477b8f61e63b55bd41a67ea2895cca9c097abba2a7a3ae068c235ecfea72c99af52bba91cbb1eb92feb019ba4eb08e826a7083c68b WHIRLPOOL ce014fb30024c3ba3cabbe8d4839e25e86ef204efec82647c747974965b5d85acc8041e012f55b85e0100f1d2df4fdb2120bc42fd855d657014aa78d7de35f52
+EBUILD jpeginfo-1.6.1.ebuild 670 SHA256 999e42bfc16600d7fd9e75835f94a2e1dac9c3707dd98942ccc6c8f3e8654c6e SHA512 97309858d4d1129fadef84c351f1862c246074edbe4a1f4252bb2523cbdd0f99eba87155a5fae085beb1403462ebc7f9f510f24ada74f1542af12e92f8204927 WHIRLPOOL 15b8faafedc1dd75f2e071ea36c7c4b872ff9e73bb64b8ef25034945ff6345b7d123d212b2ccda90d35d26070b94e3534e68813fad83c1ebae0afc8e8a0d95f5
+MISC ChangeLog 2479 SHA256 901ca27b99380ed3b4334fd2d31b62160e466e55cec3e65bb083502dac072ec3 SHA512 91987418892978c8bbe65a01b85d2009949bdf1e9b5164ad3e02728b369ae57c98e326a0564643bf07e644bf4d05954d9ef1638732493a68259cb713f92709f4 WHIRLPOOL 2d164f5e9d0f6485a237fbf38a7eddfe2ddd9ea0048da6006867f9423077cf47467c8140959d98d9d3856623deb3836c75f126d24f8f3735250a6a831d38f9a2
+MISC ChangeLog-2015 3694 SHA256 5d7ce9e9a45ac0422864e238f51fc8a680ccd01863e4870e5bc81aa5adf0248f SHA512 67ea72173096728f4fa4a9059d2410b57487bde95e8bc721b0512ff882a154494e16f2146a55a5bca75a6d98183dbecbd3f904df228a02806fecd4019d1f2486 WHIRLPOOL 57ba3597cabdf7116182cdee7382319d275e7283b42a9fd66bb382050b5ce55ed8f32866a8e652376c92f51f3a7d281dd9216f2e5dfe7c48ed3b8365ddc9ae48
+MISC metadata.xml 255 SHA256 3e7137870fc49956d79719e3dfe029775cbaaa097e85748c139713c46fcd1798 SHA512 b7bc93530a1726c2d4dfbc71ae29cfbb57712fd9fdd2e76fd52f35ab4368cba0497b50145d1527a3b79e465d459a380821bb1371a01c2e915dc9adc6c7fafd5f WHIRLPOOL 392188d7e069f1720be9329edfb31b11b176bf0c411023b2ceeaeabef1cacf842d70657a2a14ac2ddabbdad70a304275f3b587e9bcdfe77be63a0092e370252c
diff --git a/media-gfx/jpeginfo/files/jpeginfo-1.6.0-parallel_install.patch b/media-gfx/jpeginfo/files/jpeginfo-1.6.0-parallel_install.patch
new file mode 100644
index 000000000000..379e200fd90f
--- /dev/null
+++ b/media-gfx/jpeginfo/files/jpeginfo-1.6.0-parallel_install.patch
@@ -0,0 +1,11 @@
+--- Makefile.in
++++ Makefile.in
+@@ -79,7 +79,7 @@
+ groff -Tps -mandoc ./$(PKGNAME).1 >$(PKGNAME).ps
+ groff -Tascii -mandoc ./$(PKGNAME).1 | tee $(PKGNAME).prn | sed 's/.//g' >$(PKGNAME).txt
+
+-install.man:
++install.man: install.dirs
+ $(INSTALL) -m 644 $(PKGNAME).1 $(INSTALL_ROOT)/$(mandir)/man1/$(PKGNAME).1
+
+ install.dirs:
diff --git a/media-gfx/jpeginfo/jpeginfo-1.6.1.ebuild b/media-gfx/jpeginfo/jpeginfo-1.6.1.ebuild
new file mode 100644
index 000000000000..94655602da5d
--- /dev/null
+++ b/media-gfx/jpeginfo/jpeginfo-1.6.1.ebuild
@@ -0,0 +1,31 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+inherit eutils toolchain-funcs
+
+DESCRIPTION="Prints information and tests integrity of JPEG/JFIF files"
+HOMEPAGE="http://www.kokkonen.net/tjko/projects.html"
+SRC_URI="http://www.kokkonen.net/tjko/src/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 ppc ppc64 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos"
+IUSE=""
+
+RDEPEND="virtual/jpeg"
+DEPEND="${RDEPEND}"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-1.6.0-parallel_install.patch
+}
+
+src_configure() {
+ tc-export CC
+ econf
+}
+
+src_install() {
+ emake INSTALL_ROOT="${D}" install
+ dodoc README
+}
diff --git a/media-gfx/jpeginfo/metadata.xml b/media-gfx/jpeginfo/metadata.xml
new file mode 100644
index 000000000000..19bf1be2581e
--- /dev/null
+++ b/media-gfx/jpeginfo/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 type="project">
+ <email>graphics@gentoo.org</email>
+ <name>Gentoo Graphics Project</name>
+</maintainer>
+</pkgmetadata>
diff --git a/media-gfx/jpegoptim/Manifest b/media-gfx/jpegoptim/Manifest
new file mode 100644
index 000000000000..17c807b7948d
--- /dev/null
+++ b/media-gfx/jpegoptim/Manifest
@@ -0,0 +1,7 @@
+DIST jpegoptim-1.4.3.tar.gz 98151 SHA256 233d4ae09273cb977e162671f4767be7ef5d96e8c1888d3ed4aa70c4dac1a34c SHA512 4495e9cf5af9ba41273bf23a4abea724adb19ddac373d5985c29fe65b227c0b23bf14baaa28fa8f8617370e9b9fe41b0d365ad19da67f34d32fa857232c7b09e WHIRLPOOL 6b8ef731c8305fbfdb8ed390c8a75f0275d906011004196e3bb749c688d7863569e41c6f96f84c673623393c3c0b9a4342ba786cf711b0a292187d0212f7259a
+DIST jpegoptim-1.4.4.tar.gz 98794 SHA256 89a03ea2dfe9483dfb2e009a2851be0befb0deb7cb45c04550bcc91e1e88c1b2 SHA512 67879b5709a97c7b097e5eae6fe4047d330da8a445eab6e9528cb5f54d76db1bba058eff5c7342b68653e7d25e50ad923d5ce04799e1b3f1815d8b70affd46a3 WHIRLPOOL dec19281513bdc96cd36683377a97fca7b96494dc4c86c15334f857699da1ec468c98f292b9d09e67c3433f880ae8e42f7314250069ebf7ea2a7d02b243f432d
+EBUILD jpegoptim-1.4.3.ebuild 489 SHA256 6ea2e4f6c085038b720e60d883ebb4db6df7ba0711234cf4ad6f033a96631e57 SHA512 ebe582928af7143d4da9fab67685bd40d2a202948ae38d8ee3a2f313d4bdaaef92606c8c8a9492609d287c0b77e0870985fbb15dca6c25cabf29b4fbfe8bb87a WHIRLPOOL bf040fb32940b9ff1460b305c33ec804d5fb57c965117630baa0035de0628cb2c19fa203bbebfb994b818b5f054dccd8304aaf8c5e07843d190bc61a4ae6bf36
+EBUILD jpegoptim-1.4.4.ebuild 525 SHA256 b64775871793fea2d63e628657c812a37e0e134c6efdbb6c0f2db51b63933cb5 SHA512 e73b2036d80520c38a91768f9f269bfb3b556efaae455c5502bb1f4fb9fcb32afa57012bab427216c18492524c1ba717f37f1bb18fce7462ad53050c0aabd294 WHIRLPOOL 5f9435873e1ab83b60473b128e3974bc732b7b0ecc7411ee6b665a0d03c8f4aa58a4fc82c8b149a65a924c8e8bb89d5664355d67b28c2631ba2e5500e1cc1195
+MISC ChangeLog 2668 SHA256 8e2ffdbef4edbbeaba1b65315c10bb535a9f013578789643eff1a7b6379b33a4 SHA512 085e704616ca3c11bedb92c75d698d8e7f2caf9865b7840edb1c1923d3b14dedd2724b7ebf49355c3f9df11c657346cae97c8dc5de172d6de6ba912f2c74d571 WHIRLPOOL 667241718c4a95c42bc165ed6d9a0bef5579a0577a369bd2f1f1dbc8ff604da3db816ff723495bf05e436e9aba8c50fda928941b2cb30dc4b3595c1177b3408a
+MISC ChangeLog-2015 4119 SHA256 4bf0a232f53b23c8b72aa360c52155102ad3ac9abbe3680116c2adf330f71bca SHA512 74200f9ca9ddb49f13074ecc52855162be552082270ed213ddec8d594479add673b0cf5987fdaeb28bf592f29a25de43c301ca11e754e343c678dcb1db58030e WHIRLPOOL 4e7fb44bb0a5c03bc117865b17e123ff1051212d09e9eb1005ba9a0ba9a4b652ae467778b9133227aff333d966a333a1ec4e9dd8c5acce696627e74895f23035
+MISC metadata.xml 255 SHA256 3e7137870fc49956d79719e3dfe029775cbaaa097e85748c139713c46fcd1798 SHA512 b7bc93530a1726c2d4dfbc71ae29cfbb57712fd9fdd2e76fd52f35ab4368cba0497b50145d1527a3b79e465d459a380821bb1371a01c2e915dc9adc6c7fafd5f WHIRLPOOL 392188d7e069f1720be9329edfb31b11b176bf0c411023b2ceeaeabef1cacf842d70657a2a14ac2ddabbdad70a304275f3b587e9bcdfe77be63a0092e370252c
diff --git a/media-gfx/jpegoptim/jpegoptim-1.4.3.ebuild b/media-gfx/jpegoptim/jpegoptim-1.4.3.ebuild
new file mode 100644
index 000000000000..979f943e00e0
--- /dev/null
+++ b/media-gfx/jpegoptim/jpegoptim-1.4.3.ebuild
@@ -0,0 +1,15 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+DESCRIPTION="Utility to optimize JPEG files"
+HOMEPAGE="http://www.kokkonen.net/tjko/projects.html"
+SRC_URI="http://www.kokkonen.net/tjko/src/${P}.tar.gz"
+
+LICENSE="GPL-2+" # While COPYING is plain GPL-2, COPYRIGHT is clarifying it to be 'any later version'
+SLOT="0"
+KEYWORDS="amd64 ~ppc x86 ~amd64-linux ~x86-linux ~ppc-macos"
+
+RDEPEND="virtual/jpeg:0"
+DEPEND="${RDEPEND}"
diff --git a/media-gfx/jpegoptim/jpegoptim-1.4.4.ebuild b/media-gfx/jpegoptim/jpegoptim-1.4.4.ebuild
new file mode 100644
index 000000000000..2bcd4f24bbf0
--- /dev/null
+++ b/media-gfx/jpegoptim/jpegoptim-1.4.4.ebuild
@@ -0,0 +1,15 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DESCRIPTION="Utility to optimize JPEG files"
+HOMEPAGE="http://www.kokkonen.net/tjko/projects.html https://github.com/tjko/jpegoptim"
+SRC_URI="http://www.kokkonen.net/tjko/src/${P}.tar.gz"
+
+LICENSE="GPL-2+" # While COPYING is plain GPL-2, COPYRIGHT is clarifying it to be 'any later version'
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux ~ppc-macos"
+
+RDEPEND="virtual/jpeg:0"
+DEPEND="${RDEPEND}"
diff --git a/media-gfx/jpegoptim/metadata.xml b/media-gfx/jpegoptim/metadata.xml
new file mode 100644
index 000000000000..19bf1be2581e
--- /dev/null
+++ b/media-gfx/jpegoptim/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 type="project">
+ <email>graphics@gentoo.org</email>
+ <name>Gentoo Graphics Project</name>
+</maintainer>
+</pkgmetadata>
diff --git a/media-gfx/jpegpixi/Manifest b/media-gfx/jpegpixi/Manifest
new file mode 100644
index 000000000000..50189e1fde1b
--- /dev/null
+++ b/media-gfx/jpegpixi/Manifest
@@ -0,0 +1,5 @@
+DIST jpegpixi-1.1.1.tar.gz 155045 SHA256 e8507e07383d7b30b8ea9a7958f307b7a4ef38c80e6e2615460b07afd3407bed SHA512 e77bb351c5e0c92c8476684be29695bf82f2be043b0e6f40acfc3c692180cfeb625ebf180a6ed48d97b9d895ecb12b5ba34a47f6cb6a352af0fe1767e846ef3e WHIRLPOOL 86dde294e9f255d762c7560ef551b92c2ed3a45aec4b91d99391ef1054a6c1954a5509043212270684eb90c8779ee44c7dd9dfc14057495e4de881f89ec8fd02
+EBUILD jpegpixi-1.1.1.ebuild 589 SHA256 7bdf586d2af4311f8dddc9aee3ed4ce991814f63a10042066176785c3ae12616 SHA512 0de87baf656f269c5f9f4ef39910e41754d2f00fa264c4752417dcbfa75c34eb336d73bbc61f740c704c1c1e4f527cb8c10e57af69851df1b4ab660a1125888e WHIRLPOOL 622953c928c943129b3bca2ec6c83721c628dc32f96dfc44b96f66ef03ce972835122e7b11e4d17c3d1fb0cb2733d62af8fae582e8fb32d2d68e082ebdd3fb20
+MISC ChangeLog 2431 SHA256 b5de67125dfc59134bdedc6d2acf4ed5faf6b73188e180f7683cf6e3486865b0 SHA512 82a7bb9a28a6d433f3b9b0b999145cb5bd9a34d033952f139b2b641f52cd1c16f55a4545592215928decee67a0187d812efcba0fb92e81e09f25a8dbf367351a WHIRLPOOL a21b37c5b4b74020cd93305d62d08309cae21fd42f5f48dbbc592a628b5794bd3ce495c4ec71096ecc0860961f0aee6732f388c3aab21862464a0763bae4e5b7
+MISC ChangeLog-2015 2164 SHA256 f1eebbe144e080babaa1bec550874a6caf37ff9c25699a5ab7621f6f4d9d7667 SHA512 769bb9d7665fc510ce9a23c1709796524630f9ef7aff38e8f2b6d7402d61cea3a7480305089935f0f93c553077b41aa6cbf2ccaace2f4f70e26d0449764650a0 WHIRLPOOL 4d5f9d0893352cb9defe1dac560972ea2e1ecd9d0fa460b9abebb8378e4873c7144ce22bc5fb02a94578429afb1c73f27c75b65eaaacb754679b02e5128ee4d3
+MISC metadata.xml 382 SHA256 727798d3806a24cd62b50934f66e2b265b3b21add24d434fdd0c936ed25401c9 SHA512 cfa512c9ce0af9841c853d9ee9d0383414bb8f9067041a397900dec9b17534de43fd09c9ccf64162d5f6c88b86bf49e0eb1b82337c1d06a9bb71819b07d26827 WHIRLPOOL 712632666b3b5c6137b277ac4d1b2eccce2d294bf44ff69088e39f383590e4962b72f04bef65a4cb095afea4b4875edf60b649696fc069fd756ed0820e8f7fb5
diff --git a/media-gfx/jpegpixi/jpegpixi-1.1.1.ebuild b/media-gfx/jpegpixi/jpegpixi-1.1.1.ebuild
new file mode 100644
index 000000000000..e0158313e68a
--- /dev/null
+++ b/media-gfx/jpegpixi/jpegpixi-1.1.1.ebuild
@@ -0,0 +1,21 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=2
+
+DESCRIPTION="almost lossless JPEG pixel interpolator, for correcting digital camera defects"
+HOMEPAGE="http://www.zero-based.org/software/jpegpixi/"
+SRC_URI="http://www.zero-based.org/software/jpegpixi/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ~ppc x86 ~amd64-linux ~x86-linux ~ppc-macos"
+IUSE=""
+
+DEPEND="virtual/jpeg"
+
+src_install() {
+ dobin jpegpixi jpeghotp || die
+ doman man/jpegpixi.1 man/jpeghotp.1
+ dodoc AUTHORS NEWS README README.jpeglib ChangeLog
+}
diff --git a/media-gfx/jpegpixi/metadata.xml b/media-gfx/jpegpixi/metadata.xml
new file mode 100644
index 000000000000..d115e283ad7d
--- /dev/null
+++ b/media-gfx/jpegpixi/metadata.xml
@@ -0,0 +1,12 @@
+<?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>
+ <longdescription>
+ Almost lossless JPEG pixel interpolator, for correcting digital camera
+ defects.
+ </longdescription>
+</pkgmetadata>
diff --git a/media-gfx/jpegtoavi/Manifest b/media-gfx/jpegtoavi/Manifest
new file mode 100644
index 000000000000..91bd150a80d8
--- /dev/null
+++ b/media-gfx/jpegtoavi/Manifest
@@ -0,0 +1,6 @@
+AUX jpegtoavi-1.5-Makefile.patch 873 SHA256 f2f6641c2b8daf97f49a337173c1bc39146e7ebc54231267613ebae499aa651f SHA512 6a33393a6eef430630b58d12f7e8a5b6a4266c8dfa1a0fd18a20660c5f9ed374edde377abda68dbcefb2863ce07e5c72b23ad7db2620f77e450fdd6c9db563ae WHIRLPOOL 861bbf1254edaff36c8e424dd53bdbe01336bf5e6987d46f2a6cd58b17c450cf62cc721310a94161dde6d8eac278b7f69b9460091f541035e6579aa1a40f4e2a
+DIST jpegtoavi-1.5.tar.gz 14882 SHA256 6ddedb9a82d5a4b4b57bac2750a73c59584d38adad98b199e485c6c99328fc93 SHA512 7daac756cb2b863cdaa1101e99705a429e08695adf777cf6398150e5b2fd01c5b4b772b2d3f177f6d67592a1dd5d4fdcecd62563cefa58d06ef2dcbc2aa07231 WHIRLPOOL a162fcd1778864af73ed3371b0d60ab7a2cafda50b50847006b5f9b78d5ff5d600538b6c5da9a8dcb7dfd7c613b28e09615bace4b03808fad99b3d5582db06e8
+EBUILD jpegtoavi-1.5.ebuild 565 SHA256 918a590344d094829a6b4c8d2c4fd79f135b73eb8bac4e01f4936ccb62097f01 SHA512 95b7db6169f946751d82e56433f0e26caf28770757d28e56b2b5c69dfb4e6e57fff6c72a8f1dd3b97cb0be2c9be58cc537320bd9561dc484f90b42ecdff4c87a WHIRLPOOL 4c7c7e5eb5ff0e1efbc0251f83aef3c7f42103e11761af4007a0127eba32aabd8fb085480ed6198cead0b34f5f5dc7edbb547a8e2cb07aeb1ba7ebbedd8d657c
+MISC ChangeLog 2579 SHA256 905c5e4db9387bde34e46156f98ca5be387ef78c4c21b48bab15adb7437b1765 SHA512 171ec7e27ac047473ed30e8feb7bb86600c5e5e4b7c4b94ec6288675bb3740f75ed6541ef543479b10fdc091f07069254ef3f6d1a11e97b982a99cb47c04f70a WHIRLPOOL 1b6168d129b741137ebeb7be9385d913354d676ec84519d66ff77b38042691c48043d83c93293da7da98fa2a7feecdc3a168778d52bc32e88cacbe2aacf1e04e
+MISC ChangeLog-2015 512 SHA256 9eb02ef4410e8a6959faff259e41f6fc9fbd3d3ffa5e4e889156023fb1f821f7 SHA512 6068e3f284faeb2e683dbc79bc5e29da2c1d08f1012d379890f6b8df0d0e81fe0b8614bddf1a5e3c336905b14b97237d98b1ce344a3eef62e1d70904c2f0ccc1 WHIRLPOOL 1f56e4c40a086c9cecf9230c1ba855ad2f8549d1e4d4002a4015226a4158661776cc6384231de9137939294540b7b8741d234ab4f9701b93ca2e117fe6999a37
+MISC metadata.xml 436 SHA256 ab955a50edc2c057132f18c89ea0b940278d28d4b8b9f7f6a1d8c258c039acf0 SHA512 6e34f1a383d6921a5114ea1d850b428ac50f748a7fe6847978409590346198dad15e998c1bc5f97af5550a90b9f51319133fab2788400c7df9d3cb4cbefd4297 WHIRLPOOL dfff9df3bdbfc72ee6a37ed1814ddabcc1bd57055d9cc7add4f6063ad1c760a455bfbec47f4b33a0eba28e353179021706f078d9c435e97581bf3559a2945985
diff --git a/media-gfx/jpegtoavi/files/jpegtoavi-1.5-Makefile.patch b/media-gfx/jpegtoavi/files/jpegtoavi-1.5-Makefile.patch
new file mode 100644
index 000000000000..9f562f293b31
--- /dev/null
+++ b/media-gfx/jpegtoavi/files/jpegtoavi-1.5-Makefile.patch
@@ -0,0 +1,31 @@
+--- Makefile.orig 2010-03-02 23:06:07.000000000 +0200
++++ Makefile 2010-03-02 23:11:59.000000000 +0200
+@@ -1,4 +1,4 @@
+-CC=gcc
++CC ?= gcc
+ INCLUDE=
+ LIBS=-L.
+ SOURCES=jpegtoavi.c avifmt.h byteswap.h llist.h llist.c
+@@ -10,7 +10,8 @@
+ PACKAGE_VERSION_MIN=5
+ PACKAGE_VERSION=$(PACKAGE_VERSION_MAJ).$(PACKAGE_VERSION_MIN)
+ VERBOSE=0
+-CCFLAGS=$(INCLUDE) -O3 -Wall -ansi -g -DLINUX -D__UNIX__ \
++CFLAGS += -Wall -ansi
++CPPFLAGS += $(INCLUDE) -DLINUX -D__UNIX__ \
+ -DVERSION_MIN=$(PACKAGE_VERSION_MIN) \
+ -DVERSION_MAJ=$(PACKAGE_VERSION_MAJ) \
+ -DVERBOSE=$(VERBOSE)
+@@ -27,10 +28,10 @@
+ all: jpegtoavi
+
+ %.o: %.c
+- $(CC) $(CCFLAGS) -c $< -o $@
++ $(CC) $(CFLAGS) $(CPPFLAGS) -c $< -o $@
+
+ jpegtoavi: jpegtoavi.o llist.o
+- $(CC) $(CCFLAGS) jpegtoavi.o llist.o $(LIBS) -o $@
++ $(CC) $(LDFLAGS) jpegtoavi.o llist.o $(LIBS) -o $@
+
+ distdir: $(DISTFILES)
+ $(am__remove_distdir)
diff --git a/media-gfx/jpegtoavi/jpegtoavi-1.5.ebuild b/media-gfx/jpegtoavi/jpegtoavi-1.5.ebuild
new file mode 100644
index 000000000000..eb054f06923d
--- /dev/null
+++ b/media-gfx/jpegtoavi/jpegtoavi-1.5.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=2
+inherit eutils toolchain-funcs
+
+DESCRIPTION="JPEG to AVI/MJPEG animation command-line conversion tool"
+HOMEPAGE="https://sourceforge.net/projects/jpegtoavi/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-Makefile.patch
+}
+
+src_compile() {
+ tc-export CC
+ emake || die
+}
+
+src_install() {
+ dobin ${PN} || die
+ doman ${PN}.1
+ dodoc CHANGELOG README
+}
diff --git a/media-gfx/jpegtoavi/metadata.xml b/media-gfx/jpegtoavi/metadata.xml
new file mode 100644
index 000000000000..d70cd5970240
--- /dev/null
+++ b/media-gfx/jpegtoavi/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>media-video@gentoo.org</email>
+ </maintainer>
+ <maintainer type="project">
+ <email>graphics@gentoo.org</email>
+ <name>Gentoo Graphics Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">jpegtoavi</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/media-gfx/k3d/Manifest b/media-gfx/k3d/Manifest
new file mode 100644
index 000000000000..1affe3455e3a
--- /dev/null
+++ b/media-gfx/k3d/Manifest
@@ -0,0 +1,6 @@
+AUX k3d-0.8.0.5-multilib-strict.patch 833 SHA256 68c09ec4ee1cbac11befc1fa698d3e2a87c60fb7df85f9c1a0ba70925c9cf34e SHA512 8fc3539845d6da15a521541b684cf8d8fe3e44bb31772ef3dab5c6f3d24fbd117b812081f96e05f0bbbe55ae173fb47a1ad31781d38ac69d1e59db7b4b890a61 WHIRLPOOL eed9d07102303282db8ed34b58a6ad80ec9462176b68b133cb475214df2254bcaf3733d0f212d5039530d11df47e2d27725a7fb902f1a504546750ce70f20b1c
+DIST k3d-0.8.0.5.tar.gz 9992671 SHA256 d238d55211695a79b2449b19103068add1900f55f7a2e13765a2dc712e5eeda3 SHA512 229ceb195a07fcf3c07957f5f66b01bbdc03c54d5aa0b2c24be7511864013fb0b58b1e45c4db995c77aa5cc2318b61aed3412c71b16c2c042799863da8912065 WHIRLPOOL d266b4279e4bc7f4beb791451f8f626f229875fc4d6a987f7276e2ecb22e4a1b6b7d31c8e7fa27623d881f03032c76f0a9198ae28c79397aa2c22b261b83ca5b
+EBUILD k3d-0.8.0.5.ebuild 2670 SHA256 14ef61974f7d8665686e36ab035ec0ef4b49b1bfdb7ad7ea09df22b978ad3def SHA512 01ae85275792913c08b3903fa5da8ffcdbc6b38c05dd1862a7258c23c4877fd6c454794ae757aa97a2b0e35b552d2641c82347d32de7ee656a8e5f1a950dddba WHIRLPOOL 19680a6c1c06fce1d71f6fad2400ee34571bcddb7fb44b41def4f7e1fc5fa0fd941b49605c7ce0a8111e5a38cd67ef5f6fc7d7a894c52bfea7ddf8fd190defc3
+MISC ChangeLog 3657 SHA256 0d7d0e1a96be3e514fe48ef06b7152cc3a7fe870e105b14c33d5a61b051f8798 SHA512 a260db58e2d58bbdba5917d5ef4bef2b5c97fc12aa8352a92d210e7aa413c67394e5104c75e804e3a9819c450c2778baa930466b123c87e39c31d5526ff16a39 WHIRLPOOL 92a7f70c9db914b79003195c540fe96458e6b5a0cf39407c14fa2a9c9c4bf1246866d32620b02a7f677863c5f65369bab137b0fefbb32fc97447de5fd3659478
+MISC ChangeLog-2015 8524 SHA256 30efb011ce7583ba1589a12f596dfe0c0dde80a00ea07cbcf3011848d22d6b15 SHA512 57d302c14c128cb8312a29a9a6291e6654b18c7f929381cfab27da8743c83c86306c891325ae752546d81b2d3947134a3af4e86154b54a7f22ab4aff81ed8cef WHIRLPOOL 518cff9829d28e77fea0bffff1c05ff981789b7c9bafb3cfe4281e883a066c5479510a125d6f7860aeccde68bfe36637cee8f586452039468a255b95464ac616
+MISC metadata.xml 642 SHA256 cc1665833053dfae2fdedd5f47e1439a32c7a64151299620d70a9f84a4de351f SHA512 8f5c1eb865f13ec142bc36d81391df1ca284ea5086db0fde6798909c538943b2ff5283cda541ffb957ae775070402d40b16f7b42dd5a208faf31efa7a84724cf WHIRLPOOL fd5aad1e7a6bd27ab5f7b24ad2ba25098564bd024adb86fc3b5a55da1b4cd6de8bf627c15ea6c31cffec938e346c5d8ea2923f80fdd97703c89f70fe43a1c93c
diff --git a/media-gfx/k3d/files/k3d-0.8.0.5-multilib-strict.patch b/media-gfx/k3d/files/k3d-0.8.0.5-multilib-strict.patch
new file mode 100644
index 000000000000..24f84d621873
--- /dev/null
+++ b/media-gfx/k3d/files/k3d-0.8.0.5-multilib-strict.patch
@@ -0,0 +1,25 @@
+From 5d20d8daf3fb753785c78d43d86813348d456868 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Ralf=20Cors=C3=A9pius?= <corsepiu@fedoraproject.org>
+Date: Tue, 27 Jan 2015 10:54:55 +0100
+Subject: [PATCH 1/4] k3d-0.8.0.2-cmake.diff
+
+---
+ CMakeLists.txt | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index ae8a60d..9f22dae 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -362,7 +362,7 @@ ENDIF()
+ # Setup output directories ...
+ SET(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${k3d_BINARY_DIR}/bin)
+
+-SET(K3D_LIBDIR lib) # Allows us to handle 64-bit libs if/when it becomes necessary.
++SET(K3D_LIBDIR lib${LIB_SUFFIX}) # Allows us to handle 64-bit libs if/when it becomes necessary.
+
+ IF(APPLE AND K3D_ENABLE_OSX_BUNDLE)
+ SET(K3D_BUNDLE_DIRECTORY ${k3d_BINARY_DIR}/K-3D.app/Contents)
+--
+2.5.0
+
diff --git a/media-gfx/k3d/k3d-0.8.0.5.ebuild b/media-gfx/k3d/k3d-0.8.0.5.ebuild
new file mode 100644
index 000000000000..0382e5044e13
--- /dev/null
+++ b/media-gfx/k3d/k3d-0.8.0.5.ebuild
@@ -0,0 +1,97 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils cmake-utils flag-o-matic
+
+DESCRIPTION="A free 3D modeling, animation, and rendering system"
+HOMEPAGE="http://www.k-3d.org/"
+SRC_URI="https://github.com/K-3D/${PN}/archive/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE="3ds cuda gnome gts imagemagick jpeg nls openexr png python tiff truetype" #TODO cgal tbb
+
+RDEPEND="
+ dev-libs/boost[python]
+ >=dev-cpp/glibmm-2.6:2
+ >=dev-cpp/gtkmm-2.6:2.4
+ dev-libs/expat
+ >=dev-libs/libsigc++-2.2:2
+ media-libs/mesa
+ virtual/glu
+ virtual/opengl
+ >=x11-libs/gtkglext-1.0.6-r3
+ x11-libs/libICE
+ x11-libs/libSM
+ x11-libs/libXmu
+ x11-libs/libXt
+ 3ds? ( media-libs/lib3ds )
+ cuda? ( dev-util/nvidia-cuda-toolkit )
+ gnome? ( gnome-base/gnome-vfs:2 )
+ gts? ( sci-libs/gts )
+ imagemagick? ( media-gfx/imagemagick )
+ jpeg? ( virtual/jpeg:0 )
+ openexr? ( media-libs/openexr )
+ png? ( >=media-libs/libpng-1.2.43-r2:= )
+ python? ( >=dev-lang/python-2.3 dev-python/cgkit )
+ tiff? ( media-libs/tiff:0 )
+ truetype? ( >=media-libs/freetype-2 )"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ nls? ( sys-devel/gettext )"
+
+S="${WORKDIR}/${PN}-${PN}-${PV}"
+
+# k3d_use_enable()
+#
+# $1: use flag. ON|OFF is determined by this.
+# $2: part of cmake variable name which appended to the base variable name
+# that is -DK3D_BUILD_$2
+#
+# e.g.) k3d_use_enable gnome GNOME_MODULE #=> -DK3D_BUILD_GNOME_MODULE=ON
+#
+k3d_use_enable() {
+ echo "-DK3D_BUILD_$2=$(use $1 && echo ON || echo OFF)"
+}
+
+k3d_use_module() {
+ echo "-DK3D_BUILD_$2_MODULE=$(use $1 && echo ON || echo OFF)"
+}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-0.8.0.5-multilib-strict.patch
+ [[ -f CMakeCache.txt ]] && rm CMakeCache.txt
+}
+
+src_configure() {
+ if [[ $(gcc-major-version) -lt 4 ]]; then
+ append-cxxflags -fno-stack-protector
+ fi
+
+ mycmakeargs="
+ -DK3D_BUILD_SVG_IO_MODULE=ON
+ -DK3D_BUILD_CGAL_MODULE=OFF
+ -DK3D_BUILD_GOOGLE_PERFTOOLS_MODULE=OFF
+ $(k3d_use_module 3ds 3DS_IO)
+ $(k3d_use_module cuda CUDA)
+ $(k3d_use_module gnome GNOME)
+ $(k3d_use_module gts GTS)
+ $(k3d_use_module gts GTS_IO)
+ $(k3d_use_module imagemagick IMAGEMAGICK_IO)
+ $(k3d_use_module jpeg JPEG_IO)
+ $(k3d_use_enable nls NLS)
+ $(k3d_use_module openexr OPENEXR_IO)
+ $(k3d_use_module png PNG_IO)
+ -DK3D_ENABLE_PYTHON=$(use python && echo ON || echo OFF)
+ $(k3d_use_module python PYTHON)
+ $(k3d_use_module python PYUI)
+ $(k3d_use_module python NGUI_PYTHON_SHELL)
+ $(k3d_use_module python NGUI_PYTHON_SHELL_MODULE)
+ $(k3d_use_enable python GUIDE)
+ $(k3d_use_module tiff TIFF_IO)
+ $(k3d_use_module truetype FREETYPE2)
+ "
+ cmake-utils_src_configure
+}
diff --git a/media-gfx/k3d/metadata.xml b/media-gfx/k3d/metadata.xml
new file mode 100644
index 000000000000..482c887906bb
--- /dev/null
+++ b/media-gfx/k3d/metadata.xml
@@ -0,0 +1,19 @@
+<?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>
+ <use>
+ <flag name="3ds">Enable support for 3D Studio models</flag>
+ <flag name="cuda">Use nvidia cuda toolkit for speeding up
+ computations</flag>
+ <flag name="gts">Add Support for the GNU Triangulated Surface Library
+ <pkg>sci-libs/gts</pkg></flag>
+ </use>
+ <upstream>
+ <remote-id type="sourceforge">k3d</remote-id>
+ <remote-id type="github">K-3D/k3d</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/media-gfx/kcoloredit/Manifest b/media-gfx/kcoloredit/Manifest
new file mode 100644
index 000000000000..7b484216d0d9
--- /dev/null
+++ b/media-gfx/kcoloredit/Manifest
@@ -0,0 +1,6 @@
+AUX kcoloredit-2.0.0-underlinking.patch 554 SHA256 bc92a15ca63dbfc2ef1289df4aa653c2c5532adb8bb3b6fe56d1036a94339d90 SHA512 6a3640bd91e659f6971a651ffc5872ce7e7d8949f0e68a52e8ae8e65888cc2f322882fe7dc5305d727919855c3a73ec059e28e9ad536f53b88064ba79510143d WHIRLPOOL be0b4a21fa9897a63ae2804fe81bab7ed1944c075f6238519b075e61bdb4b0a555a9e33f18ef660e93e0a29f6a89febe0d897266e871b81369ae446d4b412868
+DIST kcoloredit-2.0.0-kde4.4.0.tar.bz2 156462 SHA256 37712000c5c6990deb3a43e55b463704dc736a06450df9dafa1a030afcf79e6e SHA512 93a418e475bb8f494a90c409c60573d3d7936921b7dac5b1dd669d0934123b234df013c0b1a594f211c33200b62d3b8edef80a826f6f75da110ec8a1af99a140 WHIRLPOOL b812867b5c02eae2ef4fbbd2eb29f1dd83ae08c135faf96998e56b56192b632d2dc8992f5ced922d93ba0ad36e8d21b4eeec6239433f96fb69453fbb1777d0a8
+EBUILD kcoloredit-2.0.0-r1.ebuild 772 SHA256 43b45d7caf80460b15b911ac2e8c7f1500e9f19b6cc77bc7bbe7a26d90cc3da9 SHA512 d46d7068072057bbfeeffcc696c694b56b6323c45f0cd3dd1709d189ff5ab28654a16f230f9cbfeea0ac8403df5d0cd3f7f216fa64cef2cae8459f816e65a18a WHIRLPOOL 29cace3c739b820821a701fddc4698d4da95832f1e38aafcf825c7773b6c6e37e2a27e96bf0ffc92e38d5fa021e0b8ad69aebf7982c66ef8b59b588d5d164d67
+MISC ChangeLog 2665 SHA256 1fc336ebb0826561d0240594d6438edbe4f0dd34a1e8b79c56632bfcdff0621c SHA512 b4e6242cf2300a574356a98475c93625ce98fba2059f7108d87dd0bc460eae8d6ed1c406cbd10e3303bf9563889dd7a7c4b3b9f828bcea9375e420790bd26acf WHIRLPOOL 39a6f7ca0a260e3f8347a88ac281a9734f7fc322e07507ae3b12e1e80ed50be615b4001713b1f22ec7878eb32518d67ef3439a8c7066346112f3d25b5f122524
+MISC ChangeLog-2015 1319 SHA256 72a024cd8763a418666207dedfc03e6466ff2b6cca4b4241c585896b09670fee SHA512 d99a9af7d9a4e854bb601495adb3f7b1659f6cf67267fa3e3c598c8c9aef3d7927901f22a2121662043538bc4d3a9004dfba5c34fda65cdd7954ca1a938f3d72 WHIRLPOOL 63b5f9f0056a270bce6800e387645edbb12ee4a967eb22cd6d9852390b97d2abaf1daff0c9526498f63474f087dae26827fa71a0bd4cb3a1b9314b01caeff641
+MISC metadata.xml 245 SHA256 ae3610b0005f668b7174e8c49c0170e7642e895c8e13e7e2fedcfefee6940e1a SHA512 90bcfe500baf163912aaffc9958c9724c4a97cfca294cae6c2eea938f4ca7668c84b132b6dce55767efa47a28b9e87bb75e79634b59079ab8ef3eff3ea95968e WHIRLPOOL 7abb1ad699d5aa3a0a0ebb0e8704df297ad9a662698cb59d1b48700aeb787e6208540e1e84f583a46bdd9975e27a75f04f7463585790b4e7865d0edfdb1e13ae
diff --git a/media-gfx/kcoloredit/files/kcoloredit-2.0.0-underlinking.patch b/media-gfx/kcoloredit/files/kcoloredit-2.0.0-underlinking.patch
new file mode 100644
index 000000000000..588b673c5622
--- /dev/null
+++ b/media-gfx/kcoloredit/files/kcoloredit-2.0.0-underlinking.patch
@@ -0,0 +1,11 @@
+diff -ruN kcoloredit-2.0.0-kde4.4.0.orig/src/CMakeLists.txt kcoloredit-2.0.0-kde4.4.0/src/CMakeLists.txt
+--- kcoloredit-2.0.0-kde4.4.0.orig/src/CMakeLists.txt 2010-02-11 21:40:05.000000000 +0100
++++ kcoloredit-2.0.0-kde4.4.0/src/CMakeLists.txt 2011-08-11 22:25:09.747295562 +0200
+@@ -56,6 +56,6 @@
+
+ kde4_add_executable ( kcoloredit ${kcoloredit_SRCS} )
+
+-target_link_libraries ( kcoloredit ${KDE4_KFILE_LIBS} )
++target_link_libraries ( kcoloredit ${KDE4_KFILE_LIBS} ${X11_LIBRARIES} )
+
+ install (TARGETS kcoloredit ${INSTALL_TARGETS_DEFAULT_ARGS} )
diff --git a/media-gfx/kcoloredit/kcoloredit-2.0.0-r1.ebuild b/media-gfx/kcoloredit/kcoloredit-2.0.0-r1.ebuild
new file mode 100644
index 000000000000..e18480d2ce24
--- /dev/null
+++ b/media-gfx/kcoloredit/kcoloredit-2.0.0-r1.ebuild
@@ -0,0 +1,27 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+KDE_LINGUAS="af ar be bg br ca ca@valencia cs cy da de el en_GB eo es et eu fa
+fi fr ga gl he hi hne hr hu is it ja km ku lt lv mai mk ms nb nds ne nl nn oc
+pa pl pt pt_BR ro ru se sk sl sv ta tg th tr uk vi xh zh_CN zh_HK zh_TW"
+KDE_DOC_DIRS="doc doc-translations/%lingua_${PN}"
+KDE_HANDBOOK="optional"
+inherit kde4-base
+
+KDE_VERSION=4.4.0
+MY_P=${P}-kde${KDE_VERSION}
+
+DESCRIPTION="Tool for editing color palettes"
+HOMEPAGE="https://www.kde.org/"
+SRC_URI="mirror://kde/stable/${KDE_VERSION}/src/extragear/${MY_P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="4"
+KEYWORDS="amd64 x86"
+IUSE="debug"
+
+S=${WORKDIR}/${MY_P}
+
+PATCHES=( "${FILESDIR}/${P}-underlinking.patch" )
diff --git a/media-gfx/kcoloredit/metadata.xml b/media-gfx/kcoloredit/metadata.xml
new file mode 100644
index 000000000000..0cf59224b009
--- /dev/null
+++ b/media-gfx/kcoloredit/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 type="project">
+ <email>kde@gentoo.org</email>
+ <name>Gentoo KDE Project</name>
+</maintainer>
+</pkgmetadata>
diff --git a/media-gfx/kfax/Manifest b/media-gfx/kfax/Manifest
new file mode 100644
index 000000000000..e5ee01dd9f0e
--- /dev/null
+++ b/media-gfx/kfax/Manifest
@@ -0,0 +1,7 @@
+AUX kfax-3.3.6-kde45.patch 590 SHA256 9bb93095b05d87bb44cdf51792ed6ed6bf32c948e1d620263220086019ce2e32 SHA512 ed729a09c8bde5807f216782fd2ae0127ea9615ed65e225236bb81ffa33ec83c71dba5af30caac44a4a9401767bae30773db3724bdfa1aeba7ea4909b4331c22 WHIRLPOOL 97968e954808216da7e915e20c6d241e88a2a23ad9ff7b8c084b2241cb1716fdf7d647f362494a4d23e8e319b110b98cb7dd60ab74105e27736e45162a0314e1
+AUX kfax-3.3.6-underlinking.patch 525 SHA256 e2d1a22ae9c3b017671d15b0a7f976a1f98ec6ba6876cef0b94e9dfd8067a497 SHA512 0aed5084102b3ff03b384b67219f748c5de20ff23db257fad51180e7eaf1d0596587ff6523f94915aa10907aa84a781acdea4aeb0f0d3d576bf51aa719e900d0 WHIRLPOOL e65962cb180bdd79d4630493225ad731113b46d4d5e815b2e57e79575ec7c726d92adfc15fb5fdf0e6532faa714a50448aa6fa8847db6e2a4228f545171445fa
+DIST kfax-3.3.6-kde4.4.0.tar.bz2 311468 SHA256 6897b25f72a49c9bc0f99bf03fced5023c6d76e8746b23fd7ddf73b8a16c6d1d SHA512 a4e0cf2696878a74f190e3cf040c76c3f7c07c296b8aa4f5d80d52275e9af239e01d90b9d7965b3bbe081f81ece661d1339183ca1f6e2cb326da7ed46ee4a0f1 WHIRLPOOL 5f97ccfa73cd3871aa6a954292155ba06d6dbd66bbd579f13d880a5816522a6f9e9a4e81c785cc1dc6c1db436a04396767584e66240ea396b5051a75bb648728
+EBUILD kfax-3.3.6-r1.ebuild 897 SHA256 4aa62f8f1c2015996a6dff03dd1caea86f8716c0608d1fd6d494ec552f9f2b3d SHA512 94f4343a56e602db345a234a900e0d26127307320515e69e65dbc56f49dad2c3c54a6e9ebfbadf1c4ae6552916231b9f47734e6bc988cc84b2100d891f925157 WHIRLPOOL c94332eb1fdad876831501ede8fe7437591895e8bb002804848ab26a37c27e90f95c2bd08fea9deb990333c1b087a1cdd418fba8be2911eda9a936f9b13a9d5d
+MISC ChangeLog 2666 SHA256 d6b52125b1d55e0873a2bade21630566ccda8e07b7d82028ecd38f8b93e52344 SHA512 48d7ed70d9a915acf372e6848dc92d711e8b8acfafffb25f03bccda3f89836526dae6dc895b138056dc47abddcba6c6a6575812b1048b82e3b9a336946114b45 WHIRLPOOL 8c8255d6165599edfedc067fb488c3f62ce3a2446de354d77b116ee7e70a33a2c86f159c3fd604f2c986aaa35c45bdd2c1bb5085b30915890642da7d0fba5b7c
+MISC ChangeLog-2015 1065 SHA256 c4fac3da946e49154b33318349ac945786109a9a5f6f5b2c3c88a7c0f1bdadc9 SHA512 2b176a2a39279fd48bd93fe98ca297a258fc814760764792f72dcba5cbf1fc5ca3b881dda537704b921c28217349b3fc3ab63adcb17e27ef5e6bdb3cd620c457 WHIRLPOOL 95f87aa36d880f53ee389dc7634071ee9872cb4047ff2949aa419c24cdd2cda8e6172a865f161e4a89cb1823d14fc2546122fff76fb2cdd560408193ae048d3e
+MISC metadata.xml 245 SHA256 ae3610b0005f668b7174e8c49c0170e7642e895c8e13e7e2fedcfefee6940e1a SHA512 90bcfe500baf163912aaffc9958c9724c4a97cfca294cae6c2eea938f4ca7668c84b132b6dce55767efa47a28b9e87bb75e79634b59079ab8ef3eff3ea95968e WHIRLPOOL 7abb1ad699d5aa3a0a0ebb0e8704df297ad9a662698cb59d1b48700aeb787e6208540e1e84f583a46bdd9975e27a75f04f7463585790b4e7865d0edfdb1e13ae
diff --git a/media-gfx/kfax/files/kfax-3.3.6-kde45.patch b/media-gfx/kfax/files/kfax-3.3.6-kde45.patch
new file mode 100644
index 000000000000..60bedf093eeb
--- /dev/null
+++ b/media-gfx/kfax/files/kfax-3.3.6-kde45.patch
@@ -0,0 +1,12 @@
+diff -ru kfax-3.3.6-kde4.4.0.orig/kfax.cpp kfax-3.3.6-kde4.4.0/kfax.cpp
+--- kfax-3.3.6-kde4.4.0.orig/kfax.cpp 2010-02-11 21:52:12.000000000 +0100
++++ kfax-3.3.6-kde4.4.0/kfax.cpp 2010-11-14 00:13:21.386377691 +0100
+@@ -829,7 +829,7 @@
+ statusbar->showMessage( i18n( "Saving..." ) );
+
+ KUrl source(thispage->pathname);
+- KIO::FileCopyJob *job = KIO::file_copy(source, dest,KIO::Overwrite | KIO::HideProgressInfo);
++ KIO::FileCopyJob *job = KIO::file_copy(source, dest, -1, KIO::Overwrite | KIO::HideProgressInfo);
+ bool ok = job->exec();
+ statusbar->clearMessage();
+
diff --git a/media-gfx/kfax/files/kfax-3.3.6-underlinking.patch b/media-gfx/kfax/files/kfax-3.3.6-underlinking.patch
new file mode 100644
index 000000000000..701308951b63
--- /dev/null
+++ b/media-gfx/kfax/files/kfax-3.3.6-underlinking.patch
@@ -0,0 +1,12 @@
+diff -ruN kfax-3.3.6-kde4.4.0.orig/CMakeLists.txt kfax-3.3.6-kde4.4.0/CMakeLists.txt
+--- kfax-3.3.6-kde4.4.0.orig/CMakeLists.txt 2010-02-11 21:59:47.000000000 +0100
++++ kfax-3.3.6-kde4.4.0/CMakeLists.txt 2011-08-11 21:33:15.262295828 +0200
+@@ -12,7 +12,7 @@
+
+ kde4_add_executable(kfax ${kfax_SRCS})
+
+-target_link_libraries(kfax ${KDE4_KIO_LIBS} ${QT_QT3SUPPORT_LIBRARY} )
++target_link_libraries(kfax ${KDE4_KIO_LIBS} ${QT_QT3SUPPORT_LIBRARY} ${X11_LIBRARIES})
+
+ install(TARGETS kfax ${INSTALL_TARGETS_DEFAULT_ARGS} )
+
diff --git a/media-gfx/kfax/kfax-3.3.6-r1.ebuild b/media-gfx/kfax/kfax-3.3.6-r1.ebuild
new file mode 100644
index 000000000000..7e08e6f702d4
--- /dev/null
+++ b/media-gfx/kfax/kfax-3.3.6-r1.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+KDE_LINGUAS="af ar be bg br ca ca@valencia cs cy da de el en_GB eo es et eu fa
+fi fr ga gl he hi hne hr hu is it ja km ko lt lv mai mk ms nb nds ne nl nn oc
+pa pl pt pt_BR ro ru se sk sl sv ta tg th tr uk vi wa xh zh_CN zh_HK zh_TW"
+KDE_DOC_DIRS="doc-translations/%lingua_${PN}"
+KDE_HANDBOOK="optional"
+QT3SUPPORT_REQUIRED="true"
+inherit kde4-base
+
+KDE_VERSION=4.4.0
+MY_P=${P}-kde${KDE_VERSION}
+
+DESCRIPTION="A fax file viewer"
+HOMEPAGE="https://www.kde.org/"
+SRC_URI="mirror://kde/stable/${KDE_VERSION}/src/extragear/${MY_P}.tar.bz2"
+
+LICENSE="GPL-2 LGPL-2.1"
+SLOT="4"
+KEYWORDS="~amd64 ~x86"
+IUSE="debug"
+
+RDEPEND="
+ x11-libs/libX11
+"
+DEPEND="${RDEPEND}
+ x11-proto/xproto
+"
+
+S=${WORKDIR}/${MY_P}
+
+PATCHES=(
+ "${FILESDIR}/${P}-kde45.patch"
+ "${FILESDIR}/${P}-underlinking.patch"
+)
diff --git a/media-gfx/kfax/metadata.xml b/media-gfx/kfax/metadata.xml
new file mode 100644
index 000000000000..0cf59224b009
--- /dev/null
+++ b/media-gfx/kfax/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 type="project">
+ <email>kde@gentoo.org</email>
+ <name>Gentoo KDE Project</name>
+</maintainer>
+</pkgmetadata>
diff --git a/media-gfx/kgraphviewer/Manifest b/media-gfx/kgraphviewer/Manifest
new file mode 100644
index 000000000000..c2418e3a62ac
--- /dev/null
+++ b/media-gfx/kgraphviewer/Manifest
@@ -0,0 +1,5 @@
+DIST kgraphviewer-2.4.2.tar.xz 1565692 SHA256 49438b4e6cca69d2e658de50059f045ede42cfe78ee97cece35959e29ffb85c9 SHA512 2a25f8493881ffa057602e7a141ea610b8db7c43da2db007aea118e2ec7b1f069fbfa6ca80b0e1048c9b20535764679c8d77027337c47a4c18e5240c3058d935 WHIRLPOOL 9cdf603f7c2f8611c4f65f5a885ff40d937fa5f87c52e9a8837da455c6d4b6305beef124f1f0017866d4d353cb79232edf9f038a36a7abc0d9aad23e2456c271
+EBUILD kgraphviewer-2.4.2.ebuild 936 SHA256 e5105333ca403ca4e34e5f601ded8a3928193e648801de2e2980111a21a0ad32 SHA512 e2b5d7a76bba9d673e6227e94a06bf9da3cfa9b427c482e0d41cb5c600d10b4c9e3019a0cbc7faa7225aa57de251935733092264611fe8990a4d66b491c776bb WHIRLPOOL f962f879ad8a3068ee236a65f36d93771a0c5059c69c5b8343dfb5e531a5bd3735bd20a392c4f68f049bb4c1c04a31097c82d532c96e54be911cd5b7abe5725a
+MISC ChangeLog 3259 SHA256 81cebab922e1a8827dd4ce3a7ffd42d6d75e2417fe75f1f998ad9aa231c4f7b4 SHA512 e0316029d1a172f76afa2abde2407e012881d7eec89a89db408bbfd854a90e3b22aba95d91cf05be5455d7d7649941871d1c99713482c4a560bc0c5e01470ad5 WHIRLPOOL e17eba69edf0ef9204bfa6eb9597ae57397c020767913abc7b57725d6c2cc3a4db57d0fed7a5912ac7658cab4b6bdcc295d98fd9e85cf4295f253b4ce3c62264
+MISC ChangeLog-2015 1969 SHA256 02fc6043cc5b28ccd24fae8bebfecd797eea90341ca5573b4b3d1ea7a8a54616 SHA512 5eb402decb621e0ab3fa2c3b61b4b1f607724ab6c574291b3675006c3291b0565505bc288618146bf752389bee033020e64153db6e6679f0580a7d46cc0cdb3b WHIRLPOOL 736737d803c9c8f26bf7c2a550099b0a7be344dbd89e75ff3301ed2a8a7bc5bd4faeeef1eacc21c38292dd7c962c09884a262b646d5df8d18832d1e521a47845
+MISC metadata.xml 249 SHA256 584f1dcf51866dc24a9abf7a89bfba0fad11dde81ae1c1b715da41770d233c99 SHA512 76a5a340b13f0053ca3c5e94ed24380ea8d29b45ac8655419e22eaadb1e4a827c04d2e7e36b65145c4964e6526f656618fc6ac144e277ef53cb7373e6239e3c3 WHIRLPOOL 200c07a8bf7c55b11b7936d5cd30e991a511684913334e72f59def66c0ced5fed0b4a8754e2d98bffbab631cb90d4e17fcccc59d5dcc5a8e988f69e47c85518c
diff --git a/media-gfx/kgraphviewer/kgraphviewer-2.4.2.ebuild b/media-gfx/kgraphviewer/kgraphviewer-2.4.2.ebuild
new file mode 100644
index 000000000000..0a59fe5f203c
--- /dev/null
+++ b/media-gfx/kgraphviewer/kgraphviewer-2.4.2.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+KDE_HANDBOOK="forceoptional"
+inherit kde5
+
+DESCRIPTION="Graphviz dot graph file viewer"
+HOMEPAGE="https://www.kde.org/applications/graphics/kgraphviewer/"
+[[ ${PV} != *9999* ]] && SRC_URI="mirror://kde/stable/${PN}/${PV}/${P}.tar.xz"
+
+LICENSE="GPL-2 FDL-1.2"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+COMMON_DEPEND="
+ $(add_frameworks_dep kconfig)
+ $(add_frameworks_dep kconfigwidgets)
+ $(add_frameworks_dep kcoreaddons)
+ $(add_frameworks_dep ki18n)
+ $(add_frameworks_dep kiconthemes)
+ $(add_frameworks_dep kparts)
+ $(add_frameworks_dep kwidgetsaddons)
+ $(add_frameworks_dep kxmlgui)
+ $(add_qt_dep qtdbus)
+ $(add_qt_dep qtgui)
+ $(add_qt_dep qtprintsupport)
+ $(add_qt_dep qtsvg)
+ $(add_qt_dep qtwidgets)
+ >=media-gfx/graphviz-2.30
+"
+DEPEND="${COMMON_DEPEND}
+ dev-libs/boost
+"
+RDEPEND="${COMMON_DEPEND}
+ !media-gfx/kgraphviewer:4
+"
diff --git a/media-gfx/kgraphviewer/metadata.xml b/media-gfx/kgraphviewer/metadata.xml
new file mode 100644
index 000000000000..2fdbf33d963d
--- /dev/null
+++ b/media-gfx/kgraphviewer/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 type="project">
+ <email>kde@gentoo.org</email>
+ <name>Gentoo KDE Project</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/media-gfx/kphotoalbum/Manifest b/media-gfx/kphotoalbum/Manifest
new file mode 100644
index 000000000000..dafef5c3a2a8
--- /dev/null
+++ b/media-gfx/kphotoalbum/Manifest
@@ -0,0 +1,5 @@
+DIST kphotoalbum-5.2.tar.xz 9549504 SHA256 9ad02080b21787d5824d0c4bb49be2a00822098adca7937e9c7497440d3b0b89 SHA512 a6a82966fadc66167d0e3877c10f46e5791b301eea3114883d879537eba472d418206da8cd0f7bd923f156d0a5c2f0e66bb2c21e39fef8fdf01841556c056548 WHIRLPOOL 0747045ef07eb9afb540ea6978db15b783d4db21ba4a9c63d9a7b5e0a823aafe71bc2bcec9d7d6831df188a297083ed2a85c52c71d555f8ff8f2e144cca194a9
+EBUILD kphotoalbum-5.2.ebuild 1677 SHA256 ffccc44c2283f4db86b2dbcfd7eaede7bb55a29ffce1712c8683064de40a313b SHA512 76ed868e2bc8d20e97bc8313c030ff73bba7783ef88fe97026988ff12d34526415a7bef9548568c6c212d799bf257cdf59ae704023635049c91435547eab219c WHIRLPOOL aabe9ec6337de525da170de3d7a335e2cc279b1eb33abac2b287af5e542fdd2a8f8219ae2b734773a403d9cb3ff9657e8ab5997e74b9467ab8c50448aa22d6c4
+MISC ChangeLog 6031 SHA256 0d714cefae4191e24bc162e29a4fceaab16af2135e334ef95b1d4d9e89055414 SHA512 24af1db598e77c1bbe683c6e89a708a577df21d436ee2518915f4a227803fa3505c5221b5cab51ee82ba2a0625658b9727950b93a9a8b0cfb6635a4516208184 WHIRLPOOL c960f7f5946f97496a163ee97b1a3516748cce91b67ac30974fe1c9bb188c4c8c7b3426e449204d125865ab282c416b1e4166131b9ef62bdf7f9f2d6cbd8c457
+MISC ChangeLog-2015 12061 SHA256 a0717c84b7d9f7ae46d500d3afb96f3a4cdd893cc1795027e7d2bcc6f625a127 SHA512 4758d51ca2c0bb40da32b4ab0cf2107f44b69c09bf5e148c46d3f33e8521af6b84111562eeba259aa47efa33ff55a9b087200e457ddd44280066624a44a43c32 WHIRLPOOL a92b466541c2f98b12c4eb23a93ae9b2a713c9acee4e453c33447a10884958cada0822e896fc58abe8a09e308fbaf82315dc224ae659af0f131f3a4416eda402
+MISC metadata.xml 524 SHA256 63ab50b327fca4ad25ef498bdbfc6143c34fb932a39517662fbe158d3808e38b SHA512 052a4374ed0dd9f0f577b0632370385d8c7d313b3d50ae4eb69052058ba26a09856f85174f7c9c6447ba1a7ef13b5ae1909ceba88f7293aeabd78f60eb69e741 WHIRLPOOL affc768fd1232d1289b7aa058df961e6df183150505f51b97068bd9ca2647482cc5a40074aa26621bcdd4ba0b9d16083b145e04f083506597f5101aa9cf71e69
diff --git a/media-gfx/kphotoalbum/kphotoalbum-5.2.ebuild b/media-gfx/kphotoalbum/kphotoalbum-5.2.ebuild
new file mode 100644
index 000000000000..eee7ec2bb485
--- /dev/null
+++ b/media-gfx/kphotoalbum/kphotoalbum-5.2.ebuild
@@ -0,0 +1,66 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+KDE_HANDBOOK="forceoptional"
+inherit kde5
+
+DESCRIPTION="Tool for indexing, searching, and viewing images"
+HOMEPAGE="https://www.kphotoalbum.org/"
+SRC_URI="mirror://kde/stable/${PN}/${PV}/${P}.tar.xz"
+
+LICENSE="GPL-2+ FDL-1.2"
+KEYWORDS="amd64 x86"
+IUSE="face +kipi +map +raw"
+
+COMMON_DEPEND="
+ $(add_frameworks_dep karchive)
+ $(add_frameworks_dep kcompletion)
+ $(add_frameworks_dep kconfig)
+ $(add_frameworks_dep kconfigwidgets)
+ $(add_frameworks_dep kcoreaddons)
+ $(add_frameworks_dep ki18n)
+ $(add_frameworks_dep kiconthemes)
+ $(add_frameworks_dep kio)
+ $(add_frameworks_dep kjobwidgets)
+ $(add_frameworks_dep kservice)
+ $(add_frameworks_dep ktextwidgets)
+ $(add_frameworks_dep kwidgetsaddons)
+ $(add_frameworks_dep kxmlgui)
+ $(add_qt_dep qtdbus)
+ $(add_qt_dep qtgui)
+ $(add_qt_dep qtnetwork)
+ $(add_qt_dep qtsql 'sqlite')
+ $(add_qt_dep qtwidgets)
+ $(add_qt_dep qtxml)
+ media-gfx/exiv2:=
+ media-libs/phonon[qt5(+)]
+ virtual/jpeg:0
+ face? ( $(add_kdeapps_dep libkface) )
+ kipi? ( $(add_kdeapps_dep libkipi) )
+ map? ( $(add_kdeapps_dep libkgeomap) )
+ raw? ( $(add_kdeapps_dep libkdcraw) )
+"
+DEPEND="${COMMON_DEPEND}
+ sys-devel/gettext
+"
+RDEPEND="${COMMON_DEPEND}
+ media-video/mplayer
+ kipi? ( media-plugins/kipi-plugins:5 )
+ !media-gfx/kphotoalbum:4
+"
+
+DOCS=( ChangeLog README )
+
+src_configure() {
+ local mycmakeargs=(
+ -DENABLE_PLAYGROUND=ON
+ $(cmake-utils_use_find_package face KF5KFace)
+ $(cmake-utils_use_find_package kipi KF5Kipi)
+ $(cmake-utils_use_find_package map KF5KGeoMap)
+ $(cmake-utils_use_find_package raw KF5KDcraw)
+ )
+
+ kde5_src_configure
+}
diff --git a/media-gfx/kphotoalbum/metadata.xml b/media-gfx/kphotoalbum/metadata.xml
new file mode 100644
index 000000000000..22ab0f0e1eff
--- /dev/null
+++ b/media-gfx/kphotoalbum/metadata.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>kde@gentoo.org</email>
+ <name>Gentoo KDE Project</name>
+ </maintainer>
+ <use>
+ <flag name="face">Enable face detection and recognition using <pkg>kde-apps/libkface</pkg></flag>
+ <flag name="kipi">Support for the KDE Image Plugin Interface</flag>
+ <flag name="map">Enable map display support using <pkg>kde-apps/libkgeomap</pkg></flag>
+ </use>
+</pkgmetadata>
diff --git a/media-gfx/kpovmodeler/Manifest b/media-gfx/kpovmodeler/Manifest
new file mode 100644
index 000000000000..85814cadb826
--- /dev/null
+++ b/media-gfx/kpovmodeler/Manifest
@@ -0,0 +1,8 @@
+AUX kpovmodeler-1.1.3-desktop.patch 482 SHA256 085f3f6341a1223594b40b673cd3369122ffc58df417c0113ff3137b0e9c36e5 SHA512 c20f7a0dfe5eb03e8e8a01ae6f99c494c9b7222de42f1e3413eb749f45a83aa32d88b04d1415b9b4454b3a278c4b8bc5d4d7b88dad4dc91b2b36fe9bb2813d92 WHIRLPOOL 5609fbbc62f8a82b3a6878ee6e076f7ab4fbfee55277705e9ee810f07b6e1c3a3f34213814425a99e3fe2489fd2dcc7b825694642d4fbe3d43bb59e7fcd778a3
+AUX kpovmodeler-1.1.3-freetype-include.patch 437 SHA256 506d82a9c92d135d77e106fc28eeee1f6e2c3c7a181e0e984918bdc1f9170b41 SHA512 44bc1a02e3f9c915685e3a33b7157806d619d93e2b6661756d6063ae25ea49010d326bf391e3777267148dab4cb1a2c2fcb787480718758f2a998473b2064ac4 WHIRLPOOL 7df0fce8c231fed39a39729a24f2686fc0109ba5f3918e95e04c08e6230b8d65372959194e66f8f23c07a6e3c5b5722e7252b8fc340b5f35a1cd772087f6f934
+AUX kpovmodeler-1.1.3-underlinking.patch 596 SHA256 927580a7ecdd25e4ae3904e05fa931b5c6e29a5648af0fbd15b1a1c91866bf15 SHA512 ebaeab7d4d996867c0e0061db9749929c594dd1098260b444782ae9f5bee2c6bc1b41819acb5edbc00a37cec30adc85fbe0788d29646ce7b5face411eb68715d WHIRLPOOL 9f8e739caf2c9805fdcec6ab8da46a5320ff830b89e850ac642f7ec7bbd69c470c17d9f0b6d85a18f2cf364cdd6f3560cd505ccc34263101057b4381b6cb16a8
+DIST kpovmodeler-1.1.3-kde4.1.1.tar.bz2 1875515 SHA256 3cef42828234500452275542b84c9c077a12ec8640df68c0952f7706fde13867 SHA512 8cfdde653ec93bc044d049ecf61b4d106d7415874668f6f56e9f59fb88f023e78717592e5e3a0aff071d0d4a84ac51f8457bedb5b1fa48e92f06c6d1d08385f6 WHIRLPOOL cfa950f200bda32eb6d42e0d200fd40afd4d8c36548f97929a04f383e324d0f6c6ff84e818d12ebfd8f88c0522f5058030e6ca3912e955a3dc3e0ab23e70e03f
+EBUILD kpovmodeler-1.1.3-r1.ebuild 956 SHA256 218beb8e136b6e730ca251e7332417a28d47079448fd7ff7ec0a6fc284653678 SHA512 7305c0119b757b98ee400bab9d7607509ce7dd49bc509cc8202c93f15db2998e7079fb80fbd619ee1118cb7eb2e2af28559e8af10e16a2c2c2cccb500a83d5db WHIRLPOOL ae8e703ddd0219b7661ff67e07f2891e716fb7f315597082bf8caac0964ef74b5d75a5131a6e7ffafb777ef27ba85dc2a169d3ae17f414d10346376c3b368338
+MISC ChangeLog 3079 SHA256 116c8639154a435afa495669812bcfeca07912ca6f1070457fcbe04e251884b1 SHA512 5850bed80c658d391873d8387412dd63a17a97e6e0dad45280032fd4f3fd85867915a989a4cda3ef29e07dc52cc2b46eed185b54603ef7dd2c175f2e02f9a712 WHIRLPOOL cad8af6b56646df6c98ce6b49a3da4da1c2a45c25a4100de07bc2f71a4453c15e11925d179fee4568b2559d93793fb5ea3b46eac52a219bc2abfca8ea9b56322
+MISC ChangeLog-2015 1288 SHA256 3cc46508088021c0f15f0d5105e2930cff79e9adf8845477887036ff4636064d SHA512 4c089cb4c723b571a22a140906ce8ffe83093904142c2749cdd94a987c1604acde8878da66fe4aa87abb671e91c338cc02aba052f2cbd68dcc17b6fe0713573a WHIRLPOOL 56332020518d722d8102b8bb9564b6e75a00147d5003b8403e6986a6350a89b591e71131a4966b2baf274037d74a98acef812ed841609b5f6cb767244b341aed
+MISC metadata.xml 368 SHA256 1df16be7e9e70167ddce7c6e2040420e274fbd9d1e830dc9372df5ee82018512 SHA512 b6155078e289dd6004c392b3b54afb23c2e84b11a3ec23b156cb65ad7cbe37e6866e346ee9fe801db5afdc1691d8fc7a54c2e2b5cd7e6ee311dc34579e767a1f WHIRLPOOL a731e17a298754dc36aee54cb3b29d396224090e91b5d959f1e3045f65f89a86c7201208b95632e806008ad7176faddba0cb9164eafdbf0505e1c77fbac68d2d
diff --git a/media-gfx/kpovmodeler/files/kpovmodeler-1.1.3-desktop.patch b/media-gfx/kpovmodeler/files/kpovmodeler-1.1.3-desktop.patch
new file mode 100644
index 000000000000..04013e22dad0
--- /dev/null
+++ b/media-gfx/kpovmodeler/files/kpovmodeler-1.1.3-desktop.patch
@@ -0,0 +1,17 @@
+Remove deprecated/useless entries causing validation warnings.
+
+--- kpovmodeler.desktop
++++ kpovmodeler.desktop
+@@ -49,12 +49,8 @@
+ GenericName[tr]=Povray Modelleyici
+ GenericName[x-test]=xxPovray Modelerxx
+ GenericName[zh_HK]=Povray 建模器
+-Path=
+ ServiceTypes=KParts/ReadOnlyPart,KParts/ReadWritePart,Browser/View,KPovModeler/Document
+-SwallowExec=
+-SwallowTitle=
+ Terminal=false
+ Type=Application
+ X-KDE-Library=libkpovmodelerpart
+ Categories=Qt;KDE;Graphics;
+-Encoding=UTF-8
diff --git a/media-gfx/kpovmodeler/files/kpovmodeler-1.1.3-freetype-include.patch b/media-gfx/kpovmodeler/files/kpovmodeler-1.1.3-freetype-include.patch
new file mode 100644
index 000000000000..9939780a4250
--- /dev/null
+++ b/media-gfx/kpovmodeler/files/kpovmodeler-1.1.3-freetype-include.patch
@@ -0,0 +1,15 @@
+Use the correct freetype include directory to avoid a build failure.
+
+Gentoo bug #467998.
+
+--- CMakeLists.txt
++++ CMakeLists.txt
+@@ -11,7 +11,7 @@
+
+ configure_file(config-kpovmodeler.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-kpovmodeler.h )
+
+-include_directories(${FREETYPE_INCLUDE_DIR})
++include_directories(${FREETYPE_INCLUDE_DIRS})
+ add_definitions (-DQT3_SUPPORT -DQT3_SUPPORT_WARNINGS)
+
+ ########### next target ###############
diff --git a/media-gfx/kpovmodeler/files/kpovmodeler-1.1.3-underlinking.patch b/media-gfx/kpovmodeler/files/kpovmodeler-1.1.3-underlinking.patch
new file mode 100644
index 000000000000..9f70e5c06b82
--- /dev/null
+++ b/media-gfx/kpovmodeler/files/kpovmodeler-1.1.3-underlinking.patch
@@ -0,0 +1,12 @@
+diff -ruN kpovmodeler-1.1.3-kde4.1.1.orig/CMakeLists.txt kpovmodeler-1.1.3-kde4.1.1/CMakeLists.txt
+--- kpovmodeler-1.1.3-kde4.1.1.orig/CMakeLists.txt 2008-08-28 20:05:05.000000000 +0200
++++ kpovmodeler-1.1.3-kde4.1.1/CMakeLists.txt 2011-08-06 22:37:50.471609939 +0200
+@@ -306,7 +306,7 @@
+
+ kde4_add_executable(kpovmodeler ${kpovmodeler_SRCS})
+
+-target_link_libraries(kpovmodeler ${KDE4_KDECORE_LIBS} lkpovmodeler )
++target_link_libraries(kpovmodeler ${QT_QTGUI_LIBRARY} ${KDE4_KDECORE_LIBS} ${KDE4_KDEUI_LIBS} lkpovmodeler )
+
+ install(TARGETS kpovmodeler ${INSTALL_TARGETS_DEFAULT_ARGS} )
+
diff --git a/media-gfx/kpovmodeler/kpovmodeler-1.1.3-r1.ebuild b/media-gfx/kpovmodeler/kpovmodeler-1.1.3-r1.ebuild
new file mode 100644
index 000000000000..44f61499af26
--- /dev/null
+++ b/media-gfx/kpovmodeler/kpovmodeler-1.1.3-r1.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+KDE_LINGUAS="af ar be bg br ca cs cy da de el en_GB es et eu fa fi fr ga gl he
+hi hr hu is it ja km lt mk ms nb nds ne nl nn oc pl pt pt_BR ro ru se sk sl sv
+ta tg tr uk vi xh zh_CN zh_TW"
+OPENGL_REQUIRED="always"
+inherit kde4-base
+
+MY_P=${P}-kde4.1.1
+
+DESCRIPTION="A modeling and composition program for creating POV-Ray(TM) scenes"
+HOMEPAGE="https://extragear.kde.org/apps/kpovmodeler/"
+SRC_URI="https://dev.gentoo.org/~kensington/${MY_P}.tar.bz2"
+
+LICENSE="GPL-2 LGPL-2.1 FDL-1.2"
+SLOT="4"
+KEYWORDS="~amd64 ~x86"
+IUSE="debug"
+
+DEPEND="media-libs/freetype
+ virtual/glu
+ x11-libs/libX11
+"
+RDEPEND="${DEPEND}
+ media-gfx/povray
+"
+
+S=${WORKDIR}/${MY_P}
+
+DOCS=( AUTHORS BUGS ChangeLog README StyleConvention TODO )
+
+PATCHES=(
+ "${FILESDIR}/${P}-desktop.patch"
+ "${FILESDIR}/${P}-freetype-include.patch"
+ "${FILESDIR}/${P}-underlinking.patch"
+)
diff --git a/media-gfx/kpovmodeler/metadata.xml b/media-gfx/kpovmodeler/metadata.xml
new file mode 100644
index 000000000000..c378119fad77
--- /dev/null
+++ b/media-gfx/kpovmodeler/metadata.xml
@@ -0,0 +1,12 @@
+<?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>
+<maintainer type="project">
+ <email>kde@gentoo.org</email>
+ <name>Gentoo KDE Project</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/media-gfx/krita/Manifest b/media-gfx/krita/Manifest
new file mode 100644
index 000000000000..9173876a3f97
--- /dev/null
+++ b/media-gfx/krita/Manifest
@@ -0,0 +1,9 @@
+AUX krita-3.1.4-qt-5.9.patch 722 SHA256 9180d7841675832b2d55f5b18755d926699963fbbf8853d0cad99321f7fc5733 SHA512 265b4bdc3b75ac346dac24fad6824dd713f7c40855bb10ab8373b18a55943a67c1b203676689a49d1a34cd682059c70d9371ba463a0e0e16496c67d5b19389c7 WHIRLPOOL 55f103ea73b638cb5ccce60cd48dc85a66751cf4578be4c7974a5223878031c357a2ad09c92e584d5ea11e9119aed80abfad22cd1a5d552f34f7b0b6745393f8
+AUX krita-3.2.0-tests-optional.patch 8806 SHA256 839bf01eccee18c6dec2cf2b0ab5d47884648edc7dab872ddd9c0162cb6f30ca SHA512 aeba8043f7a31a24fad6b515608a881b34bffd0f05502ddd7591f8bb7a7c82eae5ec21bcab4c17091255f94422817ca5e89d97836ab0ce9298f29350a1666b34 WHIRLPOOL bc84ebb1803065672285047e76dcea2357b461b83779c138db3ca3462c0ad626b9820ed2dab333087d23709590f82f14ffdb07eb35794e2807a5bcdd10c18b0e
+AUX krita-vc-fix-gcc49-abi.patch 539 SHA256 c2d38b00853df1fccd2b161b53f8b7b65cc81777ef33a6ee6a9e62d6bac76615 SHA512 41e750c336ce2869d5653fd47ce951977af74bd9d8cd0da6fb3d1bcb770759ca531dfe5bcf9f6d1cb4cdb914f7d374b97c9b3a59fa318f121fccf7527654dd2b WHIRLPOOL f47005d4446f5986517b54fc1979138119ffd99edeb7f7f4cf17967e979fe97fe30eb8dca2a71d3d35c02b791de58d63069f18edc35abea4e07775cc5275e45a
+DIST krita-3.1.4.tar.gz 209778186 SHA256 741837b0d12afa795dbbca45d5efc78966f3041dbfb22a268c101c7dc23e82aa SHA512 6695d8d09552de2d98cb4a8fac1aefc6b5e35df50d7b72c088f11a25af54574b303a7445b4a9cb099844cdf0729a185f03fd208ab2f98329123398fd54a374df WHIRLPOOL 9b8819432594d10377ef6db5adaca06193044203ae5b870a2f014171c817dd2ffc251bd20af0a05183251a798d06fc6aa7b33c1a640879af3ac3c01c0e9869e7
+DIST krita-3.2.1.tar.gz 207014866 SHA256 ef06cee677d75861edca0e1f825bca42ff59b7200aeb827e16f8d1fb5ef14e39 SHA512 ddc7153a3fcef072de762cd48d4d6df765cc88b7a413028b3aec5690382c1ab7f61f6ae37070c78ef2be1bdc26107908d288976bfa12d14ca35934ce33fb10a3 WHIRLPOOL 79bc89b7ebf63b2a31bac726e91e4b77bf7b2a6eafe15a6bf15baf935f2bf56e2f612359fc16c7129251623dfe4d7fe53cd9d2f42d423385487a832309afd17e
+EBUILD krita-3.1.4.ebuild 2551 SHA256 d56beb770f09e4ddd3907dad4aab1ed3dbb13a0dc36bddf2beca1b64315d6b9c SHA512 74661e02ea49dac6f78a996f839520ebd9e29787293b3585c78c4c5b4faa46f13d31a2dd26765c058f964b925e59fa5ebdf81b95cbc24c7093ae61e84afec022 WHIRLPOOL 629c8eb72b3ebca52674ad569e17558f5337cfbe3e49f551ad4393cc3231d34d1ecfddd187c96ddf47c7088760585b0067d98673e4d01a6bb07835309253e0e3
+EBUILD krita-3.2.1.ebuild 2532 SHA256 e9e620230349be4702b5c5e03410d6ac6911143a93276491538c3236526e459e SHA512 7606da963f518188d2e7b951ffb3095b4e2a69604cfc24ca7251854fab6f0823a6ca54d56eb2d8b4524cb2601ed49fae5ace5c1406ff0d4758d8953535ca09d8 WHIRLPOOL 662c66fcb9c366be39f346612fa879845b5821de9de25c37b9e1e5d1b88bfdc455c0a1ce6562d2821e292fd38891366e17d36c5da437900a0d2e3ce7a1fe0219
+MISC ChangeLog 1347 SHA256 0842c6da6c74f58c2bf65ea5842f75857f7339daaa702947fef7625893487030 SHA512 51fbe12ec66ca91dcb60cb00d8c0563a7d033da26b9ada5188e94bcaac9852648191e700b62ec8a6f40af2773b1b566bc3de394bccf0d96b716dcc8f72a9460e WHIRLPOOL 8b7a12f8c82b8fcad1bb59e9438a722c5da203a386b97b8b8970b09cc3450fa53887f6354c027fbf0802887b678276dddb76db163e3548a6c702637d3105196b
+MISC metadata.xml 569 SHA256 734de7cdb3cd12de975cf7fa2a02370178fbe8ec8c9f6ea3b424f5bff1fed336 SHA512 44b2dc2f5d0e737a780e16f4d88cb3c2ff1dbab8b1878ae3561659c3a191040ef0f0f2ef0e7325b16ca6c149e29d417c10bec18bfcf06d8e847000e1e8279b27 WHIRLPOOL 67a8f8f9c346a040683a568a63cd3230bcf1a9fa613ceebd3d185179d750d8a050c8b1abb96758e5bd27e70c08683c6727d52c266e63fb22292e3619a4283a39
diff --git a/media-gfx/krita/files/krita-3.1.4-qt-5.9.patch b/media-gfx/krita/files/krita-3.1.4-qt-5.9.patch
new file mode 100644
index 000000000000..6bda9ddd2062
--- /dev/null
+++ b/media-gfx/krita/files/krita-3.1.4-qt-5.9.patch
@@ -0,0 +1,24 @@
+From 2f59d0d1d91e3f79342c20d0df68aa9a51817e8d Mon Sep 17 00:00:00 2001
+From: Luca Beltrame <lbeltrame@kde.org>
+Date: Sat, 6 May 2017 16:00:21 +0200
+Subject: [PATCH] Drop QForeachContainer include and fix Qt 5.9 build
+
+It's not used anywhere.
+
+Acked by boud.
+---
+ libs/ui/KisResourceBundleManifest.cpp | 1 -
+ 1 file changed, 1 deletion(-)
+
+diff --git a/libs/ui/KisResourceBundleManifest.cpp b/libs/ui/KisResourceBundleManifest.cpp
+index e4f94ca788..83761657d8 100644
+--- a/libs/ui/KisResourceBundleManifest.cpp
++++ b/libs/ui/KisResourceBundleManifest.cpp
+@@ -22,7 +22,6 @@
+ #include <QDomElement>
+ #include <QDomNode>
+ #include <QDomNodeList>
+-#include <QForeachContainer>
+
+ #include <KoXmlNS.h>
+ #include <KoXmlReader.h>
diff --git a/media-gfx/krita/files/krita-3.2.0-tests-optional.patch b/media-gfx/krita/files/krita-3.2.0-tests-optional.patch
new file mode 100644
index 000000000000..0f143ff1cc51
--- /dev/null
+++ b/media-gfx/krita/files/krita-3.2.0-tests-optional.patch
@@ -0,0 +1,282 @@
+Autogenerated by KDE_TEST=forceoptional-recursive and edited.
+
+--- a/plugins/paintops/libpaintop/CMakeLists.txt 2017-08-19 23:45:06.235796211 +0200
++++ b/plugins/paintops/libpaintop/CMakeLists.txt 2017-08-19 23:45:06.241796045 +0200
+@@ -95,4 +95,6 @@
+ install(TARGETS kritalibpaintop ${INSTALL_TARGETS_DEFAULT_ARGS})
+
+
++if(BUILD_TESTING)
+ add_subdirectory(tests)
++endif()
+--- a/plugins/paintops/defaultpaintops/CMakeLists.txt 2017-08-19 23:45:06.250795797 +0200
++++ b/plugins/paintops/defaultpaintops/CMakeLists.txt 2017-08-19 23:45:06.258795576 +0200
+@@ -1,4 +1,6 @@
++if(BUILD_TESTING)
+ add_subdirectory(brush/tests)
++endif()
+
+ include_directories(brush)
+ include_directories(duplicate)
+--- a/plugins/impex/exr/CMakeLists.txt 2017-08-19 23:45:06.266795355 +0200
++++ b/plugins/impex/exr/CMakeLists.txt 2017-08-19 23:45:06.274795134 +0200
+@@ -1,4 +1,6 @@
++if(BUILD_TESTING)
+ add_subdirectory(tests)
++endif()
+
+ include_directories(SYSTEM ${OPENEXR_INCLUDE_DIR} )
+
+--- a/plugins/impex/jpeg/CMakeLists.txt 2017-08-19 23:45:06.282794913 +0200
++++ b/plugins/impex/jpeg/CMakeLists.txt 2017-08-19 23:45:06.289794720 +0200
+@@ -1,4 +1,6 @@
++if(BUILD_TESTING)
+ add_subdirectory(tests)
++endif()
+
+ set(ICCJPEG_SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/3rdparty/lcms")
+
+--- a/plugins/impex/psd/CMakeLists.txt 2017-08-19 23:45:06.297794499 +0200
++++ b/plugins/impex/psd/CMakeLists.txt 2017-08-19 23:45:06.304794306 +0200
+@@ -1,5 +1,7 @@
+ if (NOT MSVC AND NOT APPLE)
+- add_subdirectory(tests)
++ if(BUILD_TESTING)
++ add_subdirectory(tests)
++ endif()
+ endif()
+
+ configure_file(config_psd.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config_psd.h)
+--- a/plugins/impex/ppm/CMakeLists.txt 2017-08-19 23:45:06.313794058 +0200
++++ b/plugins/impex/ppm/CMakeLists.txt 2017-08-19 23:45:06.319793892 +0200
+@@ -1,4 +1,6 @@
++if(BUILD_TESTING)
+ add_subdirectory(tests)
++endif()
+
+ include_directories( ${CMAKE_CURRENT_SOURCE_DIR} )
+
+--- a/plugins/impex/png/CMakeLists.txt 2017-08-19 23:45:06.327793672 +0200
++++ b/plugins/impex/png/CMakeLists.txt 2017-08-19 23:45:06.334793478 +0200
+@@ -1,4 +1,6 @@
++if(BUILD_TESTING)
+ add_subdirectory(tests)
++endif()
+
+ set(kritapngimport_SOURCES
+ kis_png_import.cc
+--- a/plugins/impex/csv/CMakeLists.txt 2017-08-19 23:45:06.343793230 +0200
++++ b/plugins/impex/csv/CMakeLists.txt 2017-08-19 23:45:06.349793064 +0200
+@@ -1,4 +1,6 @@
++if(BUILD_TESTING)
+ add_subdirectory(tests)
++endif()
+
+ include_directories(SYSTEM
+ ${Boost_INCLUDE_DIRS}
+--- a/plugins/impex/xcf/CMakeLists.txt 2017-08-19 23:45:06.357792843 +0200
++++ b/plugins/impex/xcf/CMakeLists.txt 2017-08-19 23:45:06.364792650 +0200
+@@ -1,4 +1,6 @@
++if(BUILD_TESTING)
+ add_subdirectory(tests)
++endif()
+
+ set(XCFTOOLS_SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/3rdparty/xcftools")
+
+--- a/plugins/impex/tiff/CMakeLists.txt 2017-08-19 23:45:06.372792429 +0200
++++ b/plugins/impex/tiff/CMakeLists.txt 2017-08-19 23:45:06.379792236 +0200
+@@ -1,4 +1,6 @@
++if(BUILD_TESTING)
+ add_subdirectory(tests)
++endif()
+
+ set(libkritatiffconverter_LIB_SRCS
+ kis_tiff_converter.cc
+--- a/plugins/extensions/qmic/CMakeLists.txt 2017-08-19 23:45:06.387792016 +0200
++++ b/plugins/extensions/qmic/CMakeLists.txt 2017-08-19 23:45:06.393791850 +0200
+@@ -20,4 +20,6 @@
+ target_link_libraries(kritaqmic kritaui)
+ install(TARGETS kritaqmic DESTINATION ${KRITA_PLUGIN_INSTALL_DIR})
+
++if(BUILD_TESTING)
+ add_subdirectory(tests)
++endif()
+--- a/plugins/filters/CMakeLists.txt 2017-08-19 23:45:06.401791629 +0200
++++ b/plugins/filters/CMakeLists.txt 2017-08-19 23:45:06.408791436 +0200
+@@ -1,4 +1,6 @@
++if(BUILD_TESTING)
+ add_subdirectory( tests )
++endif()
+ add_subdirectory( blur )
+ add_subdirectory( colors )
+ add_subdirectory( colorsfilters )
+--- a/plugins/filters/unsharp/CMakeLists.txt 2017-08-19 23:45:06.416791215 +0200
++++ b/plugins/filters/unsharp/CMakeLists.txt 2017-08-19 23:45:06.422791049 +0200
+@@ -1,4 +1,6 @@
++if(BUILD_TESTING)
+ add_subdirectory( tests )
++endif()
+
+ set(kritaunsharpfilter_SOURCES
+ unsharp.cpp
+--- a/plugins/tools/basictools/CMakeLists.txt 2017-08-19 23:45:06.430790829 +0200
++++ b/plugins/tools/basictools/CMakeLists.txt 2017-08-19 23:45:06.437790636 +0200
+@@ -1,5 +1,7 @@
+ if (NOT APPLE)
+- add_subdirectory(tests)
++ if(BUILD_TESTING)
++ add_subdirectory(tests)
++ endif()
+ endif ()
+
+ include_directories(SYSTEM ${Boost_INCLUDE_DIRS})
+--- a/plugins/tools/tool_transform2/CMakeLists.txt 2017-08-19 23:45:06.446790387 +0200
++++ b/plugins/tools/tool_transform2/CMakeLists.txt 2017-08-19 23:45:06.453790194 +0200
+@@ -1,5 +1,7 @@
+ if (NOT WIN32 AND NOT APPLE)
+- add_subdirectory(tests)
++ if(BUILD_TESTING)
++ add_subdirectory(tests)
++ endif()
+ endif()
+
+ include_directories(SYSTEM ${Boost_INCLUDE_DIRS})
+--- a/plugins/color/lcms2engine/CMakeLists.txt 2017-08-19 23:45:06.461789973 +0200
++++ b/plugins/color/lcms2engine/CMakeLists.txt 2017-08-19 23:45:06.468789780 +0200
+@@ -1,6 +1,8 @@
+ project( lcmsengine )
+
++if(BUILD_TESTING)
+ add_subdirectory(tests)
++endif()
+
+ include_directories(SYSTEM
+ ${LCMS2_INCLUDE_DIR}
+--- a/plugins/dockers/defaultdockers/CMakeLists.txt 2017-08-19 23:45:06.476789559 +0200
++++ b/plugins/dockers/defaultdockers/CMakeLists.txt 2017-08-19 23:45:06.483789366 +0200
+@@ -1,4 +1,6 @@
++if(BUILD_TESTING)
+ add_subdirectory( tests )
++endif()
+
+ set(kritadefaultdockers_SOURCES
+ kis_layer_box.cpp
+--- a/plugins/dockers/animation/CMakeLists.txt 2017-08-19 23:45:06.491789145 +0200
++++ b/plugins/dockers/animation/CMakeLists.txt 2017-08-19 23:45:06.497788980 +0200
+@@ -1,5 +1,7 @@
+ if (NOT WIN32 AND NOT APPLE)
+- add_subdirectory(tests)
++ if(BUILD_TESTING)
++ add_subdirectory(tests)
++ endif()
+ endif()
+
+ include_directories(SYSTEM ${Boost_INCLUDE_DIRS})
+--- a/plugins/dockers/lut/CMakeLists.txt 2017-08-19 23:45:06.506788731 +0200
++++ b/plugins/dockers/lut/CMakeLists.txt 2017-08-19 23:45:06.512788565 +0200
+@@ -1,5 +1,7 @@
+ if (NOT WIN32 AND NOT APPLE)
+- add_subdirectory(tests)
++ if(BUILD_TESTING)
++ add_subdirectory(tests)
++ endif()
+ endif()
+
+ include_directories(SYSTEM
+--- a/libs/store/CMakeLists.txt 2017-08-19 23:45:06.520788345 +0200
++++ b/libs/store/CMakeLists.txt 2017-08-19 23:45:06.527788151 +0200
+@@ -1,4 +1,6 @@
++if(BUILD_TESTING)
+ add_subdirectory(tests)
++endif()
+
+ set(kritastore_LIB_SRCS
+ KoDirectoryStore.cpp
+--- a/libs/flake/CMakeLists.txt 2017-08-19 23:45:06.536787903 +0200
++++ b/libs/flake/CMakeLists.txt 2017-08-19 23:45:06.542787737 +0200
+@@ -8,7 +8,9 @@
+ )
+
+ add_subdirectory(styles)
++if(BUILD_TESTING)
+ add_subdirectory(tests)
++endif()
+
+ set(kritaflake_SRCS
+ KoGradientHelper.cpp
+--- a/libs/widgetutils/CMakeLists.txt 2017-08-19 23:45:06.550787517 +0200
++++ b/libs/widgetutils/CMakeLists.txt 2017-08-19 23:45:06.557787323 +0200
+@@ -1,4 +1,6 @@
++if(BUILD_TESTING)
+ add_subdirectory(tests)
++endif()
+
+ configure_file(xmlgui/config-xmlgui.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-xmlgui.h )
+
+--- a/libs/odf/CMakeLists.txt 2017-08-19 23:45:06.565787103 +0200
++++ b/libs/odf/CMakeLists.txt 2017-08-19 23:45:06.572786910 +0200
+@@ -1,4 +1,6 @@
++if(BUILD_TESTING)
+ add_subdirectory( tests )
++endif()
+
+ set(kritaodf_LIB_SRCS
+ KoOdf.cpp
+--- a/libs/pigment/CMakeLists.txt 2017-08-19 23:45:06.580786689 +0200
++++ b/libs/pigment/CMakeLists.txt 2017-08-19 23:45:06.587786495 +0200
+@@ -34,7 +34,9 @@
+ message(${__per_arch_factory_objs})
+ endif()
+
++if(BUILD_TESTING)
+ add_subdirectory(tests)
++endif()
+ add_subdirectory(benchmarks)
+
+ set(kritapigment_SRCS
+--- a/libs/widgets/CMakeLists.txt 2017-08-19 23:45:06.595786275 +0200
++++ b/libs/widgets/CMakeLists.txt 2017-08-19 23:45:06.601786109 +0200
+@@ -1,4 +1,6 @@
++if(BUILD_TESTING)
+ add_subdirectory( tests )
++endif()
+
+ include_directories(${CMAKE_CURRENT_BINARY_DIR})
+
+--- a/libs/ui/CMakeLists.txt 2017-08-19 23:45:06.610785861 +0200
++++ b/libs/ui/CMakeLists.txt 2017-08-19 23:45:06.617785667 +0200
+@@ -9,7 +9,9 @@
+ ${Boost_INCLUDE_DIRS}
+ )
+
++if(BUILD_TESTING)
+ add_subdirectory( tests )
++endif()
+
+ if (APPLE)
+ find_library(FOUNDATION_LIBRARY Foundation)
+--- a/libs/image/CMakeLists.txt 2017-08-19 23:45:06.626785419 +0200
++++ b/libs/image/CMakeLists.txt 2017-08-19 23:45:06.632785254 +0200
+@@ -1,4 +1,6 @@
++if(BUILD_TESTING)
+ add_subdirectory( tests )
++endif()
+
+ add_subdirectory( tiles3 )
+
+--- a/libs/image/tiles3/CMakeLists.txt 2017-08-19 23:45:06.641785005 +0200
++++ b/libs/image/tiles3/CMakeLists.txt 2017-08-19 23:45:06.647784839 +0200
+@@ -1,2 +1,4 @@
+ include_directories(SYSTEM ${Boost_INCLUDE_DIRS})
++if(BUILD_TESTING)
+ add_subdirectory(tests)
++endif()
+--- a/libs/brush/CMakeLists.txt 2017-08-19 23:45:06.658784536 +0200
++++ b/libs/brush/CMakeLists.txt 2017-08-19 23:45:06.665784343 +0200
+@@ -1,4 +1,6 @@
++if(BUILD_TESTING)
+ add_subdirectory( tests )
++endif()
+
+ include_directories(SYSTEM
+ ${EIGEN3_INCLUDE_DIR}
diff --git a/media-gfx/krita/files/krita-vc-fix-gcc49-abi.patch b/media-gfx/krita/files/krita-vc-fix-gcc49-abi.patch
new file mode 100644
index 000000000000..0f0b9674dd05
--- /dev/null
+++ b/media-gfx/krita/files/krita-vc-fix-gcc49-abi.patch
@@ -0,0 +1,14 @@
+--- a/CMakeLists.txt 2017-02-13 11:12:47.866321035 -0200
++++ b/CMakeLists.txt 2017-02-13 11:18:55.769657370 -0200
+@@ -533,9 +533,9 @@
+ include (VcMacros)
+
+ if(Vc_COMPILER_IS_CLANG)
+- set(ADDITIONAL_VC_FLAGS "-Wabi -ffp-contract=fast -fPIC")
++ add_compile_options(-Wabi -ffp-contract=fast -fPIC)
+ elseif (NOT MSVC)
+- set(ADDITIONAL_VC_FLAGS "-Wabi -fabi-version=0 -ffp-contract=fast -fPIC")
++ add_compile_options(-Wabi -fabi-version=0 -ffp-contract=fast -fPIC)
+ endif()
+
+ #Handle Vc master
diff --git a/media-gfx/krita/krita-3.1.4.ebuild b/media-gfx/krita/krita-3.1.4.ebuild
new file mode 100644
index 000000000000..371f0260e9b5
--- /dev/null
+++ b/media-gfx/krita/krita-3.1.4.ebuild
@@ -0,0 +1,95 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+KDE_TEST="forceoptional"
+inherit kde5
+
+DESCRIPTION="Free digital painting application. Digital Painting, Creative Freedom!"
+HOMEPAGE="https://www.kde.org/applications/graphics/krita/ https://krita.org/"
+SRC_URI="mirror://kde/stable/${PN}/${PV}/${P}.tar.gz"
+
+LICENSE="GPL-3"
+KEYWORDS="amd64 ~x86"
+IUSE="color-management fftw +gsl +jpeg openexr pdf qtmedia +raw tiff vc"
+
+COMMON_DEPEND="
+ $(add_frameworks_dep karchive)
+ $(add_frameworks_dep kcompletion)
+ $(add_frameworks_dep kconfig)
+ $(add_frameworks_dep kcoreaddons)
+ $(add_frameworks_dep kcrash)
+ $(add_frameworks_dep kguiaddons)
+ $(add_frameworks_dep ki18n)
+ $(add_frameworks_dep kiconthemes)
+ $(add_frameworks_dep kio)
+ $(add_frameworks_dep kitemmodels)
+ $(add_frameworks_dep kitemviews)
+ $(add_frameworks_dep kwidgetsaddons)
+ $(add_frameworks_dep kwindowsystem)
+ $(add_frameworks_dep kxmlgui)
+ $(add_qt_dep qtconcurrent)
+ $(add_qt_dep qtdbus)
+ $(add_qt_dep qtgui '-gles2')
+ $(add_qt_dep qtnetwork)
+ $(add_qt_dep qtprintsupport)
+ $(add_qt_dep qtsvg)
+ $(add_qt_dep qtwidgets)
+ $(add_qt_dep qtx11extras)
+ $(add_qt_dep qtxml)
+ dev-libs/boost:=
+ media-gfx/exiv2:=
+ media-libs/lcms
+ media-libs/libpng:0=
+ net-misc/curl
+ sys-libs/zlib
+ virtual/opengl
+ x11-libs/libX11
+ x11-libs/libxcb
+ x11-libs/libXi
+ color-management? ( media-libs/opencolorio )
+ fftw? ( sci-libs/fftw:3.0= )
+ gsl? ( sci-libs/gsl:= )
+ jpeg? ( virtual/jpeg:0 )
+ openexr? (
+ media-libs/ilmbase:=
+ media-libs/openexr
+ )
+ pdf? ( app-text/poppler[qt5] )
+ qtmedia? ( $(add_qt_dep qtmultimedia) )
+ raw? ( media-libs/libraw:= )
+ tiff? ( media-libs/tiff:0 )
+"
+DEPEND="${COMMON_DEPEND}
+ dev-cpp/eigen:3
+ dev-lang/perl
+ sys-devel/gettext
+ vc? ( >=dev-libs/vc-1.1.0 )
+"
+RDEPEND="${COMMON_DEPEND}
+ !app-office/calligra:4[calligra_features_krita]
+ !app-office/calligra-l10n:4[calligra_features_krita(+)]
+"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-vc-fix-gcc49-abi.patch
+ "${FILESDIR}"/${P}-qt-5.9.patch
+)
+
+src_configure() {
+ local mycmakeargs=(
+ $(cmake-utils_use_find_package color-management OCIO)
+ $(cmake-utils_use_find_package fftw FFTW3)
+ $(cmake-utils_use_find_package gsl GSL)
+ $(cmake-utils_use_find_package jpeg JPEG)
+ $(cmake-utils_use_find_package openexr OpenEXR)
+ $(cmake-utils_use_find_package pdf Poppler)
+ $(cmake-utils_use_find_package qtmedia Qt5Multimedia)
+ $(cmake-utils_use_find_package raw LibRaw)
+ $(cmake-utils_use_find_package tiff TIFF)
+ $(cmake-utils_use_find_package vc Vc)
+ )
+
+ kde5_src_configure
+}
diff --git a/media-gfx/krita/krita-3.2.1.ebuild b/media-gfx/krita/krita-3.2.1.ebuild
new file mode 100644
index 000000000000..7c6ab717abaa
--- /dev/null
+++ b/media-gfx/krita/krita-3.2.1.ebuild
@@ -0,0 +1,92 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+KDE_TEST="forceoptional"
+VIRTUALX_REQUIRED="test"
+inherit kde5
+
+DESCRIPTION="Free digital painting application. Digital Painting, Creative Freedom!"
+HOMEPAGE="https://www.kde.org/applications/graphics/krita/ https://krita.org/"
+SRC_URI="mirror://kde/stable/${PN}/${PV}/${P}.tar.gz"
+
+LICENSE="GPL-3"
+KEYWORDS="~amd64 ~x86"
+IUSE="color-management fftw +gsl +jpeg openexr pdf qtmedia +raw tiff vc"
+
+COMMON_DEPEND="
+ $(add_frameworks_dep karchive)
+ $(add_frameworks_dep kcompletion)
+ $(add_frameworks_dep kconfig)
+ $(add_frameworks_dep kcoreaddons)
+ $(add_frameworks_dep kcrash)
+ $(add_frameworks_dep kguiaddons)
+ $(add_frameworks_dep ki18n)
+ $(add_frameworks_dep kiconthemes)
+ $(add_frameworks_dep kio)
+ $(add_frameworks_dep kitemmodels)
+ $(add_frameworks_dep kitemviews)
+ $(add_frameworks_dep kwidgetsaddons)
+ $(add_frameworks_dep kwindowsystem)
+ $(add_frameworks_dep kxmlgui)
+ $(add_qt_dep qtconcurrent)
+ $(add_qt_dep qtdbus)
+ $(add_qt_dep qtgui '-gles2')
+ $(add_qt_dep qtnetwork)
+ $(add_qt_dep qtprintsupport)
+ $(add_qt_dep qtsvg)
+ $(add_qt_dep qtwidgets)
+ $(add_qt_dep qtx11extras)
+ $(add_qt_dep qtxml)
+ dev-libs/boost:=
+ media-gfx/exiv2:=
+ media-libs/lcms
+ media-libs/libpng:0=
+ sys-libs/zlib
+ virtual/opengl
+ x11-libs/libX11
+ x11-libs/libxcb
+ x11-libs/libXi
+ color-management? ( media-libs/opencolorio )
+ fftw? ( sci-libs/fftw:3.0= )
+ gsl? ( sci-libs/gsl:= )
+ jpeg? ( virtual/jpeg:0 )
+ openexr? (
+ media-libs/ilmbase:=
+ media-libs/openexr
+ )
+ pdf? ( app-text/poppler[qt5] )
+ qtmedia? ( $(add_qt_dep qtmultimedia) )
+ raw? ( media-libs/libraw:= )
+ tiff? ( media-libs/tiff:0 )
+"
+DEPEND="${COMMON_DEPEND}
+ dev-cpp/eigen:3
+ dev-lang/perl
+ sys-devel/gettext
+ vc? ( >=dev-libs/vc-1.1.0 )
+"
+RDEPEND="${COMMON_DEPEND}
+ !app-office/calligra:4[calligra_features_krita]
+ !app-office/calligra-l10n:4[calligra_features_krita(+)]
+"
+
+PATCHES=( "${FILESDIR}"/${PN}-3.2.0-tests-optional.patch )
+
+src_configure() {
+ local mycmakeargs=(
+ $(cmake-utils_use_find_package color-management OCIO)
+ $(cmake-utils_use_find_package fftw FFTW3)
+ $(cmake-utils_use_find_package gsl GSL)
+ $(cmake-utils_use_find_package jpeg JPEG)
+ $(cmake-utils_use_find_package openexr OpenEXR)
+ $(cmake-utils_use_find_package pdf Poppler)
+ $(cmake-utils_use_find_package qtmedia Qt5Multimedia)
+ $(cmake-utils_use_find_package raw LibRaw)
+ $(cmake-utils_use_find_package tiff TIFF)
+ $(cmake-utils_use_find_package vc Vc)
+ )
+
+ kde5_src_configure
+}
diff --git a/media-gfx/krita/metadata.xml b/media-gfx/krita/metadata.xml
new file mode 100644
index 000000000000..c63335afbc91
--- /dev/null
+++ b/media-gfx/krita/metadata.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>kde@gentoo.org</email>
+ <name>Gentoo KDE Project</name>
+ </maintainer>
+ <use>
+ <flag name="color-management">Enable color management via <pkg>media-libs/opencolorio</pkg></flag>
+ <flag name="qtmedia">Enable sound support for animations via <pkg>dev-qt/qtmultimedia</pkg></flag>
+ <flag name="vc">Enable support for <pkg>dev-libs/vc</pkg>, could be a significant speed boost</flag>
+ </use>
+</pkgmetadata>
diff --git a/media-gfx/kuickshow/Manifest b/media-gfx/kuickshow/Manifest
new file mode 100644
index 000000000000..7f5f2b324812
--- /dev/null
+++ b/media-gfx/kuickshow/Manifest
@@ -0,0 +1,4 @@
+AUX kuickshow-0.9.1-gcc6-compile-fix.patch 408 SHA256 113970bd21d91ec3a01d19f8d396ccc3b616df9934443f46473fe72fb33c16d6 SHA512 0b64ebefab7aed4b9a42457f3782a7f36ab61fee96d281ee1d42c6315e25a1afd97a92d9d847862eaa2a5cee5fe3190ddd74c3cfcaa92ca5e1718390c48104f1 WHIRLPOOL 778f21befe5c1fb1ede9aadd893729756211067aa1030714ff0178c17bd109df452b753aec93ea9c6547a66bd88b8a7010202f0427ab17cc2aa72e199042c100
+DIST kuickshow-0.9.1-kde4.4.0.tar.bz2 915108 SHA256 fa849380e8c5b628551510f6bf3d6c59e7d68bf437f80d0414ef2b73c826a40e SHA512 394b95c6b7c3b655a96729559271cd837ff5995aefc7e229f3bc7905f7e64f3fb05d34a67c9a9ba584c1cdbc459b7349d0e134a16afe9e0505b5a494e85ab87e WHIRLPOOL 3b2766833d86acd861d424054e73124287d3c2ceddeff0c9b5165d2aacae9cccb2e9c51d9092bf70bc4f3c979855ae3ee34c1e38e0928dc364b37045c59d773f
+EBUILD kuickshow-0.9.1-r2.ebuild 838 SHA256 97e9df71ad7703ac61f7ed5f8192b4a75b3b9b4416162898f1b5429f629d5d77 SHA512 96d735bbce1adde8b05ec638b4687a14f553b9f856b2ff1e1fe6a6255b59dd2e442edec59bd0f5693264520526cc03209c04e6e8d09de51adde42202620d8df9 WHIRLPOOL a902d43cb6a39ae765d455b96401e5f81c740b08e8c4aa8c25b2acc44c3bdd354cc6c7a2b3c79b0314b8acf31c703c57e4de5b93cebeee647379033e16991ce3
+MISC metadata.xml 368 SHA256 d8f8795dcc618984f30e45ca7ad8aa21ab084df1232c365fbdc452beaa677cb5 SHA512 9396698295f746c83f4fe1cc56396093feedb617a0a8cd1fa750b9f3099d9db014329d021af1021b0a22e73a3a8190b10ba5b80c0e753ea526094382e7495d20 WHIRLPOOL 4b2b94f997702328702481f55580c5e9c331065468c99c02053546c10ed1f8a4d3104df4361141ce759d87796447f02864b1d34e3aad917554a92ae1122031b0
diff --git a/media-gfx/kuickshow/files/kuickshow-0.9.1-gcc6-compile-fix.patch b/media-gfx/kuickshow/files/kuickshow-0.9.1-gcc6-compile-fix.patch
new file mode 100644
index 000000000000..82bf2eafd270
--- /dev/null
+++ b/media-gfx/kuickshow/files/kuickshow-0.9.1-gcc6-compile-fix.patch
@@ -0,0 +1,15 @@
+Fixed wrong type of 2nd parameter which wouldn't compile with GCC 6.
+
+https://bugs.gentoo.org/614304
+
+--- a/src/kuickshow.cpp
++++ b/src/kuickshow.cpp
+@@ -661,7 +661,7 @@ void KuickShow::performDeleteCurrentImage(QWidget *parent)
+ }
+
+ tryShowNextImage();
+- fileWidget->del(list, false, false);
++ fileWidget->del(list, 0L, false);
+ }
+
+ void KuickShow::performTrashCurrentImage(QWidget *parent)
diff --git a/media-gfx/kuickshow/kuickshow-0.9.1-r2.ebuild b/media-gfx/kuickshow/kuickshow-0.9.1-r2.ebuild
new file mode 100644
index 000000000000..81ffeba74aea
--- /dev/null
+++ b/media-gfx/kuickshow/kuickshow-0.9.1-r2.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+KDE_LINGUAS="af ar be bg bn br ca ca@valencia cs cy da de el en_GB eo es et eu
+fa fi fr ga gl he hi hne hr hu is it ja km lt lv mai mk ms nb nds ne nl nn oc
+pa pl pt pt_BR ro ru se sk sl sv ta tg th tr uk uz uz@cyrillic vi xh zh_CN
+zh_TW"
+KDE_DOC_DIRS="doc doc-translations/%lingua_${PN}"
+inherit kde4-base
+
+MY_P=${P}-kde4.4.0
+
+DESCRIPTION="KDE program to view images"
+HOMEPAGE="https://userbase.kde.org/KuickShow"
+SRC_URI="mirror://kde/Attic/4.4.0/src/extragear/${MY_P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="4"
+KEYWORDS="~amd64 ~x86"
+IUSE="debug +handbook"
+
+DEPEND="media-libs/imlib"
+RDEPEND="${DEPEND}"
+
+DOCS=( AUTHORS BUGS ChangeLog README TODO )
+
+PATCHES=(
+ "${FILESDIR}/${P}-gcc6-compile-fix.patch"
+)
+
+S=${WORKDIR}/${MY_P}
diff --git a/media-gfx/kuickshow/metadata.xml b/media-gfx/kuickshow/metadata.xml
new file mode 100644
index 000000000000..dacb6f1032b2
--- /dev/null
+++ b/media-gfx/kuickshow/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>chrgerloff@gmx.net</email>
+ <name>Christian Gerloff</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/media-gfx/kxstitch/Manifest b/media-gfx/kxstitch/Manifest
new file mode 100644
index 000000000000..eded45fb3c1f
--- /dev/null
+++ b/media-gfx/kxstitch/Manifest
@@ -0,0 +1,5 @@
+DIST kxstitch-2.0.0.tar.xz 1681648 SHA256 430db19729c907c845d35e2ab3887ace2bc21913ab08ea7471c71c9b84fcc783 SHA512 0ce9ec517659fd9a3163671cdb32d451487aa812355c9abb38cf143192ed49e3e32afc003a0064e9a63303b5de40d8859f92066d886dc06c6d1fe03c8790122f WHIRLPOOL 1c4965e7b536e2d6a2f98855372798c305840238e068465d95c2e2fccb7db419f049ad19d45461ccad544be8c55fcbd47c6cb02fc3c9dd333cbfca8a446e1e53
+EBUILD kxstitch-2.0.0.ebuild 914 SHA256 a3b8eade8dae65c523da3b013db5bdf1d3a5163d4361da61093c879bfa0516c6 SHA512 77511facc7ef6482b6bd6cff08ae82769849715475c1f5c57b62ea8dface2d416f7ac8b7dabb06d77504899771f4a71b37d49cb40edea787de9f799239512dd3 WHIRLPOOL 5225173272599b9e532c2a3dddb7042bd4e4f5752b913d8100ed64f3d69a6e2a2b2a866eff762ce8fb2e97cb7cf2e1af76f451f8d9f340a2354365cea906d691
+MISC ChangeLog 3189 SHA256 a4360414bdd97125df9a3657117452254935bce9764e36960b8c8279cce83a6b SHA512 fabb40574a345fedb1342c40e75aa6b1af869832f77358d991992d4e87c147a4736d42b118b965ab28c6eb4102b621ae22cee59e27f101e45a4842be13de6f7f WHIRLPOOL e1ba350a97208a125e5303b0d64ca1a0c14b6fad169d399d1b449d46fab2e5190ee132e5ae2c257848a15c760e2930643dc9f248831ca889d8c36e51d1d4d97a
+MISC ChangeLog-2015 371 SHA256 3d3d83251d5f15f7a60f395a148a54b5827fbd45f0bbf3720daa80ad678ec4ae SHA512 2b1ef332ddc40983242e7d9bb3394587de9f855ac0fb8eaf54ca17ae0928a1f8d2ad066ca8fb29898ad493591f54de9c33ec3921cb47593dcff961bb671ae6ae WHIRLPOOL 4c8701fe96150617e149e63748518671fa5cbd24fe0ef61b830256ef0f3068032736db081ca2848088c908432ec21cc4ce384a91d3971e3daa66cea88863b456
+MISC metadata.xml 249 SHA256 584f1dcf51866dc24a9abf7a89bfba0fad11dde81ae1c1b715da41770d233c99 SHA512 76a5a340b13f0053ca3c5e94ed24380ea8d29b45ac8655419e22eaadb1e4a827c04d2e7e36b65145c4964e6526f656618fc6ac144e277ef53cb7373e6239e3c3 WHIRLPOOL 200c07a8bf7c55b11b7936d5cd30e991a511684913334e72f59def66c0ced5fed0b4a8754e2d98bffbab631cb90d4e17fcccc59d5dcc5a8e988f69e47c85518c
diff --git a/media-gfx/kxstitch/kxstitch-2.0.0.ebuild b/media-gfx/kxstitch/kxstitch-2.0.0.ebuild
new file mode 100644
index 000000000000..32222fe706e3
--- /dev/null
+++ b/media-gfx/kxstitch/kxstitch-2.0.0.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+KDE_HANDBOOK="forceoptional"
+inherit kde5
+
+DESCRIPTION="Program to create cross stitch patterns"
+HOMEPAGE="https://userbase.kde.org/KXStitch"
+SRC_URI="mirror://kde/stable/${PN}/${PV}/src/${P}.tar.xz"
+
+LICENSE="GPL-2+"
+SLOT="5"
+KEYWORDS="~amd64"
+IUSE=""
+
+RDEPEND="
+ $(add_frameworks_dep kcompletion)
+ $(add_frameworks_dep kconfig)
+ $(add_frameworks_dep kconfigwidgets)
+ $(add_frameworks_dep kcoreaddons)
+ $(add_frameworks_dep ki18n)
+ $(add_frameworks_dep kio)
+ $(add_frameworks_dep ktextwidgets)
+ $(add_frameworks_dep kwidgetsaddons)
+ $(add_frameworks_dep kxmlgui)
+ $(add_qt_dep qtgui)
+ $(add_qt_dep qtprintsupport)
+ $(add_qt_dep qtwidgets)
+ $(add_qt_dep qtx11extras)
+ $(add_qt_dep qtxml)
+ media-gfx/imagemagick[cxx]
+ x11-libs/libX11
+ !media-gfx/kxstitch:4
+"
+DEPEND="${RDEPEND}
+ sys-devel/gettext
+"
diff --git a/media-gfx/kxstitch/metadata.xml b/media-gfx/kxstitch/metadata.xml
new file mode 100644
index 000000000000..2fdbf33d963d
--- /dev/null
+++ b/media-gfx/kxstitch/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 type="project">
+ <email>kde@gentoo.org</email>
+ <name>Gentoo KDE Project</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/media-gfx/libimagequant/Manifest b/media-gfx/libimagequant/Manifest
new file mode 100644
index 000000000000..5e6c895cabb0
--- /dev/null
+++ b/media-gfx/libimagequant/Manifest
@@ -0,0 +1,3 @@
+DIST libimagequant-2.10.1.tar.gz 70783 SHA256 c06f6d33611b90b57ed362752c9fe4819f6c51896b3024010f18744dc14ce0f7 SHA512 1cbb725e5f3774f931379f640c6532e169ea02a7b502a93af6b75a305e3dab1bd34a375391be0e8fdc15fea578715e8f8319d95d674383b7048e5f73e48b106f WHIRLPOOL 654407abec0b565b9ead32b427e2393be760a012eaba8d657c4b5fd9d75f729af98be5bcdeea99487419ef91d347dbb86598f3719992401ec49ee8adcef0e9a0
+EBUILD libimagequant-2.10.1.ebuild 1173 SHA256 2fcac4ccc4d676a41afcf37cf2b9a30c1517357d4d3d4f1bef42829c743f2b47 SHA512 8636368abd9bbc7e20d28c968e5fefdf3f8a8d11e5b7c6651a98bc79b724c34abdcf948c8deda9cb5ca421858d2dbb155c2a1079665e5224fbf82c7d48477a76 WHIRLPOOL 5b6690ef2c476f3cd8ccc31dd0be5dfdbf5a513acb2a1ce90626774f4b24b1fa4112eac534aa4f22b359c01f81c65d932564f8fbd68e5eb319bf5439097a16ed
+MISC metadata.xml 527 SHA256 e5f679f6e180c33ad547517e80a2b4617b2538bcca893663d4df6668338b2067 SHA512 82b458b27288b6b49df16d5778f6c75b492d958bcc1c2f2950dee741bfddc82f561be50f590d3f891bf736ee67e5325ae297bf49f99c769ca97ac68042beee11 WHIRLPOOL b6bf577e6acd77db703ceb12b25391fa4a6dbeabfb2ceb63e051e27c6dedc4c148bf71ffc1c94978988cb14df3ed6ea358b17679a90bb8ce890c2463392cb3a8
diff --git a/media-gfx/libimagequant/libimagequant-2.10.1.ebuild b/media-gfx/libimagequant/libimagequant-2.10.1.ebuild
new file mode 100644
index 000000000000..2392cd1682e3
--- /dev/null
+++ b/media-gfx/libimagequant/libimagequant-2.10.1.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit toolchain-funcs eutils
+
+DESCRIPTION="Palette quantization library that powers pngquant and other PNG optimizers"
+HOMEPAGE="https://pngquant.org/lib/"
+SRC_URI="https://github.com/ImageOptim/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
+IUSE="cpu_flags_x86_sse2 debug openmp static-libs"
+
+DEPEND=""
+RDEPEND="${DEPEND}"
+
+pkg_pretend() {
+ [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
+}
+
+src_configure() {
+ tc-export AR CC
+ # Hand rolled configure script, so not all flags are supported.
+ ./configure \
+ --prefix="${EPREFIX}/usr" \
+ $(use debug && echo --enable-debug) \
+ $(use_enable cpu_flags_x86_sse2 sse) \
+ $(use_with openmp) \
+ CFLAGS="${CFLAGS} ${CPPFLAGS}" \
+ LDFLAGS="${LDFLAGS}"
+}
+
+src_compile() {
+ emake shared || die "make failed"
+ use static-libs && (emake static || die "make failed")
+}
+
+src_install() {
+ dolib.so libimagequant.so
+ dolib.so libimagequant.so.*
+ use static-libs && dolib.a libimagequant.a
+ doheader libimagequant.h
+ einstalldocs
+}
diff --git a/media-gfx/libimagequant/metadata.xml b/media-gfx/libimagequant/metadata.xml
new file mode 100644
index 000000000000..b0caaab125ff
--- /dev/null
+++ b/media-gfx/libimagequant/metadata.xml
@@ -0,0 +1,15 @@
+<?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>
+ <longdescription lang="en">
+ Small, portable C library for high-quality conversion of RGBA
+ images to 8-bit indexed-color (palette) images.
+ </longdescription>
+ <upstream>
+ <remote-id type="github">ImageOptim/libimagequant</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/media-gfx/librecad/Manifest b/media-gfx/librecad/Manifest
new file mode 100644
index 000000000000..04befe227469
--- /dev/null
+++ b/media-gfx/librecad/Manifest
@@ -0,0 +1,13 @@
+AUX iota-fix-2.1.1.patch 264 SHA256 af0a5c29c79e8e5061a1a959689a4822093d86c129028807cd0c50a5774aab55 SHA512 fe9fa83e7bcaeaea01b08d3a294501f2738ec41a2433c154eabb3544b169aedcdd99525157473baa254b0890292185b17733c1e6a4810c633ed6cc1ec5d5e689 WHIRLPOOL 1550a73c903a535e0396a2cb03aabf0d325653f5703eec64a4076694f4d5cd440513f7276f4c19399be72952a77785eeadb21843edb1d246c756ab24f5063e41
+DIST librecad-2.0.3.zip 16590256 SHA256 4221348541c46c6e9698c1fa3471a14a81376e022a009a164a7f0d0035da4643 SHA512 c40952ae967d83197645bef65dac6e050ddeacf536401b2b99cd18d753462af086ac2a410c6746a92c094ad76fd9177a900c21531ed7b7fcdf1e4b0f7f070e00 WHIRLPOOL c2e1d33b17b7a47ffd9b3795ad292b22cb1225aceacf052494745243630b0537e21701930b9433ea235c462d65581efc2b5ccda3b37712d4ab639ab9bcc6a97d
+DIST librecad-2.0.9.zip 25524745 SHA256 3fd92e8249642462d41d688446393ee5e79f68b7b0d9878388c6c194af2cb43a SHA512 e2029389b2ced67a94d9411cb2f49f524ac12542409bc7829a043af9611dd51544fc431e364f4dcfb1a8b645b2bc6eb86fc74294726a65ee687f69bd7eb8f700 WHIRLPOOL 20aaa38cd92547bae6cee4b696f5b7f3699438481c5051af6112c6b1661ffb018509ff1fdcfb4591e8828c8ffcfcc5a3002c594dbcf95beba93e9768c5133c02
+DIST librecad-2.1.1.zip 26085717 SHA256 a5d27119ff137611c090fb174890ed1312c56897fb1482327d676da148fbd7dc SHA512 82b27e75fddae798da0e30e0c560d3769dfddab936e33a3585fd3e871eccf88e51c28d5ed938a530cb65c2e2ecfc593772ca83a2d23dd29126aa8225595f3d01 WHIRLPOOL 50ac34d0bdf1cd55ee6f7a959c1c1430197ac8acb7739755887b726349e39c9a1fe32ef25cab285aeaf649057701256f6210750c986ddb67ed3f338c80e300ed
+DIST librecad-2.1.3.zip 26086377 SHA256 f05af030c71192109c1472c6fd24696fcb564b2eb83ff9789b88bec2e93c10a3 SHA512 9a41c17b512ccbc1a0ebb0e6da8e7297663490479f042fadaffda819e371afc7fa49b789449df9fd4e36a2e2b6f95b9b5be19df47cf3c4252111db2a7ed7f009 WHIRLPOOL a0209b3513fd5f10e608795e34267d5efc7338996ba6cc485cbd9084200cb87fb8b51ab3f224520fc8c693c5ac3db8d049dde68011e8005922ad9c761625971c
+EBUILD librecad-2.0.3.ebuild 787 SHA256 a087564ddc87dfbba192a6dc0ba64c82377b2f1297e99b6b96426c529c7150c5 SHA512 5d34f9e791018f75a990d378f41c077458411d96ed40729a1b34afe527849e7fc3d245a02941dc95ce1582e3ffb935aec50efc926b57b98d3e5f48e7378b7325 WHIRLPOOL b6126b602a1b4cc6ff70716f6c9f55a2abd47bd8ded819c0d972067ee3a8ed2fe5cf866f870f3e7cccb273c03d35887585ed16a4208dc667beebec87c0e34d01
+EBUILD librecad-2.0.9-r1.ebuild 1374 SHA256 1600c97892b529ba6351b100a154900f48decb9760b2d0a69b497ac72b7e0b7c SHA512 c41f56a05b3f98f10947ec5c648796ad138fd9ae013e7b64045cc3a66ac74e075c962c02cbef5ee5e40f1597927a903fd5a177ebb3c84cd74efd7e4a8e97c2c5 WHIRLPOOL 1804543552d695fc241ecc801ace60ecbceae14949bda17d3acc8acc121fa3faffb085536921b5ef0e6eb2a10f8f3e53c2660b81dfcfdd79c46dcd9ebe92ad7e
+EBUILD librecad-2.1.1.ebuild 1418 SHA256 9429b50129a99a5e3dfa3cb260b6a6ae18506d93ae394297b3c191932efa2f33 SHA512 2080a1913324c030b6f7f3a2e21c96b894ec72ca335dc04c5594061d0a06637e9b40e7fae20920832012a5317baca4987971fe4e7cc86dea6c9cd40e4e2d9ded WHIRLPOOL 9427494ed2a759213afe6cdd7f9292b05832e86a7d724c43e71d13d42c670b65e4945edbaeb585cdcd245a2eeb39802099d07963d07f88acf2e5d5b84e1f7a79
+EBUILD librecad-2.1.3.ebuild 1420 SHA256 fe4eca56dab477f0f3095af4ca3e4227b969341d04dce2dccf05e3aaadf55a80 SHA512 27921a4c2358950008d22d970a5e5bc2362986fe84fa238f2bd550b29c1710793ef18e09d1bcee4e7440362dfcd2a817604f1a4a1836607de5428d820a9dfa70 WHIRLPOOL aade99001dc41e9258d8d652a29f2f56e29449db44e2d0596db27e0f2bfd6ffac4ac1191780e095ce6851cfa4b565c50b1b2c01a92ce5bc8630c75b8c086f135
+EBUILD librecad-9999.ebuild 1344 SHA256 9aad45475d3b78580db74de6c15b73b9d2e6266f687f4f19d1de769f3efa5a3b SHA512 722322ffaab726f066da0497261ba9d9f4eedab1f885e1d19b587bfbae5745cfde7399c24767f303a9c76a7d456d7564b3cc9d872b875be2a4cab8c499e6589d WHIRLPOOL 1d501cad46064352011e023664893101b5ec1b2209e154910f28d4fe539f46cfd6d2f28543185491901c7a62d1098426e8d1ab04d465001ac2b23d036b5cfbde
+MISC ChangeLog 4238 SHA256 cc0a3f5a63cb6a1d89c51b51c59c5aa9f87e66c3962de8799b51e9ed4256a045 SHA512 b00eeeb651418d48bef394da12b7d03ce690a4b48dc9af347a9548f093c784be0e9876ad2868442861ba939f3e881f3fcd4ade4ce1a1c66f73950c85975c8ead WHIRLPOOL f1d972276c6dd18bc67720ad2097d90cecd1b26fc3bb4388c3904ed33343bca20a425a2bc634a38c265a9c7ef64af31aec5e5e7a23590a9658f1cbfe6dfeb4cc
+MISC ChangeLog-2015 1255 SHA256 8defefb92b3ae4ff96ed33f893b761807d847860e604cf29f18eb181d83cb8fa SHA512 c33d1fe55743ad6bdca17ea9fc0bcead93f737f94271a05c7cd8b61ce2b099b12b9c1d8b9451f75a7139ad6735f09c8f34461f96855ef4078a3e14312617f2e6 WHIRLPOOL 2d0c89179f9d2ecafb0cd231bdc8f1a7dff078360cccb4497f7286d267aa1ac17bf3bf4ca82f344a1b44de03de9135ae5586ee1ec6340e8cd261fdd30d659132
+MISC metadata.xml 459 SHA256 31305378cdd40d478f8bf43aa4ce6d07beefac2f1e14b8bb21388f34a1caf6a6 SHA512 108977904dfb070a16279d3306f40982a73b1cdddfa90e8ab22f83c4a75cd620a829fea9a56a0290d2d160b1d30fd0fb67e320f526726dd57a613e781c700b6c WHIRLPOOL c250b0a2441112e9afd2770a75c22baa914f2c37ee1e026fa6f61cecd38ab3e3a2570b202f8ac0db09ba593c358e3072c165d9ff602999b575000d0391c0d568
diff --git a/media-gfx/librecad/files/iota-fix-2.1.1.patch b/media-gfx/librecad/files/iota-fix-2.1.1.patch
new file mode 100644
index 000000000000..12506f4b820d
--- /dev/null
+++ b/media-gfx/librecad/files/iota-fix-2.1.1.patch
@@ -0,0 +1,10 @@
+--- librecad/src/lib/engine/rs_spline.cpp.old 2016-06-20 20:43:27.000000000 +0200
++++ librecad/src/lib/engine/rs_spline.cpp 2016-09-05 13:23:25.459841304 +0200
+@@ -26,6 +26,7 @@
+
+ #include<iostream>
+ #include<cmath>
++#include<numeric>
+ #include "rs_spline.h"
+
+
diff --git a/media-gfx/librecad/librecad-2.0.3.ebuild b/media-gfx/librecad/librecad-2.0.3.ebuild
new file mode 100644
index 000000000000..c1767e4ccf78
--- /dev/null
+++ b/media-gfx/librecad/librecad-2.0.3.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit eutils qt4-r2
+
+DESCRIPTION="Generic 2D CAD program"
+HOMEPAGE="http://www.librecad.org/"
+SRC_URI="https://github.com/LibreCAD/LibreCAD/archive/${PV/_/}.zip -> ${P}.zip"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="debug doc tools"
+
+DEPEND="
+ dev-cpp/muParser
+ dev-qt/qtgui:4
+ dev-qt/qthelp:4
+ dev-qt/qtsvg:4
+ dev-libs/boost
+ media-libs/freetype
+ "
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/LibreCAD-${PV}"
+
+src_install() {
+ dobin unix/librecad
+ use tools && dobin unix/ttf2lff
+ insinto /usr/share/${PN}
+ doins -r unix/resources/*
+ use doc && dohtml -r librecad/support/doc/*
+ doicon librecad/res/main/${PN}.png
+ make_desktop_entry ${PN} LibreCAD ${PN} Graphics
+}
diff --git a/media-gfx/librecad/librecad-2.0.9-r1.ebuild b/media-gfx/librecad/librecad-2.0.9-r1.ebuild
new file mode 100644
index 000000000000..c1bc20456856
--- /dev/null
+++ b/media-gfx/librecad/librecad-2.0.9-r1.ebuild
@@ -0,0 +1,67 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit eutils qmake-utils
+
+DESCRIPTION="Generic 2D CAD program"
+HOMEPAGE="http://www.librecad.org/"
+SRC_URI="https://github.com/LibreCAD/LibreCAD/archive/${PV/_/}.zip -> ${P}.zip"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
+
+IUSE="3d debug doc tools qt4 +qt5"
+REQUIRED_USE="|| ( qt4 qt5 )"
+
+DEPEND="
+ qt4? (
+ dev-qt/qtcore:4
+ dev-qt/qtgui:4
+ dev-qt/qtsvg:4
+ dev-qt/qthelp:4
+ )
+ qt5? (
+ dev-qt/qtcore:5
+ dev-qt/qtgui:5
+ dev-qt/qthelp:5
+ dev-qt/qtprintsupport:5
+ dev-qt/qtsvg:5
+ dev-qt/qtwidgets:5
+ dev-qt/qtxml:5
+ )
+ dev-libs/boost:=
+ dev-cpp/muParser
+ media-libs/freetype:2"
+
+RDEPEND="${DEPEND}"
+S="${WORKDIR}/LibreCAD-${PV}"
+
+src_prepare() {
+ # currently RS_VECTOR3D causes an internal compiler error on GCC-4.8
+ if ! use 3d; then
+ sed -i -e '/RS_VECTOR2D/ s/^#//' librecad/src/src.pro || die
+ fi
+}
+
+src_configure() {
+ if use qt4; then
+ eqmake4 -r
+ else
+ eqmake5 -r
+ fi
+}
+
+src_install() {
+ dobin unix/librecad
+ use tools && dobin unix/ttf2lff
+ insinto /usr/share/${PN}
+ doins -r unix/resources/*
+ use doc && insinto html && dodoc -r librecad/support/doc/*
+ insinto /usr/share/appdata
+ doins unix/appdata/librecad.appdata.xml
+ doicon librecad/res/main/${PN}.png
+ make_desktop_entry ${PN} LibreCAD ${PN} Graphics
+}
diff --git a/media-gfx/librecad/librecad-2.1.1.ebuild b/media-gfx/librecad/librecad-2.1.1.ebuild
new file mode 100644
index 000000000000..87af2fd665b6
--- /dev/null
+++ b/media-gfx/librecad/librecad-2.1.1.ebuild
@@ -0,0 +1,69 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit eutils qmake-utils
+
+DESCRIPTION="Generic 2D CAD program"
+HOMEPAGE="http://www.librecad.org/"
+SRC_URI="https://github.com/LibreCAD/LibreCAD/archive/${PV/_/}.zip -> ${P}.zip"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
+
+IUSE="3d debug doc tools qt4 +qt5"
+REQUIRED_USE="|| ( qt4 qt5 )"
+
+DEPEND="
+ qt4? (
+ dev-qt/qtcore:4
+ dev-qt/qtgui:4
+ dev-qt/qtsvg:4
+ dev-qt/qthelp:4
+ )
+ qt5? (
+ dev-qt/qtcore:5
+ dev-qt/qtgui:5
+ dev-qt/qthelp:5
+ dev-qt/qtprintsupport:5
+ dev-qt/qtsvg:5
+ dev-qt/qtwidgets:5
+ dev-qt/qtxml:5
+ )
+ dev-libs/boost:=
+ dev-cpp/muParser
+ media-libs/freetype:2"
+
+RDEPEND="${DEPEND}"
+S="${WORKDIR}/LibreCAD-${PV}"
+
+src_prepare() {
+ epatch "${FILESDIR}/iota-fix-2.1.1.patch"
+
+ # currently RS_VECTOR3D causes an internal compiler error on GCC-4.8
+ if ! use 3d; then
+ sed -i -e '/RS_VECTOR2D/ s/^#//' librecad/src/src.pro || die
+ fi
+}
+
+src_configure() {
+ if use qt4; then
+ eqmake4 -r
+ else
+ eqmake5 -r
+ fi
+}
+
+src_install() {
+ dobin unix/librecad
+ use tools && dobin unix/ttf2lff
+ insinto /usr/share/${PN}
+ doins -r unix/resources/*
+ use doc && insinto html && dodoc -r librecad/support/doc/*
+ insinto /usr/share/appdata
+ doins unix/appdata/librecad.appdata.xml
+ doicon librecad/res/main/${PN}.png
+ make_desktop_entry ${PN} LibreCAD ${PN} Graphics
+}
diff --git a/media-gfx/librecad/librecad-2.1.3.ebuild b/media-gfx/librecad/librecad-2.1.3.ebuild
new file mode 100644
index 000000000000..5a20c3bc2c43
--- /dev/null
+++ b/media-gfx/librecad/librecad-2.1.3.ebuild
@@ -0,0 +1,69 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit eutils qmake-utils
+
+DESCRIPTION="Generic 2D CAD program"
+HOMEPAGE="http://www.librecad.org/"
+SRC_URI="https://github.com/LibreCAD/LibreCAD/archive/${PV/_/}.zip -> ${P}.zip"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
+
+IUSE="3d debug doc tools qt4 +qt5"
+REQUIRED_USE="|| ( qt4 qt5 )"
+
+DEPEND="
+ qt4? (
+ dev-qt/qtcore:4
+ dev-qt/qtgui:4
+ dev-qt/qtsvg:4
+ dev-qt/qthelp:4
+ )
+ qt5? (
+ dev-qt/qtcore:5
+ dev-qt/qtgui:5
+ dev-qt/qthelp:5
+ dev-qt/qtprintsupport:5
+ dev-qt/qtsvg:5
+ dev-qt/qtwidgets:5
+ dev-qt/qtxml:5
+ )
+ dev-libs/boost:=
+ dev-cpp/muParser
+ media-libs/freetype:2"
+
+RDEPEND="${DEPEND}"
+S="${WORKDIR}/LibreCAD-${PV}"
+
+src_prepare() {
+# epatch "${FILESDIR}/iota-fix-2.1.1.patch"
+
+ # currently RS_VECTOR3D causes an internal compiler error on GCC-4.8
+ if ! use 3d; then
+ sed -i -e '/RS_VECTOR2D/ s/^#//' librecad/src/src.pro || die
+ fi
+}
+
+src_configure() {
+ if use qt4; then
+ eqmake4 -r
+ else
+ eqmake5 -r
+ fi
+}
+
+src_install() {
+ dobin unix/librecad
+ use tools && dobin unix/ttf2lff
+ insinto /usr/share/${PN}
+ doins -r unix/resources/*
+ use doc && insinto html && dodoc -r librecad/support/doc/*
+ insinto /usr/share/appdata
+ doins unix/appdata/librecad.appdata.xml
+ doicon librecad/res/main/${PN}.png
+ make_desktop_entry ${PN} LibreCAD ${PN} Graphics
+}
diff --git a/media-gfx/librecad/librecad-9999.ebuild b/media-gfx/librecad/librecad-9999.ebuild
new file mode 100644
index 000000000000..4a1f2d51dc47
--- /dev/null
+++ b/media-gfx/librecad/librecad-9999.ebuild
@@ -0,0 +1,69 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit eutils git-r3 qmake-utils
+
+DESCRIPTION="Generic 2D CAD program"
+HOMEPAGE="http://www.librecad.org/"
+SRC_URI=""
+EGIT_REPO_URI="https://github.com/LibreCAD/LibreCAD.git"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS=""
+IUSE="3d debug doc tools qt4 +qt5"
+REQUIRED_USE="|| ( qt4 qt5 )"
+
+DEPEND="
+ qt4? (
+ dev-qt/qtcore:4
+ dev-qt/qtgui:4
+ dev-qt/qtsvg:4
+ dev-qt/qthelp:4
+ )
+ qt5? (
+ dev-qt/qtcore:5
+ dev-qt/qtgui:5
+ dev-qt/qthelp:5
+ dev-qt/qtprintsupport:5
+ dev-qt/qtsvg:5
+ dev-qt/qtwidgets:5
+ dev-qt/qtxml:5
+ )
+
+ dev-libs/boost
+ dev-cpp/muParser
+ media-libs/freetype"
+
+RDEPEND="${DEPEND}"
+S="${WORKDIR}/librecad-${PV}"
+
+src_prepare() {
+ # currently RS_VECTOR3D causes an internal compiler error on GCC-4.8
+ use 3d || sed -i -e '/RS_VECTOR2D/ s/^#//' librecad/src/src.pro || die
+}
+
+src_configure() {
+ if use qt4
+ then
+ eqmake4 -r
+ else
+ eqmake5 -r
+ fi
+}
+
+src_install() {
+ dobin unix/librecad
+ use tools && dobin unix/ttf2lff
+ insinto /usr/share
+ doins -r unix/appdata
+ insinto /usr/share/${PN}
+ doins -r unix/resources/*
+ use doc && dohtml -r librecad/support/doc/*
+ insinto /usr/share/appdata
+ doins unix/appdata/librecad.appdata.xml
+ doicon librecad/res/main/${PN}.png
+ make_desktop_entry ${PN} LibreCAD ${PN} Graphics
+}
diff --git a/media-gfx/librecad/metadata.xml b/media-gfx/librecad/metadata.xml
new file mode 100644
index 000000000000..56059e49ff58
--- /dev/null
+++ b/media-gfx/librecad/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>slis@gentoo.org</email>
+ </maintainer>
+ <use>
+ <flag name="3d">Require all 2D coordinates stored as 3D</flag>
+ <flag name="tools">Build additional tool programs: tff2lff</flag>
+ </use>
+ <upstream>
+ <remote-id type="github">LibreCAD/LibreCAD</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/media-gfx/llgal/Manifest b/media-gfx/llgal/Manifest
new file mode 100644
index 000000000000..91004a3aa100
--- /dev/null
+++ b/media-gfx/llgal/Manifest
@@ -0,0 +1,7 @@
+DIST llgal-0.13.17.tar.bz2 81365 SHA256 86c8a35ec3387ecfb69d3695611f384ce6cf4189ded02668c59c9e35e00390ce SHA512 2b100053a804985e7f59674e6a0886bffe5231cf3735a8dbbf7c8db56285a5a4ca88880299aac25d5cecb6a4f0cc024dc87fdf084eb281f7cb578f0d7cba5293 WHIRLPOOL 216b7dc933f72a0419579b71884f5e9e7084e0f5e1427d5d66b432adad108eb648c0d4a61c62d8ab5dbba0aa7ca0b3b4b3df4814f99aaec0271276c32b62f109
+DIST llgal-0.13.18.tar.bz2 81674 SHA256 362d52763c4abcd00e79db868ee4f496dfb22b0c884fb552d37cf26dcc40c225 SHA512 d01c1060616bb602af8b75aa5ae04384c19ed4bcc717112b9d5cfe48a9a823ce9ba381d675b4f4e89f35a56d7cbf580f27405fcb65b785e8ea6b6732784b0655 WHIRLPOOL 2953b277a693b94fa872455a180454d69d2f7b7498226f1463d07ce0d9251fafdc0f1ca9c439526722ea1030c9e737fafb537e1453257a4917848416b6ba0f4f
+EBUILD llgal-0.13.17-r2.ebuild 989 SHA256 c877b95b14c70f226c6f8189f575b92d60693c3e7ba985569b8fc03cb8b8ffc5 SHA512 60eef8c5d8faf580b5a4827baff2a9c5f09d40158766a10c620d164dcd2ac35faaae5cdb8727f4ddb54d1f261404af346eb058710f7c5ef7d1c4d5bef5af01bd WHIRLPOOL e0f880f8393d701ad7a3cb087cbc5081e38748a98162f320d344293c2bce88600f263b0646c24be7b3375a841b0edacdeda3f3b6c78e7941505a9df1435969bc
+EBUILD llgal-0.13.18.ebuild 991 SHA256 c3b01230226ca90228a4f2d680b4edbbd8f38d36445764e0e21a15acf86ab70c SHA512 0721ce4bbf924c37c8b086ebe1cc67df528aea356bab0f8b13b317507aa6e3df44893d37b993469c486df982577130796a3f11e9b5017c833541997ddc3238e1 WHIRLPOOL 44e4791cfb058a70e7c1399061e0bd54ba4282927c76ef96c507c1b57d416322e9695788ce98f9251677cfac14e542542f826c7db8a028fe9e660c6ee7b5ea15
+MISC ChangeLog 2943 SHA256 48eda49e5a9a6b6e1c65578afe7dd8222e0880a206d32888b2e9a5a7956444c8 SHA512 1ab0894720688ea70a2c95ae528daab188ef7d0972c9d9808e9bd6f059571c0121c0d7c8b6e7866b40cc3195d3b1dccbaee34ebea424c891689030b4db33b2f5 WHIRLPOOL bbc2d3caac6f0769002b7425b70f63fead58f97c85f7edd210971e43ba0321f40417457d7ba9cf138c0670b077213b4fcf6d73c9574d43d4e96c982e11aef88e
+MISC ChangeLog-2015 5589 SHA256 1b521fbb061e502c73790a7e36f86b2326981c0c30b9456ab65ebb10a982a016 SHA512 859fb409c7abe2c172682f270389ed8e744392b18ba94dc420b595c28eec10010108568d16066c449c2167662e16d438cd18527fe94afac4eab2e69fe79b5969 WHIRLPOOL f1fb923960080c6638ed9e67681509055393994af10b9f98178477a1db25b0962df6d9b74b28717699ed83849090d9ee63ee4f7c617ee4a3902e0b0eb4987051
+MISC metadata.xml 365 SHA256 88f67514e1b002040f63f8deb130a7cd370daf8297a292a053f95d150969d49b SHA512 2abbab6015809e7c8f484a40cfd646173763f54cec04f2aa71a550dcc8c4dde96f8d692d03de6280411b480a0597708da655eaf0005e3f8b4b87e65cbc44f04a WHIRLPOOL c389f31a4b34df7e387573385c505f080930a49b3c9bd853cdcbd4fe27bbfd0ced7e8a0fe488a19b3d81385c2cb868a121017ecaa283f4def292359ab33bb7fe
diff --git a/media-gfx/llgal/llgal-0.13.17-r2.ebuild b/media-gfx/llgal/llgal-0.13.17-r2.ebuild
new file mode 100644
index 000000000000..7b8763157a21
--- /dev/null
+++ b/media-gfx/llgal/llgal-0.13.17-r2.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit perl-module
+
+DESCRIPTION="Command-line static web gallery generator"
+HOMEPAGE="http://home.gna.org/llgal"
+SRC_URI="http://download.gna.org/llgal/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ~ppc x86"
+# Package warrants IUSE doc and possibly examples
+IUSE="exif"
+
+LINS="de en it fr"
+for i in ${LINS}; do
+ IUSE="${IUSE} linguas_${i}"
+done
+
+RDEPEND="media-gfx/imagemagick
+ dev-perl/Image-Size
+ dev-perl/URI
+ dev-perl/Locale-gettext
+ exif? ( media-libs/exiftool )"
+
+src_compile() {
+ emake PREFIX=/usr SYSCONFDIR=/etc MANDIR=/usr/share/man PERL_INSTALLDIRS=vendor
+ mv doc/llgalrc . || die
+}
+
+src_install() {
+ emake DESTDIR="${D}" LOCALES="${LINGUAS}" PREFIX=/usr SYSCONFDIR=/etc \
+ PERL_INSTALLDIRS=vendor MANDIR=/usr/share/man \
+ install install-doc install-man DOCDIR=/usr/share/doc/${PF}/html/
+ perl_delete_localpod
+ dodoc README llgalrc llgalrc.5
+}
diff --git a/media-gfx/llgal/llgal-0.13.18.ebuild b/media-gfx/llgal/llgal-0.13.18.ebuild
new file mode 100644
index 000000000000..4f2f61309ae9
--- /dev/null
+++ b/media-gfx/llgal/llgal-0.13.18.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit perl-module
+
+DESCRIPTION="Command-line static web gallery generator"
+HOMEPAGE="http://home.gna.org/llgal"
+SRC_URI="http://download.gna.org/llgal/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+# Package warrants IUSE doc and possibly examples
+IUSE="exif"
+
+LINS="de en it fr"
+for i in ${LINS}; do
+ IUSE="${IUSE} linguas_${i}"
+done
+
+RDEPEND="media-gfx/imagemagick
+ dev-perl/Image-Size
+ dev-perl/URI
+ dev-perl/Locale-gettext
+ exif? ( media-libs/exiftool )"
+
+src_compile() {
+ emake PREFIX=/usr SYSCONFDIR=/etc MANDIR=/usr/share/man PERL_INSTALLDIRS=vendor
+ mv doc/llgalrc . || die
+}
+
+src_install() {
+ emake DESTDIR="${D}" LOCALES="${LINGUAS}" PREFIX=/usr SYSCONFDIR=/etc \
+ PERL_INSTALLDIRS=vendor MANDIR=/usr/share/man \
+ install install-doc install-man DOCDIR=/usr/share/doc/${PF}/html/
+ perl_delete_localpod
+ dodoc README llgalrc llgalrc.5
+}
diff --git a/media-gfx/llgal/metadata.xml b/media-gfx/llgal/metadata.xml
new file mode 100644
index 000000000000..3d74052b04be
--- /dev/null
+++ b/media-gfx/llgal/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="person">
+ <email>aballier@gentoo.org</email>
+ <name>Alexis Ballier</name>
+</maintainer>
+<maintainer type="project">
+ <email>graphics@gentoo.org</email>
+ <name>Gentoo Graphics Project</name>
+</maintainer>
+</pkgmetadata>
diff --git a/media-gfx/luminance-hdr/Manifest b/media-gfx/luminance-hdr/Manifest
new file mode 100644
index 000000000000..ae68952d701e
--- /dev/null
+++ b/media-gfx/luminance-hdr/Manifest
@@ -0,0 +1,11 @@
+AUX luminance-hdr-2.3.1-docs.patch 707 SHA256 f5d06bbbcd22932aa7de94ad8b8c78856e4af701a44043c9b03d1286aecb842a SHA512 7353952c2caf30903e4abe7754fee0afbfeb5d0b22a4390c63c9ae24acc84fa0d3ee02556e03edee87ddb76d436b7f431cc42324cabb6c33e5e4077a1b41e334 WHIRLPOOL 4ee90f4f11357a8e3ed444302a3820f5437fc11c878b918ed10255f5ad6b5b6d2201f6781056677091a23c99aea3317db1384a85a4e3bf6122d83b810b3e77fe
+AUX luminance-hdr-2.3.1-no-git.patch 2158 SHA256 974a374aef51705bfd8d7de63b3f73735e67a9081e570ce7f0c89f44989fa190 SHA512 6c76df05c9bbdba35c4655c188b7f652c66a869f3e9bd9615b88b001cfc8cea3b4cd1d9d0d662ccb4d54cc7d05a531e01cd5a45470272b04af21115027c2a5a2 WHIRLPOOL cacef71102c9673cfe5d4dd0a2f1f53df5a204c70448fed02cfe2f72ac7f2e6a7522965cae7f80b3723af57e07de4cd322a4ced6e67a310bfa661112d0f66877
+AUX luminance-hdr-2.3.1-openmp-automagic.patch 1646 SHA256 baa046412da52061a52f27b18a664af09533b746af75408bf02cee91f6ecf598 SHA512 a7b66a3aa836daf8751b20c126b7f8eaf8d38798e6d7b1a3484b0ec9eb89ab5d099af2d7331d9600ecc7a73b803c51a0cd56907acae2a3a5ed8db0b922819b95 WHIRLPOOL 289e2d3611494add324cbb48df604647106a3c13b64f9d57cff66e08933cdd6a9b6e46f991da3135a04e8cc2f1920fe020077f2727a9c23cffa11207276dd66f
+AUX luminance-hdr-2.4.0-fits-automagic.patch 1052 SHA256 f05740a005fba37e2e99d8c123986960b9c1e7298e82836c6cced8d8205aa400 SHA512 4aab01ea5e67726a5d15cd0056f1193262227fa653e65a7dd06e3f809837cf217f71e7bbdb5bc3ce54554a97475a0c42b454ba87ed26d33d55e6c17586a48546 WHIRLPOOL 070958a51a4e9153d55f24b09efd9cdb9772dcb6812245ac5449c4a063a93782c1caf1428884be4c0de834bbfa9a9dcd82fd5dffb5ec390cd0207973ccefe00b
+AUX luminance-hdr-2.4.0-qtprinter.patch 3275 SHA256 a12139e8f125ef19c8bfb63ce43f7438b129370cef3208d6cda5220823f21ebd SHA512 8ad9056355f19fb74e099321a258b2aca3b9c2aaccd1769b4c7353b999ac881cbfac16f24a5455b21266d5d9b95ecd10b59e5b1f8d72e03143d568016685ff17 WHIRLPOOL 15e2d5d19f6f10888b061ce61c1a9c446601414916145dcc0a905f2cfa3bfea5fd6ce65525fa5e9d0b3807433f462776469cf68d0768dac629d83747208de17a
+AUX luminance-hdr-2.4.0-qtquick.patch 447 SHA256 6312bc9711b61c079407659a3e3eb68e502f157f11d38781c8049df7ab4f920e SHA512 71bcc28001970afffd562515f5dde8bbda2c2b28a5915814fe1d17feef34cf1b380bdfff4589ac7d7886f35c7b5ea28df19080c5d682f76789422be7be2494d0 WHIRLPOOL 0a2e5c870e4fbdf5c13f62fa1589c504429b1ef68ea840f9bdd3af6f508513cccc5592d7937fad14f772ec6ab493b2d03dbe631800fedef55e565d580cbb7da5
+DIST luminance-hdr-2.4.0.tar.bz2 10507522 SHA256 14014eadab099944f051dd99447f6f47d455ffb0e4e0272d93a8e71fd96ad401 SHA512 aa14a13d12ba382f5f8dcb79a57aa68864678db62f036ac2d8b8959da76f20b938481932a6fff3861eb6dbc5a1d4f06bc1f3e3ca9a6ce4f7a27a9db736aa8702 WHIRLPOOL 24c377d8f0b420fde96b1e9055d631668c8285068cec7d5763e94ac91ad24bae2d1cd74ee55b25a28142aaa6ddf3761159ccf28044b690ce817251699234eb8f
+EBUILD luminance-hdr-2.4.0.ebuild 2035 SHA256 07c4e57abc9a800f4ec34a7fc83d3ace76084f617e46fb28a694a666618bb84c SHA512 aae741060700942ccb7ba9fbb1d01ecaa993711154635de04a7cc928e8e7f8ea976823e1f05664c247184482c117c03809399d872838c6064d19049214589d00 WHIRLPOOL b9905e25210a3c06bd4ff46e9b05b5a9a81f319f966d786d42e3fc6c9b6e23a60d54afe89c3b2ea92ec763b04a48c576222bcb86cd06348beeb952e5032e43c0
+MISC ChangeLog 3296 SHA256 9eec18d1088bd8d7b6ad354fc527564801c091f00cd9ff51ccd2953c3ef38f1a SHA512 8f94918886bce403a374779e051552db3c615b47bddbcb2dcedc36c60b115014ceab83cafd45a951e71725bf1468bed5f0e2c7f34cf1df9e97f5d8a0ffa96308 WHIRLPOOL 24a3bb562cf2acbb6462460d62b297fb0b42e664a24ef06daaee55ba4e2f0d4eddfa804f8ed5e2ee44d586ed56ec799b2245b3a83d5700d72d227db65f2247da
+MISC ChangeLog-2015 8806 SHA256 4d44e83641f40b4e6fa54adc784ccdd03e94d2f392eb8c9cdebc46a94cdae576 SHA512 4b962d245059192adb6449705dfd919c8530a913b85dbb814c60a18d8eb057c19c16e05cbb1923f889e9f92647d9e90b67e4c55fc02d9bc1ce9dfac16bfce1f7 WHIRLPOOL 475e4156e2bce04ca8490a29f2546bbe450dffb26bfaf94c623966edabe337de0fe81ac878d6d7561248bb5a45d63f6c0e566996d06cf03af35e4c83df465169
+MISC metadata.xml 1276 SHA256 7b1d33ee34668419690661d948179cc84d77025aa036f2351d993e6c18fca4a3 SHA512 f1c9daadf3632c1f22297fe5987484a72cb7f0fa3f0758883c7d3c4fe798a6cad7838b855267b1ccc4ca74574692d915e725940c77e9891652a7cc80604a2597 WHIRLPOOL be4a845b60f9a08b4fdc3aa7879b6c7351c5b4cfed6dfbce5518334bf05a95cb7f54ba60b1f97cdafbdbe000eab37193f87edeea755c3cf7c3842e8d3bb82204
diff --git a/media-gfx/luminance-hdr/files/luminance-hdr-2.3.1-docs.patch b/media-gfx/luminance-hdr/files/luminance-hdr-2.3.1-docs.patch
new file mode 100644
index 000000000000..514ded782204
--- /dev/null
+++ b/media-gfx/luminance-hdr/files/luminance-hdr-2.3.1-docs.patch
@@ -0,0 +1,17 @@
+Don't install extra docs and fix install dir.
+
+--- luminance-hdr-2.3.1/CMakeLists.txt
++++ luminance-hdr-2.3.1/CMakeLists.txt
+@@ -250,12 +250,6 @@
+
+ INSTALL(FILES ${CMAKE_SOURCE_DIR}/images/luminance-hdr.png DESTINATION share/icons/hicolor/48x48/apps) # icon
+ INSTALL(FILES ${CMAKE_SOURCE_DIR}/luminance-hdr.desktop DESTINATION share/applications) #desktop entry
+- INSTALL(FILES
+- ${CMAKE_SOURCE_DIR}/AUTHORS
+- ${CMAKE_SOURCE_DIR}/README
+- ${CMAKE_SOURCE_DIR}/LICENSE
+- ${CMAKE_SOURCE_DIR}/Changelog
+- DESTINATION share/luminance-hdr) #info files
+ INSTALL(DIRECTORY ${CMAKE_SOURCE_DIR}/help DESTINATION share/luminance-hdr) # help directory
+ # Microsoft Windows
+ ELSEIF(WIN32)
diff --git a/media-gfx/luminance-hdr/files/luminance-hdr-2.3.1-no-git.patch b/media-gfx/luminance-hdr/files/luminance-hdr-2.3.1-no-git.patch
new file mode 100644
index 000000000000..fe95265a6849
--- /dev/null
+++ b/media-gfx/luminance-hdr/files/luminance-hdr-2.3.1-no-git.patch
@@ -0,0 +1,54 @@
+Don't try to define the git version of the release.
+
+--- luminance-hdr-2.3.1/CMakeLists.txt
++++ luminance-hdr-2.3.1/CMakeLists.txt
+@@ -32,12 +32,6 @@
+ ${QT_QTCORE_LIBRARIES} ${QT_QTGUI_LIBRARIES} ${QT_QTNETWORK_LIBRARIES}
+ ${QT_QTWEBKIT_LIBRARIES} ${QT_QTXML_LIBRARIES} ${QT_QTSQL_LIBRARIES})
+
+-FIND_PACKAGE(Git)
+-IF(GIT_FOUND)
+- include(GetGitRevisionDescription)
+- get_git_head_revision(GIT_REFSPEC GIT_SHA1)
+-ENDIF()
+-
+ IF(WIN32)
+ # Windows Section
+
+--- luminance-hdr-2.3.1.orig/src/Common/CMakeLists.txt
++++ luminance-hdr-2.3.1/src/Common/CMakeLists.txt
+@@ -1,5 +1,3 @@
+-CONFIGURE_FILE( ${CMAKE_CURRENT_SOURCE_DIR}/GitSHA1.cpp.in
+- ${CMAKE_CURRENT_BINARY_DIR}/GitSHA1.cpp @ONLY)
+ CONFIGURE_FILE( ${CMAKE_CURRENT_SOURCE_DIR}/global.hxx.in
+ ${CMAKE_CURRENT_BINARY_DIR}/global.hxx @ONLY)
+ CONFIGURE_FILE( ${CMAKE_CURRENT_SOURCE_DIR}/config.h.in
+@@ -32,8 +30,7 @@
+
+ ADD_LIBRARY(common ${FILES_H} ${FILES_CPP} ${FILES_MOC} ${FILES_HXX} ${FILES_UI_H}
+ ${CMAKE_CURRENT_BINARY_DIR}/global.hxx
+- ${CMAKE_CURRENT_BINARY_DIR}/config.h
+- ${CMAKE_CURRENT_BINARY_DIR}/GitSHA1.cpp)
++ ${CMAKE_CURRENT_BINARY_DIR}/config.h)
+
+ SET(FILES_TO_TRANSLATE ${FILES_TO_TRANSLATE} ${FILES_CPP} ${FILES_H} ${FILES_UI} ${FILES_HXX} PARENT_SCOPE)
+ SET(LUMINANCE_MODULES_GUI ${LUMINANCE_MODULES_GUI} common PARENT_SCOPE)
+--- luminance-hdr-2.3.1.orig/src/UI/UMessageBox.cpp
++++ luminance-hdr-2.3.1/src/UI/UMessageBox.cpp
+@@ -28,7 +28,6 @@
+
+ #include "UI/UMessageBox.h"
+
+-#include "Common/GitSHA1.h"
+ #include "Common/config.h"
+ #include "Common/archs.h"
+ #include "ui_about.h"
+@@ -92,7 +91,7 @@
+ ui.authorsBox->setOpenExternalLinks(true);
+ ui.thanksToBox->setOpenExternalLinks(true);
+ ui.GPLbox->setTextInteractionFlags(Qt::TextSelectableByMouse);
+- ui.label_version->setText(ui.label_version->text().append(QString(LUMINANCEVERSION)).append(" [Build ").append(QString(g_GIT_SHA1).left(6)).append("]"));
++ ui.label_version->setText(ui.label_version->text().append(QString(LUMINANCEVERSION)));
+
+ bool license_file_not_found=true;
+ QString docDir = QCoreApplication::applicationDirPath();
diff --git a/media-gfx/luminance-hdr/files/luminance-hdr-2.3.1-openmp-automagic.patch b/media-gfx/luminance-hdr/files/luminance-hdr-2.3.1-openmp-automagic.patch
new file mode 100644
index 000000000000..69fa0324c6ad
--- /dev/null
+++ b/media-gfx/luminance-hdr/files/luminance-hdr-2.3.1-openmp-automagic.patch
@@ -0,0 +1,40 @@
+Only use openmp support if explicitly enabled.
+
+--- luminance-hdr-2.3.1/cmake/CompilerSettings.cmake
++++ luminance-hdr-2.3.1/cmake/CompilerSettings.cmake
+@@ -8,6 +8,8 @@
+ ENDIF()
+ ENDIF()
+
++OPTION(USE_OPENMP "Use openmp threading support." ON)
++
+ #Activate C++11 support, when available
+ if("${CMAKE_CXX_COMPILER_ID}" MATCHES "GNU")
+ execute_process(COMMAND ${CMAKE_CXX_COMPILER} -dumpversion OUTPUT_VARIABLE GCC_VERSION)
+@@ -39,16 +41,18 @@
+ endif()
+
+ #OpenMP Support under Linux, Windows with MSVC & MacOS X with GCC >= 4.3
+-IF(MSVC)
+- FIND_PACKAGE(OpenMP REQUIRED)
+- SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OpenMP_CXX_FLAGS}")
+- SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${OpenMP_C_FLAGS}")
+-ELSEIF(CMAKE_COMPILER_IS_GNUCC AND UNIX)
+- EXECUTE_PROCESS(COMMAND ${CMAKE_CXX_COMPILER} -dumpversion OUTPUT_VARIABLE GCC_VERSION)
+- IF(GCC_VERSION VERSION_GREATER 4.3 OR GCC_VERSION VERSION_EQUAL 4.3)
+- MESSAGE(STATUS "GCC >= 4.3")
++IF(USE_OPENMP)
++ IF(MSVC)
+ FIND_PACKAGE(OpenMP REQUIRED)
+ SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OpenMP_CXX_FLAGS}")
+ SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${OpenMP_C_FLAGS}")
++ ELSEIF(CMAKE_COMPILER_IS_GNUCC AND UNIX)
++ EXECUTE_PROCESS(COMMAND ${CMAKE_CXX_COMPILER} -dumpversion OUTPUT_VARIABLE GCC_VERSION)
++ IF(GCC_VERSION VERSION_GREATER 4.3 OR GCC_VERSION VERSION_EQUAL 4.3)
++ MESSAGE(STATUS "GCC >= 4.3")
++ FIND_PACKAGE(OpenMP REQUIRED)
++ SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OpenMP_CXX_FLAGS}")
++ SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${OpenMP_C_FLAGS}")
++ ENDIF()
+ ENDIF()
+ ENDIF()
diff --git a/media-gfx/luminance-hdr/files/luminance-hdr-2.4.0-fits-automagic.patch b/media-gfx/luminance-hdr/files/luminance-hdr-2.4.0-fits-automagic.patch
new file mode 100644
index 000000000000..e586c400e42e
--- /dev/null
+++ b/media-gfx/luminance-hdr/files/luminance-hdr-2.4.0-fits-automagic.patch
@@ -0,0 +1,36 @@
+Only use FITS support if explicitly enabled.
+
+--- luminance-hdr-2.4.0/CMakeLists.txt
++++ luminance-hdr-2.4.0/CMakeLists.txt
+@@ -10,6 +10,8 @@
+ include(cmake/CompilerSettings.cmake)
+ include(cmake/Internationalization.cmake)
+
++OPTION(USE_FITS "Enable FITS support." ON)
++
+ # find and setup Qt5 for this project
+
+ # Tell CMake to run moc when necessary:
+@@ -122,13 +124,15 @@
+ INCLUDE_DIRECTORIES(${JPEGLIB_INCLUDE_DIR})
+ INCLUDE_DIRECTORIES(${LCMS2_INCLUDE_DIR})
+
+-FIND_PACKAGE(CCfits)
+-IF(CCFITS_FOUND)
+- INCLUDE_DIRECTORIES(${CCFITS_INCLUDE_DIRS})
+- SET(LIBS ${LIBS} ${CCFITS_LIBRARIES})
+- ADD_DEFINITIONS(-DHAVE_CCFITS)
+-ELSE()
+- message(WARNING "CCfits not found! Building without FITS support!")
++IF(USE_FITS)
++ FIND_PACKAGE(CCfits REQUIRED)
++ IF(CCFITS_FOUND)
++ INCLUDE_DIRECTORIES(${CCFITS_INCLUDE_DIRS})
++ SET(LIBS ${LIBS} ${CCFITS_LIBRARIES})
++ ADD_DEFINITIONS(-DHAVE_CCFITS)
++ ELSE()
++ MESSAGE(FATAL_ERROR "CCfits not found!")
++ ENDIF()
+ ENDIF()
+
+ SET(LIBS ${LIBS} ${OPENEXR_LIBRARIES})
diff --git a/media-gfx/luminance-hdr/files/luminance-hdr-2.4.0-qtprinter.patch b/media-gfx/luminance-hdr/files/luminance-hdr-2.4.0-qtprinter.patch
new file mode 100644
index 000000000000..c619308f8134
--- /dev/null
+++ b/media-gfx/luminance-hdr/files/luminance-hdr-2.4.0-qtprinter.patch
@@ -0,0 +1,99 @@
+From 07e36ef892343b01bf13545866823e6a55044382 Mon Sep 17 00:00:00 2001
+From: Davide Anastasia <davide.anastasia@gmail.com>
+Date: Mon, 29 Sep 2014 08:06:15 +0100
+Subject: [PATCH] Fix QPrinter support
+
+---
+ CMakeLists.txt | 25 +++++++++++++------------
+ src/HelpBrowser/CMakeLists.txt | 3 +--
+ src/HelpBrowser/helpbrowser.cpp | 8 +++++---
+ 3 files changed, 19 insertions(+), 17 deletions(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 1b07692..8a60ad4 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -18,19 +18,20 @@ include(cmake/Internationalization.cmake)
+ # to always look for includes there:
+ #set(CMAKE_INCLUDE_CURRENT_DIR ON)
+
+-find_package(Qt5Core)
+-find_package(Qt5Concurrent)
+-find_package(Qt5Widgets)
+-find_package(Qt5Gui)
+-find_package(Qt5Declarative)
+-find_package(Qt5WebKit)
+-find_package(Qt5WebKitWidgets)
+-find_package(Qt5Xml)
+-find_package(Qt5Sql)
+-find_package(Qt5Network)
+-find_package(Qt5LinguistTools)
++find_package(Qt5Core REQUIRED)
++find_package(Qt5Concurrent REQUIRED)
++find_package(Qt5Widgets REQUIRED)
++find_package(Qt5Gui REQUIRED)
++find_package(Qt5Declarative REQUIRED)
++find_package(Qt5WebKit REQUIRED)
++find_package(Qt5WebKitWidgets REQUIRED)
++find_package(Qt5Xml REQUIRED)
++find_package(Qt5Sql REQUIRED)
++find_package(Qt5Network REQUIRED)
++find_package(Qt5LinguistTools REQUIRED)
++find_package(Qt5PrintSupport REQUIRED)
+ IF(WIN32)
+- find_package(Qt5WinExtras)
++ find_package(Qt5WinExtras)
+ ENDIF()
+
+ # Include the qtmain lib if we are on the windows platform
+diff --git a/src/HelpBrowser/CMakeLists.txt b/src/HelpBrowser/CMakeLists.txt
+index 04319a8..2f4916a 100644
+--- a/src/HelpBrowser/CMakeLists.txt
++++ b/src/HelpBrowser/CMakeLists.txt
+@@ -27,9 +27,8 @@ INCLUDE_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR})
+ QT5_WRAP_CPP(FILES_MOC ${FILES_H})
+ QT5_WRAP_UI(FILES_UI_H ${FILES_UI})
+
+-
+ ADD_LIBRARY(helpbrowser ${FILES_H} ${FILES_CPP} ${FILES_MOC} ${FILES_UI_H} ${FILES_HXX})
+-qt5_use_modules(helpbrowser Core Concurrent Gui Widgets Xml WebKit WebKitWidgets)
++qt5_use_modules(helpbrowser Core Concurrent Gui Widgets Xml WebKit WebKitWidgets PrintSupport)
+
+ SET(FILES_TO_TRANSLATE ${FILES_TO_TRANSLATE} ${FILES_CPP} ${FILES_H} ${FILES_UI} ${FILES_HXX} PARENT_SCOPE)
+ SET(LUMINANCE_MODULES_GUI ${LUMINANCE_MODULES_GUI} helpbrowser PARENT_SCOPE)
+diff --git a/src/HelpBrowser/helpbrowser.cpp b/src/HelpBrowser/helpbrowser.cpp
+index bfd2820..ce7f984 100644
+--- a/src/HelpBrowser/helpbrowser.cpp
++++ b/src/HelpBrowser/helpbrowser.cpp
+@@ -30,6 +30,7 @@ for which a new license (GPL+exception) is in place.
+ #include "ui_HelpBrowser.h"
+ #include "ui_HelpSideBar.h"
+
++#include <QDebug>
+ #include <QAction>
+ #include <QBuffer>
+ #include <QDir>
+@@ -45,8 +46,6 @@ for which a new license (GPL+exception) is in place.
+ #include <QModelIndex>
+ #include <QModelIndexList>
+ #include <QPainter>
+-#include <QPrinter>
+-#include <QPrintDialog>
+ #include <QProcess>
+ #include <QPushButton>
+ #include <QString>
+@@ -56,7 +55,10 @@ for which a new license (GPL+exception) is in place.
+ #include <QXmlDefaultHandler>
+ #include <QDesktopServices>
+
+-#include <QDebug>
++#include <QtPrintSupport/QPrinter>
++#include <QtPrintSupport/QPrintDialog>
++
++
+
+ #include "Common/global.h"
+ #include "HelpBrowser/schelptreemodel.h"
+--
+2.2.2
+
diff --git a/media-gfx/luminance-hdr/files/luminance-hdr-2.4.0-qtquick.patch b/media-gfx/luminance-hdr/files/luminance-hdr-2.4.0-qtquick.patch
new file mode 100644
index 000000000000..6e1fc2f16ea0
--- /dev/null
+++ b/media-gfx/luminance-hdr/files/luminance-hdr-2.4.0-qtquick.patch
@@ -0,0 +1,13 @@
+Gentoo has a Qt5Quick cmake module instead of a Qt5Declarative one.
+
+--- luminance-hdr-2.4.0/CMakeLists.txt
++++ luminance-hdr-2.4.0/CMakeLists.txt
+@@ -22,7 +22,7 @@
+ find_package(Qt5Concurrent REQUIRED)
+ find_package(Qt5Widgets REQUIRED)
+ find_package(Qt5Gui REQUIRED)
+-find_package(Qt5Declarative REQUIRED)
++find_package(Qt5Quick REQUIRED)
+ find_package(Qt5WebKit REQUIRED)
+ find_package(Qt5WebKitWidgets REQUIRED)
+ find_package(Qt5Xml REQUIRED)
diff --git a/media-gfx/luminance-hdr/luminance-hdr-2.4.0.ebuild b/media-gfx/luminance-hdr/luminance-hdr-2.4.0.ebuild
new file mode 100644
index 000000000000..a93564958984
--- /dev/null
+++ b/media-gfx/luminance-hdr/luminance-hdr-2.4.0.ebuild
@@ -0,0 +1,86 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit cmake-utils toolchain-funcs eutils flag-o-matic
+
+MY_P=${P/_/.}
+DESCRIPTION="Luminance HDR is a graphical user interface that provides a workflow for HDR imaging"
+HOMEPAGE="http://qtpfsgui.sourceforge.net https://github.com/LuminanceHDR/LuminanceHDR"
+SRC_URI="mirror://sourceforge/qtpfsgui/${MY_P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+LANGS=" cs de es fi fr hi hu id it pl ro ru sk tr zh"
+IUSE="cpu_flags_x86_sse2 fits openmp test ${LANGS// / linguas_}"
+
+RDEPEND="
+ dev-libs/boost:0=
+ dev-qt/qtconcurrent:5
+ dev-qt/qtcore:5
+ dev-qt/qtdeclarative:5
+ dev-qt/qtgui:5
+ dev-qt/qtnetwork:5
+ dev-qt/qtprintsupport:5
+ dev-qt/qtsql:5
+ dev-qt/qtwebkit:5
+ >=media-gfx/exiv2-0.14:0=
+ media-libs/lcms:2
+ media-libs/libpng:0=
+ >=media-libs/libraw-0.13.4:=
+ media-libs/ilmbase:=
+ >=media-libs/openexr-1.2.2-r2:=
+ >=media-libs/tiff-3.8.2-r2:0
+ sci-libs/fftw:3.0[threads]
+ fits? ( sci-libs/ccfits )
+ sci-libs/gsl
+ virtual/jpeg:0
+"
+DEPEND="${RDEPEND}
+ dev-qt/linguist-tools:5
+ test? ( dev-cpp/gtest )
+"
+
+DOCS=( AUTHORS BUGS Changelog README TODO )
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-2.3.1-no-git.patch
+ "${FILESDIR}"/${PN}-2.3.1-docs.patch
+ "${FILESDIR}"/${PN}-2.3.1-openmp-automagic.patch
+ "${FILESDIR}"/${P}-fits-automagic.patch
+ "${FILESDIR}"/${P}-qtprinter.patch
+ "${FILESDIR}"/${P}-qtquick.patch
+)
+
+pkg_pretend() {
+ if use cpu_flags_x86_sse2 ; then
+ append-flags -msse2
+ else
+ eerror "This package requires a CPU supporting the SSE2 instruction set."
+ die "SSE2 support missing"
+ fi
+
+ if use openmp ; then
+ tc-has-openmp || die "Please switch to an openmp compatible compiler"
+ fi
+}
+
+src_configure() {
+ mycmakeargs=(
+ $(cmake-utils_use_use openmp OPENMP)
+ $(cmake-utils_use_use fits FITS)
+ )
+ cmake-utils_src_configure
+}
+
+src_install() {
+ cmake-utils_src_install
+
+ for lang in ${LANGS} ; do
+ if ! use linguas_${lang} ; then
+ rm -f "${D}"/usr/share/${PN}/i18n/{lang,qt}_${lang}.qm || die
+ fi
+ done
+}
diff --git a/media-gfx/luminance-hdr/metadata.xml b/media-gfx/luminance-hdr/metadata.xml
new file mode 100644
index 000000000000..0f31a61b3177
--- /dev/null
+++ b/media-gfx/luminance-hdr/metadata.xml
@@ -0,0 +1,38 @@
+<?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>
+ <longdescription lang="en">
+ Qtpfsgui is an open source graphical user interface application that aims
+ to provide a workflow for HDR imaging.
+
+ Supported HDR formats:
+ * OpenEXR (extension: exr)
+ * Radiance RGBE (extension: hdr)
+ * Tiff formats: 16bit, 32bit (float) and LogLuv (extension: tiff)
+ * Raw image formats (extension: various)
+ * PFS native format (extension: pfs)
+
+ Supported LDR formats:
+ * JPEG, PNG, PPM, PBM, TIFF(8 bit)
+
+ Supported features:
+ * Create an HDR file from a set of images (formats: JPEG, TIFF 8bit and
+ 16bit, RAW) of the same scene taken at different exposure setting.
+ * Save and load HDR images.
+ * Rotate and resize HDR images.
+ * Tonemap HDR images.
+ * Copy exif data between sets of images.
+ * Supports internationalization.
+ </longdescription>
+ <use>
+ <flag name="fits">Enable support for the FITS format</flag>
+ </use>
+ <upstream>
+ <remote-id type="github">LuminanceHDR/LuminanceHDR</remote-id>
+ <remote-id type="sourceforge">qtpfsgui</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/media-gfx/lximage-qt/Manifest b/media-gfx/lximage-qt/Manifest
new file mode 100644
index 000000000000..14be286ec1e5
--- /dev/null
+++ b/media-gfx/lximage-qt/Manifest
@@ -0,0 +1,7 @@
+DIST lximage-qt-0.4.0.tar.xz 43716 SHA256 11abc99b0946e6254aad42cb3e29349dc6199879be0728418e7bc81200d59730 SHA512 6b07e16534b835da60f5845c801cad0bdd381b6deb79ad99fc44afb9b776deb3cf76c85c9e4b59ba4148d71e894f659743c002ea4baf5589e8d261eb1a19b1fa WHIRLPOOL 7db84a9fe83057ec05a9b363f7c64c0302f9fc9c1f5e62aec84520bd6a481dce709f671fdcfef46f64a89143c34457f8955d05df2641b7b29487eb3056c825ef
+DIST lximage-qt-0.5.0.tar.xz 36068 SHA256 bd67b8b81a25d8ecd858787af87bc97256f15821ff4f1bb3efcfd214e2929066 SHA512 632399781614a9d62429ed1b31515c2a87cdf1c61ab26bfc8d566654a31eccfa66ae069cd18604f380a9fc8d8700aa73a2c71be16bc32775caeef211eb955b21 WHIRLPOOL f94508fff2d85cb92982bb20405145aabba2d431b9b98037d76a68150ff13334e3d2a970c2391dc6d923468ed89ecb14ff1fe3782d1e451840b028805c63ab42
+EBUILD lximage-qt-0.4.0.ebuild 913 SHA256 614aed9d9be7461bb13892c3049f81051e61e9d002c167202c3354c5ccdfe7d8 SHA512 51acf2d5e90769f1cd358244363111bf3775966d7a97f0d37c87c84ad431b896cdfc76796d5257432e6c4882df249c4b5ddafd38cb27bd015535ea11dbe20d37 WHIRLPOOL 629fc0596217afd429b50c0ad40efde0cbcc7f0bd6b7400085764e5a7d7fe07c2106993de4eba0d3c012c65032cac79574ff4667813cf79fcac04fa24606ecd3
+EBUILD lximage-qt-0.5.0.ebuild 906 SHA256 ce3d4e3367f0e1a3e1fae0e721f0a087ffc2b7623a6bca33c89c0e45e57f1131 SHA512 1328c3481993d0484a43cd6456fd413ea3f6f87998c1c46ae148b606169a6b87658e64359ee17fee10f8adf1cfb2c7a2794597e737aa30ce3b0e989fa0b5eb26 WHIRLPOOL a9bb794d3e8f397d496492e183ee1ba3c7ec2033c319675fb96471104069d3560ff4c8d7963bcc9b896a136cd8eef416147eaa507cbc22afbb94951978283379
+MISC ChangeLog 3219 SHA256 ac04bb0db5438d934408c6dde73376d1c7fb91273ad1e4c9b1f62b0204dc4485 SHA512 de9aafabaa7356d66dfd37ab3279456020e49cac359b04fa961b2ce37b938a12bd86b60079ae28729f1be279497616f61ee0f0dd1b458c673ec8fadbf23e6634 WHIRLPOOL 971b2e3486532a584f81b475c5ffa0e892b7104f66086eb3d5d0e921e7fbcac18043ac4a3e19dbdedf6ba431c095434cdf8c8216dd5d5219ef86ec3eb268f222
+MISC ChangeLog-2015 1033 SHA256 48948aaf8929989048134a78f0fc34ace65a93474ae014876e91d6117070ad3a SHA512 a64441546a603901824d2fcf8287c13f907c2aca747e90677400e37fc9d38ae8faa515595299c810d8ea32db171ed8567510bac43b7aebfcbf33e4c50958a471 WHIRLPOOL 646f9b1363c0a59a799376ab92d208bba33059b1f6016f6e0a15a8b1de3f5c3ddffb947eb637c8532280e09d13b9a31f0e05b9a091142c0c44c56fbb87b46eaf
+MISC metadata.xml 240 SHA256 5c1b2e0fae64eabbb43582e437ece5c0df4f7e1c9b4587b919629b2b765aec6b SHA512 84f77a0e7d17d09eea1157217fcd22ae5fc98e1569879f85b5fc950d2b2ad00168b1ec9d5d8c1f964673c55bc91d509adb2d39b5983de21d83200ef6c58b9652 WHIRLPOOL 2bc375b8b743be2e84a38afe52329fcb6160906b0edbc054b9ab53aae30add6c8cac4de2a03c6f83e875b1e692c14f45369dcc2f8411ec9b858af228ba3ba163
diff --git a/media-gfx/lximage-qt/lximage-qt-0.4.0.ebuild b/media-gfx/lximage-qt/lximage-qt-0.4.0.ebuild
new file mode 100644
index 000000000000..77b829b7a64d
--- /dev/null
+++ b/media-gfx/lximage-qt/lximage-qt-0.4.0.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit cmake-utils
+
+DESCRIPTION="LXImage Image Viewer - GPicView replacement"
+HOMEPAGE="http://lxqt.org/"
+
+if [[ ${PV} = *9999* ]]; then
+ inherit git-r3
+ EGIT_REPO_URI="git://git.lxde.org/git/lxde/${PN}.git"
+else
+ SRC_URI="http://downloads.lxqt.org/${PN}/${PV}/${P}.tar.xz"
+ KEYWORDS="~amd64 ~arm ~arm64 ~x86"
+fi
+
+LICENSE="GPL-2 LGPL-2.1+"
+SLOT="0"
+
+RDEPEND="
+ dev-libs/glib:2
+ dev-qt/qtcore:5
+ dev-qt/qtdbus:5
+ dev-qt/qtgui:5
+ dev-qt/qtprintsupport:5
+ dev-qt/qtwidgets:5
+ dev-qt/qtx11extras:5
+ media-libs/libexif
+ >=x11-libs/libfm-1.2
+ x11-libs/libICE
+ x11-libs/libSM
+ x11-libs/libX11
+ x11-libs/libXext
+ x11-libs/libXfixes
+ x11-misc/pcmanfm-qt"
+DEPEND="${RDEPEND}
+ dev-qt/linguist-tools:5
+ virtual/pkgconfig"
+
+src_configure() {
+ local mycmakeargs=(
+ -DUSE_QT5=ON
+ )
+ cmake-utils_src_configure
+}
diff --git a/media-gfx/lximage-qt/lximage-qt-0.5.0.ebuild b/media-gfx/lximage-qt/lximage-qt-0.5.0.ebuild
new file mode 100644
index 000000000000..926f7238ceab
--- /dev/null
+++ b/media-gfx/lximage-qt/lximage-qt-0.5.0.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit cmake-utils
+
+DESCRIPTION="LXImage Image Viewer - GPicView replacement"
+HOMEPAGE="http://lxqt.org/"
+
+if [[ ${PV} = *9999* ]]; then
+ inherit git-r3
+ EGIT_REPO_URI="git://git.lxde.org/git/lxde/${PN}.git"
+else
+ SRC_URI="http://downloads.lxqt.org/${PN}/${PV}/${P}.tar.xz"
+ KEYWORDS="~amd64 ~arm64 ~x86"
+fi
+
+LICENSE="GPL-2+ LGPL-2.1+"
+SLOT="0"
+
+RDEPEND="
+ dev-libs/glib:2
+ dev-qt/qtcore:5
+ dev-qt/qtdbus:5
+ dev-qt/qtgui:5
+ dev-qt/qtprintsupport:5
+ dev-qt/qtsvg:5
+ dev-qt/qtwidgets:5
+ dev-qt/qtx11extras:5
+ media-libs/libexif
+ >=x11-libs/libfm-1.2:=
+ x11-libs/libfm-qt:=
+ x11-libs/libX11
+ x11-libs/libXfixes"
+DEPEND="${RDEPEND}
+ dev-qt/linguist-tools:5
+ lxqt-base/liblxqt
+ virtual/pkgconfig"
+
+src_configure() {
+ local mycmakeargs=(
+ -DPULL_TRANSLATIONS=OFF
+ )
+ cmake-utils_src_configure
+}
diff --git a/media-gfx/lximage-qt/metadata.xml b/media-gfx/lximage-qt/metadata.xml
new file mode 100644
index 000000000000..a40a83a9c6a9
--- /dev/null
+++ b/media-gfx/lximage-qt/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 type="project">
+ <email>lxqt@gentoo.org</email>
+ <name>LXQt</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/media-gfx/maim/Manifest b/media-gfx/maim/Manifest
new file mode 100644
index 000000000000..1a09c844867a
--- /dev/null
+++ b/media-gfx/maim/Manifest
@@ -0,0 +1,6 @@
+AUX maim-3.4.47-no-gengetopt.patch 1221 SHA256 0cb6d58a1efdb21cf232141df43befe778ea8e6b6994fb4c1942e595d68d912b SHA512 16a4f5f090d5072353144f0c0115cb0d5614206ec1d23b2415277744b3551f0e3c83445c2da96e93e99b49ddae965e368255daa707e1bd039620f5f445d859d8 WHIRLPOOL ecce066a05143c6c1fde945730659842b80a78323bc166c7007e2ad0d4cfea369889b47a3290a367f0247db02d7746c040395a205296914f3b19ab54c2ab5841
+DIST maim-3.4.47.tar.gz 46799 SHA256 fb12524cc05f7f4ff46fe40b951334c6dbc274e50b6d0ea08185f555ca3cd74d SHA512 4b21f8ad8f9f2f19693d5c489f5e815133e1b8308653c52934cdb8a3d8ae38732733a5ffb5527b44db49f59c3818a9bc83840ced5db71807a68277d0dcc03392 WHIRLPOOL de21bb02c2923fd158cc691df09ff9a55121206f2f491a6b4bcf080b7b56032822f7ac4bad98028294f5f6e6e103fb393db3933dc3a7efcd383db6602d2d17d9
+DIST maim-5.4.63.tar.gz 39666 SHA256 00753b7146348b4c0f76fb4254b3557d344d94db953b395483f1a657ebf09459 SHA512 d84cfe051109c9c4b79f2a006f2d73a0fa9cd40151c9d6996740326766886f8b070bc49029d0d3810fd8743cc63d76c051fc249e53b4e9ff37faf8708c149dfd WHIRLPOOL afb661a2f3e1a2b5103a40fdee5765f9ded1530e5e2d3a25702371cef7ae2b48b6401f50751fb9ef83ac64863d682e7e0170e4cb945c2032a9d3398b42c685ff
+EBUILD maim-3.4.47.ebuild 571 SHA256 bc2a5f633e49ccf642160d3fc10994b04c2aa05739a754f6b65f46ef5547b461 SHA512 6eb7fb72a17d8bd8dc8d78bf60aa6153c7d50d9a7325a2235795bba0e05f214dd8fd139af7bcd76a94001092b5e91870491888c6926d9b2f886f18eb6373fc33 WHIRLPOOL 0388d2496235f32a8ffa3baa75b8e1fc1e19b803922822c737cddaca0148b9d17107ab338132d1b115d3e1d497312f911803b687db74b2ada32e84b779f837bd
+EBUILD maim-5.4.63.ebuild 599 SHA256 56ff9777eb0ccde2a4e575cd7e0b639531dc44206e61395bda2dd6008822092f SHA512 a889034dd4c81f939c7e0edcb01f1de36b54e68bd8f793b08c935ba3affec3449c7492d418b7e614cf340e0092cd27410f72fa56b914d3d6ed6b9de849d607e6 WHIRLPOOL dd9873306a6e5cc395d01026fe9c0360a0c9e40d19dd22c0f8b04282dd51b290fbcbfb3aafc6cdcebef40cf03064ffba7f7681d6879e44dd6cfb73826fea6251
+MISC metadata.xml 574 SHA256 33db033d8302b72a0f6cea1c58ade665e81fb42c675cf7f883843714f2445bf5 SHA512 db87fa0cbc96b7fe012aa91d294fd28d5e584c24046ee6de415f22e28efd981bd839d4e3cc9019a407eabd184b0b73a0c03ba38d2657674fdafa091752e10f4c WHIRLPOOL 408b38ac2f106a5acb051f9f2829f4092240ef2262e088bc35f765818d889e4be524e58b2d74573b720bb83e478e41de4ccd3b029ed2123027058bd372fdf678
diff --git a/media-gfx/maim/files/maim-3.4.47-no-gengetopt.patch b/media-gfx/maim/files/maim-3.4.47-no-gengetopt.patch
new file mode 100644
index 000000000000..7a1035d3daf2
--- /dev/null
+++ b/media-gfx/maim/files/maim-3.4.47-no-gengetopt.patch
@@ -0,0 +1,24 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index fe4cd5f..f0eb718 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -65,19 +65,6 @@ if ( RONN_EXECUTABLE AND GZIP_EXECUTABLE )
+ WORKING_DIRECTORY man-src VERBATIM )
+ endif()
+
+-# Here we generate some of our code if we can. I package it pre-generated
+-# so nobody has to go find and install gengetopt if they don't want to.
+-find_program( GENGETOPT_EXECUTABLE gengetopt
+- DOC "A tool to generate code to grab command line options." )
+-if ( GENGETOPT_EXECUTABLE )
+- message( "-- Regenerating cmdline.in" )
+- execute_process( COMMAND "${GENGETOPT_EXECUTABLE}" "--input=options.ggo"
+- WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/src" )
+- file( RENAME "${CMAKE_SOURCE_DIR}/src/cmdline.h" "${CMAKE_SOURCE_DIR}/src/cmdline.in" )
+-else()
+- message( "Warning: Command gengetopt not found! Won't regenerate command line code. (If you're just compiling this doesn't matter.)" )
+-endif()
+-
+ # By default our src/options.ggo has our cmake versions variables for
+ # the 'version ""' line. We replace them here.
+ # The ${CMAKE_SOURCE_DIR} is there to fix problems with OpenBSD's out-of-source build black magic.
diff --git a/media-gfx/maim/maim-3.4.47.ebuild b/media-gfx/maim/maim-3.4.47.ebuild
new file mode 100644
index 000000000000..374899e4f477
--- /dev/null
+++ b/media-gfx/maim/maim-3.4.47.ebuild
@@ -0,0 +1,26 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit cmake-utils
+
+DESCRIPTION="Commandline tool to take screenshots of the desktop"
+HOMEPAGE="https://github.com/naelstrof/maim"
+SRC_URI="https://github.com/naelstrof/maim/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+PATCHES=( "${FILESDIR}/maim-3.4.47-no-gengetopt.patch" )
+
+DEPEND="
+ media-libs/imlib2[X]
+ x11-libs/libX11
+ x11-libs/libXrandr
+ x11-libs/libXfixes"
+RDEPEND="
+ ${DEPEND}
+ x11-misc/slop"
diff --git a/media-gfx/maim/maim-5.4.63.ebuild b/media-gfx/maim/maim-5.4.63.ebuild
new file mode 100644
index 000000000000..3f7ece5696d3
--- /dev/null
+++ b/media-gfx/maim/maim-5.4.63.ebuild
@@ -0,0 +1,30 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit cmake-utils
+
+DESCRIPTION="Commandline tool to take screenshots of the desktop"
+HOMEPAGE="https://github.com/naelstrof/maim"
+SRC_URI="https://github.com/naelstrof/maim/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="
+ media-libs/libjpeg-turbo
+ media-libs/libpng:0=
+ x11-libs/libX11
+ x11-libs/libXext
+ x11-libs/libXfixes
+ x11-libs/libXrandr
+"
+
+DEPEND="${RDEPEND}
+ x11-libs/libXcomposite
+ virtual/opengl
+ x11-misc/slop
+"
diff --git a/media-gfx/maim/metadata.xml b/media-gfx/maim/metadata.xml
new file mode 100644
index 000000000000..86992144c590
--- /dev/null
+++ b/media-gfx/maim/metadata.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>palipalo9@googlemail.com</email>
+ <name>Ingolf Wagner</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+ </maintainer>
+ <longdescription>
+ maim (Make Image) is a utility that takes screenshots of your desktop using imlib2.
+ </longdescription>
+ <upstream>
+ <remote-id type="github">naelstrof/maim</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/media-gfx/mandelbulber/Manifest b/media-gfx/mandelbulber/Manifest
new file mode 100644
index 000000000000..55c134fcd5c6
--- /dev/null
+++ b/media-gfx/mandelbulber/Manifest
@@ -0,0 +1,12 @@
+AUX mandelbulber-1.11-qa.patch 1313 SHA256 ab6cd3852408b7e3e8034f194562e3cd82742749cff120c3cc2ead79c70998d7 SHA512 d4ec5a1e6f475a518414a402942240b5679b0eae15d1ac83cb73148759ade31e69cb5bf61081ec9a9e9349697ed4eccd61f180b67588937d84cc990202393770 WHIRLPOOL a4dec86e4e3038ecfadb561e07c5720d1f45e9ffe44847d50880dcd0c071d2118fc7fbf7473129537beac9584ac6f02f30d05f3d072cea51362f2748daaea594
+AUX mandelbulber-1.12.1-memcpy_and_memset.patch 358 SHA256 953ab6d6a3074d5808daaaeb8ee5fb5397b6030260d79c7b6c97e05c94bdebd4 SHA512 3ace39be67fc5ee66c66a7d6ff6b81f8939c2d1c598effe676f6b8f750fa904c294197aea5f4a62519f1c129580ed8f037a55af0d88da0e02cbe993b2630082c WHIRLPOOL 187240e58b462fcca7ebcad0b931128396e54e5d113abc9eae9bb8fea8e2454e290fd175dd4755a20a4340b7ec4d42276c01f36b085f78a03ca2413718a65226
+AUX mandelbulber-1.21.1-qa.patch 1254 SHA256 61dd936769ffb34d1e36575660c83ac0eefdf628540910b38b833c21208aa851 SHA512 90a7638b702a40af9c5f0927d8e13c8db6f67c1dc0fc144910a5a3da1872e05b4cba137a8f16856fc7d9c6883fec9e0bdb0e801d9d5d685c324a708a63a8e9c0 WHIRLPOOL 4e52d5a6d4968484449f591a2b9cce946acf269375256f381bc3ad3cafb069bf14fcda15d4bf783c83cf402ba38e5080134f27fd3d2172c1059b6dd362281c2d
+DIST mandelbulber1.11.tar.gz 1176248 SHA256 3f57a23f91c3d88f1e28cba29e4f076e03c9bcb97ce7ecdd0cd713687cab714e SHA512 fddd351fd235e42899b5dbf26099cb5c315539b1352f1c4dad7a59e39fe34a07aba41140349e1bfd8dddd69ef4f39c39ca017285b3726557e52fb9ec4f82291b WHIRLPOOL ba21d6d28edd2af887f18cd516e054ca4888df6a143d10baaddad45c3c9440e5ce449702db7695daaa8762662cf715124ab5ea1fbbcba23415cced186bea270a
+DIST mandelbulber1.12-1.tar.gz 1179684 SHA256 75376616b52cb8dac7c7f358f4eb26f9d2fb171b9b0a54dbb25eeb57e494d382 SHA512 c198c71648ad4d674dac980c77fe2573617e122bdddb7775fccf74e1a929900691a421561f8717e4df741db65421cbdb8e464fd031ff5c38a56f63f5259b5512 WHIRLPOOL 7b5113bc81913607a544d19e9d16f53ec8888f97584110d0b8ad545b4603582f88fdfab4260d9fc74feaaae815739ac14f4b42e045fa1d6ae86d0e72e52f77fa
+DIST mandelbulber1.21-1.orig.tar.gz 1076836 SHA256 d9d95be4e21311fa2b2b7883a659d2c173940499a7c5f8436aa62cdf543b6eca SHA512 caaa27a4aa67e83045e9cfc84593770d26d0b12d44e6f37f1f37e04eb62f7d2038c07d82541eca2ef8c64c787bae2fac9c487f69c98936310946f27c07760ce3 WHIRLPOOL 204ebc870e9d6a80dbbff210424bcef333dafc24b8b6010d10f7eda833b3e6342154182d171e0960d02531ebc812b727197f8dfe2aa4aa641e5160b0256993c8
+EBUILD mandelbulber-1.11.ebuild 853 SHA256 1b269a2793444f18d8c9f790f08d805344d38dbbb7785a790a4ff8c98c3d1d61 SHA512 14e43a6284b891993ab8c45c6ba2d76eb71b74538e85594e5806ed6e7631766c9f1202f975274564a8fe1bc5bc08992d77bea0dacb1bdd3740e0d4b510477fe5 WHIRLPOOL 669828f1a10992e285700ed8db19fbafa2028fc2fb459cf7c0a425e51966f7f69c3245d3e77c7ba01ecac92773aa11eeaff42948b0725a687c3e4c3bf512797b
+EBUILD mandelbulber-1.12.1.ebuild 954 SHA256 b1aca99f7123a25ffd26818f021ac33260a83b5257aec5a74250f4e9a105c7af SHA512 84dfbdb0aaae1723dfe8d3347cc4103f7567d6bd819e092647670092ebd119e303180a16ebf96e10793a51f8d9786eef91b53c7c698ffb6052b96c626e58b4bc WHIRLPOOL 920f471aec17b39c0cdf5df60cda003a767019c037fa9138c3509419922ac9f70ee74fd611e534d59e7483537f5f61dbd649196527d63da7e82d982edfaf771b
+EBUILD mandelbulber-1.21.1.ebuild 962 SHA256 43b89985d9895063005d49da96ba5d084aaf826758db10ba28824a6964d5c399 SHA512 e7ece0314fef4fa0ea0812cd61b42eb02f06dbb751c0efec5f03b11bad6e5c8a960bc4b1ffe32a41018db438ea1ca865fb32b5f284fbb88f4a5647ac3878eeaa WHIRLPOOL 0209c5bc6724b8669069f9a3bc088f13d329fd2b3d13a3ba20d706ad8e192f33f54e2287db1cc7f784395d3969ddca727496e59905c3db3a5f9190703844eccc
+MISC ChangeLog 2916 SHA256 8eb5a001011ab14418c45e00b4233390bd734e22bc4a34524832b1546857e57d SHA512 42c7464a3b02f2ed49b46ec6670c5981db8d5bf191cb17ac47b9cf0215386abbc1b0a9611add1a87ed9b59e6f6e4e9ccdd1e303427035a3be8d4fefc4854230e WHIRLPOOL e5bf3236110a9b0971add8eff14a0a4395c927fc566b92f13c358a29671a983e033773dbe437f85ebc93b2b4060c6926c15482ec093e4814947c082bcc45d078
+MISC ChangeLog-2015 3086 SHA256 097742dafbb0feda2705db45e93048d090e41f7f7143c25af06ccefbc54e8b3a SHA512 202b1332b9dbee70c537852325810c10decb9a8ea36f9a00582578f4029afdd3789ea196a70e82c15d0b4ac52a343c03852e95774472ad4f9efdb6c5831f7a81 WHIRLPOOL 7bcb565d16f55a66c46bde2b3dbb28a2af901e91fe775de6c9e8bf62ba3a67a4d8cbafbf8aca5b75db11033f3ca00fdbe0571bf9c9275ce1e248a07667e8dfab
+MISC metadata.xml 613 SHA256 a19b15642220133e5199d930573a5c18a5a01b26e7030fcf26a0239269527491 SHA512 ff9d6feda80e64a4f5c18c0c951f9f1578323f4fee378223c1580d3210d0d0b265c8f996cc645410117e2676837fd3e2edb1cd574cdb04923b6bd8cf1da9ebce WHIRLPOOL 83532abd88c7f391a3a142c498afdb53f3ced3e1c0793fde41f2f30b2da94eda4a32f588f11fbd94f7c88f33a52c5effc5deae88d0d1cd8518b600399e39c26c
diff --git a/media-gfx/mandelbulber/files/mandelbulber-1.11-qa.patch b/media-gfx/mandelbulber/files/mandelbulber-1.11-qa.patch
new file mode 100644
index 000000000000..f457c1902c8f
--- /dev/null
+++ b/media-gfx/mandelbulber/files/mandelbulber-1.11-qa.patch
@@ -0,0 +1,37 @@
+--- a/makefiles/makefile
++++ b/makefiles/makefile
+@@ -5,6 +5,7 @@
+ -include ../makefile.init
+
+ RM := rm -rf
++CXX ?= g++
+
+ # All of the sources participating in the build are defined here
+ -include sources.mk
+@@ -44,7 +45,7 @@
+ mandelbulber: $(OBJS) $(USER_OBJS)
+ @echo 'Building target: $@'
+ @echo 'Invoking: GCC C++ Linker'
+- g++ -o"mandelbulber" -L/usr/lib/x86_64-linux-gnu/ $(OBJS) $(USER_OBJS) $(LIBS) `pkg-config --libs gtk+-2.0 gthread-2.0`
++ $(CXX) $(LDFLAGS) -o"mandelbulber" -L/usr/lib/x86_64-linux-gnu/ $(OBJS) $(USER_OBJS) $(LIBS) `pkg-config --libs gtk+-2.0 gthread-2.0`
+ @echo 'Finished building target: $@'
+ @echo ' '
+
+--- a/makefiles/src/subdir.mk
++++ b/makefiles/src/subdir.mk
+@@ -63,12 +63,14 @@
+ ./src/undo.d \
+ ./src/cl_support.d
+
++CXX ?= g++
++CXXFLAGS ?= -O2 -fast-math
+
+ # Each subdirectory must supply rules for building sources it contributes
+ src/%.o: ../src/%.cpp
+ @echo 'Building file: $<'
+ @echo 'Invoking: GCC C++ Compiler'
+- g++ -O2 -ffast-math -Wall -c -fmessage-length=0 `pkg-config --cflags gtk+-2.0 gthread-2.0;` -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@:%.o=%.d)" -o"$@" "$<"
++ $(CXX) $(CXXFLAGS) -Wall -c -fmessage-length=0 `pkg-config --cflags gtk+-2.0 gthread-2.0;` -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@:%.o=%.d)" -o"$@" "$<"
+ @echo 'Finished building: $<'
+ @echo ' '
+
diff --git a/media-gfx/mandelbulber/files/mandelbulber-1.12.1-memcpy_and_memset.patch b/media-gfx/mandelbulber/files/mandelbulber-1.12.1-memcpy_and_memset.patch
new file mode 100644
index 000000000000..43fb0b982dbd
--- /dev/null
+++ b/media-gfx/mandelbulber/files/mandelbulber-1.12.1-memcpy_and_memset.patch
@@ -0,0 +1,22 @@
+http://bugs.gentoo.org/464972
+
+--- src/texture.cpp
++++ src/texture.cpp
+@@ -5,6 +5,7 @@
+ * Author: krzysztof
+ */
+ #include <stdio.h>
++#include <string.h>
+ #include "texture.hpp"
+ #include "files.h"
+
+--- src/timeline.cpp
++++ src/timeline.cpp
+@@ -6,6 +6,7 @@
+ */
+
+ #include <cstdlib>
++#include <cstring>
+
+ #include "timeline.hpp"
+ #include "files.h"
diff --git a/media-gfx/mandelbulber/files/mandelbulber-1.21.1-qa.patch b/media-gfx/mandelbulber/files/mandelbulber-1.21.1-qa.patch
new file mode 100644
index 000000000000..6fea9525cfe1
--- /dev/null
+++ b/media-gfx/mandelbulber/files/mandelbulber-1.21.1-qa.patch
@@ -0,0 +1,30 @@
+--- mandelbulber1.21-1.orig/makefiles/makefile
++++ mandelbulber1.21-1.orig/makefiles/makefile
+@@ -5,6 +5,7 @@
+ -include ../makefile.init
+
+ RM := rm -rf
++CXX ?= g++
+
+ # All of the sources participating in the build are defined here
+ -include sources.mk
+@@ -44,7 +45,7 @@
+ mandelbulber: $(OBJS) $(USER_OBJS)
+ @echo 'Building target: $@'
+ @echo 'Invoking: GCC C++ Linker'
+- g++ -o"mandelbulber" -L/usr/lib/x86_64-linux-gnu/ $(CXXFLAGS) $(CPPFLAGS) $(LDFLAGS) $(OBJS) $(USER_OBJS) $(LIBS)
++ $(CXX) -o"mandelbulber" -L/usr/lib/x86_64-linux-gnu/ $(CXXFLAGS) $(CPPFLAGS) $(LDFLAGS) $(OBJS) $(USER_OBJS) $(LIBS)
+ @echo 'Finished building target: $@'
+ @echo ' '
+
+--- mandelbulber1.21-1.orig/makefiles/src/subdir.mk
++++ mandelbulber1.21-1.orig/makefiles/src/subdir.mk
+@@ -71,7 +71,7 @@
+ src/%.o: ../src/%.cpp
+ @echo 'Building file: $<'
+ @echo 'Invoking: GCC C++ Compiler'
+- g++ -O3 -ffast-math -Wall -c -fmessage-length=0 `pkg-config --cflags gtk+-2.0 gthread-2.0;` -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@:%.o=%.d)" $(CXXFLAGS) $(CPPFLAGS) -o"$@" "$<"
++ $(CXX) -Wall -c -fmessage-length=0 `pkg-config --cflags gtk+-2.0 gthread-2.0;` -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@:%.o=%.d)" $(CXXFLAGS) $(CPPFLAGS) -o"$@" "$<"
+ @echo 'Finished building: $<'
+ @echo ' '
+
diff --git a/media-gfx/mandelbulber/mandelbulber-1.11.ebuild b/media-gfx/mandelbulber/mandelbulber-1.11.ebuild
new file mode 100644
index 000000000000..e3761ae9b170
--- /dev/null
+++ b/media-gfx/mandelbulber/mandelbulber-1.11.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+
+inherit eutils toolchain-funcs
+
+MY_P=${PN}${PV}
+
+DESCRIPTION="Tool to render 3D fractals"
+HOMEPAGE="https://sites.google.com/site/mandelbulber/home"
+SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="x11-libs/gtk+:2
+ >=media-libs/libsndfile-1
+ >=media-libs/libpng-1.4
+ virtual/jpeg"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+S=${WORKDIR}/${MY_P}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-qa.patch
+}
+
+src_compile() {
+ emake CXX="$(tc-getCXX)" -C makefiles all
+}
+
+src_install() {
+ dobin makefiles/${PN}
+ dodoc README NEWS
+ insinto /usr/share/${PN}
+ doins -r usr/share/*
+}
+
+pkg_postinst() {
+ elog "Before you run ${PN} please copy /usr/share/${PN}/* to \${HOME}/.${PN}"
+}
diff --git a/media-gfx/mandelbulber/mandelbulber-1.12.1.ebuild b/media-gfx/mandelbulber/mandelbulber-1.12.1.ebuild
new file mode 100644
index 000000000000..cfeefff2b52e
--- /dev/null
+++ b/media-gfx/mandelbulber/mandelbulber-1.12.1.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils toolchain-funcs versionator
+
+MY_P=${PN}$(replace_version_separator 2 '-' )
+
+DESCRIPTION="Tool to render 3D fractals"
+HOMEPAGE="https://sites.google.com/site/mandelbulber/home"
+SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="x11-libs/gtk+:2
+ >=media-libs/libsndfile-1
+ >=media-libs/libpng-1.4:0=
+ virtual/jpeg"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+S=${WORKDIR}/${MY_P}
+
+src_prepare() {
+ epatch \
+ "${FILESDIR}"/${PN}-1.11-qa.patch \
+ "${FILESDIR}"/${P}-memcpy_and_memset.patch
+}
+
+src_compile() {
+ emake CXX="$(tc-getCXX)" -C makefiles all
+}
+
+src_install() {
+ dobin makefiles/${PN}
+ dodoc README NEWS
+ insinto /usr/share/${PN}
+ doins -r usr/share/*
+}
+
+pkg_postinst() {
+ elog "Before you run ${PN} please copy /usr/share/${PN}/* to \${HOME}/.${PN}"
+}
diff --git a/media-gfx/mandelbulber/mandelbulber-1.21.1.ebuild b/media-gfx/mandelbulber/mandelbulber-1.21.1.ebuild
new file mode 100644
index 000000000000..070f34fc6d42
--- /dev/null
+++ b/media-gfx/mandelbulber/mandelbulber-1.21.1.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils toolchain-funcs versionator
+
+MY_P=${PN}$(replace_version_separator 2 '-' ).orig
+
+DESCRIPTION="Tool to render 3D fractals"
+HOMEPAGE="https://sites.google.com/site/mandelbulber/home"
+SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="x11-libs/gtk+:2
+ dev-libs/glib:2
+ >=media-libs/libpng-1.4:0=
+ virtual/jpeg"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+S=${WORKDIR}/${MY_P}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-qa.patch
+}
+
+src_compile() {
+ emake CXX="$(tc-getCXX)" -C makefiles all
+}
+
+src_install() {
+ dobin makefiles/${PN}
+ dodoc README NEWS
+ insinto /usr/share/${PN}
+ doins -r usr/share/*
+ domenu ${PN}.desktop
+}
+
+pkg_postinst() {
+ if [[ -z "${REPLACING_VERSIONS}" ]]; then
+ elog "Before you run ${PN} please copy /usr/share/${PN}/* to \${HOME}/.${PN}"
+ fi
+}
diff --git a/media-gfx/mandelbulber/metadata.xml b/media-gfx/mandelbulber/metadata.xml
new file mode 100644
index 000000000000..b170ece12c0e
--- /dev/null
+++ b/media-gfx/mandelbulber/metadata.xml
@@ -0,0 +1,17 @@
+<?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>
+ <longdescription>
+ Mandelbulber is an easy to use, handy but experimental application
+ designed to help you render 3D Mandelbrot fractals called Mandelbulb
+ and some other kind of 3D fractals like Mandelbox, Bulbbox, Juliabulb,
+ Menger Sponge.
+ </longdescription>
+ <upstream>
+ <remote-id type="sourceforge">mandelbulber</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/media-gfx/mcomix/Manifest b/media-gfx/mcomix/Manifest
new file mode 100644
index 000000000000..3c7c61c45419
--- /dev/null
+++ b/media-gfx/mcomix/Manifest
@@ -0,0 +1,5 @@
+DIST mcomix-1.2.1.tar.bz2 571128 SHA256 7e43159dc585bc9bc31970a44bd2b4e42c303660c4c8cf7f0eda413a6f72fa3b SHA512 efa4d57edc3a48d9e711767fb3e233ef9b334ff8ba467999e572e60ed747a4ee4aa420c8aa7788b16d7eb6e0901d454d6a405fcec47a8c74098a49491e915cd0 WHIRLPOOL cabebccb5793bdd78686c22448688826bc4ba7b9e422e3aa712f0930b8e8029721cf48bbe4e8d06e34c8f76515785ff259d08a7021e60beb1719c9b35d356619
+EBUILD mcomix-1.2.1.ebuild 1691 SHA256 8995b30d3101d04810939afc6066ead2807e6d4889a8eebc1dba46c337fdd66d SHA512 515b9f409c1e0c8a6e5f6dbf13dc91d27bed8489c94850b6b363b6ea393bfdd9bcbbda34a4efbc47c38340584909babf548eccd3321738d5b846b2fb3cea27fe WHIRLPOOL 7c0bf9ada2bf5cf8177d1f18c5b8b5895b58c2834e52060808404e5159d1ff4a3bc0dc8900988ad3c23cc34e498100b77bc240986087e13fd39dae488b77cfc0
+MISC ChangeLog 3296 SHA256 75e4b654f67608de2fe4acbeeb0454fd12bcb8ba46e8bf35ad9c3fe883282647 SHA512 360ac021cb29203e1102ad15d3ba7e9397e399146d5ef65d4504abd9f7d971cc837a094155569ddc56ec79c10958aee0763b8717bc49de010d9746fdd366080d WHIRLPOOL 2213eb86752082f2a41bf0a6399db46ed3c891c4a854f458a43cca54820ac2ee92c7991edacd7de160f10e8ab7dc4647c58d3b1b6dcd04af11064e9cfa8a4400
+MISC ChangeLog-2015 3945 SHA256 38e0bb4183173d46cc341676466b59b17fd4de9c0e95473459fbb5eb113b2094 SHA512 4e5aee52150c70f4bb6213e3d11f29937afe14c5965acbc2ee16bfee1a44b825f828369ad8c5545476efcb82edc0e58d6d636c1eefa4573b5b6167b0bb4dc10b WHIRLPOOL f7f94e4465722a793fa83d8cf3cfcf6f55c21320b8d16f8eda4fa464b2103fdb6a32cc717e4de7879a19ef7b77c5ad5cb76d94c1f0dd5b4746f8a38564d6f33a
+MISC metadata.xml 453 SHA256 3b2d513e2192e8b48289fb84e2af9f28dad3062ce45af735b5b063bf90ebd1c9 SHA512 7953a4c071cb2d35a62d6455ff1edccd141ac0d950df64964b60d785286387aa7bfa216f83cc257896a0470d8a43825a95ab25ab60557326bb2227975743ccce WHIRLPOOL 70d1bec1d3c305ace6da8954e7ae6508797ebf79da75e8c199cf60207f7556f3c8379d21010921c986dd623368bbaf7cfe042fe785ecfca9232456820004ed0e
diff --git a/media-gfx/mcomix/mcomix-1.2.1.ebuild b/media-gfx/mcomix/mcomix-1.2.1.ebuild
new file mode 100644
index 000000000000..dc954fa35aa9
--- /dev/null
+++ b/media-gfx/mcomix/mcomix-1.2.1.ebuild
@@ -0,0 +1,69 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+PYTHON_COMPAT=( python2_7 )
+PYTHON_REQ_USE="sqlite"
+
+PLOCALES="ca cs de el es fa fr gl he hr hu id it ja ko nl pl pt_BR ru sv uk zh_CN zh_TW"
+
+inherit distutils-r1 fdo-mime l10n
+
+DESCRIPTION="A fork of comix, a GTK image viewer for comic book archives"
+HOMEPAGE="https://sourceforge.net/p/mcomix/wiki/Home/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
+RDEPEND="${DEPEND}
+ >=dev-python/pygtk-2.14[${PYTHON_USEDEP}]
+ virtual/jpeg
+ dev-python/pillow[${PYTHON_USEDEP}]
+ x11-libs/gdk-pixbuf
+ !media-gfx/comix"
+
+DOCS=( ChangeLog README )
+
+src_prepare() {
+ local checklocales
+ for l in $(find "${S}"/mcomix/messages/* -maxdepth 0 -type d);
+ do checklocales+="$(basename $l) "
+ done
+
+ [[ ${PLOCALES} == ${checklocales% } ]] \
+ || eqawarn "Update to PLOCALES=\"${checklocales% }\""
+
+ my_rm_loc() {
+ rm -rf "${S}/mcomix/messages/${1}/LC_MESSAGES" || die
+ rmdir "${S}/mcomix/messages/${1}" || die
+ }
+
+ l10n_for_each_disabled_locale_do my_rm_loc
+
+ distutils-r1_src_prepare
+}
+
+pkg_postinst() {
+ fdo-mime_mime_database_update
+ fdo-mime_desktop_database_update
+ echo
+ elog "Additional packages are required to open the most common comic archives:"
+ elog
+ elog " cbr: app-arch/unrar"
+ elog " cbz: app-arch/unzip"
+ elog
+ elog "You can also add support for 7z or LHA archives by installing"
+ elog "app-arch/p7zip or app-arch/lha. Install app-text/mupdf for"
+ elog "pdf support."
+ echo
+}
+
+pkg_postrm() {
+ fdo-mime_mime_database_update
+ fdo-mime_desktop_database_update
+}
diff --git a/media-gfx/mcomix/metadata.xml b/media-gfx/mcomix/metadata.xml
new file mode 100644
index 000000000000..a9a36dd4d75c
--- /dev/null
+++ b/media-gfx/mcomix/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>rhill@gentoo.org</email>
+ <name>Ryan Hill</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>graphics@gentoo.org</email>
+ <name>Gentoo Graphics Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">mcomix</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/media-gfx/meshlab/Manifest b/media-gfx/meshlab/Manifest
new file mode 100644
index 000000000000..ebe78c9c3b3f
--- /dev/null
+++ b/media-gfx/meshlab/Manifest
@@ -0,0 +1,38 @@
+AUX 1.3.2/01_crash-on-save.patch 1150 SHA256 c7ed4f43b01ee8d6bdfb46760f776de112fc61e19e51c1057f771fd3dfb1717d SHA512 b6c6f06584ab5c43bcfef3b697fc1b3dcc6ee6e2ac7f15cdd3ac1a71af356e56299a78353f6a1c6bc8e19cde60b78a82980ae25abd87eb0a467a3fe4f1d769e6 WHIRLPOOL 89e0c7aa254a23074318210e9b08a53ddc8df6f28565d82dc1522e839b4065be7c5319e118f128a9be14c4945f40711216a72839d5165d75c39e8a304b8c63f1
+AUX 1.3.2/02_cstddef.patch 1549 SHA256 067ec2879cc5dc2ffb0870e3bc91ad285851ce370a586a1767b6665b086e40dd SHA512 4b4eb9ddb444f6c69a8dd817a2312329d9ee5d5b272ea8e7f310fd7c1f7e8cc22978e632016a27784c3456c3fe4a7ad753784c04b9c0e6f544eddc26e497da85 WHIRLPOOL 15225c6f3b33b9543493de32bfdef77baf503755eedcf21074885345d70c04fcacee548cde9a5a77658ccaa6d086f12250214ca3023474f0c5c8c7020b607a33
+AUX 1.3.2/03_disable-updates.patch 876 SHA256 cf6cc9bc8af61c160eca07a413292447e87877d3428f11e95f0739fbaf79fdfa SHA512 cb198c08ccfc1602f3922131fad385b7b6568733885e2df64cf404aa199d12b9a3a75f21d7e8972a330eb0ed8697a5bdb6af1aa78311563e8afe23f53bb223b2 WHIRLPOOL 7bc10dd2cff94d201652afbad341c6cf792c3919b584d264359f1ee8af4bbaa22ff34287ee45e28d5baa05fb28e26619a7c74bd1d71db1ccd91007cfbc634e7c
+AUX 1.3.2/05_externals.patch 966 SHA256 9d96b76a93bb94caf57292fbbccdf7c67fc0ae2542bf47e7c4aca59ea615414f SHA512 9053bc7b7c37fd826ee00e4b3f6f49c429e2afd2e4017a56aa361845463033acdfacdea5a4510f48353390d44bab6eb49cc23214cf5c3323458c01772b3e1817 WHIRLPOOL d42fee28cde1894798523b32e16f67ccfcc50f58fec8dff9182b04b501b8039d69506188cf433c98550a6fd8a4cca72b852911ed4c77628f728e2b1c69b24b0b
+AUX 1.3.2/06_format-security.patch 2399 SHA256 4567170ca15eef7b0ebf3660bb13757315e8d47b18c035a732dd61813beb7268 SHA512 637027b9f0080c0ea5c290816bc9b81cb07f12f8f052863ce6bd599ef8422f5403dd33086439cdddf3ae265f15fcdae1b7e7e157074f9396f369b019f69fe4d7 WHIRLPOOL 70e74dbb85864786a09eba994d06e37602aed8f8bf8396f63732c38a72f55573ed357f4ddb98abd5016845c85265c92780795fcfe0c88accf06b9fba99dd0277
+AUX 1.3.2/07_gcc47.patch 3697 SHA256 4cfd458ded80322acdbf5e763234700eec70a0e43a4e025568d64fcb7cd0dad3 SHA512 1dd5fbaf612ecbd01414ce1ca9ae52a6138a9a2f4ba8ec9a1f91e7613bb621628976931e0911467c9f06bb419cc780dec319f5cde7ce6a3945769985fba2a37a WHIRLPOOL 692967f20c666732192e0ec00c98092642b267733dd494524b5d85b19d012e92a0a3792e665d11a6f1e554b4d73393a6f9aa9477b21c9393c9e58efbd9db20dc
+AUX 1.3.2/08_lib3ds.patch 1350 SHA256 ad8c118ae0da7cea33c75e9ac0b4406e19d6789532b085ea32b2deeea0344758 SHA512 0c1f87e5ba9c5ad5861c4a1b9fbd9d662c306f1704a56f277e37f0ca1322a5faa8e7c36a4f91860ffaf3e0fce8526c06ffcb6adbd17aed264ca673fb642faa5e WHIRLPOOL eb41816d0a77b5060d35916113182e9937403a36ec08b240bfcff028859bd02386eea1c6bd5d663d40af30813976cb20401846c81b1efd50bbbf586e91c556cd
+AUX 1.3.2/09_libbz2.patch 1425 SHA256 e206583d558bc064e8632c58f757f08911d04692af1bf1e8135316476aabbafa SHA512 75d23a84619e52c527629855d5a158f7feed7b2fec0b9d2659eb3c8d741a8029502c6a62c9b8b7f4903fbb77c6270261d63100251be72e0c500b237673f42852 WHIRLPOOL 8a22b24c9b78c2f958224f6e559eec2ddb31768ae5811f330060ca374f42c85d4ac7c89ac5a7b1c42e3998ceb153c5fb72849b92687de0009659700d1d240ff3
+AUX 1.3.2/10_muparser.patch 1432 SHA256 34c6df0cd94ae21eccfe62861703d7b6e3ffc7483aa5b5780253780559d0e9a3 SHA512 5e7a498f4d4dd661084ed06abf11adc32c00c04af1ec21775dbd899888cf647c7875831ca6284580e2bc58586e2e38b8c74befcb982b7e1b64a86661470529ef WHIRLPOOL ca0b21ba8b41de39d0b5f451f4159101617ac9a6f3f8ab4587d357893ca2be6982f353877aa23addd38a2f6f253404bd0f4c4ac24e99b83935931b3aa071919e
+AUX 1.3.2/11_openctm.patch 1414 SHA256 ca4a57a6a281c020d3b029edbde88289f7fd17c832f709c10b83e4d9cb7630d1 SHA512 9f2adba65f5308734ee0c510db4aa0dc63c0c6084709d787a8aba6394019de7aa96a3bd102c580e9bd827b6eb60f48f50f573f653521b5ee515e72180509c071 WHIRLPOOL 1b7104ad59d2472c299f59a306cf57699012f5aee7172439df1897e9af839cf3b24e4f2fd6109d138ee537e96ebc6789b818f624cb15de454b6203e30b26cd51
+AUX 1.3.2/12_overflow.patch 860 SHA256 909e015b1b4b56502d23971a68bc828631589eff54c1cc7ca023167aad0894f6 SHA512 841141c015161988df188ca25f99d695fe0c22850cd69dbb4956f4ee9c9950172554addf249f79e111dbee212a7ec09d5d8f7bf68cd9289c6781ddbf7659e4af WHIRLPOOL 1078424dd60794169001ce74e85bc27856b96a987b4b73698e8c0042ee27e4b501d34543ab7d56cc69450bcb3188a7e5b1d6d0f4d0a4a249050717e730230f83
+AUX 1.3.2/13_pluginsdir.patch 927 SHA256 e5667d3f901a7f67e1897c9d8803292c0f1f92563748106e52b1c7e589caa7c9 SHA512 85bbc68b6d95168c0936ddc9bf602b8c3c8a9c7d8f5aaa449cc540c891ab90dc57d5ea3d8e10697242442f6dc587c4d9ad45c5c5e59f07fd800c8f291fde7598 WHIRLPOOL b12f350f1d02f2d3b251e104cf8a0b60f4aad3f8bf3beb40b2980ca32e5e87bd58a1f9bb78c48d74f043728c6852f5eeafa033fa59af265822fb8a1186814675
+AUX 1.3.2/14_ply_numeric.patch 881 SHA256 a1ec3e4cfe7b7a355793ca854da9a123870fa92e8f1b3cc72805dba7ff6f95c7 SHA512 88266fa82a343d70b7469fa4399abd0859c34c43de4d222d01118d9482fca4e5ffdfb2d8b10add238d36a5a3084273515284ab9e8a9bd855c2eadd069a7fbf90 WHIRLPOOL afc4fa1ecfc2c3e7951239f5d1eef54e4d1ca874ae41c0af7f6045f48ef6fc122db45c8bccaaa1e472cdbd09731d1334d44dc7c0b5a4308482dd6a9f9eaa9936
+AUX 1.3.2/15_qhull.patch 2749 SHA256 66302dd3daeae64aaf01035998439fa79f56a09878679100ef208f9e471a64df SHA512 25966ab73a8719e28e201ad998749ca891f4256163aeef0d9d23a9699b4299a757959c00fe5930e8f5bf713713c215c58944af65a9d48a7428d25c480096c3df WHIRLPOOL 91beddb020d6c539eef565589911433c6dba7a20d8339b032fc8d17d4ce6cbeb4d801f3a767ec685f48ffc3a47b7176f4ac7969b98a9dd7db63ac67e98ba018d
+AUX 1.3.2/16_shadersdir.patch 2311 SHA256 86bbc4f68de902ebbcbee808228ca9363262fbfbfa2a7dd9dde8015290268f19 SHA512 20c67f2eb4770427e648d7d69ac06cfd90b06eeb050d1fe1fac1068d7a84a0c9f378ffd5ca5d743dfb7385edee67ee5b98f569ea4d8e0109d8054dd36d6283e9 WHIRLPOOL 273ee08e4a5d0a86c2852e5872c0e0443dd857e4a96861444522a04ffe39b18edb197ead699478a303228d1d03f0e43abad1c42e69ca53aa4032d358282b5368
+AUX 1.3.2/17_structuresynth.patch 2229 SHA256 e9e7094c0a2684a7f06a5790f1ea7bfcd8caa95cfff03efa15826d3a55586c5a SHA512 03b2bebf3c70a064f380d3ccabdbd19b2c5a30d08a539d5025894560c1b31849feb295f14b8fb2bf75eb95cc21727eb9375acf96b74e40ea57d692648460dfd1 WHIRLPOOL defc27201696639d1133303c0d4aa83334a9de989e2bf71458f78ba02840aec03facec5866635be84161b22ab6ea3d683d7070e5b87e4539deb2507e8ab54c4e
+AUX 1.3.2/18_glew.c18p1.patch 5725 SHA256 5508284f5d30fb6ec9996fb2f4bd86a7839b048c2c3870f9db493afcfb57be9f SHA512 0986165ce47459c324d47a2c9081da9f09e3700bcb1d942fe0e82766fc5da61f716a1553c50d0c1f612417da95c7cc794416d75fb82f077b9cde35aa28344926 WHIRLPOOL 283dcc42401d49b5fa53c2eb0d3ba6707a3acf7319b5774ad35172beb5a70e8f398caf4540d21c6464b377a2f18982a5723f90f12a2b83343e786bc2fce13217
+AUX 1.3.2/19_CONFLICTS_IN_rpath.patch 1375 SHA256 630ddac55bfc24a8814584068e0023d3cf9884f476440eace189927a7e07586c SHA512 d1a33986ecf7d55fe762094dd57dd91bd1515b19964215cf041741269f7fb32fa903fe3b2fff42262fa731a98b5014d73818cb934ff9035f3b09726476dded9c WHIRLPOOL 37ebf686faf7297948bf086c5a13ed52cfa44ddb27e5ded6437da4d60d88e365f7f1ecb12223ec92890720cbb1929bc1f739bc960544e9efc98e1659832e08b5
+AUX 1.3.2/20_rpath.c18p2.patch 2016 SHA256 9aae726a619614a9f8a2e42a8c6c4d8e249e6d4169ca8b588556b3ab122f6d9a SHA512 99059d13898293fe499669e200f594cf824c2eaad728806a12e906cb97079cd8de80c494da1ff5f73aaeb4756366d8b6c0f404f8e98bfee68c012a4a2fccfb4e WHIRLPOOL 19d35f80d228489a79e7839eb8927fea963013449a7ae3722a012661acd1513576559ec342c8636a2fd7de3ac45eb5bdfd55f02559f444cf973f24eaad1769ef
+AUX 1.3.2/21_RESOLUTION.patch 1444 SHA256 36820b39371ee6938219f28e3005f5d7d39d0bc6230a01bebacc4e67f15e6efc SHA512 3742e3999e5c3842d831dc4742b40ea4659a0c6b036af81047d52c8234b4854ab147c76b795adde6ec52397d46f22a00017bf85079633aacd14ae1f711f6669f WHIRLPOOL 0820a94a01d0933cddc993c3a8a63bdd5029ae2e670cd69ff7b885f046f47ad386f262f539dde522dac307605572b896504d04e39cfd3f754be0ef84e7681efd
+AUX 1.3.2/22_aliasing.patch 1960 SHA256 576544a1c3646cbd9974ee30f71d18ae3775d3b1c5a3725818c000fa40963200 SHA512 5007163025f34e5f399e22843711d730b1e46612d9553e29bea46d575a4bdcb0663e978ebaa936e9213b210e9b99dd8ed30d3b40c212e7505f46da3ed45af8ed WHIRLPOOL df8bdad9c4641180765344862e4a4938f6812b7e788307c1db7e48eba10caa50e5e8b4e9574f686731b47dff5e5d03fabdfd66802d8eec6575118ef630fe309c
+AUX 1.3.3/gcc-4.7.patch 362 SHA256 b219f77569dbab29c16f407c4e9d041035bc72caf0b720262564f35901efbb61 SHA512 c88ecf462ca413862803d1b3d825a550965837bccde3b7eea323435e72c6ca1e29a50d49c5de6b0e0e2ba2c0fe38237cad2cf227cbccc905cef3586d337f18c3 WHIRLPOOL 59bfb464fd839480f9e24bf98ebea61609c6f00db558adccd486b25b328bacf6895cd7d03f2343aeb1322552be4c580db6a91235def0ce85255327a9d33e06cb
+AUX 1.3.3/lapack.patch 641 SHA256 f1741c2ccd5dc74ae1b5fe9420a4592b9da7cceac5449327931867a809930261 SHA512 bd389631fcd9054b2dfaebdb75226969c76966e437c88a31b81d4cd7471944a82c9a253adfef7b59c10de99c3df272dd66dd0c87537025eaf8e2cd41905110f1 WHIRLPOOL d3d2fddfe124ff664a32bc1c647062276269dae7fac376a47f5f85842424949ca1f07796d068bbefa5b346daa361ecd19074a8b1d74cb81e6a73551d4d2da92c
+AUX 1.3.3/meshrender.patch 621 SHA256 f4fd274aa6f697b8ad8a9afcb61093122fc723c38c491de215c226c82f83dd03 SHA512 8ab45a9334d276da350d0fb16457de3bc95da21049632f148f2f6ebf36f17bda52f620fdcf753fb74a4d1a416c8dedaf166bd8418750798305a3dacbb93c2299 WHIRLPOOL ca4e27e95f75836295f7f4a6544107cfaf64c379c06186975bc3eb8c047fe0b6082059f7538ed990da33a2225939db3ace5ba40cb803450794bc2d4be894219d
+AUX 1.3.3/mpir.patch 838 SHA256 fccd3ca9e73a5b8d5748181f57defef6ec683a9124889dffec3f21f87578018a SHA512 704bbe4e1799c47f0f7d40f64b5d5f87b58a070f310c8f8fabe223a6dda95aab022807f3bedc21a6ee520a7d67ed8a336b17001575cc3f15bc7fb0d95c12a014 WHIRLPOOL e78e550fef5b90087b1b841c0e247bc8af1cc9f361c8032ab587c4eff82d9f51daa674eae4cc540491bcb51ba45bed62cfc4f3804b13c03c9e0323f74b04997f
+AUX 1.3.3/pluginmanager.patch 387 SHA256 edf619197c014b866261acde9d9d9a8832a0f8f8e0d4a34e58c03638232eeb01 SHA512 e3263ef64e51c84609ae2aeb2687b80cc2e8f053fb61e6c0d965c64fa1e6e1425788a114d2c76388339650c82c486388816be5cab76e819c99187ed2737bb9c3 WHIRLPOOL 1c41ae701429c962e99df8d392a4dca9b105eb6894e54798dea0f9c388f267a0e7db2b28cd7e450309448c48f99b0a9b551534c1d2d21244c784641236f9acac
+AUX 1.3.3/qt-4.8.patch 375 SHA256 cab2ae812a53aee27a854d1e7b8a157ae4cb85f5421c70f64b6c37e38b577a79 SHA512 4777e972562918957398f7551d652231f44d124029687908fb4a38e48fda71fd006e5755159b11b4dbf75ecad42229f5fdef260a750cd8b05aec6da4582cc2c9 WHIRLPOOL b68b2c2463e51b75028520d6520494c8abe683c2282abac1ae5597faaa913073e1cd452129d092f979f0c084853bcbc9ae8960d8497ffc1ab8ef452bc9256694
+AUX 1.3.3/rfx.patch 450 SHA256 4d2da71d175b15ed15e53d3f5c6af5f83b5bae624acedd32f98a4780d290cf02 SHA512 3af2b5e445148154210fd978b0805dae27fb82ccf5ff110731d74f614cba2a5f0d2b0cd6b9a0bc2d18ab6c29c5b1749891e107afdd86148ffcaaa53aef885a76 WHIRLPOOL e49eb1fce6dae3d01c2f6cb9a206ab3d35c0e67ec1172917d68af390ba20d2c37adc89ea44aa4e553fcafbe2fc850d65bcff2b15028ce11fe0fe8f29a072f9f7
+AUX 1.3.3/rmmeshrender.patch 535 SHA256 9542de2e66abae5b6d8fed93785ee9dbc70165be81f7aaffcf81663181c94406 SHA512 29df3a2df50a07706dc83ac185935bb8cc41f4bc565f2d23f8c97f7d4dc29a6877b3fcf554c57f6441c8babce6e67f815f6928b10f24aacf9ec7472e17fa08ad WHIRLPOOL 5829353482153cd666f376dc4b1cebb07bc327fb6f6acf5e13145ebcbe8604d4711ad1af041c0b1f20e59cc1db2503f4b587c3816f6c72f0722934996e0d19f6
+AUX 1.3.3/rpath.patch 2164 SHA256 dd5450c2b869be82941b1ac86ec271ce94885916ed4f2ec0ef37660c7e407111 SHA512 90d6829ba1ecd38afde7e06d5a4c034823c9dcc0b139764effab7ff834160d7f18f719bb83ea42aa621fc7f6e6987acb2ecbd88568cf598ac6bb0a384bdddade WHIRLPOOL e0a7ae9f2080854600add69b06adb428e5b76ebbc908178f520f19d9575c91d29a09cdc1b63ff50ae1120e8d1eee7fe3a69d17e8e125a4842aed4cb0b2beda77
+AUX 1.3.3/structuresynth.patch 466 SHA256 39c3842212df89b623eeb06bf3dbc75124a25091adbd0e8f2474be350af57e17 SHA512 d1803aa87a7751d307143c4155e4ed06ec6e5896c0d359aa42690bce947c5502e24fcdfde5c479520f5288416d299bf97fe21d28e9721c446dd41bea42f0c76c WHIRLPOOL e0e5d165fdf014cb7f901c8bd170607986a9a2086ac11d82d0d1d2f8863b6ded7a83e62d8d34f5511f9accf63f3589b46764e8920314b6bc0a1a15110ba722ef
+DIST MeshLabSrc_AllInc_v132.tgz 12874196 SHA256 d57f0a99a55421aac54a66e2475d48f00f7b1752f9587cd69cf9b5b9c1a519b1 SHA512 40ef1f887d18e2146d6001d9c290bb76f6fc27caf13a1256a4061d5e2c43fd8dfdc843ace2cb83c6370648c2c5be3a22e2d5b31698df46e0695890d6a20651ac WHIRLPOOL aa6da94a8d5b9d28c9b787fe307774b7223e57278ed45c3bf1a823da9f5a9b59fd058a466f3f4dea3c4c57e3934b0aed88b1446f20e746349881c1bc965fec36
+DIST MeshLabSrc_AllInc_v133.tgz 13390531 SHA256 c9829cd1f58713f1f82d546af1ee69291b52a0f94585f803174fb9e55654980f SHA512 ec155292be10ebe17a7d41b26d51cce88e1f00b692b8adb29462a2c3cb15444c6f27067a3396e4427cd694c82424910ba80f32f536b5f5d46d6765b2461cef43 WHIRLPOOL f1f938e7eb8d648f2a8ac4399420d947efe403f19cc163b4a4e28f8cf620ae5aa22d17503e3b5ca7920996e78dfbb41dbd89447d61bd95e4a2f69420f2196d5d
+EBUILD meshlab-1.3.2.ebuild 2395 SHA256 de3b2b495c5015eec67e4a6a790041bf90afbe411d75f19f54e857f7cdbba22c SHA512 5cfa4650ddf7cf92386f777cadd7c7882244e1112e8869142e3f2ed6aaee0430041cace5c5bf7c68f1328a2d5f095c9d7b0e1257f14a4b0f4ce25df8c2d215c9 WHIRLPOOL 252d24ef502071428d28b6e5b7a730eda26bd9cc7c896f495af9eb79e12ed9a7d4f4cc2eadc374d7c9d774730318b9022575224c79994382146d586c7a8a91a8
+EBUILD meshlab-1.3.3-r1.ebuild 1745 SHA256 efbeb38acf5b788f5af938d0be530702c4a68c210a1f1bcc70abbcbd3d8d468c SHA512 c78ddfdf5c3e0f241f5f1d320d4cc7e6c37c7bf644785c475e153b8672d76f007ffcabedac0dd72b71e4f50d69789be9a817acd285931cd9880a2971f95d4150 WHIRLPOOL 4ff3ea3ca0a99a0e7545992369e3a5cf4ce1413ad14f3006ed9784ce4320a11671f50eb35fefe67d23604613c047c82dc7a3966fea0f27441afa10e94db8949c
+MISC ChangeLog 3783 SHA256 1d36af659939335344dae2e4aeaca4b87d4d5ee7288753857b60f218b0c8adca SHA512 151973fc700b27b93ea3ae10f9824d47da8bd5f6bca4e4dd9aa4c5ff25d2d89a00e9173572ab96a4f7bf4b6d07733b29b65efaebfc62c764e762f1e7d1844ace WHIRLPOOL 842be24ce377e33f67adb88692a732b59f74a5d6d5d738c95e8fde59e56c632499bcb95dcf3dba805eea0a407480df88f392c3174135fc6c522980759c60a018
+MISC ChangeLog-2015 1597 SHA256 7e921c4aa3d6bd7c61dea5800622d224faa1ae67e5b18abac7a1b74009b0f500 SHA512 a19bc943083f7972561dab6a4595d763fa575d682bc6d44fefad9b88c70a7c2a38bd1be1ca2c03d821b8c8868eb651670cb30b6965eaa21d92d2cfcb9f065a02 WHIRLPOOL d14a020f74a2e103b231c95187052e3199f0aa7fef82bc5b7d98fe33c22a807b0362083cc8f87f4d002cd6652ce47683a255d6c3a9571162c0b3ad57efa90cac
+MISC metadata.xml 724 SHA256 c66f7fadaaa5e0684af9008b1c528bb8aa33e8c73d494a08308770599f0758f1 SHA512 ed0fed872c4aa476f346f089a3a80640ad78924d9577a4ec7e58e666022bce1c6f4943bc08a4afcb0b46603d0c69d1fd8ae7a8dbbba7b5927aabfd6344c66916 WHIRLPOOL 7b7b70c91856ac7a5e47b91ca376ef751a623ccb6ccc047d151179a3bd93f0fdadf9e9c5aa488633dd8341052bbb27a3b8469c9f001682c40f1fb250869d1f7a
diff --git a/media-gfx/meshlab/files/1.3.2/01_crash-on-save.patch b/media-gfx/meshlab/files/1.3.2/01_crash-on-save.patch
new file mode 100644
index 000000000000..84c5ced8dc6a
--- /dev/null
+++ b/media-gfx/meshlab/files/1.3.2/01_crash-on-save.patch
@@ -0,0 +1,29 @@
+From: Teemu Ikonen <tpikonen@gmail.com>
+Subject: Fix crash on project save (closes: #718583)
+Git-Branch: p/crash-on-save
+Git-Diff: 532bdd9a6bde03cf47da8fb63fee60..cfc9473d1fa0e565d0aad4994fbb31
+
+Patch from upstream SVN commit [r6114].
+
+ meshlab/src/meshlab/mainwindow_RunTime.cpp | 8 ++++++--
+ 1 file changed, 6 insertions(+), 2 deletions(-)
+
+diff --git a/meshlab/src/meshlab/mainwindow_RunTime.cpp b/meshlab/src/meshlab/mainwindow_RunTime.cpp
+index 8f5057c..3273cec 100644
+--- a/meshlab/src/meshlab/mainwindow_RunTime.cpp
++++ b/meshlab/src/meshlab/mainwindow_RunTime.cpp
+@@ -1575,8 +1575,12 @@ void MainWindow::saveProject()
+
+ /*********WARNING!!!!!! CHANGE IT!!! ALSO IN THE OPENPROJECT FUNCTION********/
+ meshDoc()->setDocLabel(fileName);
+- mdiarea->activeSubWindow()->setWindowTitle(meshDoc()->docLabel());
+- layerDialog->setWindowTitle(meshDoc()->docLabel());
++ QMdiSubWindow* sub = mdiarea->currentSubWindow();
++ if (sub != NULL)
++ {
++ sub->setWindowTitle(meshDoc()->docLabel());
++ layerDialog->setWindowTitle(meshDoc()->docLabel());
++ }
+ /****************************************************************************/
+
+
diff --git a/media-gfx/meshlab/files/1.3.2/02_cstddef.patch b/media-gfx/meshlab/files/1.3.2/02_cstddef.patch
new file mode 100644
index 000000000000..903b0c77b547
--- /dev/null
+++ b/media-gfx/meshlab/files/1.3.2/02_cstddef.patch
@@ -0,0 +1,46 @@
+From: Teemu Ikonen <tpikonen@gmail.com>
+Subject: Include <cstddef> on files using offsetoff (closes: #625053)
+Git-Branch: p/cstddef
+Git-Diff: 532bdd9a6bde03cf47da8fb63fee60..8fb2fc380c1a53d0e603d1aaeff156
+
+ vcglib/wrap/io_tetramesh/import_ply.h | 1 +
+ vcglib/wrap/io_trimesh/import_ply.h | 1 +
+ vcglib/wrap/ply/plystuff.h | 1 +
+ 3 files changed, 3 insertions(+)
+
+diff --git a/vcglib/wrap/io_tetramesh/import_ply.h b/vcglib/wrap/io_tetramesh/import_ply.h
+index 0da4c1f..8370e48 100644
+--- a/vcglib/wrap/io_tetramesh/import_ply.h
++++ b/vcglib/wrap/io_tetramesh/import_ply.h
+@@ -36,6 +36,7 @@ created
+ #include<wrap/ply/io_mask.h>
+ #include<wrap/io_tetramesh/io_ply.h>
+ #include<vcg/complex/tetramesh/allocate.h>
++#include <cstddef>
+
+
+
+diff --git a/vcglib/wrap/io_trimesh/import_ply.h b/vcglib/wrap/io_trimesh/import_ply.h
+index 13eaa30..ce2de3a 100644
+--- a/vcglib/wrap/io_trimesh/import_ply.h
++++ b/vcglib/wrap/io_trimesh/import_ply.h
+@@ -29,6 +29,7 @@
+ #include<wrap/io_trimesh/io_mask.h>
+ #include<wrap/io_trimesh/io_ply.h>
+ #include<vcg/complex/algorithms/create/platonic.h>
++#include <cstddef>
+
+ namespace vcg {
+ namespace tri {
+diff --git a/vcglib/wrap/ply/plystuff.h b/vcglib/wrap/ply/plystuff.h
+index 3e41e63..4761e9f 100644
+--- a/vcglib/wrap/ply/plystuff.h
++++ b/vcglib/wrap/ply/plystuff.h
+@@ -57,6 +57,7 @@ Cleaning of the automatic bbox caching support for ply files. First working vers
+ #include <sys/types.h>
+ #include <sys/stat.h>
+ #include <fcntl.h>
++#include <cstddef>
+ #ifdef WIN32
+ #include <io.h>
+ #endif
diff --git a/media-gfx/meshlab/files/1.3.2/03_disable-updates.patch b/media-gfx/meshlab/files/1.3.2/03_disable-updates.patch
new file mode 100644
index 000000000000..9702758dca85
--- /dev/null
+++ b/media-gfx/meshlab/files/1.3.2/03_disable-updates.patch
@@ -0,0 +1,21 @@
+From: Teemu Ikonen <tpikonen@gmail.com>
+Subject: Disable checking for updates on startup.
+Git-Branch: p/disable-updates
+Git-Diff: 532bdd9a6bde03cf47da8fb63fee60..8f6cf9176644dce65ef4518b08526c
+
+ meshlab/src/meshlab/mainwindow_Init.cpp | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/meshlab/src/meshlab/mainwindow_Init.cpp b/meshlab/src/meshlab/mainwindow_Init.cpp
+index de3ff1d..ce7bf81 100644
+--- a/meshlab/src/meshlab/mainwindow_Init.cpp
++++ b/meshlab/src/meshlab/mainwindow_Init.cpp
+@@ -926,7 +926,7 @@ void MainWindow::saveRecentFileList(const QString &fileName)
+
+ if(loadedMeshCounter-lastComunicatedValue>connectionInterval && !myLocalBuf.isOpen())
+ {
+-#if not defined(__DISABLE_AUTO_STATS__)
++#if defined(__ENABLE_AUTO_STATS__)
+ checkForUpdates(false);
+ #endif
+ int congratsMeshCounter = settings.value("congratsMeshCounter",50).toInt();
diff --git a/media-gfx/meshlab/files/1.3.2/05_externals.patch b/media-gfx/meshlab/files/1.3.2/05_externals.patch
new file mode 100644
index 000000000000..0592b5709646
--- /dev/null
+++ b/media-gfx/meshlab/files/1.3.2/05_externals.patch
@@ -0,0 +1,25 @@
+From: Teemu Ikonen <tpikonen@gmail.com>
+Subject: Only build necessary external sources.
+Git-Branch: p/externals
+Git-Diff: 532bdd9a6bde03cf47da8fb63fee60..ca572df8704909a1bbe18b1ce25d76
+
+ meshlab/src/external/external.pro | 7 +------
+ 1 file changed, 1 insertion(+), 6 deletions(-)
+
+diff --git a/meshlab/src/external/external.pro b/meshlab/src/external/external.pro
+index c103d88..324eb91 100644
+--- a/meshlab/src/external/external.pro
++++ b/meshlab/src/external/external.pro
+@@ -2,11 +2,6 @@ config += debug_and_release
+
+ TEMPLATE = subdirs
+
+-SUBDIRS = lib3ds-1.3.0/lib3ds \
+- bzip2-1.0.5/bzip2-1.0.5.pro \
+- muparser_v132/src \
+- levmar-2.3/levmar-2.3.pro \
++SUBDIRS = levmar-2.3/levmar-2.3.pro \
+ structuresynth/structuresynth.pro \
+- OpenCTM-1.0.3/openctm.pro \
+ jhead-2.95/jhead-2.95.pro
+-# openkinect/openkinect.pro
diff --git a/media-gfx/meshlab/files/1.3.2/06_format-security.patch b/media-gfx/meshlab/files/1.3.2/06_format-security.patch
new file mode 100644
index 000000000000..36a767ca07e9
--- /dev/null
+++ b/media-gfx/meshlab/files/1.3.2/06_format-security.patch
@@ -0,0 +1,44 @@
+From: Teemu Ikonen <tpikonen@gmail.com>
+Subject: Fix compilation errors with -Werror=format-security.
+Git-Branch: p/format-security
+Git-Diff: 532bdd9a6bde03cf47da8fb63fee60..be247b855ebb49a4d826d60b7d21a0
+
+ .../meshlabplugins/decorate_raster_proj/decorate_raster_proj.cpp | 4 ++--
+ meshlab/src/meshlabplugins/edit_arc3D/edit_arc3D.cpp | 2 +-
+ 2 files changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/meshlab/src/meshlabplugins/decorate_raster_proj/decorate_raster_proj.cpp b/meshlab/src/meshlabplugins/decorate_raster_proj/decorate_raster_proj.cpp
+index 4864214..233b657 100644
+--- a/meshlab/src/meshlabplugins/decorate_raster_proj/decorate_raster_proj.cpp
++++ b/meshlab/src/meshlabplugins/decorate_raster_proj/decorate_raster_proj.cpp
+@@ -526,7 +526,7 @@ bool DecorateRasterProjPlugin::startDecorate( QAction *act,
+ GLenum err = glewInit();
+ if( err != GLEW_OK )
+ {
+- qWarning( (std::string("Impossible to load GLEW library.")+(char*)glewGetErrorString(err)).c_str() );
++ qWarning("Impossible to load GLEW library: %s", glewGetErrorString(err));
+ return false;
+ }
+ Log( "GLEW library correctly initialized." );
+@@ -536,7 +536,7 @@ bool DecorateRasterProjPlugin::startDecorate( QAction *act,
+ std::string logs;
+ if( !initShaders(logs) )
+ {
+- qWarning( ("Error while initializing shaders.\n"+logs).c_str() );
++ qWarning("Error while initializing shaders.\n%s", logs.c_str());
+ return false;
+ }
+ Log( "Shaders correctly loaded." );
+diff --git a/meshlab/src/meshlabplugins/edit_arc3D/edit_arc3D.cpp b/meshlab/src/meshlabplugins/edit_arc3D/edit_arc3D.cpp
+index 88b6f9f..c23987c 100644
+--- a/meshlab/src/meshlabplugins/edit_arc3D/edit_arc3D.cpp
++++ b/meshlab/src/meshlabplugins/edit_arc3D/edit_arc3D.cpp
+@@ -269,7 +269,7 @@ void EditArc3DPlugin::ExportPly()
+ QString suffix = "." + qfInfo.completeSuffix();
+ QString path = qfInfo.absoluteFilePath().remove(suffix);
+ path.append("Undist" + suffix);
+- qDebug(path.toLatin1());
++ qDebug("%s", path.toStdString().c_str());
+
+ QImage undistImg(originalImg.width(),originalImg.height(),originalImg.format());
+ undistImg.fill(qRgba(0,0,0,255));
diff --git a/media-gfx/meshlab/files/1.3.2/07_gcc47.patch b/media-gfx/meshlab/files/1.3.2/07_gcc47.patch
new file mode 100644
index 000000000000..df608d8369ed
--- /dev/null
+++ b/media-gfx/meshlab/files/1.3.2/07_gcc47.patch
@@ -0,0 +1,105 @@
+From: Teemu Ikonen <tpikonen@gmail.com>
+Subject: Fix FTBFS with GCC-4.7
+Git-Branch: p/gcc47
+Git-Diff: 532bdd9a6bde03cf47da8fb63fee60..07a6c6cf991f44779236b31381a7ca
+
+Closes: #667276
+
+Thanks to Matej Vela for the patch.
+
+ meshlab/src/meshlabplugins/decorate_base/colorhistogram.h | 2 +-
+ .../vcg/complex/algorithms/local_optimization/tri_edge_flip.h | 8 ++++----
+ vcglib/vcg/space/index/grid_static_obj.h | 2 +-
+ vcglib/wrap/gl/trimesh.h | 2 +-
+ vcglib/wrap/ply/plystuff.h | 1 +
+ 5 files changed, 8 insertions(+), 7 deletions(-)
+
+diff --git a/meshlab/src/meshlabplugins/decorate_base/colorhistogram.h b/meshlab/src/meshlabplugins/decorate_base/colorhistogram.h
+index 2351b2a..90c6d76 100644
+--- a/meshlab/src/meshlabplugins/decorate_base/colorhistogram.h
++++ b/meshlab/src/meshlabplugins/decorate_base/colorhistogram.h
+@@ -40,7 +40,7 @@ public:
+
+ //! Reset histogram data.
+ void Clear() {
+- this->::Clear();
++ Histogram<ScalarType>::Clear();
+ CV.clear();
+ }
+ /*
+diff --git a/vcglib/vcg/complex/algorithms/local_optimization/tri_edge_flip.h b/vcglib/vcg/complex/algorithms/local_optimization/tri_edge_flip.h
+index 9054166..f40f0dc 100644
+--- a/vcglib/vcg/complex/algorithms/local_optimization/tri_edge_flip.h
++++ b/vcglib/vcg/complex/algorithms/local_optimization/tri_edge_flip.h
+@@ -558,13 +558,13 @@ public:
+ // edges of the first face, except the flipped edge
+ for(int i = 0; i < 3; i++) if(i != flipped) {
+ PosType newpos(f1, i);
+- Insert(heap, newpos, this->GlobalMark());
++ this->Insert(heap, newpos, this->GlobalMark());
+ }
+
+ // edges of the second face, except the flipped edge
+ for(int i = 0; i < 3; i++) if(i != f1->FFi(flipped)) {
+ PosType newpos(f2, i);
+- Insert(heap, newpos, this->GlobalMark());
++ this->Insert(heap, newpos, this->GlobalMark());
+ }
+
+ // every edge with v0, v1 v3 of f1
+@@ -583,7 +583,7 @@ public:
+ do {
+ VertexPointer v = pos.VFlip();
+ if(v != v0 && v != v1 && v != v2 && v != v3)
+- Insert(heap, pos, this->GlobalMark());
++ this->Insert(heap, pos, this->GlobalMark());
+
+ pos.NextE();
+ } while(pos != startpos && !pos.IsBorder());
+@@ -603,7 +603,7 @@ public:
+ do {
+ VertexPointer v = pos.VFlip();
+ if(v != v0 && v != v1 && v != v2 && v != v3)
+- Insert(heap, pos, this->GlobalMark());
++ this->Insert(heap, pos, this->GlobalMark());
+
+ pos.NextE();
+ } while(pos != startpos && !pos.IsBorder());
+diff --git a/vcglib/vcg/space/index/grid_static_obj.h b/vcglib/vcg/space/index/grid_static_obj.h
+index 0554393..26608d5 100644
+--- a/vcglib/vcg/space/index/grid_static_obj.h
++++ b/vcglib/vcg/space/index/grid_static_obj.h
+@@ -72,7 +72,7 @@ class GridStaticObj : public BasicGrid<FLT>
+ inline ~GridStaticObj() { if(grid) delete[] grid; }
+ inline void Init(const ObjType &val)
+ {
+- fill(grid,grid+size(),val);
++ std::fill(grid,grid+size(),val);
+ }
+
+
+diff --git a/vcglib/wrap/gl/trimesh.h b/vcglib/wrap/gl/trimesh.h
+index 5d40404..ba72456 100644
+--- a/vcglib/wrap/gl/trimesh.h
++++ b/vcglib/wrap/gl/trimesh.h
+@@ -1003,7 +1003,7 @@ void Crease(MESH_TYPE &m, typename MESH_TYPE::scalar_type angleRad)
+ }
+ }
+
+- m.vert.math::Swap(newvert);
++ m.vert.swap(newvert);
+ m.vn=m.vert.size();
+ }
+
+diff --git a/vcglib/wrap/ply/plystuff.h b/vcglib/wrap/ply/plystuff.h
+index 3e41e63..4af9508 100644
+--- a/vcglib/wrap/ply/plystuff.h
++++ b/vcglib/wrap/ply/plystuff.h
+@@ -75,6 +75,7 @@ using namespace vcg;
+ #define pb_close _close
+ #define DIR_SEP "\\"
+ #else
++#include <unistd.h>
+ #define pb_mkdir(n) mkdir(n,0755)
+ #define pb_access access
+ #define pb_stat stat
diff --git a/media-gfx/meshlab/files/1.3.2/08_lib3ds.patch b/media-gfx/meshlab/files/1.3.2/08_lib3ds.patch
new file mode 100644
index 000000000000..243ed1d9668a
--- /dev/null
+++ b/media-gfx/meshlab/files/1.3.2/08_lib3ds.patch
@@ -0,0 +1,32 @@
+From: Teemu Ikonen <tpikonen@gmail.com>
+Subject: Use Debian lib3ds.
+Git-Branch: p/lib3ds
+Git-Diff: 532bdd9a6bde03cf47da8fb63fee60..944ece3e566dbf4cc885163178d303
+
+ meshlab/src/meshlabplugins/io_3ds/io_3ds.pro | 6 ++----
+ 1 file changed, 2 insertions(+), 4 deletions(-)
+
+diff --git a/meshlab/src/meshlabplugins/io_3ds/io_3ds.pro b/meshlab/src/meshlabplugins/io_3ds/io_3ds.pro
+index cf8052a..fed064d 100644
+--- a/meshlab/src/meshlabplugins/io_3ds/io_3ds.pro
++++ b/meshlab/src/meshlabplugins/io_3ds/io_3ds.pro
+@@ -14,7 +14,7 @@ SOURCES += meshio.cpp \
+
+ TARGET = io_3ds
+
+-INCLUDEPATH += ../../external/lib3ds-1.3.0/
++INCLUDEPATH += /usr/include/lib3ds
+
+ # Notes on the paths of lib3ds files.
+ # Once you have compiled the library put the lib files in a dir named lib/XXX/
+@@ -25,9 +25,7 @@ win32-msvc.net:LIBS += ../../external/lib/win32-msvc.net/3ds.lib
+ win32-msvc2005:LIBS += ../../external/lib/win32-msvc2005/3ds.lib
+ win32-msvc2008:LIBS += ../../external/lib/win32-msvc2008/3ds.lib
+ win32-g++:LIBS += ../../external/lib/win32-gcc/lib3ds.a
+-linux-g++:LIBS += ../../external/lib/linux-g++/lib3ds.a
+-linux-g++-32:LIBS += ../../external/lib/linux-g++-32/lib3ds.a
+-linux-g++-64:LIBS += ../../external/lib/linux-g++-64/lib3ds.a
++linux-g++:LIBS += -l3ds
+
+ # unix:LIBS += -L../../../../code/lib/lib3ds-1.3.0/lib3ds/lib/unix -l3ds
+
diff --git a/media-gfx/meshlab/files/1.3.2/09_libbz2.patch b/media-gfx/meshlab/files/1.3.2/09_libbz2.patch
new file mode 100644
index 000000000000..1b064f7f6ae9
--- /dev/null
+++ b/media-gfx/meshlab/files/1.3.2/09_libbz2.patch
@@ -0,0 +1,31 @@
+From: Teemu Ikonen <tpikonen@gmail.com>
+Subject: Use Debian libbz2.
+Git-Branch: p/libbz2
+Git-Diff: 532bdd9a6bde03cf47da8fb63fee60..a6e1a0b242a02075c0d686ec4fa8b8
+
+ meshlab/src/meshlabplugins/edit_arc3D/edit_arc3D.pro | 8 ++------
+ 1 file changed, 2 insertions(+), 6 deletions(-)
+
+diff --git a/meshlab/src/meshlabplugins/edit_arc3D/edit_arc3D.pro b/meshlab/src/meshlabplugins/edit_arc3D/edit_arc3D.pro
+index e317b99..94dc124 100644
+--- a/meshlab/src/meshlabplugins/edit_arc3D/edit_arc3D.pro
++++ b/meshlab/src/meshlabplugins/edit_arc3D/edit_arc3D.pro
+@@ -32,16 +32,12 @@ RESOURCES = edit_arc3D.qrc
+ win32-msvc2005:LIBS += ../../external/lib/win32-msvc2005/bz2.lib
+ win32-msvc2008:LIBS += ../../external/lib/win32-msvc2008/bz2.lib
+ win32-g++:LIBS += ../../external/lib/win32-gcc/libbz2.a
+-linux-g++:LIBS += ../../external/lib/linux-g++/libbz2.a
+-linux-g++-32:LIBS += ../../external/lib/linux-g++-32/libbz2.a
+-linux-g++-64:LIBS += ../../external/lib/linux-g++-64/libbz2.a
++linux-g++:LIBS += -lbz2
+
+ win32-msvc2005:INCLUDEPATH += ../../external/bzip2-1.0.5
+ win32-msvc2008:INCLUDEPATH += ../../external/bzip2-1.0.5
+ win32-g++:INCLUDEPATH += ../../external/bzip2-1.0.5
+-linux-g++:INCLUDEPATH += ../../external/bzip2-1.0.5
+-linux-g++-32:INCLUDEPATH += ../../external/bzip2-1.0.5
+-linux-g++-64:INCLUDEPATH += ../../external/bzip2-1.0.5
++linux-g++:INCLUDEPATH += /usr/include
+
+ mac:LIBS += -lbz2
+
diff --git a/media-gfx/meshlab/files/1.3.2/10_muparser.patch b/media-gfx/meshlab/files/1.3.2/10_muparser.patch
new file mode 100644
index 000000000000..f640377c59f4
--- /dev/null
+++ b/media-gfx/meshlab/files/1.3.2/10_muparser.patch
@@ -0,0 +1,30 @@
+From: Teemu Ikonen <tpikonen@gmail.com>
+Subject: Use Debian muparser.
+Git-Branch: p/muparser
+Git-Diff: 532bdd9a6bde03cf47da8fb63fee60..5e9cfcdae805ddac6f550b2a9f7011
+
+ meshlab/src/meshlabplugins/filter_func/filter_func.pro | 6 ++----
+ 1 file changed, 2 insertions(+), 4 deletions(-)
+
+diff --git a/meshlab/src/meshlabplugins/filter_func/filter_func.pro b/meshlab/src/meshlabplugins/filter_func/filter_func.pro
+index 3bcce2a..9a147b2 100644
+--- a/meshlab/src/meshlabplugins/filter_func/filter_func.pro
++++ b/meshlab/src/meshlabplugins/filter_func/filter_func.pro
+@@ -6,7 +6,7 @@ SOURCES += filter_func.cpp
+
+ TARGET = filter_func
+
+-INCLUDEPATH += ../../external/muparser_v132/include
++INCLUDEPATH += /usr/include/muParser
+
+ # Note: we need static libs so when building muparser lib use
+ # ./configure --enable-shared=no
+@@ -14,7 +14,5 @@ INCLUDEPATH += ../../external/muparser_v132/include
+ win32-msvc2005:LIBS += ../../external/lib/win32-msvc2005/muparser.lib
+ win32-msvc2008:LIBS += ../../external/lib/win32-msvc2008/muparser.lib
+ macx:LIBS += $$MACLIBDIR/libmuparser.a
+-linux-g++:LIBS += ../../external/lib/linux-g++/libmuparser.a
+-linux-g++-32:LIBS += ../../external/lib/linux-g++-32/libmuparser.a
+-linux-g++-64:LIBS += ../../external/lib/linux-g++-64/libmuparser.a
++linux-g++:LIBS += -lmuparser
+ win32-g++:LIBS += ../../external/lib/win32-gcc/libmuparser.a
diff --git a/media-gfx/meshlab/files/1.3.2/11_openctm.patch b/media-gfx/meshlab/files/1.3.2/11_openctm.patch
new file mode 100644
index 000000000000..7fcbced741a3
--- /dev/null
+++ b/media-gfx/meshlab/files/1.3.2/11_openctm.patch
@@ -0,0 +1,31 @@
+From: Teemu Ikonen <tpikonen@gmail.com>
+Subject: Use Debian OpenCTM
+Git-Branch: p/openctm
+Git-Diff: 532bdd9a6bde03cf47da8fb63fee60..e067d2c66c2408593f62f9c7776eed
+
+ meshlab/src/meshlabplugins/io_ctm/io_ctm.pro | 6 ++----
+ 1 file changed, 2 insertions(+), 4 deletions(-)
+
+diff --git a/meshlab/src/meshlabplugins/io_ctm/io_ctm.pro b/meshlab/src/meshlabplugins/io_ctm/io_ctm.pro
+index 1084902..31f0237 100644
+--- a/meshlab/src/meshlabplugins/io_ctm/io_ctm.pro
++++ b/meshlab/src/meshlabplugins/io_ctm/io_ctm.pro
+@@ -3,7 +3,7 @@ HEADERS += io_ctm.h \
+ $$VCGDIR/wrap/io_trimesh/import_ctm.h \
+ $$VCGDIR/wrap/io_trimesh/export_ctm.h
+ SOURCES += io_ctm.cpp
+-INCLUDEPATH += ../../external/OpenCTM-1.0.3/lib
++INCLUDEPATH += /usr/include
+ TARGET = io_ctm
+
+ win32-msvc.net:QMAKE_CXXFLAGS += /DOPENCTM_STATIC
+@@ -15,8 +15,6 @@ win32-msvc.net:LIBS += ../../external/lib/win32-msvc.net/openctm.lib
+ win32-msvc2005:LIBS += ../../external/lib/win32-msvc2005/openctm.lib
+ win32-msvc2008:LIBS += ../../external/lib/win32-msvc2008/openctm.lib
+ win32-g++:LIBS += ../../external/lib/win32-gcc/libopenctm.a
+-linux-g++:LIBS += ../../external/lib/linux-g++/libopenctm.a
+-linux-g++-32:LIBS += ../../external/lib/linux-g++-32/libopenctm.a
+-linux-g++-64:LIBS += ../../external/lib/linux-g++-64/libopenctm.a
++linux-g++:LIBS += -lopenctm
+ #macx:LIBS += ../../external/lib/macx/libopenctm.a
+ macx:LIBS += $$MACLIBDIR/libopenctm.a
diff --git a/media-gfx/meshlab/files/1.3.2/12_overflow.patch b/media-gfx/meshlab/files/1.3.2/12_overflow.patch
new file mode 100644
index 000000000000..7bf594302c82
--- /dev/null
+++ b/media-gfx/meshlab/files/1.3.2/12_overflow.patch
@@ -0,0 +1,23 @@
+From: Teemu Ikonen <tpikonen@gmail.com>
+Subject: Fix overflowing array index in VCGlib
+Git-Branch: p/overflow
+Git-Diff: 532bdd9a6bde03cf47da8fb63fee60..ec0961589f0d134ab51265b8431c5f
+
+Fixes also E-array-bounds error in Debian build log scanner.
+
+ vcglib/wrap/gl/addons.h | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/vcglib/wrap/gl/addons.h b/vcglib/wrap/gl/addons.h
+index 002ff1b..bc863bf 100644
+--- a/vcglib/wrap/gl/addons.h
++++ b/vcglib/wrap/gl/addons.h
+@@ -292,7 +292,7 @@ public:
+ P[1] = Point3f( 0, sinf(angle), cosf(angle));
+ assert(!glGetError());
+ glBegin(GL_TRIANGLES);
+- Point3f n = ( (P[0]-p0) ^ (P[2]-p0) ).Normalize();
++ Point3f n = ( (P[0]-p0) ^ (P[1]-p0) ).Normalize();
+ glNormal3f(n[0],n[1],n[2]);
+ glVertex3f(p0[0],p0[1],p0[2]);
+ glNormal3f(N[0][0],N[0][1],N[0][2]);
diff --git a/media-gfx/meshlab/files/1.3.2/13_pluginsdir.patch b/media-gfx/meshlab/files/1.3.2/13_pluginsdir.patch
new file mode 100644
index 000000000000..f92ad6376ff1
--- /dev/null
+++ b/media-gfx/meshlab/files/1.3.2/13_pluginsdir.patch
@@ -0,0 +1,21 @@
+From: Teemu Ikonen <tpikonen@gmail.com>
+Subject: Hardcode pluginsDir to the correct path in Debian
+Git-Branch: p/pluginsdir
+Git-Diff: 532bdd9a6bde03cf47da8fb63fee60..e1db74a038fd5fc27cc5e9f0bee8d3
+
+ meshlab/src/common/pluginmanager.cpp | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/meshlab/src/common/pluginmanager.cpp b/meshlab/src/common/pluginmanager.cpp
+index d84c8fa..a039736 100644
+--- a/meshlab/src/common/pluginmanager.cpp
++++ b/meshlab/src/common/pluginmanager.cpp
+@@ -230,7 +230,7 @@ QString PluginManager::getBaseDirPath()
+
+ QString PluginManager::getPluginDirPath()
+ {
+- QDir pluginsDir(getBaseDirPath());
++ QDir pluginsDir("/usr/lib/meshlab");
+ if(!pluginsDir.exists("plugins"))
+ //QMessageBox::warning(0,"Meshlab Initialization","Serious error. Unable to find the plugins directory.");
+ qDebug("Meshlab Initialization: Serious error. Unable to find the plugins directory.");
diff --git a/media-gfx/meshlab/files/1.3.2/14_ply_numeric.patch b/media-gfx/meshlab/files/1.3.2/14_ply_numeric.patch
new file mode 100644
index 000000000000..2f7c6e0a72d2
--- /dev/null
+++ b/media-gfx/meshlab/files/1.3.2/14_ply_numeric.patch
@@ -0,0 +1,32 @@
+From: Teemu Ikonen <tpikonen@gmail.com>
+Subject: Set LC_NUMERIC to "C"
+Git-Branch: p/ply_numeric
+Git-Diff: 532bdd9a6bde03cf47da8fb63fee60..2aeac7daa4785a9cf0b2480f663780
+
+Fixes reading of ascii float values in locales which use the comma as a
+float separator.
+
+ meshlab/src/meshlab/main.cpp | 4 ++++
+ 1 file changed, 4 insertions(+)
+
+diff --git a/meshlab/src/meshlab/main.cpp b/meshlab/src/meshlab/main.cpp
+index 7058e31..e452e87 100644
+--- a/meshlab/src/meshlab/main.cpp
++++ b/meshlab/src/meshlab/main.cpp
+@@ -25,12 +25,16 @@
+ #include <QMessageBox>
+ #include "mainwindow.h"
+
++using namespace std;
++
+ int main(int argc, char *argv[])
+ {
+ MeshLabApplication app(argc, argv);
+ QLocale::setDefault(QLocale::C);
+ QCoreApplication::setOrganizationName("VCG");
+ QCoreApplication::setApplicationName("MeshLab");
++
++ std::setlocale(LC_NUMERIC, "C");
+
+ if(argc>1)
+ {
diff --git a/media-gfx/meshlab/files/1.3.2/15_qhull.patch b/media-gfx/meshlab/files/1.3.2/15_qhull.patch
new file mode 100644
index 000000000000..6c1f70a3f0bc
--- /dev/null
+++ b/media-gfx/meshlab/files/1.3.2/15_qhull.patch
@@ -0,0 +1,67 @@
+diff -Naur a/meshlab/src/meshlabplugins/filter_qhull/filter_qhull.pro b/meshlab/src/meshlabplugins/filter_qhull/filter_qhull.pro
+--- a/meshlab/src/meshlabplugins/filter_qhull/filter_qhull.pro 2013-10-30 21:12:42.000000000 +0000
++++ b/meshlab/src/meshlabplugins/filter_qhull/filter_qhull.pro 2013-10-30 21:31:35.692580129 +0000
+@@ -8,28 +8,6 @@
+ SOURCES += filter_qhull.cpp \
+ qhull_tools.cpp
+
+-HEADERS += ../../external/qhull-2003.1/src/geom.h \
+- ../../external/qhull-2003.1/src/io.h \
+- ../../external/qhull-2003.1/src/mem.h \
+- ../../external/qhull-2003.1/src/merge.h \
+- ../../external/qhull-2003.1/src/poly.h \
+- ../../external/qhull-2003.1/src/qhull.h \
+- ../../external/qhull-2003.1/src/qset.h \
+- ../../external/qhull-2003.1/src/stat.h \
+- ../../external/qhull-2003.1/src/user.h
+-
+-SOURCES += ../../external/qhull-2003.1/src/geom.c \
+- ../../external/qhull-2003.1/src/geom2.c \
+- ../../external/qhull-2003.1/src/global.c \
+- ../../external/qhull-2003.1/src/io.c \
+- ../../external/qhull-2003.1/src/mem.c \
+- ../../external/qhull-2003.1/src/merge.c \
+- ../../external/qhull-2003.1/src/poly.c \
+- ../../external/qhull-2003.1/src/poly2.c \
+- ../../external/qhull-2003.1/src/qconvex.c \
+- ../../external/qhull-2003.1/src/qhull.c \
+- ../../external/qhull-2003.1/src/qset.c \
+- ../../external/qhull-2003.1/src/stat.c \
+- ../../external/qhull-2003.1/src/user.c
++LIBS += -lqhull
+
+ TARGET = filter_qhull
+\ В конце файла нет новой строки
+diff -Naur a/meshlab/src/meshlabplugins/filter_qhull/qhull_tools.h b/meshlab/src/meshlabplugins/filter_qhull/qhull_tools.h
+--- a/meshlab/src/meshlabplugins/filter_qhull/qhull_tools.h 1970-01-01 00:00:00.000000000 +0000
++++ b/meshlab/src/meshlabplugins/filter_qhull/qhull_tools.h 2013-10-30 21:32:57.242574626 +0000
+@@ -0,0 +1,29 @@
++
++#include <common/meshmodel.h>
++#include <math.h>
++
++
++#if defined(__cplusplus)
++extern "C"
++{
++#endif
++#include <stdio.h>
++#include <stdlib.h>
++#include <libqhull/libqhull.h>
++#include <libqhull/mem.h>
++#include <libqhull/qset.h>
++#include <libqhull/geom.h>
++#include <libqhull/merge.h>
++#include <libqhull/poly.h>
++#include <libqhull/io.h>
++#include <libqhull/stat.h>
++#if defined(__cplusplus)
++}
++#endif
++
++facetT *compute_convex_hull(int dim, int numpoints, MeshModel &m);
++facetT *compute_delaunay(int dim, int numpoints, MeshModel &m);
++bool compute_voronoi(int dim, int numpoints, MeshModel &m, MeshModel &pm,float threshold);
++bool compute_alpha_shapes(int dim, int numpoints, MeshModel &m, MeshModel &pm,double alpha, bool alphashape);
++int visible_points(int dim, int numpoints, MeshModel &m, MeshModel &pm,MeshModel &pm2, vcg::Point3f viewpointP,float threshold,bool convex_hullFP,bool triangVP);
++
diff --git a/media-gfx/meshlab/files/1.3.2/16_shadersdir.patch b/media-gfx/meshlab/files/1.3.2/16_shadersdir.patch
new file mode 100644
index 000000000000..d8ebc206f045
--- /dev/null
+++ b/media-gfx/meshlab/files/1.3.2/16_shadersdir.patch
@@ -0,0 +1,49 @@
+From: Teemu Ikonen <tpikonen@gmail.com>
+Subject: Hardcode shadersDir to the correct path in Debian in various plugins
+Git-Branch: p/shadersdir
+Git-Diff: 532bdd9a6bde03cf47da8fb63fee60..06b8aa9ce525fc0c5c221f5d675c29
+
+ meshlab/src/meshlabplugins/render_gdp/meshrender.cpp | 2 +-
+ meshlab/src/meshlabplugins/render_gdp/shaderDialog.cpp | 2 +-
+ meshlab/src/meshlabplugins/render_rfx/render_rfx.cpp | 2 +-
+ 3 files changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/meshlab/src/meshlabplugins/render_gdp/meshrender.cpp b/meshlab/src/meshlabplugins/render_gdp/meshrender.cpp
+index 64dbcc3..c07998c 100644
+--- a/meshlab/src/meshlabplugins/render_gdp/meshrender.cpp
++++ b/meshlab/src/meshlabplugins/render_gdp/meshrender.cpp
+@@ -39,7 +39,7 @@ void MeshShaderRenderPlugin::initActionList() {
+ qaNone->setCheckable(false);
+ actionList << qaNone;*/
+
+- QDir shadersDir = QDir(qApp->applicationDirPath());
++ QDir shadersDir = QDir("/usr/share/meshlab");
+ #if defined(Q_OS_WIN)
+ if (shadersDir.dirName() == "debug" || shadersDir.dirName() == "release" || shadersDir.dirName() == "plugins" )
+ shadersDir.cdUp();
+diff --git a/meshlab/src/meshlabplugins/render_gdp/shaderDialog.cpp b/meshlab/src/meshlabplugins/render_gdp/shaderDialog.cpp
+index 9c45981..0256805 100644
+--- a/meshlab/src/meshlabplugins/render_gdp/shaderDialog.cpp
++++ b/meshlab/src/meshlabplugins/render_gdp/shaderDialog.cpp
+@@ -323,7 +323,7 @@ void ShaderDialog::changeTexturePath(int i) {
+ void ShaderDialog::browseTexturePath(int i) {
+ QFileDialog fd(0,"Choose new texture");
+
+- QDir shadersDir = QDir(qApp->applicationDirPath());
++ QDir shadersDir = QDir("/usr/share/meshlab");
+ #if defined(Q_OS_WIN)
+ if (shadersDir.dirName() == "debug" || shadersDir.dirName() == "release")
+ shadersDir.cdUp();
+diff --git a/meshlab/src/meshlabplugins/render_rfx/render_rfx.cpp b/meshlab/src/meshlabplugins/render_rfx/render_rfx.cpp
+index e327cea..eb67fd2 100755
+--- a/meshlab/src/meshlabplugins/render_rfx/render_rfx.cpp
++++ b/meshlab/src/meshlabplugins/render_rfx/render_rfx.cpp
+@@ -55,7 +55,7 @@ QList<QAction*> RenderRFX::actions()
+
+ void RenderRFX::initActionList()
+ {
+- QDir shadersDir = PluginManager::getBaseDirPath();
++ QDir shadersDir = QDir("/usr/share/meshlab");
+
+ #if defined(Q_OS_WIN)
+ if (shadersDir.dirName() == "debug" ||
diff --git a/media-gfx/meshlab/files/1.3.2/17_structuresynth.patch b/media-gfx/meshlab/files/1.3.2/17_structuresynth.patch
new file mode 100644
index 000000000000..6a6b84c8d682
--- /dev/null
+++ b/media-gfx/meshlab/files/1.3.2/17_structuresynth.patch
@@ -0,0 +1,48 @@
+From: Teemu Ikonen <tpikonen@gmail.com>
+Subject: Include glu.h where needed in included structure-synth code.
+Git-Branch: p/structuresynth
+Git-Diff: 532bdd9a6bde03cf47da8fb63fee60..45495fd45078a06d7c5f7405ba636c
+
+Also link structuresynth code with libGLU.
+
+This FTBS was exposed by GCC-4.7. See Debian bug #672000 for the same
+issue in the real structure-synth Debian package.
+
+ .../structuresynth/ssynth/SyntopiaCore/GLEngine/EngineWidget.h | 1 +
+ .../src/external/structuresynth/ssynth/SyntopiaCore/GLEngine/Sphere.h | 1 +
+ meshlab/src/external/structuresynth/structuresynth.pro | 1 +
+ 3 files changed, 3 insertions(+)
+
+diff --git a/meshlab/src/external/structuresynth/ssynth/SyntopiaCore/GLEngine/EngineWidget.h b/meshlab/src/external/structuresynth/ssynth/SyntopiaCore/GLEngine/EngineWidget.h
+index 8905cbe..e13b011 100644
+--- a/meshlab/src/external/structuresynth/ssynth/SyntopiaCore/GLEngine/EngineWidget.h
++++ b/meshlab/src/external/structuresynth/ssynth/SyntopiaCore/GLEngine/EngineWidget.h
+@@ -5,6 +5,7 @@
+ #include <QMainWindow>
+ #include <QPoint>
+ #include <QList>
++#include <GL/glu.h>
+
+ #include "SyntopiaCore/Math/Vector3.h"
+ #include "SyntopiaCore/Math/Matrix4.h"
+diff --git a/meshlab/src/external/structuresynth/ssynth/SyntopiaCore/GLEngine/Sphere.h b/meshlab/src/external/structuresynth/ssynth/SyntopiaCore/GLEngine/Sphere.h
+index 0b0dc40..ed95346 100644
+--- a/meshlab/src/external/structuresynth/ssynth/SyntopiaCore/GLEngine/Sphere.h
++++ b/meshlab/src/external/structuresynth/ssynth/SyntopiaCore/GLEngine/Sphere.h
+@@ -2,6 +2,7 @@
+
+ #include "SyntopiaCore/Math/Vector3.h"
+ #include "Object3D.h"
++#include <GL/glu.h>
+
+ namespace SyntopiaCore {
+ namespace GLEngine {
+diff --git a/meshlab/src/external/structuresynth/structuresynth.pro b/meshlab/src/external/structuresynth/structuresynth.pro
+index 8579b03..362ce5d 100644
+--- a/meshlab/src/external/structuresynth/structuresynth.pro
++++ b/meshlab/src/external/structuresynth/structuresynth.pro
+@@ -120,3 +120,4 @@ win32-msvc2008:DESTDIR = ../lib/win32-msvc2008
+ linux-g++-32:DESTDIR = ../lib/linux-g++-32
+ linux-g++-64:DESTDIR = ../lib/linux-g++-64
+ linux-g++:DESTDIR = ../lib/linux-g++
++unix:LIBS+=-lGLU
diff --git a/media-gfx/meshlab/files/1.3.2/18_glew.c18p1.patch b/media-gfx/meshlab/files/1.3.2/18_glew.c18p1.patch
new file mode 100644
index 000000000000..894f05cf2423
--- /dev/null
+++ b/media-gfx/meshlab/files/1.3.2/18_glew.c18p1.patch
@@ -0,0 +1,146 @@
+From: Teemu Ikonen <tpikonen@gmail.com>
+Subject: Use Debian GLEW.
+Git-Branch: p/glew
+Git-Diff: 532bdd9a6bde03cf47da8fb63fee60..7023f74389baab6b9032c08ae2e2b2
+
+ meshlab/src/common/common.pro | 5 ++---
+ meshlab/src/meshlab/meshlab.pro | 4 +---
+ meshlab/src/meshlabplugins/filter_plymc/plymc.pro | 2 +-
+ meshlab/src/meshlabserver/meshlabserver.pro | 6 ++----
+ meshlab/src/shared.pri | 7 ++++---
+ vcglib/apps/sample/trimesh_QT/trimesh_qt.pro | 5 +++--
+ vcglib/apps/sample/trimesh_pos_demo/trimesh_pos_demo.pro | 4 ++--
+ 7 files changed, 15 insertions(+), 18 deletions(-)
+
+diff --git a/meshlab/src/common/common.pro b/meshlab/src/common/common.pro
+index eec1863..58bda06 100644
+--- a/meshlab/src/common/common.pro
++++ b/meshlab/src/common/common.pro
+@@ -1,9 +1,9 @@
+ include (../general.pri)
+ EXIF_DIR = ../external/jhead-2.95
++GLEWDIR = /usr
++LIBS += -lGLEW
+
+
+-GLEWCODE = $$GLEWDIR/src/glew.c
+-
+ win32-msvc2005:DESTDIR = ../distrib
+ win32-msvc2008:DESTDIR = ../distrib
+ win32-msvc2010:DESTDIR = ../distrib
+@@ -106,7 +106,6 @@ SOURCES += filterparameter.cpp \
+ mlapplication.cpp \
+ scriptsyntax.cpp \
+ searcher.cpp \
+- $$GLEWCODE \
+ meshlabdocumentxml.cpp \
+ meshlabdocumentbundler.cpp
+
+diff --git a/meshlab/src/meshlab/meshlab.pro b/meshlab/src/meshlab/meshlab.pro
+index 4a7d0fd..ecd9ed6 100644
+--- a/meshlab/src/meshlab/meshlab.pro
++++ b/meshlab/src/meshlab/meshlab.pro
+@@ -129,11 +129,9 @@ win32-g++:LIBS += -L../external/lib/win32-gcc -L../distrib -lcommon
+ # win32-g++:release:LIBS += -L../common/release -lcommon
+ #}
+
+-linux-g++:LIBS += -L../external/lib/linux-g++ -ljhead -L../distrib -lcommon -lGLU
++linux-g++:LIBS += -L../external/lib/linux-g++ -ljhead -L../distrib -lcommon -lGLEW -lGLU
+ linux-g++:QMAKE_RPATHDIR += ../distrib
+-linux-g++-32:LIBS += -L../external/lib/linux-g++-32 -L../distrib -lcommon -lGLU
+ linux-g++-32:QMAKE_RPATHDIR += ../distrib
+-linux-g++-64:LIBS += -L../external/lib/linux-g++-64 -L../distrib -lcommon -lGLU
+ linux-g++-64:QMAKE_RPATHDIR += ../distrib
+
+ # uncomment in your local copy only in emergency cases.
+diff --git a/meshlab/src/meshlabplugins/filter_plymc/plymc.pro b/meshlab/src/meshlabplugins/filter_plymc/plymc.pro
+index b609419..a89e8c6 100755
+--- a/meshlab/src/meshlabplugins/filter_plymc/plymc.pro
++++ b/meshlab/src/meshlabplugins/filter_plymc/plymc.pro
+@@ -1,7 +1,7 @@
+ TARGET = plymc
+ DEPENDPATH += .
+ INCLUDEPATH += ../../../../vcglib \
+- ../../code/lib/glew/include
++ /usr/include
+ CONFIG += console \
+ stl \
+ debug_and_release
+diff --git a/meshlab/src/meshlabserver/meshlabserver.pro b/meshlab/src/meshlabserver/meshlabserver.pro
+index cca5560..9b070c7 100644
+--- a/meshlab/src/meshlabserver/meshlabserver.pro
++++ b/meshlab/src/meshlabserver/meshlabserver.pro
+@@ -1,4 +1,4 @@
+-GLEWDIR = ../external/glew-1.5.1
++GLEWDIR = /usr
+
+ HEADERS =
+
+@@ -25,11 +25,9 @@ win32-msvc2005: LIBS += -L../distrib -lcommon
+ win32-msvc2008: LIBS += -L../distrib -lcommon
+ win32-msvc2010: LIBS += -L../distrib -lcommon
+ win32-g++: LIBS += -L../distrib -lcommon
+-linux-g++: LIBS += -L../distrib -lcommon
++linux-g++: LIBS += -L../distrib -lcommon -lGLEW
+ linux-g++:QMAKE_RPATHDIR += ../distrib
+-linux-g++-32: LIBS += -L../distrib -lcommon
+ linux-g++-32:QMAKE_RPATHDIR += ../distrib
+-linux-g++-64: LIBS += -L../distrib -lcommon
+ linux-g++-64:QMAKE_RPATHDIR += ../distrib
+ #CONFIG (release,debug | release) {
+ # win32-msvc2005:release: LIBS += -L../common/release -lcommon
+diff --git a/meshlab/src/shared.pri b/meshlab/src/shared.pri
+index 93ed32f..0ba3e67 100644
+--- a/meshlab/src/shared.pri
++++ b/meshlab/src/shared.pri
+@@ -17,9 +17,10 @@ win32-msvc2005: LIBS += ../../distrib/common.lib
+ win32-msvc2008: LIBS += ../../distrib/common.lib
+ win32-msvc2010: LIBS += ../../distrib/common.lib
+ win32-g++:LIBS += -L../../distrib -lcommon
+-linux-g++:LIBS += -L../../distrib -lcommon
+-linux-g++-32:LIBS += -L../../distrib -lcommon
+-linux-g++-64:LIBS += -L../../distrib -lcommon
++linux-g++:LIBS += -L../../distrib -lcommon -lGLEW
++#linux-g++-32:LIBS += -L../../distrib -lcommon
++#linux-g++-64:LIBS += -L../../distrib -lcommon
++
+
+ #CONFIG(debug, debug|release) {
+ # win32-msvc2005: LIBS += ../../common/debug/common.lib
+diff --git a/vcglib/apps/sample/trimesh_QT/trimesh_qt.pro b/vcglib/apps/sample/trimesh_QT/trimesh_qt.pro
+index 8a3c7fc..986116e 100644
+--- a/vcglib/apps/sample/trimesh_QT/trimesh_qt.pro
++++ b/vcglib/apps/sample/trimesh_QT/trimesh_qt.pro
+@@ -26,8 +26,9 @@ SOURCES += ../../../wrap/gui/trackmode.cpp
+
+ # Compile glew
+ DEFINES += GLEW_STATIC
+-INCLUDEPATH += ../../../../code/lib/glew/include
+-SOURCES += ../../../../code/lib/glew/src/glew.c
++INCLUDEPATH += /usr/include
++#SOURCES += ../../../../code/lib/glew/src/glew.c
++LIBS += -lGLEW
+
+ # Awful problem with windows..
+ win32{
+diff --git a/vcglib/apps/sample/trimesh_pos_demo/trimesh_pos_demo.pro b/vcglib/apps/sample/trimesh_pos_demo/trimesh_pos_demo.pro
+index e8ae178..4a69fef 100644
+--- a/vcglib/apps/sample/trimesh_pos_demo/trimesh_pos_demo.pro
++++ b/vcglib/apps/sample/trimesh_pos_demo/trimesh_pos_demo.pro
+@@ -1,14 +1,14 @@
+-INCLUDEPATH += . ../../.. ../../../../code/lib ../../../../code/lib/glew/include
++INCLUDEPATH += . ../../.. ../../../../code/lib /usr/include
+ HEADERS = glwidget.h \
+ window.h \
+ mesh_type.h
+ SOURCES = glwidget.cpp \
+ main.cpp \
+ window.cpp\
+- ../../../../code/lib/glew/src/glew.c \
+ ../../../wrap/ply/plylib.cpp\
+ ../../../wrap/gui/trackmode.cpp\
+ ../../../wrap/gui/trackball.cpp
++LIBS += -lGLEW
+ QT += opengl
+
+ # install
diff --git a/media-gfx/meshlab/files/1.3.2/19_CONFLICTS_IN_rpath.patch b/media-gfx/meshlab/files/1.3.2/19_CONFLICTS_IN_rpath.patch
new file mode 100644
index 000000000000..c3dfc4de35be
--- /dev/null
+++ b/media-gfx/meshlab/files/1.3.2/19_CONFLICTS_IN_rpath.patch
@@ -0,0 +1,32 @@
+reverted:
+--- b/meshlab/src/meshlab/meshlab.pro
++++ a/meshlab/src/meshlab/meshlab.pro
+@@ -129,9 +129,11 @@
+ # win32-g++:release:LIBS += -L../common/release -lcommon
+ #}
+
++linux-g++:LIBS += -L../external/lib/linux-g++ -ljhead -L../distrib -lcommon -lGLU
+-linux-g++:LIBS += -L../external/lib/linux-g++ -ljhead -L../distrib -lcommon -lGLEW -lGLU
+ linux-g++:QMAKE_RPATHDIR += ../distrib
++linux-g++-32:LIBS += -L../external/lib/linux-g++-32 -L../distrib -lcommon -lGLU
+ linux-g++-32:QMAKE_RPATHDIR += ../distrib
++linux-g++-64:LIBS += -L../external/lib/linux-g++-64 -L../distrib -lcommon -lGLU
+ linux-g++-64:QMAKE_RPATHDIR += ../distrib
+
+ # uncomment in your local copy only in emergency cases.
+reverted:
+--- b/meshlab/src/meshlabserver/meshlabserver.pro
++++ a/meshlab/src/meshlabserver/meshlabserver.pro
+@@ -25,9 +25,11 @@
+ win32-msvc2008: LIBS += -L../distrib -lcommon
+ win32-msvc2010: LIBS += -L../distrib -lcommon
+ win32-g++: LIBS += -L../distrib -lcommon
++linux-g++: LIBS += -L../distrib -lcommon
+-linux-g++: LIBS += -L../distrib -lcommon -lGLEW
+ linux-g++:QMAKE_RPATHDIR += ../distrib
++linux-g++-32: LIBS += -L../distrib -lcommon
+ linux-g++-32:QMAKE_RPATHDIR += ../distrib
++linux-g++-64: LIBS += -L../distrib -lcommon
+ linux-g++-64:QMAKE_RPATHDIR += ../distrib
+ #CONFIG (release,debug | release) {
+ # win32-msvc2005:release: LIBS += -L../common/release -lcommon
diff --git a/media-gfx/meshlab/files/1.3.2/20_rpath.c18p2.patch b/media-gfx/meshlab/files/1.3.2/20_rpath.c18p2.patch
new file mode 100644
index 000000000000..e53d8bf1e798
--- /dev/null
+++ b/media-gfx/meshlab/files/1.3.2/20_rpath.c18p2.patch
@@ -0,0 +1,43 @@
+From: Teemu Ikonen <tpikonen@gmail.com>
+Subject: Use /usr/lib/meshlab as RPATH in binaries.
+Git-Branch: p/rpath
+Git-Diff: 532bdd9a6bde03cf47da8fb63fee60..0ecffa4d55bfff6f3b98a478d0cd82
+
+ meshlab/src/meshlab/meshlab.pro | 4 +---
+ meshlab/src/meshlabserver/meshlabserver.pro | 4 +---
+ 2 files changed, 2 insertions(+), 6 deletions(-)
+
+diff --git a/meshlab/src/meshlab/meshlab.pro b/meshlab/src/meshlab/meshlab.pro
+index 4a7d0fd..f67ba07 100644
+--- a/meshlab/src/meshlab/meshlab.pro
++++ b/meshlab/src/meshlab/meshlab.pro
+@@ -130,11 +130,9 @@ win32-g++:LIBS += -L../external/lib/win32-gcc -L../distrib -lcommon
+ #}
+
+ linux-g++:LIBS += -L../external/lib/linux-g++ -ljhead -L../distrib -lcommon -lGLU
+-linux-g++:QMAKE_RPATHDIR += ../distrib
++linux-g++:QMAKE_RPATHDIR += /usr/lib/meshlab
+ linux-g++-32:LIBS += -L../external/lib/linux-g++-32 -L../distrib -lcommon -lGLU
+-linux-g++-32:QMAKE_RPATHDIR += ../distrib
+ linux-g++-64:LIBS += -L../external/lib/linux-g++-64 -L../distrib -lcommon -lGLU
+-linux-g++-64:QMAKE_RPATHDIR += ../distrib
+
+ # uncomment in your local copy only in emergency cases.
+ # We should never be too permissive
+diff --git a/meshlab/src/meshlabserver/meshlabserver.pro b/meshlab/src/meshlabserver/meshlabserver.pro
+index cca5560..6a19b81 100644
+--- a/meshlab/src/meshlabserver/meshlabserver.pro
++++ b/meshlab/src/meshlabserver/meshlabserver.pro
+@@ -26,11 +26,9 @@ win32-msvc2008: LIBS += -L../distrib -lcommon
+ win32-msvc2010: LIBS += -L../distrib -lcommon
+ win32-g++: LIBS += -L../distrib -lcommon
+ linux-g++: LIBS += -L../distrib -lcommon
+-linux-g++:QMAKE_RPATHDIR += ../distrib
++linux-g++:QMAKE_RPATHDIR += /usr/lib/meshlab
+ linux-g++-32: LIBS += -L../distrib -lcommon
+-linux-g++-32:QMAKE_RPATHDIR += ../distrib
+ linux-g++-64: LIBS += -L../distrib -lcommon
+-linux-g++-64:QMAKE_RPATHDIR += ../distrib
+ #CONFIG (release,debug | release) {
+ # win32-msvc2005:release: LIBS += -L../common/release -lcommon
+ # win32-msvc2008:release: LIBS += -L../common/release -lcommon
diff --git a/media-gfx/meshlab/files/1.3.2/21_RESOLUTION.patch b/media-gfx/meshlab/files/1.3.2/21_RESOLUTION.patch
new file mode 100644
index 000000000000..35c1cac41412
--- /dev/null
+++ b/media-gfx/meshlab/files/1.3.2/21_RESOLUTION.patch
@@ -0,0 +1,29 @@
+Resolve patch overlaps.
+--- a/meshlab/src/meshlab/meshlab.pro
++++ b/meshlab/src/meshlab/meshlab.pro
+@@ -129,10 +129,8 @@ win32-g++:LIBS += -L../external/lib/win32-gcc -L../distrib -lcommon
+ # win32-g++:release:LIBS += -L../common/release -lcommon
+ #}
+
+-linux-g++:LIBS += -L../external/lib/linux-g++ -ljhead -L../distrib -lcommon -lGLU
++linux-g++:LIBS += -L../external/lib/linux-g++ -ljhead -L../distrib -lcommon -lGLEW -lGLU
+ linux-g++:QMAKE_RPATHDIR += /usr/lib/meshlab
+-linux-g++-32:LIBS += -L../external/lib/linux-g++-32 -L../distrib -lcommon -lGLU
+-linux-g++-64:LIBS += -L../external/lib/linux-g++-64 -L../distrib -lcommon -lGLU
+
+ # uncomment in your local copy only in emergency cases.
+ # We should never be too permissive
+--- a/meshlab/src/meshlabserver/meshlabserver.pro
++++ b/meshlab/src/meshlabserver/meshlabserver.pro
+@@ -25,10 +25,8 @@ win32-msvc2005: LIBS += -L../distrib -lcommon
+ win32-msvc2008: LIBS += -L../distrib -lcommon
+ win32-msvc2010: LIBS += -L../distrib -lcommon
+ win32-g++: LIBS += -L../distrib -lcommon
+-linux-g++: LIBS += -L../distrib -lcommon
++linux-g++: LIBS += -L../distrib -lcommon -lGLEW
+ linux-g++:QMAKE_RPATHDIR += /usr/lib/meshlab
+-linux-g++-32: LIBS += -L../distrib -lcommon
+-linux-g++-64: LIBS += -L../distrib -lcommon
+ #CONFIG (release,debug | release) {
+ # win32-msvc2005:release: LIBS += -L../common/release -lcommon
+ # win32-msvc2008:release: LIBS += -L../common/release -lcommon
diff --git a/media-gfx/meshlab/files/1.3.2/22_aliasing.patch b/media-gfx/meshlab/files/1.3.2/22_aliasing.patch
new file mode 100644
index 000000000000..7f3b8447c2d0
--- /dev/null
+++ b/media-gfx/meshlab/files/1.3.2/22_aliasing.patch
@@ -0,0 +1,43 @@
+diff -urN meshlab-1.3.2-r1.old/meshlab/src/meshlabplugins/io_tri/io_tri.cpp meshlab-1.3.2-r1/meshlab/src/meshlabplugins/io_tri/io_tri.cpp
+--- meshlab-1.3.2-r1.old/meshlab/src/meshlabplugins/io_tri/io_tri.cpp 2014-08-11 18:01:55.329182160 +0200
++++ meshlab-1.3.2-r1/meshlab/src/meshlabplugins/io_tri/io_tri.cpp 2014-08-11 15:11:20.000000000 +0200
+@@ -149,9 +149,11 @@
+ fread(&numFaces,sizeof(int),1,fp);
+ }
+ // advance pointer ??
+- char s[4];
++
++ char s[5];
+ fread(s,sizeof(char),4,fp);
+- printf("extara is %s (%d)\n", s, *(int*)(&s[0]));
++ s[4]=0;
++ printf("extara is %s (%d)\n", s, ((unsigned)s[0])|(((unsigned)s[1])<<8)|(((unsigned)s[2])<<16)|(((unsigned)s[3])<<24));
+ return 0;
+ }
+
+@@ -284,7 +286,7 @@
+ bool floatFlag=false;
+
+ int ret=fread(texCode,sizeof(char),4,fp);
+- qDebug("TexString code is '%s' (int:%d) (float:%f)\n", texCode, *(int*)(&texCode[0]), *(float*)(&texCode[0]));
++ //qDebug("TexString code is '%s' (int:%d) (float:%f)\n", texCode, *(int*)((void*)(&texCode[0])), *(float*)((void*)(&texCode[0])));
+
+ if(feof(fp)){
+ qDebug("Premature end of file");
+diff -urN meshlab-1.3.2-r1.old/vcglib/vcg/complex/algorithms/clustering.h meshlab-1.3.2-r1/vcglib/vcg/complex/algorithms/clustering.h
+--- meshlab-1.3.2-r1.old/vcglib/vcg/complex/algorithms/clustering.h 2014-08-11 18:01:55.366182161 +0200
++++ meshlab-1.3.2-r1/vcglib/vcg/complex/algorithms/clustering.h 2014-08-11 14:36:38.000000000 +0200
+@@ -233,12 +233,12 @@
+ // DuplicateFace=false a model with looks ok if you enable doublesided lighting and disable backfaceculling
+
+ bool DuplicateFaceParam;
+-
+ // This class keeps the references to the three cells where a face has its vertexes.
+ class SimpleTri
+ {
+ public:
+ CellType *v[3];
++#pragma GCC diagnostic ignored "-Wstrict-aliasing"
+ int ii(int i) const {return *((int *)(&(v[i])));}
+ bool operator < ( const SimpleTri &p) const {
+ return (v[2]!=p.v[2])?(v[2]<p.v[2]):
diff --git a/media-gfx/meshlab/files/1.3.3/gcc-4.7.patch b/media-gfx/meshlab/files/1.3.3/gcc-4.7.patch
new file mode 100644
index 000000000000..6329f23e7949
--- /dev/null
+++ b/media-gfx/meshlab/files/1.3.3/gcc-4.7.patch
@@ -0,0 +1,12 @@
+diff --git vcglib/wrap/ply/plystuff.h vcglib/wrap/ply/plystuff.h
+index 3e41e63..4af9508 100644
+--- a/vcglib/wrap/ply/plystuff.h
++++ b/vcglib/wrap/ply/plystuff.h
+@@ -75,6 +75,7 @@ using namespace vcg;
+ #define pb_close _close
+ #define DIR_SEP "\\"
+ #else
++#include <unistd.h>
+ #define pb_mkdir(n) mkdir(n,0755)
+ #define pb_access access
+ #define pb_stat stat
diff --git a/media-gfx/meshlab/files/1.3.3/lapack.patch b/media-gfx/meshlab/files/1.3.3/lapack.patch
new file mode 100644
index 000000000000..e2742eb99991
--- /dev/null
+++ b/media-gfx/meshlab/files/1.3.3/lapack.patch
@@ -0,0 +1,11 @@
+diff -Nur meshlab.orig/src/external/levmar-2.3/lm.h meshlab/src/external/levmar-2.3/lm.h
+--- a/meshlab/src/external/levmar-2.3/lm.h 2010-04-28 17:30:47.000000000 +1000
++++ b/meshlab/src/external/levmar-2.3/lm.h 2010-05-13 20:17:35.488505907 +1000
+@@ -27,7 +27,6 @@
+
+ /* specify whether to use LAPACK or not. The first option is strongly recommended */
+ #define HAVE_LAPACK /* use LAPACK */
+- #undef HAVE_LAPACK /* uncomment this to force not using LAPACK */
+
+ /* to avoid the overhead of repeated mallocs(), routines in Axb.c can be instructed to
+ * retain working memory between calls. Such a choice, however, renders these routines
diff --git a/media-gfx/meshlab/files/1.3.3/meshrender.patch b/media-gfx/meshlab/files/1.3.3/meshrender.patch
new file mode 100644
index 000000000000..33eb1cbf7038
--- /dev/null
+++ b/media-gfx/meshlab/files/1.3.3/meshrender.patch
@@ -0,0 +1,15 @@
+--- a/meshlab/src/meshlabplugins/render_gdp/meshrender.cpp 2014-02-07 10:38:28.000000000 +0100
++++ b/meshlab/src/meshlabplugins/render_gdb/meshrender.cpp 2015-11-15 22:17:39.848179962 +0100
+@@ -36,8 +36,11 @@
+ /*QAction * qaNone = new QAction("None", this);
+ qaNone->setCheckable(false);
+ actionList << qaNone;*/
+-
++#if defined(Q_OS_LINUX)
++ QDir shadersDir = QDir("/usr/share/meshlab");
++#else
+ QDir shadersDir = QDir(qApp->applicationDirPath());
++#endif
+ #if defined(Q_OS_WIN)
+ if (shadersDir.dirName() == "debug" || shadersDir.dirName() == "release" || shadersDir.dirName() == "plugins" )
+ shadersDir.cdUp();
diff --git a/media-gfx/meshlab/files/1.3.3/mpir.patch b/media-gfx/meshlab/files/1.3.3/mpir.patch
new file mode 100644
index 000000000000..fae203e18a18
--- /dev/null
+++ b/media-gfx/meshlab/files/1.3.3/mpir.patch
@@ -0,0 +1,10 @@
+diff -Nur meshlab.orig/src/meshlabplugins/filter_csg/filter_csg.pro meshlab/src/meshlabplugins/filter_csg/filter_csg.pro
+--- a/meshlab/src/meshlabplugins/filter_csg/filter_csg.pro 2014-04-02 02:59:31.000000000 +1100
++++ b/meshlab/src/meshlabplugins/filter_csg/filter_csg.pro 2014-06-01 21:10:24.521095356 +1000
+@@ -18,6 +18,4 @@
+ win32-msvc2008:LIBS += ../../external/lib/win32-msvc2008/mpirxx.lib ../../external/lib/win32-msvc2008/mpir.lib
+ win32-msvc2010:LIBS += ../../external/lib/win32-msvc2008/mpirxx.lib ../../external/lib/win32-msvc2008/mpir.lib
+ win32-msvc2012:LIBS += ../../external/lib/win32-msvc2008/mpirxx.lib ../../external/lib/win32-msvc2008/mpir.lib
+-linux-g++:INCLUDEPATH += ../../external/inc/linux-g++/mpir-2.4.0
+-linux-g++:LIBS += ../../external/lib/linux-g++/libmpirxx.a ../../external/lib/linux-g++/libmpir.a
+
diff --git a/media-gfx/meshlab/files/1.3.3/pluginmanager.patch b/media-gfx/meshlab/files/1.3.3/pluginmanager.patch
new file mode 100644
index 000000000000..853015da4d06
--- /dev/null
+++ b/media-gfx/meshlab/files/1.3.3/pluginmanager.patch
@@ -0,0 +1,14 @@
+--- a/meshlab/src/common/pluginmanager.cpp 2014-04-01 17:07:40.000000000 +0200
++++ b/meshlab/src/common/pluginmanager.cpp 2015-11-15 20:58:53.708227793 +0100
+@@ -178,7 +178,11 @@
+
+ QString PluginManager::getBaseDirPath()
+ {
++#if defined(Q_OS_LINUX)
++ QDir baseDir("/usr/lib/meshlab");
++#else
+ QDir baseDir(qApp->applicationDirPath());
++#endif
+
+ #if defined(Q_OS_WIN)
+ // Windows:
diff --git a/media-gfx/meshlab/files/1.3.3/qt-4.8.patch b/media-gfx/meshlab/files/1.3.3/qt-4.8.patch
new file mode 100644
index 000000000000..bb1113a5c617
--- /dev/null
+++ b/media-gfx/meshlab/files/1.3.3/qt-4.8.patch
@@ -0,0 +1,11 @@
+diff -Nur meshlab.orig/src/meshlab/meshlab.pro meshlab/src/meshlab/meshlab.pro
+--- a/meshlab/src/meshlab/meshlab.pro 2011-02-15 20:39:47.000000000 +1100
++++ b/meshlab/src/meshlab/meshlab.pro 2012-01-07 11:57:18.055586086 +1100
+@@ -85,6 +85,7 @@
+ QT += xmlpatterns
+ QT += network
+ QT += script
++unix:LIBS += -lGLU
+
+
+ # the following line is needed to avoid mismatch between
diff --git a/media-gfx/meshlab/files/1.3.3/rfx.patch b/media-gfx/meshlab/files/1.3.3/rfx.patch
new file mode 100644
index 000000000000..0d7d03d3f09e
--- /dev/null
+++ b/media-gfx/meshlab/files/1.3.3/rfx.patch
@@ -0,0 +1,14 @@
+--- a/meshlab/src/meshlabplugins/render_rfx/render_rfx.cpp 2014-02-07 10:38:29.000000000 +0100
++++ b/meshlab/src/meshlabplugins/render_rfx/render_rfx.cpp 2015-11-16 00:07:34.868113218 +0100
+@@ -55,7 +55,11 @@
+
+ void RenderRFX::initActionList()
+ {
++#if defined(Q_OS_LINUX)
++ QDir shadersDir("/usr/share/meshlab");
++#else
+ QDir shadersDir = PluginManager::getBaseDirPath();
++#endif
+
+ #if defined(Q_OS_WIN)
+ if (shadersDir.dirName() == "debug" ||
diff --git a/media-gfx/meshlab/files/1.3.3/rmmeshrender.patch b/media-gfx/meshlab/files/1.3.3/rmmeshrender.patch
new file mode 100644
index 000000000000..1fbf686980be
--- /dev/null
+++ b/media-gfx/meshlab/files/1.3.3/rmmeshrender.patch
@@ -0,0 +1,15 @@
+--- a/meshlab/src/plugins_unsupported/render_rm/rmmeshrender.cpp 2013-05-22 17:08:53.000000000 +0200
++++ b/meshlab/src/plugins_unsupported/render_rm/rmmeshrender.cpp 2015-11-15 23:18:04.678143277 +0100
+@@ -63,7 +63,12 @@
+
+ void RmMeshShaderRenderPlugin::initActionList() {
+
++#if defined(Q_OS_LINUX)
++ QDir shadersDir = QDir("/usr/share/meshlab/shaders");
++#else
+ QDir shadersDir = QDir(qApp->applicationDirPath());
++#endif
++
+ #if defined(Q_OS_WIN)
+ if (shadersDir.dirName() == "debug" ||
+ shadersDir.dirName() == "release" ||
diff --git a/media-gfx/meshlab/files/1.3.3/rpath.patch b/media-gfx/meshlab/files/1.3.3/rpath.patch
new file mode 100644
index 000000000000..473d2a8fa480
--- /dev/null
+++ b/media-gfx/meshlab/files/1.3.3/rpath.patch
@@ -0,0 +1,39 @@
+diff -Nur meshlab.orig/src/meshlab/meshlab.pro meshlab/src/meshlab/meshlab.pro
+--- a/meshlab/src/meshlab/meshlab.pro 2012-05-31 00:32:44.000000000 +1000
++++ b/meshlab/src/meshlab/meshlab.pro 2012-08-06 21:26:01.405784190 +1000
+@@ -130,11 +130,11 @@
+ #}
+
+-linux-g++:LIBS += -L../external/lib/linux-g++ -ljhead -L../distrib -lcommon -lGLU
++linux-g++:LIBS += -L../external/lib/linux-g++ -ljhead -L../distrib -lcommon -lGLU -lGLEW
+-linux-g++:QMAKE_RPATHDIR += ../distrib
++linux-g++:QMAKE_LFLAGS += -Wl,-rpath,\''$'$ORIGIN\'
+-linux-g++-32:LIBS += -L../external/lib/linux-g++-32 -ljhead -L../distrib -lcommon -lGLU
++linux-g++-32:LIBS += -L../external/lib/linux-g++-32 -ljhead -L../distrib -lcommon -lGLU -lGLEW
+-linux-g++-32:QMAKE_RPATHDIR += ../distrib
++linux-g++-32:QMAKE_LFLAGS += -Wl,-rpath,\''$'$ORIGIN\'
+-linux-g++-64:LIBS += -L../external/lib/linux-g++-64 -ljhead -L../distrib -lcommon -lGLU
++linux-g++-64:LIBS += -L../external/lib/linux-g++-64 -ljhead -L../distrib -lcommon -lGLU -lGLEW
+-linux-g++-64:QMAKE_RPATHDIR += ../distrib
++linux-g++-64:QMAKE_LFLAGS += -Wl,-rpath,\''$'$ORIGIN\'
+
+ # uncomment in your local copy only in emergency cases.
+ # We should never be too permissive
+diff -Nur meshlab.orig/src/meshlabserver/meshlabserver.pro meshlab/src/meshlabserver/meshlabserver.pro
+--- a/meshlab/src/meshlabserver/meshlabserver.pro 2011-10-15 03:34:48.000000000 +1100
++++ b/meshlab/src/meshlabserver/meshlabserver.pro 2012-08-06 21:26:34.609557938 +1000
+@@ -26,11 +26,11 @@
+ win32-msvc2010: LIBS += -L../distrib -lcommon
+ win32-g++: LIBS += -L../distrib -lcommon
+ linux-g++: LIBS += -L../distrib -lcommon
+-linux-g++:QMAKE_RPATHDIR += ../distrib
++linux-g++:QMAKE_LFLAGS += -Wl,-rpath,\''$'$ORIGIN\'
+ linux-g++-32: LIBS += -L../distrib -lcommon
+-linux-g++-32:QMAKE_RPATHDIR += ../distrib
++linux-g++-32:QMAKE_LFLAGS += -Wl,-rpath,\''$'$ORIGIN\'
+ linux-g++-64: LIBS += -L../distrib -lcommon
+-linux-g++-64:QMAKE_RPATHDIR += ../distrib
++linux-g++-64:QMAKE_LFLAGS += -Wl,-rpath,\''$'$ORIGIN\'
+ #CONFIG (release,debug | release) {
+ # win32-msvc2005:release: LIBS += -L../common/release -lcommon
+ # win32-msvc2008:release: LIBS += -L../common/release -lcommon
diff --git a/media-gfx/meshlab/files/1.3.3/structuresynth.patch b/media-gfx/meshlab/files/1.3.3/structuresynth.patch
new file mode 100644
index 000000000000..e5d6d2baea9c
--- /dev/null
+++ b/media-gfx/meshlab/files/1.3.3/structuresynth.patch
@@ -0,0 +1,11 @@
+--- a/meshlab/src/external/structuresynth-1.5/ssynth/SyntopiaCore/GLEngine/Raytracer/VoxelStepper.cpp 2014-02-07 12:38:23.000000000 +0300
++++ b/meshlab/src/external/structuresynth-1.5/ssynth/SyntopiaCore/GLEngine/Raytracer/VoxelStepper.cpp 2017-08-10 21:00:02.819783756 +0300
+@@ -122,7 +122,7 @@
+ currentT = p;
+
+ // We do not intersect grid.
+- if (!found) return false;
++ if (!found) return NULL;
+ }
+
+ stepX = (dir.x() > 0) ? 1 : -1;
diff --git a/media-gfx/meshlab/meshlab-1.3.2.ebuild b/media-gfx/meshlab/meshlab-1.3.2.ebuild
new file mode 100644
index 000000000000..8e91280e50f7
--- /dev/null
+++ b/media-gfx/meshlab/meshlab-1.3.2.ebuild
@@ -0,0 +1,83 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit eutils versionator multilib qt4-r2
+
+DESCRIPTION="A mesh processing system"
+HOMEPAGE="https://meshlab.sourceforge.net/"
+MY_PV="$(delete_all_version_separators ${PV})"
+SRC_URI="mirror://sourceforge/project/${PN}/${PN}/MeshLab%20v${PV}/MeshLabSrc_AllInc_v${MY_PV}.tgz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+DEPEND="dev-cpp/eigen:3
+ dev-cpp/muParser
+ dev-qt/qtcore:4
+ dev-qt/qtopengl:4
+ media-libs/glew:0=
+ media-libs/qhull
+ =media-libs/lib3ds-1*
+ media-libs/openctm
+ sci-libs/levmar
+ sys-libs/libunwind"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/meshlab/src"
+
+src_prepare() {
+ rm "${WORKDIR}"/meshlab/src/distrib/plugins/*.xml
+ rm "${WORKDIR}"/meshlab/src/meshlabplugins/filter_qhull/qhull_tools.h
+ cd ${PORTAGE_BUILDDIR}
+ #patches from debian repo
+ cd "${WORKDIR}"
+ epatch "${FILESDIR}/${PV}"/01_crash-on-save.patch \
+ "${FILESDIR}/${PV}"/02_cstddef.patch \
+ "${FILESDIR}/${PV}"/03_disable-updates.patch \
+ "${FILESDIR}/${PV}"/05_externals.patch \
+ "${FILESDIR}/${PV}"/06_format-security.patch \
+ "${FILESDIR}/${PV}"/07_gcc47.patch \
+ "${FILESDIR}/${PV}"/08_lib3ds.patch \
+ "${FILESDIR}/${PV}"/09_libbz2.patch \
+ "${FILESDIR}/${PV}"/10_muparser.patch \
+ "${FILESDIR}/${PV}"/11_openctm.patch \
+ "${FILESDIR}/${PV}"/12_overflow.patch \
+ "${FILESDIR}/${PV}"/13_pluginsdir.patch \
+ "${FILESDIR}/${PV}"/14_ply_numeric.patch \
+ "${FILESDIR}/${PV}"/15_qhull.patch \
+ "${FILESDIR}/${PV}"/16_shadersdir.patch \
+ "${FILESDIR}/${PV}"/17_structuresynth.patch \
+ "${FILESDIR}/${PV}"/18_glew.c18p1.patch \
+ "${FILESDIR}/${PV}"/19_CONFLICTS_IN_rpath.patch \
+ "${FILESDIR}/${PV}"/20_rpath.c18p2.patch \
+ "${FILESDIR}/${PV}"/21_RESOLUTION.patch \
+ "${FILESDIR}/${PV}"/22_aliasing.patch
+}
+
+src_configure() {
+ eqmake4 external/external.pro
+ eqmake4 meshlab_full.pro
+}
+
+src_compile() {
+ cd external && emake
+ cd .. && emake
+}
+
+src_install() {
+ dobin distrib/{meshlab,meshlabserver}
+ dolib distrib/libcommon.so.1.0.0
+ dosym libcommon.so.1.0.0 /usr/$(get_libdir)/libcommon.so.1
+ dosym libcommon.so.1 /usr/$(get_libdir)/libcommon.so
+
+ exeinto /usr/$(get_libdir)/meshlab/plugins
+ doexe distrib/plugins/*.so
+
+ insinto /usr/share/meshlab/shaders
+ doins -r distrib/shaders/*
+ newicon "${S}"/meshlab/images/eye64.png "${PN}".png
+ make_desktop_entry meshlab "Meshlab"
+}
diff --git a/media-gfx/meshlab/meshlab-1.3.3-r1.ebuild b/media-gfx/meshlab/meshlab-1.3.3-r1.ebuild
new file mode 100644
index 000000000000..badcfa5d477f
--- /dev/null
+++ b/media-gfx/meshlab/meshlab-1.3.3-r1.ebuild
@@ -0,0 +1,72 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit eutils versionator
+
+DESCRIPTION="A mesh processing system"
+HOMEPAGE="https://meshlab.sourceforge.net/"
+MY_PV="$(delete_all_version_separators ${PV})"
+SRC_URI="mirror://sourceforge/project/${PN}/${PN}/MeshLab%20v${PV}/MeshLabSrc_AllInc_v${MY_PV}.tgz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+DEPEND="dev-cpp/eigen:3
+ dev-cpp/muParser
+ dev-qt/qtcore:4
+ dev-qt/qtopengl:4
+ dev-qt/qtxmlpatterns:4
+ media-libs/glew:0=
+ media-libs/qhull
+ =media-libs/lib3ds-1*
+ media-libs/openctm
+ sci-libs/levmar
+ sys-libs/libunwind
+ sci-libs/mpir"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/meshlab/src"
+
+PATCHES=( "${FILESDIR}/${PV}/gcc-4.7.patch"
+ "${FILESDIR}/${PV}/lapack.patch"
+ "${FILESDIR}/${PV}/mpir.patch"
+ "${FILESDIR}/${PV}/qt-4.8.patch"
+ "${FILESDIR}/${PV}/rpath.patch"
+ "${FILESDIR}/${PV}/pluginmanager.patch"
+ "${FILESDIR}/${PV}/meshrender.patch"
+ "${FILESDIR}/${PV}/rmmeshrender.patch"
+ "${FILESDIR}/${PV}/rfx.patch"
+ "${FILESDIR}/${PV}/structuresynth.patch" )
+
+src_prepare() {
+ cd "${WORKDIR}" || die
+ default
+}
+
+src_configure() {
+ qmake -recursive external/external.pro
+ qmake -recursive meshlab_full.pro
+}
+
+src_compile() {
+ cd external && emake
+ cd .. && emake
+}
+
+src_install() {
+ dobin distrib/{meshlab,meshlabserver}
+ dolib distrib/libcommon.so.1.0.0
+ dosym libcommon.so.1.0.0 /usr/$(get_libdir)/libcommon.so.1
+ dosym libcommon.so.1 /usr/$(get_libdir)/libcommon.so
+
+ exeinto /usr/$(get_libdir)/meshlab/plugins
+ doexe distrib/plugins/*.so
+
+ insinto /usr/share/meshlab/shaders
+ doins -r distrib/shaders/*
+ newicon "${S}"/meshlab/images/eye64.png "${PN}".png
+ make_desktop_entry meshlab "Meshlab"
+}
diff --git a/media-gfx/meshlab/metadata.xml b/media-gfx/meshlab/metadata.xml
new file mode 100644
index 000000000000..2c2e1a6a68f3
--- /dev/null
+++ b/media-gfx/meshlab/metadata.xml
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>amynka@gentoo.org</email>
+ </maintainer>
+ <maintainer type="project">
+ <email>3dprint@gentoo.org</email>
+ <name>Gentoo 3D print</name>
+ </maintainer>
+ <longdescription lang="en">
+ Printrun is a set of G-code sending applications for RepRap.
+ It consists of printcore (dumb G-code sender), pronsole (featured command line
+ G-code sender), pronterface (featured G-code sender with graphical user
+ interface), and a small collection of helpful scripts.
+</longdescription>
+ <upstream>
+ <remote-id type="sourceforge">meshlab</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/media-gfx/metadata.xml b/media-gfx/metadata.xml
new file mode 100644
index 000000000000..3e62cd89181c
--- /dev/null
+++ b/media-gfx/metadata.xml
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE catmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<catmetadata>
+ <longdescription lang="en">
+ The media-gfx category contains graphics-related packages.
+ </longdescription>
+ <longdescription lang="de">
+ Die Kategorie media-gfx enthält Programme rund um das Thema Grafik.
+ </longdescription>
+ <longdescription lang="es">
+ La categoría media-gfx contiene paquetes relacionados con gráficos.
+ </longdescription>
+ <longdescription lang="ja">
+ media-gfxカテゴリーにはグラフィック関連のパッケージが含まれています。
+ </longdescription>
+ <longdescription lang="nl">
+ De media-gfx categorie bevat grafische applicaties.
+ </longdescription>
+ <longdescription lang="vi">
+ Nhóm media-gfx chứa các gói liên quan đến đồ hoạ.
+ </longdescription>
+ <longdescription lang="it">
+ La categoria media-gfx contiene pacchetti per la grafica.
+ </longdescription>
+ <longdescription lang="pt">
+ A categoria media-gfx contém pacotes relacionados com gráficos.
+ </longdescription>
+ <longdescription lang="pl">
+ Kategoria media-gfx zawiera programy graficzne.
+ </longdescription>
+</catmetadata>
+
diff --git a/media-gfx/metapixel/Manifest b/media-gfx/metapixel/Manifest
new file mode 100644
index 000000000000..909f4365d9a3
--- /dev/null
+++ b/media-gfx/metapixel/Manifest
@@ -0,0 +1,8 @@
+AUX metapixel-1.0.2-giflib5.patch 529 SHA256 3cd1577270db71766b88138e9de8d4f059c483fb5ae60262aa7fd23153c0706a SHA512 1e6636ae03f05b9b1ce3a766cae4b19503a1eddd85cb4a97dcd63511d1520bd11dde3e3d76d3ec6ff23839e49be62a8fa704e25323ed28232e27eaf625fe4b17 WHIRLPOOL a8f8fbf3f99a8ba221c4f0b5f31e0c46f38a4204ba09bf7b7a1746b922f960d247d7f69e6af8110c7cf2a7adc2dbc07fb36fe756b6c3ad9bbca9e23a73e3800a
+AUX metapixel-1.0.2-libpng15.patch 4395 SHA256 a23d9186888b64ff2e6b52556b18f746204437de57c5daa752cb39822e5a995b SHA512 5edf6adb335de038996589bbfa799df471aeb8aec41d46f639ff4165fe9574b8a103bfdbdf086ac48de29d11dd263166e0787aad8ebc1298a9865837cc2d3282 WHIRLPOOL 8b34dd93dbfc3fb912a4e2a70f296c5da97ab5d8e171ad21b1acce0423fc174e5af9f85c0bb75e4441c1a2288b62267f333a9edf67187574d4936430ab19542d
+DIST metapixel-1.0.2.tar.gz 63197 SHA256 8d77810978da397c070b9b4e228ae6204e9f5c524518ad1a4fcab9462171f55b SHA512 88a718fc349b9063c61a8ac24fc41923c742b25fb7e84c6b565ac92a301a04b46870750d5c06f751b2104c3f36108365b45214b52a6ede98da83441e2e30e156 WHIRLPOOL f6fa39af34d54a2d8940ce4e1b66347a606bd7eef78f0edc574826cc95b93ce25c6528f9857f7ba6420054fcf4ff03271e3ddd9447298b49e19c954f3634393e
+EBUILD metapixel-1.0.2-r1.ebuild 906 SHA256 5f66a43c4bc7b0ea0455cb41dda780efaa94874f88a2b7d033258947e6488419 SHA512 36cb8e252ac3cd90d168e9780b43d236fc9bd7afd80ed5034cfdc03db7264bf08fb79a063d0fe5ff94523363d418fa50b5a1c3f7c986d200ff586d70cac7b4e2 WHIRLPOOL 038567fe75253eeab8684ab71c92d1b2bffe65088741a23aa8628ed2fc15cd8bcf2002ae2bd69f4c5808fd7683515f9165a4708b1150d946512a8b3a5bed55cf
+EBUILD metapixel-1.0.2.ebuild 849 SHA256 dd7b79f75893a242a71a9e202b2f65a31914994d81263d201d2113c237ea1cc5 SHA512 d533ea2001fd5d02e33b724a1b2afac2e2f63b25c3f7ee1cda02544684b732257e0139da1ec42b88da5e0047d5a6f9aeb413cd442f598d682e79c27aa65edf9f WHIRLPOOL f675ec2255088d232665551e4b4a74c75e82c1a39f9a240888286e92a96772ac4dffc90cf416b417082e9f7fc5f8f93a2f0081b1e74f075477809eb116326750
+MISC ChangeLog 2894 SHA256 8603727c424e192e1cf951f567bb5400fbcf93a1d1908ae0ea3c972d8192b760 SHA512 1783ddf48ecb04b24befd59fd8ea2f19baa32f3ad91743ba9dd734724fa4ea22c7bc6b69f0ec85538889e7e878964dc166f9ede249cd19b54980721ae61dc32d WHIRLPOOL 59cc3abfc330ba633b44b7b59a98b5e322d345550aad02d8aefd940a6f1b0437c2aa69e3af12d9dfdbb108374c6501198f54f839f05a814a6ecc34dbe0aa9697
+MISC ChangeLog-2015 872 SHA256 e55fc699bfad682919db4055cf82bedea3e2dd747cea7ca7a5279e4ac86734fc SHA512 b014ad2409c59e5ec14eae0af603831a046884b090649219d2a7279e12475bf63b71a4d5f1c924a4bcd0c7e0a9a87e9b7539c8e4e7304be2e9b7ed13937f8da6 WHIRLPOOL 9f444406284c9b1d1d76d8e0b4aabc9eea7870ffa8826f5a217be8d664a4b4d3a9ce686ff94263c3084daa08cd855d4796043870bcc5e2b9407c67f155fc8892
+MISC metadata.xml 255 SHA256 3e7137870fc49956d79719e3dfe029775cbaaa097e85748c139713c46fcd1798 SHA512 b7bc93530a1726c2d4dfbc71ae29cfbb57712fd9fdd2e76fd52f35ab4368cba0497b50145d1527a3b79e465d459a380821bb1371a01c2e915dc9adc6c7fafd5f WHIRLPOOL 392188d7e069f1720be9329edfb31b11b176bf0c411023b2ceeaeabef1cacf842d70657a2a14ac2ddabbdad70a304275f3b587e9bcdfe77be63a0092e370252c
diff --git a/media-gfx/metapixel/files/metapixel-1.0.2-giflib5.patch b/media-gfx/metapixel/files/metapixel-1.0.2-giflib5.patch
new file mode 100644
index 000000000000..b543dc4c783b
--- /dev/null
+++ b/media-gfx/metapixel/files/metapixel-1.0.2-giflib5.patch
@@ -0,0 +1,21 @@
+diff -u metapixel-1.0.2/debian/changelog metapixel-1.0.2/debian/changelog
+--- metapixel-1.0.2.orig/rwimg/rwgif.c
++++ metapixel-1.0.2/rwimg/rwgif.c
+@@ -54,7 +54,7 @@
+
+ assert(data != 0);
+
+- data->file = DGifOpenFileName(filename);
++ data->file = DGifOpenFileName(filename, NULL);
+
+ assert(data->file !=0);
+
+@@ -137,7 +137,7 @@
+ }
+ free(buffer);
+
+- assert(DGifCloseFile(data->file) == GIF_OK);
++ assert(DGifCloseFile(data->file, NULL) == GIF_OK);
+
+ return data;
+ }
diff --git a/media-gfx/metapixel/files/metapixel-1.0.2-libpng15.patch b/media-gfx/metapixel/files/metapixel-1.0.2-libpng15.patch
new file mode 100644
index 000000000000..f766fb14e02a
--- /dev/null
+++ b/media-gfx/metapixel/files/metapixel-1.0.2-libpng15.patch
@@ -0,0 +1,141 @@
+--- a/rwimg/rwpng.c
++++ b/rwimg/rwpng.c
+@@ -42,6 +42,7 @@
+ open_png_file_reading (const char *filename, int *width, int *height)
+ {
+ png_data_t *data = (png_data_t*)malloc(sizeof(png_data_t));
++ int _bit_depth,_color_type,_interlace_type,_compression,_filter;
+
+ assert(data != 0);
+
+@@ -57,19 +58,20 @@
+ data->end_info = png_create_info_struct(data->png_ptr);
+ assert(data->end_info != 0);
+
+- if (setjmp(data->png_ptr->jmpbuf))
++ if (setjmp(png_jmpbuf(data->png_ptr)))
+ assert(0);
+
+ png_init_io(data->png_ptr, data->file);
+
+ png_read_info(data->png_ptr, data->info_ptr);
+
+- *width = data->info_ptr->width;
+- *height = data->info_ptr->height;
+-
+- assert(data->info_ptr->bit_depth == 8 || data->info_ptr->bit_depth == 16);
+- assert(data->info_ptr->color_type == PNG_COLOR_TYPE_RGB || data->info_ptr->color_type == PNG_COLOR_TYPE_RGB_ALPHA);
+- assert(data->info_ptr->interlace_type == PNG_INTERLACE_NONE);
++ png_get_IHDR(data->png_ptr,data->info_ptr,
++ (png_uint_32 *)width,(png_uint_32 *)height,
++ &_bit_depth,&_color_type,&_interlace_type,&_compression,&_filter);
++
++ assert(_bit_depth == 8 || _bit_depth == 16);
++ assert(_color_type == PNG_COLOR_TYPE_RGB || _color_type == PNG_COLOR_TYPE_RGB_ALPHA);
++ assert(_interlace_type == PNG_INTERLACE_NONE);
+
+ data->have_read = 0;
+
+@@ -83,30 +85,36 @@
+ int i;
+ int bps, spp;
+ unsigned char *row;
++ png_uint_32 _width,_height;
++ int _bit_depth,_color_type,_interlace_type,_compression,_filter;
+
+- if (setjmp(data->png_ptr->jmpbuf))
++ if (setjmp(png_jmpbuf(data->png_ptr)))
+ assert(0);
+
+- if (data->info_ptr->color_type == PNG_COLOR_TYPE_RGB)
++ png_get_IHDR(data->png_ptr,data->info_ptr,
++ &_width,&_height,&_bit_depth,&_color_type,&_interlace_type,
++ &_compression,&_filter);
++
++ if (_color_type == PNG_COLOR_TYPE_RGB)
+ spp = 3;
+ else
+ spp = 4;
+
+- if (data->info_ptr->bit_depth == 16)
++ if (_bit_depth == 16)
+ bps = 2;
+ else
+ bps = 1;
+
+- row = (unsigned char*)malloc(data->info_ptr->width * spp * bps);
++ row = (unsigned char*)malloc(_width * spp * bps);
+
+ for (i = 0; i < num_lines; ++i)
+ {
+ int j, channel;
+
+ png_read_row(data->png_ptr, (png_bytep)row, 0);
+- for (j = 0; j < data->info_ptr->width; ++j)
++ for (j = 0; j < _width; ++j)
+ for (channel = 0; channel < 3; ++channel)
+- lines[i * data->info_ptr->width * 3 + j * 3 + channel] = row[j * spp * bps + channel * bps];
++ lines[i * _width * 3 + j * 3 + channel] = row[j * spp * bps + channel * bps];
+ }
+
+ free(row);
+@@ -119,7 +127,7 @@
+ {
+ png_data_t *data = (png_data_t*)_data;
+
+- if (setjmp(data->png_ptr->jmpbuf))
++ if (setjmp(png_jmpbuf(data->png_ptr)))
+ assert(0);
+
+ if (data->have_read)
+@@ -148,7 +156,7 @@
+ data->info_ptr = png_create_info_struct(data->png_ptr);
+ assert(data->info_ptr != 0);
+
+- if (setjmp(data->png_ptr->jmpbuf))
++ if (setjmp(png_jmpbuf(data->png_ptr)))
+ assert(0);
+
+ if (pixel_stride == 4)
+@@ -156,18 +164,14 @@
+
+ png_init_io(data->png_ptr, data->file);
+
+- data->info_ptr->width = width;
+- data->info_ptr->height = height;
+- data->info_ptr->valid = 0;
++ png_set_IHDR(data->png_ptr,data->info_ptr,width,height,
++ 8,PNG_COLOR_TYPE_RGB,PNG_INTERLACE_NONE,
++ PNG_COMPRESSION_TYPE_DEFAULT,PNG_FILTER_TYPE_DEFAULT);
++ /* setting these to 0 so just skipping ...
+ data->info_ptr->rowbytes = width * 3;
+ data->info_ptr->palette = 0;
+ data->info_ptr->num_palette = 0;
+- data->info_ptr->num_trans = 0;
+- data->info_ptr->bit_depth = 8;
+- data->info_ptr->color_type = PNG_COLOR_TYPE_RGB;
+- data->info_ptr->compression_type = PNG_COMPRESSION_TYPE_DEFAULT;
+- data->info_ptr->filter_type = PNG_FILTER_TYPE_DEFAULT;
+- data->info_ptr->interlace_type = PNG_INTERLACE_NONE;
++ data->info_ptr->num_trans = 0; */
+
+ png_write_info(data->png_ptr, data->info_ptr);
+
+@@ -182,7 +186,7 @@
+ png_data_t *data = (png_data_t*)_data;
+ int i;
+
+- if (setjmp(data->png_ptr->jmpbuf))
++ if (setjmp(png_jmpbuf(data->png_ptr)))
+ assert(0);
+
+ for (i = 0; i < num_lines; ++i)
+@@ -194,7 +198,7 @@
+ {
+ png_data_t *data = (png_data_t*)_data;
+
+- if (setjmp(data->png_ptr->jmpbuf))
++ if (setjmp(png_jmpbuf(data->png_ptr)))
+ assert(0);
+
+ png_write_end(data->png_ptr, data->info_ptr);
diff --git a/media-gfx/metapixel/metadata.xml b/media-gfx/metapixel/metadata.xml
new file mode 100644
index 000000000000..19bf1be2581e
--- /dev/null
+++ b/media-gfx/metapixel/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 type="project">
+ <email>graphics@gentoo.org</email>
+ <name>Gentoo Graphics Project</name>
+</maintainer>
+</pkgmetadata>
diff --git a/media-gfx/metapixel/metapixel-1.0.2-r1.ebuild b/media-gfx/metapixel/metapixel-1.0.2-r1.ebuild
new file mode 100644
index 000000000000..ac2b134a26c8
--- /dev/null
+++ b/media-gfx/metapixel/metapixel-1.0.2-r1.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit toolchain-funcs
+
+DESCRIPTION="a program for generating photomosaics"
+HOMEPAGE="http://www.complang.tuwien.ac.at/schani/metapixel"
+SRC_URI="http://www.complang.tuwien.ac.at/schani/${PN}/files/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+RDEPEND="
+ dev-lang/perl
+ >=media-libs/giflib-5:0=
+ >=media-libs/libpng-1.4:0=
+ virtual/jpeg:0
+"
+DEPEND="${RDEPEND}"
+
+PATCHES=(
+ "${FILESDIR}"/${P}-libpng15.patch
+ "${FILESDIR}"/${P}-giflib5.patch
+)
+
+src_prepare() {
+ default
+
+ sed -i -e 's:/usr/X11R6:/usr:g' Makefile || die
+ sed -i -e 's:ar:$(AR):' rwimg/Makefile || die
+}
+
+src_compile() {
+ emake AR="$(tc-getAR)" CC="$(tc-getCC)" OPTIMIZE="${CFLAGS}" LDOPTS="${LDFLAGS}"
+}
+
+src_install() {
+ dobin ${PN}{,-prepare,-imagesize,-sizesort}
+ doman ${PN}.1
+ dodoc NEWS README
+}
diff --git a/media-gfx/metapixel/metapixel-1.0.2.ebuild b/media-gfx/metapixel/metapixel-1.0.2.ebuild
new file mode 100644
index 000000000000..3f70113b8623
--- /dev/null
+++ b/media-gfx/metapixel/metapixel-1.0.2.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+inherit eutils toolchain-funcs
+
+DESCRIPTION="a program for generating photomosaics"
+HOMEPAGE="http://www.complang.tuwien.ac.at/schani/metapixel"
+SRC_URI="http://www.complang.tuwien.ac.at/schani/${PN}/files/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+RDEPEND="dev-lang/perl
+ media-libs/giflib
+ >=media-libs/libpng-1.4
+ virtual/jpeg"
+DEPEND="${RDEPEND}"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-libpng15.patch
+
+ sed -i -e 's:/usr/X11R6:/usr:g' Makefile || die
+ sed -i -e 's:ar:$(AR):' rwimg/Makefile || die
+}
+
+src_compile() {
+ emake AR="$(tc-getAR)" CC="$(tc-getCC)" OPTIMIZE="${CFLAGS}" LDOPTS="${LDFLAGS}"
+}
+
+src_install() {
+ dobin ${PN}{,-prepare,-imagesize,-sizesort}
+ doman ${PN}.1
+ dodoc NEWS README
+}
diff --git a/media-gfx/mirage/Manifest b/media-gfx/mirage/Manifest
new file mode 100644
index 000000000000..223613ef86c4
--- /dev/null
+++ b/media-gfx/mirage/Manifest
@@ -0,0 +1,6 @@
+AUX mirage-0.9.3-stop_cleaning_up.patch 679 SHA256 40f33674f6821fa84f23de589b2c4924820ec7c8d7952b55232b06d02079494b SHA512 3269a11d970b0e21fff211a7d324d5d51054a8dfb547b15345e1fb252f3c311e42f01d59849a9bbd7e19a39cd5f918231e118aa65673d91bd08ca5312db3ec67 WHIRLPOOL 77a19c5a1c0e85323bdee9ca5d177a2875ebae2610b79582d46fb1af0089fba3a75c32b727c98e0b4799f0ea4b6c81eacd99394537c6c44ff7740c18102522f3
+DIST mirage-0.9.5.2.tar.bz2 114991 SHA256 d214a1b6d99d1d1e83da5848a2cef181f6781e0990e93f7ebff5880b0c43f43c SHA512 c754c7c74523f060cf5c120750de3a5d9935eff2b04a30b4f266939528c1b01f26a27294765dbed47adeef88301cb3d7ff8f7464e6504ba5e8ff734ec0685c76 WHIRLPOOL 53893d24aec11c19c88cdf38ebc8c1efa6d5ad7c71002b32852f0cfd0ccb63c6d2ce8ce491f6d735a59e3c6a374277d55f917d8be2f700d62a1fd898f884b690
+EBUILD mirage-0.9.5.2-r1.ebuild 826 SHA256 658841b42b2858813ce19d5de5b7ca0b7db0f8aa7694dd0e9423e8120636e453 SHA512 67f6e7a34feee2b673e14dc7f03e71f3365d472f854366da690788b20fb79e7e07c88144cbb270cc87f97613e7e04b4c2ff5d544f5510b6b8a07529d3e03f651 WHIRLPOOL 4fd9084fe2774b436349b0d785f0745242f0d5a7729dc71e4c15c997f8afbad94dbce42a970a10820c03da2faa2898d33ce83d788ee980bf0251c2a0ecd8c04e
+MISC ChangeLog 2983 SHA256 63dda26e948fec32e28336cf286e75ad3c7ec9aa1094ac228f172f16ece68b70 SHA512 67dff12fd9fcfb3a0d8af1ba08e2d0f3f5425ace1730b640a82e3a04ac669ee1e1ad069d7ebcc735fc9ebd6532f26a83d4a871215ee545e57fb5a0a97d037dfa WHIRLPOOL 7c1bc21db14ee7c6ce57d3e70e54ff70f510ec63027400aff315ae917c0a94d104b8379e6b91860b1c37dc68b934fb490a5d4f1e911e589da57e0342f5539957
+MISC ChangeLog-2015 4739 SHA256 8964eaeb808a327b57d4f88682c29f9bbb1f9aa7398945da513d9bb591180355 SHA512 761de98e9763b51de0d5f7ff3dc23918b2d70422794af2d64e8ba1584ba72d7cebe2991c66711280eefc7f76a94d4aee3cb89acb6f77783b1b16a2f646baae49 WHIRLPOOL a66eab824bd812f9051221c672c1cf52aa72ed1831d89d836f4c4085b414d644b7c402827ef6c5e1a2bc088ef0822eab9d380e7a5081fb193156e064d61f51ef
+MISC metadata.xml 265 SHA256 db1cfbffc28a5904257a8fbd4f99c081aa42b08239ff8d97aa299983b32d58fd SHA512 65fd64249e8dde8eb2ddcb67c58c05b36b10e51956e2237f60dd3ae50872492f3d5872b64106acb13e453a41960f4f817161be3c8b89e6b9a2367b8f1403ffaf WHIRLPOOL ea60bca9e9cd33aa65e8800ca0bc1c3e84a3f4cad168d7d3d8a8b73d335b866442271f1b027f7f1a6d69dbd1408555c495a581a9280c0b217036a6b736276906
diff --git a/media-gfx/mirage/files/mirage-0.9.3-stop_cleaning_up.patch b/media-gfx/mirage/files/mirage-0.9.3-stop_cleaning_up.patch
new file mode 100644
index 000000000000..0f315297184b
--- /dev/null
+++ b/media-gfx/mirage/files/mirage-0.9.3-stop_cleaning_up.patch
@@ -0,0 +1,27 @@
+diff -ur mirage-0.9.3.orig/setup.py mirage-0.9.3/setup.py
+--- mirage-0.9.3.orig/setup.py 2008-03-27 06:05:28.000000000 +0200
++++ mirage-0.9.3/setup.py 2008-11-30 16:34:11.000000000 +0200
+@@ -70,23 +70,3 @@
+ ('share/locale/cs/LC_MESSAGES', ['mo/cs/mirage.mo']),
+ ('share/locale/it/LC_MESSAGES', ['mo/it/mirage.mo'])],
+ )
+-
+-# Cleanup (remove /build, /mo, and *.pyc files:
+-print "Cleaning up..."
+-try:
+- removeall("build/")
+- os.rmdir("build/")
+-except:
+- pass
+-try:
+- removeall("mo/")
+- os.rmdir("mo/")
+-except:
+- pass
+-try:
+- for f in os.listdir("."):
+- if os.path.isfile(f):
+- if os.path.splitext(os.path.basename(f))[1] == ".pyc":
+- os.remove(f)
+-except:
+- pass
diff --git a/media-gfx/mirage/metadata.xml b/media-gfx/mirage/metadata.xml
new file mode 100644
index 000000000000..6ade85e1c642
--- /dev/null
+++ b/media-gfx/mirage/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 type="project">
+ <email>graphics@gentoo.org</email>
+ <name>Gentoo Graphics Project</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/media-gfx/mirage/mirage-0.9.5.2-r1.ebuild b/media-gfx/mirage/mirage-0.9.5.2-r1.ebuild
new file mode 100644
index 000000000000..8fdb3e7bbd00
--- /dev/null
+++ b/media-gfx/mirage/mirage-0.9.5.2-r1.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+PYTHON_COMPAT=( python2_7 )
+
+inherit distutils-r1
+
+DESCRIPTION="A fast and simple image viewer based on python and GTK+"
+HOMEPAGE="http://mirageiv.berlios.de/"
+#SRC_URI="mirror://berlios/mirageiv/${P}.tar.bz2"
+SRC_URI="mirror://gentoo/${P}.tar.bz2"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="amd64 ~arm ppc ppc64 x86 ~x86-fbsd"
+IUSE=""
+
+RDEPEND="x11-libs/libX11
+ >=dev-python/pygtk-2.12:2[${PYTHON_USEDEP}]"
+DEPEND="${RDEPEND}
+ sys-devel/gettext
+ !media-plugins/banshee-mirage"
+
+PATCHES=( "${FILESDIR}"/${PN}-0.9.3-stop_cleaning_up.patch )
+
+src_install() {
+ distutils-r1_src_install
+ local XDOCS="COPYING CHANGELOG README TODO TRANSLATORS"
+ local x
+ for x in ${XDOCS}; do
+ rm -f "${D}"/usr/share/mirage/${x}
+ done
+}
diff --git a/media-gfx/mkgallery/Manifest b/media-gfx/mkgallery/Manifest
new file mode 100644
index 000000000000..466575aa2053
--- /dev/null
+++ b/media-gfx/mkgallery/Manifest
@@ -0,0 +1,5 @@
+DIST mkgallery-1.1.tgz 6514 SHA256 db062a5ae432e4299650939a580b51f9816414e1de8f5e52a15195a77b16feec SHA512 6d3cbe6bbf3673c26bedde0eef1b03409766324836296205b6dab0a32eb23c7f8cbd27db2778bf710c7d3641e01eb57dbac5493ab97862cd501b3858f1db6a4d WHIRLPOOL 4d15bde42a9b597df2f200bd9b86f72873d955fdc785927119869b787421533e6fed38c107c8b91adc768cba4f17536ecb1707b59ea34664c29bc2c70573134c
+EBUILD mkgallery-1.1.ebuild 520 SHA256 968aca54bfe9d7f8b6fa3d826f75415806a783b7310209765c8d697d08e8a8d6 SHA512 e134ea9a27e0fb7fd8f27e2c10336b7ab031a5dd6e48b5bdc638afc8903a0fe5c6606a36501ec5cf62a78cdba90cd453266d8d213083d69f78f4b45ad9c3ab80 WHIRLPOOL 9b4f86b05e423794bb9e1f03c3048097ab38a3fb5eaa59acc13ca90043423183687d3aa209cf749728f52403a635136ce9fbb8c5a138656f4ca43e7ecd1c9b47
+MISC ChangeLog 3071 SHA256 690b3c3dfea05c4614111fbc6c838ad2dac71f76d7aa0fbe7e0000e8475ced9c SHA512 06c99338f1a3827fa58ee4c0ce74507ef32aabaf0bddef487a7ded4fc27c12c96b2d0770316603c4f57e7c01e5dcb9215506a7e30a784abec060894bd2fc4ec0 WHIRLPOOL e4487b5a86ff62d0c38da0274ef906097fce87f54d66cb5f777871079c65d4534e17c8ebd7dc989bbbd2445550e7e3957230a55da94ed9e25dbe4364ea4a9618
+MISC ChangeLog-2015 1193 SHA256 f3e63a456802cad6907ac0585f1fd5ecfabbcf56398b6f6b953e11e93767334e SHA512 f5efd0b5d8a094ce5b27d9bd70d93c88610fb7a4f64e25e27a21d2c00506d909d8220439b3fded6b5e6343d35fba9cf4bd61eb3d0633351c58a016aa20d732a3 WHIRLPOOL c3889473aca38a37a0e3a267a9b1a919fd1807f8c061a9839b602a20ff62c55d2685f879da6cbf87a51e2612c8353b7598fc3ab7c62b00a505ab54b074d14c92
+MISC metadata.xml 246 SHA256 f8c37493a71577e566284b454ce2d56a902b84772055674cd986273b3480e5c2 SHA512 06b51a14b7a00428ccf8399b124bdf7ad7909af339489562a36e3e470da8c8cbdf09324fd01c14dd515ee0fb8d4849ef25f4117c56076a4590fd31b7f76b8651 WHIRLPOOL de27948446834bc7ed3f9780bbdbf57433d2f35dabdbee45edcfede6cc3aac17ffbc4616bc241be40527304351da70ae2ec9e221d3e55a0aa2e3b6250088412b
diff --git a/media-gfx/mkgallery/metadata.xml b/media-gfx/mkgallery/metadata.xml
new file mode 100644
index 000000000000..76d50ff6b6cb
--- /dev/null
+++ b/media-gfx/mkgallery/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-needed -->
+ <upstream>
+ <remote-id type="sourceforge">mkgallery</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/media-gfx/mkgallery/mkgallery-1.1.ebuild b/media-gfx/mkgallery/mkgallery-1.1.ebuild
new file mode 100644
index 000000000000..6915b66ce5f2
--- /dev/null
+++ b/media-gfx/mkgallery/mkgallery-1.1.ebuild
@@ -0,0 +1,20 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+DESCRIPTION="Creates thumbnails and a HTML index file for a directory of jpg files"
+HOMEPAGE="http://mkgallery.sourceforge.net/"
+SRC_URI="http://mkgallery.sourceforge.net/${P}.tgz"
+
+LICENSE="GPL-2"
+KEYWORDS="amd64 ppc sparc x86 ~amd64-linux ~x86-linux ~ppc-macos"
+IUSE=""
+SLOT="0"
+
+DEPEND="media-gfx/imagemagick"
+RDEPEND="$DEPEND
+ sys-devel/bc"
+
+src_install() {
+ dobin mkgallery
+ dodoc BUGS README THANKS TODO
+}
diff --git a/media-gfx/monica/Manifest b/media-gfx/monica/Manifest
new file mode 100644
index 000000000000..ff77198cb459
--- /dev/null
+++ b/media-gfx/monica/Manifest
@@ -0,0 +1,7 @@
+AUX monica-3.6-makefile-cleanup.patch 907 SHA256 cb4ac6b098360ffc8a4f926b2b8624d69257d074e5115fbb62e8a1207d9a309b SHA512 cc151e238e89db9d3873133e1a637d5e2959c2460251fe7fe8feb62ef22c64963cec5b2533607996b2cf7d33abdfd1f42a59f5a769cad0bf2194e8d751da3bf6 WHIRLPOOL 6fc00a8487297095232a1c35d8c636ec43c25d917e6bdf6a1cf0a73c3246e2525d0233d717f198b930170a833cce05924f2715f456cb833b85a6c7e0ad774121
+AUX monica-3.7-gcc44.patch 341 SHA256 b689f66cf8fffa88ccc8bcc40b3e758a40575258f98fc4097286239f65836ceb SHA512 837f3fc2c77d415067460f1aae80807daa9882b814494f2305be711db920a750ae183ec7b456527956b60ca3cf022729524990cd0febafeaab41bd1dbb080bfb WHIRLPOOL 1a1f718743d3a51458e88aa3648dd656b077091bfef451e81b830539d49497bd6e4d101103336ad0443e2b869059ca9b37e1bc5401a70432f816070fb3d5ad07
+DIST monica-3.7.tar.bz2 18330 SHA256 da0d7762f5a2eed482e8e2f87762d3ac1f013d5c99bd99b34083b69f03492036 SHA512 87565f33f3c3492b196905e5b8e17bd45a7eb8eb0a0281f02e23337eec888af82571ac6f2d229256ee97012d402b7f1b217cd56a8b87ff9c9296931bf63cb153 WHIRLPOOL 56f743cc38fdbf1c60eaeaa3098f27879d67d96e3664bd316268c13614f78149d94ebd7a0ef056aefa4a049075549367e63b4d65ae7297f22a804290432af961
+EBUILD monica-3.7.ebuild 708 SHA256 cdeef954799569f72506ff925c83ba4c36628075d9b1ab2c3525aab3888a837b SHA512 a31da9af50f86ab6e4c45a4d32008ede5d6fcb992e2fe3205e9acd0a40904cfe0d367f766b78a67f8b3c4edfabd26311eaa81e9dc1271fe938d6e6920be69d77 WHIRLPOOL cd60d3fcae31c89442042a89441c07df5fe33c459911fad7a7267fc4bf1f76a14f5df792c5c4a0c42a60b68d60bfd1f1d4bae0a5894344712c714d12892547b8
+MISC ChangeLog 2750 SHA256 33d423116a9d01cce36b6554ee7eb64f937a9777b0343feb2984f1a27fbbb203 SHA512 241ed116a850e03faf105bb23c07406be17cd59e35536717d03d39b9986e433a0aa1969a00c89473553bc9677afdaf541e15c0c8f37287379a472930e83196f6 WHIRLPOOL 755cb8366d2ff74f4f734d0222cbc2466317d0bc4b6932ca516d475cb3814cf46490e9060c42c8b83a0f02295234a99af49452d75c57c9042501e903fab247e1
+MISC ChangeLog-2015 1308 SHA256 db847e7c46892117cb89b87ce4065cd7f1a9a71bb9b66e92e2bd61ba1308a421 SHA512 b79bfde2ca2bbf73062a029b5cfcd454315daf0e10f7f823a05e150727993b3d6272218ee6eaafdca9988835c38d44bb4e66c4aa35228632ebada93c5cc4bbb7 WHIRLPOOL ce99992c7c69411d118e5501eb2dbab720a3aa4b407d7131a2858c1f2bff4a499d2ff727fd5a25de28ec469b4c7d1b20da327800a319b361bc2dbb16c4c3bd16
+MISC metadata.xml 629 SHA256 c9d0009ab6ed39f0408b832c30cdd75e0f36e4d55dcfb6e4a082e41cb4a0d1f0 SHA512 30f91e05861aa50f5d0af624459ea92cd2649fbad374bed1b0dc30c2ab2532df8bd6b27f42f23bc7e77480141bcd5760a5804c46d121b3fa1170a90fd1d0acd0 WHIRLPOOL 51375b5c7e43600f68e791de5526b36f016718af23c0246a0582d0c88eb761e32c73d5226183092d58fde6e51b39fe17310b7f5b816f83395ce6fd21f0d166d1
diff --git a/media-gfx/monica/files/monica-3.6-makefile-cleanup.patch b/media-gfx/monica/files/monica-3.6-makefile-cleanup.patch
new file mode 100644
index 000000000000..21881db24971
--- /dev/null
+++ b/media-gfx/monica/files/monica-3.6-makefile-cleanup.patch
@@ -0,0 +1,33 @@
+diff -Nuar monica-3.6.orig/Makefile monica-3.6/Makefile
+--- monica-3.6.orig/Makefile 2005-03-14 22:00:18.000000000 -0800
++++ monica-3.6/Makefile 2007-11-15 00:48:39.000000000 -0800
+@@ -2,22 +2,24 @@
+ CXX = g++
+ LINK = g++
+ CFLAGS = -Wall -O2
+-CXXFLAGS = `fltk-config --cxxflags` -Wall -O2
+-LDFLAGS = `fltk-config --ldflags`
++CXXFLAGS = -Wall -O2
++FLTK_CXXFLAGS = `fltk-config --cxxflags`
++LDFLAGS =
++FLTK_LDFLAGS = `fltk-config --ldflags`
+ TARGET = monica
+-DESTINATION = /usr/bin
++DESTINATION = $(DESTDIR)/usr/bin
+ OBJECTS = monica.o
+
+ all: $(TARGET)
+
+ $(TARGET): $(OBJECTS)
+- $(LINK) -o $(TARGET) $(OBJECTS) $(LDFLAGS)
++ $(LINK) -o $(TARGET) $(OBJECTS) $(FLTK_LDFLAGS) $(LDFLAGS)
+
+
+ monica.o: monica.cpp
+- $(CXX) -c $(CXXFLAGS) $(INCPATH) -o monica.o monica.cpp
++ $(CXX) -c $(FLTK_CXXFLAGS) $(CXXFLAGS) $(INCPATH) -o monica.o monica.cpp
+
+ clean:
+ rm -f $(OBJECTS)
+ rm -f monica
+
diff --git a/media-gfx/monica/files/monica-3.7-gcc44.patch b/media-gfx/monica/files/monica-3.7-gcc44.patch
new file mode 100644
index 000000000000..6fad87c6f86b
--- /dev/null
+++ b/media-gfx/monica/files/monica-3.7-gcc44.patch
@@ -0,0 +1,11 @@
+diff -ur monica-3.7.orig/monica.cpp monica-3.7/monica.cpp
+--- monica-3.7.orig/monica.cpp 2008-06-02 06:45:50.000000000 +0300
++++ monica-3.7/monica.cpp 2009-07-24 20:42:12.000000000 +0300
+@@ -14,6 +14,7 @@
+ #include <FL/Fl_Tooltip.H>
+ #include <FL/Fl_Pixmap.H>
+
++#include <cstdio>
+ #include <cstdlib>
+ #include <string>
+ #include <iostream>
diff --git a/media-gfx/monica/metadata.xml b/media-gfx/monica/metadata.xml
new file mode 100644
index 000000000000..272fc1e5253b
--- /dev/null
+++ b/media-gfx/monica/metadata.xml
@@ -0,0 +1,17 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>robbat2@gentoo.org</email>
+ </maintainer>
+ <longdescription>
+ Monica is a Monitor Calibration Tool.
+ An easy way to get respectable color rendetion on your screen. Especially
+ important to get a reasonable overall gamma setting, to make sure the basic
+ "brightness" of your screen jibes with what others see... (the Internet sRGB
+ standard gamma of 2.2)
+ </longdescription>
+ <upstream>
+ <remote-id type="freecode">monica</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/media-gfx/monica/monica-3.7.ebuild b/media-gfx/monica/monica-3.7.ebuild
new file mode 100644
index 000000000000..7afd8b96e53f
--- /dev/null
+++ b/media-gfx/monica/monica-3.7.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit toolchain-funcs
+
+DESCRIPTION="Monica is a Monitor Calibration Tool"
+HOMEPAGE="http://freecode.com/projects/monica"
+SRC_URI="mirror://gentoo/${P}.tar.bz2"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="amd64 ppc x86"
+IUSE=""
+
+DEPEND=">=x11-libs/fltk-1.1:1"
+RDEPEND="${DEPEND}
+ x11-apps/xgamma"
+
+DOCS=( authors ChangeLog news readme )
+PATCHES=(
+ "${FILESDIR}"/${PN}-3.6-makefile-cleanup.patch
+ "${FILESDIR}"/${P}-gcc44.patch
+)
+
+src_compile() {
+ emake \
+ CXX="$(tc-getCXX)" \
+ CXXFLAGS="${CXXFLAGS}" \
+ LINK="$(tc-getCXX)" \
+ LDFLAGS="${LDFLAGS}"
+}
+
+src_install() {
+ dobin monica
+ einstalldocs
+}
diff --git a/media-gfx/mscgen/Manifest b/media-gfx/mscgen/Manifest
new file mode 100644
index 000000000000..a9426896410f
--- /dev/null
+++ b/media-gfx/mscgen/Manifest
@@ -0,0 +1,5 @@
+DIST mscgen-src-0.20.tar.gz 204818 SHA256 3c3481ae0599e1c2d30b7ed54ab45249127533ab2f20e768a0ae58d8551ddc23 SHA512 12fdea38633a42d6d235520550b16bea0cd3fb67d198b1f956845f4057239d7f80fa961e37f6f8bad9fb03f29ff8c6ffab4f4ae7402eea3083dfddeaf39687e3 WHIRLPOOL b924eae08da4e11310a85452fc4a63ca81c5b63406fdfe7b5d2968f58368f2f2ed6884e28b8d1b3f00e1af0a79f394f19b19116d5cad27742ee5d04778af950b
+EBUILD mscgen-0.20.ebuild 844 SHA256 cb05fcd2c2d3effbe42a4bb13ecc321055eaae52d1091b9b24d5af4392e9601d SHA512 14e5f1f581811e9655318200391392814d78581160544a66fbb7043b916adb8cc463cbda7b1806fa89900fce996f496e89e7ca3b5a86dc0cebef275e4d16faa0 WHIRLPOOL 8b351238933ebcda8e2cea6008f9da5742313faa80984890d3620c905afd462fbde15098b0ca376ed841325fb97106b3f36223e7ea30a1cc177d9206f944c755
+MISC ChangeLog 2453 SHA256 50d8dc20c7af0ae707676de08ed7d2f602bc7ca74a1222bd5fe8f58fa7299d06 SHA512 e954c9ecbb22938d6ef60332bdaf38c3cfae9e979b5bcf794a93fa76c632322895ce07eb1a6335f92584a55a44b6d5757d8877d14ff99c4ccf5d4cdcf6390c0d WHIRLPOOL 6a69e407bfc74e0d1f79732b9acb8b71aa89c4e58a69377dce5adf59bade2c7c9d580ccc580b269a1796828ae74c777fff87742f1e6427fbb4be94724f6918cf
+MISC ChangeLog-2015 1634 SHA256 7c245e3c8fc80fb98b48c5534579f8983989b2fe635743d99607d04c239849d2 SHA512 508e038a5a9fce2efde93267fc0e7297c3836f4a23a9f0efb4f40b882d91dc39037f33c49f5097653a234525543e8a9ed626b1dcc0ee049b6db8182e2cc6c1fd WHIRLPOOL 0743973653794bd5f16171c4fcb0a9b114443277a523171845bf39f7ef38b0964dd7ce0d1f9e25f0af2e3a9a996450902f479b0531dfb9dd3bf6010375dd6707
+MISC metadata.xml 255 SHA256 3e7137870fc49956d79719e3dfe029775cbaaa097e85748c139713c46fcd1798 SHA512 b7bc93530a1726c2d4dfbc71ae29cfbb57712fd9fdd2e76fd52f35ab4368cba0497b50145d1527a3b79e465d459a380821bb1371a01c2e915dc9adc6c7fafd5f WHIRLPOOL 392188d7e069f1720be9329edfb31b11b176bf0c411023b2ceeaeabef1cacf842d70657a2a14ac2ddabbdad70a304275f3b587e9bcdfe77be63a0092e370252c
diff --git a/media-gfx/mscgen/metadata.xml b/media-gfx/mscgen/metadata.xml
new file mode 100644
index 000000000000..19bf1be2581e
--- /dev/null
+++ b/media-gfx/mscgen/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 type="project">
+ <email>graphics@gentoo.org</email>
+ <name>Gentoo Graphics Project</name>
+</maintainer>
+</pkgmetadata>
diff --git a/media-gfx/mscgen/mscgen-0.20.ebuild b/media-gfx/mscgen/mscgen-0.20.ebuild
new file mode 100644
index 000000000000..b2c2a7c000d1
--- /dev/null
+++ b/media-gfx/mscgen/mscgen-0.20.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+inherit autotools
+
+DESCRIPTION="A message sequence chart generator"
+HOMEPAGE="http://www.mcternan.me.uk/mscgen/"
+SRC_URI="http://www.mcternan.me.uk/${PN}/software/${PN}-src-${PV}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 arm ppc ppc64 x86 ~x64-solaris"
+IUSE="png truetype"
+
+RDEPEND="png? ( media-libs/gd[png,truetype?] )"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ sys-devel/bison
+ sys-devel/flex"
+
+# Workaround for bug #379279
+RESTRICT="test"
+
+src_prepare() {
+ sed -i -e '/dist_doc_DATA/d' Makefile.am || die
+ eautoreconf
+}
+
+src_configure() {
+ local myconf
+
+ if use png; then
+ use truetype && myconf="--with-freetype"
+ else
+ myconf="--without-png"
+ fi
+
+ econf \
+ --docdir="${EPREFIX}"/usr/share/doc/${PF} \
+ ${myconf}
+}
diff --git a/media-gfx/mypaint/Manifest b/media-gfx/mypaint/Manifest
new file mode 100644
index 000000000000..b551c614922c
--- /dev/null
+++ b/media-gfx/mypaint/Manifest
@@ -0,0 +1,12 @@
+AUX mypaint-1.1.0-build-env-vars.patch 1812 SHA256 6259c8cfe61829880a6ed0f18e7d653271ec53df5132dc4d2eaa5628eb49aec6 SHA512 336a9c838ac9e51f929f9727008feab8251ab9defd106d7161fe5d5b5150460573c66873b88f202d616e4668d3bf272b8dc8305e367ef7c450620b6a48330fe9 WHIRLPOOL fe2eebfceb02e867590775569151e975fb9276e265cf5e7754d21401888cfccde69d29fe4599a87c4b9bf749a8090e92784104579727c143348ffd3137b46672
+AUX mypaint-1.1.0-desktop.patch 626 SHA256 0c2dad7f45e0d1b2763ef7933f2e774e5b8199a7f7732c6bfc78e59ae2e3a3ec SHA512 77f267ad6a12b6d18fa955b5b9f8ef3a3eb6fed832745eda4db539d75c49056bb7fd6474ee904e6ac7cab12ae286beb48617e4825b826ca77a439764873e8d75 WHIRLPOOL 89f5aead97dda499da0a4e6e26135941998205f97c9ab26b205221e43ffe6418e688692cbf063fded53900bf1853e5d5ad367eba77de61dff53ac00838590d40
+AUX mypaint-1.1.0-json-c-0.11.patch 403 SHA256 e3cf5443175d3e8fe2e3e0d687c7d5e644ae7cb70f95d457356f610208c83d49 SHA512 554d0f0cc8c9cb4a48b1f9c57532247461e9705ad819c52f2e264ea238783fe60728af3e51e01667dc0c60883375727624811a48d1603436ad9970282a682605 WHIRLPOOL 05b67cb7c7b2c9dca6443ef5f61609cd0945d10e1bcb937cde9fb8e7b2d662bd32405b352741f3780cf02c117f6efc1a5740eb420a370a9db426447dd4062824
+DIST mypaint-1.1.0.tar.bz2 37416388 SHA256 780d57e50dd90afd586873bc5120261930ea4c309d4d0958020916932122e838 SHA512 a3eef378ddcaa0a33f9afc49cc587489ecfff6f3e46e2238aab83f89d682f2407e2760e6029eaac3591f0a8955c95280c12839adcb42ec452cefbcdb142ab9b9 WHIRLPOOL bfd7356ad393dd85b91ccc010b5d0be23a6d82a33866edade0ef6eb739a1cbdb6823d7bffbdc943f96cdac9059abb7ac1edacf31d4ac2cd3871444594e23557a
+DIST mypaint-1.2.0.tar.xz 37895196 SHA256 cdab33dd0c146cf678c97bcdd44e561f97a0aec40421b8c6785a74b33b9728e2 SHA512 b4e75393cf6ed9b0c3c5a96979607c848d463987e3ac0f711738940ba97be6922e0cce735c56f91261bfce3e0730d69393dd57a45b3b04824c63c74cf1306790 WHIRLPOOL aee266e09258cbf23bf1fc8e78f0d717ecf5a2a1c03898193901b24e38266922d575744a01f4a31aa4fe6da566d05f246b16cad690d21f40a9ff90ad1596cc49
+DIST mypaint-1.2.1.tar.xz 37897196 SHA256 ed2349382f6a0c583d7defae06427e97ac7d14acb77b9e2c0fc7171ddd96d3c7 SHA512 1783765e495b9535669a83a29d27ba684e6201fdfe0875bdd2c167b1dab8af05993b19025767fe0b2770ed9e578e4709f75d8a4820ac945812cba85609f9eb9b WHIRLPOOL 5af6ec271d7844c45f3af0bca8dbc7ae4ff46416fd43a7760ccc4bc79af415e993107d9ee9cb9fadc4c5feea3d55917f6c0c8052134f4642694706d4606b9586
+EBUILD mypaint-1.1.0-r2.ebuild 2032 SHA256 cc9e75df093f82080153d7a1570d64e32926f05c67c8ce68e882e344645c9a85 SHA512 906b639cf46ebd2b87e003fe19f1dbb807b7584b73d04f481429b01abb093bd7a6767072429dcec86fb5f255f272ca0c66467cbdfe974466fbca4571df0401cb WHIRLPOOL 02b1f20ab7ce6e7cb06690cc55ce4acebd3ad4e42dc506d17872b99ae434d80d1c8e6eaee65973f23727baed6a283512bc3587e08f8b58aa5abe8fcd052a08a3
+EBUILD mypaint-1.2.0.ebuild 1843 SHA256 b97e642dbfbe0febc2691143e08771c6286af46a8dd354a58d4817bb231fa5c5 SHA512 e0ccc37c46c109e61f600fce594474725ad4df7485d062f1c1786ebfc78c5c120a225a636d01e302e67c2918b1b6c424f541a49565a138135bc3e943d68ca86a WHIRLPOOL 1bfdace9922e0be39cf7d702ea6adb664387d9e4dc85ea056a90a3015725df8f34c7543e6db52f1715dd7197ad3bab92abdb961e3b7c41405393de5bba179bf3
+EBUILD mypaint-1.2.1.ebuild 1986 SHA256 ab036d4abbb41c8f56605161d2a2abec67dd4be404db81eaceb4777d76efc5da SHA512 f6d8edca3abf53b8552fc4fa1f979b46513c2213489c1eb8e502d97c518b3bf7d5293facadd021f4c1cf0d239f1fa88c24a369da81701e2034e5fe3082fd5e54 WHIRLPOOL bdca6d332b699a770ec728bf736a53e8e2a8ff50c306c41219da730d62b6484595b79faeeb452da43ed826d9b61267bd8975a0c583c60dde24da40d977cbe67d
+MISC ChangeLog 3195 SHA256 5617504e8133fbd7050d2205a359c7579a779d45f0078ae877940a3d8eb1ef4c SHA512 b6d76c1db6ccd847ad1d0c092467fb6e42e2417356fdc638d8b4458860176e9ab4d9202fb9abd5d1b318dc1337f970b15dcd6fa030f0807c0b14d73e89d0c630 WHIRLPOOL d1472a4099d29b75f65006308ce1ca69d9b93b55529d70c5ede1a3ecdca17fd0659ac59010cda95221a2c955f57872e661e0fa1f816baed88ae7c3170f0f655d
+MISC ChangeLog-2015 4153 SHA256 5fbb0963a95daa50c2408d9069122384d22e9ac736114839a22b450b36f35a70 SHA512 821e12315221097bbd97128e019f3d6173a41b99d3f16bf4f8142d7b91eb32de758fd891341553b587676c14f9fba2b558d1183a18a3a52f3f937cdff9df7cbd WHIRLPOOL 972056e25a5a827dde380572256879d65c997e2789177ed74240a13d713dd7d88f82105fb616eaabc3574c2bc341fb1f71e5c447ff8f741009eb4e3de77cda1c
+MISC metadata.xml 330 SHA256 4430cc2478a7c4c696e658fe764c698be8c78ab8266c495d70b4981233e3fabc SHA512 7e42c10fd3d1317f13955d4410f5ee5284925305bd669746695eca4e84d81b7913b1ba84fb14b27ad556c339c0772b3ef96c8063b44574def2b6d9019fdb03d1 WHIRLPOOL 9d46a3872eedb5b6fcde06391ddb6bff58ae497b4441f1dd012f87608d2fbd404368fcd5def19b45e496ed75fad13a191c637aaa15a568bfddc050a19f0c8bee
diff --git a/media-gfx/mypaint/files/mypaint-1.1.0-build-env-vars.patch b/media-gfx/mypaint/files/mypaint-1.1.0-build-env-vars.patch
new file mode 100644
index 000000000000..7d7ac3e36359
--- /dev/null
+++ b/media-gfx/mypaint/files/mypaint-1.1.0-build-env-vars.patch
@@ -0,0 +1,53 @@
+From 516d184b5db8ebdd8b184ef871050c3ab3f03fdf Mon Sep 17 00:00:00 2001
+From: Andrew Chadwick <andrewc-git@piffle.org>
+Date: Sun, 21 Apr 2013 22:51:05 +0100
+Subject: [PATCH] SConstruct: support standard build environ vars
+
+Support the standard build environment vars CC, CXX, CFLAGS, CXXFLAGS,
+CPPFLAGS, and LDFLAGS everywhere.
+
+Partially addresses https://gna.org/bugs/?20754
+---
+ SConstruct | 19 +++++++++++++++++++
+ 1 file changed, 19 insertions(+)
+
+diff --git a/SConstruct b/SConstruct
+index 0b55da1..ef39b9e 100644
+--- a/SConstruct
++++ b/SConstruct
+@@ -1,6 +1,7 @@
+ import os, sys
+ from os.path import join, basename
+ from SCons.Script.SConscript import SConsEnvironment
++import SCons.Util
+
+ EnsureSConsVersion(1, 0)
+
+@@ -45,6 +46,24 @@ print('using %r (use scons python_config=xxx to change)' % env['python_config'])
+ if sys.platform == "win32":
+ # remove this mingw if trying VisualStudio
+ env = Environment(tools=tools + ['mingw'], ENV=os.environ, options=opts)
++
++# Respect some standard build environment stuff
++if os.environ.has_key('CC'):
++ env['CC'] = os.environ['CC']
++if os.environ.has_key('CFLAGS'):
++ env['CCFLAGS'] += SCons.Util.CLVar(os.environ['CFLAGS'])
++if os.environ.has_key('CXX'):
++ env['CXX'] = os.environ['CXX']
++if os.environ.has_key('CXXFLAGS'):
++ env['CXXFLAGS'] += SCons.Util.CLVar(os.environ['CXXFLAGS'])
++if os.environ.has_key('CPPFLAGS'):
++ env['CCFLAGS'] += SCons.Util.CLVar(os.environ['CPPFLAGS'])
++ env['CXXFLAGS'] += SCons.Util.CLVar(os.environ['CPPFLAGS'])
++if os.environ.has_key('LDFLAGS'):
++ env['LINKFLAGS'] += SCons.Util.CLVar(os.environ['LDFLAGS'])
++if "$CCFLAGS" in env['CXXCOM']:
++ env['CXXCOM'] = env['CXXCOM'].replace("$CCFLAGS","")
++
+ opts.Update(env)
+
+ env.Append(CXXFLAGS=' -Wall -Wno-sign-compare -Wno-write-strings')
+--
+1.7.10.4
+
diff --git a/media-gfx/mypaint/files/mypaint-1.1.0-desktop.patch b/media-gfx/mypaint/files/mypaint-1.1.0-desktop.patch
new file mode 100644
index 000000000000..b992131bf29e
--- /dev/null
+++ b/media-gfx/mypaint/files/mypaint-1.1.0-desktop.patch
@@ -0,0 +1,24 @@
+From: Andrew Chadwick <andrewc-git@piffle.org>
+Date: Tue, 8 Jan 2013 13:53:01 +0000
+Subject: desktop: remove deprecated Encoding key
+
+The Encoding key is deprecated as of 1.0 of the Desktop Entry Specification
+(8 Jan 2012)
+
+http://standards.freedesktop.org/desktop-entry-spec/1.0/apc.html
+---
+ desktop/mypaint.desktop | 1 -
+ 1 file changed, 1 deletion(-)
+
+diff --git a/desktop/mypaint.desktop b/desktop/mypaint.desktop
+index 9850b54..24383db 100644
+--- a/desktop/mypaint.desktop
++++ b/desktop/mypaint.desktop
+@@ -1,6 +1,5 @@
+ [Desktop Entry]
+ Version=1.0
+-Encoding=UTF-8
+ Name=MyPaint
+ TryExec=mypaint
+ Exec=mypaint %f
+--
diff --git a/media-gfx/mypaint/files/mypaint-1.1.0-json-c-0.11.patch b/media-gfx/mypaint/files/mypaint-1.1.0-json-c-0.11.patch
new file mode 100644
index 000000000000..f2aa9b9a0edf
--- /dev/null
+++ b/media-gfx/mypaint/files/mypaint-1.1.0-json-c-0.11.patch
@@ -0,0 +1,15 @@
+https://bugs.gentoo.org/show_bug.cgi?id=467322
+Patch-by: Helmut Jarausch <jarausch@igpm.rwth-aachen.de>
+Fixes pkgconfig name for new json-c (since 0.11)
+
+--- brushlib/SConscript.ORIG 2012-12-31 18:03:38.000000000 +0100
++++ brushlib/SConscript 2013-04-26 11:47:27.008232199 +0200
+@@ -73,7 +73,7 @@
+
+ env.Append(CPPPATH='./')
+
+-pkg_deps = ['json']
++pkg_deps = ['json-c']
+ libs = ['m']
+ linkflags = []
+
diff --git a/media-gfx/mypaint/metadata.xml b/media-gfx/mypaint/metadata.xml
new file mode 100644
index 000000000000..715f5d8b25b1
--- /dev/null
+++ b/media-gfx/mypaint/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>hwoarang@gentoo.org</email>
+ <name>Markos Chandras</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">mypaint/mypaint</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/media-gfx/mypaint/mypaint-1.1.0-r2.ebuild b/media-gfx/mypaint/mypaint-1.1.0-r2.ebuild
new file mode 100644
index 000000000000..e0a166f92e93
--- /dev/null
+++ b/media-gfx/mypaint/mypaint-1.1.0-r2.ebuild
@@ -0,0 +1,91 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+PYTHON_COMPAT=( python2_7 )
+
+inherit fdo-mime gnome2-utils multilib scons-utils toolchain-funcs python-single-r1
+
+DESCRIPTION="fast and easy graphics application for digital painters"
+HOMEPAGE="http://mypaint.intilinux.com/"
+SRC_URI="http://download.gna.org/${PN}/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+LANGS="cs de en_CA en_GB es fr hu id it ja ko nb nn_NO pl pt_BR ro ru sl sv uk zh_CN zh_TW"
+for x in ${LANGS}; do
+ IUSE+="linguas_${x} "
+done
+
+RDEPEND="
+ dev-python/pygtk:2[${PYTHON_USEDEP}]
+ dev-python/numpy[${PYTHON_USEDEP}]
+ >=dev-python/pycairo-1.4[${PYTHON_USEDEP}]
+ || (
+ dev-python/protobuf-python[${PYTHON_USEDEP}]
+ dev-libs/protobuf[python,${PYTHON_USEDEP}]
+ )
+ >=dev-libs/json-c-0.11:=
+ media-libs/lcms:2
+ media-libs/libpng:0=
+ ${PYTHON_DEPS}
+"
+DEPEND="${RDEPEND}
+ dev-lang/swig
+ virtual/pkgconfig"
+
+REQUIRED_USE=${PYTHON_REQUIRED_USE}
+
+pkg_setup() {
+ python-single-r1_pkg_setup
+}
+
+src_prepare() {
+ # multilib support
+ sed -i -e "s:lib\/${PN}:$(get_libdir)\/${PN}:" \
+ SConstruct SConscript || die
+ # respect CXXFLAGS,CXX,LDFLAGS
+ epatch "${FILESDIR}"/${P}-build-env-vars.patch
+ # fix mypaint.desktop
+ epatch "${FILESDIR}"/${P}-desktop.patch
+ # pkgconfig patch for json-c-0.11. 467322
+ epatch "${FILESDIR}"/${P}-json-c-0.11.patch
+}
+
+src_compile() {
+ #workaround scons bug with locales. Bug #352700
+ export LANG="en_US.UTF-8"
+ tc-export CC CXX
+ escons
+}
+
+src_install () {
+ escons prefix="${D}/usr" install
+ newicon pixmaps/${PN}_logo.png ${PN}.png
+ for x in ${LANGS}; do
+ if ! has ${x} ${LINGUAS}; then
+ rm -rf "${ED}"/usr/share/locale/${x} || die
+ fi
+ done
+
+ python_optimize "${D}"usr/share/${PN}
+ # not used and broken
+ rm -rf "${ED}"/usr/{include/,lib/libmypaint.a,lib/pkgconfig/} || die
+}
+
+pkg_preinst() {
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ fdo-mime_desktop_database_update
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ fdo-mime_desktop_database_update
+}
diff --git a/media-gfx/mypaint/mypaint-1.2.0.ebuild b/media-gfx/mypaint/mypaint-1.2.0.ebuild
new file mode 100644
index 000000000000..f95ce3047dfc
--- /dev/null
+++ b/media-gfx/mypaint/mypaint-1.2.0.ebuild
@@ -0,0 +1,86 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+PYTHON_COMPAT=( python2_7 )
+
+inherit fdo-mime gnome2-utils multilib scons-utils toolchain-funcs python-single-r1
+
+DESCRIPTION="fast and easy graphics application for digital painters"
+HOMEPAGE="http://mypaint.org/"
+SRC_URI="https://github.com/mypaint/${PN}/releases/download/v${PV}/${P}.tar.xz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+LANGS="cs de en_CA en_GB es fr hu id it ja ko nb nn_NO pl pt_BR ro ru sl sv uk zh_CN zh_TW"
+for x in ${LANGS}; do
+ IUSE+="linguas_${x} "
+done
+
+RDEPEND="
+ dev-python/pygobject:3[${PYTHON_USEDEP}]
+ dev-python/numpy[${PYTHON_USEDEP}]
+ >=dev-python/pycairo-1.4[${PYTHON_USEDEP}]
+ || (
+ dev-python/protobuf-python[${PYTHON_USEDEP}]
+ dev-libs/protobuf[python,${PYTHON_USEDEP}]
+ )
+ >=dev-libs/json-c-0.11:=
+ media-libs/lcms:2
+ media-libs/libpng:0=
+ gnome-base/librsvg
+ ${PYTHON_DEPS}
+"
+DEPEND="${RDEPEND}
+ dev-lang/swig
+ virtual/pkgconfig"
+
+REQUIRED_USE=${PYTHON_REQUIRED_USE}
+
+pkg_setup() {
+ python-single-r1_pkg_setup
+}
+
+src_prepare() {
+ # multilib support
+ sed -i -e "s:lib\/${PN}:$(get_libdir)\/${PN}:" \
+ SConstruct SConscript || die
+}
+
+src_compile() {
+ #workaround scons bug with locales. Bug #352700
+ export LANG="en_US.UTF-8"
+ tc-export CC CXX
+ escons
+}
+
+src_install () {
+ escons prefix="${D}/usr" install
+ newicon pixmaps/${PN}_logo.png ${PN}.png
+ for x in ${LANGS}; do
+ if ! has ${x} ${LINGUAS}; then
+ rm -rf "${ED}"/usr/share/locale/${x} || die
+ fi
+ done
+
+ python_optimize "${D}"usr/share/${PN}
+ # not used and broken
+ rm -rf "${ED}"/usr/{include/,lib/libmypaint.a,lib/pkgconfig/} || die
+}
+
+pkg_preinst() {
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ fdo-mime_desktop_database_update
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ fdo-mime_desktop_database_update
+}
diff --git a/media-gfx/mypaint/mypaint-1.2.1.ebuild b/media-gfx/mypaint/mypaint-1.2.1.ebuild
new file mode 100644
index 000000000000..9b65292a4a45
--- /dev/null
+++ b/media-gfx/mypaint/mypaint-1.2.1.ebuild
@@ -0,0 +1,91 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python2_7 )
+
+inherit fdo-mime gnome2-utils multilib scons-utils toolchain-funcs python-single-r1
+
+DESCRIPTION="fast and easy graphics application for digital painters"
+HOMEPAGE="http://mypaint.org/"
+SRC_URI="https://github.com/mypaint/${PN}/releases/download/v${PV}/${P}.tar.xz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+LANGS="cs de en_CA en_GB es fr hu id it ja ko nb nn_NO pl pt_BR ro ru sl sv uk zh_CN zh_TW"
+for x in ${LANGS}; do
+ IUSE+="linguas_${x} "
+done
+
+RDEPEND="
+ dev-python/pygobject:3[${PYTHON_USEDEP}]
+ dev-python/numpy[${PYTHON_USEDEP}]
+ >=dev-python/pycairo-1.4[${PYTHON_USEDEP}]
+ || (
+ dev-python/protobuf-python[${PYTHON_USEDEP}]
+ dev-libs/protobuf[python,${PYTHON_USEDEP}]
+ )
+ >=dev-libs/json-c-0.11:=
+ media-libs/lcms:2
+ >=media-libs/libmypaint-1.3.0
+ media-libs/libpng:0=
+ gnome-base/librsvg
+ ${PYTHON_DEPS}
+"
+DEPEND="${RDEPEND}
+ dev-lang/swig
+ virtual/pkgconfig"
+
+REQUIRED_USE=${PYTHON_REQUIRED_USE}
+
+pkg_setup() {
+ python-single-r1_pkg_setup
+}
+
+src_prepare() {
+ default
+
+ # multilib support
+ sed -i -e "s:lib\/${PN}:$(get_libdir)\/${PN}:" \
+ SConstruct SConscript || die
+}
+
+src_compile() {
+ #workaround scons bug with locales. Bug #352700
+ export LANG="en_US.UTF-8"
+ tc-export CC CXX
+ escons
+}
+
+src_install () {
+ escons prefix="${D}/usr" install
+ newicon pixmaps/${PN}_logo.png ${PN}.png
+ for x in ${LANGS}; do
+ if ! has ${x} ${LINGUAS}; then
+ rm -rf "${ED}"/usr/share/locale/${x} || die
+ fi
+ done
+
+ python_optimize "${D}"usr/share/${PN}
+ # not used and broken
+ rm -r "${ED}"/usr/{include/,lib/libmypaint.a,lib/pkgconfig/} || die
+ # already provided by system-libmypaint
+ rm "${ED}"/usr/share/locale/*/LC_MESSAGES/libmypaint* || die
+}
+
+pkg_preinst() {
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ fdo-mime_desktop_database_update
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ fdo-mime_desktop_database_update
+}
diff --git a/media-gfx/nip2/Manifest b/media-gfx/nip2/Manifest
new file mode 100644
index 000000000000..8ddc66e2a692
--- /dev/null
+++ b/media-gfx/nip2/Manifest
@@ -0,0 +1,5 @@
+DIST nip2-7.38.1.tar.gz 9507197 SHA256 bc93fdb12b1415b9df863b932ab5fb7dd10e09622f954ac667174764d572d0ed SHA512 e5164a73a468d3aa90ef4c15d77243a285a8941393f5c3766fe83fcc4d518440ce4ac357acb75699e4877f7b47dc2c3e9097f67ed4080617af0a99e28721192f WHIRLPOOL 55865d7af8347e08efa9744d54514626d6d7d48c58e4fc45bc4bf182cde7f0ecd08882ff19c564b324ad4ec0dababfdc61292e2186d91c5d4da3658de568c392
+EBUILD nip2-7.38.1.ebuild 1843 SHA256 026c710095b811768a45837aac49e3d90f1a417e743155588c07f5673acf1b74 SHA512 b866a763ee1013d3a544b8c61a9b60433822bcbdb3e4be535ab4ac4537dc49adc90fcf1bcd139ff21b77c4c17905ebf15f7d81e3f5ede7224bcd43a9eeb6960b WHIRLPOOL 82c2e9884792d10b02d7e3bcdfadbd7291caabe586c39c40ce2c0974e7f97aa659ca681946bf2e392a2d1110ea6dc3ab3ee9b80e86277b9acc53faefbedcaf4a
+MISC ChangeLog 3224 SHA256 166f5ad65b27f824113613d1e5a3375112f35e6767fdd403609efcc30b707e88 SHA512 e27a2c194957855c50268a064e76f94bafe023602d6a72678fb7e0d83b692efaf849f951e24040efc66189aeb22b2a02f9110fe61efdad2dcbc3437a9bda5498 WHIRLPOOL cb1bbd8f706a852352dc7c19a33130899b486f3dd1c4cd7e14bb4d5949c39b45c1f89518ad797500755836f12fa1f64d5f4b4e9f9833c48dc954e28123da377c
+MISC ChangeLog-2015 6456 SHA256 a49fb86ea0458be43bb42954ba06eedc09adb0efe405808040957475b680cc8d SHA512 d7e00b881ac8c9636e0226a1f12ba89d1673604f4b177c83d6e87d2a3e459f2d2a51e33673b273d6db928f14297ce16899bb5b747f706dee1873ff769ebc7e05 WHIRLPOOL 713fd899b19d305cf4db71de373c1493cbd578fedf6712136aac735a290134158a904952b61254fa0db0b10358ddeddfc68f456140e7c577870581a74f0f1537
+MISC metadata.xml 424 SHA256 05062a8d055af575155178f9f246bf77b2cc229e949f68b786f8f8043a6eaab4 SHA512 660f5437b6a0b7f3ab377d572b80bf3fc849fe663333f283c3b2dc36dc5d655fb528b32610831b1806ae391c7c2e0f48ae66d5f8c32e5e87e977aa3da261ddc3 WHIRLPOOL cdb9b90d713bd42bd33d6b3996f7d969ab7e16888188c990d53d191893f613794875670c9d4d4f5797b3758c3382f84984fab2a75aded70b74e686746ace8659
diff --git a/media-gfx/nip2/metadata.xml b/media-gfx/nip2/metadata.xml
new file mode 100644
index 000000000000..1bc39a2f5412
--- /dev/null
+++ b/media-gfx/nip2/metadata.xml
@@ -0,0 +1,14 @@
+<?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>
+ <use>
+ <flag name="goffice">use <pkg>x11-libs/goffice</pkg> to show plots</flag>
+ </use>
+ <upstream>
+ <remote-id type="sourceforge">vips</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/media-gfx/nip2/nip2-7.38.1.ebuild b/media-gfx/nip2/nip2-7.38.1.ebuild
new file mode 100644
index 000000000000..1fbed7e2f585
--- /dev/null
+++ b/media-gfx/nip2/nip2-7.38.1.ebuild
@@ -0,0 +1,77 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit fdo-mime gnome2-utils versionator
+
+MY_MAJ_VER=$(get_version_component_range 1-2)
+DESCRIPTION="VIPS Image Processing Graphical User Interface"
+SRC_URI="http://www.vips.ecs.soton.ac.uk/supported/${MY_MAJ_VER}/${P}.tar.gz"
+HOMEPAGE="http://vips.sourceforge.net"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="debug fftw graphviz goffice gsl test"
+
+RDEPEND=">=dev-libs/glib-2.14:2
+ dev-libs/libxml2
+ x11-misc/xdg-utils
+ =media-libs/vips-${MY_MAJ_VER}*[fftw?]
+ >=x11-libs/gtk+-2.24:2
+ goffice? ( x11-libs/goffice:0.8 )
+ graphviz? ( <media-gfx/graphviz-2.30 )
+ gsl? ( sci-libs/gsl )
+ fftw? ( sci-libs/fftw:3.0 )"
+DEPEND="${RDEPEND}
+ sys-devel/bison
+ sys-devel/flex
+ test? ( media-libs/vips[jpeg,lcms,tiff] )"
+
+# lots of tests use fftw transforms
+REQUIRED_USE="test? ( fftw )"
+
+src_configure() {
+ econf \
+ --disable-update-desktop \
+ $(use_enable debug) \
+ $(use_with goffice libgoffice) \
+ $(use_with graphviz libgvc) \
+ $(use_with gsl) \
+ $(use_with fftw fftw3)
+}
+
+src_test() {
+ if ! use gsl; then
+ ewarn "Some tests require USE=gsl. Disabling test_math.ws tests."
+ rm test/workspaces/test_math.ws
+ fi
+ emake check
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+ dodoc AUTHORS ChangeLog THANKS
+ insinto /usr/share/icons/hicolor/128x128/apps
+ newins share/nip2/data/vips-128.png nip2.png
+
+ mv "${D}"/usr/share/doc/${PN}/* "${D}"/usr/share/doc/${PF} || die
+ rmdir "${D}"/usr/share/doc/${PN}/ || die
+ dosym ../${PF}/html /usr/share/doc/${PN}/html
+}
+
+pkg_preinst() {
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ fdo-mime_desktop_database_update
+ fdo-mime_mime_database_update
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ fdo-mime_desktop_database_update
+ fdo-mime_mime_database_update
+ gnome2_icon_cache_update
+}
diff --git a/media-gfx/nomacs/Manifest b/media-gfx/nomacs/Manifest
new file mode 100644
index 000000000000..c36f69b4e2f9
--- /dev/null
+++ b/media-gfx/nomacs/Manifest
@@ -0,0 +1,7 @@
+AUX nomacs-3.6.1-batch-resize.patch 757 SHA256 bc9c05f18f9409836b612dd15abc9544aacad570288f0b74cec9a2e1221127b0 SHA512 781921c31fdd7714e654c7112b4b866c76a2140f5b7e2e9ec2859a06281e01d00912813bae8b6b44b2cc263c27da03ee4610cde692a184125d82747c8c8cf9df WHIRLPOOL cce3e94b924edfa3ebdad641fb1e82e2408224f93d9331b27c54de464dd934fbdd867e1ba7e677201d2823c6849a59330c40b88f7f8e2eb848517b6645851af5
+DIST nomacs-3.6.1.tar.gz 28604636 SHA256 09b289cac51a5fdccc02aa4a60405bbbd4b5bfdb6b2a52ca5b0cb3b0f7a87068 SHA512 cfbda2be5ed015a5ea39cc3c3c9273e3164bb67f0c5fd4fac0e3c607075cf67cfea2311b21420585363a841d65a53c03e100af57c209786243c2c3dcaba11f8e WHIRLPOOL 34125377dee0977ed6e48008d4d8e3ff461c39ab72e89c4dc3c3e8dd0eb0544da91db5a1cd1b38b1bad119a539a60664fd91cea90b21140042db06601d00604b
+EBUILD nomacs-3.6.1-r1.ebuild 1595 SHA256 35a45f47587100b46ef3aa8aa1ad0287b15e771c6e40aa0451e128a1044b5d48 SHA512 af29a193f59c4d70b6ff4721b3fc7143bea2c575dc9029e74db9642a057200a11e3b447945512f1cf5c429cc5137a6d709e40a7b3b36f77db387c3e31e106c94 WHIRLPOOL 96b2de7e6a0954cbe36e0c709b35ccb5266236b5d0a467473cd8c70eadcc029ff22e2b9da79345672f4418c9c55bbc2580e24c412d6a1b69db1553169f27e219
+EBUILD nomacs-3.6.1.ebuild 1522 SHA256 fe8c7b073983e5bbb0b62559950c61467d37d7129da161e0ccaed39a092e9bd6 SHA512 96629b2d21f52889069a722d812f09abefa3dbcc2bbaca2d4327c3ceb4c5f5c3ed311b3071b209c9d421059d504fb8888fd62a900d364b5b9e8c2d0cad5ded31 WHIRLPOOL 4183954130abeac3555fa6f705d5ebdecec09a05c0bfe1e938e2151919d9f9118395c7d9a57b72a06ccec7fc6abb740be480b24d481237f69e38502069d26605
+MISC ChangeLog 4669 SHA256 653a87667f699c30aff809dbaf83b5c6433f81039a8c196e20acb87871a8252d SHA512 95973bf5fc2e34e6026403bd5e302241f61627d23015ccd7c7fa3ecb9f05b143604dfb277fa662dc7ba7fc2b783292eced13f9c282c29825b747e28fbde63c03 WHIRLPOOL 658b09fa102b5bcf7ed878623e52c21d302133ebb8d4ff07cdfb4ee7f50a94ba9dd5a9d6d19b240d3856b2ec1bb94754410badc0891be7f8f3b1557a30dd8add
+MISC ChangeLog-2015 1867 SHA256 981b87d0d8a15c3be8899cad47bb0e9662dcd256a237d15ed0d83aa49be16f3e SHA512 318c7d79f712236455ed7776d505ce6e1db9bdef9888804040af0c8e4956dcc20bbb7d0a3ca4bbd57229d7e3c7f9e15e24f3cd04492f6541a9a7ad7a9e8dcd85 WHIRLPOOL 304b7bd01cd0f4e30c0eac91ca07fe814391fba3644707e05dc9e0102f5bf00fa935ec88092ac13804087536641c23df9035536d0c2fc499163a642c025ca002
+MISC metadata.xml 588 SHA256 7e7c9bac4f5fe31b0c3ee476f6fa9dc2c9d7766276c3e82ece31f1b049bc5d83 SHA512 f681a8f2f1ec2c2902d34829245790edd014eca1829479f2a47b9179f370d3c3d3c562c32dae1918a7616c8f75c7d94b525beec410ad39704b25fd502cefb5fb WHIRLPOOL ba5e936ee31f11b3521f22f989bd26b2e4ff47bce2181d0793e6816c93a432a4350aa7da1819364a9c5949bd0cd9c5184eb3165a8a68bffb940e67d662a809f8
diff --git a/media-gfx/nomacs/files/nomacs-3.6.1-batch-resize.patch b/media-gfx/nomacs/files/nomacs-3.6.1-batch-resize.patch
new file mode 100644
index 000000000000..b2dd078d0e94
--- /dev/null
+++ b/media-gfx/nomacs/files/nomacs-3.6.1-batch-resize.patch
@@ -0,0 +1,23 @@
+From 11cbd66ca66ea9d97d72546a92fe2b487e62481b Mon Sep 17 00:00:00 2001
+From: diemmarkus <diemmarkus@gmail.com>
+Date: Wed, 17 May 2017 10:08:05 +0200
+Subject: [PATCH] fixes #118 batch resizing - used to only work if rotate was
+ active
+
+---
+ ImageLounge/src/DkCore/DkProcess.cpp | 2 --
+ 1 file changed, 2 deletions(-)
+
+diff --git a/ImageLounge/src/DkCore/DkProcess.cpp b/ImageLounge/src/DkCore/DkProcess.cpp
+index a47b4194..d0dfd97f 100644
+--- a/src/DkCore/DkProcess.cpp
++++ b/src/DkCore/DkProcess.cpp
+@@ -255,8 +255,6 @@ bool DkBatchTransform::compute(QSharedPointer<DkImageContainer> container, QStri
+ rotationMatrix.rotate((double)mAngle);
+ tmpImg = tmpImg.transformed(rotationMatrix);
+ }
+- else
+- tmpImg = img;
+
+ // logs
+ if (!tmpImg.isNull()) {
diff --git a/media-gfx/nomacs/metadata.xml b/media-gfx/nomacs/metadata.xml
new file mode 100644
index 000000000000..9f062f24a874
--- /dev/null
+++ b/media-gfx/nomacs/metadata.xml
@@ -0,0 +1,17 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>qt@gentoo.org</email>
+ <name>Gentoo Qt Project</name>
+ </maintainer>
+ <upstream>
+ <bugs-to>https://nomacs.org/redmine/projects/nomacs</bugs-to>
+ <remote-id type="github">nomacs/nomacs</remote-id>
+ <remote-id type="sourceforge">nomacs</remote-id>
+ </upstream>
+ <use>
+ <flag name="opencv">Build support for <pkg>media-libs/opencv</pkg></flag>
+ <flag name="zip">Build support for zip archives</flag>
+ </use>
+</pkgmetadata>
diff --git a/media-gfx/nomacs/nomacs-3.6.1-r1.ebuild b/media-gfx/nomacs/nomacs-3.6.1-r1.ebuild
new file mode 100644
index 000000000000..6ae732365e60
--- /dev/null
+++ b/media-gfx/nomacs/nomacs-3.6.1-r1.ebuild
@@ -0,0 +1,78 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit cmake-utils xdg-utils
+
+DESCRIPTION="Qt-based image viewer"
+HOMEPAGE="https://nomacs.org/"
+SRC_URI="https://github.com/${PN}/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-3+"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~amd64-linux"
+IUSE="+jpeg opencv raw tiff zip"
+
+REQUIRED_USE="
+ raw? ( opencv )
+ tiff? ( opencv )
+"
+
+RDEPEND="
+ dev-qt/qtconcurrent:5
+ dev-qt/qtcore:5
+ dev-qt/qtgui:5[jpeg?]
+ dev-qt/qtnetwork:5
+ dev-qt/qtprintsupport:5
+ dev-qt/qtsvg:5
+ dev-qt/qtwidgets:5
+ >=media-gfx/exiv2-0.25:=
+ opencv? ( media-libs/opencv:=[-qt4(-)] )
+ raw? ( >=media-libs/libraw-0.14:= )
+ tiff? (
+ dev-qt/qtimageformats:5
+ media-libs/tiff:0
+ )
+ zip? ( >=dev-libs/quazip-0.7.2[qt5] )
+"
+DEPEND="${RDEPEND}
+ dev-qt/linguist-tools:5
+ virtual/pkgconfig
+"
+
+S="${WORKDIR}/${P}/ImageLounge"
+
+PATCHES=( "${FILESDIR}/${P}-batch-resize.patch" )
+
+src_prepare() {
+ default
+
+ # fix build with quazip-0.7.2 - bug 598354
+ sed -i -e "s/find_package(QuaZIP/find_package(QuaZip5/" cmake/Unix.cmake || die
+ sed -e "s/include <quazip/&5/" \
+ -i src/DkCore/DkImageLoader.cpp \
+ -i src/DkCore/DkImageContainer.cpp \
+ -i src/DkCore/DkBasicLoader.cpp \
+ -i src/DkGui/DkDialog.cpp || die
+
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DENABLE_OPENCV=$(usex opencv)
+ -DENABLE_RAW=$(usex raw)
+ -DENABLE_TIFF=$(usex tiff)
+ -DENABLE_QUAZIP=$(usex zip)
+ -DUSE_SYSTEM_QUAZIP=ON
+ )
+ cmake-utils_src_configure
+}
+
+pkg_postinst() {
+ xdg_desktop_database_update
+}
+
+pkg_postrm() {
+ xdg_desktop_database_update
+}
diff --git a/media-gfx/nomacs/nomacs-3.6.1.ebuild b/media-gfx/nomacs/nomacs-3.6.1.ebuild
new file mode 100644
index 000000000000..d110997b2f37
--- /dev/null
+++ b/media-gfx/nomacs/nomacs-3.6.1.ebuild
@@ -0,0 +1,73 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit cmake-utils fdo-mime
+
+DESCRIPTION="Qt-based image viewer"
+HOMEPAGE="https://nomacs.org/"
+SRC_URI="https://github.com/${PN}/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-3+"
+SLOT="0"
+KEYWORDS="amd64 x86 ~amd64-linux"
+IUSE="+jpeg opencv raw tiff zip"
+
+REQUIRED_USE="
+ raw? ( opencv )
+ tiff? ( opencv )
+"
+
+RDEPEND="
+ dev-qt/qtconcurrent:5
+ dev-qt/qtcore:5
+ dev-qt/qtgui:5[jpeg?]
+ dev-qt/qtnetwork:5
+ dev-qt/qtprintsupport:5
+ dev-qt/qtsvg:5
+ dev-qt/qtwidgets:5
+ >=media-gfx/exiv2-0.25:=
+ opencv? ( media-libs/opencv:=[-qt4(-)] )
+ raw? ( >=media-libs/libraw-0.14:= )
+ tiff? ( media-libs/tiff:0 )
+ zip? ( >=dev-libs/quazip-0.7.2[qt5] )
+"
+DEPEND="${RDEPEND}
+ dev-qt/linguist-tools:5
+ virtual/pkgconfig
+"
+
+S="${WORKDIR}/${P}/ImageLounge"
+
+src_prepare() {
+ default
+
+ # fix build with quazip-0.7.2 - bug 598354
+ sed -i -e "s/find_package(QuaZIP/find_package(QuaZip5/" cmake/Unix.cmake || die
+ sed -e "s/include <quazip/&5/" \
+ -i src/DkCore/DkImageLoader.cpp \
+ -i src/DkCore/DkImageContainer.cpp \
+ -i src/DkCore/DkBasicLoader.cpp \
+ -i src/DkGui/DkDialog.cpp || die
+
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DENABLE_OPENCV=$(usex opencv)
+ -DENABLE_RAW=$(usex raw)
+ -DENABLE_TIFF=$(usex tiff)
+ -DENABLE_QUAZIP=$(usex zip)
+ -DUSE_SYSTEM_QUAZIP=ON
+ )
+ cmake-utils_src_configure
+}
+
+pkg_postinst() {
+ fdo-mime_desktop_database_update
+}
+
+pkg_postrm() {
+ fdo-mime_desktop_database_update
+}
diff --git a/media-gfx/nvidia-cg-toolkit/Manifest b/media-gfx/nvidia-cg-toolkit/Manifest
new file mode 100644
index 000000000000..3b5873a5dec2
--- /dev/null
+++ b/media-gfx/nvidia-cg-toolkit/Manifest
@@ -0,0 +1,11 @@
+AUX 80cgc-opt 221 SHA256 eb93be46a61060b66f35ba2596d3826e2cf51194e05cb716885b5f315a068a8c SHA512 9036933bac477e42c2d0092ea414e061865a9f2498345fe5a824df80194ba73f7ac2fb5a4a8aca827ec99a3f31e4ae772fa31eeab4b3b390189178d523289cda WHIRLPOOL 6c9cf823880971fc9bee4dd54cbd9eddfdaaf18d3bca28c3f45dc4f2b097b8ae61f02dff3d4207200ccf8b978d50412c00f7a13c68f7e4c35a42435458604fea
+AUX 80cgc-opt-2 360 SHA256 06f20d295f2885f8d8690b87ba015eabc4001de435aa2f950dcc43c7dd4cdcfe SHA512 dd118ee74355c0928893f2085b282120e8508bc438cfa7b875c923b4dc2fe2cd33059f80ac833d8e3aceb86579d7f5cad4b54319910d19d4efb2f971c1707c01 WHIRLPOOL 01977c09b05ed883657a4b5a49576b56a6694876513a293903db52c7ae03bcc18d95b725fd80833661b4e7e8c8b279013e996c961821bf030923fecbb2f4ce3b
+AUX nvidia-cg-toolkit-gl.pc.in 278 SHA256 b800521305775a76c77e63da7812e8bbce82c0896de160ef15255e5e9932c47e SHA512 02f6cee32954142784ed178b4ef39156f66ee86f4c2e24bf75a9439a35542aa7a115103d6f4be007efa26611a9a95340fbf27acf6992f35491a72e11276ddc3c WHIRLPOOL 416edfd1e48150eaf075e3b783a13f2ef904d72965c7286dc144b90cddcdf69aa777c88a5c379debb8e974537779195d29a3c1d5654cd2a2bc6b3ccbf95be1e9
+AUX nvidia-cg-toolkit.pc.in 242 SHA256 0fc7856647d74b07e5b3a5f964b5ba871bbdbb75eeec4fa6c58c0089fc79d418 SHA512 601505a228eb4f70813d3ab6346a51c1552751278549c81b7721273dd58c053639cad49cfe82982455b1399d8b494f8351a0a479efbdb33171d28c3dd0b69073 WHIRLPOOL bde45d5d3bcd93420b1f625cf4461908b6df6c47f6df683313ec97d406ca91316394e446bb18f404c5b5be4c81d2205b89c0211bc811875f15d08a20a87ce219
+DIST Cg-3.1_April2012_x86.tgz 23332348 SHA256 cef3591e436f528852db0e8c145d3842f920e0c89bcfb219c466797cb7b18879 SHA512 7b2addad157e151eb42b320aea31ccddfd53ec5640cb97bc86a3d461c1b08a2dff280bfc3f7859d124c311e1710e39d40405c387e5724ebc82d95303b250837a WHIRLPOOL f15f3e8f65310a47661a0473cdf7dc1ef195aff8422ad8a0ec26a2302a52d73f9f22922180482cb2724197037eb619cb9389f9732718a08dca8889d2be5dff1d
+DIST Cg-3.1_April2012_x86_64.tgz 24829131 SHA256 e8ff01e6cc38d1b3fd56a083f5860737dbd2f319a39037528fb1a74a89ae9878 SHA512 591b51195193e7e3bbb9f1c2579336d24a179b0a88b955a01f4661bda55543fbccd73cac53033912f2eea8a1068e4c1394c6d286f195963cfb33a0d8b4428e27 WHIRLPOOL c4295473b82d67f6cf370e725a36189fbdbc3bfd02369e4afc0f510b6ab06a160a7de5e47931689dccc5ff52f95f0e10ebd03b32c8c30881d6d2f02183cad2a9
+EBUILD nvidia-cg-toolkit-3.1.0013-r3.ebuild 3270 SHA256 97ddcbad693a0c497c4a67b0ed9707197694ee9134dda6f070de9282dd3f233d SHA512 bda4e6a0e4793dae86a35d046760f0763ef5f92a962e6ab9af3a091f951b783a1c082746aa8c346f3cd31a43fdfa7cf44acd8b665cf23fd8699f088b4c4356f3 WHIRLPOOL 42c2d092b61ae5a94776186d8e1f429c948405847b4e4807bef6a0c337dcdc83be3aa441854a41a4f4c501f68670ec286bb31aa9b57b0e8857d0a12abd777b7d
+EBUILD nvidia-cg-toolkit-3.1.0013-r5.ebuild 3182 SHA256 7a493863a49a9fbdeba5cfd0ed721b20d3442f2d3e342bcaf2b0cc28514100be SHA512 2ba7c0789b25e948f81e125f49e314785361362c3d25a587acf70a99e4350cb355055f8fd7c29dc72a3f5306ba42cc9740dd53b10dd1a423b8ab686764a697bd WHIRLPOOL 9e08154ed612b2994e2a2c6c9a41e0f9ea2ccd3261567df2e34e9fdca2d97ea98f37478a0a73a445c707fa1b117d6021057a9b77505256ce807b5212ab99e21f
+MISC ChangeLog 3662 SHA256 5e0c5ea14f0f694f18fb3cc5c95aba0166fefa60eaebcbd7fcc016e3de7fa019 SHA512 9172803743deac060a8d48229ea106344b39fb0057de9fe1837a06f80a4eebdc5589483942888d83269763ea800c38f099ab43a3aac160970c4ccbf5198905d3 WHIRLPOOL 1df5d71263da84a4663d82a05310507f7601d3e3cfd755370a298f2f1510ec335fbe9632312e891493fe559fe4d3eb28a6f8f14be96786a5c3c42a01436dd004
+MISC ChangeLog-2015 11605 SHA256 cac9a773fa8da495164a68d894446f5038f7da2952fd125a3f9f71bf901a229a SHA512 a7528c6687c966017364687959ecbe9c7ffc0b8b9f8be597c46ac01e2206ce926bbb5970cc27788562842b17ac51d3329cd5e2cfdee14551f4494fe4dcc21586 WHIRLPOOL 8222e7a854bd08e0d993b57fd13b2dfce0e55d5cd4c457bbf0c1fac2e3d983333c838b63a7434062c423b88230320919ab3a23fcece2717b33760572439e0c81
+MISC metadata.xml 652 SHA256 4f2a02df5f559930d1aa1e8407b65c5d34a8bec5345223ea70e973f694957d59 SHA512 cde9ca3c2c16c3a83593c4fbdd1b05f5b79596f42d77df5f20470d7e2cbca2e445fcac254dcc7f31e41938f756d1bd5b314c7aa1a2dc6a7bc19f170a4d7e1656 WHIRLPOOL 95763a07f8a96278bfd3ebdbc2863d8f42e0e419e56dc98ec65c44b3152cd6ab313eb623cba2ed9f87ac5b21c49c504fd658a2b5f87ca280ec5d80094647b31f
diff --git a/media-gfx/nvidia-cg-toolkit/files/80cgc-opt b/media-gfx/nvidia-cg-toolkit/files/80cgc-opt
new file mode 100644
index 000000000000..3da3da2d90f6
--- /dev/null
+++ b/media-gfx/nvidia-cg-toolkit/files/80cgc-opt
@@ -0,0 +1,6 @@
+# Configures the CG Runtime environment for Bourne shell and compatible shells
+CG_COMPILER_EXE=/opt/bin/cgc
+
+# Make sure the helper files are found
+LDPATH="/opt/nvidia-cg-toolkit/lib"
+MANPATH="/opt/nvidia-cg-toolkit/man"
diff --git a/media-gfx/nvidia-cg-toolkit/files/80cgc-opt-2 b/media-gfx/nvidia-cg-toolkit/files/80cgc-opt-2
new file mode 100644
index 000000000000..f68d0bd7c3a7
--- /dev/null
+++ b/media-gfx/nvidia-cg-toolkit/files/80cgc-opt-2
@@ -0,0 +1,9 @@
+# Configures the CG Runtime environment for Bourne shell and compatible shells
+CG_COMPILER_EXE=@GENTOO_PORTAGE_EPREFIX@/opt/bin/cgc
+CG_INC_PATH=@GENTOO_PORTAGE_EPREFIX@/opt/nvidia-cg-toolkit/include
+CG_LIB_PATH="ELDPATH"
+
+PATH="@GENTOO_PORTAGE_EPREFIX@/opt/nvidia-cg-toolkit/bin"
+ROOTPATH="@GENTOO_PORTAGE_EPREFIX@/opt/nvidia-cg-toolkit/bin"
+
+LDPATH="ELDPATH"
diff --git a/media-gfx/nvidia-cg-toolkit/files/nvidia-cg-toolkit-gl.pc.in b/media-gfx/nvidia-cg-toolkit/files/nvidia-cg-toolkit-gl.pc.in
new file mode 100644
index 000000000000..be92a7e4e22b
--- /dev/null
+++ b/media-gfx/nvidia-cg-toolkit/files/nvidia-cg-toolkit-gl.pc.in
@@ -0,0 +1,10 @@
+prefix=@GENTOO_PORTAGE_EPREFIX@/opt/nvidia-cg-toolkit
+libdir=${prefix}/GENTOO_LIBDIR
+includedir=${prefix}/include
+Name: nvidia-cg-toolkit
+Description: DESCRIPTION
+Version: VERSION
+URL: HOMEPAGE
+Libs: -L${libdir} -lCgGL
+Cflags: -I${includedir}/
+Requires: nvidia-cg-toolkitSUFFIX
diff --git a/media-gfx/nvidia-cg-toolkit/files/nvidia-cg-toolkit.pc.in b/media-gfx/nvidia-cg-toolkit/files/nvidia-cg-toolkit.pc.in
new file mode 100644
index 000000000000..43dedbef4bb7
--- /dev/null
+++ b/media-gfx/nvidia-cg-toolkit/files/nvidia-cg-toolkit.pc.in
@@ -0,0 +1,9 @@
+prefix=@GENTOO_PORTAGE_EPREFIX@/opt/nvidia-cg-toolkit
+libdir=${prefix}/GENTOO_LIBDIR
+includedir=${prefix}/include
+Name: nvidia-cg-toolkit
+Description: DESCRIPTION
+Version: VERSION
+URL: HOMEPAGE
+Libs: -L${libdir} -lCg
+Cflags: -I${includedir}/
diff --git a/media-gfx/nvidia-cg-toolkit/metadata.xml b/media-gfx/nvidia-cg-toolkit/metadata.xml
new file mode 100644
index 000000000000..faee03f34c78
--- /dev/null
+++ b/media-gfx/nvidia-cg-toolkit/metadata.xml
@@ -0,0 +1,15 @@
+<?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>
+ <longdescription>
+The Cg Toolkit provides a compiler for the Cg language, runtime libraries for
+use with both leading graphics APIs, runtime libraries for CgFX, example
+applications, and extensive documentation. Supporting over 20 different OpenGL
+and DirectX profile targets, Cg will allow you to incorporate stunning
+interactive effects into your 3D applications.
+</longdescription>
+</pkgmetadata>
diff --git a/media-gfx/nvidia-cg-toolkit/nvidia-cg-toolkit-3.1.0013-r3.ebuild b/media-gfx/nvidia-cg-toolkit/nvidia-cg-toolkit-3.1.0013-r3.ebuild
new file mode 100644
index 000000000000..2966f90aff37
--- /dev/null
+++ b/media-gfx/nvidia-cg-toolkit/nvidia-cg-toolkit-3.1.0013-r3.ebuild
@@ -0,0 +1,146 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+MULTILIB_COMPAT=( abi_x86_{32,64} )
+inherit multilib multilib-minimal prefix versionator
+
+MY_PV="$(get_version_component_range 1-2)"
+MY_DATE="April2012"
+
+DESCRIPTION="NVIDIA's C graphics compiler toolkit"
+HOMEPAGE="http://developer.nvidia.com/cg_toolkit"
+SRC_URI="
+ abi_x86_32? (
+ http://developer.download.nvidia.com/cg/Cg_${MY_PV}/Cg-${MY_PV}_${MY_DATE}_x86.tgz
+ )
+ abi_x86_64? (
+ http://developer.download.nvidia.com/cg/Cg_${MY_PV}/Cg-${MY_PV}_${MY_DATE}_x86_64.tgz
+ )"
+
+LICENSE="NVIDIA-r1"
+SLOT="0"
+KEYWORDS="amd64 x86 ~amd64-linux ~x86-linux"
+IUSE="doc examples"
+
+RESTRICT="strip"
+
+RDEPEND="
+ x11-libs/libICE
+ x11-libs/libSM
+ x11-libs/libX11
+ x11-libs/libXext
+ x11-libs/libXi
+ x11-libs/libXmu
+ x11-libs/libXt
+ media-libs/glu
+ media-libs/mesa
+ media-libs/freeglut
+ amd64? ( abi_x86_32? (
+ >=media-libs/glu-9.0.0-r1[abi_x86_32(-)]
+ >=media-libs/mesa-9.1.6[abi_x86_32(-)]
+ >=media-libs/freeglut-2.8.1[abi_x86_32(-)]
+ >=x11-libs/libICE-1.0.8-r1[abi_x86_32(-)]
+ >=x11-libs/libSM-1.2.1-r1[abi_x86_32(-)]
+ >=x11-libs/libX11-1.6.2[abi_x86_32(-)]
+ >=x11-libs/libXext-1.3.2[abi_x86_32(-)]
+ >=x11-libs/libXi-1.7.2[abi_x86_32(-)]
+ >=x11-libs/libXmu-1.1.1-r1[abi_x86_32(-)]
+ >=x11-libs/libXt-1.1.4[abi_x86_32(-)]
+ ) )
+ x86? ( virtual/libstdc++:3.3 )"
+DEPEND=""
+
+S=${WORKDIR}
+
+DEST=/opt/${PN}
+
+QA_PREBUILT="${DEST}/*"
+
+src_unpack() {
+ multilib_src_unpack() {
+ mkdir -p "${BUILD_DIR}" || die
+ cd "${BUILD_DIR}" || die
+
+ local i
+ for i in ${A}; do
+ if [[ ${i} == *x86_64* && ${ABI} == amd64 ]]; then
+ unpack "${i}"
+ elif [[ ${i} != *x86_64* && ${ABI} != amd64 ]]; then
+ unpack "${i}"
+ fi
+ done
+ }
+
+ multilib_foreach_abi multilib_src_unpack
+}
+
+install_pkgconfig() {
+ # One arg: .pc file
+ insinto /usr/$(get_libdir)/pkgconfig
+ sed \
+ -e "s:GENTOO_LIBDIR:$(get_libdir):g" \
+ -e "s:DESCRIPTION:${DESCRIPTION}:g" \
+ -e "s:VERSION:${PV}:g" \
+ -e "s|HOMEPAGE|${HOMEPAGE}|g" \
+ -e "s:SUFFIX::g" \
+ "${FILESDIR}/${1}.in" > "${T}/${1}" || die
+ eprefixify "${T}/${1}"
+ doins "${T}/${1}"
+}
+
+src_install() {
+ local LDPATH=()
+
+ multilib-minimal_src_install
+}
+
+multilib_src_install() {
+ LDPATH+=( "${EPREFIX}${DEST}/$(get_libdir)" )
+ into ${DEST}
+
+ if [[ ${ABI} == amd64 ]]; then
+ dolib usr/lib64/*
+ else
+ dolib usr/lib/*
+ fi
+ install_pkgconfig nvidia-cg-toolkit.pc
+ install_pkgconfig nvidia-cg-toolkit-gl.pc
+
+ insinto ${DEST}/include
+ doins -r usr/include/Cg
+
+ if multilib_is_native_abi; then
+ dobin usr/bin/{cgc,cgfxcat,cginfo}
+
+ insinto ${DEST}
+ dodoc usr/local/Cg/README
+ if use doc; then
+ dodoc usr/local/Cg/docs/*.{txt,pdf}
+ dohtml -r usr/local/Cg/docs/html/*
+ fi
+ if use examples; then
+ insinto /usr/share/${PN}
+ doins -r usr/local/Cg/examples
+ fi
+ fi
+}
+
+multilib_src_install_all() {
+ local ldpath=${LDPATH[*]}
+
+ sed \
+ -e "s|ELDPATH|${ldpath// /:}|g" \
+ "${FILESDIR}"/80cgc-opt-2 > "${T}"/80cgc-opt || die
+ eprefixify "${T}"/80cgc-opt
+ doenvd "${T}"/80cgc-opt
+}
+
+pkg_postinst() {
+ if [[ ${REPLACING_VERSIONS} < 2.1.0016 ]]; then
+ einfo "Starting with ${CATEGORY}/${PN}-2.1.0016, ${PN} is installed in"
+ einfo "${DEST}. Packages might have to add something like:"
+ einfo " append-cppflags -I${DEST}/include"
+ fi
+}
diff --git a/media-gfx/nvidia-cg-toolkit/nvidia-cg-toolkit-3.1.0013-r5.ebuild b/media-gfx/nvidia-cg-toolkit/nvidia-cg-toolkit-3.1.0013-r5.ebuild
new file mode 100644
index 000000000000..389b9a1b8318
--- /dev/null
+++ b/media-gfx/nvidia-cg-toolkit/nvidia-cg-toolkit-3.1.0013-r5.ebuild
@@ -0,0 +1,139 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+MULTILIB_COMPAT=( abi_x86_{32,64} )
+
+inherit eutils multilib multilib-minimal prefix versionator
+
+MY_PV="$(get_version_component_range 1-2)"
+MY_DATE="April2012"
+
+DESCRIPTION="NVIDIA's C graphics compiler toolkit"
+HOMEPAGE="http://developer.nvidia.com/cg_toolkit"
+SRC_URI="
+ abi_x86_32? (
+ http://developer.download.nvidia.com/cg/Cg_${MY_PV}/Cg-${MY_PV}_${MY_DATE}_x86.tgz
+ )
+ abi_x86_64? (
+ http://developer.download.nvidia.com/cg/Cg_${MY_PV}/Cg-${MY_PV}_${MY_DATE}_x86_64.tgz
+ )"
+
+LICENSE="NVIDIA-r1"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
+IUSE="doc examples multilib"
+
+RESTRICT="strip"
+
+RDEPEND="
+ >=media-libs/glu-9.0.0-r1[${MULTILIB_USEDEP}]
+ >=x11-libs/libICE-1.0.8-r1[${MULTILIB_USEDEP}]
+ >=x11-libs/libSM-1.2.1-r1[${MULTILIB_USEDEP}]
+ >=x11-libs/libX11-1.6.2[${MULTILIB_USEDEP}]
+ >=x11-libs/libXext-1.3.2[${MULTILIB_USEDEP}]
+ >=x11-libs/libXi-1.7.2[${MULTILIB_USEDEP}]
+ >=x11-libs/libXmu-1.1.1-r1[${MULTILIB_USEDEP}]
+ >=x11-libs/libXt-1.1.4[${MULTILIB_USEDEP}]
+ >=virtual/opengl-7.0-r1[${MULTILIB_USEDEP}]
+ amd64? (
+ abi_x86_32? (
+ >=media-libs/freeglut-2.8.1[abi_x86_32(-)]
+ )
+ )"
+DEPEND=""
+
+S=${WORKDIR}
+
+DEST=/opt/${PN}
+
+QA_PREBUILT="${DEST}/.* /usr/share/.*"
+
+src_unpack() {
+ multilib_src_unpack() {
+ mkdir -p "${BUILD_DIR}" || die
+ cd "${BUILD_DIR}" || die
+
+ local i
+ for i in ${A}; do
+ if [[ ${i} == *x86_64* && ${ABI} == amd64 ]]; then
+ unpack "${i}"
+ elif [[ ${i} != *x86_64* && ${ABI} != amd64 ]]; then
+ unpack "${i}"
+ fi
+ done
+ }
+
+ multilib_foreach_abi multilib_src_unpack
+}
+
+install_pkgconfig() {
+ # One arg: .pc file
+ insinto /usr/$(get_libdir)/pkgconfig
+ sed \
+ -e "s:GENTOO_LIBDIR:$(get_libdir):g" \
+ -e "s:DESCRIPTION:${DESCRIPTION}:g" \
+ -e "s:VERSION:${PV}:g" \
+ -e "s|HOMEPAGE|${HOMEPAGE}|g" \
+ -e "s:SUFFIX::g" \
+ "${FILESDIR}/${1}.in" > "${T}/${1}" || die
+ eprefixify "${T}/${1}"
+ doins "${T}/${1}"
+}
+
+src_install() {
+ local LDPATH=()
+
+ multilib-minimal_src_install
+}
+
+multilib_src_install() {
+ LDPATH+=( "${EPREFIX}${DEST}/$(get_libdir)" )
+ into ${DEST}
+
+ if [[ ${ABI} == amd64 ]]; then
+ dolib usr/lib64/*
+ else
+ dolib usr/lib/*
+ fi
+ install_pkgconfig nvidia-cg-toolkit.pc
+ install_pkgconfig nvidia-cg-toolkit-gl.pc
+
+ insinto ${DEST}/include
+ doins -r usr/include/Cg
+
+ if multilib_is_native_abi; then
+ dobin usr/bin/{cgc,cgfxcat,cginfo}
+
+ insinto ${DEST}
+ dodoc usr/local/Cg/README
+ if use doc; then
+ DOCS=( usr/local/Cg/docs/*.{txt,pdf} )
+ HTML_DOCS=( usr/local/Cg/docs/html/. )
+ einstalldocs
+ fi
+ if use examples; then
+ dodir /usr/share/${PN}
+ mv usr/local/Cg/examples "${ED}"/usr/share/${PN}/
+ fi
+ fi
+}
+
+multilib_src_install_all() {
+ local ldpath=${LDPATH[*]}
+
+ sed \
+ -e "s|ELDPATH|${ldpath// /:}|g" \
+ "${FILESDIR}"/80cgc-opt-2 > "${T}"/80cgc-opt || die
+ eprefixify "${T}"/80cgc-opt
+ doenvd "${T}"/80cgc-opt
+}
+
+pkg_postinst() {
+ if [[ ${REPLACING_VERSIONS} < 2.1.0016 ]]; then
+ einfo "Starting with ${CATEGORY}/${PN}-2.1.0016, ${PN} is installed in"
+ einfo "${DEST}. Packages might have to add something like:"
+ einfo " append-cppflags -I${DEST}/include"
+ fi
+}
diff --git a/media-gfx/nvidia-texture-tools/Manifest b/media-gfx/nvidia-texture-tools/Manifest
new file mode 100644
index 000000000000..45775cf768a0
--- /dev/null
+++ b/media-gfx/nvidia-texture-tools/Manifest
@@ -0,0 +1,11 @@
+AUX nvidia-texture-tools-2.0.8-cg.patch 1077 SHA256 7afbd87eae77e851eea580da3abf07aa212b73745f1134f7630b15fbd65e71ba SHA512 9c528320efa9c274c805dd3202e6c44d1391486c5c3d574ce4a6264ee4013a8b215467fbd0a880193048a716365f499b4cb1e935bb6e49d165c674a03d45a387 WHIRLPOOL 441aadf868eb7c27610cd9f69f35481391ca73d462caaceccef3a066de391eb82f0496a0ad836224a0da8b35e9990ddd75dc88e62b999b89874442253dd67e74
+AUX nvidia-texture-tools-2.0.8-clang.patch 684 SHA256 e45fe157ad8fa3b88e666b42937276941aa8d712610f2c2048832836cc08634a SHA512 2e2f7645c8a29e6c158e054d27ccd270a5441d33254a0cc27c12aeb1b8c423374b0900a71ed87ef7bc055597302adfc0eeb27e1c788dca54850df53004c50822 WHIRLPOOL 34e39ea61b9c95da48337684c8b63d29fa4aadb4ca7ae9dba7ac43afe210cd5ec2f481c3c1f29a7ec02d97778919009a108a713b76f2102e47a59c1f1d10ec2d
+AUX nvidia-texture-tools-2.0.8-cpp14.patch 1566 SHA256 114cb51b2689710a4ff6fc80ab726475901f43c8ecefc8a496cadf8b19ce7aa5 SHA512 4234facfc77da76a5d1a394ba48a5d6cfc664b695af1e8fdd90e6bb51de6ce949061a9a30e32aa2d668d21fe41c31caae50dc6efa607a568e2ab1329c41f2ba5 WHIRLPOOL d35ffe6790485f5198cc2b0f49d752cedf2aeaf6e95967de9b018d0d8d2959b3302ff90a4900974f57a6e338d16ee8536bf85feb46afece28923dab1bb5d42e1
+AUX nvidia-texture-tools-2.0.8-gcc-4.7.patch 406 SHA256 9ca032984c84d9b7aafedd2a0e4f5f78a039eaa604d3fe8297dc18b922c5af8f SHA512 1bcd69cbbbd01194bb68bff547b240cb196ef3aa73c73c401fb657c4ae7cd77f995fcd7d39f868d25c49994312b236210306aa577194fe756830a22f03da3e7b WHIRLPOOL 823fe1c4e0c4796093dcf47a1b13de67304bf4d88f06e80b0d8609c195debad4237c37cb66e16e04e1af4dfd056a52738af97133ca8f3c6d47391b9d0978010e
+AUX nvidia-texture-tools-2.0.8-openexr.patch 2558 SHA256 14e8bfe0b05d8457d4490ebb9923ff3fe0ece7c7eeee648c374c4d196ce3f760 SHA512 f17a4f009298c65a06e536a434033db9735b0574c3fc2225bde2c86841c1ad8b35c6d9f5988a98285eb9e7b2e9832e8c9495a1a36e3dcf398101b08d59e87ade WHIRLPOOL fc228debe0890ba80d773ba4be11c26499bd8d1cd2c18041260360722199ceb550b1894d0d555740c88d8b05c222df131cba26ad90ccdcd5812198535a95bf59
+DIST nvidia-texture-tools-2.0.8-1.tar.gz 935227 SHA256 6b3c83500b420ee976f61eeae16e5727e2401e133f543baeac76c66c381eed2e SHA512 8e7ac79daaa10a2b1b64cfc8d6b37b37698e2a46f925cc33cdfd8e4b36705db8836edec6f98c5d6da475d7773f4a5826b5cebc120b7c5a6f9515906e2e4fae9d WHIRLPOOL 5f4e3daeab3f2dd0fc057d2fc56d4bfc888cd86449c1b390380b24a561d1538c010bc93c7990b0f156f03df37933333596796e53174fc4ce818845d74b45d400
+DIST nvidia-texture-tools-2.0.8-patchset-1.tar.xz 9688 SHA256 7cc8ba61cf0290984b31bdbe7b291ff75f2eeab8b07da908dfb5a1b421341516 SHA512 36305036d178c4a9960148d4ae5fd72e866ebc3f193f7c75e720275f4fa11d4a1f9067f42309de739db84678c81cd921f117cfe5b2e6a78785cf35c7e3947c8b WHIRLPOOL 6c530a09a7e46a34dbaa9bdaf5017e58e8f490bc5afef230b3fa83362e30f4bbe3d3454e8b9153af0acfb27e77652b578a2c52da86d34b287b919806233942bc
+EBUILD nvidia-texture-tools-2.0.8-r3.ebuild 1700 SHA256 82662e7a53ebe85268c3158b9c3bc21e633f308765d240f331643f496214f62c SHA512 c3a0453d9d83c673f2b8457bacd9967b0f8fb3694269444276025e77f48ebe9253cc96c17ad14f6b9dd9e264e086f0d6e6f910083115793346d239f2975affbb WHIRLPOOL 5e0ec179e2943d6d9177fb6e9ed0e4298c0e57f3e597948c55d354c579e81b1112ebed98045e8115ea7ce37a9c22f5c3a94c7bbc56d9ce1396ba53a105bf5c8d
+MISC ChangeLog 3379 SHA256 dedbce1566fc93005db0347b2e881d1db3e12d1b7e9ba48d12de588831f29cb9 SHA512 d33691bf524f07d9d139af871eb0dc9d5c9cbe8b20b9cbb69f0219da07be921e6f6757d45945c88e373175af8a1b74e6548d35f64afd2a26d8438af4329b8994 WHIRLPOOL 4dee7115c1e7d496c6ef92e8189bbbf87d12cefdcad42c2e97df9db3bd7ea2d670d620acd0b780d7c1aab0745e9fcff44aa4871fec76012fe4b92fc56b50bc0e
+MISC ChangeLog-2015 3069 SHA256 772bedec45ec6b3088f05317dc527c0c8ec0d955b0bfd3a14d1041a751e6e347 SHA512 f64f2a0c2d8add3d6c8d185bbe51342fe7bb6ebeed6da04b5283454082d6c2666be9a03e99b95dec3e11c81264523ad1ce15f863bf1f6dd8dc094ccc6d79175d WHIRLPOOL c269d2c60d9b2806ee3c4a1e99c52dc4d3c04df8e3531ade075c889190b1f9d4fab279dc1c151c940206034cf8821552e76141595cc14bab584f6b6ca00beaa7
+MISC metadata.xml 432 SHA256 e5edcc628cd8352493bb17ba5dca6f197bbf16718809d21dc0f627295891f21d SHA512 04ae34b58e838041211dfbb73bc88dd3f9d53f8eb6c8f8736e148790d5b3e50498c3e135c8333c37ca996378d0fc50d21b9e5ac8f7664cac868841fd66adbd0c WHIRLPOOL 9769aa0a12ce40097e43de4caa62228cf3e0cbb2b35f21880b5894d40210f5d25cddeb2cf5909877a0e88ceff43881ad327d662281bf801e77f7e9f364d263b6
diff --git a/media-gfx/nvidia-texture-tools/files/nvidia-texture-tools-2.0.8-cg.patch b/media-gfx/nvidia-texture-tools/files/nvidia-texture-tools-2.0.8-cg.patch
new file mode 100644
index 000000000000..79d38f576316
--- /dev/null
+++ b/media-gfx/nvidia-texture-tools/files/nvidia-texture-tools-2.0.8-cg.patch
@@ -0,0 +1,39 @@
+From: hasufell <hasufell@gentoo.org>
+Date: Thu May 3 20:06:31 UTC 2012
+
+fix compilation for cg useflag
+
+--- a/cmake/FindCg.cmake
++++ b/cmake/FindCg.cmake
+@@ -86,6 +86,7 @@
+ FIND_PROGRAM( CG_COMPILER cgc
+ /usr/bin
+ /usr/local/bin
++ /opt/nvidia-cg-toolkit/bin
+ DOC "The Cg Compiler"
+ )
+ GET_FILENAME_COMPONENT(CG_COMPILER_DIR "${CG_COMPILER}" PATH)
+@@ -93,6 +94,7 @@
+ FIND_PATH( CG_INCLUDE_PATH Cg/cg.h
+ /usr/include
+ /usr/local/include
++ /opt/nvidia-cg-toolkit/include
+ ${CG_COMPILER_SUPER_DIR}/include
+ DOC "The directory where Cg/cg.h resides"
+ )
+@@ -102,6 +104,7 @@
+ /usr/lib
+ /usr/local/lib64
+ /usr/local/lib
++ /opt/nvidia-cg-toolkit/lib
+ ${CG_COMPILER_SUPER_DIR}/lib64
+ ${CG_COMPILER_SUPER_DIR}/lib
+ DOC "The Cg runtime library"
+@@ -113,6 +116,7 @@
+ /usr/lib
+ /usr/local/lib64
+ /usr/local/lib
++ /opt/nvidia-cg-toolkit/lib
+ ${CG_COMPILER_SUPER_DIR}/lib64
+ ${CG_COMPILER_SUPER_DIR}/lib
+ DOC "The Cg runtime library"
diff --git a/media-gfx/nvidia-texture-tools/files/nvidia-texture-tools-2.0.8-clang.patch b/media-gfx/nvidia-texture-tools/files/nvidia-texture-tools-2.0.8-clang.patch
new file mode 100644
index 000000000000..373c87e4171b
--- /dev/null
+++ b/media-gfx/nvidia-texture-tools/files/nvidia-texture-tools-2.0.8-clang.patch
@@ -0,0 +1,18 @@
+Index: src/src/nvtt/squish/CMakeLists.txt
+===================================================================
+--- src/src/nvtt/squish/CMakeLists.txt (revision 13060)
++++ src/src/nvtt/squish/CMakeLists.txt (working copy)
+@@ -22,7 +22,11 @@
+
+ ADD_LIBRARY(squish STATIC ${SQUISH_SRCS})
+
+-IF(CMAKE_COMPILER_IS_GNUCXX)
++IF("${CMAKE_CXX_COMPILER}" MATCHES "clang(\\+\\+)?$" OR "${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
++ SET(CMAKE_COMPILER_IS_CLANGXX 1)
++ENDIF()
++
++IF(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_COMPILER_IS_CLANGXX)
+ SET_TARGET_PROPERTIES(squish PROPERTIES COMPILE_FLAGS -fPIC)
+-ENDIF(CMAKE_COMPILER_IS_GNUCXX)
++ENDIF(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_COMPILER_IS_CLANGXX)
+
diff --git a/media-gfx/nvidia-texture-tools/files/nvidia-texture-tools-2.0.8-cpp14.patch b/media-gfx/nvidia-texture-tools/files/nvidia-texture-tools-2.0.8-cpp14.patch
new file mode 100644
index 000000000000..3130d2c60bb1
--- /dev/null
+++ b/media-gfx/nvidia-texture-tools/files/nvidia-texture-tools-2.0.8-cpp14.patch
@@ -0,0 +1,58 @@
+This patch fixes cpp14 compilation errors.
+Gentoo-bug: 594938
+
+--- a/src/nvimage/ImageIO.cpp
++++ b/src/nvimage/ImageIO.cpp
+@@ -135,7 +135,7 @@
+ StdInputStream stream(fileName);
+
+ if (stream.isError()) {
+- return false;
++ return NULL;
+ }
+
+ return loadFloat(fileName, stream);
+@@ -233,7 +233,7 @@
+ case TGA_TYPE_INDEXED:
+ if( tga.colormap_type!=1 || tga.colormap_size!=24 || tga.colormap_length>256 ) {
+ nvDebug( "*** ImageIO::loadTGA: Error, only 24bit paletted images are supported.\n" );
+- return false;
++ return NULL;
+ }
+ pal = true;
+ break;
+@@ -254,7 +254,7 @@
+
+ default:
+ nvDebug( "*** ImageIO::loadTGA: Error, unsupported image type.\n" );
+- return false;
++ return NULL;
+ }
+
+ const uint pixel_size = (tga.pixel_size/8);
+@@ -621,7 +621,7 @@
+ png_ptr = png_create_read_struct(PNG_LIBPNG_VER_STRING, NULL, NULL, NULL);
+ if (png_ptr == NULL) {
+ // nvDebug( "*** LoadPNG: Error allocating read buffer in file '%s'.\n", name );
+- return false;
++ return NULL;
+ }
+
+ // Allocate/initialize a memory block for the image information
+@@ -629,14 +629,14 @@
+ if (info_ptr == NULL) {
+ png_destroy_read_struct(&png_ptr, NULL, NULL);
+ // nvDebug( "*** LoadPNG: Error allocating image information for '%s'.\n", name );
+- return false;
++ return NULL;
+ }
+
+ // Set up the error handling
+ if (setjmp(png_jmpbuf(png_ptr))) {
+ png_destroy_read_struct(&png_ptr, &info_ptr, NULL);
+ // nvDebug( "*** LoadPNG: Error reading png file '%s'.\n", name );
+- return false;
++ return NULL;
+ }
+
+ // Set up the I/O functions.
diff --git a/media-gfx/nvidia-texture-tools/files/nvidia-texture-tools-2.0.8-gcc-4.7.patch b/media-gfx/nvidia-texture-tools/files/nvidia-texture-tools-2.0.8-gcc-4.7.patch
new file mode 100644
index 000000000000..aaba26227411
--- /dev/null
+++ b/media-gfx/nvidia-texture-tools/files/nvidia-texture-tools-2.0.8-gcc-4.7.patch
@@ -0,0 +1,16 @@
+From: Julian Ospald <hasufell@gentoo.org>
+Date: Fri Jun 29 08:15:12 UTC 2012
+Subject: fix compilation on gcc 4.7
+
+https://bugs.gentoo.org/show_bug.cgi?id=423965
+
+--- a/src/nvcore/nvcore.h
++++ b/src/nvcore/nvcore.h
+@@ -158,6 +158,7 @@
+ #elif NV_CC_GNUC
+ # if NV_OS_LINUX
+ # include "DefsGnucLinux.h"
++# include <unistd.h> // gcc 4.7
+ # elif NV_OS_DARWIN
+ # include "DefsGnucDarwin.h"
+ # elif NV_OS_MINGW
diff --git a/media-gfx/nvidia-texture-tools/files/nvidia-texture-tools-2.0.8-openexr.patch b/media-gfx/nvidia-texture-tools/files/nvidia-texture-tools-2.0.8-openexr.patch
new file mode 100644
index 000000000000..b49abf9e5c32
--- /dev/null
+++ b/media-gfx/nvidia-texture-tools/files/nvidia-texture-tools-2.0.8-openexr.patch
@@ -0,0 +1,93 @@
+From: Julian Ospald <hasufell@gentoo.org>
+Date: Wed Mar 20 22:10:22 UTC 2013
+Subject: add pkgconfig checks
+
+https://bugs.gentoo.org/show_bug.cgi?id=462494
+
+--- nvidia-texture-tools/cmake/FindOpenEXR.cmake
++++ nvidia-texture-tools/cmake/FindOpenEXR.cmake
+@@ -7,11 +7,15 @@
+ # OPENEXR_LIBRARIES = libraries that are needed to use OpenEXR.
+ #
+
+-INCLUDE(FindZLIB)
++IF(UNIX)
++ INCLUDE(FindPkgConfig)
++ pkg_check_modules(_PKG_OPENEXR OpenEXR)
++ENDIF(UNIX)
+
++find_package(ZLIB REQUIRED)
+
+-IF(ZLIB_FOUND)
+-
++IF(NOT _PKG_OPENEXR_FOUND)
++
+ SET(LIBRARY_PATHS
+ /usr/lib
+ /usr/local/lib
+@@ -46,10 +50,20 @@
+ NAMES IlmThread
+ PATHS ${LIBRARY_PATHS})
+
+-ENDIF(ZLIB_FOUND)
++ENDIF(NOT _PKG_OPENEXR_FOUND)
+
+ #MESSAGE(STATUS ${OPENEXR_IMATH_LIBRARY} ${OPENEXR_ILMIMF_LIBRARY} ${OPENEXR_IEX_LIBRARY} ${OPENEXR_HALF_LIBRARY} ${OPENEXR_ILMTHREAD_LIBRARY} ${ZLIB_LIBRARY})
+
++IF(_PKG_OPENEXR_FOUND)
++ SET(OPENEXR_FOUND TRUE)
++ foreach(i ${_PKG_OPENEXR_CFLAGS})
++ SET(OPENEXR_CFLAGS "${OPENEXR_CFLAGS} ${i}")
++ endforeach(i)
++ foreach(p ${_PKG_OPENEXR_LDFLAGS})
++ SET(OPENEXR_LDFLAGS "${OPENEXR_LDFLAGS} ${p}")
++ endforeach(p)
++ SET(OPENEXR_LDFLAGS "${OPENEXR_LDFLAGS} ${ZLIB_LIBRARY}")
++ELSE(_PKG_OPENEXR_FOUND)
+ IF (OPENEXR_INCLUDE_PATH AND OPENEXR_IMATH_LIBRARY AND OPENEXR_ILMIMF_LIBRARY AND OPENEXR_IEX_LIBRARY AND OPENEXR_HALF_LIBRARY)
+ SET(OPENEXR_FOUND TRUE)
+ SET(OPENEXR_INCLUDE_PATHS ${OPENEXR_INCLUDE_PATH} CACHE STRING "The include paths needed to use OpenEXR")
+@@ -65,6 +79,8 @@
+ MESSAGE(FATAL_ERROR "Could not find OpenEXR library")
+ ENDIF(OPENEXR_FIND_REQUIRED)
+ ENDIF(OPENEXR_FOUND)
++ENDIF(_PKG_OPENEXR_FOUND)
++
+
+ MARK_AS_ADVANCED(
+ OPENEXR_INCLUDE_PATHS
+@@ -73,3 +89,4 @@
+ OPENEXR_IMATH_LIBRARY
+ OPENEXR_IEX_LIBRARY
+ OPENEXR_HALF_LIBRARY)
++
+--- nvidia-texture-tools/src/nvimage/CMakeLists.txt
++++ nvidia-texture-tools/src/nvimage/CMakeLists.txt
+@@ -44,10 +44,10 @@
+ INCLUDE_DIRECTORIES(${TIFF_INCLUDE_DIR})
+ ENDIF(TIFF_FOUND)
+
+-IF(OPENEXR_FOUND)
++IF(OPENEXR_FOUND AND NOT _PKG_OPENEXR_FOUND)
+ SET(LIBS ${LIBS} ${OPENEXR_LIBRARIES})
+ INCLUDE_DIRECTORIES(${OPENEXR_INCLUDE_PATHS})
+-ENDIF(OPENEXR_FOUND)
++ENDIF(OPENEXR_FOUND AND NOT _PKG_OPENEXR_FOUND)
+
+ # targets
+ ADD_DEFINITIONS(-DNVIMAGE_EXPORTS)
+@@ -61,6 +61,14 @@
+
+ TARGET_LINK_LIBRARIES(nvimage ${LIBS} nvcore nvmath posh)
+
++IF(_PKG_OPENEXR_FOUND)
++ SET_TARGET_PROPERTIES(nvimage
++ PROPERTIES
++ COMPILE_FLAGS "${OPENEXR_CFLAGS}"
++ LINK_FLAGS "${OPENEXR_LDFLAGS}"
++ )
++ENDIF(_PKG_OPENEXR_FOUND)
++
+ INSTALL(TARGETS nvimage
+ RUNTIME DESTINATION bin
+ LIBRARY DESTINATION lib
diff --git a/media-gfx/nvidia-texture-tools/metadata.xml b/media-gfx/nvidia-texture-tools/metadata.xml
new file mode 100644
index 000000000000..0d4c55828138
--- /dev/null
+++ b/media-gfx/nvidia-texture-tools/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <!-- maintainer-needed -->
+ <use>
+ <flag name="cg">Enable NVIDIA C graphics compiler toolkit plug-in</flag>
+ <flag name="cuda">Enable NVIDIA CUDA toolkit support</flag>
+ <flag name="glew">Enable support for The OpenGL Extension Wrangler Library (<pkg>media-libs/glew</pkg>)</flag>
+ </use>
+</pkgmetadata>
diff --git a/media-gfx/nvidia-texture-tools/nvidia-texture-tools-2.0.8-r3.ebuild b/media-gfx/nvidia-texture-tools/nvidia-texture-tools-2.0.8-r3.ebuild
new file mode 100644
index 000000000000..f264f6ce7ef5
--- /dev/null
+++ b/media-gfx/nvidia-texture-tools/nvidia-texture-tools-2.0.8-r3.ebuild
@@ -0,0 +1,71 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit cmake-utils eutils
+
+DESCRIPTION="A set of cuda-enabled texture tools and compressors"
+HOMEPAGE="http://developer.nvidia.com/object/texture_tools.html"
+SRC_URI="https://${PN}.googlecode.com/files/${P}-1.tar.gz
+ https://dev.gentoo.org/~ssuominen/${P}-patchset-1.tar.xz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="cg cuda glew glut openexr"
+
+RDEPEND="
+ media-libs/ilmbase:=
+ media-libs/libpng:0=
+ media-libs/tiff:0
+ sys-libs/zlib
+ virtual/jpeg:0
+ virtual/opengl
+ x11-libs/libX11
+ cg? ( media-gfx/nvidia-cg-toolkit )
+ cuda? ( dev-util/nvidia-cuda-toolkit )
+ glew? ( media-libs/glew:0= )
+ glut? ( media-libs/freeglut )
+ openexr? ( media-libs/openexr:= )
+ "
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+PATCHES=(
+ "${FILESDIR}/${P}-cg.patch" # fix bug #414509
+ "${FILESDIR}/${P}-gcc-4.7.patch" # fix bug #423965
+ "${FILESDIR}/${P}-openexr.patch" # fix bug #462494
+ "${FILESDIR}/${P}-clang.patch" # fix clang build
+ "${FILESDIR}/${P}-cpp14.patch" # fix bug #594938
+)
+
+S="${WORKDIR}/${PN}"
+
+pkg_setup() {
+ if use cuda; then
+ if [[ $(( $(gcc-major-version) * 10 + $(gcc-minor-version) )) -gt 44 ]] ; then
+ eerror "gcc 4.5 and up are not supported for useflag cuda!"
+ die "gcc 4.5 and up are not supported for useflag cuda!"
+ fi
+ fi
+}
+
+src_prepare() {
+ edos2unix cmake/*
+ EPATCH_SUFFIX=patch epatch "${WORKDIR}/patches"
+ cmake-utils_src_prepare
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DLIBDIR=$(get_libdir)
+ -DNVTT_SHARED=TRUE
+ -DCG=$(usex cg)
+ -DCUDA=$(usex cuda)
+ -DGLEW=$(usex glew)
+ -DGLUT=$(usex glut)
+ -DOPENEXR=$(usex openexr)
+ )
+ cmake-utils_src_configure
+}
diff --git a/media-gfx/opcion/Manifest b/media-gfx/opcion/Manifest
new file mode 100644
index 000000000000..9f103fe30488
--- /dev/null
+++ b/media-gfx/opcion/Manifest
@@ -0,0 +1,6 @@
+AUX opcion-1.1.1-fix-source.patch 408 SHA256 a2bf5eadbb98f2fb43d8ac8ae5c2ea2ee91509c54f3516d9781f2fa9e3a5097a SHA512 3097cc8970296bf9d571c44ac9c07074c88e7a3b8800082dfcaf94c1daa0ddae8c56f7101c5052d8382ac554a725debbb7a3271fd0257ab195d63313133f18ae WHIRLPOOL 110214a6c81c793d352bc9ecfdd120eaf2f71bdf0935fbb118854b4272ed816c81721105c5264af2cf11b4075dc52723758f19de4cbdc40b80f1ca0eb23843fd
+DIST Opcion_v1.1.1_src.zip 319793 SHA256 f1af9606c63e200d860d01c2f7bd241031b857928b939fb8044d27aabf83f298 SHA512 47b4729a54b4b76fdd5ece01f40e700f6c942df60a36956e08383aa24bb436e59b40df25d42d2d7c6b01633a92c7449a8c7f0acb9a9e63af76d1054373f51f14 WHIRLPOOL 9d7989e4678b69106bdde0c8ef06757ef7ea689e4ba046c78766ce4943c59707c693b2db344cd12d8d13c27f37aaab221a795c2440d2ff1c2a91574f9e2c2fa8
+EBUILD opcion-1.1.1-r2.ebuild 1344 SHA256 89c37f14da6e5ae42f3dcc37edcabaa285eaebe370d7e239b1283d9dac02b614 SHA512 b544dd18f346a5c7aa4cb278d593f5b82e3432a42682e5710e9c1f0f608e7e1c9ac78ef32ca1dea09f7e9f8aa08773121739877a5614740e3039c0308d90d9dc WHIRLPOOL 19a13c0805613c4edfe1af1975ab3d86f88539c718f3e290ae9271be3b6b147914dafba4f996e84d3db60c91b27da596cf6802b91028ec133deee16720ab9ee9
+MISC ChangeLog 2611 SHA256 2828c205f3e0ae4f3939acace86e8f2ee021299033d6e40a7de720d5ace7fa69 SHA512 a89e8943d22781fd5d565f6f31aa705bbe8b887107d6f0918385663c16b45256e25dca96b8fd3c36bd05dd015d02f8edf5b2d69771a3cb0862ed4e46815df608 WHIRLPOOL b22e7b916260bd5fcf69f7ddecbbf7ad604b36044bb65633862f0c02620c4484245de2e12c49f40b4194fccf1fc54d4d440b3b3076defefb453d5bb4e4af4609
+MISC ChangeLog-2015 2592 SHA256 80c9d75577d0efc423f4d80e3e4e56a634849038ac617f1c695fb924c750922e SHA512 b298b54e78ec57b594bd1e85ee4375e4631025744fe2d1493dac72db76fc497374ce86ef4b21b3fe328a55d78167f16c5cd53e8aeec90b9277c4809de63a1c1b WHIRLPOOL 86fa2ca855fe0d7cab2683ce4762f40bda7301cae24c278e706e2623a5c038863ae7afead44d0453782c7213de6860620746d4dfbf957ba332eb44a844343940
+MISC metadata.xml 314 SHA256 42ef40ac7e6c13621c8111c85148b8c9253d0ab9fba7cfff822302ca5131fde3 SHA512 2d933e44fbd5ec8dc05d7730bbca4f1d80d658f5735706fdc2ba3ce50b1637f37df9e5054d19e3e0e3869ea7b5417593d05bc8eaeaece0239000204666706687 WHIRLPOOL b85842b12a8b17d6578c68467ec6c695b91cf527a204c1437eb6999313d2e6b1c661ce6e67eb71dcc341e247370db5221a4b0750f13a24a65edf0e8a1f365d47
diff --git a/media-gfx/opcion/files/opcion-1.1.1-fix-source.patch b/media-gfx/opcion/files/opcion-1.1.1-fix-source.patch
new file mode 100644
index 000000000000..4c5f1dc9c9e3
--- /dev/null
+++ b/media-gfx/opcion/files/opcion-1.1.1-fix-source.patch
@@ -0,0 +1,15 @@
+--- FontViewer/components/AAToggleButton.java 2007-04-29 12:20:16.000000000 +0200
++++ FontViewer/components/AAToggleButton.java 2007-04-29 12:10:53.000000000 +0200
+@@ -38,7 +38,11 @@
+ this.setToolTipText(fname + " (" + floc + ")");
+ }
+
+- public String getFName() {
++ public AAToggleButton(String s) {
++ super(s);
++ }
++
++ public String getFName() {
+ return fname;
+ }
+
diff --git a/media-gfx/opcion/metadata.xml b/media-gfx/opcion/metadata.xml
new file mode 100644
index 000000000000..99e11a0882f4
--- /dev/null
+++ b/media-gfx/opcion/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>fonts@gentoo.org</email>
+ <name>Fonts</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">opcion</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/media-gfx/opcion/opcion-1.1.1-r2.ebuild b/media-gfx/opcion/opcion-1.1.1-r2.ebuild
new file mode 100644
index 000000000000..421aa9e100b6
--- /dev/null
+++ b/media-gfx/opcion/opcion-1.1.1-r2.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+inherit eutils java-pkg-2
+
+MY_P="Opcion_v${PV}"
+
+DESCRIPTION="Free font viewer written in Java"
+HOMEPAGE="http://opcion.sourceforge.net/"
+SRC_URI="mirror://sourceforge/opcion/${MY_P}_src.zip"
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+COMMON_DEP="=dev-java/jgoodies-looks-1.2*"
+RDEPEND=">=virtual/jre-1.4
+ ${COMMON_DEP}"
+DEPEND=">=virtual/jdk-1.4
+ ${COMMON_DEP}
+ app-arch/unzip"
+
+S=${WORKDIR}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ # add missing constructor
+ epatch "${FILESDIR}/${P}-fix-source.patch"
+
+ # calls nonexisting constructor and seems unused
+ rm FontViewer/windows/test.java || die
+
+ rm -rf com/jgoodies || die
+ find . -name '*.class' -delete || die
+ rm *.txt || die
+}
+
+src_compile() {
+ find . -name '*.java' > "${T}/src.list"
+ local cp="$(java-pkg_getjars jgoodies-looks-1.2)"
+ mkdir build || die
+ # quite icky way to copy resources
+ cp -R FontViewer com build || die
+ find build -name '*.java' -delete
+ ejavac -nowarn -classpath "${cp}" -d build "@${T}/src.list"
+ jar cf ${PN}.jar -C build . || die
+}
+
+src_install() {
+ java-pkg_dojar ${PN}.jar
+
+ java-pkg_dolauncher ${PN} --main FontViewer.Opcion
+
+ newicon FontViewer/resources/icons/IconSmall.png ${PN}-icon.png
+ make_desktop_entry ${PN} opcion ${PN}-icon
+}
diff --git a/media-gfx/openclipart/Manifest b/media-gfx/openclipart/Manifest
new file mode 100644
index 000000000000..b4333e51b47a
--- /dev/null
+++ b/media-gfx/openclipart/Manifest
@@ -0,0 +1,5 @@
+DIST openclipart-0.20.tar.bz2 367385284 SHA256 6f1fc33b0149e755196882ecab083d56daa3ff6ed78823b36be01f40abc7eb87 SHA512 2d3e0071e019cc272d220b5a4960d4dd7d8ca1ea36d2de7358c7b21e4b3135630075da032b3e274b88e6be8b7e3d331c02c9eebfd43e4e5b199c6016a8fbbdb7 WHIRLPOOL 5c657ac72c816f669c08256db85588fb6462e8e176eae88699174f5f4ae8e306ffc77c47c2951ce96b3d5614f6ed37867971582e56faf190742470a16a26bc3a
+EBUILD openclipart-0.20.ebuild 1084 SHA256 e3cf2c6b50af3d7822d7cc59bee003764db6e07f61bbf81a9e07d0a44449d4e5 SHA512 5e346dc816161f811c93c8027dde7e30b203cc088549b581a5ef4f6c2234b89500e82351952e43bfdc6a871bd6cc276bf5965b7e5d844a8744c98c71b529aab2 WHIRLPOOL 1442d0ea86e15ae9c85c3e8e0e4e6c47899480372ec933a8c9525e2490a5f657b39fc10cf42845b80edeeb6f42d9624b62914021a5751eff13e0d99d9796a78e
+MISC ChangeLog 2438 SHA256 bff2582f9f8ac3078132e9fc3f4d938e2174bd8d3b71addb93d00d10057e8183 SHA512 b795ba3c41e6f787401e91ea4f52a8cbc87690ae3c5e8ce9fad79cdc76908c7533947badd39c7d918401da263b0217b225e8d86fcea9e95540f0e106481d7403 WHIRLPOOL b304760e52c53088972af40ee2af4dab6ecef92b360f315359a353bb8aa6f2d1b01fb7c7f64e35b547d43394932cdf6b10bf0445cd40480e24df6b53bf2c2070
+MISC ChangeLog-2015 3623 SHA256 94b3c99a052cbdaecf21b95447e2d02e7ef1bd721423a49572a2507fa70e7189 SHA512 6fea5248401ee48c18e133c56688b038e3fa4712855d3cfbeaad647bb223f559d0f5f9be6f38f2d8491171c41ed7fb0ee923f56b54b48f7a8b94071a16f192c9 WHIRLPOOL 8c7a55e90f74bfd5f179333d43f7f55de09762892ee77d6cbebc89591c98fd54c658fc686dd27325472188bfbe483eb37ca828a426486db5f1f24ef7311010ff
+MISC metadata.xml 332 SHA256 47449e19e82f3c0622b23ca33e5ebd3630441b9dd3fba4c4d3ecd0cd1c5636e7 SHA512 58e164a238ec35cf87e8de731d9d7fc797432b0944277e2893d2ea7e70d49c5c82ec15352bcfe2ff8497f7f41d5cfd17f4fb3994bbbe17d9223d3f0c0522b9b4 WHIRLPOOL fa6dc0f5988eb89da2e79ab95a096f1beccb3ea2a37d7535a4b256733f6a5bb931b35f2ceb889fd9f13ac79a33265680a6652ddcca72c95502b9b2a8e2592067
diff --git a/media-gfx/openclipart/metadata.xml b/media-gfx/openclipart/metadata.xml
new file mode 100644
index 000000000000..083c4f67c8cd
--- /dev/null
+++ b/media-gfx/openclipart/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>
+ <use>
+ <flag name="gzip">Compresses clip art using gzip</flag>
+ </use>
+</pkgmetadata>
diff --git a/media-gfx/openclipart/openclipart-0.20.ebuild b/media-gfx/openclipart/openclipart-0.20.ebuild
new file mode 100644
index 000000000000..f512de948c2e
--- /dev/null
+++ b/media-gfx/openclipart/openclipart-0.20.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="2"
+
+DESCRIPTION="Open Clip Art Library (openclipart.org)"
+HOMEPAGE="http://www.openclipart.org/"
+
+SRC_URI="http://download.openclipart.org/downloads/${PV}/${P}.tar.bz2"
+LICENSE="public-domain"
+SLOT="0"
+KEYWORDS="amd64 ppc x86"
+IUSE="svg png gzip"
+
+# We don't really need anything to run
+DEPEND=""
+RDEPEND=""
+
+# suggested basedir for cliparts
+CLIPART="/usr/share/clipart/${PN}"
+
+src_compile() {
+ local removeext
+
+ if ! use svg && ! use png; then
+ elog "No image formats specified - defaulting to all (png and svg)"
+ else
+ ! use png && removeext="${removeext} png"
+ ! use svg && removeext="${removeext} svg"
+ fi
+
+ for ext in ${removeext}; do
+ elog "Removing ${ext} files..."
+ find -name "*.${ext}" -exec rm -f {} \; \
+ || die "Failed - remove"
+ done
+
+ if use gzip; then
+ einfo "Compressing SVG files..."
+ find -name "*.svg" -print0 | xargs -L 1 -0 \
+ bash -c 'gzip -9c "${1}" > "${1}z"; rm -f "${1}"' --
+ fi
+}
+
+src_install() {
+ insinto ${CLIPART}
+ doins -r .
+}
diff --git a/media-gfx/opencsg/Manifest b/media-gfx/opencsg/Manifest
new file mode 100644
index 000000000000..0a509f9d3a3e
--- /dev/null
+++ b/media-gfx/opencsg/Manifest
@@ -0,0 +1,6 @@
+AUX opencsg-1.4.2-includepath.patch 529 SHA256 b844dcf74cffc66a797d28c203e0e9044073171f8fde330e78086d4970f8fa2d SHA512 352fc772b678336734ee625b708732560e212162279126a368a6f1adeb4f29b8b29960e7a5cf06a2b6c5d1c6a369c8a9347b050c49d6a301c07b6ed259340e87 WHIRLPOOL d1e1d3280f27b2ceb2b6c5534003c85e0a53f6ffed013f6e53c7d8d804a53505f612f928fd01690059e616d8be7b931a9a31d6ec412f9aeb47d04557cfed6c99
+DIST OpenCSG-1.4.2.tar.gz 933135 SHA256 d952ec5d3a2e46a30019c210963fcddff66813efc9c29603b72f9553adff4afb SHA512 fbe6f925982717ecca7bd0eacc4fc5b362c80c7663b1ff0d9a228f2b5e1d3625d3e6d324d9e634665c74e9c0fc37d10290ece293e59a3eba67035b6b700b7778 WHIRLPOOL 6b8666021549e93de0de6ebe3a16a93c3719fec9630623165791ae3761553c339bb19833f73802067cdeabb2f07017db363bee75f49a03eef6a6819349e0e9ee
+EBUILD opencsg-1.4.2.ebuild 754 SHA256 387a020fff91c5ef1308686fd95e68da109a6ed524159a1cb0826478afbc5a90 SHA512 356eb205e3de711d0bea816a0b284cf31abbeb5ba5de13bafa71231872c31983e3bf28f04ff2daff92c6905347ce6bcff3f7eb86669f5c9fa098e1887f962d92 WHIRLPOOL aa762a9860064a5239eebb6afa26dffa58eb1b175bd14eff27e6b0441f5d01aa2d0f706ebeb16897ecd26b68ae04b8a7480d84465160408861d582d45c82e623
+MISC ChangeLog 2946 SHA256 1d8ed7a84cb07643764065ac6e4b8f6b451573d9e3576c1bc8702d4087414e0a SHA512 e023cc9bddd1806d6d6e5b97b259be61af901d291e1a9b1266cb5e9cbdaf921ef1502b549e3d41668aaa200c5114d14c849bced3ddcfa3f5a46f10ee806f875e WHIRLPOOL e00bc1e2b165a40d3e8c3ea7dc9933e86dd87b3bd6753e701ce57997c9a2fa9f037fb96ed7022e261e6f9c86fc242a01d28a14181b8706f75ca2849e4350b643
+MISC ChangeLog-2015 890 SHA256 f9908ffc7eafb054870e06f44305b815a851e14c4eb6b6a4bc7f89100274186f SHA512 5dd494c5baf0aa5857928e082534d79af6e1595d7db4cfe170ce5d87b206dcf56b11ed86ce354467adae1a16046e888a59f78c54a7b1f67b99d538bfb03e9cb3 WHIRLPOOL 6d1f7b197d227b55bcc24c66ffe8f3408b97729b15aff60aae1e580dbeeb311edb09bf010bcea08b6eaee709508ef845a946dc26e71db43749983d4ae376d006
+MISC metadata.xml 1042 SHA256 5779d4d38d1b71dac2e84dba8e716e0ff5ca2cb4679dd82c09787927d3b1e97a SHA512 cdb89984408b1924505708101f87193794a54be3893e776ad889b3f2ace5af4e8a0c189799f5dc70a5d964cbe5f8e9f14277c2b488faaa2c7e814b60cfa5a485 WHIRLPOOL 54d6515eed2fd8d052577c14fc716c56a324be2e54ec192bceb61d52d2a75d5b5748b967e651d3358b609a11bd34b75131a17cc0b9be03de1c725b1fdefedb16
diff --git a/media-gfx/opencsg/files/opencsg-1.4.2-includepath.patch b/media-gfx/opencsg/files/opencsg-1.4.2-includepath.patch
new file mode 100644
index 000000000000..9b66ae44ed0e
--- /dev/null
+++ b/media-gfx/opencsg/files/opencsg-1.4.2-includepath.patch
@@ -0,0 +1,25 @@
+* Fix build with GCC 6
+* Don't hardcode libdir
+
+Gentoo-bug: 623840
+
+--- a/src.pro
++++ b/src.pro
+@@ -7,14 +7,14 @@
+ }
+
+ CONFIG += opengl warn_on release
+-INCLUDEPATH += ../include ../ $$INSTALLDIR/include
++INCLUDEPATH += ../include ..
+ CONFIG -= qt
+-LIBS += -L$$INSTALLDIR/lib -lGLEW
++LIBS += -lGLEW
+
+ DESTDIR = ../lib
+ headers.files = ../include/opencsg.h
+ headers.path = $$INSTALLDIR/include
+-target.path = $$INSTALLDIR/lib
++target.path = $$INSTALLDIR/$$LIBDIR
+ INSTALLS += target headers
+
+ HEADERS = ../include/opencsg.h \
diff --git a/media-gfx/opencsg/metadata.xml b/media-gfx/opencsg/metadata.xml
new file mode 100644
index 000000000000..de418786b91f
--- /dev/null
+++ b/media-gfx/opencsg/metadata.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <longdescription>
+ OpenCSG is a library that does image-based CSG rendering using
+ OpenGL. OpenCSG is written in C++ and supports most modern
+ graphics hardware using Microsoft Windows or the Linux operating
+ system. What is CSG, anyway? CSG is short for Constructive Solid
+ Geometry and denotes an approach to model complex 3D-shapes using
+ simpler ones. I.e., two shapes can be combined by taking the union
+ of them, by intersecting them, or by subtracting one shape of the
+ other. SG is often used as fundamental modeling technique in CAD/CAM
+ applications. Here, image-based CSG rendering is the key to
+ interactively manipulate CSG shapes. Since OpenCSG renders even
+ complex CSG shapes fast, it can be advantageously used in such
+ applications. The OpenCSG library requires graphics hardware that
+ either supports frame buffer objects or PBuffers in OpenGL.
+ </longdescription>
+</pkgmetadata>
diff --git a/media-gfx/opencsg/opencsg-1.4.2.ebuild b/media-gfx/opencsg/opencsg-1.4.2.ebuild
new file mode 100644
index 000000000000..9f02e2a9c1d1
--- /dev/null
+++ b/media-gfx/opencsg/opencsg-1.4.2.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit qmake-utils
+
+MY_P="OpenCSG-${PV}"
+DESCRIPTION="The Constructive Solid Geometry rendering library"
+HOMEPAGE="http://www.opencsg.org"
+SRC_URI="http://www.opencsg.org/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="media-libs/glew:0="
+DEPEND="${RDEPEND}
+ dev-qt/qtcore:5
+"
+
+S="${WORKDIR}/${MY_P}/src"
+
+PATCHES=(
+ "${FILESDIR}/${P}-includepath.patch"
+)
+
+src_prepare() {
+ default
+
+ # removes duplicated headers
+ rm -r ../glew || die "failed to remove bundled glew"
+}
+
+src_configure() {
+ eqmake5 src.pro INSTALLDIR="/usr" LIBDIR="$(get_libdir)"
+}
+
+src_install() {
+ emake INSTALL_ROOT="${D}" install
+}
diff --git a/media-gfx/openexr_viewers/Manifest b/media-gfx/openexr_viewers/Manifest
new file mode 100644
index 000000000000..1dc406fae4c5
--- /dev/null
+++ b/media-gfx/openexr_viewers/Manifest
@@ -0,0 +1,17 @@
+AUX openexr_viewers-1.0.1-gcc43.patch 2122 SHA256 2327ca9369c9022a5f8f315d1d2a95037dcbfd610eee3dda22e11877205bd3bb SHA512 1e4c2f7a496b7a48063b6ec163c72620eabc78fa850cd87de8c4d1555bdcf91913941c16fdadcfe076c67d0903c229e677ee3b7c0fe194116864c5cab1bbe4a1 WHIRLPOOL c3d26ea57601b89c686ac12a7958da2ff0e6371a9b1b21016f6382e59187120e436261c2cc0a454d95be3c99d0ba69cb12695736401cda65d87b1f2ee37b78ed
+AUX openexr_viewers-1.0.1-gcc44.patch 1064 SHA256 7214f033bc84b7433f010b5297fabc383f9305a95fd02d50ff1f94c5bfe13386 SHA512 3b6c2f02581025a9a9e8963274aca27badc905a1986376860728b24b795008dedbb7a3887b5a4fed04c81b0ea1acff1918fab3ad09881de9f2be899c90443177 WHIRLPOOL 547fc0238d5f738c6b0c1ba57feeffc362fb78b168fb6f2108056254c2a6b889eba0ac4b54f4ca27f4fa3f57c529112ea712132e60cc6f444f8bfb53a4a4dd38
+AUX openexr_viewers-1.0.2-nvidia-automagic.patch 472 SHA256 95c00b84847ead53ff390e30739328c5475bdef5159fa2f621fb574ad901fa25 SHA512 777b8635b4454ea9c8c9bcd1b707012218ba16c523a105e987e897a17b126a2e11d986bc566cfe1a87a1af2df3336ec53e5ff8cc54cdc01ea7752947dac140f4 WHIRLPOOL 61dada4e3ae0b4d16e517a41d97e8b618bc4b85c9540ac705356dab2ed533dba2709e0e105d45c001c5f0b788e7d20398f493b42212e7af90cf9d126fbe1ddbc
+AUX openexr_viewers-2.0.0-nvidia-automagic.patch 434 SHA256 5ded4984733e894deb4b3778e51df1f0008946a2404270209b4d2964d1f3ce32 SHA512 6c05ec9708822559e8f84f601f8ede89d4e9820cbbe4b49b93ac6d0ba228fa602b699f13540d2169ce16b144ec85db63d06262001bfa391e80f2febfa66ceec7 WHIRLPOOL 5132f99849c5077903a16e237b1c82d23c2255dd5cea1d1d97f1081120a3a0a9f45048a5d6742766f9f3b1949d8b7286ee172a7d6f741360420f880a366ef409
+AUX openexr_viewers-2.2.0-Remove-nVidia-automagic.patch 869 SHA256 30eae021f57a47346cfdf648460f818c09215a517cbce255acf0021753c65f96 SHA512 232f990857bfbac7c8417e818e2efe0926a3d5fc20d7392c90a79a4762f26bf3044cc46729feafe407c73c75372ef52af8fa22247d82a4eb982fe538ac71de40 WHIRLPOOL a97438bb43aafd71713b0747ee7ba89b0141c28862cdf10a10e023fe40d114cf69c61697c7c9dae9f303b6ea7f7a9ff79b1533b6fb49a1d5576f38ab78924530
+DIST openexr_viewers-1.0.2.tar.gz 482009 SHA256 eb6b1987d587b441f113d417dc8a5baec25f3d81bc06b0369217567c1cde13ef SHA512 06e01be3310a05c5709cdb4641f230522a5d91d50b08b6736a5541d20a03decfd80a9f5b65af383659a3d19407f932317c04eba73d199c03fa0ff9e24cc7ad07 WHIRLPOOL dd6d805f71db710bb70db9d993cc07bcd0b02c225527402f194300b82a3f1036d3584bed5db517c937d3f638e14466ff3c9c3653430d1d7c6fb1a01e331012f8
+DIST openexr_viewers-2.0.1.tar.gz 495240 SHA256 9329e87922eb5e4707a5a107f90434113136299a026d78133e4083742808a412 SHA512 75af19e4a06d31bbb21217bc75a800852d2817dd9d120b879c377316e8aa64f75c49dccbb0d2a4d11d949f48b8fac40249692d1286a77e4812e43b3e8e303235 WHIRLPOOL c9c6a46451a3f2709afaecdbbfbf5e69f74ba2e76a853871a9a1eb5789579be567de39b9206f7b3ff22351c2f5d579f1b5bbcd3a8d4df0d37c9c2eb1140fc455
+DIST openexr_viewers-2.1.0.tar.gz 497290 SHA256 80d98aaa03ab98906f0e535bb2ae908ce3929f4e318ef069620937d195a6fea7 SHA512 fd3b08ad91b1b2299d01d56c7a17694538fd912302db3472a8d8621b49a699a42604de8d816288399b31207304c7684de198acecd2c8a9825d35b827b8a2ddaf WHIRLPOOL 2918c3c40f8969711becc70d422bc89fe28a209b56e964da8e69f249b619b6790efb686ad45aefb57d14a514ad7642a4cc6a7c3af0152e13f5fd6ee3ee6155f5
+DIST openexr_viewers-2.2.0.tar.gz 486235 SHA256 f73fe2e4d19e8fc9317d6c34f156598ad43497bb9549f03feacb8ba095dd04e9 SHA512 ab2f15d0352fa4e9daf76c7317312dad6cfe7b65a86affaf057c8eceb48d2637fc0df58125ea2ec5ad3b7251eed392a8eccff1001cfeced969bbb66fe92284f8 WHIRLPOOL 83190cbab3749dbc543e16cac76b7b0bc4c9c0110feb6ef4ddb4b84808cc9508dc94dda3be5674e6d50f042e0bfd78a951d66b231ad0296ee6b7b24a81ac2e15
+EBUILD openexr_viewers-1.0.2.ebuild 1343 SHA256 698939b44f970463676b34abc311c5be18037da008cef4e4af378a786b677c70 SHA512 b6b36599cea86589762b75b5836174f96f80f881c54483944afd97e8c9b2e49838e5f5c7995f29916d0b1dcb42ef4a08dba4dfca95ac57fa24d6fd695ce130b4 WHIRLPOOL b62db4e1f3d820f03dc6f27327f8c43ddbcdd3d4abceb41e3f3bb0eacb06f497d2b6ef3b1a13ad8ebb3ea65e70a7719b604726ae5e50d72d7c4bd80bf3b59e85
+EBUILD openexr_viewers-2.0.1.ebuild 1226 SHA256 15086dcc7c1be99a47058dc58fcf03d5873b0825af2104329ff0b1345ccad314 SHA512 fef5325ae28e8d4a82d0147074b43e00e8fa51e85c5403eb48c63229f56021a0c2a043474c5f020c1c342ea4340f2aadeecb61f5cbbd6ebcb48e410f25392dcd WHIRLPOOL 38b65778a1e34950018e5b57533bc3f5aa94ca9a650a1d959eb4f1d6f0c9c3c08d7a9e289b2d138905193cbc92797c074b5b2b42bff423dad7159bd3ced0c41d
+EBUILD openexr_viewers-2.1.0.ebuild 1220 SHA256 be10a10261d451ea538a3ee90775976a28b958b4b998a08dc6fa0fb690398e92 SHA512 138cc73e33659c98f762926bd19643dd359f2514ff063139a8722e30ecc3c3cb7455ddaface266f1bfcabe9e9d65fc1fdf64b23f0b696554c1349b0a32b81d3e WHIRLPOOL 26b6e389dd2a51790b1bcabf2b685c2fa0af3a503e2032287475ce460c6d8aface9d1ee059fffdcf4eb2d144aec458e3ea893311651db14a458f7c64cc864ffe
+EBUILD openexr_viewers-2.2.0-r1.ebuild 1227 SHA256 60ef19f7384033f09b44f2648bb319b0fa072561160a01a416fcbbf7cebbb59b SHA512 98ae83639c8f0d97c0c0fdd6f6909826d79445bf2eec7f2e0b768beaad30efe11deb58bb0c7d1d092e05c8961c5d8af3c8d0bb10533eb8efee13532a9c2389da WHIRLPOOL a396f40209d4b14c7d650571ed9c6e513e4446624d51950ac4d1177b08234103019dbd66369d40b40979e6f8f98dba0e57ad26cf2bed448272730d4fa23fd6b5
+EBUILD openexr_viewers-2.2.0.ebuild 1226 SHA256 15086dcc7c1be99a47058dc58fcf03d5873b0825af2104329ff0b1345ccad314 SHA512 fef5325ae28e8d4a82d0147074b43e00e8fa51e85c5403eb48c63229f56021a0c2a043474c5f020c1c342ea4340f2aadeecb61f5cbbd6ebcb48e410f25392dcd WHIRLPOOL 38b65778a1e34950018e5b57533bc3f5aa94ca9a650a1d959eb4f1d6f0c9c3c08d7a9e289b2d138905193cbc92797c074b5b2b42bff423dad7159bd3ced0c41d
+MISC ChangeLog 3439 SHA256 83cdd91e00f96d581c72169c50a444688dfc430c136e262f4965b3684c067299 SHA512 2ec9ad6bd5c429d26b6a02982655274ce1ad60f1e44dfe10ba0d01a753b310a4011a4fdd2c68504481957ca02ef0d902520e7ccaa9c5338d89c9cc02946d71fa WHIRLPOOL 926849a3f23a3a119ee846c712d8e598486f4c3ad3b279c785eef69437eae93b9202b21ea8fc1aeab4f62f60003352d50346d0604d05ef7e0c4a3e19b5c5cbef
+MISC ChangeLog-2015 5510 SHA256 050e27e66191f6d0d721c84144e3cab3f90b9f02a810ad5c3d4711029f1f4276 SHA512 69ef9b756d0034e79dc38f840d4f5bad9d73998394d6348148e539ee7e2f31683f6091056b720990a6d10e0973f4f8b8e5db22b9ba6c26947d7e7d050cac084b WHIRLPOOL 8e7524bbaa655780a0b2b86f66643a9b68cf90ff264ecbae9bb34e0ecf7bfca39b7827082a8bf38a27cb08e4d16399123ab6f7eba6e889059b34c877c51357b3
+MISC metadata.xml 379 SHA256 a3b67324cbb60236ba69b3e492bfa3cc4a908629ce8b48178abf3112ae0124b6 SHA512 97d3ed7e0ee8f419d36df6b6ccc3b3e704445935b76fab412b4287ac1b88688591f775927e1cc333a85a64818cbe1c9c3e760d2ab734215c0f558639ca033b6a WHIRLPOOL be72328a441e07800fe9cf75299ce33ba3130f7087f2f27166750894e0003ec826c30e07ac10e5c9ca4a871f0ad4fb729be42625e8efc7491ed2a337fbbbc972
diff --git a/media-gfx/openexr_viewers/files/openexr_viewers-1.0.1-gcc43.patch b/media-gfx/openexr_viewers/files/openexr_viewers-1.0.1-gcc43.patch
new file mode 100644
index 000000000000..3630efc6f7a2
--- /dev/null
+++ b/media-gfx/openexr_viewers/files/openexr_viewers-1.0.1-gcc43.patch
@@ -0,0 +1,55 @@
+diff -up openexr_viewers-1.0.1/exrdisplay/applyCtl.h.gcc43 openexr_viewers-1.0.1/exrdisplay/applyCtl.h
+--- openexr_viewers-1.0.1/exrdisplay/applyCtl.h.gcc43 2006-12-09 01:14:07.000000000 +0100
++++ openexr_viewers-1.0.1/exrdisplay/applyCtl.h 2008-01-10 02:07:14.000000000 +0100
+@@ -49,6 +49,7 @@
+ #include <ImfArray.h>
+ #include <ImfHeader.h>
+ #include <vector>
++#include <cstdlib>
+
+ //
+ // Apply a series of CTL transforms to the raw pixel data from an image file
+diff -up openexr_viewers-1.0.1/configure.ac.gcc43 openexr_viewers-1.0.1/configure.ac
+--- openexr_viewers-1.0.1/configure.ac.gcc43 2007-10-10 00:20:51.000000000 +0200
++++ openexr_viewers-1.0.1/configure.ac 2008-01-10 02:07:14.000000000 +0100
+@@ -126,6 +126,7 @@ AM_COMPILELINKRUN(
+ #include <ImfFrameBuffer.h>
+ #include <ImathBox.h>
+ #include <vector>
++#include <cstdlib>
+ using namespace Ctl;
+ using namespace Imf;
+ using namespace Imath;
+diff -up openexr_viewers-1.0.1/configure.gcc43 openexr_viewers-1.0.1/configure
+--- openexr_viewers-1.0.1/configure.gcc43 2007-10-10 00:21:01.000000000 +0200
++++ openexr_viewers-1.0.1/configure 2008-01-10 02:07:14.000000000 +0100
+@@ -20869,6 +20869,7 @@ cat >>conftest.$ac_ext <<_ACEOF
+ #include <ImfFrameBuffer.h>
+ #include <ImathBox.h>
+ #include <vector>
++#include <cstdlib>
+ using namespace Ctl;
+ using namespace Imf;
+ using namespace Imath;
+diff -up openexr_viewers-1.0.1/playexr/ctlToLut.h.gcc43 openexr_viewers-1.0.1/playexr/ctlToLut.h
+--- openexr_viewers-1.0.1/playexr/ctlToLut.h.gcc43 2008-01-10 03:09:55.000000000 +0100
++++ openexr_viewers-1.0.1/playexr/ctlToLut.h 2008-01-10 03:11:18.000000000 +0100
+@@ -88,6 +88,7 @@
+ #include <string>
+ #include <vector>
+ #include <half.h>
++#include <cstdlib>
+
+
+ void
+diff -up openexr_viewers-1.0.1/playexr/main.cpp.gcc43 openexr_viewers-1.0.1/playexr/main.cpp
+--- openexr_viewers-1.0.1/playexr/main.cpp.gcc43 2008-01-10 03:05:03.000000000 +0100
++++ openexr_viewers-1.0.1/playexr/main.cpp 2008-01-10 03:05:48.000000000 +0100
+@@ -48,6 +48,7 @@
+ #include <vector>
+ #include <string>
+ #include <stdlib.h>
++#include <cstring>
+
+ using namespace std;
+
diff --git a/media-gfx/openexr_viewers/files/openexr_viewers-1.0.1-gcc44.patch b/media-gfx/openexr_viewers/files/openexr_viewers-1.0.1-gcc44.patch
new file mode 100644
index 000000000000..4ab58548d71a
--- /dev/null
+++ b/media-gfx/openexr_viewers/files/openexr_viewers-1.0.1-gcc44.patch
@@ -0,0 +1,37 @@
+diff -ur openexr_viewers-1.0.1.orig/exrdisplay/applyCtl.cpp openexr_viewers-1.0.1/exrdisplay/applyCtl.cpp
+--- playexr/ctlToLut.cpp.orig 2009-12-14 09:07:00.863493115 -0800
++++ playexr/ctlToLut.cpp 2009-12-14 09:08:16.721186947 -0800
+@@ -49,6 +49,7 @@
+ #include <ImfFrameBuffer.h>
+ #include <cassert>
+ #include <iostream>
++ #include <cstdio>
+
+ using namespace std;
+ using namespace Ctl;
+@@ -61,6 +62,7 @@
+ #include <ImfHeader.h>
+ #include <cassert>
+ #include <iostream>
++ #include <cstdio>
+
+ using namespace std;
+ using namespace Imf;
+--- exrdisplay/applyCtl.cpp.orig 2009-12-14 09:11:44.950334079 -0800
++++ exrdisplay/applyCtl.cpp 2009-12-14 09:11:59.900332294 -0800
+@@ -49,6 +49,7 @@
+ #include <ImfFrameBuffer.h>
+ #include <cassert>
+ #include <iostream>
++ #include <cstdio>
+
+ using namespace std;
+ using namespace Ctl;
+@@ -61,6 +62,7 @@
+ #include <ImfHeader.h>
+ #include <cassert>
+ #include <iostream>
++ #include <cstdio>
+
+ using namespace std;
+ using namespace Imf;
diff --git a/media-gfx/openexr_viewers/files/openexr_viewers-1.0.2-nvidia-automagic.patch b/media-gfx/openexr_viewers/files/openexr_viewers-1.0.2-nvidia-automagic.patch
new file mode 100644
index 000000000000..e39a0c1da789
--- /dev/null
+++ b/media-gfx/openexr_viewers/files/openexr_viewers-1.0.2-nvidia-automagic.patch
@@ -0,0 +1,16 @@
+--- configure.ac
++++ configure.ac
+@@ -188,8 +188,11 @@
+
+ dnl
+ dnl check for Cg
+-dnlCG_LD
+-if test "${have_fltk}" = yes; then
++dnl CG_LD
++AC_ARG_ENABLE(nvidia, AC_HELP_STRING([--enable-nvidia],
++ [enable nvidia cg support [[default=check]]]), [want_nvidia="${enableval}"], [want_nvidia=yes])
++
++if test "${have_fltk}" = yes -a "${want_nvidia}" != "no"; then
+ AM_PATH_CG(have_cg=yes, have_cg=no)
+ if test "${have_cg}" = yes; then
+ AC_DEFINE(HAVE_FRAGMENT_SHADERS)
diff --git a/media-gfx/openexr_viewers/files/openexr_viewers-2.0.0-nvidia-automagic.patch b/media-gfx/openexr_viewers/files/openexr_viewers-2.0.0-nvidia-automagic.patch
new file mode 100644
index 000000000000..1ea9f869a671
--- /dev/null
+++ b/media-gfx/openexr_viewers/files/openexr_viewers-2.0.0-nvidia-automagic.patch
@@ -0,0 +1,14 @@
+--- configure.ac
++++ configure.ac
+@@ -192,7 +192,10 @@
+ dnl
+ dnl check for Cg
+ dnl
+-if test "${have_fltk}" = yes; then
++AC_ARG_ENABLE(cg, AC_HELP_STRING([--enable-cg],
++ [enable nvidia cg support [[default=check]]]), [want_cg="${enableval}"], [want_cg=yes])
++
++if test "${have_fltk}" = yes -a "${want_cg}" != "no"; then
+ AM_PATH_CG(have_cg=yes, have_cg=no)
+ if test "${have_cg}" = yes; then
+ AC_DEFINE(HAVE_FRAGMENT_SHADERS)
diff --git a/media-gfx/openexr_viewers/files/openexr_viewers-2.2.0-Remove-nVidia-automagic.patch b/media-gfx/openexr_viewers/files/openexr_viewers-2.2.0-Remove-nVidia-automagic.patch
new file mode 100644
index 000000000000..41fba94523a9
--- /dev/null
+++ b/media-gfx/openexr_viewers/files/openexr_viewers-2.2.0-Remove-nVidia-automagic.patch
@@ -0,0 +1,28 @@
+From e8d26df2a888f307e61584367f5dc14894d8be82 Mon Sep 17 00:00:00 2001
+From: Jonathan Scruggs <j.scruggs@gmail.com>
+Date: Sat, 23 Sep 2017 13:39:34 +0100
+Subject: [PATCH] OpenEXR_Viewers: Remove nVidia automagic
+
+---
+ OpenEXR_Viewers/configure.ac | 5 ++++-
+ 1 file changed, 4 insertions(+), 1 deletion(-)
+
+diff --git a/configure.ac b/configure.ac
+index 94c88cd..1de94f6 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -194,7 +194,10 @@ AM_PATH_FLTK(have_fltk=yes, have_fltk=no)
+ dnl
+ dnl check for Cg
+ dnl
+-if test "${have_fltk}" = yes; then
++AC_ARG_ENABLE(cg, AC_HELP_STRING([--enable-cg],
++ [enable nvidia cg support [[default=check]]]), [want_cg="${enableval}"], [want_cg=yes])
++
++if test "${have_fltk}" = yes -a "${want_cg}" != "no"; then
+ AM_PATH_CG(have_cg=yes, have_cg=no)
+ if test "${have_cg}" = yes; then
+ AC_DEFINE(HAVE_FRAGMENT_SHADERS)
+--
+2.14.1
+
diff --git a/media-gfx/openexr_viewers/metadata.xml b/media-gfx/openexr_viewers/metadata.xml
new file mode 100644
index 000000000000..80b95a6d4e5c
--- /dev/null
+++ b/media-gfx/openexr_viewers/metadata.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>media-video@gentoo.org</email>
+ </maintainer>
+ <use>
+ <flag name="cg">Add support for nvidia's cg shaders</flag>
+ </use>
+ <upstream>
+ <remote-id type="github">openexr/openexr</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/media-gfx/openexr_viewers/openexr_viewers-1.0.2.ebuild b/media-gfx/openexr_viewers/openexr_viewers-1.0.2.ebuild
new file mode 100644
index 000000000000..9b2c74289bc9
--- /dev/null
+++ b/media-gfx/openexr_viewers/openexr_viewers-1.0.2.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=2
+inherit autotools eutils flag-o-matic
+
+DESCRIPTION="OpenEXR Viewers"
+SRC_URI="http://download.savannah.gnu.org/releases/openexr/${P}.tar.gz"
+HOMEPAGE="http://openexr.com/"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="amd64 hppa ia64 ppc ppc64 sparc x86 ~x86-fbsd"
+IUSE="opengl video_cards_nvidia"
+
+RDEPEND=">=media-libs/ilmbase-1.0.2
+ >=media-libs/openexr-1.7.0
+ media-libs/ctl
+ media-libs/openexr_ctl
+ opengl? ( virtual/opengl
+ x11-libs/fltk:1[opengl]
+ video_cards_nvidia? ( media-gfx/nvidia-cg-toolkit ) )
+ !<media-libs/openexr-1.5.0"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-nvidia-automagic.patch \
+ "${FILESDIR}"/${PN}-1.0.1-gcc43.patch \
+ "${FILESDIR}"/${PN}-1.0.1-gcc44.patch
+
+ eautoreconf
+}
+
+src_configure() {
+ local myconf
+
+ if use video_cards_nvidia; then
+ myconf="--with-cg-prefix=/opt/nvidia-cg-toolkit"
+ append-flags $(no-as-needed) # binary-only libCg is not properly linked
+ fi
+
+ econf \
+ --disable-dependency-tracking \
+ $(use_enable video_cards_nvidia nvidia) \
+ $(use_with opengl fltk-config /usr/bin/fltk-config) \
+ ${myconf}
+}
+
+src_install() {
+ emake \
+ DESTDIR="${D}" \
+ docdir="/usr/share/doc/${PF}/pdf" \
+ install || die
+
+ dodoc AUTHORS ChangeLog NEWS README
+}
diff --git a/media-gfx/openexr_viewers/openexr_viewers-2.0.1.ebuild b/media-gfx/openexr_viewers/openexr_viewers-2.0.1.ebuild
new file mode 100644
index 000000000000..a963d5b258c3
--- /dev/null
+++ b/media-gfx/openexr_viewers/openexr_viewers-2.0.1.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit autotools eutils flag-o-matic
+
+DESCRIPTION="OpenEXR Viewers"
+HOMEPAGE="http://openexr.com/"
+SRC_URI="http://download.savannah.gnu.org/releases/openexr/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
+IUSE="cg opengl"
+
+RDEPEND=">=media-libs/ilmbase-${PV}:=
+ >=media-libs/openexr-${PV}:=
+ media-libs/ctl:=
+ >=media-libs/openexr_ctl-1.0.1-r2:=
+ opengl? (
+ virtual/opengl
+ x11-libs/fltk:1[opengl]
+ cg? ( media-gfx/nvidia-cg-toolkit )
+ )"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+src_prepare() {
+ sed -i -e 's:AM_CONFIG_HEADER:AC_CONFIG_HEADERS:' configure.ac || die
+ epatch "${FILESDIR}"/${PN}-2.0.0-nvidia-automagic.patch
+ eautoreconf
+}
+
+src_configure() {
+ local myconf
+
+ if use cg; then
+ myconf="--with-cg-prefix=/opt/nvidia-cg-toolkit"
+ append-flags "$(no-as-needed)" # binary-only libCg is not properly linked
+ fi
+
+ econf \
+ $(use_enable cg) \
+ $(use_with opengl fltk-config /usr/bin/fltk-config) \
+ ${myconf}
+}
+
+src_install() {
+ emake \
+ DESTDIR="${D}" \
+ docdir=/usr/share/doc/${PF}/pdf \
+ install
+
+ dodoc AUTHORS ChangeLog NEWS README
+}
diff --git a/media-gfx/openexr_viewers/openexr_viewers-2.1.0.ebuild b/media-gfx/openexr_viewers/openexr_viewers-2.1.0.ebuild
new file mode 100644
index 000000000000..5a6fdeb5e527
--- /dev/null
+++ b/media-gfx/openexr_viewers/openexr_viewers-2.1.0.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit autotools eutils flag-o-matic
+
+DESCRIPTION="OpenEXR Viewers"
+HOMEPAGE="http://openexr.com/"
+SRC_URI="http://download.savannah.gnu.org/releases/openexr/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="amd64 hppa ia64 ppc ppc64 ~sparc x86 ~x86-fbsd"
+IUSE="cg opengl"
+
+RDEPEND=">=media-libs/ilmbase-${PV}:=
+ >=media-libs/openexr-${PV}:=
+ media-libs/ctl:=
+ >=media-libs/openexr_ctl-1.0.1-r2:=
+ opengl? (
+ virtual/opengl
+ x11-libs/fltk:1[opengl]
+ cg? ( media-gfx/nvidia-cg-toolkit )
+ )"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+src_prepare() {
+ sed -i -e 's:AM_CONFIG_HEADER:AC_CONFIG_HEADERS:' configure.ac || die
+ epatch "${FILESDIR}"/${PN}-2.0.0-nvidia-automagic.patch
+ eautoreconf
+}
+
+src_configure() {
+ local myconf
+
+ if use cg; then
+ myconf="--with-cg-prefix=/opt/nvidia-cg-toolkit"
+ append-flags "$(no-as-needed)" # binary-only libCg is not properly linked
+ fi
+
+ econf \
+ $(use_enable cg) \
+ $(use_with opengl fltk-config /usr/bin/fltk-config) \
+ ${myconf}
+}
+
+src_install() {
+ emake \
+ DESTDIR="${D}" \
+ docdir=/usr/share/doc/${PF}/pdf \
+ install
+
+ dodoc AUTHORS ChangeLog NEWS README
+}
diff --git a/media-gfx/openexr_viewers/openexr_viewers-2.2.0-r1.ebuild b/media-gfx/openexr_viewers/openexr_viewers-2.2.0-r1.ebuild
new file mode 100644
index 000000000000..9e78e40c52af
--- /dev/null
+++ b/media-gfx/openexr_viewers/openexr_viewers-2.2.0-r1.ebuild
@@ -0,0 +1,58 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit autotools flag-o-matic
+
+DESCRIPTION="OpenEXR Viewers"
+HOMEPAGE="http://openexr.com/"
+SRC_URI="http://download.savannah.gnu.org/releases/openexr/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
+IUSE="cg opengl"
+
+RDEPEND="~media-libs/ilmbase-${PV}:=
+ ~media-libs/openexr-${PV}:=
+ >=media-libs/ctl-1.5.2:=
+ x11-libs/fltk:1[opengl]
+ opengl? (
+ virtual/opengl
+ x11-libs/fltk:1[opengl]
+ cg? ( media-gfx/nvidia-cg-toolkit )
+ )"
+
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+PATCHES=( "${FILESDIR}/${P}-Remove-nVidia-automagic.patch" )
+
+src_prepare() {
+ default
+ sed -i -e 's:AM_CONFIG_HEADER:AC_CONFIG_HEADERS:' configure.ac || die
+ eautoreconf
+}
+
+src_configure() {
+ local myconf
+
+ if use cg; then
+ myconf="--with-cg-prefix=/opt/nvidia-cg-toolkit"
+ append-flags "$(no-as-needed)" # binary-only libCg is not properly linked
+ fi
+
+ econf \
+ $(use_enable cg) \
+ $(use_with opengl fltk-config /usr/bin/fltk-config) \
+ ${myconf}
+}
+
+src_install() {
+ emake \
+ DESTDIR="${D}" \
+ docdir=/usr/share/doc/${PF}/pdf \
+ install
+
+ dodoc AUTHORS ChangeLog NEWS README
+}
diff --git a/media-gfx/openexr_viewers/openexr_viewers-2.2.0.ebuild b/media-gfx/openexr_viewers/openexr_viewers-2.2.0.ebuild
new file mode 100644
index 000000000000..a963d5b258c3
--- /dev/null
+++ b/media-gfx/openexr_viewers/openexr_viewers-2.2.0.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit autotools eutils flag-o-matic
+
+DESCRIPTION="OpenEXR Viewers"
+HOMEPAGE="http://openexr.com/"
+SRC_URI="http://download.savannah.gnu.org/releases/openexr/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
+IUSE="cg opengl"
+
+RDEPEND=">=media-libs/ilmbase-${PV}:=
+ >=media-libs/openexr-${PV}:=
+ media-libs/ctl:=
+ >=media-libs/openexr_ctl-1.0.1-r2:=
+ opengl? (
+ virtual/opengl
+ x11-libs/fltk:1[opengl]
+ cg? ( media-gfx/nvidia-cg-toolkit )
+ )"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+src_prepare() {
+ sed -i -e 's:AM_CONFIG_HEADER:AC_CONFIG_HEADERS:' configure.ac || die
+ epatch "${FILESDIR}"/${PN}-2.0.0-nvidia-automagic.patch
+ eautoreconf
+}
+
+src_configure() {
+ local myconf
+
+ if use cg; then
+ myconf="--with-cg-prefix=/opt/nvidia-cg-toolkit"
+ append-flags "$(no-as-needed)" # binary-only libCg is not properly linked
+ fi
+
+ econf \
+ $(use_enable cg) \
+ $(use_with opengl fltk-config /usr/bin/fltk-config) \
+ ${myconf}
+}
+
+src_install() {
+ emake \
+ DESTDIR="${D}" \
+ docdir=/usr/share/doc/${PF}/pdf \
+ install
+
+ dodoc AUTHORS ChangeLog NEWS README
+}
diff --git a/media-gfx/openmesh/Manifest b/media-gfx/openmesh/Manifest
new file mode 100644
index 000000000000..e7ab4395d5f9
--- /dev/null
+++ b/media-gfx/openmesh/Manifest
@@ -0,0 +1,5 @@
+DIST OpenMesh-4.1.tar.bz2 24728164 SHA256 3e30cd7325db6367175e2e88c7516c23b7f90c9e1ff739c7d62e7de21228bb8e SHA512 064a4d5cb467589869baf4a302e6c620bd84de874b24019252b97ef863b59e83f2fe23ea45e4a5162a7765847da19f75f563f084cf2b3ae77c7e704b4c859b71 WHIRLPOOL 6989d0ff9dd24bf5b8252e6fc0a416258015d1b5a6202b4e7583c1f2eefe59826a5e2aaa6d50f105083f43680431a67e1cab5b81ace06b119d4e3737267f79ee
+EBUILD openmesh-4.1.ebuild 1707 SHA256 abf6d562a36cc897252e92f28e01b1ffd62b436d7d3c0b769dc003b1d01d2415 SHA512 4d60c7c02574fe6d7310ffb3423db963b5b45d58f198c9cd5bb7b5549d070a78bfc09af27e6c33ae1337786eadf28279dbd3ac5b6b5c2aaa95099215c8d0bb7d WHIRLPOOL 9ac625d497c75cb5478e67c2046b074f1ea6d02beacc8ddf4714b6aac2fbfab9e259d415c114f2daca7c9fd0f81ed24df76ff4eb1f907ba80b7a4db56c29f5ad
+MISC ChangeLog 2937 SHA256 2229071e998ed82dedfbbf2281201c0ed830440330842a235f638198831dd858 SHA512 886d8555d071c9a986003bfd892b57825f4b0e50500024119080277f65f57ed443aac9ffb907e52e2c82e35a61abb694682b08bfe35cb61a7877e327f9d21074 WHIRLPOOL 2d3631d0cddf66e842211f030dc22ba1edc909d6584c3cd081704d3155f8171f3229d1520466574c2bd508dc38738208d6e03ca461fbd0f6356cb2213f09a30b
+MISC ChangeLog-2015 5807 SHA256 9d69315ed137dda3a86388dfc927bef051e1a61a4123571255c903e0505111ab SHA512 91069a1a91748a3cf87769cb4b1c3e029c9e9f17a8d0bea4ea8468824661bfc47cbf70f37ce5ef803d68a04ef5adbf3eed81dc72ce8ef089deaa3aec649543ad WHIRLPOOL 154c33bf8efcb287bde4f352093eb5f4007eaa085e407dd9d557dd5bfc29ee77738ac3ec4ee3ceda96c5f0c99b79d7905de0ff9853620c620907147edd257571
+MISC metadata.xml 648 SHA256 000599fdce7c00c19d50dea5c568ca297de1a037c183eb0f2962119acaba54e1 SHA512 24e414a301d38d43961c5de285fc2fe2638a5a7c1d606d3f89efb5f701399d743382a0761f72f4aaf1d143755349a5a0f0cd49171a36137f65c1b7b8d3ccdcef WHIRLPOOL a2c6163f724a1eaae55fac08106066e0023d869764f712075e09a4c3080d367462f985e136ee7853284af54fcc3225b4d9f0fb5e09fbb2192a8258eef322b221
diff --git a/media-gfx/openmesh/metadata.xml b/media-gfx/openmesh/metadata.xml
new file mode 100644
index 000000000000..2401960ac413
--- /dev/null
+++ b/media-gfx/openmesh/metadata.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <!-- maintainer-needed -->
+ <longdescription>
+ OpenMesh is a generic and efficient data structure for representing and
+ manipulating polygonal meshes. OpenMesh is developed at the Computer Graphics
+ Group, RWTH Aachen, as part of the OpenSGPlus project, is funded by the
+ German Ministry for Research and Education (BMBF), and will serve as
+ geometry kernel upon which the so-called high level primitives (e.g.
+ subdivision surfaces or progressive meshes) of OpenSGPlus are built.
+ </longdescription>
+</pkgmetadata>
diff --git a/media-gfx/openmesh/openmesh-4.1.ebuild b/media-gfx/openmesh/openmesh-4.1.ebuild
new file mode 100644
index 000000000000..bf2121f0a09e
--- /dev/null
+++ b/media-gfx/openmesh/openmesh-4.1.ebuild
@@ -0,0 +1,68 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+inherit eutils cmake-utils
+
+MY_PN="OpenMesh"
+MY_PV="${PV/_rc/-RC}"
+S="${WORKDIR}/${MY_PN}-${MY_PV}"
+
+DESCRIPTION="A generic data structure to represent and manipulate polygonal meshes"
+HOMEPAGE="http://www.openmesh.org/"
+SRC_URI="http://openmesh.org/media/Releases/${MY_PV/-RC/RC}/${MY_PN}-${MY_PV}.tar.bz2"
+
+LICENSE="BSD"
+SLOT="4"
+KEYWORDS="~amd64 ~ia64 ~x86"
+IUSE="qt5 static-libs test"
+
+RDEPEND="
+ qt5? ( dev-qt/qtgui:5
+ dev-qt/qtopengl:5
+ media-libs/freeglut )"
+DEPEND="${RDEPEND}
+ test? ( dev-cpp/gtest )"
+
+src_prepare() {
+ # Fix libdir and remove rpath.
+ sed -i \
+ -e "s|\(set (ACG_PROJECT_LIBDIR \"\).*|\1$(get_libdir)/\")|" \
+ -e "s|\(BUILD_WITH_INSTALL_RPATH \)1|\1 0|" \
+ -e "s|\(SKIP_BUILD_RPATH\) 0|\1 1|" \
+ -e '/^ *INSTALL_RPATH/d' \
+ cmake/ACGCommon.cmake || die
+
+ if ! use static-libs; then
+ sed -i "s|\(SHARED\)ANDSTATIC|\1|" \
+ src/${MY_PN}/{Core,Tools}/CMakeLists.txt || die
+ sed -i '/OpenMeshCoreStatic/d' \
+ src/${MY_PN}/Tools/CMakeLists.txt || die
+ fi
+}
+
+src_configure() {
+ mycmakeargs=""
+
+ mycmakeargs="${mycmakeargs} -DOPENMESH_BUILD_UNIT_TESTS=TRUE"
+
+ # Disable python bindings until someone wants them.
+ mycmakeargs="${mycmakeargs} -DOPENMESH_BUILD_PYTHON_BINDINGS=FALSE"
+ mycmakeargs="${mycmakeargs} -DOPENMESH_BUILD_PYTHON_UNIT_TESTS=FALSE"
+
+ if ! use qt5; then
+ mycmakeargs="${mycmakeargs} -DBUILD_APPS=OFF"
+ fi
+
+ cmake-utils_src_configure
+}
+
+src_install() {
+ cmake-utils_src_install
+ dodoc LICENSE/* README CHANGELOG
+}
+
+src_test() {
+ cd "${BUILD_DIR}" || die
+ LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${BUILD_DIR}/Build/$(get_libdir) ctest --verbose
+}
diff --git a/media-gfx/openscad/Manifest b/media-gfx/openscad/Manifest
new file mode 100644
index 000000000000..f82de386c787
--- /dev/null
+++ b/media-gfx/openscad/Manifest
@@ -0,0 +1,8 @@
+AUX 50openscad-gentoo.el 167 SHA256 45ed16a3c90a663d3ad95cef44dfd5c653deb5a3e60d978c03d63c2875c6141b SHA512 ce669eba45ab90e9dbcd770a7470ca9ed7088b1acabbc876fe4d31dc7a6edd36076063e4bd417d348c3e073113e3ad2bc2dd0ac89e02d3d8aeca7627ad7d2a1e WHIRLPOOL 0840035c763c131962132c894ba0b32102e815eb0810ee98c8541fef5e09d673313f491399d3196eb3dd089079ab3fd2154c4703c7bb1cf0c4247e80fc16e0e5
+DIST openscad-2015.03-2.src.tar.gz 13307974 SHA256 a2535bb9e27d96e10e1e19268a596155164c7129d410a0c7f96edc2d09400083 SHA512 66e93715987a5211ce15c10ea39a9fec3296b606ace0aba1cda019635d5b26021457c8e49f389daa90a0da02e41007eab662e1ed6608cb51c24de00253b9783f WHIRLPOOL 1454a22464f5dcf9726d5bb4fa5f7c080e419e44a3877a5ac43590e2b0552ecb169a9d2a9e15868c8020ffcfb894fc84f0269460f032f516ec9286f27155ca73
+EBUILD openscad-2015.03_p2-r1.ebuild 1066 SHA256 9465089bcc969fe54a16dd7009beec94c7b7b81d82c342f2b448e8479c7f655f SHA512 483d549608f9d1627922023c45ce185b653cbdaf812c63a8da01108c2148dbc7e716e74d7e0c1df061c6ccb9b4d99f1eb177ea09ce733f329b765ff1b288dbb4 WHIRLPOOL 7abd4385079ed046f54f01f06cee57e9ab012508d3f4ec9fed6941fd57cfcbdee31650e3af21985b6cc669499f4074bd5a784b080164ad52d4e97182baf15a6d
+EBUILD openscad-2015.03_p2-r2.ebuild 1328 SHA256 11602631d73cb370e2a5ae3072f62d7a542d437dc3904e316d25f2a3669b9070 SHA512 dd31cc128432763c3f02678363e5bba28798831aa589e0e613fccbd4cb3113947ca4b28a231dd9ab1c01730403829b4cc0dfd6f40b59c476a8b22f45129bc521 WHIRLPOOL 7efee2e250170c8a7ee157ecf497a0666063ea115047a309ecc020b6931b1e68d0109632083f65ec15c460dc58f0a163d783d5399965c57fbd23d2e7db4d60c0
+EBUILD openscad-9999.ebuild 1157 SHA256 defcb6541bec05738a084677760d6711963f5b0430e5caed96c541caa6a10176 SHA512 f581512ac8edb8086f77296886ce32e23352cc36a5e8102cd96e915d0b964a5b564e16dc367da94857b1928248607bda447970745b46c2c61d0507b8d043b8ae WHIRLPOOL d5cdcf56f667dde69c640e21919ee95250d445d1fdc535a73b4b476252a6b4662f24b62750b3f23bde2a7f9d793f5c5d92f15f2ff417c260be784faf56470e45
+MISC ChangeLog 3209 SHA256 9d2fba0d7e98e0171fc2dad0642b3f0ac0e2422d8d6beb490c466daecbe51c81 SHA512 450299105f20f6c7eeb51dabdc6b7ba99f72d533ee0b02a82f924fbd8b57869578d9ecf723caf11d9db3fd26ffb268bb71243d9937345a41cf1f6740b824c235 WHIRLPOOL bc009a72a50a52f93bb5e1ced3bffe36bae908a46887f74848f2406c7d57446a59e019e5c4ed7d3481f4781a7ed921acc87b77740e3b134b829fa1cf9f48c304
+MISC ChangeLog-2015 1547 SHA256 b428dfdef4d7fba0346aaab3071a34b669793adcdc3ff47fdbcfb9c641718d9d SHA512 2cdd2755244984c643f4ac3681bfb9c6f2c3b17732863cf619f7514a200a6535c8b276e3aacda6a2d5464be954b8e07a13a90ba2b746904711ad18342ad1197f WHIRLPOOL e81a768275199a46ccf27af4f69b8d175b319d3167c893b710a7cf768d037accfb2bc0e217f76391281ef83881a0fe4eaca867ac9641c23d83dd143316d4d931
+MISC metadata.xml 830 SHA256 486a5b64ebd3b6b0fbb0be8b3cfde01f73e8735020f7ad90fec6754abd63cf08 SHA512 8c12064c65b8ffca0ad8ec585d3de5ed4ac17bec6e4c7340aba2980d2ddb047d1f7b0c5405cdb4b72869749f6ebaddf29bd6fa03eec8e71c8fa2ea3910767617 WHIRLPOOL 1d8b8520425bf31857948e1d80c8f29c1d2bedd36f05638262fa7db8caf1b980ae396be5def4ed9dcfee12e0879a4442166125bd33a9c51bb54ba9a997500bf2
diff --git a/media-gfx/openscad/files/50openscad-gentoo.el b/media-gfx/openscad/files/50openscad-gentoo.el
new file mode 100644
index 000000000000..3cc7c1a7c46f
--- /dev/null
+++ b/media-gfx/openscad/files/50openscad-gentoo.el
@@ -0,0 +1,3 @@
+(add-to-list 'load-path "@SITELISP@")
+(autoload 'scad-mode "scad-mode" "Major mode for editing SCAD code." t)
+(add-to-list 'auto-mode-alist '("\\.scad$" . scad-mode))
diff --git a/media-gfx/openscad/metadata.xml b/media-gfx/openscad/metadata.xml
new file mode 100644
index 000000000000..9e07fd9d7834
--- /dev/null
+++ b/media-gfx/openscad/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>xmw@gentoo.org</email>
+ <name>michael weber</name>
+ </maintainer>
+ <longdescription>
+OpenSCAD is a software for creating solid 3D CAD objects. Unlike most free software for creating 3D models (such as the famous application Blender) it does not focus on the artistic aspects of 3D modelling but instead on the CAD aspects. Thus it might be the application you are looking for when you are planning to create 3D models of machine parts but pretty sure is not what you are looking for when you are more interested in creating computer-animated movies. OpenSCAD is free software and available for Linux/UNIX, MS Windows and Mac OS X.
+ </longdescription>
+</pkgmetadata>
diff --git a/media-gfx/openscad/openscad-2015.03_p2-r1.ebuild b/media-gfx/openscad/openscad-2015.03_p2-r1.ebuild
new file mode 100644
index 000000000000..1b882516d55d
--- /dev/null
+++ b/media-gfx/openscad/openscad-2015.03_p2-r1.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit eutils qmake-utils
+
+MY_PV="2015.03-2"
+
+DESCRIPTION="The Programmers Solid 3D CAD Modeller"
+HOMEPAGE="http://www.openscad.org/"
+SRC_URI="http://files.openscad.org/${PN}-${MY_PV}.src.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+CDEPEND="media-gfx/opencsg
+ sci-mathematics/cgal
+ dev-qt/qtcore:4
+ dev-qt/qtgui:4[-egl]
+ dev-qt/qtopengl:4[-egl]
+ dev-cpp/eigen:3
+ dev-libs/glib:2
+ dev-libs/gmp:0=
+ dev-libs/mpfr:0=
+ dev-libs/boost:=
+ media-libs/fontconfig:1.0
+ media-libs/freetype:2
+ media-libs/glew:*
+ media-libs/harfbuzz
+ x11-libs/qscintilla:=[qt4(-)]"
+DEPEND="${CDEPEND}"
+RDEPEND="${CDEPEND}"
+S="${WORKDIR}/${PN}-${MY_PV}"
+
+src_prepare() {
+ #Use our CFLAGS (specifically don't force x86)
+ sed -i "s/QMAKE_CXXFLAGS_RELEASE = .*//g" ${PN}.pro || die
+ sed -i "s/\/usr\/local/\/usr/g" ${PN}.pro || die
+
+ eapply_user
+}
+
+src_configure() {
+ eqmake4 "${PN}.pro"
+}
+
+src_install() {
+ emake install INSTALL_ROOT="${D}"
+ einstalldocs
+}
diff --git a/media-gfx/openscad/openscad-2015.03_p2-r2.ebuild b/media-gfx/openscad/openscad-2015.03_p2-r2.ebuild
new file mode 100644
index 000000000000..67206bfa9e1f
--- /dev/null
+++ b/media-gfx/openscad/openscad-2015.03_p2-r2.ebuild
@@ -0,0 +1,69 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit elisp-common eutils qmake-utils
+
+MY_PV="2015.03-2"
+SITEFILE="50${PN}-gentoo.el"
+
+DESCRIPTION="The Programmers Solid 3D CAD Modeller"
+HOMEPAGE="http://www.openscad.org/"
+SRC_URI="http://files.openscad.org/${PN}-${MY_PV}.src.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="emacs"
+
+DEPEND="media-gfx/opencsg
+ sci-mathematics/cgal
+ dev-qt/qtcore:4
+ dev-qt/qtgui:4[-egl]
+ dev-qt/qtopengl:4[-egl]
+ dev-cpp/eigen:3
+ dev-libs/glib:2
+ dev-libs/gmp:0=
+ dev-libs/mpfr:0=
+ dev-libs/boost:=
+ media-libs/fontconfig:1.0
+ media-libs/freetype:2
+ media-libs/glew:*
+ media-libs/harfbuzz
+ x11-libs/qscintilla:=[qt4(-)]
+ emacs? ( virtual/emacs )"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/${PN}-${MY_PV}"
+
+src_prepare() {
+ #Use our CFLAGS (specifically don't force x86)
+ sed -i "s/QMAKE_CXXFLAGS_RELEASE = .*//g" ${PN}.pro || die
+ sed -i "s/\/usr\/local/\/usr/g" ${PN}.pro || die
+
+ eapply_user
+}
+
+src_configure() {
+ eqmake4 "${PN}.pro"
+}
+
+src_compile() {
+ default
+
+ if use emacs ; then
+ elisp-compile contrib/*.el
+ fi
+}
+
+src_install() {
+ emake install INSTALL_ROOT="${D}"
+
+ if use emacs; then
+ elisp-site-file-install "${FILESDIR}/${SITEFILE}"
+ elisp-install ${PN} contrib/*.el contrib/*.elc
+ fi
+
+ einstalldocs
+}
diff --git a/media-gfx/openscad/openscad-9999.ebuild b/media-gfx/openscad/openscad-9999.ebuild
new file mode 100644
index 000000000000..95b2d2430823
--- /dev/null
+++ b/media-gfx/openscad/openscad-9999.ebuild
@@ -0,0 +1,64 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit elisp-common eutils git-r3 qmake-utils
+
+SITEFILE="50${PN}-gentoo.el"
+
+DESCRIPTION="The Programmers Solid 3D CAD Modeller"
+HOMEPAGE="http://www.openscad.org/"
+EGIT_REPO_URI="https://github.com/openscad/openscad.git"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS=""
+IUSE="emacs"
+
+DEPEND="media-gfx/opencsg
+ sci-mathematics/cgal
+ dev-qt/qtcore:4
+ dev-qt/qtgui:4[-egl]
+ dev-qt/qtopengl:4[-egl]
+ dev-cpp/eigen:3
+ dev-libs/glib:2
+ dev-libs/gmp:0=
+ dev-libs/mpfr:0=
+ dev-libs/boost:=
+ media-libs/fontconfig:1.0
+ media-libs/freetype:2
+ media-libs/glew:*
+ media-libs/harfbuzz
+ x11-libs/qscintilla:=[qt4(-)]
+ emacs? ( virtual/emacs )"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ sed -i "s/\/usr\/local/\/usr/g" ${PN}.pro || die
+
+ default
+}
+
+src_configure() {
+ eqmake4 "${PN}.pro"
+}
+
+src_compile() {
+ default
+
+ if use emacs ; then
+ elisp-compile contrib/*.el
+ fi
+}
+
+src_install() {
+ emake install INSTALL_ROOT="${D}"
+
+ if use emacs; then
+ elisp-site-file-install "${FILESDIR}/${SITEFILE}"
+ elisp-install ${PN} contrib/*.el contrib/*.elc
+ fi
+
+ einstalldocs
+}
diff --git a/media-gfx/opentoonz/Manifest b/media-gfx/opentoonz/Manifest
new file mode 100644
index 000000000000..b1a0f3fab540
--- /dev/null
+++ b/media-gfx/opentoonz/Manifest
@@ -0,0 +1,4 @@
+AUX opentoonz-1.1.2-gcc6-no-throw-in-destructors.patch 1469 SHA256 cafb0e94d726f1ba251ecc6985bb9892876bfcf1c8f5e485970f314a091d4d0b SHA512 c11194c06df6dc2e2ce18f3c6863c19191793512672779a2b5d4df2e2b59348dd4c71c7ab887546b96943e97e0257b3aa152f45aa53a3e5ed95008fa3d6b59d5 WHIRLPOOL b21e700b376327b67fefcac8fa99ab037885a7ee66cc301c5796774a4121b5d3402a581f5c624a6b309ed75115f3ae7959c8efd03efe612aa9fa39a79f471dae
+DIST opentoonz-1.1.2.tar.gz 36777909 SHA256 e9943abbd49befb5c8963fd7cb744b6c5b93a4faa02c8564610b848d189ea029 SHA512 800a741cb40e7dede79ef92705fc8fe3a23524c8a4397c30f80a81a7513c98606fb1bb5574188969ba08cfe8995d679f9fc5ecb696a6ac14c48aa2646a2c871e WHIRLPOOL 2664e8f087163c4db3413135c7943d290088c116f91f07d414838b3efa2039fae2cf8e1fc1bf1521de580dc8d561cf16c4aee34cf165b2fd920ec02456e8b404
+EBUILD opentoonz-1.1.2.ebuild 2152 SHA256 e70645b975a2840614b6e8bd6e20951af9107be51b5d3c5e4e6221bb4b74c3b3 SHA512 62ca55a27d0e4ca42f274747b530221e003e67774fb822969f1b7e4e77eb80b961894a6362c45633c642dcbb1e35572ca77056d7cf43fede9f632789bb53aa35 WHIRLPOOL 8da5f434fd11de83f53e23574acdec12b9ad4d4909e8bd3d129bace379aff540e21410b11c09a63053589f94c13d88a0dc08b70cbeb76d3cb64cfadd96d05b9e
+MISC metadata.xml 453 SHA256 299ac9fa6e581f7c3aac4211ad063b7ecf3115d2741c4b7c00e4f3e95d149e2e SHA512 227ed636186b559a5c4fe8728bc8ad2fa519177451f61c6cc67e20be3f8b071715fe38c274956cc987c3c2a49a25b7c7ca61280608871861c0007c558c016d6f WHIRLPOOL f2c00995267edad6754fe287bf153b40ad5bc18d2c714a27b5225b2535323d5d03ee34248cf89f5d6fc3cbeff2d64792678b26f151e5a6c6e4ec4163b48dea34
diff --git a/media-gfx/opentoonz/files/opentoonz-1.1.2-gcc6-no-throw-in-destructors.patch b/media-gfx/opentoonz/files/opentoonz-1.1.2-gcc6-no-throw-in-destructors.patch
new file mode 100644
index 000000000000..ad0e5a2758ea
--- /dev/null
+++ b/media-gfx/opentoonz/files/opentoonz-1.1.2-gcc6-no-throw-in-destructors.patch
@@ -0,0 +1,38 @@
+Bug: https://bugs.gentoo.org/show_bug.cgi?id=612938
+
+From ae91dbad8c33b35ea564d235c8eba63adfcc0fef Mon Sep 17 00:00:00 2001
+From: Peter-Levine <plevine457@gmail.com>
+Date: Wed, 31 May 2017 04:49:36 -0400
+Subject: [PATCH] Don't allow throw() in destructors (#1182)
+
+---
+ toonz/sources/image/3gp/tiio_3gp_proxy.cpp | 2 --
+ toonz/sources/image/mov/tiio_mov_proxy.cpp | 2 --
+ 2 files changed, 4 deletions(-)
+
+diff --git a/toonz/sources/image/3gp/tiio_3gp_proxy.cpp b/toonz/sources/image/3gp/tiio_3gp_proxy.cpp
+index d1bd79717..03140f695 100644
+--- a/toonz/sources/image/3gp/tiio_3gp_proxy.cpp
++++ b/toonz/sources/image/3gp/tiio_3gp_proxy.cpp
+@@ -138,8 +138,6 @@ TLevelWriter3gp::~TLevelWriter3gp() {
+ QString res;
+
+ stream << (msg << QString("$closeLW3gp") << m_id);
+- if (tipc::readMessage(stream, msg) != "ok")
+- throw TException("Unable to write file");
+ }
+
+ //------------------------------------------------------------------
+diff --git a/toonz/sources/image/mov/tiio_mov_proxy.cpp b/toonz/sources/image/mov/tiio_mov_proxy.cpp
+index 260bbb196..6be067c01 100644
+--- a/toonz/sources/image/mov/tiio_mov_proxy.cpp
++++ b/toonz/sources/image/mov/tiio_mov_proxy.cpp
+@@ -206,8 +206,6 @@ TLevelWriterMov::~TLevelWriterMov() {
+ QString res;
+
+ stream << (msg << QString("$closeLWMov") << m_id);
+- if (tipc::readMessage(stream, msg) != "ok")
+- throw TException("Unable to write file");
+ }
+
+ //------------------------------------------------------------------
diff --git a/media-gfx/opentoonz/metadata.xml b/media-gfx/opentoonz/metadata.xml
new file mode 100644
index 000000000000..83ff81ea39b7
--- /dev/null
+++ b/media-gfx/opentoonz/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>otakuto.gentoo@gmail.com</email>
+ <name>Tact Yoshida</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">opentoonz/opentoonz</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/media-gfx/opentoonz/opentoonz-1.1.2.ebuild b/media-gfx/opentoonz/opentoonz-1.1.2.ebuild
new file mode 100644
index 000000000000..ed5cd3d6884d
--- /dev/null
+++ b/media-gfx/opentoonz/opentoonz-1.1.2.ebuild
@@ -0,0 +1,93 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit cmake-utils
+
+DESCRIPTION="An open-source full-featured 2D animation creation software"
+HOMEPAGE="https://github.com/opentoonz/opentoonz"
+SRC_URI="https://github.com/opentoonz/opentoonz/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="BSD libtiff"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="
+ app-arch/lz4:=
+ >=dev-libs/boost-1.55.0:=
+ dev-libs/lzo:2=
+ dev-qt/qtcore:5
+ dev-qt/qtgui:5
+ dev-qt/qtmultimedia:5
+ dev-qt/qtnetwork:5
+ dev-qt/qtopengl:5
+ dev-qt/qtprintsupport:5
+ dev-qt/qtscript:5
+ dev-qt/qtsvg:5
+ dev-qt/qtwidgets:5
+ dev-qt/qtxml:5
+ media-libs/freeglut:=
+ media-libs/freetype:2=
+ media-libs/glew:=
+ media-libs/libjpeg-turbo:=
+ media-libs/libpng:=
+ media-libs/libsdl2:=
+ sci-libs/blas-reference:=
+ >=sci-libs/superlu-4.1:=
+ sys-libs/zlib:=
+ virtual/libusb:=
+ virtual/opengl
+"
+DEPEND="
+ $RDEPEND
+ virtual/pkgconfig
+ dev-qt/linguist-tools:5
+"
+
+CMAKE_USE_DIR="${S}"/toonz/sources
+
+PATCHES=( "${FILESDIR}"/${P}-gcc6-no-throw-in-destructors.patch )
+
+src_configure()
+{
+ local mycmakeargs=(
+ -DTIFF_LIBRARY="${S}/thirdparty/tiff-4.0.3/libtiff/.libs/libtiff.a"
+ -DSUPERLU_INCLUDE_DIR="${EPREFIX%/}/usr/include/superlu"
+ -DLZO_INCLUDE_DIR="${EPREFIX%/}/usr/include/lzo"
+ -DCMAKE_SKIP_RPATH=ON
+ )
+
+ # The upstream uses their own modified libtiff
+ # See: https://github.com/opentoonz/opentoonz/blob/master/doc/how_to_build_linux.md#building-libtiff
+ cd thirdparty/tiff-4.0.3 || die
+ econf \
+ --with-pic \
+ --disable-jbig \
+ --enable-static \
+ --disable-shared
+
+ cmake-utils_src_configure
+}
+
+src_compile() {
+ cd "${S}"/thirdparty/tiff-4.0.3 || die
+ emake
+
+ cmake-utils_src_compile
+}
+
+pkg_postinst()
+{
+ elog "It is supposedly optional but some files are"
+ elog "actually required to run the executable properly."
+ elog
+ elog "The .config/OpenToonz/ directory in your home folder"
+ elog "will contain your settings, work and other files."
+ elog
+ elog "We need to create it from the command-line:"
+ elog
+ elog "$ mkdir -p \$HOME/.config/OpenToonz"
+ elog "$ cp -r /usr/share/opentoonz/stuff/ \$HOME/.config/OpenToonz/"
+}
diff --git a/media-gfx/openvdb/Manifest b/media-gfx/openvdb/Manifest
new file mode 100644
index 000000000000..accd142508f8
--- /dev/null
+++ b/media-gfx/openvdb/Manifest
@@ -0,0 +1,15 @@
+AUX openvdb-3.2.0-fix-build-system.patch 10122 SHA256 3683ade3d2ce8f24f354452e2f39bba0f6c7a82f9693f2b6fa6569819a44a08a SHA512 15bcce34e0020a229b499aef81ecca496ce4a59fee7a03a47590aaee3491cb6a1bfe44bcc5d2282ac2025f989b3c97b12663442f29bb907a4f5762c59c71618b WHIRLPOOL b44f48af3101381e32dec580f4a3c99344915be1e6bbc397a079886372a2f88b041b9586e034811ae23adcecfe7ee46a5e0cc81a5c7e0fe5fdcbeb25da30b53e
+AUX openvdb-3.2.0-numpy-fix.patch 449 SHA256 f53641c3dfb8a67cfe8b70d8fce84d26e52a72f484b336d629f7f04623fd79fc SHA512 3ef31ebe30b849f20e8380096fa0306be8df25c9fc807b74cbacfcedcab21d67b56674a5bd7c896c0fd2453ab165b254d5f3780fce893a4d57f1fc9b99f60cc7 WHIRLPOOL 93ec9969ae5012bcd7da28939ec616643ab5644f0594a3e30d19180a5815564aa4d92944feec8e5dee75172deca6a877489a00d9cccacea4f22ef368708459fc
+AUX openvdb-4.0.0-build-docs-once.patch 1318 SHA256 9eb23f4c7bc18bfadd31a32f24e75737175035b557d7e2b5bd5620d2262d0c83 SHA512 7255881f72fc718e34318a1e7f5e11305d27a733a914a8b6d7f74a41d356ede04d18cd40e0b483e170b20a2837c29b4b1fcf5c1510b210428783e2458a6fe60a WHIRLPOOL 88054d9a5250fa11288c4999e10ad3753e8efa3dc6a351fc1db0f37a6bcfa48277785172706e01baef5ab1f1a0b894f305ea86699474622617e790ba082be0a4
+AUX openvdb-4.0.0-make-docs-optional.patch 2950 SHA256 0c2e51b0c2406d3b4aa6f1ef6be7fed10151739b728163513d86d780f4b42d37 SHA512 95d90b3f5c428dd13cac3d382da5950c0bba4d0a1c4722d553e14b6ec6243d3774ac99d9eca770a22c2b90c0c9b4e49351268fcd760cffbb38b64cd4fb2a881f WHIRLPOOL 732f1218f13f8f6310849d922d9296709a97ae46e9578e73ce6b11e1245663f258b9e69b2eeb33e6a6edafc47fce97963a98bc87b3ee222514b73bd1bc3740f5
+AUX openvdb-4.0.0-namespace-fixes.patch 4335 SHA256 b3d4743a189865882cb522c8f34f76f29f567fb8417849b38d84dc246bc74961 SHA512 20808d035b2e7fd07081a430ba97ab97931014665668bf823782615c9d6e29dfed96592f623259c848d3df5e62106fc09d43b89d47e8d0e63f89a3defe089b80 WHIRLPOOL 8d36129a30352e3d0fa0141bcbd5b802e40e73793ea9fd12520af7b0eb13077be64927b87649ead59253e4ebec09e2308e657215e03c845d88bebd4d4f1dee12
+AUX openvdb-4.0.0-python-module-install-dir-fix.patch 824 SHA256 05b8e5461d9708deaf961ebab4714bfae3f4f43e329b85543fa4f17f267fee91 SHA512 55786fb82fd5293200c088bf3617d85f73fff380b1ecca569e68d60346c649925e43647f46eff0897047c7b803ab59f6d78a9441b8be8152155ca0ef026fd39b WHIRLPOOL a50a46829f1a8084989cd99bd497f320851084f275a1468a4fdf35b385fa5b3f4f524feafda80fed128053baa33b7e07338368196186cf9422577805764997c7
+DIST openvdb-3.2.0.tar.gz 1368870 SHA256 d4b6eb63a2c1c62ca449399f3d7789638fde655c32a977b50717b727420a634b SHA512 df9a4895b219aae3b5a9616c34eb846d565877ff76648405691f0c903507f6faba94e8eba9173423b50cb5cef80f3ec500a9f70977cb7161701d39fd105abc91 WHIRLPOOL 3b76ba4998ac39405bbbdf0b1a80488234c5f25e8b0943d4520d9fa783384a111e48ff2120e942f5d9b3862e1f227ff89dcc633842e1290060afb1836785455f
+DIST openvdb-4.0.0.tar.gz 1545221 SHA256 eaf37b8e723cfd011df350cb0ef93ffa22d927bf7cb1f72c38176fce523b3537 SHA512 138e23408d725f153f5545c8083cd16f6b3e5cf80308e080d5e463f74f947759cdf5f9d818137ebffaf8b2de77bffa8f38ef0d20758a1418aea1c71702c0001d WHIRLPOOL 8b6413dc3bb7aa6efb2b5472b9df0ccc8493082be02ddd9243fa6ccc1cf183612c8700e3384d1a26f321dda99022292338d61bfa3576cc6ad96a0f35de6fd226
+DIST openvdb-4.0.2-patchset-01.tar.xz 16420 SHA256 c1cbc2f7d484fc3ff0d438e842c81a754996d5fd01f88cc86264bef468bf1050 SHA512 e9399d245d5e2b4130576d688691ac965f031b957df7803b8859f863634b27987c33aabadc5fb463b9d3eec333be84b89cb619dce5bc81c0390d8fb19da830c3 WHIRLPOOL 3d3a59ceab8dc031098047722c539eb1448c1048ac2134cf497a41f4b68eaafc30a80ac1d609a6bd01b554beb8e4693a33a766c5f66e8699bf44e79b349e0b35
+DIST openvdb-4.0.2.tar.gz 1689119 SHA256 7d995976cf124136b874d006496c37589f32de1b877ee7ccce626710823e8dbb SHA512 8e3e12583b81f9b9303b309e839c8321c67b67ff8a0e61bb56c87276bf25c0deff22f5a73c7c5b661b8e5df345bfdabfa6b0aea9bf16fce57d9c53a76751c75d WHIRLPOOL 2ff44f4795fbb141d60fc03b1c5499ce0c0b970ff205d34e5fbd2221d94ff29b5ce43d349e58263f8b54f025cad0e44a6fa0bb58e170296427600d8acb6a69e6
+EBUILD openvdb-3.2.0.ebuild 4011 SHA256 230e8e78e1d03f1733b98f7b16faf560bc71f3afe4bc4a0e0cd54e5bf1617a4e SHA512 c84c3022dad66f313415e01d35db4c9ce28b5a0863a0e5fd8cb20f7c07537dfd06022d9ba688e0e6469224ca2777891c2d812758e53d649d750022463a14abc6 WHIRLPOOL 6203226e2b4eef86fd083f7af6309cb30832b3684be24de3569f57eb2ff9b2bf13e9c6cb2e2bd3f5f0f2abe42e5d5fcd96233d8aac827bdf1a3577adf4d8ac69
+EBUILD openvdb-4.0.0.ebuild 1927 SHA256 b460feb0cdd55f561977a4c597696e6fa74a2d622fcf539210ab60693c48b287 SHA512 dfffa4cb7393df8683df085935acd528683fc7596132cb49cea3c962772f89d732d9a36081403203a3e11470d258c24ee7c509caed2ae56f156ba2298cc9774e WHIRLPOOL 3defb54ff2b12d754faca958510cf662051a29cfd330723bfe5d97d3b7c45771ac2c49bfba7303b12b3fb9102a03c8eefdf7e0df4434ee6a1435d04f5c4e62b5
+EBUILD openvdb-4.0.2.ebuild 1954 SHA256 9b38c94a518178aa349ddbc71d4495e591f6f6811eeaec01d69b5a1e56be3d59 SHA512 a08dce7c38f5475b28b1a1e4d501635ff0c70dadcaaf6a009ba4c0b9e7e701263e8c96491b52769bd6b594f1e90598bfe30e712af43bde4a80b61fe90c007d0b WHIRLPOOL 7f14628d261a55224faaff25966670f12cadca77262888f8692f1e10010917f7cecc519bf0f28ab1a7d8cb3dc1e871e3b04379ec535baf5bda6df198591c59c2
+MISC ChangeLog 1550 SHA256 0c2e07adabb461b36caac5a5f721da3258407607d6cb883ec6af5a888ed66ed1 SHA512 b4e23ac5562069c50079450d94029edeba0c280fa170f0f315dab799830d22d003de78f15986bdf7e64f6797650c7f7c6f69b3c654816855148d4e0977b52276 WHIRLPOOL c38e964fe6a4ce8427b7b50b519d730665882c0a193d914f1468a6ea7c55c44d3f8a8980a258b04d80268995830ec6f479a3e218dee097eeafaa5e32473ae67a
+MISC metadata.xml 1250 SHA256 1113c0c991a7817384b18b0f1b17cfe007de3c152ae80865f5a3fef91d700fc1 SHA512 658f3d0461bdd1c79af3224222b6ea1c8f3107de6520cc80b39590aef0588836d7d04e114200d027eb7b7d2dd1865e60f1135b982eeb3155d3ba102734f1db93 WHIRLPOOL 5cbe7eeb091d305430b8a2733d8a6002b3dac6dc3e3dc1e36a3beed2df5560200d98dc659a51fb5a0a26eaa6aad27f35fb77c9398dfbd9fd8330f13230065b3b
diff --git a/media-gfx/openvdb/files/openvdb-3.2.0-fix-build-system.patch b/media-gfx/openvdb/files/openvdb-3.2.0-fix-build-system.patch
new file mode 100644
index 000000000000..66112af75daf
--- /dev/null
+++ b/media-gfx/openvdb/files/openvdb-3.2.0-fix-build-system.patch
@@ -0,0 +1,262 @@
+* Make build system honour the proper ABI library directory.
+* Replace -isystem arguments with -I, as the former causes issues with GCC 6.
+ See also:
+ https://bugs.gentoo.org/show_bug.cgi?id=597866
+ https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70129
+
+--- a/doxygen-config
++++ b/doxygen-config
+@@ -2257,7 +2257,7 @@
+ # The default value is: png.
+ # This tag requires that the tag HAVE_DOT is set to YES.
+
+-DOT_IMAGE_FORMAT = png
++DOT_IMAGE_FORMAT = svg
+
+ # If DOT_IMAGE_FORMAT is set to svg, then this option can be set to YES to
+ # enable generation of interactive SVG images that allow zooming and panning.
+--- a/Makefile
++++ b/Makefile
+@@ -82,6 +82,7 @@
+
+ # The directory into which to install libraries, executables and header files
+ DESTDIR := /tmp/OpenVDB
++libdir = lib
+
+ # The parent directory of the boost/ header directory
+ BOOST_INCL_DIR := $(HT)/include
+@@ -158,6 +159,9 @@
+ # The directory containing libpython
+ PYTHON_LIB_DIR := $(HFS)/python/lib
+ PYTHON_LIB := -lpython$(PYTHON_VERSION)
++# The Directory to install the python module and includes to.
++PYTHON_INSTALL_INCL_DIR := $(DESTDIR)/python/include/python$(PYTHON_VERSION)
++PYTHON_INSTALL_LIB_DIR := $(DESTDIR)/python/lib/python$(PYTHON_VERSION)
+ # The directory containing libboost_python
+ BOOST_PYTHON_LIB_DIR := /rel/depot/third_party_build/boost/rhel6-1.46.1-0/lib
+ BOOST_PYTHON_LIB := -lboost_python-gcc41-mt-python26-1_46_1
+@@ -179,7 +183,6 @@
+ # (leave blank if Doxygen is unavailable)
+ DOXYGEN := doxygen
+
+-
+ #
+ # Ideally, users shouldn't need to change anything below this line.
+ #
+@@ -207,11 +210,7 @@
+ endif
+ endif
+
+-ifeq (yes,$(strip $(debug)))
+- OPTIMIZE := -g
+-else
+- OPTIMIZE := -O3 -DNDEBUG
+-endif
++OPTIMIZE := -DNDEBUG
+
+ ifeq (yes,$(strip $(verbose)))
+ QUIET :=
+@@ -242,12 +241,12 @@
+ has_python := yes
+ endif
+
+-INCLDIRS := -I . -I .. -isystem $(BOOST_INCL_DIR) -isystem $(ILMBASE_INCL_DIR) -isystem $(TBB_INCL_DIR)
++INCLDIRS := -I. -I.. -I$(BOOST_INCL_DIR) -I$(ILMBASE_INCL_DIR) -I$(TBB_INCL_DIR)
+ ifeq (yes,$(has_blosc))
+- INCLDIRS += -isystem $(BLOSC_INCL_DIR)
++ INCLDIRS += -I$(BLOSC_INCL_DIR)
+ endif
+ ifeq (yes,$(has_log4cplus))
+- INCLDIRS += -isystem $(LOG4CPLUS_INCL_DIR)
++ INCLDIRS += -I$(LOG4CPLUS_INCL_DIR)
+ endif
+
+ CXXFLAGS += -std=c++0x
+@@ -565,9 +564,9 @@
+ python/pyTransform.cc \
+ python/pyVec3Grid.cc \
+ #
+-PYCXXFLAGS := -fPIC -isystem python -isystem $(PYTHON_INCL_DIR) -isystem $(PYCONFIG_INCL_DIR)
++PYCXXFLAGS := -fPIC -Ipython -I$(PYTHON_INCL_DIR) -I$(PYCONFIG_INCL_DIR)
+ ifneq (,$(strip $(NUMPY_INCL_DIR)))
+-PYCXXFLAGS += -isystem $(NUMPY_INCL_DIR) -DPY_OPENVDB_USE_NUMPY
++PYCXXFLAGS += -I$(NUMPY_INCL_DIR) -DPY_OPENVDB_USE_NUMPY
+ endif
+ ifneq (no,$(strip $(PYTHON_WRAP_ALL_GRID_TYPES)))
+ PYCXXFLAGS += -DPY_OPENVDB_WRAP_ALL_GRID_TYPES
+@@ -678,7 +677,7 @@
+ @echo "Building $@ because of $(call list_deps)"
+ $(CXX) -c $(CXXFLAGS) -fPIC -o $@ $<
+
+-all: lib python vdb_print vdb_render vdb_test depend
++all: lib python vdb_print vdb_render vdb_view vdb_test depend
+
+ $(OBJ_NAMES): %.o: %.cc
+ @echo "Building $@ because of $(call list_deps)"
+@@ -719,8 +718,13 @@
+ @echo "Generating documentation because of $(list_deps)"
+ echo -e 'OUTPUT_DIRECTORY=./doc\nGENERATE_LATEX=YES\nGENERATE_HTML=NO' \
+ | cat doxygen-config - | $(DOXYGEN) - $(QUIET) \
+- && cd ./doc/latex && make refman.pdf $(QUIET) \
++ && cd ./doc/latex && $(MAKE) refman.pdf $(QUIET) \
+ && echo 'Created doc/latex/refman.pdf'
++ @#
++ mkdir -p $(DESTDIR)/share/doc/openvdb/pdf; \
++ echo "Created $(DESTDIR)/share/doc/openvdb/pdf"; \
++ cp -r -f doc/latex/refman.pdf $(DESTDIR)/share/doc/openvdb/pdf/; \
++ echo "Copied documentation to $(DESTDIR)/share/doc/openvdb/pdf/"; \
+
+ ifneq (,$(strip $(DOXYGEN)))
+ doc: $(DOC_INDEX)
+@@ -734,14 +738,14 @@
+
+ vdb_print: $(LIBOPENVDB) cmd/openvdb_print/main.cc
+ @echo "Building $@ because of $(list_deps)"
+- $(CXX) $(CXXFLAGS) -o $@ cmd/openvdb_print/main.cc -I . \
++ $(CXX) $(CXXFLAGS) -o $@ cmd/openvdb_print/main.cc -I. \
+ $(LIBOPENVDB_RPATH) -L$(CURDIR) $(LIBOPENVDB) \
+ $(LIBS_RPATH) $(CONCURRENT_MALLOC_LIB)
+
+ vdb_render: $(LIBOPENVDB) cmd/openvdb_render/main.cc
+ @echo "Building $@ because of $(list_deps)"
+- $(CXX) $(CXXFLAGS) -o $@ cmd/openvdb_render/main.cc -I . \
+- -isystem $(EXR_INCL_DIR) -isystem $(ILMBASE_INCL_DIR) \
++ $(CXX) $(CXXFLAGS) -o $@ cmd/openvdb_render/main.cc -I. \
++ -I$(EXR_INCL_DIR) -I$(ILMBASE_INCL_DIR) \
+ -Wl,-rpath,$(EXR_LIB_DIR) -L$(EXR_LIB_DIR) $(EXR_LIB) \
+ -Wl,-rpath,$(ILMBASE_LIB_DIR) -L$(ILMBASE_LIB_DIR) $(ILMBASE_LIB) \
+ $(LIBOPENVDB_RPATH) -L$(CURDIR) $(LIBOPENVDB) \
+@@ -761,12 +765,12 @@
+ $(LIBVIEWER_OBJ_NAMES): $(LIBVIEWER_INCLUDE_NAMES)
+ $(LIBVIEWER_OBJ_NAMES): %.o: %.cc
+ @echo "Building $@ because of $(list_deps)"
+- $(CXX) -c $(CXXFLAGS) -I . -isystem $(GLFW_INCL_DIR) -DGL_GLEXT_PROTOTYPES=1 -fPIC -o $@ $<
++ $(CXX) -c $(CXXFLAGS) -I. -I$(GLFW_INCL_DIR) -DGL_GLEXT_PROTOTYPES=1 -fPIC -o $@ $<
+
+ vdb_view: $(LIBOPENVDB) $(LIBVIEWER_OBJ_NAMES) cmd/openvdb_view/main.cc
+ @echo "Building $@ because of $(list_deps)"
+ $(CXX) $(CXXFLAGS) -o $@ cmd/openvdb_view/main.cc $(LIBVIEWER_OBJ_NAMES) \
+- -I . -Wl,-rpath,$(GLFW_LIB_DIR) -L$(GLFW_LIB_DIR) $(GLFW_LIB) \
++ -I. -Wl,-rpath,$(GLFW_LIB_DIR) -L$(GLFW_LIB_DIR) $(GLFW_LIB) \
+ $(LIBOPENVDB_RPATH) -L$(CURDIR) $(LIBOPENVDB) \
+ $(LIBVIEWER_FLAGS) $(LIBS_RPATH) $(BOOST_THREAD_LIB) $(CONCURRENT_MALLOC_LIB)
+ endif
+@@ -776,7 +780,7 @@
+ $(PYTHON_OBJ_NAMES): $(PYTHON_INCLUDE_NAMES)
+ $(PYTHON_OBJ_NAMES): %.o: %.cc
+ @echo "Building $@ because of $(list_deps)"
+- $(CXX) -c $(CXXFLAGS) -I . $(PYCXXFLAGS) -o $@ $<
++ $(CXX) -c $(CXXFLAGS) -I. $(PYCXXFLAGS) -o $@ $<
+ $(PYTHON_MODULE): $(LIBOPENVDB) $(PYTHON_OBJ_NAMES)
+ @echo "Building $@ because of $(list_deps)"
+ $(CXX) $(CXXFLAGS) $(PYCXXFLAGS) -shared $(PYTHON_SONAME_FLAGS) -o $@ $(PYTHON_OBJ_NAMES) \
+@@ -784,6 +788,22 @@
+ -Wl,-rpath,$(BOOST_PYTHON_LIB_DIR) -L$(BOOST_PYTHON_LIB_DIR) $(BOOST_PYTHON_LIB) \
+ $(LIBOPENVDB_RPATH) -L$(CURDIR) $(LIBOPENVDB) \
+ $(LIBS_RPATH) $(CONCURRENT_MALLOC_LIB)
++ @echo "Installing the python module and includes"
++ @#
++ mkdir -p $(PYTHON_INSTALL_INCL_DIR); \
++ echo "Created $(PYTHON_INSTALL_INCL_DIR)"; \
++ cp -f $(PYTHON_PUBLIC_INCLUDE_NAMES) $(PYTHON_INSTALL_INCL_DIR)/; \
++ echo "Copied Python header files to $(PYTHON_INSTALL_INCL_DIR)"; \
++ mkdir -p $(PYTHON_INSTALL_LIB_DIR); \
++ echo "Created $(PYTHON_INSTALL_LIB_DIR)"; \
++ cp -f $(PYTHON_MODULE) $(PYTHON_INSTALL_LIB_DIR)/; \
++ pushd $(PYTHON_INSTALL_LIB_DIR) > /dev/null; \
++ ln -f -s $(PYTHON_MODULE) $(PYTHON_SONAME); \
++ popd > /dev/null; \
++ echo "Copied Python module to $(PYTHON_INSTALL_LIB_DIR)"
++ @echo "Clean the Python modules so the next one will compile"
++ @#
++ $(RM) $(PYTHON_OBJ_NAMES)
+
+ ifeq (yes,$(has_python))
+ ifneq (,$(strip $(EPYDOC)))
+@@ -794,7 +814,7 @@
+ echo "Created $${pydocdir}"; \
+ export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:$(CURDIR); \
+ export PYTHONPATH=${PYTHONPATH}:$(CURDIR); \
+- $(EPYDOC) --html -o $${pydocdir} $(PYTHON_MODULE_NAME) $(QUIET)
++ $(EPYDOC) --html --html-dir $${pydocdir} $(PYTHON_MODULE_NAME) $(QUIET)
+ else
+ pydoc:
+ @echo "$@"': $$EPYDOC is undefined'
+@@ -815,7 +835,7 @@
+
+ $(UNITTEST_OBJ_NAMES): %.o: %.cc
+ @echo "Building $@ because of $(list_deps)"
+- $(CXX) -c $(CXXFLAGS) -isystem $(CPPUNIT_INCL_DIR) -fPIC -o $@ $<
++ $(CXX) -c $(CXXFLAGS) -I$(CPPUNIT_INCL_DIR) -fPIC -o $@ $<
+
+ ifneq (,$(strip $(CPPUNIT_INCL_DIR)))
+ vdb_test: $(LIBOPENVDB) $(UNITTEST_OBJ_NAMES)
+@@ -835,7 +855,7 @@
+ @echo "$@"': $$(CPPUNIT_INCL_DIR) is undefined'
+ endif
+
+-install: lib python vdb_print vdb_render vdb_view doc pydoc
++install: lib vdb_print vdb_render vdb_view doc pydoc
+ mkdir -p $(DESTDIR)/include/openvdb
+ @echo "Created $(DESTDIR)/include/openvdb"
+ pushd $(DESTDIR)/include/openvdb > /dev/null; \
+@@ -851,42 +871,25 @@
+ fi
+ @echo "Copied header files to $(DESTDIR)/include"
+ @#
+- mkdir -p $(DESTDIR)/lib
+- @echo "Created $(DESTDIR)/lib/"
+- cp -f $(LIBOPENVDB) $(DESTDIR)/lib
+- pushd $(DESTDIR)/lib > /dev/null; \
++ mkdir -p $(DESTDIR)/$(libdir)
++ @echo "Created $(DESTDIR)/$(libdir)/"
++ cp -f $(LIBOPENVDB) $(DESTDIR)/$(libdir)
++ pushd $(DESTDIR)/$(libdir) > /dev/null; \
+ if [ -f $(LIBOPENVDB_SHARED) ]; then \
+ ln -f -s $(LIBOPENVDB_SHARED) $(LIBOPENVDB_SHARED_NAME); \
+ ln -f -s $(LIBOPENVDB_SHARED) $(LIBOPENVDB_SONAME); \
+ fi; \
+ popd > /dev/null
+- @echo "Copied libopenvdb to $(DESTDIR)/lib/"
++ @echo "Copied libopenvdb to $(DESTDIR)/$(libdir)/"
+ @#
+ if [ -f $(LIBVIEWER) ]; \
+ then \
+- cp -f $(LIBVIEWER) $(DESTDIR)/lib; \
+- pushd $(DESTDIR)/lib > /dev/null; \
++ cp -f $(LIBVIEWER) $(DESTDIR)/$(libdir); \
++ pushd $(DESTDIR)/$(libdir) > /dev/null; \
+ if [ -f $(LIBVIEWER_SHARED) ]; then \
+ ln -f -s $(LIBVIEWER_SHARED) $(LIBVIEWER_SHARED_NAME); fi; \
+ popd > /dev/null; \
+- echo "Copied libopenvdb_viewer to $(DESTDIR)/lib/"; \
+- fi
+- @#
+- if [ -f $(PYTHON_MODULE) ]; \
+- then \
+- installdir=$(DESTDIR)/python/include/python$(PYTHON_VERSION); \
+- mkdir -p $${installdir}; \
+- echo "Created $${installdir}"; \
+- cp -f $(PYTHON_PUBLIC_INCLUDE_NAMES) $${installdir}/; \
+- echo "Copied Python header files to $${installdir}"; \
+- installdir=$(DESTDIR)/python/lib/python$(PYTHON_VERSION); \
+- mkdir -p $${installdir}; \
+- echo "Created $${installdir}"; \
+- cp -f $(PYTHON_MODULE) $${installdir}/; \
+- pushd $${installdir} > /dev/null; \
+- ln -f -s $(PYTHON_MODULE) $(PYTHON_SONAME); \
+- popd > /dev/null; \
+- echo "Copied Python module to $${installdir}"; \
++ echo "Copied libopenvdb_viewer to $(DESTDIR)/$(libdir)/"; \
+ fi
+ @#
+ mkdir -p $(DESTDIR)/bin
+@@ -924,7 +927,7 @@
+ for f in $(UNITTEST_SRC_NAMES); \
+ do $(CXX) $(CXXFLAGS) -O0 \
+ -MM $$f -MT `echo $$f | sed 's%\.[^.]*%.o%'` \
+- -isystem $(CPPUNIT_INCL_DIR) >> $(DEPEND); \
++ -I$(CPPUNIT_INCL_DIR) >> $(DEPEND); \
+ done; \
+ fi
+
diff --git a/media-gfx/openvdb/files/openvdb-3.2.0-numpy-fix.patch b/media-gfx/openvdb/files/openvdb-3.2.0-numpy-fix.patch
new file mode 100644
index 000000000000..bef10240477c
--- /dev/null
+++ b/media-gfx/openvdb/files/openvdb-3.2.0-numpy-fix.patch
@@ -0,0 +1,17 @@
+diff --git a/python/pyOpenVDBModule.cc b/openvdb/python/pyOpenVDBModule.cc
+index 508c787..dd069e0 100644
+--- a/python/pyOpenVDBModule.cc
++++ b/python/pyOpenVDBModule.cc
+@@ -592,8 +592,12 @@ BOOST_PYTHON_MODULE(PY_OPENVDB_MODULE_NAME)
+
+ #ifdef PY_OPENVDB_USE_NUMPY
+ // Initialize NumPy.
++#if PY_MAJOR_VERSION >= 3
++ if (_import_array()) { };
++#else
+ import_array();
+ #endif
++#endif
+
+ using namespace openvdb::OPENVDB_VERSION_NAME;
+
diff --git a/media-gfx/openvdb/files/openvdb-4.0.0-build-docs-once.patch b/media-gfx/openvdb/files/openvdb-4.0.0-build-docs-once.patch
new file mode 100644
index 000000000000..5a8baee0f260
--- /dev/null
+++ b/media-gfx/openvdb/files/openvdb-4.0.0-build-docs-once.patch
@@ -0,0 +1,32 @@
+From 5bb7bc424b09f93417a1d447f2d4f3081394f964 Mon Sep 17 00:00:00 2001
+From: Nicholas Yue <yue.nicholas@gmail.com>
+Date: Thu, 17 Nov 2016 16:59:47 -0800
+Subject: [PATCH] Refine Doxygen run so that it is done only once and only
+ during the installation phase
+
+---
+ openvdb/CMakeLists.txt | 6 ++++--
+ 1 file changed, 4 insertions(+), 2 deletions(-)
+
+diff --git a/openvdb/CMakeLists.txt b/openvdb/CMakeLists.txt
+index aa1a080..88e46ca 100644
+--- a/openvdb/CMakeLists.txt
++++ b/openvdb/CMakeLists.txt
+@@ -443,13 +443,15 @@ IF (OPENVDB_BUILD_DOCS)
+ FILE ( WRITE ${CMAKE_CURRENT_BINARY_DIR}/cmake-doxygen-config ${DOXYGEN_CONFIG_CONTENT} )
+ FILE ( APPEND ${CMAKE_CURRENT_BINARY_DIR}/cmake-doxygen-config "OUTPUT_DIRECTORY=${CMAKE_CURRENT_BINARY_DIR}/doc\n" )
+
+- ADD_CUSTOM_TARGET ( doc ALL
++ ADD_CUSTOM_TARGET ( doc
+ ${DOXYGEN_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR}/cmake-doxygen-config
+ WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
+ COMMENT "Generating API documentation with Doxygen" VERBATIM
+ )
+
+- INSTALL ( DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/doc/html/ DESTINATION doc)
++ INSTALL ( CODE "EXECUTE_PROCESS(COMMAND \"${CMAKE_COMMAND}\" --build \"${PROJECT_BINARY_DIR}\" --target doc)")
++ INSTALL ( DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/doc/html DESTINATION docs)
++
+ ENDIF ()
+
+ # Installation
diff --git a/media-gfx/openvdb/files/openvdb-4.0.0-make-docs-optional.patch b/media-gfx/openvdb/files/openvdb-4.0.0-make-docs-optional.patch
new file mode 100644
index 000000000000..92c4fa320596
--- /dev/null
+++ b/media-gfx/openvdb/files/openvdb-4.0.0-make-docs-optional.patch
@@ -0,0 +1,71 @@
+From 3c7f3247e443620658a5cb7b4e9cdea488c450d9 Mon Sep 17 00:00:00 2001
+From: Nicholas Yue <yue.nicholas@gmail.com>
+Date: Thu, 17 Nov 2016 03:58:58 -0800
+Subject: [PATCH] Fix the Doxygen generation problem but current solution is
+ not very elegant as there was a regeneration run of Doxygen. Committing this
+ for now so that at least it will work for the initial 4.0.0 release.
+ Introduce a CMake option variable to toggle the generation and installation
+ of doxygen
+
+---
+ CMakeLists.txt | 1 +
+ openvdb/CMakeLists.txt | 27 +++++++++++++++------------
+ 2 files changed, 16 insertions(+), 12 deletions(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 739d57f..32f82d2 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -33,6 +33,7 @@ PROJECT ( OpenVDB )
+ ENABLE_TESTING()
+
+ OPTION ( OPENVDB_BUILD_UNITTESTS "Build the OpenVDB unit tests" ON )
++OPTION ( OPENVDB_BUILD_DOCS "Build the OpenVDB documentation" OFF )
+ OPTION ( OPENVDB_BUILD_PYTHON_MODULE "Build the pyopenvdb Python module" ON )
+ OPTION ( OPENVDB_BUILD_HOUDINI_SOPS "Build the Houdini SOPs" OFF )
+ OPTION ( OPENVDB_BUILD_MAYA_PLUGIN "Build the Maya plugin" OFF )
+diff --git a/openvdb/CMakeLists.txt b/openvdb/CMakeLists.txt
+index f86b306..aa1a080 100644
+--- a/openvdb/CMakeLists.txt
++++ b/openvdb/CMakeLists.txt
+@@ -97,7 +97,9 @@ FIND_PACKAGE ( ZLIB REQUIRED )
+ FIND_PACKAGE ( ILMBase REQUIRED )
+ FIND_PACKAGE ( OpenEXR REQUIRED )
+ FIND_PACKAGE ( OpenGL REQUIRED )
+-FIND_PACKAGE ( Doxygen REQUIRED )
++IF (OPENVDB_BUILD_DOCS)
++ FIND_PACKAGE ( Doxygen REQUIRED )
++ENDIF ()
+ IF (OPENVDB_BUILD_UNITTESTS)
+ FIND_PACKAGE ( CPPUnit REQUIRED )
+ ENDIF ()
+@@ -435,17 +437,18 @@ IF ( OPENVDB_BUILD_PYTHON_MODULE )
+ ENDIF ( OPENVDB_BUILD_PYTHON_MODULE )
+
+ # Doxygen docmentation
+-FILE ( READ ${CMAKE_CURRENT_SOURCE_DIR}/doxygen-config DOXYGEN_CONFIG_CONTENT )
+-FILE ( WRITE ${CMAKE_CURRENT_BINARY_DIR}/cmake-doxygen-config ${DOXYGEN_CONFIG_CONTENT} )
+-FILE ( APPEND ${CMAKE_CURRENT_BINARY_DIR}/cmake-doxygen-config "OUTPUT_DIRECTORY=${CMAKE_CURRENT_BINARY_DIR}/doc\n" )
+-
+-ADD_CUSTOM_TARGET ( doc
+- ${DOXYGEN_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR}/cmake-doxygen-config
+- WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
+- COMMENT "Generating API documentation with Doxygen" VERBATIM
+-)
+-
+-IF ( EXISTS ${CMAKE_CURRENT_BINARY_DIR}/doc/html )
++IF (OPENVDB_BUILD_DOCS)
++
++ FILE ( READ ${CMAKE_CURRENT_SOURCE_DIR}/doxygen-config DOXYGEN_CONFIG_CONTENT )
++ FILE ( WRITE ${CMAKE_CURRENT_BINARY_DIR}/cmake-doxygen-config ${DOXYGEN_CONFIG_CONTENT} )
++ FILE ( APPEND ${CMAKE_CURRENT_BINARY_DIR}/cmake-doxygen-config "OUTPUT_DIRECTORY=${CMAKE_CURRENT_BINARY_DIR}/doc\n" )
++
++ ADD_CUSTOM_TARGET ( doc ALL
++ ${DOXYGEN_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR}/cmake-doxygen-config
++ WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
++ COMMENT "Generating API documentation with Doxygen" VERBATIM
++ )
++
+ INSTALL ( DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/doc/html/ DESTINATION doc)
+ ENDIF ()
+
diff --git a/media-gfx/openvdb/files/openvdb-4.0.0-namespace-fixes.patch b/media-gfx/openvdb/files/openvdb-4.0.0-namespace-fixes.patch
new file mode 100644
index 000000000000..913c6079a081
--- /dev/null
+++ b/media-gfx/openvdb/files/openvdb-4.0.0-namespace-fixes.patch
@@ -0,0 +1,65 @@
+diff -purN a/cmake/FindILMBase.cmake b/cmake/FindILMBase.cmake
+--- a/cmake/FindILMBase.cmake 2016-11-16 20:24:17.000000000 +0000
++++ b/cmake/FindILMBase.cmake 2017-01-05 09:28:43.941910625 +0000
+@@ -57,15 +57,15 @@ OPTION ( ILMBASE_NAMESPACE_VERSIONING "N
+
+ IF ( ILMBASE_FOUND )
+
+- FILE ( STRINGS "${ILMBASE_LOCATION}/include/OpenEXR/IlmBaseConfig.h" _ilmbase_version_major_string REGEX "#define ILMBASE_VERSION_MAJOR ")
+- STRING ( REGEX REPLACE "#define ILMBASE_VERSION_MAJOR" "" _ilmbase_version_major_unstrip "${_ilmbase_version_major_string}")
+- STRING ( STRIP ${_ilmbase_version_major_unstrip} ILMBASE_VERSION_MAJOR )
++ IF ( ILMBASE_NAMESPACE_VERSIONING )
++ FILE ( STRINGS "${ILMBASE_LOCATION}/include/OpenEXR/IlmBaseConfig.h" _ilmbase_version_major_string REGEX "#define ILMBASE_VERSION_MAJOR ")
++ STRING ( REGEX REPLACE "#define ILMBASE_VERSION_MAJOR" "" _ilmbase_version_major_unstrip "${_ilmbase_version_major_string}")
++ STRING ( STRIP ${_ilmbase_version_major_unstrip} ILMBASE_VERSION_MAJOR )
+
+- FILE ( STRINGS "${ILMBASE_LOCATION}/include/OpenEXR/IlmBaseConfig.h" _ilmbase_version_minor_string REGEX "#define ILMBASE_VERSION_MINOR ")
+- STRING ( REGEX REPLACE "#define ILMBASE_VERSION_MINOR" "" _ilmbase_version_minor_unstrip "${_ilmbase_version_minor_string}")
+- STRING ( STRIP ${_ilmbase_version_minor_unstrip} ILMBASE_VERSION_MINOR )
++ FILE ( STRINGS "${ILMBASE_LOCATION}/include/OpenEXR/IlmBaseConfig.h" _ilmbase_version_minor_string REGEX "#define ILMBASE_VERSION_MINOR ")
++ STRING ( REGEX REPLACE "#define ILMBASE_VERSION_MINOR" "" _ilmbase_version_minor_unstrip "${_ilmbase_version_minor_string}")
++ STRING ( STRIP ${_ilmbase_version_minor_unstrip} ILMBASE_VERSION_MINOR )
+
+- IF ( ILMBASE_NAMESPACE_VERSIONING )
+ SET ( IEX_LIBRARY_NAME Iex-${ILMBASE_VERSION_MAJOR}_${ILMBASE_VERSION_MINOR} )
+ SET ( IEXMATH_LIBRARY_NAME IexMath-${ILMBASE_VERSION_MAJOR}_${ILMBASE_VERSION_MINOR} )
+ SET ( ILMTHREAD_LIBRARY_NAME IlmThread-${ILMBASE_VERSION_MAJOR}_${ILMBASE_VERSION_MINOR} )
+diff -purN a/cmake/FindOpenEXR.cmake b/cmake/FindOpenEXR.cmake
+--- a/cmake/FindOpenEXR.cmake 2016-11-16 20:24:17.000000000 +0000
++++ b/cmake/FindOpenEXR.cmake 2017-01-05 09:34:51.167736304 +0000
+@@ -52,22 +52,24 @@ OPTION ( OPENEXR_NAMESPACE_VERSIONING "N
+
+ IF ( OPENEXR_FOUND )
+
+- FILE ( STRINGS "${OPENEXR_LOCATION}/include/OpenEXR/OpenEXRConfig.h" _openexr_version_major_string REGEX "#define OPENEXR_VERSION_MAJOR ")
+- STRING ( REGEX REPLACE "#define OPENEXR_VERSION_MAJOR" "" _openexr_version_major_unstrip "${_openexr_version_major_string}")
+- STRING ( STRIP ${_openexr_version_major_unstrip} OPENEXR_VERSION_MAJOR )
+-
+- FILE ( STRINGS "${OPENEXR_LOCATION}/include/OpenEXR/OpenEXRConfig.h" _openexr_version_minor_string REGEX "#define OPENEXR_VERSION_MINOR ")
+- STRING ( REGEX REPLACE "#define OPENEXR_VERSION_MINOR" "" _openexr_version_minor_unstrip "${_openexr_version_minor_string}")
+- STRING ( STRIP ${_openexr_version_minor_unstrip} OPENEXR_VERSION_MINOR )
+-
+- MESSAGE ( STATUS "Found OpenEXR v${OPENEXR_VERSION_MAJOR}.${OPENEXR_VERSION_MINOR} at ${OPENEXR_LOCATION}" )
+-
+ IF ( OPENEXR_NAMESPACE_VERSIONING )
++ FILE ( STRINGS "${OPENEXR_LOCATION}/include/OpenEXR/OpenEXRConfig.h" _openexr_version_major_string REGEX "#define OPENEXR_VERSION_MAJOR ")
++ STRING ( REGEX REPLACE "#define OPENEXR_VERSION_MAJOR" "" _openexr_version_major_unstrip "${_openexr_version_major_string}")
++ STRING ( STRIP ${_openexr_version_major_unstrip} OPENEXR_VERSION_MAJOR )
++
++ FILE ( STRINGS "${OPENEXR_LOCATION}/include/OpenEXR/OpenEXRConfig.h" _openexr_version_minor_string REGEX "#define OPENEXR_VERSION_MINOR ")
++ STRING ( REGEX REPLACE "#define OPENEXR_VERSION_MINOR" "" _openexr_version_minor_unstrip "${_openexr_version_minor_string}")
++ STRING ( STRIP ${_openexr_version_minor_unstrip} OPENEXR_VERSION_MINOR )
++
++ MESSAGE ( STATUS "Found OpenEXR v${OPENEXR_VERSION_MAJOR}.${OPENEXR_VERSION_MINOR} at ${OPENEXR_LOCATION}" )
++
+ SET ( ILMIMF_LIBRARY_NAME IlmImf-${OPENEXR_VERSION_MAJOR}_${OPENEXR_VERSION_MINOR} )
+ ELSE ( OPENEXR_NAMESPACE_VERSIONING )
++ MESSAGE ( STATUS "Found OpenEXR at ${OPENEXR_LOCATION}" )
++
+ SET ( ILMIMF_LIBRARY_NAME IlmImf )
+ ENDIF ( OPENEXR_NAMESPACE_VERSIONING )
+-
++
+ SET ( OPENEXR_INCLUDE_DIRS
+ ${OPENEXR_LOCATION}/include
+ ${OPENEXR_LOCATION}/include/OpenEXR
diff --git a/media-gfx/openvdb/files/openvdb-4.0.0-python-module-install-dir-fix.patch b/media-gfx/openvdb/files/openvdb-4.0.0-python-module-install-dir-fix.patch
new file mode 100644
index 000000000000..34c6c76ea9da
--- /dev/null
+++ b/media-gfx/openvdb/files/openvdb-4.0.0-python-module-install-dir-fix.patch
@@ -0,0 +1,16 @@
+diff -purN a/openvdb/CMakeLists.txt b/openvdb/CMakeLists.txt
+--- a/openvdb/CMakeLists.txt 2016-11-16 20:24:17.000000000 +0000
++++ b/openvdb/CMakeLists.txt 2017-01-09 13:46:00.000000000 +0000
+@@ -426,10 +426,11 @@ IF ( OPENVDB_BUILD_PYTHON_MODULE )
+ ADD_TEST ( pytest ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/python/test/TestOpenVDB.py )
+ SET_TESTS_PROPERTIES ( pytest PROPERTIES ENVIRONMENT "PYTHONPATH=${CMAKE_CURRENT_BINARY_DIR}")
+
++ SET ( PYOENVDB_INSTALL_DIRECTORY lib/python${OPENVDB_PYTHON_VERSION_MAJOR}.${OPENVDB_PYTHON_VERSION_MINOR} CACHE STRING "The directory to install the pyopenvdb.so module.")
+ INSTALL ( TARGETS
+ pyopenvdb
+ DESTINATION
+- lib/python${OPENVDB_PYTHON_VERSION_MAJOR}.${OPENVDB_PYTHON_VERSION_MINOR}
++ ${PYOENVDB_INSTALL_DIRECTORY}
+ )
+
+ ENDIF ( OPENVDB_BUILD_PYTHON_MODULE )
diff --git a/media-gfx/openvdb/metadata.xml b/media-gfx/openvdb/metadata.xml
new file mode 100644
index 000000000000..12b9cf4a8f77
--- /dev/null
+++ b/media-gfx/openvdb/metadata.xml
@@ -0,0 +1,35 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer restrict="&gt;=media-gfx/openvdb-3.1.0" type="person">
+ <email>j.scruggs@gmail.com</email>
+ <name>Jonathan Scruggs</name>
+ </maintainer>
+ <maintainer restrict="&gt;=media-gfx/openvdb-3.1.0" type="person">
+ <email>agrigo2001@yahoo.com.au</email>
+ <name>Adrian Grigo</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+ </maintainer>
+ <longdescription>
+ Libraries from Dreamworks Animation for the efficient manipulation
+ of volumetric data used in big budget movies like 'Cloudy with a
+ Chance of Meatballs2' and 'How to Train Your Dragon 2'.
+ </longdescription>
+ <use>
+ <flag restrict="&gt;=media-gfx/openvdb-4.0.0" name="abi3-compat">
+ Enables compatibility with the old 3.x ABI.
+ enabled by dfault.
+ </flag>
+ <flag restrict="&lt;=media-gfx/openvdb-3.2.0" name="openvdb-compression">
+ Adds enhanced compression to files through
+ <pkg>dev-libs/c-blosc</pkg>. Very useful so
+ enabled by dfault.
+ </flag>
+ </use>
+ <upstream>
+ <remote-id type="github">dreamworksanimation/openvdb</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/media-gfx/openvdb/openvdb-3.2.0.ebuild b/media-gfx/openvdb/openvdb-3.2.0.ebuild
new file mode 100644
index 000000000000..bdd39bb6e1f4
--- /dev/null
+++ b/media-gfx/openvdb/openvdb-3.2.0.ebuild
@@ -0,0 +1,161 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python{2_7,3_4,3_5} )
+
+inherit eutils python-r1 toolchain-funcs
+
+DESCRIPTION="Libs for the efficient manipulation of volumetric data"
+HOMEPAGE="http://www.openvdb.org"
+
+SRC_URI="https://github.com/dreamworksanimation/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MPL-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="+openvdb-compression doc python X"
+
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+COMMON_DEPEND="
+ sys-libs/zlib
+ >=dev-libs/boost-1.62:=[${PYTHON_USEDEP}]
+ media-libs/openexr
+ dev-util/cppunit
+ X? ( media-libs/glfw )
+ dev-libs/jemalloc
+ python? ( dev-python/numpy[${PYTHON_USEDEP}] )
+ openvdb-compression? ( >=dev-libs/c-blosc-1.5.0 )
+ dev-libs/log4cplus"
+
+RDEPEND="python? ( ${PYTHON_DEPS} )
+ ${COMMON_DEPEND}"
+
+DEPEND="${RDEPEND}
+ dev-cpp/tbb
+ doc? (
+ app-doc/doxygen
+ python? ( dev-python/pdoc[${PYTHON_USEDEP}] )
+ )
+ ${COMMON_DEPEND}"
+
+S="${WORKDIR}/${P}/${PN}"
+
+PATCHES=(
+ "${FILESDIR}"/${P}-numpy-fix.patch
+ "${FILESDIR}"/${P}-fix-build-system.patch
+)
+
+python_module_compile() {
+ mypythonargs=(
+ PYTHON_VERSION=${EPYTHON/python/}
+ PYTHON_INCL_DIR="$(python_get_includedir)"
+ PYCONFIG_INCL_DIR="$(python_get_includedir)"
+ PYTHON_LIB_DIR="$(python_get_library_path)"
+ PYTHON_LIB="$(python_get_LIBS)"
+ PYTHON_INSTALL_INCL_DIR="${D%/}$(python_get_includedir)"
+ PYTHON_INSTALL_LIB_DIR="${D%/}$(python_get_sitedir)"
+ NUMPY_INCL_DIR="$(python_get_sitedir)"/numpy/core/include/numpy
+ BOOST_PYTHON_LIB_DIR="${myprefixlibdir}"
+ BOOST_PYTHON_LIB=-lboost_python-${EPYTHON/python/}
+ )
+
+ einfo "Compiling module for ${EPYTHON}."
+ emake python "${myemakeargs[@]}" "${mypythonargs[@]}" EPYDOC="" CXX="$(tc-getCXX)"
+
+ # This is so the correct version of pdoc is used
+ mypyscriptdir=$(python_get_scriptdir)
+}
+
+src_compile() {
+ # The build system is designed to compile and install all
+ # in one go, so doing each phase separately would be be
+ # impossible and the functions would all overlap anyways.
+ # Do nothing
+ return
+}
+
+src_install() {
+ local myprefix="${EPREFIX}"/usr
+ local myprefixlibdir="${myprefix}"/"$(get_libdir)"
+ local mypyscriptdir
+
+ # So individule targets can be called without duplication
+ # Common depends:
+ local myemakeargs=(
+ rpath=no
+ shared=yes
+ libdir="$(get_libdir)"
+ LIBOPENVDB_RPATH=
+ DESTDIR="${D}"
+ HFS="${myprefix}"
+ HT="${myprefix}"
+ HDSO="${myprefixlibdir}"
+ CPPUNIT_INCL_DIR="${myprefix}"/include/cppunit
+ CPPUNIT_LIB_DIR="${myprefixlibdir}"
+ LOG4CPLUS_INCL_DIR="${myprefix}"/include/log4cplus
+ LOG4CPLUS_LIB_DIR="${myprefixlibdir}"
+ )
+
+ # Create python list here for use during install phase:
+ # - If python is used, then the last used module will trigger
+ # document install phase. It's the same doc, so build once.
+ # - If no python used, then this will remail blanked out to
+ # disable pydoc.
+ # - pydoc will be called if doc and python use flags are set.
+ local mypythonargs=(
+ PYTHON_VERSION=
+ PYTHON_INCL_DIR=
+ PYCONFIG_INCL_DIR=
+ PYTHON_LIB_DIR=
+ PYTHON_LIB=
+ PYTHON_INSTALL_INCL_DIR=
+ PYTHON_INSTALL_LIB_DIR=
+ NUMPY_INCL_DIR=
+ BOOST_PYTHON_LIB_DIR=
+ BOOST_PYTHON_LIB=
+ )
+
+ # Optional depends:
+ if use X; then
+ myemakeargs+=(
+ GLFW_INCL_DIR="${myprefixlibdir}"
+ GLFW_LIB_DIR="${myprefixlibdir}"
+ )
+ else
+ myemakeargs+=(
+ GLFW_INCL_DIR=
+ GLFW_LIB_DIR=
+ GLFW_LIB=
+ GLFW_MAJOR_VERSION=
+ )
+ fi
+
+ if use openvdb-compression; then
+ myemakeargs+=(
+ BLOSC_INCL_DIR="${myprefix}"/include
+ BLOSC_LIB_DIR="${myprefixlibdir}"
+ )
+ else
+ myemakeargs+=(
+ BLOSC_INCL_DIR=
+ BLOSC_LIB_DIR=
+ )
+ fi
+
+ use doc || myemakeargs+=( DOXYGEN= )
+
+ # Create python modules for each version selected
+ use python && python_foreach_impl python_module_compile
+
+ if use python && use doc; then
+ mypythonargs+=( EPYDOC="${mypyscriptdir}"/pdoc )
+ else
+ mypythonargs+=( EPYDOC="" )
+ fi
+
+ einfo "Compiling the main components."
+ emake install "${myemakeargs[@]}" "${mypythonargs[@]}" CXX="$(tc-getCXX)"
+}
diff --git a/media-gfx/openvdb/openvdb-4.0.0.ebuild b/media-gfx/openvdb/openvdb-4.0.0.ebuild
new file mode 100644
index 000000000000..f3168eb1ec2e
--- /dev/null
+++ b/media-gfx/openvdb/openvdb-4.0.0.ebuild
@@ -0,0 +1,77 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+PYTHON_COMPAT=( python{2_7,3_4,3_5} )
+
+inherit eutils flag-o-matic cmake-utils python-single-r1
+
+DESCRIPTION="Libs for the efficient manipulation of volumetric data"
+HOMEPAGE="http://www.openvdb.org"
+
+SRC_URI="https://github.com/dreamworksanimation/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MPL-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="+abi3-compat doc python"
+
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
+
+RDEPEND="
+ >=dev-libs/boost-1.62:=[python?,${PYTHON_USEDEP}]
+ >=dev-libs/c-blosc-1.5.0
+ dev-libs/jemalloc
+ dev-libs/log4cplus
+ media-libs/glfw:=
+ media-libs/openexr:=
+ sys-libs/zlib
+ x11-libs/libXi
+ x11-libs/libXrandr
+ x11-libs/libXinerama
+ x11-libs/libXcursor
+ python? (
+ ${PYTHON_DEPS}
+ dev-python/numpy[${PYTHON_USEDEP}]
+ )"
+DEPEND="${RDEPEND}
+ dev-cpp/tbb
+ doc? (
+ app-doc/doxygen
+ python? ( dev-python/pdoc[${PYTHON_USEDEP}] )
+ )"
+
+PATCHES=(
+ "${FILESDIR}"/${P}-make-docs-optional.patch
+ "${FILESDIR}"/${P}-build-docs-once.patch
+ "${FILESDIR}"/${P}-namespace-fixes.patch
+ "${FILESDIR}"/${P}-python-module-install-dir-fix.patch
+)
+
+src_configure() {
+ local myprefix="${EPREFIX}"/usr/
+
+ # To stay in sync with Boost
+ append-cxxflags -std=c++14
+
+ # Enable unit tests later in 4.0.1
+ local mycmakeargs=(
+ -DOPENVDB_BUILD_UNITTESTS=OFF
+ -DOPENVDB_BUILD_DOCS=$(usex doc)
+ -DOPENVDB_BUILD_PYTHON_MODULE=$(usex python)
+ -DOPENVDB_ENABLE_3_ABI_COMPATIBLE=$(usex abi3-compat)
+ -DBLOSC_LOCATION="${myprefix}"
+ -DGLEW_LOCATION="${myprefix}"
+ -DUSE_GLFW3=ON
+ -DGLFW3_LOCATION="${myprefix}"
+ -DILMBASE_LOCATION="${myprefix}"
+ -DILMBASE_NAMESPACE_VERSIONING=OFF
+ -DOPENEXR_LOCATION="${myprefix}"
+ -DOPENEXR_NAMESPACE_VERSIONING=OFF
+ -DTBB_LOCATION="${myprefix}"
+ )
+
+ use python && mycmakeargs+=( -DPYOENVDB_INSTALL_DIRECTORY=$(python_get_sitedir) )
+
+ cmake-utils_src_configure
+}
diff --git a/media-gfx/openvdb/openvdb-4.0.2.ebuild b/media-gfx/openvdb/openvdb-4.0.2.ebuild
new file mode 100644
index 000000000000..aeac72948ca4
--- /dev/null
+++ b/media-gfx/openvdb/openvdb-4.0.2.ebuild
@@ -0,0 +1,74 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} )
+
+inherit cmake-utils flag-o-matic python-single-r1 versionator
+
+DESCRIPTION="Libs for the efficient manipulation of volumetric data"
+HOMEPAGE="http://www.openvdb.org"
+SRC_URI="https://github.com/dreamworksanimation/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz
+ https://github.com/dracwyrm/gentoo-patches/raw/master/${PN}/${P}-patchset-01.tar.xz"
+
+LICENSE="MPL-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="+abi3-compat doc python"
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
+
+RDEPEND="sys-libs/zlib:=
+ >=dev-libs/boost-1.62:=[python?,${PYTHON_USEDEP}]
+ media-libs/openexr:=
+ media-libs/glfw:=
+ x11-libs/libXi
+ x11-libs/libXrandr
+ x11-libs/libXinerama
+ x11-libs/libXcursor
+ dev-libs/jemalloc
+ >=dev-libs/c-blosc-1.5.0
+ dev-libs/log4cplus
+ python? (
+ ${PYTHON_DEPS}
+ dev-python/numpy[${PYTHON_USEDEP}]
+ )"
+
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ dev-cpp/tbb
+ doc? ( app-doc/doxygen[latex] )"
+
+PATCHES=(
+ "${WORKDIR}/0001-Change-hardcoded-paths-to-GNUInstallDirs-variables.patch"
+ "${WORKDIR}/0002-Use-PkgConfig-to-find-IlmBase-and-OpenEXR.patch"
+ "${WORKDIR}/0003-Boost-1.65-NumPy-support.patch"
+)
+
+pkg_setup() {
+ use python && python-single-r1_pkg_setup
+}
+
+src_configure() {
+ local myprefix="${EPREFIX}/usr/"
+
+ # To stay in sync with Boost
+ append-cxxflags -std=c++14
+
+ local mycmakeargs=(
+ -DOPENVDB_BUILD_UNITTESTS=OFF
+ -DOPENVDB_BUILD_DOCS=$(usex doc)
+ -DCMAKE_INSTALL_DOCDIR="share/doc/${PF}"
+ -DOPENVDB_BUILD_PYTHON_MODULE=$(usex python)
+ -DOPENVDB_ENABLE_3_ABI_COMPATIBLE=$(usex abi3-compat)
+ -DOPENVDB_ENABLE_RPATH=OFF
+ -DUSE_GLFW3=ON
+ -DBLOSC_LOCATION="${myprefix}"
+ -DGLEW_LOCATION="${myprefix}"
+ -DGLFW3_LOCATION="${myprefix}"
+ -DTBB_LOCATION="${myprefix}"
+ )
+
+ use python && mycmakeargs+=( -DPYOENVDB_INSTALL_DIRECTORY=${python_get_sitedir} )
+
+ cmake-utils_src_configure
+}
diff --git a/media-gfx/optipng/Manifest b/media-gfx/optipng/Manifest
new file mode 100644
index 000000000000..5930b797b70c
--- /dev/null
+++ b/media-gfx/optipng/Manifest
@@ -0,0 +1,6 @@
+AUX optipng-0.7.5-estonian.patch 1014 SHA256 b0794fda40086c1e0443351477c487f04103f7c571c082d93130b398cbcae014 SHA512 535e869c42df6181f0bd30287adb9175c18e8a9730c997a6466e64870b968d9575e6952889353be5ac4232b2087b004cde953e151da4c75b8048b3cdccb8f27d WHIRLPOOL b69f09ddecc477eeef4eeeef82bc2c825bf8950b155c55a0836de2e532ff3d0a7ab148d7e7283091cfb55cb3af3b41b5a8a9b54b8a5c2e36371dfefa6be7afa0
+DIST optipng-0.7.6.tar.gz 2202237 SHA256 4870631fcbd3825605f00a168b8debf44ea1cda8ef98a73e5411eee97199be80 SHA512 d31d7494c23413d87b601a706cc2faf82923156a818da66e0bfad11741aed065db8f1b0c088d2abd66899ac192408c05f594295ded2684c4549c5f03b140a184 WHIRLPOOL c2708d111d0e57e35658d540a1bb0bbdea8fa35501be359222970e81159a6691db02053a446c250e3dd393f17918cc748de80e9cf19a355dcd5da867716fb359
+EBUILD optipng-0.7.6.ebuild 1264 SHA256 c796916ae8d8484f756de2053130834ffc74d0c5605cd98e06b0fafd362a620d SHA512 acfe88a65ae266104b41044ccbd6961326a711e67797ebf176af972d08471b1e958bad2a1b46243e59ddb0f6eb10a95dcada7a76a6235970902f7ea277cf1429 WHIRLPOOL 3d8f8769c945c483e234a626425176e1761222d409308563d0acfc7d4b94c54934c3dc950b0a96d78c0cbf4f7f0a8ab951852ccbc85c8d39677a785d16e2198f
+MISC ChangeLog 4815 SHA256 168bf847edf590eaaeed3564c143a8ada3e56c512ea8c67e333d110eda957c75 SHA512 7270e8d96669b9c5b9a89dce7ebc236d0366aeba3b00d12a00d03fe148213b4a7f999f182bf41e4c485a33327fb217f457cf1f43714ccf5c6136ee06da9b0624 WHIRLPOOL f76d478e69f5da42203751241718f707b50ccdeee4b08fba47606a02ed36d62ae2382ec382d4d2c8f76d9b685ca72f101476b0ef1e9de14a8a90b4859ef3a979
+MISC ChangeLog-2015 11858 SHA256 b66893e52b6cab2a88692b801cc5922e70a996964ea984f104a9043d0908a0ad SHA512 4582d5944c12335dd3b92668c83cb5f7694d4086ecd01d72ab4198cadca8765fe6486cf7bda067915ba906220370faf948ea9ef052cae3884c796145a3f02b1e WHIRLPOOL e3296ea4f32499ac91ac6b6b8fd3fcf7f1ab0208aae2150c3f1114e07f7db0a9c97cc59b7b1c4ae806835a1499e6e33891f148f8e68b44427d3ecd870602a1fa
+MISC metadata.xml 326 SHA256 8bb649aedd41191bf8b9dbfcc37069da0e6a379cbc39893c00b25d2708866297 SHA512 57810d8957812cf02573aff451fb8248944bd100beaa06412deb4b5622161fca2ee466ad80050d68e94acf5e2e7963c6fa657416996c0503da6ac88f1f00efdb WHIRLPOOL ca572a0cc843aa70dda752b67ca2e29318bfc2b771d82cdfee9330c6a7bf7f9c6e4c3617a17c5fce9ae6d3bab8cb112763100ec0cd94585beaa92ef2d08f6e2c
diff --git a/media-gfx/optipng/files/optipng-0.7.5-estonian.patch b/media-gfx/optipng/files/optipng-0.7.5-estonian.patch
new file mode 100644
index 000000000000..37a2ca3ec688
--- /dev/null
+++ b/media-gfx/optipng/files/optipng-0.7.5-estonian.patch
@@ -0,0 +1,34 @@
+From 2cf0d7cb7928aac9ec0e21ceaaf09053434a4947 Mon Sep 17 00:00:00 2001
+From: Sebastian Pipping <sebastian@pipping.org>
+Date: Tue, 16 Sep 2014 02:58:45 +0200
+Subject: [PATCH] Fix for Estonian locale support (bug #522446)
+
+---
+ configure | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/configure b/configure
+index 6d2a507..17d4bc1 100755
+--- a/configure
++++ b/configure
+@@ -256,7 +256,7 @@ then
+ $sed_preconfig_libpng
+ s|^AR *=.*|AR = $AR|
+ s|^ARFLAGS *=.*|ARFLAGS = $ARFLAGS|
+- s|^AR_\([A-Z]*\) *=.*|AR_\1 = $AR $ARFLAGS|
++ s|^AR_\([[:upper:]]*\) *=.*|AR_\1 = $AR $ARFLAGS|
+ "
+ fi
+ if test "$RANLIB"
+@@ -408,7 +408,7 @@ sed_config="
+ s|@LIBPNG_DISTCLEAN_XCMD@|${LIBPNG_DISTCLEAN_XCMD-true}|g
+ s|@ZLIB_MK@|${ZLIB_MK-Makefile}|g
+ s|@ZLIB_DISTCLEAN@|${ZLIB_DISTCLEAN-distclean}|g
+- s|@[A-Z]*_MK@|Makefile|g
++ s|@[[:upper:]]*_MK@|Makefile|g
+ s| *\$||
+ "
+
+--
+2.1.0
+
diff --git a/media-gfx/optipng/metadata.xml b/media-gfx/optipng/metadata.xml
new file mode 100644
index 000000000000..8b613f7e1d55
--- /dev/null
+++ b/media-gfx/optipng/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>sping@gentoo.org</email>
+ <name>Sebastian Pipping</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">optipng</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/media-gfx/optipng/optipng-0.7.6.ebuild b/media-gfx/optipng/optipng-0.7.6.ebuild
new file mode 100644
index 000000000000..18082197dd2c
--- /dev/null
+++ b/media-gfx/optipng/optipng-0.7.6.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+
+inherit eutils toolchain-funcs
+
+DESCRIPTION="Compress PNG files without affecting image quality"
+HOMEPAGE="http://optipng.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="ZLIB"
+SLOT="0"
+KEYWORDS="~alpha amd64 ~arm ppc ppc64 x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x86-solaris"
+IUSE=""
+
+RDEPEND="sys-libs/zlib
+ media-libs/libpng:0"
+DEPEND="${RDEPEND}
+ sys-apps/findutils"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-0.7.5-estonian.patch
+
+ rm -R src/{libpng,zlib} || die
+ find . -type d -name build -exec rm -R {} + || die
+
+ # next release is almost a complete rewrite, so plug this compilation
+ # problem in anticipation of the much (c)leaner(?) rewrite
+ sed -i \
+ -e 's/^#ifdef AT_FDCWD/#if defined(AT_FDCWD) \&\& !(defined (__SVR4) \&\& defined (__sun))/' \
+ src/optipng/osys.c || die
+
+ tc-export CC AR RANLIB
+ export LD=$(tc-getCC)
+}
+
+src_configure() {
+ ./configure \
+ -with-system-libpng \
+ -with-system-zlib \
+ || die "configure failed"
+}
+
+src_compile() {
+ emake -C src/optipng
+}
+
+src_install() {
+ dodoc README.txt doc/*.txt
+ dohtml doc/*.html
+ doman src/${PN}/man/${PN}.1
+
+ dobin src/${PN}/${PN}
+}
diff --git a/media-gfx/panini/Manifest b/media-gfx/panini/Manifest
new file mode 100644
index 000000000000..a070157844ad
--- /dev/null
+++ b/media-gfx/panini/Manifest
@@ -0,0 +1,7 @@
+AUX panini-0.71.104-glu.patch 223 SHA256 c9bf356ad4314a44bc4da42db751f5c071b161d927ff7eee4f1bfdb722652d02 SHA512 2220e9f591f87f08dcde24e9c64d2b4160ab2bcda0ac66a79e7a2f6855c8bb63ed415e545f4fd902425d578a4778b87fcc65b22df7cb4788405bf85a9b58c03a WHIRLPOOL 9244cf202c6e6ef7dac5d0464977fe8aad94568bb57b656f76ceefe99879506fbb2e68045f135544334ae23ad6b32e1ed520c5939b6aa8b9f94c7e0183630070
+AUX panini.desktop 250 SHA256 fdd2329928da1e10e27c2b90acdc1daeb2930a266ce740a3b061f72bcab27c98 SHA512 6e4cbf1d2a318d4e593e29d78668dd6cdaa37db82dcd7ed0aaee1b6e25a381c524708b404c9bec3902cd101c46c70e0546425eeed33c41c0deb17751df0f0f40 WHIRLPOOL 2e1ae02f37e9075177b43283c3f97ae30dbcdf39e27787372df4a47c8d63c742477e98aca3f36fc4aba3a502dfcc536c39ab0a8d608062ccae4173d02b8b909f
+DIST Panini-0.71.104-src.zip 602843 SHA256 aacd27a71049c5e3b953afc02ecd67fb9bfd35702255ff5cc21a96719c0c82b3 SHA512 506047cbaf6928ee234ad1071b4aeefeec43dc7cfe7640db796d25c4932521ed19c8adb3983dc00e31595e4ce87c38d65f88903f1756bbae2ce0b19843680737 WHIRLPOOL c39ef654e9967cf531376059e33ed3026dc39226753512c105f9089a845888b48a0a16b4bd923dbc7f131be5dce86f2dec48e39476055eeb554a198827f5099c
+EBUILD panini-0.71.104.ebuild 722 SHA256 b96ca12546c3b84a4eb3141d4db930cba6345d5f956b9d7b8bbb9b1402c6f3c5 SHA512 f4dd5dfed4b55d0635a959f8c887f255f4c392f354a85d604a15f9ee19fa83b067a3eba6d26b23603e46ed4fb8038c9639ddbd22db50a56eded9148a02da57de WHIRLPOOL 136c745af957223c9374d0c790b88e67d55abeac4f3bdc7b226d20b033df18cc3b50cdc6046fd4f99bc4ac9b2fb30a4336d57ff558a03e3f9db9a8e7bd45b926
+MISC ChangeLog 2604 SHA256 9b39bbf900d393ff1b835201093cff1e7b90c3b14e6dc3ebe4b54c130da5e365 SHA512 c371ca20ae2ca64667ea6550f9d9c205b08ecfb42a40deded5076aabb35e27622932743289d102b98b23f22823a309bb54e4f888e6bd6fa1c821d06800141c60 WHIRLPOOL 5741e202687dc909a85fb2f530707f140c7343249c54fbc259277a579ba883be3ba8794880b56893bffa98041f8c9f98728d12f5089668d74f000f24613e8f60
+MISC ChangeLog-2015 924 SHA256 b2a9c5712b4075ab80e36e82dec4b6b9a34c48f0349757476d7e85003a0b4a8f SHA512 6c889209732e42c94c640b1df0926ee3b065d059520aedbeea01a150753a716ce0085024242a314dfe33daffc61886012ae64a007b49b70f123b28dc54dd9b81 WHIRLPOOL 9aef9330b727e3afe5e51bce859293c6b38f821847daa7cbad63ed8724558baf3c1c2b4e57f8edbbf32ca923e67f89ff8591fd6039082017b5c1bc24092ea709
+MISC metadata.xml 333 SHA256 c91f22a719980d5d7f36dcd7a820f03af4de334ca9b05415eac6799cad7b9e3a SHA512 1f06c9c860d067c0d3e55b95121fe2a0283758efa373623ade699eae8f8d1e6ec5900599fd2cd8e4fba4a514447e7c0c3b0448852d2e80324a62b3b84e2a6ded WHIRLPOOL 7017b96c161abd57f8816a337b5735cef92fcee5e3d71ee9a48fbb5bdbfb21058bf51a073eb46903a1929ab7619ca801c2f49414fc75fe26087e33cbd852de1e
diff --git a/media-gfx/panini/files/panini-0.71.104-glu.patch b/media-gfx/panini/files/panini-0.71.104-glu.patch
new file mode 100644
index 000000000000..e9866161ae10
--- /dev/null
+++ b/media-gfx/panini/files/panini-0.71.104-glu.patch
@@ -0,0 +1,10 @@
+--- Panini-0.71.104-src/panini.pro
++++ Panini-0.71.104-src/panini.pro
+@@ -3,6 +3,7 @@
+ TARGET = Panini
+ CONFIG += debug_and_release
+ QT = gui core opengl
++LIBS += -lGLU -lz
+
+ # # Directories ##
+ OBJECTS_DIR = build
diff --git a/media-gfx/panini/files/panini.desktop b/media-gfx/panini/files/panini.desktop
new file mode 100644
index 000000000000..cffd55d5a02a
--- /dev/null
+++ b/media-gfx/panini/files/panini.desktop
@@ -0,0 +1,10 @@
+[Desktop Entry]
+Name=Panini
+GenericName=Panini perspective tool
+Comment=Perspective views from panoramic images
+Exec=panini %f
+Terminal=false
+Type=Application
+Icon=panini
+Categories=Graphics;
+MimeType=video/quicktime;image/jpeg;image/tiff;image/png;
diff --git a/media-gfx/panini/metadata.xml b/media-gfx/panini/metadata.xml
new file mode 100644
index 000000000000..cba202fec3fe
--- /dev/null
+++ b/media-gfx/panini/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="sourceforge">pvqt</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/media-gfx/panini/panini-0.71.104.ebuild b/media-gfx/panini/panini-0.71.104.ebuild
new file mode 100644
index 000000000000..a71f45456e5f
--- /dev/null
+++ b/media-gfx/panini/panini-0.71.104.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+
+inherit qt4-r2 eutils
+
+MY_P="${P/p/P}-src"
+DESCRIPTION="OpenGL-based panoramic image viewer"
+HOMEPAGE="https://sourceforge.net/projects/pvqt/"
+SRC_URI="mirror://sourceforge/pvqt/${MY_P}.zip"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="dev-qt/qtcore:4
+ dev-qt/qtopengl:4
+ virtual/glu
+ sys-libs/zlib"
+DEPEND="${RDEPEND}
+ app-arch/unzip"
+
+S="${WORKDIR}/${MY_P}"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-glu.patch
+}
+
+src_install() {
+ newbin Panini panini
+ dodoc panini-usage.txt panini-0.71-release.txt
+ domenu "${FILESDIR}"/${PN}.desktop
+ newicon ui/panini-icon-blue.jpg ${PN}.jpg
+}
diff --git a/media-gfx/pdf2svg/Manifest b/media-gfx/pdf2svg/Manifest
new file mode 100644
index 000000000000..d34e3951ca22
--- /dev/null
+++ b/media-gfx/pdf2svg/Manifest
@@ -0,0 +1,7 @@
+DIST pdf2svg-0.2.1.tar.gz 77601 SHA256 96e6902e0bca6aeb70f3c6621d0d95b346b14c6a0282c12c1e7635f67af0c74b SHA512 17b54ed40f38982452206a9e7eb6fd309906904af10ef375d7e3894e7d8d8a351a5c47ef6553678db48373c5de878923fd46a66cc3e22a01034434fde9671793 WHIRLPOOL 4018341269d189000a79d58d429d3346e3e33e649ccc762fe84c6da04e1ecc10573d7a2659c4f897484023a5ab393ce723b6227ac8f7df76ceb0c1fda84d7dd6
+DIST pdf2svg-0.2.2.tar.gz 84009 SHA256 c2a29cc81d01fea220523abad39c400e9c5411b395b6ba3ccbedb4cd398ec6cb SHA512 ea8b3d33acc7900d162a338b715d55a0cda578e2f08afcbe2773558998b267134ce0c34d5ed295d3dcb2bf882f0097835a6ba83fc837a201173e4c67b9d4dca3 WHIRLPOOL b4a0381d175e0ad18534681c53e994e6e47915d27584f2efd12d638f1f5eb4fb9e181673f81079384addc0ba933da4f777dc632eafe1055b8b79952dbf599e33
+EBUILD pdf2svg-0.2.1.ebuild 718 SHA256 dc0c2c6055afdc7739a37b95050183f9eec125a1ced07d818643427a37a8b900 SHA512 857ddc1e07ec327d2f6b594e1b38663008e105d22ebe7a6cf675eea735f7499ff91fba8beeef5002ee95d0f6ca914e0af42164c37acb628b86064d3be6fa1e02 WHIRLPOOL cc3eeea3c7b41116e6bac441f814b701e1260be0566a09a0fff5e9acd2d160abe604495c7ceb524f219a538b9c510fb97fa100d0c2d70fa4442fdab69e97b2d7
+EBUILD pdf2svg-0.2.2.ebuild 768 SHA256 2ab2d8083f1c437ead163b4e920379073d10a9f9c804c7d3e2ccfd65a761477b SHA512 44bc36ea2b3ab978b0ec930b0cd8481f58ff8aa1284128753b066602f5691b04a2f3b3ae6bddeb1a131e34280d14b748ebdb862940ecf78dbb73649061344f65 WHIRLPOOL ff4533a7818d737cba4ab885111ab7e8069bd7ca53629a41fe82d40abd16328c86551351e298dfa5f9deadb6ba928cfbc7f6bc6b24dd1109f4d43a450a56823b
+MISC ChangeLog 2480 SHA256 d7828d066e1381b33c5d2047c172085feb342d25fd26137ea55755c32f82aa33 SHA512 ac18ea9ce215951ab5c12d22fafaf3da02a442d0761f89c223b28d7f3f9fb8bba34a2b8a9158776c150c68a5a54621fd43a2a29e9fead837b089131cda82e965 WHIRLPOOL 9271c16b729781eae3b8922fd207a2d6d6b5e4d514cb049f18e4ec75c898ad80287b1051589cfb53787af6768c8a78ed3c59f11e6fec71b1c1e4e17afbb48c84
+MISC ChangeLog-2015 1354 SHA256 f76ba00102351f04d6477f2ba3fb0127c3073d1453b72332ea9c26d934f6849c SHA512 38bc8e32494abdda609025c2e6580c6b4e0b4ca3b18b8380c491205b51069292bffd93949dcbe891b9ba5311900692a14bd994e6544bf99b21b6aa8fb9ad9773 WHIRLPOOL 9a8f63852e59dbf6893e963a5834c1e5ccc096a1b8d0bd9585fdb3421483a2aa138d673b7ff8acf02c95e48b98e00f249562dbbcd02971d8694c9fb702bcdad2
+MISC metadata.xml 259 SHA256 2caf73387680548983b5ebbd5db6bffbfaab184fa3242d42bb1386e2cc4fe604 SHA512 6744883613ae3b83c57ec9604c5f31717ab714b4f3e7f4f680e4b9e54f622f8e5f753b3cd666862f0e3e6dc4223aee87b89aba472d9f20e1b317595e06aeae30 WHIRLPOOL 87955f0841a0da62f06108f592e31dc2d16cc6b9581afee9eb0098c85bbb539c24e8082ed5fd659158721d3c241ffbf15b2c186a33fa29f76a4b18b9fb0b6d7a
diff --git a/media-gfx/pdf2svg/metadata.xml b/media-gfx/pdf2svg/metadata.xml
new file mode 100644
index 000000000000..899a49093b0d
--- /dev/null
+++ b/media-gfx/pdf2svg/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 type="project">
+ <email>graphics@gentoo.org</email>
+ <name>Gentoo Graphics Project</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/media-gfx/pdf2svg/pdf2svg-0.2.1.ebuild b/media-gfx/pdf2svg/pdf2svg-0.2.1.ebuild
new file mode 100644
index 000000000000..ec0acdb0faa9
--- /dev/null
+++ b/media-gfx/pdf2svg/pdf2svg-0.2.1.ebuild
@@ -0,0 +1,31 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils
+
+DESCRIPTION="pdf2svg is based on poppler and cairo and can convert pdf to svg files"
+HOMEPAGE="http://www.cityinthesky.co.uk/pdf2svg.html"
+SRC_URI="http://www.cityinthesky.co.uk/files/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+RDEPEND=">=app-text/poppler-0.12.3-r3:=[cairo]
+ >=x11-libs/cairo-1.2.6:=[svg]
+ x11-libs/gtk+:2="
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+src_prepare() {
+ sed -i \
+ -e 's:#include <stdio.h>:#include <stdio.h>\n#include <stdlib.h>:' \
+ ${PN}.c || die
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+ dodoc AUTHORS ChangeLog README
+}
diff --git a/media-gfx/pdf2svg/pdf2svg-0.2.2.ebuild b/media-gfx/pdf2svg/pdf2svg-0.2.2.ebuild
new file mode 100644
index 000000000000..3eae62f204e0
--- /dev/null
+++ b/media-gfx/pdf2svg/pdf2svg-0.2.2.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils
+
+DESCRIPTION="pdf2svg is based on poppler and cairo and can convert pdf to svg files"
+HOMEPAGE="http://www.cityinthesky.co.uk/opensource/pdf2svg/"
+SRC_URI="http://www.cityinthesky.co.uk/wp-content/uploads/2013/10/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND=">=app-text/poppler-0.12.3-r3:=[cairo]
+ >=x11-libs/cairo-1.2.6:=[svg]
+ x11-libs/gtk+:2="
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+DOCS="AUTHORS" # ChangeLog is only for <=0.2.1 and README.md doesn't have anything useful for usage
+
+src_prepare() {
+ sed -i \
+ -e 's:#include <stdio.h>:#include <stdio.h>\n#include <stdlib.h>:' \
+ ${PN}.c || die
+}
diff --git a/media-gfx/pencil/Manifest b/media-gfx/pencil/Manifest
new file mode 100644
index 000000000000..36324b40f882
--- /dev/null
+++ b/media-gfx/pencil/Manifest
@@ -0,0 +1,6 @@
+AUX pencil-0.4.4_beta-gcc461.patch 819 SHA256 800c08700693c7eceaa268c35ed9102c81b3e0d85f6aba539772a146927d8f87 SHA512 2d775516265d844cf72d85015111321e487cad8094cb0bd55166654a06b913b63f55c87623374e4fafc8927169224235ff2b759f57ef5515bd9684faf8e4d84f WHIRLPOOL dcdc65a3974f9838ce996fe83e4874e6f1a612085b2593ef42dace37d59815bd5e73c05e0054130c52bcbd00dc74684c4344380891d66cb8c04eb82c90ee67f7
+DIST pencil-0.4.4b-src.zip 1147003 SHA256 8a1373e745d9c039e15c7b3f0c1846190fcc4621306b2dd507c31ac31de64303 SHA512 5ed5bad3d2a1ac993539c2c510bcc5a1df3e33f37187c069d21f3c784eb8a290c69cfccbba8645ebab58b0feafb3c229d882dcade72fca3110846c7b1629331b WHIRLPOOL 9fdc8a1953422b7c9b58d4d33536b78881e48e52ef8e2f726c8ebf2b4cbb1a7ad55898a1b12369893f23d1e05a6aa5731308aca596f34b3c692d1fc50cf466a2
+EBUILD pencil-0.4.4_beta.ebuild 987 SHA256 4d949e3178d3590f85199504b5883be6f71e1f9b23d329d4120829a87b739d90 SHA512 369f57c73ec3f1e2a3eaab6cf04334c07f1224dd1a33fbdd62688e7f86d0479e44f37e2d12d4131bb72a9b1fe153e7d2cf1274199966ecdd8aa858108bd00007 WHIRLPOOL 691c86ff280aaa13f639bf1634b0237a606839ea13ad5e1abd3dbcc598cb510e8a0548cd1d1d2671e8ce198f7f3d50a23596456bb615012168e048b9c5f68a52
+MISC ChangeLog 2571 SHA256 afc0a6ceff070a80a5aebf4735ba297c95dc49ecad6e805e5f15d9c367983f8b SHA512 53f2bc62de23f3e06d537655f66ba687ebf325860dcf75ac17ce3b467c4e71f1b06861b9e98495811c79e50deb5ef115c1219717a2732b1d3be38d73c9f0e28c WHIRLPOOL dfca0fe6b6f73cf9831bce418647cad9e01ae4af97273c516ec4442c79d95bc12a767ab9654f8a6b1f0b24dae4b9ad4668a523c0dc6f541dc438507585f604d0
+MISC ChangeLog-2015 1091 SHA256 0bf550ab7b78908d44fbb03af50f0c9e6f648073bae7259e5aec86bd53be8129 SHA512 52724b5d0024ec248b3fbdc3f58f94af3c21309490011ce5cd247231a89bfb046676707538257d46c1e9d9cd4d2aaa57eee367af8e65a5f61ca5b3395855cc34 WHIRLPOOL 741b4ae2e9deee29e9f25e4a87004605a5b89486e83c0c68114ea146144d7b72f4b216dab14f2d967c3b24779090700fc42b573179e4e3964d1136807762d678
+MISC metadata.xml 251 SHA256 bdbc58c5e5895429b603f8583da74146a9f01d73c3623932f3b222ea151a2089 SHA512 d515519588ccedd03f6b4d0b653e957c8f26c922098a5408e9962fe9dbbb9105001a9ea1b08b73ce6e5fa41fabdc86081f6fe24f8394e2a44d036d01a01da0ed WHIRLPOOL c5ef00575d0a3a68519a2d7acae8039ecc3489eb2e6db47a610bacea389338ec30c5616a5fd69c3a5c24147cc34f9b7af4e976b20f2a4023db0f111509d42fc9
diff --git a/media-gfx/pencil/files/pencil-0.4.4_beta-gcc461.patch b/media-gfx/pencil/files/pencil-0.4.4_beta-gcc461.patch
new file mode 100644
index 000000000000..d0aa8936b8fd
--- /dev/null
+++ b/media-gfx/pencil/files/pencil-0.4.4_beta-gcc461.patch
@@ -0,0 +1,14 @@
+--- src/graphics/vector/beziercurve.cpp 2007-07-14 21:41:33.000000000 +0200
++++ src/graphics/vector/beziercurve.cpp 2011-08-29 16:19:08.930675072 +0200
+@@ -700,9 +700,9 @@
+ R1.setTopLeft(P1); R1.setBottomRight(Q1);
+ R2.setTopLeft(P2); R2.setBottomRight(Q2);
+
+- //QPointF intersectionPoint = QPointF(50.0, 50.0); // bogus point
++ QPointF intersectionPoint = QPointF(50.0, 50.0); // bogus point
+ //QPointF* intersection = &intersectionPoint;
+- QPointF* cubicIntersection = &QPointF(50.0, 50.0); // bogus point
++ QPointF* cubicIntersection = &intersectionPoint; // bogus point
+ if( R1.intersects(R2) || L2.intersect(L1, cubicIntersection) == QLineF::BoundedIntersection ) {
+ //if(L2.intersect(L1, intersection) == QLineF::BoundedIntersection) {
+ //qDebug() << " FOUND rectangle intersection ";
diff --git a/media-gfx/pencil/metadata.xml b/media-gfx/pencil/metadata.xml
new file mode 100644
index 000000000000..eac6c670643d
--- /dev/null
+++ b/media-gfx/pencil/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-needed -->
+ <upstream>
+ <remote-id type="sourceforge">pencil-planner</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/media-gfx/pencil/pencil-0.4.4_beta.ebuild b/media-gfx/pencil/pencil-0.4.4_beta.ebuild
new file mode 100644
index 000000000000..700f6494d1cc
--- /dev/null
+++ b/media-gfx/pencil/pencil-0.4.4_beta.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=2
+inherit eutils qt4-r2
+
+MY_P=${P/_beta/b}
+
+DESCRIPTION="A Qt4 based animation and drawing program"
+HOMEPAGE="http://www.pencil-animation.org/"
+SRC_URI="mirror://sourceforge/pencil-planner/${MY_P}-src.zip"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="dev-qt/qtgui:4
+ dev-qt/qtopengl:4
+ >=media-libs/ming-0.4.3"
+DEPEND="${RDEPEND}
+ app-arch/unzip"
+
+S=${WORKDIR}/${MY_P}-source
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-gcc461.patch
+ sed -i s:SWFSprite:SWFMovieClip:g src/external/flash/flash.{cpp,h} || die
+}
+
+src_install() {
+ # install target not yet provided
+ #emake INSTALL_ROOT="${D}" install || die "emake install failed"
+ newbin Pencil ${PN} || die "dobin failed"
+
+ dodoc README TODO || die
+
+ mv "${S}"/icons/icon.png "${S}"/icons/${PN}.png
+ doicon "${S}"/icons/${PN}.png || die "doicon failed"
+ make_desktop_entry ${PN} Pencil ${PN} Graphics
+}
diff --git a/media-gfx/peps/Manifest b/media-gfx/peps/Manifest
new file mode 100644
index 000000000000..91fab94e148c
--- /dev/null
+++ b/media-gfx/peps/Manifest
@@ -0,0 +1,6 @@
+DIST peps-2.0.tar.gz 55421 SHA256 b514fed9412548cdcf43a95b6dcf01b2038f314bc9ef363498ebd2779c897a91 SHA512 38940b4288c688d7a5f2a71d260b0b0aafc849988bba6859244a7409b4b08a2d3c1b43adcc940c7af4ff9313b7203ea92858fc855ddf2864548566d78890d767 WHIRLPOOL b0582e377d17a05da20b732d02d4d081e681ac589c0cdca076abe087d0c14067c23fbbb1558d1e51aacacf1c802088296db24c2c0eec2bb5b0f8cd8dabe4de60
+EBUILD peps-2.0-r1.ebuild 1206 SHA256 bb2fad5e64178604d8bf464147bfd7891d4c1a1dd5d11b4936002e618b736a89 SHA512 59bdc101e460fb1e05767b2b568ea4eddc7d4a521a7f38246ea3701d7d05d9fa0d0062e42c0183f28f9817baa594a8c0a12d037a0219194d0edfae0c10ea456a WHIRLPOOL 194a54ec77278644b71659edb15f9c72338e2dbf6ddc00619bd5f03e8d1f79313d758aaf3491df8841a63d2f3d65710ea333b606623be49f825fc08f11dd4801
+EBUILD peps-2.0.ebuild 1222 SHA256 9b601718b9353d2244067bf1c0e364a6f1645f675670ad26bbf6aa9616607b03 SHA512 c74dd4fca96d5764427321aa07804a086118f55207196e526eeb4d6f175f0ca8fcf2e6cd2a380eabd8d1e8820dcdd9146e03e1e7f56263f2e15591474c8cc303 WHIRLPOOL ba47fa8c87c2830e03b2d83c5d6fa661c7f98d6bd8acf7d59f9eb3b84a79ee5541dc66bf1f520c05fb72d1b27c2625ab33fb69fafa65ff35dc4ad7ede508bfd8
+MISC ChangeLog 2510 SHA256 0307094470bd85c057ea17de31022b9e2de757fcf86d570fd2522b8b28e15714 SHA512 735effde88585ea111e4bdac6d5502fa5693fd6a4a806c09a16f28596c1a8c5b946c18bdb8b958ba409771ddc1be3559d84ecff0c25e4329f7d34d8f3f259e7c WHIRLPOOL cbd487d4d5d3ad7cbd2e9c7a48144f8146f4f9326864f1fc81c33a3d575690c1d1d4af00d8fa40950927eb376d0b34df82936ccdb12f59e08db4704bbcb818ff
+MISC ChangeLog-2015 1047 SHA256 efadf2ed2bfe46eba773e2d3e6870db8cb6ab6340a1440fe8ca5c303fa9e75b4 SHA512 df7df50bb519f53767c34c1b15d16cb0f918d28931cb5b7d78bae04a132c3a9b4b85c8b732885bdcbf743ae0347995a4271a7615d41c655c57cc5eaf6234a7e7 WHIRLPOOL 67464250e4269456124e9a2ab06daf3165d58911357d4c1908a83e74360dae5329deca23c80d39e310c689fa5f10c85dd75be3998ee509fd9d0ac870e2789675
+MISC metadata.xml 512 SHA256 9b797f4e61e4a98643ef3869279e27931792ebcdeeaf535265f29e421117c41c SHA512 3ee45ee8181f04c3d1bd36170eb0ec59906c9c35962c78e5c21e656bdc240e39d6c788e7eb33189c1142a9098e6da3639ebc10063713332c49b32af4c4055ab5 WHIRLPOOL 026457b3bb72d9d92e0a868837098b7c0a6d396a06de215f0dd78a8f610d53a46dcd561e3d4265d255892523f9a04d5010bcf1a02ffffe9d0039657b3ed6f296
diff --git a/media-gfx/peps/metadata.xml b/media-gfx/peps/metadata.xml
new file mode 100644
index 000000000000..c9cedb15eff0
--- /dev/null
+++ b/media-gfx/peps/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <!-- maintainer-needed -->
+ <longdescription lang="en">
+ peps will preprocess encapsulated Postscript files and allow you to
+ convert them into bitmaps. Note the word allow: peps does not do the
+ conversion for you. Rather, it prepares the Postscript input for a
+ bitmap conversion by Ghostscript, which must already be installed on
+ your system.
+ </longdescription>
+</pkgmetadata>
diff --git a/media-gfx/peps/peps-2.0-r1.ebuild b/media-gfx/peps/peps-2.0-r1.ebuild
new file mode 100644
index 000000000000..8b79fa61acf1
--- /dev/null
+++ b/media-gfx/peps/peps-2.0-r1.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit eutils toolchain-funcs
+
+DESCRIPTION="Preprocess and convert EPS files to bitmap with Ghostscript"
+HOMEPAGE="http://peps.redprince.net/peps/"
+SRC_URI="http://www.peps.redprince.net/peps/${P}.tar.gz"
+
+LICENSE="BSD-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="X"
+
+DEPEND="app-text/ghostscript-gpl
+ app-arch/gzip"
+RDEPEND="${DEPEND}"
+
+pkg_setup() {
+ if use X && ! grep -q x11gray4 <(gs -h 2>/dev/null); then
+ die "you need a ghostscript version with 'x11' and 'x11gray4' devices!"
+ fi
+}
+
+src_prepare() {
+ default
+ # adding <string.h> include
+ sed -i -e "s:^\(#include.*<unistd.h>.*\):\1\n#include <string.h>:" peps.c || die
+ # adding LDFLAGS to Makefile
+ sed -i -e "s:\( -o \): \${LDFLAGS}\1:g" Makefile || die
+}
+
+src_compile() {
+ local myopts="peps"
+ use X && myopts="${myopts} xpeps"
+ emake CC="$(tc-getCC)" ${myopts}
+}
+
+src_install() {
+ # manual install, because fixing dumb Makefile is more compilcated
+ dobin peps
+ use X && dobin xpeps
+
+ doman peps.1
+ dodoc README
+
+ insinto /etc
+ doins peps.mime
+
+ # copy PDF so it won't be compressed
+ cp peps.pdf "${D}usr/share/doc/${PF}" || die
+}
diff --git a/media-gfx/peps/peps-2.0.ebuild b/media-gfx/peps/peps-2.0.ebuild
new file mode 100644
index 000000000000..e232d298ea69
--- /dev/null
+++ b/media-gfx/peps/peps-2.0.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="2"
+
+inherit eutils toolchain-funcs
+
+DESCRIPTION="Preprocess and convert EPS files to bitmap with Ghostscript"
+HOMEPAGE="http://peps.redprince.net/peps/"
+SRC_URI="http://www.peps.redprince.net/peps/${P}.tar.gz"
+
+LICENSE="BSD-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="X"
+
+DEPEND="app-text/ghostscript-gpl
+ app-arch/gzip"
+RDEPEND="${DEPEND}"
+
+pkg_setup() {
+ if use X && ! grep -q x11gray4 <(gs -h 2>/dev/null); then
+ die "you need a ghostscript version with 'x11' and 'x11gray4' devices!"
+ fi
+}
+
+src_prepare() {
+ # adding <string.h> include
+ sed -i -e "s:^\(#include.*<unistd.h>.*\):\1\n#include <string.h>:" peps.c
+ # adding LDFLAGS to Makefile
+ sed -i -e "s:\( -o \): \${LDFLAGS}\1:g" Makefile
+}
+
+src_compile() {
+ local myopts="peps"
+ use X && myopts="${myopts} xpeps"
+ emake CC="$(tc-getCC)" ${myopts} || die "emake failed"
+}
+
+src_install() {
+ # manual install, because fixing dumb Makefile is more compilcated
+ dobin peps || die "install failed"
+ use X && dobin xpeps
+
+ doman peps.1
+ dodoc README
+
+ insinto /etc
+ doins peps.mime
+
+ # copy PDF so it won't be compressed
+ cp peps.pdf "${D}usr/share/doc/${PF}"
+}
diff --git a/media-gfx/photivo/Manifest b/media-gfx/photivo/Manifest
new file mode 100644
index 000000000000..0f4cfd8d2db8
--- /dev/null
+++ b/media-gfx/photivo/Manifest
@@ -0,0 +1,10 @@
+DIST photivo-0_pre20121006.tar.gz 2515621 SHA256 41627ab3516d365fab218b605f1d5917b7eda7b94b5604a81d5c3dbdc879ef7b SHA512 fa9763929acd1ea5afcc9ae6a68034f7cc571ea41569eae987ce0d99101b2d17cfa3a71fece4484478c207712e49112824dd496ccb6be80aebe20b5bbf8f2be5 WHIRLPOOL bb0130883c72aa992ebc682af1f152ba3a4819310b32107f21883660edf15b4ae03a704c2fae81c8e68a96b7f66a8639c4a5731aa5b0de7c53af872df36a82d0
+DIST photivo-0_pre20121212.tar.gz 2606004 SHA256 86fadfa343d0b9b8c6390dba43ad3e1f42a23f17314186449894f83578f1fb9b SHA512 000ffe58f2b676c2796aff4e445a0968441dd850b397f3b3292dcd3bc2abfdb49a781799c3f85eefff09ce74dede6a1eb846ed4a760ee0ec033043a12f03f967 WHIRLPOOL 355d884fb3b273141c39789e63b5b52cae5ceea561c0f3c8ff9664b83537bdee08285d1969ce296a419dd74d3f45be7c8e7e0ebdad72b5f2a3d0ca5bc73c594f
+DIST photivo-0_pre20131115.tar.gz 3145008 SHA256 cfbbf7f9dfb41ba0aadb6771739d95fe36219f78bd32d340a3908344a0ce82ac SHA512 b98d2dced306325b5ab116c4ba170404a6956d081128095b5315f3b061797290b5a305da73ede9f496659b2b1cc8090cd2f300cfbd311c69db59c8425bd2e047 WHIRLPOOL 4671c62c647ca919973adeed2aceac0570d9f8d70b90819660f8a42958bd514278f119063def0c77e355813a84c85f7199b1fa4182926c4694b4a1c9217c037f
+EBUILD photivo-0_pre20121006.ebuild 1342 SHA256 007dadbe5985d4cac5ceec7d69780f594a930c6a2d4a39d97af4cfedd5966091 SHA512 28fafc470cb95e5692111ebdbef425722956ec94f5d1edbf03e752b453662ca650cc7fede9e43f29170eabfe4df6463b9d64ce47598ade26919885e562bf2c4a WHIRLPOOL aa5cc484f504dcdfdc1333c274d61d9ee13a0e0b2a2d6b9559059739aa747c83844614ebf611ce6c2efcc18c2d21574c46bd37582541ef97263d4820e102b038
+EBUILD photivo-0_pre20121212.ebuild 1337 SHA256 2ecec60e4fb33a954359287c7a4c6e5d7133a0367c81bd356e00a6594122c010 SHA512 3f172fc78520a17b6bbcb182787249e0343c363d486be3a37bf92ea52af1e1d110a9dbfdac8a1dc7765dd1859831911dfab3acd34fed0947cee420394d2824de WHIRLPOOL 311b2329cc66818c849243a36c40f4bc85b55c17c7c64c6efc8d687369c04e0ce64b7f22d10688e52abb44d370413839e7893b36b40e8fce47e5ff0a1f7ae7de
+EBUILD photivo-0_pre20131115.ebuild 1458 SHA256 d506a67d4a34e07e5279f42d001c6d0dd399e280573015f47c50625cc6a53568 SHA512 be35da93ca2e06f4aabfc7eda8ba012bba55579d1c336c2fb9dc4d9cce087e66b6f180750a5efd6fa9398e1aba290426a97e01381bbc01553bcd141557211c06 WHIRLPOOL 2ffd11d95e9f2d9071c680d1ed1444198d39498e1e46e0fb0543d76480eac002112dc230e97d0bece9e78770980c2b52c7462df147162ec8bfe0096788b2bab2
+EBUILD photivo-9999.ebuild 1493 SHA256 7759d7886df9ccf1f4ecff37cc3b2129959273dc95e865b0c7243af47cddece7 SHA512 2c387d172af3f30252d6f803932a7531555c39c1ae1ada20fa05a25b5d090c8254ae42bb9228cb20dfffecaabf3b9ddba2d5260e125bb6397c5342bc05a59a12 WHIRLPOOL caa22cf2dd3dbe615b77226f8a620a4e84fc7c963c4e985e2e20e8008c8190f8d4c74b4830f1cdf023fee7ed83031b41e05df7bc1b88a4b157a95d9bd1a0e361
+MISC ChangeLog 3083 SHA256 7d241a7abc90eb2b62757012f626a207f3175a6e42cb84b8fb9c4657ab11550d SHA512 496426c83611e16ea6d9e1277994cdc4f7069e6d3832314ec435d97e200c375594f0ec88c3fa84f4ef78dd82a6db43d2fc0cbbab56a1be923bce1d5c2c9c01c9 WHIRLPOOL 0a9fe4442d44dc1887300d2235561c21e3dc70425fd18be945a12acfcffee6564c0b750d9e25296cabe336111d9ff221f12d0cf42bc485a81f8765647dd3e6fd
+MISC ChangeLog-2015 1868 SHA256 03e435100565dbacca7466015c3119e9933210a66564e938cdf241c30788005f SHA512 dc5cc6a810d5af360ac709c8f70535ad5eff6bff510d009a152e266f7927fff646e19adf6d061589628038435f68f0dd09a3f3c6c188ed04f4cdadd96feac39b WHIRLPOOL 3e2c72e35a4e871f009b7542cd9537f1bc8995934a2663e4c10ce6eb8e0934380bc02903abf7e9eb62816cf9a2ca55e9f7fa1f025ca45579ac106d430b6d9a30
+MISC metadata.xml 520 SHA256 aae006c187b17babb78dae6249e30f365fd979e63a46498596b0bc0175a54b53 SHA512 5512d1cd2cc680cd8931b5f54874a577ce17360d331a9e3a341274bf5cc6f09d1e036c04044ea2e8ebac65bb45920c09bd5eb742e76e57031f2e46d1a84d09e6 WHIRLPOOL 738b173da49687cfede04d862bfea681a3f3de29dea50e298390d529ec3bec2e2dc1506ad09c073f9675ecefd38627cb275140dcc6dd429e1606837d9ddad1aa
diff --git a/media-gfx/photivo/metadata.xml b/media-gfx/photivo/metadata.xml
new file mode 100644
index 000000000000..3910c7f010a9
--- /dev/null
+++ b/media-gfx/photivo/metadata.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>opensource@andmarios.com</email>
+ <name>Marios Andreopoulos</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="google-code">photivo</remote-id>
+ <bugs-to>https://code.google.com/p/photivo/issues/list</bugs-to>
+ </upstream>
+</pkgmetadata>
diff --git a/media-gfx/photivo/photivo-0_pre20121006.ebuild b/media-gfx/photivo/photivo-0_pre20121006.ebuild
new file mode 100644
index 000000000000..7a56b69562e0
--- /dev/null
+++ b/media-gfx/photivo/photivo-0_pre20121006.ebuild
@@ -0,0 +1,68 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+
+inherit qt4-r2
+
+DESCRIPTION="Photo processor for RAW and Bitmap images"
+HOMEPAGE="http://www.photivo.org"
+SRC_URI="https://dev.gentoo.org/~hwoarang/distfiles/${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="gimp"
+
+RDEPEND="dev-qt/qtcore:4
+ dev-qt/qtgui:4
+ virtual/jpeg
+ media-libs/tiff
+ media-libs/libpng
+ media-gfx/exiv2
+ media-libs/lcms:2
+ media-libs/lensfun
+ sci-libs/fftw:3.0
+ media-libs/liblqr
+ media-gfx/graphicsmagick[q16,-lcms]
+ media-gfx/greycstoration[lapack]
+ virtual/lapack
+ media-libs/cimg
+ gimp? ( media-gfx/gimp )"
+DEPEND="${RDEPEND}"
+
+S=${WORKDIR}/${PN}-${PV/0_pre/}
+
+src_prepare() {
+ # remove ccache dependency
+ local File
+ for File in $(find "${S}" -type f); do
+ if grep -sq ccache ${File}; then
+ sed -e 's/ccache//' -i "${File}"
+ fi
+ done
+
+ # useless check (no pkgconfig file is provided)
+ sed -e "/PKGCONFIG += CImg/d" \
+ -i photivoProject/photivoProject.pro || die
+ qt4-r2_src_prepare
+}
+
+src_configure() {
+ local config="WithSystemCImg"
+ if ! use gimp ; then
+ config+=" WithoutGimp"
+ fi
+
+ eqmake4 "CONFIG+=${config}"
+}
+
+src_install() {
+ qt4-r2_src_install
+
+ if use gimp; then
+ exeinto $(gimptool-2.0 --gimpplugindir)/plug-ins
+ doexe ptGimp
+ doexe "mm extern photivo.py"
+ fi
+}
diff --git a/media-gfx/photivo/photivo-0_pre20121212.ebuild b/media-gfx/photivo/photivo-0_pre20121212.ebuild
new file mode 100644
index 000000000000..a9c304d07f80
--- /dev/null
+++ b/media-gfx/photivo/photivo-0_pre20121212.ebuild
@@ -0,0 +1,68 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+
+inherit qt4-r2
+
+DESCRIPTION="Photo processor for RAW and Bitmap images"
+HOMEPAGE="http://www.photivo.org"
+SRC_URI="https://dev.gentoo.org/~hwoarang/distfiles/${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="gimp"
+
+RDEPEND="dev-qt/qtcore:4
+ dev-qt/qtgui:4
+ virtual/jpeg
+ media-libs/tiff
+ media-libs/libpng
+ media-gfx/exiv2
+ media-libs/lcms:2
+ media-libs/lensfun
+ sci-libs/fftw:3.0
+ media-libs/liblqr
+ media-gfx/graphicsmagick[q16,-lcms]
+ media-gfx/greycstoration[lapack]
+ virtual/lapack
+ media-libs/cimg
+ gimp? ( media-gfx/gimp )"
+DEPEND="${RDEPEND}"
+
+S=${WORKDIR}/${PN}-${PV/0_pre/}
+
+src_prepare() {
+ # remove ccache dependency
+ local File
+ for File in $(find "${S}" -type f); do
+ if grep -sq ccache ${File}; then
+ sed -e 's/ccache//' -i "${File}"
+ fi
+ done
+
+ # useless check (no pkgconfig file is provided)
+ sed -e "/PKGCONFIG += CImg/d" \
+ -i photivoProject/photivoProject.pro || die
+ qt4-r2_src_prepare
+}
+
+src_configure() {
+ local config="WithSystemCImg"
+ if use gimp ; then
+ config+=" WithGimp"
+ fi
+
+ eqmake4 "CONFIG+=${config}"
+}
+
+src_install() {
+ qt4-r2_src_install
+
+ if use gimp; then
+ exeinto $(gimptool-2.0 --gimpplugindir)/plug-ins
+ doexe ptGimp
+ doexe "mm extern photivo.py"
+ fi
+}
diff --git a/media-gfx/photivo/photivo-0_pre20131115.ebuild b/media-gfx/photivo/photivo-0_pre20131115.ebuild
new file mode 100644
index 000000000000..f258013d4bf7
--- /dev/null
+++ b/media-gfx/photivo/photivo-0_pre20131115.ebuild
@@ -0,0 +1,69 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+
+inherit qt4-r2
+
+DESCRIPTION="Photo processor for RAW and Bitmap images"
+HOMEPAGE="http://www.photivo.org"
+SRC_URI="https://dev.gentoo.org/~hwoarang/distfiles/${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="gimp"
+
+RDEPEND="dev-qt/qtcore:4
+ dev-qt/qtgui:4
+ || ( virtual/jpeg:62 media-libs/jpeg:62 )
+ media-gfx/exiv2
+ media-libs/tiff
+ media-libs/libpng
+ media-libs/cimg
+ media-libs/lcms:2
+ >=media-libs/lensfun-0.2.8-r1
+ sci-libs/fftw:3.0
+ media-libs/liblqr
+ media-gfx/graphicsmagick[q16,-lcms]
+ gimp? ( media-gfx/gimp )"
+DEPEND="${RDEPEND}"
+
+S=${WORKDIR}/${PN}-${PV/0_pre/}
+
+src_prepare() {
+ # remove ccache dependency and fix lensfun header path
+ local File
+ for File in $(find "${S}" -type f); do
+ if grep -sq ccache ${File}; then
+ sed -e 's/ccache//' -i "${File}"
+ fi
+ if grep -sq "lensfun.h" ${File}; then
+ sed -e 's/lensfun\.h/lensfun\/lensfun.h/' -i ${File}
+ fi
+ done
+
+ # useless check (no pkgconfig file is provided)
+ sed -e "/PKGCONFIG += CImg/d" \
+ -i photivoProject/photivoProject.pro || die
+ qt4-r2_src_prepare
+}
+
+src_configure() {
+ local config="WithSystemCImg"
+ if use gimp ; then
+ config+=" WithGimp"
+ fi
+
+ eqmake4 "CONFIG+=${config}"
+}
+
+src_install() {
+ qt4-r2_src_install
+
+ if use gimp; then
+ exeinto $(gimptool-2.0 --gimpplugindir)/plug-ins
+ doexe ptGimp
+ doexe "mm extern photivo.py"
+ fi
+}
diff --git a/media-gfx/photivo/photivo-9999.ebuild b/media-gfx/photivo/photivo-9999.ebuild
new file mode 100644
index 000000000000..8bfa2a2968b7
--- /dev/null
+++ b/media-gfx/photivo/photivo-9999.ebuild
@@ -0,0 +1,70 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+
+inherit qt4-r2 mercurial
+
+DESCRIPTION="Photo processor for RAW and Bitmap images"
+HOMEPAGE="http://www.photivo.org"
+EHG_REPO_URI="https://bitbucket.org/Photivo/photivo"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS=""
+IUSE="gimp"
+
+RDEPEND="dev-qt/qtcore:4
+ dev-qt/qtgui:4
+ || ( virtual/jpeg:62 media-libs/jpeg:62 )
+ media-gfx/exiv2
+ media-libs/cimg
+ media-libs/lcms:2
+ media-libs/lensfun
+ sci-libs/fftw:3.0
+ media-libs/liblqr
+ media-gfx/graphicsmagick[q16,-lcms]
+ gimp? ( media-gfx/gimp )"
+DEPEND="${RDEPEND}"
+
+src_prepare() {
+ # remove ccache dependency
+ local File
+ for File in $(find "${S}" -type f); do
+ if grep -sq ccache ${File}; then
+ sed -e 's/ccache//' -i "${File}" || die
+ fi
+ done
+
+ # bug 560120 - fix includes for lensfun.h
+ sed -s -e 's:lensfun.h:lensfun\/lensfun.h:' \
+ -i ReferenceMaterial/LensFunSample.c \
+ -i Sources/ptConstants.h \
+ -i Sources/ptImage.h \
+ -i Sources/ptImage_Lensfun.cpp \
+ -i Sources/ptLensfun.h || die
+
+ # useless check (no pkgconfig file is provided)
+ sed -e "/PKGCONFIG += CImg/d" \
+ -i photivoProject/photivoProject.pro || die
+ qt4-r2_src_prepare
+}
+
+src_configure() {
+ local config="WithSystemCImg"
+ if use gimp ; then
+ config+=" WithGimp"
+ fi
+
+ eqmake4 "CONFIG+=${config}"
+}
+
+src_install() {
+ qt4-r2_src_install
+
+ if use gimp; then
+ exeinto $(gimptool-2.0 --gimpplugindir)/plug-ins
+ doexe ptGimp
+ doexe "mm extern photivo.py"
+ fi
+}
diff --git a/media-gfx/photopc/Manifest b/media-gfx/photopc/Manifest
new file mode 100644
index 000000000000..5092abcb1a9c
--- /dev/null
+++ b/media-gfx/photopc/Manifest
@@ -0,0 +1,5 @@
+DIST photopc-3.07.tar.gz 183668 SHA256 b42824a7cf7ce76e8e8e81345463d25b8dadd16799920da062aa36aa6ed8489c SHA512 2346da12e8276024a33582806898660da74613edd7fe8ee3f707e505197ba6072c31d58a24b540021e60117d81f553360a7efa57924db9cd0a4e428d64c0c1d3 WHIRLPOOL c2867cfc6e46a038cd00c3ac391e3dac0d6d927e21f1dc1a7fb34c247fb19707286b4e726d0b27f2bb4e69f960204b9dbf1ffceffd5038266a14e39c5a552626
+EBUILD photopc-3.07.ebuild 501 SHA256 ee656726771f199fbd41d15112c73f1465697da3cb63e05fd0b20e76259b38e6 SHA512 43507f6ff25a5ed40d29e3f9793e6d6f3ce4ea169aa153ddeedc916ad00b8240b01ec3e855edb03fd500b08240dcd168d7e5bb574f63a3b4b62ea36c49d9df26 WHIRLPOOL 33557b1d09ba699a7cfad2571b0cc9fcba48fdda02a1fa23877e85c86094073f2b778824dc52616ecf00ed552bf24a33b49a0b5fbec78edc1c08a4447a32cd61
+MISC ChangeLog 2521 SHA256 83b671cffbc8c5d6d25c46bdc9843ec69c43f8e306fe5ecaaaa3227a7a9d135e SHA512 915fca39f2c556b64bca9bcfdc203a95b3f9dcade0f105ba60497f5f3bfb4aabeb231a9fc3478817a9510d509675dbf8f558acfeaa8e49d247ac003d569e8481 WHIRLPOOL 98b5ccd17b32acec1d893d732189fb358cc06f100e998628b5d07d977d3c3abfaf7b1ec400c77baed5ae8aac4d9bb824635110c173a3a0e8ec6df4d23ef8a67d
+MISC ChangeLog-2015 2509 SHA256 2de07071ce15e4b2990d70130050bf0de9d8594212ef306146de9725d73ff2ef SHA512 bcb318b1bff258a8013e941ea6244fcd752fc030532e25f100da739c7eec69009b49f863247be66a1e70fadf9c2a94c977057ec22d7a7a1b570a998e0e5c7d56 WHIRLPOOL 5d8d82da293528b420862ecb56b1327e1ef5e8040687d62390944c0034b99bbff1327201d4fd3ad849996d2cf01ff76b74e8415cb391bbadb066fe186321b87d
+MISC metadata.xml 244 SHA256 20e1541be27f649a4ee609b2379361decaea4dd13b100cb18d696dee92d5436a SHA512 183bf97fb61d17612a38ae6403231067e26472c99e09a8a0cc20b802cf6572b2332205d7cae88166631252aac379c90c33e79ea0960f4710a6df37bc92f16ed0 WHIRLPOOL dd14467186cb09cdecbde939f9014361eb15bddcf3cf09a5300678838d2fb8803afc3fa538f39054278458e3626d6b5f8651255932518ec9adc150a8445d581d
diff --git a/media-gfx/photopc/metadata.xml b/media-gfx/photopc/metadata.xml
new file mode 100644
index 000000000000..a06d2968f54f
--- /dev/null
+++ b/media-gfx/photopc/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-needed -->
+ <upstream>
+ <remote-id type="sourceforge">photopc</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/media-gfx/photopc/photopc-3.07.ebuild b/media-gfx/photopc/photopc-3.07.ebuild
new file mode 100644
index 000000000000..1d85a3d57011
--- /dev/null
+++ b/media-gfx/photopc/photopc-3.07.ebuild
@@ -0,0 +1,25 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit toolchain-funcs
+
+DESCRIPTION="Utility to control digital cameras based on Sierra Imaging firmware"
+HOMEPAGE="http://photopc.sourceforge.net"
+SRC_URI="mirror://sourceforge/photopc/${P}.tar.gz"
+
+LICENSE="photopc"
+SLOT="0"
+KEYWORDS="amd64 ppc x86"
+IUSE=""
+
+src_compile() {
+ emake AR="$(tc-getAR)"
+}
+
+src_install() {
+ dodoc README
+ dobin photopc epinfo
+ doman photopc.1 epinfo.1
+}
diff --git a/media-gfx/photoqt/Manifest b/media-gfx/photoqt/Manifest
new file mode 100644
index 000000000000..9cea6ad6a066
--- /dev/null
+++ b/media-gfx/photoqt/Manifest
@@ -0,0 +1,5 @@
+DIST photoqt-1.5.1.tar.gz 1596831 SHA256 61018feba7e3e0b82b0bc845cab4740ea3e26339cd4b69847ed1ba5fe7bf739e SHA512 ccb4ada12e76b611475ec66ceaa2ad3a15f92311d2b7c22aa8b94cd145a062bf502af6ff40fa9bb681c5dad97b2941c2a8203da4ac937c8d86c34d805084ec7c WHIRLPOOL af9bb0adfb602a270da0b754ee665e53108b1bc5584a47e779bf79b27ae262f1e5b65d4bc03ea420d55f04504f85dea6a9f27d1997c3a84aefaf1ccddac94cb6
+EBUILD photoqt-1.5.1-r1.ebuild 1137 SHA256 2f77bffd313ee903810fd4294bbd793eaf9df561483a0408c28c9e6abd78d2de SHA512 715bf0ae9407a6765a6eda1a17e22804f2d8d38b88e5825278843d09a8e4186a90632d36daed10b7e1f5c671b00f9d0f54c1675f5ae8026f0ab8b3dcda135e67 WHIRLPOOL bd8bcfbc96dc158d4298276c4c77757d7b4d0efb078de6df160b63e8372409c08811221cd3b28d8b717d45895f492549c74782daaa58a511becce92251b912cc
+MISC ChangeLog 4353 SHA256 1ca2280b539cb4da48f6592a7dabf61a601fd88e34b6c4c370c179526aa999de SHA512 a71ba6dd9e3c07920f41d8510166b194d9d56d785159318b25732a16843e3a9aa84eeb2efdaa787def4dfceef5dc5226d980ed95faef287cd606c4fc8ef45d4d WHIRLPOOL ca212b0f2a13a439a1e6584e659774860dad8fe37dc7077751de86d895bbb5582ecb44487b10860b8d4808f3bb3853d50188dd3226802481193c4909b7e20127
+MISC ChangeLog-2015 1594 SHA256 5a185b290331ca1fcf00017e3a0dc21e993a1b42682c3c04249f9b9d9120ff10 SHA512 1da45e8ea958121ce7a88fb2133c0cf5791c4835043d58e88f1d00715934571d53638da5a770fece48d3632013c27166ae2eba03c8779980b39bd608153ca776 WHIRLPOOL d7393e44c0651d18ead71eb1120470fc901f6410c3832a67137972d1d29611a46aaeacea0d6e3d3ae87da69282f50ef4e667fb4de4f447fb9bc6773fcff7091c
+MISC metadata.xml 351 SHA256 0759d905305644d892f02b51ebde0c321e0c9a394c90bf3503626d74c9c08ed9 SHA512 6db18a60ccd3bc807f609aeb416996221a04eb103a371af840eaac6b676132a3651d311c393854d54dd87a939a15fd69ffc29aca1d1e4a60a1822454aa351b98 WHIRLPOOL bad89d8ec80bfbfa06873d58123241f0becdd6f65361a010fed55b326a28d2cf35561934216fbeba653301f762846e44a2d4c12c88efe59cb8e212bf5cfbf3c6
diff --git a/media-gfx/photoqt/metadata.xml b/media-gfx/photoqt/metadata.xml
new file mode 100644
index 000000000000..79e6bfbc93ab
--- /dev/null
+++ b/media-gfx/photoqt/metadata.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>qt@gentoo.org</email>
+ <name>Gentoo Qt Project</name>
+ </maintainer>
+ <use>
+ <flag name="exiv2">
+ Use <pkg>media-gfx/exiv2</pkg> as optional dependency
+ </flag>
+ </use>
+</pkgmetadata>
diff --git a/media-gfx/photoqt/photoqt-1.5.1-r1.ebuild b/media-gfx/photoqt/photoqt-1.5.1-r1.ebuild
new file mode 100644
index 000000000000..257cbfbf17c6
--- /dev/null
+++ b/media-gfx/photoqt/photoqt-1.5.1-r1.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit cmake-utils gnome2-utils xdg-utils
+
+DESCRIPTION="Simple but powerful Qt-based image viewer"
+HOMEPAGE="http://photoqt.org/"
+SRC_URI="http://photoqt.org/pkgs/${P}.tar.gz"
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="exiv2 graphicsmagick raw"
+
+RDEPEND="
+ dev-qt/qtcore:5
+ dev-qt/qtdeclarative:5
+ dev-qt/qtgraphicaleffects:5
+ dev-qt/qtgui:5
+ dev-qt/qtimageformats:5
+ dev-qt/qtmultimedia:5[qml]
+ dev-qt/qtnetwork:5
+ dev-qt/qtquickcontrols:5
+ dev-qt/qtsql:5
+ dev-qt/qtsvg:5
+ dev-qt/qtwidgets:5
+ dev-qt/qtxml:5
+ exiv2? ( media-gfx/exiv2:= )
+ graphicsmagick? ( >=media-gfx/graphicsmagick-1.3.20:= )
+ raw? ( media-libs/libraw:= )
+"
+DEPEND="${RDEPEND}
+ dev-qt/linguist-tools:5
+"
+
+src_configure() {
+ local mycmakeargs=(
+ -DEXIV2=$(usex exiv2)
+ -DGM=$(usex graphicsmagick)
+ -DRAW=$(usex raw)
+ )
+ cmake-utils_src_configure
+}
+
+pkg_preinst() {
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ gnome2_icon_cache_update
+ xdg_desktop_database_update
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+ xdg_desktop_database_update
+}
diff --git a/media-gfx/phototonic/Manifest b/media-gfx/phototonic/Manifest
new file mode 100644
index 000000000000..03f2cfc0e0eb
--- /dev/null
+++ b/media-gfx/phototonic/Manifest
@@ -0,0 +1,5 @@
+DIST phototonic-1.6.17.tar.xz 167264 SHA256 f9d03344cb635948810c90695b592792106860bb35922b885325b2a3751c6411 SHA512 66c537c723b114de8a92692933a3671346919dde1ce028a9c067909403d91c0a161d5887e0c07e9309d524179308364fc93403c608b3226d74e28bc744e08cde WHIRLPOOL 052449af44277a3ea40562306854a745f8f02e5b137fc8e7f2aef824c06f08c967b38863204ece2f821d0fa90615163ca4fe8d9faa3729481542b0a0edd661b3
+EBUILD phototonic-1.6.17.ebuild 713 SHA256 69d126cca9410f63a1b61c3d13830b840abf362bb1b71b37a64366b144233e5f SHA512 d87c5526b5751e97c4edefead70eeee82020209b119c8a1734ecabe8b4a077d412485d4a9ba7b213b9daaa62337e131955ec8673360bf424b211cce66f44fb6e WHIRLPOOL 682fd53fc22d96a3db1f0dcdccbe4c5c15114e207cd0ebed99efd3a2a00b37d867da04ade0de0145f1dd996aa4b7d5be7a26f3786328bb5e59b56a9b848daa70
+MISC ChangeLog 2905 SHA256 ed24f5b8fc569a9acb9904931749912d8f1db5aae620dfffb80deaaca8c2549a SHA512 f6bb9578040c3214fa306f0b517de80ee81f668b7e804dea4071bdfaa9e25abe33965dca26bf879812dcd641e8753abfc86923ca440df32da169512d11382d49 WHIRLPOOL b044e1f2749314054b5410b22cf03eb793798e7fc6facd7ae9f9a819b09f6cdf72439373caab874c49c3910636e9eee077eaba2fd1db8dbf50ea98dc473f8879
+MISC ChangeLog-2015 957 SHA256 258fcf266e32c85bcadfee7f704a83d882d79946c5aa6a58bff21863b2cca6cf SHA512 0c7b8325bf838e97a241b311573c7586837c05c0ab31b73de9702cd18b7ff3be83c5909f321412f881fe1e69eb75dd15981c67803a855c8a46a44e15522c98a0 WHIRLPOOL 76f9d4b24d7c752da9d51726e954e7514d90084f56d2b6cef54e05116c34b410ac118f8989a7074a808a2bb82fa55c6ad8a710a5f80a7043fdf86d154fc7297d
+MISC metadata.xml 339 SHA256 c3b7b4f0b79cbcfe81167ad34c72116f47118f31abb6d8e1fc4457ac939f3cdf SHA512 7793436a2c6de004c369473dada585f2ade8105984db831f889da06ec98d6e20213e6256fc0b0817531dc5f7729f4737e08e2d5f4dad5b8922f7ef99b46f16f9 WHIRLPOOL 1f127867dc09bd407b4a2c4d40c0456c27d4a9c18001b463397de64f26dbf2087982b942176c5af73299b1749fef121ad1422b88fa4ef8c7cdc3c82ed88ad987
diff --git a/media-gfx/phototonic/metadata.xml b/media-gfx/phototonic/metadata.xml
new file mode 100644
index 000000000000..56d75214d8b3
--- /dev/null
+++ b/media-gfx/phototonic/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>qt@gentoo.org</email>
+ <name>Gentoo Qt Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">oferkv/phototonic</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/media-gfx/phototonic/phototonic-1.6.17.ebuild b/media-gfx/phototonic/phototonic-1.6.17.ebuild
new file mode 100644
index 000000000000..296d9bdff6be
--- /dev/null
+++ b/media-gfx/phototonic/phototonic-1.6.17.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit qmake-utils
+
+DESCRIPTION="Image viewer and organizer"
+HOMEPAGE="https://github.com/oferkv/phototonic"
+if [[ ${PV} = *9999* ]]; then
+ inherit git-r3
+ EGIT_REPO_URI="https://github.com/oferkv/phototonic.git"
+else
+ SRC_URI="https://dev.gentoo.org/~yngwin/distfiles/${P}.tar.xz"
+ KEYWORDS="~amd64 ~x86"
+fi
+
+LICENSE="GPL-3"
+SLOT="0"
+IUSE="svg tiff"
+
+RDEPEND="dev-qt/qtwidgets:5
+ dev-qt/qtgui:5
+ dev-qt/qtcore:5
+ media-gfx/exiv2:=
+ svg? ( dev-qt/qtsvg:5 )
+ tiff? ( dev-qt/qtimageformats:5 )"
+DEPEND="${RDEPEND}"
+
+src_configure() {
+ eqmake5
+}
+
+src_install() {
+ emake install INSTALL_ROOT="${D}"
+}
diff --git a/media-gfx/pictureflow/Manifest b/media-gfx/pictureflow/Manifest
new file mode 100644
index 000000000000..a3a558c3db8c
--- /dev/null
+++ b/media-gfx/pictureflow/Manifest
@@ -0,0 +1,5 @@
+DIST pictureflow-0.1.0.tar.gz 10704 SHA256 cae5a13ab5cc05cf2510f38b8559b9b7a855cfe9a2f3a521c2d5f0e39269bb42 SHA512 bf0a6a178d945146885a016926ffa29fa3be19c30ccae9d5862c9ae40dd888b962d66037eef973e0f4fa08658dabab9c751adb0e80fb16979c076239172b88bd WHIRLPOOL a9465948bcc72bb96820414eaed3040a42b472f4a7f8ceefa1370c192dc6cd2396ce8721221483de9ce8b6d184650a5c11d6ad49e69ef4d8ccf144f7ad708ecb
+EBUILD pictureflow-0.1.0.ebuild 580 SHA256 6c03b61b79aeeb02daff1aea21684f5e47f0fd1bc8773272d1c6fabd6de036e2 SHA512 5c26467eefad06165dd92ea44779e2597c26bf270b8823cd9703d1fb03b163f25e881e873366e506203b3fbfca35a6d410e64e5e7a890575869bb2929c3c81cd WHIRLPOOL 1d65cc672f40209b35c90082905f4539288e415223b3f6f968c853e4eb041928631f48ae37fed4f401d61f40b30f19962eaeabdab84689579e7af68bbde523f0
+MISC ChangeLog 2702 SHA256 489dcf1d62884b466174e18d43c5c972cb13ad0d47a0035bb31d1da70175911b SHA512 bd9348ed41d22e0fae04e6458bd35c3110105baea9d3047ff49383d906dff64ccb5b8797133693818eec78beea7363fae37749058dca01554dbe25e2866a9a42 WHIRLPOOL 4767b53dce5acdfa0f2f31940864c8df473a1c0311499bd19b46fa389ba6093e9b96064d4b7ec3e77a96d491dcd5e2e5e0fba49b5c22fa497a35dd230f7f733d
+MISC ChangeLog-2015 1225 SHA256 2cb6c1f6de24ffb1878fa4995ecc343b0bbce92df24a521a67691ef1c35cbca0 SHA512 eee7ee202383bdf4fc4bf90d4fd89288d131d0aed17eaf0fe19a506e42a1ce74b82dceb2a02d89f6b89b11adaeefff56a556590bf6f0f7a6d8d80e7fe6540fb9 WHIRLPOOL 139de279de02f7f641ea81e08828c66b94c077f3445a70da082539ed8f3d5a93c3eafae12f7b8e0779d46951a8eebc72d654654be90c249bf13f2edab6b5504a
+MISC metadata.xml 248 SHA256 b7400588ec8a06b833557541d06d8368e25fca7bfd29e761a7d8f0d4a74853a1 SHA512 b2a26b2e861162ae41141e3226351e28fc048bb6722e1fd214df535f3711c5700555ff244a672d318de17c10a9aea6b5826417b7a91eed9edda05fc4bad50574 WHIRLPOOL d7cd9b304ba4caa50e3fdd9d6f53d7aeeb07b7b6ebb6fe03a90d3260eccca1af4801b23a64729dda6dc87954e5d2e14ce51176d5047e6ee735c4e94b9a6975df
diff --git a/media-gfx/pictureflow/metadata.xml b/media-gfx/pictureflow/metadata.xml
new file mode 100644
index 000000000000..4445882d31bd
--- /dev/null
+++ b/media-gfx/pictureflow/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-needed -->
+ <upstream>
+ <remote-id type="google-code">pictureflow</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/media-gfx/pictureflow/pictureflow-0.1.0.ebuild b/media-gfx/pictureflow/pictureflow-0.1.0.ebuild
new file mode 100644
index 000000000000..b479972194fc
--- /dev/null
+++ b/media-gfx/pictureflow/pictureflow-0.1.0.ebuild
@@ -0,0 +1,24 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="2"
+inherit qt4-r2
+
+DESCRIPTION="Qt widget to display images with animated transition effect"
+HOMEPAGE="http://www.qt-apps.org/content/show.php/PictureFlow?content=75348"
+SRC_URI="https://${PN}.googlecode.com/files/${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="amd64 ~sparc x86"
+IUSE="debug"
+
+DEPEND="dev-qt/qtgui:4"
+RDEPEND="${DEPEND}"
+S="${WORKDIR}/${P}/${PN}-qt"
+
+src_install() {
+ dobin ${PN} || die "dobin failed"
+ cd ..
+ dodoc ChangeLog || die "dodoc failed"
+}
diff --git a/media-gfx/pinta/Manifest b/media-gfx/pinta/Manifest
new file mode 100644
index 000000000000..2db0c5c89de5
--- /dev/null
+++ b/media-gfx/pinta/Manifest
@@ -0,0 +1,7 @@
+AUX pinta-1.6-mono-4.patch 4938 SHA256 7c5112547fe00ddb6d8733a7989ae8f38b98494a8841402567dd8e4fd8151a7f SHA512 142113fbc7e7b80f29c5a6aed921326239961903df10e28adcd4677125da366a24e816577fa570f6e359c06f3f47294a6203de8cfca27f39cc49016fdec61e55 WHIRLPOOL 96dc570d1ccda21a241da4b260b3e314ed4f2e1ef1feaecdf845e71e9faea54b890164b22d0decbfe7629da11fa5491d8cc2ed22972042aa8f456ec1396800ff
+DIST pinta-1.6.tar.gz 1444709 SHA256 f1ea9e95f1051b92c8d8b6f622dfb77bd26254a165a836ec179aae10eb99d881 SHA512 b22ac05c639f9b0f2a49efc7b1f2c10774b3f2fb436dddd58f0005afadc103d4e77d6044479db0b3df04221922634502b1c16aa78d00894bca6a49931889f834 WHIRLPOOL 2ec8aeb1820c90d5c503cc6012e0ec31812937e2818d945c61f63a5e892c166acbf1b7e08d478c992bb9606507f0f6fdd721d0e09966d3110dfdedbedc666eb3
+EBUILD pinta-1.6-r2.ebuild 951 SHA256 6f31d8c6560097b3eba17438cf4960aaac8ffdfeff7cde5416d5cbc1444c0815 SHA512 bce49d2782edc4c21ee0f625abdda158118a6c1d4a5a4e8c861b0e1c6f9999408e3f46c402d1014c76ebbd25c0ad09d83247c9eb140aaa2c582fde15fcfbe8f1 WHIRLPOOL 7d8e31cfd0b3c1911bc37065b928054d6056b4eedcb53738bf3cec620fdf7f3f3b884a49030f3db44d6630d6cf42db289b08a50975aee2ece9dfc4d51a0d1b6a
+EBUILD pinta-9999.ebuild 908 SHA256 d4e20dda1982cd8ddc7a734a918b15c3e1de172ad05a138fbebf67b587ac1410 SHA512 57d870e05e533bd8e3984ec3d8bb01e6e0417aecf155ece81cd868993970617c836383a8ff9c1f2691c4053a64bb7b60c4e7558d95dade2cc477747d3e755402 WHIRLPOOL b804b0e14fa443f38fa5840e1fe6399b910906dd3a39217298468e414cea4489baa8343143a9fad4b7c1d535a57c47fd53429b8faec09494b1c473d575f9608a
+MISC ChangeLog 5022 SHA256 a27ee9d9bc0b5bb9f2d23eb4360bc3b7036ed8c43b1031b29a51c32eff8a9190 SHA512 bef659fdacf4ea003472d71ad4bc33a6b54b5e5bf79bd0464e2c2bf5a9f946df15a920a2139048c9d93079f9209fd8796107a871ec850fe37868ac19d197a69e WHIRLPOOL 6f912ce0c48359ef948375be1ec0c3f5ae430ed7afde60ba5ebd55939af155b088b0dad05aee3fddf3a7cc323984774793b765f2427a08841a12acedca9269a7
+MISC ChangeLog-2015 1889 SHA256 442307086c5550ad38ce99a0a9bc6e69d7f453b04a112f31f69779b76baac02d SHA512 4f6016640e8d04d602e171c3b530c543a410ed9f8dadc8695550914d5ecd77c69c7cb137bb912b65f6fb5345407cec9df7a2fbc5b41d989745c2bf9796a87ae4 WHIRLPOOL 5c6057b1d3e0b4363bd7982e19102b986935ff26e2cec246e55e5f68fd0960e0ad33f78bc5def3ded6676cdb4c7949eb131f14265889f9b3c3e642f0f36ea7d1
+MISC metadata.xml 1099 SHA256 ac500c6d03976fb34a624fb3c7ef699662b8c19764c03451a7a54cd493a16b3b SHA512 963852e443a489f0c49d174d1415c4004c9c274204c63f6be14a8e8c013d9ad3d840d03709ac572249a06ac490eac107180e259a4b2e1a41543cce89ee338306 WHIRLPOOL 4d6a372d8b20eee17ef7104c3f27f8dd959bfceb571e3c66a53dfa2227d475757baba00236baccabfcc98e9ff9fb710770d701a8652817404231659b524d24e9
diff --git a/media-gfx/pinta/files/pinta-1.6-mono-4.patch b/media-gfx/pinta/files/pinta-1.6-mono-4.patch
new file mode 100644
index 000000000000..0e37a46815bb
--- /dev/null
+++ b/media-gfx/pinta/files/pinta-1.6-mono-4.patch
@@ -0,0 +1,70 @@
+diff -Naur pinta-1.6_orig/Pinta/Pinta.csproj pinta-1.6/Pinta/Pinta.csproj
+--- pinta-1.6_orig/Pinta/Pinta.csproj 2015-03-01 23:07:57.000000000 +0100
++++ pinta-1.6/Pinta/Pinta.csproj 2015-12-12 15:02:28.796155090 +0100
+@@ -80,7 +80,7 @@
+ <Reference Include="atk-sharp, Version=2.12.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f">
+ <Package>gtk-sharp-2.0</Package>
+ </Reference>
+- <Reference Include="Mono.Posix, Version=2.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756, processorArchitecture=MSIL" />
++ <Reference Include="Mono.Posix, Version=4.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756, processorArchitecture=MSIL" />
+ <Reference Include="System" />
+ <Reference Include="gtk-sharp, Version=2.12.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f">
+ <Package>gtk-sharp-2.0</Package>
+diff -Naur pinta-1.6_orig/Pinta.Core/Pinta.Core.csproj pinta-1.6/Pinta.Core/Pinta.Core.csproj
+--- pinta-1.6_orig/Pinta.Core/Pinta.Core.csproj 2015-03-01 23:07:57.000000000 +0100
++++ pinta-1.6/Pinta.Core/Pinta.Core.csproj 2015-12-12 15:02:28.798155090 +0100
+@@ -55,7 +55,7 @@
+ <CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
+ </PropertyGroup>
+ <ItemGroup>
+- <Reference Include="Mono.Posix, Version=2.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756, processorArchitecture=MSIL" />
++ <Reference Include="Mono.Posix, Version=4.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756, processorArchitecture=MSIL" />
+ <Reference Include="System" />
+ <Reference Include="gtk-sharp, Version=2.12.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
+ <Reference Include="System.Core" />
+diff -Naur pinta-1.6_orig/Pinta.Effects/Pinta.Effects.csproj pinta-1.6/Pinta.Effects/Pinta.Effects.csproj
+--- pinta-1.6_orig/Pinta.Effects/Pinta.Effects.csproj 2015-03-01 23:07:57.000000000 +0100
++++ pinta-1.6/Pinta.Effects/Pinta.Effects.csproj 2015-12-12 15:02:28.797155090 +0100
+@@ -58,7 +58,7 @@
+ <Reference Include="gdk-sharp, Version=2.12.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
+ <Reference Include="glib-sharp, Version=2.12.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
+ <Reference Include="gtk-sharp, Version=2.12.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
+- <Reference Include="Mono.Posix, Version=2.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756, processorArchitecture=MSIL" />
++ <Reference Include="Mono.Posix, Version=4.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756, processorArchitecture=MSIL" />
+ <Reference Include="System" />
+ <Reference Include="System.Core">
+ </Reference>
+diff -Naur pinta-1.6_orig/Pinta.Gui.Widgets/Pinta.Gui.Widgets.csproj pinta-1.6/Pinta.Gui.Widgets/Pinta.Gui.Widgets.csproj
+--- pinta-1.6_orig/Pinta.Gui.Widgets/Pinta.Gui.Widgets.csproj 2015-03-01 23:07:57.000000000 +0100
++++ pinta-1.6/Pinta.Gui.Widgets/Pinta.Gui.Widgets.csproj 2015-12-12 15:02:28.797155090 +0100
+@@ -54,7 +54,7 @@
+ <CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
+ </PropertyGroup>
+ <ItemGroup>
+- <Reference Include="Mono.Posix, Version=2.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756, processorArchitecture=MSIL" />
++ <Reference Include="Mono.Posix, Version=4.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756, processorArchitecture=MSIL" />
+ <Reference Include="System" />
+ <Reference Include="gtk-sharp, Version=2.12.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
+ <Reference Include="gdk-sharp, Version=2.12.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
+diff -Naur pinta-1.6_orig/Pinta.Install.proj pinta-1.6/Pinta.Install.proj
+--- pinta-1.6_orig/Pinta.Install.proj 2015-03-01 23:14:37.000000000 +0100
++++ pinta-1.6/Pinta.Install.proj 2015-12-12 15:05:20.974156635 +0100
+@@ -1,5 +1,5 @@
+ <?xml version="1.0" encoding="utf-8"?>
+-<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="3.5">
++<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0">
+
+ <!-- Set some paths -->
+ <PropertyGroup>
+diff -Naur pinta-1.6_orig/Pinta.Tools/Pinta.Tools.csproj pinta-1.6/Pinta.Tools/Pinta.Tools.csproj
+--- pinta-1.6_orig/Pinta.Tools/Pinta.Tools.csproj 2015-03-01 23:07:57.000000000 +0100
++++ pinta-1.6/Pinta.Tools/Pinta.Tools.csproj 2015-12-12 15:02:28.795155090 +0100
+@@ -54,7 +54,7 @@
+ <CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
+ </PropertyGroup>
+ <ItemGroup>
+- <Reference Include="Mono.Posix, Version=2.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756, processorArchitecture=MSIL" />
++ <Reference Include="Mono.Posix, Version=4.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756, processorArchitecture=MSIL" />
+ <Reference Include="System" />
+ <Reference Include="System.Core" />
+ <Reference Include="System.Xml" />
diff --git a/media-gfx/pinta/metadata.xml b/media-gfx/pinta/metadata.xml
new file mode 100644
index 000000000000..bca9f7f689f6
--- /dev/null
+++ b/media-gfx/pinta/metadata.xml
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>axelgenus@gmail.com</email>
+ <name>Alessandro Calorì</name>
+ <description>Proxied maintainer; set to assignee in all bugs</description>
+ </maintainer>
+ <maintainer type="project">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+ </maintainer>
+ <upstream>
+ <maintainer status="active">
+ <email>cameronwhite91@gmail.com</email>
+ <name>Cameron White</name>
+ </maintainer>
+ <changelog>https://github.com/PintaProject/Pinta/commits/1.3</changelog>
+ <doc lang="en">http://pinta-project.com/HowTo.ashx</doc>
+ <bugs-to>https://bugs.launchpad.net/pinta/+filebug</bugs-to>
+ <remote-id type="github">PintaProject/Pinta</remote-id>
+ </upstream>
+ <longdescription lang="en">
+ Pinta is a free, open source drawing/editing program modeled after
+ Paint.NET. Its goal is to provide users with a simple yet powerful
+ way to draw and manipulate images on Linux, Mac, and Windows.
+ </longdescription>
+</pkgmetadata>
diff --git a/media-gfx/pinta/pinta-1.6-r2.ebuild b/media-gfx/pinta/pinta-1.6-r2.ebuild
new file mode 100644
index 000000000000..a7a2511089b9
--- /dev/null
+++ b/media-gfx/pinta/pinta-1.6-r2.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit fdo-mime mono-env gnome2-utils
+
+DESCRIPTION="Simple Painting for Gtk"
+HOMEPAGE="http://pinta-project.com"
+SRC_URI="https://github.com/PintaProject/Pinta/releases/download/${PV}/${P}.tar.gz"
+
+LICENSE="MIT CC-BY-3.0"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+COMMON_DEPEND="dev-lang/mono
+ dev-dotnet/mono-addins[gtk]"
+RDEPEND="${COMMON_DEPEND}
+ x11-libs/cairo[X]
+ x11-libs/gdk-pixbuf[X,jpeg,tiff]
+ x11-themes/adwaita-icon-theme"
+DEPEND="${COMMON_DEPEND}
+ dev-util/intltool
+ virtual/pkgconfig
+ sys-devel/gettext"
+
+src_prepare() {
+ epatch "${FILESDIR}/${P}-mono-4.patch"
+}
+
+pkg_preinst() {
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ fdo-mime_desktop_database_update
+ fdo-mime_mime_database_update
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ fdo-mime_desktop_database_update
+ fdo-mime_mime_database_update
+ gnome2_icon_cache_update
+}
diff --git a/media-gfx/pinta/pinta-9999.ebuild b/media-gfx/pinta/pinta-9999.ebuild
new file mode 100644
index 000000000000..f7a8986b7575
--- /dev/null
+++ b/media-gfx/pinta/pinta-9999.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit fdo-mime mono-env gnome2-utils autotools git-2
+
+DESCRIPTION="Simple Painting for Gtk"
+HOMEPAGE="http://pinta-project.com"
+SRC_URI=""
+EGIT_REPO_URI="https://github.com/PintaProject/Pinta.git"
+
+LICENSE="MIT CC-BY-3.0"
+SLOT="0"
+KEYWORDS=""
+
+COMMON_DEPEND="dev-lang/mono
+ dev-dotnet/mono-addins[gtk]"
+RDEPEND="${COMMON_DEPEND}
+ x11-libs/cairo[X]
+ x11-libs/gdk-pixbuf[X,jpeg,tiff]
+ x11-themes/adwaita-icon-theme"
+DEPEND="${COMMON_DEPEND}
+ dev-util/intltool
+ virtual/pkgconfig
+ sys-devel/gettext"
+
+src_prepare() {
+ eautoreconf
+}
+
+pkg_preinst() {
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ fdo-mime_desktop_database_update
+ fdo-mime_mime_database_update
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ fdo-mime_desktop_database_update
+ fdo-mime_mime_database_update
+ gnome2_icon_cache_update
+}
diff --git a/media-gfx/pixels2pgf/Manifest b/media-gfx/pixels2pgf/Manifest
new file mode 100644
index 000000000000..a1c5440e1fcb
--- /dev/null
+++ b/media-gfx/pixels2pgf/Manifest
@@ -0,0 +1,6 @@
+DIST pixels2pgf-0.1.tar.bz2 52260 SHA256 d6aa4f92e9a23719e98882b8537137fcd20ca99708bd90e902a47ff259eae1be SHA512 30ae063fcc6fe0a4b2ea98d9a4c90772e6f41d8923b5d0746e1fa22f92832bbca02c33d41fa3032f300c3e7cd866a735337cf0166d29cd39a6346474a3016204 WHIRLPOOL 04ade14cc447e9ebc4a7dd52b373b29f915bba87cf83af5b8ba4fd04ee075f3d28c7ed2cff367632dc76cf783fa8a327333a4cbcf6bc61b3718c7afb3f9f1807
+EBUILD pixels2pgf-0.1.ebuild 452 SHA256 fb342f50ad176a1fe1780a1e2c8a2602f19f901c8706fbe94644f7bb57524b54 SHA512 59dcef2b6f1145aceef99d189893494c8237b60dfe8d5e1966282071644c2df2f7870acd5eaa2996002aaae3e6efc66de496c0fa2bd31c76b425d0570fbc4635 WHIRLPOOL de924d319d337c52ae662171d00faa836c6d18d47f42257259304d485be61706803f1f197a20cdde6aaf9ed38021652ed1696244e8806e22769b59168ae40054
+EBUILD pixels2pgf-9999.ebuild 488 SHA256 1c57b967ce098387b73ff226f643bf16829f2cd92294c94fed9e77f8b795e3e7 SHA512 35323c6d7174331ec9f96dd2622e75c8371a851a428a3ecf6ed64fd04ad4a8d5ad40f684cc28b11f5d9f874f7a1843d0b0e39a14744043eb028305aae3066f34 WHIRLPOOL f66f5756c3cdd367155825ac379d82799b0a33ed9ee741bf91e8b7f2cb67fb6638b336f201d8f6523fee2d10584a0bd98875a611b78e2a96e1d63119750b444d
+MISC ChangeLog 2924 SHA256 20e0af51e983d246c52d84307631c3c8786be3ca3c34b137e93041ff1ef17d09 SHA512 8fa595c0d567bfc1e4a655d5b7c661d38acbeead11babbd21d31b97cb9c0dfc9a75da4f63ce20a5f1669d5f0149fa2f24841c18294fbc1e12403a8c9bd482ff8 WHIRLPOOL 5932eb1aec8004b8a28fbb93a05018c6611cb7192505f703ef21e7677171a227ae3720e31002f440ac2e9bdfa98c3dc4c4d3759ec85a4de148c57c5ae0de01bc
+MISC ChangeLog-2015 784 SHA256 bfa94e2c934278ac8d9253993ce2f53bf6623050183eb95a7a22f5c4c9d96b39 SHA512 c05efd0010cc96668c008bfd70144b37aac1ff4b936f5c8e139c31a7ffd83f23fc722489a10226ac97d19963dce409bfec2a11d1b57a1c2c4dae3edccc7f7db2 WHIRLPOOL c42e75cc8872ab194d3c9b217961959f60c4b22352c2a5fbe7877172fd1c46a74993f9002371d36ed55ef5a01b7d61f8ca016e2a19e96f4852b579589fbc2f37
+MISC metadata.xml 509 SHA256 f1637683a357bb98bd54a668310e55691220f68942387b8411e81a86e320d0d8 SHA512 a7eeef29248132b8d4c851d8e22a260c78ff8d41108f8537aec4660182f6e974650dd8840f2338dbb89eb77ea7241da9bc97bef2bc9789a3c10e6c45fce9c344 WHIRLPOOL e2ef5b7146f7869bf8c6f04e2ab42a468d6e07dd807cccf4344f1aa1ea60f7a06212a302adfe540fa0b9a23c5f0a46b503fa3a7a4bd8e4377f6c8e3ad76f46fb
diff --git a/media-gfx/pixels2pgf/metadata.xml b/media-gfx/pixels2pgf/metadata.xml
new file mode 100644
index 000000000000..201d4e0e1c2e
--- /dev/null
+++ b/media-gfx/pixels2pgf/metadata.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>mgorny@gentoo.org</email>
+ <name>Michał Górny</name>
+ </maintainer>
+ <upstream>
+ <maintainer status="active">
+ <email>mgorny@gentoo.org</email>
+ <name>Michał Górny</name>
+ </maintainer>
+ <bugs-to>https://github.com/mgorny/pixels2pgf/issues/</bugs-to>
+ <remote-id type="github">mgorny/pixels2pgf</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/media-gfx/pixels2pgf/pixels2pgf-0.1.ebuild b/media-gfx/pixels2pgf/pixels2pgf-0.1.ebuild
new file mode 100644
index 000000000000..c69380b1d9b4
--- /dev/null
+++ b/media-gfx/pixels2pgf/pixels2pgf-0.1.ebuild
@@ -0,0 +1,17 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DESCRIPTION="Convert pixel images (e.g. QRCode) to PGF/Tikz rectangles"
+HOMEPAGE="https://github.com/mgorny/pixels2pgf/"
+SRC_URI="https://github.com/mgorny/pixels2pgf/releases/download/${P}/${P}.tar.bz2"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="media-libs/libsdl:0=
+ media-libs/sdl-image:0="
+DEPEND="${RDEPEND}"
diff --git a/media-gfx/pixels2pgf/pixels2pgf-9999.ebuild b/media-gfx/pixels2pgf/pixels2pgf-9999.ebuild
new file mode 100644
index 000000000000..765618b50660
--- /dev/null
+++ b/media-gfx/pixels2pgf/pixels2pgf-9999.ebuild
@@ -0,0 +1,25 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+EGIT_REPO_URI="https://github.com/mgorny/${PN}.git"
+inherit autotools git-r3
+
+DESCRIPTION="Convert pixel images (e.g. QRCode) to PGF/Tikz rectangles"
+HOMEPAGE="https://github.com/mgorny/pixels2pgf/"
+SRC_URI=""
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS=""
+IUSE=""
+
+RDEPEND="media-libs/libsdl:0=
+ media-libs/sdl-image:0="
+DEPEND="${RDEPEND}"
+
+src_prepare() {
+ default
+ eautoreconf
+}
diff --git a/media-gfx/pixie/Manifest b/media-gfx/pixie/Manifest
new file mode 100644
index 000000000000..400ca5ba927e
--- /dev/null
+++ b/media-gfx/pixie/Manifest
@@ -0,0 +1,8 @@
+AUX Makefile.shaders 192 SHA256 c69be93547d8afda3526fbca5fc3e654b7a66f4d0be6f21c3da7d846cbd6eaca SHA512 61bdde5f5d74d9c1e66d023d21d86a86f5a00d8b318b53042bbb25c3459fe9c29ba228ef7baceb3c2361d6716981ccfb6192362c7a72813aa0ecaa92d724b365 WHIRLPOOL ee46b3f6ad905db00f02cb47994a8a890740723f6d70056b6c4adb736f935e1faaf10b56ba7c2fe2311b6315673c40941715c880faedb55731212f46d7cd6937
+AUX pixie-2.2.6-autotools.patch 680 SHA256 c9010ced0371bc3355af70369418d4d86570267169902eb2b3fde40f89ae2263 SHA512 7212c644118af829c3bdc87998eb009b9235fc608054a1ebd1bc0f00c2e6a00f3959c2176db3ad451276351678008d312ecefbf4736eaf63989965c55eb1ac92 WHIRLPOOL cc6542055bb221cb250f44127f7e1fb4ee1109f478ea133ff98187b6c07506bc0b11c4bf71d65108190f313c32e0c5aa9f138552d83f0466d660045875363a23
+AUX pixie-2.2.6-zlib-1.2.5.2.patch 2064 SHA256 493d0af97b30e4e07714ffa14da2434018fd35a7afd67a9ae760fd3756152ff3 SHA512 f0cc7956117dc09cae574d5042a897c0f5ef9b26040c75d4c7b2ceef317c89431cceb7d32f61b5b5151efdc043e8968ac9129e1d1d6a7ac9720f9056e6db05d3 WHIRLPOOL 03bdf376dd0d6ce58e1e812dcbfe137f465b74ab8d5f971aa5e3ca185204fd1f189253848b9da6df099153783246d46f36253c9e576991dbe0cbe1028e14cdf9
+DIST Pixie-src-2.2.6.tgz 9993504 SHA256 ffbbc404265aff3d4c0303ec91549708ffba8edefc0368ac119ae2e588f35037 SHA512 9b5256f5028d6091da293557e5385e53d8bdb2b3bfc7a89228b436b75424d7bd400d04e95cc04b71526aff026085f2bc2bd49e1ac0c54d3055f827fd5d05cc95 WHIRLPOOL 68599850df3ab0207d75e0c9944cce605002d550070062f83b440d0baf86386651d812f583e8831abeea2cbaf60e5f8160f7fc141eb7bf9e1712355914a27b37
+EBUILD pixie-2.2.6-r1.ebuild 2751 SHA256 563981ccc3455d5c6542a3ab6228224924a5b9b2da41c8ef22c79bd8a082a1ba SHA512 529cf7cec81dd0f773bb7acbab64d70c64ea0c9a31117aee310958593a9d5335bb4cd7520960eaf4fcb92f427ef8dad93d2ccea220516bd413e9581562cbe4f8 WHIRLPOOL 9a313c0dfd69dec8aa4bad95c6a0b0890a9141fea992f1f9914d97ff7f9793c6f2fb3b83eabd9f1ca34b03214fbe15ee3e33e6436a5327352888a8bc7316208a
+MISC ChangeLog 2981 SHA256 c316eca3eb3a5dd124aea6ffba6aaf6626c1bec59943543fd829fd97159da0e9 SHA512 f8e7ab6fa2b7a21d4a6bd06c74ad12d0b0bafd8a4270304efe1a6335e047de00a8ac4fc219da653e6a4e4592f2002ac5465dfef64f985c68c5db446ab124934f WHIRLPOOL 382a748ca5d4c96fe5d33ffa44f67a80c3b929f112f3fa7340ee4de0c8dbae737facb1cb54fe7e55b4de53e4a716946eb4f1823e0afc44221d3182d8826445ae
+MISC ChangeLog-2015 10382 SHA256 4c006af23b8ec95a6b3961c97461c478e1be50c0f187df58e6af90f2de24d1d8 SHA512 bd4125433c961dc9c09a67094aaf038db43c45566e11ae145d8b5975c3b7fdc5f1c80c5e490ec28294c0e806951eace65806110851472a0149e8fa57db580caf WHIRLPOOL 1fc7c8962f13e8752cb292549cc0f2110316bb9250aa9e3e1c0ac88b54ba2c23cb87a43b57eed4993108e1bde6fb35048d2937982804bac249f37b873861f0dd
+MISC metadata.xml 544 SHA256 9b565484c85fba59fbb5f75a547390f2efa0957244ae7aab5e89a3e405027c3d SHA512 961588ff38565e8a709b30f704d099676d73f0d1cbe5b266cc26542d511648a740ca430ef845b290c4ad0bc2ffdbe15706534b1f6421d975e66eedf6b6853c89 WHIRLPOOL 93259831d532a3180cfff14f72db922abd46b73d13aaf6b5592496b7c41666f2fd8962366d90ec1f0db61d8359afc328d7a8a1d00367433fbaeafba2a92c9f27
diff --git a/media-gfx/pixie/files/Makefile.shaders b/media-gfx/pixie/files/Makefile.shaders
new file mode 100644
index 000000000000..fbc261c0c9bf
--- /dev/null
+++ b/media-gfx/pixie/files/Makefile.shaders
@@ -0,0 +1,15 @@
+SDRC = ../src/sdrc/sdrc
+SDRCFLAGS +=
+
+%.sdr: %.sl
+ $(SDRC) $(SDRCFLAGS) $<
+
+OBJECT1 := $(wildcard *.sl)
+OBJECT := $(OBJECT1:.sl=.sdr)
+
+all: clean $(OBJECT)
+
+clean:
+ rm -f *.sdr
+
+.PHONY: clean
diff --git a/media-gfx/pixie/files/pixie-2.2.6-autotools.patch b/media-gfx/pixie/files/pixie-2.2.6-autotools.patch
new file mode 100644
index 000000000000..7fd9f0ce76b0
--- /dev/null
+++ b/media-gfx/pixie/files/pixie-2.2.6-autotools.patch
@@ -0,0 +1,22 @@
+--- a/src/ri/Makefile.in 2009-09-23 18:10:13.414866323 +0200
++++ b/src/ri/Makefile.in 2009-09-23 18:11:15.629864395 +0200
+@@ -214,7 +214,7 @@
+ host_os = @host_os@
+ host_vendor = @host_vendor@
+ htmldir = @htmldir@
+-includedir = $(prefix)/include
++includedir = @includedir@
+ infodir = @infodir@
+ install_sh = @install_sh@
+ libdir = @libdir@
+--- a/src/sdr/Makefile.in 2009-09-23 18:14:54.194865868 +0200
++++ b/src/sdr/Makefile.in 2009-09-23 18:15:18.297863856 +0200
+@@ -199,7 +199,7 @@
+ host_os = @host_os@
+ host_vendor = @host_vendor@
+ htmldir = @htmldir@
+-includedir = $(prefix)/include
++includedir = @includedir@
+ infodir = @infodir@
+ install_sh = @install_sh@
+ libdir = @libdir@
diff --git a/media-gfx/pixie/files/pixie-2.2.6-zlib-1.2.5.2.patch b/media-gfx/pixie/files/pixie-2.2.6-zlib-1.2.5.2.patch
new file mode 100644
index 000000000000..7e0afe3a7c27
--- /dev/null
+++ b/media-gfx/pixie/files/pixie-2.2.6-zlib-1.2.5.2.patch
@@ -0,0 +1,73 @@
+http://bugs.gentoo.org/406899
+
+--- a/src/ri/rib.l
++++ b/src/ri/rib.l
+@@ -17,7 +17,7 @@
+
+ // Overwrite the YYinput so that it uses libz
+ #undef YY_INPUT
+-#define YY_INPUT(buf, retval, maxlen) if ( (retval = gzread(ribin,buf,maxlen)) < 0) \
++#define YY_INPUT(buf, retval, maxlen) if ( (retval = gzread((gzFile)ribin,buf,maxlen)) < 0) \
+ YY_FATAL_ERROR( "input in flex scanner failed" );
+
+ #endif
+@@ -223,7 +223,7 @@
+ TRibFile *nextFile = ribStack->next;
+ rib_delete_buffer( YY_CURRENT_BUFFER );
+ #ifdef HAVE_ZLIB
+- gzclose(ribin);
++ gzclose((gzFile)ribin);
+ #else
+ fclose(ribin);
+ #endif
+@@ -243,7 +243,7 @@
+ rib_delete_buffer( YY_CURRENT_BUFFER );
+
+ #ifdef HAVE_ZLIB
+- gzclose(ribin);
++ gzclose((gzFile)ribin);
+ #else
+ fclose(ribin);
+ #endif
+--- a/src/ri/ribOut.cpp
++++ b/src/ri/ribOut.cpp
+@@ -162,7 +162,7 @@
+
+ #ifdef HAVE_ZLIB
+ if (outputCompressed) {
+- gzclose(outFile);
++ gzclose((gzFile)outFile);
+ } else {
+ fclose(outFile);
+ }
+--- a/src/ri/ribOut.h
++++ b/src/ri/ribOut.h
+@@ -237,7 +237,7 @@
+ const int l = vsprintf(scratch,mes,args);
+
+ #ifdef HAVE_ZLIB
+- if (outputCompressed) gzwrite(outFile,scratch,l);
++ if (outputCompressed) gzwrite((gzFile)outFile,scratch,l);
+ else fwrite(scratch,1,l,outFile);
+ #else
+ fwrite(scratch,1,l,outFile);
+@@ -258,7 +258,7 @@
+ const int l = vsprintf(scratch,mes,args);
+
+ #ifdef HAVE_ZLIB
+- if (outputCompressed) gzwrite(outFile,scratch,l);
++ if (outputCompressed) gzwrite((gzFile)outFile,scratch,l);
+ else fwrite(scratch,1,l,outFile);
+ #else
+ fwrite(scratch,1,l,outFile);
+--- a/src/ri/rib.y
++++ b/src/ri/rib.y
+@@ -2940,7 +2940,7 @@
+
+ if (ribin != NULL) {
+ #ifdef HAVE_ZLIB
+- gzclose(ribin);
++ gzclose((gzFile)ribin);
+ #else
+ fclose(ribin);
+ #endif
diff --git a/media-gfx/pixie/metadata.xml b/media-gfx/pixie/metadata.xml
new file mode 100644
index 000000000000..2f6247ed93fe
--- /dev/null
+++ b/media-gfx/pixie/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<!-- maintainer-needed -->
+ <longdescription>
+ Pixie is an open source photorealistic renderer that uses a RenderMan-like
+ interface. Features include programmable shading, motion blur, depth of
+ field, raytracing, scan-line rendering, occlusion culling, global
+ illumination, caustics ...
+ </longdescription>
+ <upstream>
+ <remote-id type="sourceforge">pixie</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/media-gfx/pixie/pixie-2.2.6-r1.ebuild b/media-gfx/pixie/pixie-2.2.6-r1.ebuild
new file mode 100644
index 000000000000..faa1c54ca862
--- /dev/null
+++ b/media-gfx/pixie/pixie-2.2.6-r1.ebuild
@@ -0,0 +1,102 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="2"
+
+WANT_AUTOMAKE="1.10"
+
+inherit eutils multilib autotools
+
+MY_PN="Pixie"
+S="${WORKDIR}/${MY_PN}"
+
+DESCRIPTION="RenderMan like photorealistic renderer"
+HOMEPAGE="http://pixie.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${MY_PN}-src-${PV}.tgz"
+
+LICENSE="GPL-2"
+IUSE="X static-libs"
+SLOT="0"
+KEYWORDS="amd64 ~ppc sparc x86"
+
+RDEPEND="virtual/jpeg
+ media-libs/tiff
+ media-libs/libpng
+ x11-libs/fltk:1[opengl]
+ media-libs/openexr
+ virtual/opengl
+ sys-libs/zlib
+ X? (
+ x11-libs/libXext
+ x11-libs/libICE
+ x11-libs/libSM
+ x11-libs/libX11
+ x11-libs/libXau
+ x11-libs/libxcb
+ x11-libs/libXdmcp
+ x11-libs/libXi
+ x11-libs/libXmu
+ x11-libs/libXt
+ )"
+DEPEND="${RDEPEND}
+ sys-devel/flex
+ sys-devel/bison"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-zlib-1.2.5.2.patch
+ # FIX: missing @includedir@
+ # https://sf.net/tracker/?func=detail&aid=2923415&group_id=59462&atid=491094
+ epatch "${FILESDIR}"/${P}-autotools.patch
+ eautoreconf
+
+ # FIX: removing pre-compiled shaders
+ # shaders must be removed before of their compilation or make
+ # parallelism can break the regeneration process, with resulting
+ # missing shaders.
+ rm "${S}"/shaders/*.sdr
+
+ # FIX: flex does not translate variable name in custom YY_DECL
+ sed -i -e '/define YY_DECL/ s/yylval/riblval/' src/ri/rib.l || die
+}
+
+src_configure() {
+ # NOTE: the option program-transform-name is used to avoid binary name
+ # conflict with package: mail-client/nmh (see #295996)
+ econf \
+ $(use_with X x) \
+ $(use_enable static-libs static) \
+ --includedir=/usr/include/pixie \
+ --libdir=/usr/$(get_libdir)/pixie \
+ --with-docdir=/usr/share/doc/${PF}/html \
+ --with-shaderdir=/usr/share/Pixie/shaders \
+ --with-ribdir=/usr/share/Pixie/ribs \
+ --with-texturedir=/usr/share/Pixie/textures \
+ --with-displaysdir=/usr/$(get_libdir)/pixie/displays \
+ --with-modulesdir=/usr/$(get_libdir)/pixie/modules \
+ --enable-openexr-threads \
+ --disable-static-fltk \
+ --mandir=/usr/share/man \
+ --bindir=/usr/bin \
+ --program-transform-name="s/show/pixie-show/"
+}
+
+src_compile() {
+ emake || die "emake failed"
+
+ # regenerating Pixie shaders - see upstream bug report:
+ # https://sf.net/tracker/?func=detail&aid=2923407&group_id=59462&atid=491094
+ einfo "Re-building Pixie Shaders for v${PV} format"
+ emake -f "${FILESDIR}/Makefile.shaders" -C "${S}/shaders" || die "shaders rebuild failed"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "installation failed."
+
+ insinto /usr/share/Pixie/textures
+ doins "${S}"/textures/*
+
+ # remove useless .la files
+ find "${D}" -name '*.la' -delete || die "removal of libtool archive files failed"
+
+ dodoc README AUTHORS ChangeLog || die
+}
diff --git a/media-gfx/plantuml/Manifest b/media-gfx/plantuml/Manifest
new file mode 100644
index 000000000000..e8f209bdcb05
--- /dev/null
+++ b/media-gfx/plantuml/Manifest
@@ -0,0 +1,5 @@
+DIST plantuml-8046.tar.gz 2966063 SHA256 7126672c4b54d7f5b491181c7353c7ea063e848300457ae3f0bcbe3757aeb107 SHA512 2ddae800fb30c0e352b44ef06476f7d770c12d516d93fe6f82ec1f33dd3bc1cb3330ba4a0cc89e06daa6eec9a56dc772a4f901d441dea86a8ce82b8d298cdfd5 WHIRLPOOL 7b2969af763c71830294dc4f49315c84163638ffb5b724d89b0f82c773a2a3faab5dd9d33d11d9404afb7d6b6d0a0c2aa8c7156a65cc19798522db4f252c8583
+EBUILD plantuml-8046.ebuild 707 SHA256 c3705bb4c32fbb86c9911d75938c15b72c185d3772182a20a2c82dc43cdd5899 SHA512 732a2e56f552f08dd29722c80aabd1f6e949239ae5454286d46d1f3ce8c9e0ca24b081ff2a5e8a5505950ec55b229090607d5bd9fbb2556b5db22b4a41b88698 WHIRLPOOL c360f66c1f7d9a5502aabe4e472fd62c87cd89f27dc9a7d9a8fd5cbb6a360111e4e1d544bb61af226221c0081753b83539e636f47cf3e6d7cb78f2522c557ebb
+MISC ChangeLog 2761 SHA256 f7844d3d40cccf4aedd59e894a136858cda52edddad9d975827174de29d1823c SHA512 bd3e9de36dd98c95ea95b53045a7c47d9e74168b7acd581f2840e11ee940d367e91fb9a6debb65aa7a7f6c2f2b85f9199e431d2eb3c8fea25dcc5d9d7b03deb4 WHIRLPOOL 9488ebcf9c065cdcf9a76edc3bee052a29c14da0a27dd81557e85b1e0f5ca2aece1e047a0ffe6511c7b314a5287d4511fb37d5beaa5fabfb4cd8d878cc38e9da
+MISC ChangeLog-2015 508 SHA256 759478fef8550a7dda16bb1b8be7733688df218a3263e9dfc1d5275b7d0f5976 SHA512 025a86ba113daca108b0cd6435a6fb4987de036fd945a5e4bfcb8dcb6501ea810ea433a810660e10a6e9c7609bf8d973c6213f5b4fa1f1f25cbf6fb54c696018 WHIRLPOOL 20ada195a313cd0eb49c99cb59ea3fab5cd0393d9b2c3a3439c520a3b1d4a8127102561aa48b975e1282b14a285097fce12de4cc47824911feec4995a0d704ff
+MISC metadata.xml 821 SHA256 4c9ada249b13d0a741085855f3ce9ba04a6e7f707003492442d033954db5830a SHA512 8b2400bb96cbac0403ef0865bdb3d72a00dfad45f1c3807ca1a1ba0d98aa3f7777bc8d65089d82c6132ffb75a7395312b374ffaa88f67866512978be1eae9b98 WHIRLPOOL 8963e5f545a866aafc546e18fe28525aa73cf0324e5983e2a5a46fb55b46a993c566f5a0d0c6f53a1ee6eacb941b071bc1b39ff5de9059789f31ce51cd7c6a5b
diff --git a/media-gfx/plantuml/metadata.xml b/media-gfx/plantuml/metadata.xml
new file mode 100644
index 000000000000..b6419daacdd0
--- /dev/null
+++ b/media-gfx/plantuml/metadata.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>java@gentoo.org</email>
+ <name>Java</name>
+ </maintainer>
+ <longdescription lang="en">
+ PlantUMLis a component that allows to quickly write: sequence diagram, use
+ case diagram, class diagram, activity diagram, component diagram, state
+ diagram, object diagram and wireframe graphical interface.
+
+ Diagrams are defined in a text file using a simple and intuitive language.
+ This can be used within many other tools. Images can be generated in PNG
+ or SVG format. It is also possible to generate ASCII art diagrams (only for
+ sequence diagrams).
+ </longdescription>
+ <upstream>
+ <remote-id type="sourceforge">plantuml</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/media-gfx/plantuml/plantuml-8046.ebuild b/media-gfx/plantuml/plantuml-8046.ebuild
new file mode 100644
index 000000000000..e214cf19d516
--- /dev/null
+++ b/media-gfx/plantuml/plantuml-8046.ebuild
@@ -0,0 +1,30 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+JAVA_PKG_IUSE="source"
+inherit java-pkg-2 java-ant-2
+
+DESCRIPTION="Draw UML diagrams using a simple and human readable text description"
+HOMEPAGE="http://plantuml.com"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+DEPEND=">=virtual/jdk-1.7"
+
+RDEPEND=">=virtual/jre-1.7
+ dev-java/ant-core:0
+ >=media-gfx/graphviz-2.26.3"
+
+EANT_BUILD_TARGET="dist"
+EANT_GENTOO_CLASSPATH="ant-core"
+JAVA_ANT_REWRITE_CLASSPATH="true"
+
+src_install() {
+ java-pkg_dojar ${PN}.jar
+ java-pkg_dolauncher ${PN} --jar ${PN}.jar
+ use source && java-pkg_dosrc src/*
+}
diff --git a/media-gfx/png2ico/Manifest b/media-gfx/png2ico/Manifest
new file mode 100644
index 000000000000..95a9c373aba5
--- /dev/null
+++ b/media-gfx/png2ico/Manifest
@@ -0,0 +1,6 @@
+AUX png2ico-2002.12.08-memset_and_strcmp.patch 277 SHA256 643170b93549022d357ab5892f7f702f4ad0c0ad001ffbb784a1ad17d26a2390 SHA512 a89d8dc1b65e6cfc3c1201a255a1b16ef22ae0fbc02e3b8a0ac097f1d62c472960f42132d84fc9fada900138a6d49af60455999cd28d2565035a69a5244994c9 WHIRLPOOL 5c042c5fb824e85076e6e0a23a0020048ad48da434cb50a360224657994e06267051701fb8513bb9614e20be60ad23659d00b0b5bac0be960cb68c56f59421a3
+DIST png2ico-src-2002-12.08.tar.gz 26527 SHA256 d6bc2b8f9dacfb8010e5f5654aaba56476df18d88e344ea1a32523bb5843b68e SHA512 f9410d2d15a14b5350cab7bf93f91b80f9e1d0b6a1fdae8b8850d11f29c9f4000bc8c3778fe24acec75f1f182d5ea383cff38e22b8ac5da6432c0a7a2d0e3208 WHIRLPOOL 66e73ec1ec91761552a832812b30862488a2fa305f22e2ed37d44533350c44bbec8bf3015ad75fe85ef76a083c1f9e82c722a2a1ab4160cf87b2ce9a7d1c3ead
+EBUILD png2ico-2002.12.08.ebuild 812 SHA256 173d55f85cc743c77452a49964bfeea53fd8b50d9881effe457e4db40e782ad8 SHA512 3982aff7692f98faf43a05176deda7a9d55f7d42393e964fd18bff784d10cbbd3631f51a7d68889c1cf67db93d7edc7473c17727c77473264153713fa4b9540d WHIRLPOOL 7a51d271fd69d22922a09f93247dcf07e4ee97dcf342fe08ccae98dd825d104f775c1a12cc84ea85f146b3a616fa7caeba36b65ba52523ac18d45949cfd836d2
+MISC ChangeLog 2491 SHA256 9073b72a28a6f4d815b2a9b7b6eb69f07a2fc8e0553c634ea12e588d14d6dfb5 SHA512 045f450b7996c221c1975de56dac803ac69ee379d1de0459c0d68ed17fcef092123855207797ed3893ea6cf69a50caf703bae9645853344e2372a9f4f5de9538 WHIRLPOOL ca61e67de6eb873ea7f0c8dd6a4176c6a671b67cfef082a6030e75526f46bac77fa6f75d3f66bbccaca90be50248cac7c5cef4e4ea7a8a43c3dd51dcfe50f0cb
+MISC ChangeLog-2015 626 SHA256 df10a571cc99c9051d374e2d6d19adace4467b0bf9752a53367192ce025bdebf SHA512 b57561f93d5e74540851aacd96c6b66baaae296b14bc2139115b841bf8325ab65f7e0996179e44bf0a9f2db603cd82ac837b93d4b0b1e3b3daca4808ee061109 WHIRLPOOL 00513fb7914d54015ebdd8ac01916c90c89ff601658d8a22d174f1152c5aebde769c844b47b7095ee9dc0899c5f3e053d9ee39900de5cfa29283b544ab6d880b
+MISC metadata.xml 255 SHA256 3e7137870fc49956d79719e3dfe029775cbaaa097e85748c139713c46fcd1798 SHA512 b7bc93530a1726c2d4dfbc71ae29cfbb57712fd9fdd2e76fd52f35ab4368cba0497b50145d1527a3b79e465d459a380821bb1371a01c2e915dc9adc6c7fafd5f WHIRLPOOL 392188d7e069f1720be9329edfb31b11b176bf0c411023b2ceeaeabef1cacf842d70657a2a14ac2ddabbdad70a304275f3b587e9bcdfe77be63a0092e370252c
diff --git a/media-gfx/png2ico/files/png2ico-2002.12.08-memset_and_strcmp.patch b/media-gfx/png2ico/files/png2ico-2002.12.08-memset_and_strcmp.patch
new file mode 100644
index 000000000000..96720bebd18f
--- /dev/null
+++ b/media-gfx/png2ico/files/png2ico-2002.12.08-memset_and_strcmp.patch
@@ -0,0 +1,13 @@
+png2ico.cpp:133:31: error: ‘memset’ was not declared in this scope
+png2ico.cpp:443:34: error: ‘strcmp’ was not declared in this scope
+
+--- png2ico.cpp
++++ png2ico.cpp
+@@ -33,6 +33,7 @@
+
+
+ #include <cstdio>
++#include <cstring>
+ #include <vector>
+ #include <climits>
+
diff --git a/media-gfx/png2ico/metadata.xml b/media-gfx/png2ico/metadata.xml
new file mode 100644
index 000000000000..19bf1be2581e
--- /dev/null
+++ b/media-gfx/png2ico/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 type="project">
+ <email>graphics@gentoo.org</email>
+ <name>Gentoo Graphics Project</name>
+</maintainer>
+</pkgmetadata>
diff --git a/media-gfx/png2ico/png2ico-2002.12.08.ebuild b/media-gfx/png2ico/png2ico-2002.12.08.ebuild
new file mode 100644
index 000000000000..732301d1bfe0
--- /dev/null
+++ b/media-gfx/png2ico/png2ico-2002.12.08.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils toolchain-funcs
+
+DESCRIPTION="PNG to icon converter"
+HOMEPAGE="http://winterdrache.de/freeware/png2ico/index.html"
+SRC_URI="http://winterdrache.de/freeware/${PN}/data/${PN}-src-${PV/./-}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="media-libs/libpng:0=
+ sys-libs/zlib:="
+DEPEND="${RDEPEND}"
+
+S=${WORKDIR}/${PN}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-memset_and_strcmp.patch
+
+ sed -i \
+ -e 's:CPPFLAGS=-W -Wall -O2:CXXFLAGS+=-W -Wall:' \
+ -e 's:g++ $(CPPFLAGS):$(CXX) $(LDFLAGS) $(CXXFLAGS):' \
+ Makefile || die
+}
+
+src_compile() {
+ tc-export CXX
+ emake DEBUG=""
+}
+
+src_install() {
+ dobin png2ico
+ dodoc doc/bmp.txt README
+ doman doc/png2ico.1
+}
diff --git a/media-gfx/pngcheck/Manifest b/media-gfx/pngcheck/Manifest
new file mode 100644
index 000000000000..0bdb73a0d9c4
--- /dev/null
+++ b/media-gfx/pngcheck/Manifest
@@ -0,0 +1,5 @@
+DIST pngcheck-2.3.0.tar.gz 59864 SHA256 77f0a039ac64df55fbd06af6f872fdbad4f639d009bbb5cd5cbe4db25690f35f SHA512 d099a360d41fc553e9ea02e56ae9812a4a72f3b7f1cd73c021fdb0b9233bb247e100b95fe8e297a2dcdd1bb996128a365794cb8f5702e5c93618af03f18140ad WHIRLPOOL 21c097b90c87bfb1a7dd4324c4c8109adc4e4d1835b31bcb31ba21443ce16409947a3588619136890fb7600dab232c99903fa72c59e5e3a885230f5cd9ca6a4d
+EBUILD pngcheck-2.3.0.ebuild 669 SHA256 f15ac7484fba67345d5adebf805c957a4b220ddd507f2798f83545ec76ae89a4 SHA512 1c0d431094161212531dbe9c22041239c786ade1c401225b1d8e2d4aa7842019303abdd3093e28f7a2b4bbaede87afba393aa2e38995e29a55347b7f6befa160 WHIRLPOOL c402ae815ccd4e341d086afb39dbd5d0c7d35e8fe4e24f494d2159ee89538dc8e197585f5c240047f402819656ced3ee5eedaff535ff056b1ceb646158704bc6
+MISC ChangeLog 2431 SHA256 65e29bcd5ef209b23dbd95807fa3c363f30024d38cfa3104af573015027effee SHA512 945ec6b7326a2e663ba157f5990003c4786f93b9727dc9b088df93b1b16fb5255783648dbf33d674cb0404f1b3e9000298ee760c8a7de3ad2346ba9ecc4d4066 WHIRLPOOL bb810ac1dcb540e03ee7b09db789dba39c12ccb51b307345064b6b84788f29f5b26ddd11d408eebc87a9b6888b38ef4ce3a16dfd5dee76b48b082e84af7b80c5
+MISC ChangeLog-2015 795 SHA256 04f85f49966fb744ea31a8e7dc594529afc5cdc58e14d22ce0fdd659a7202630 SHA512 a2263eabb0d6ef542f472b060283cdbdbf07a193e8dc1944c3e52d28ecf541c9f90c6a4d42fe0599f2e873a92f08c0805f751a54aab2c9f4148a0b859b2605e8 WHIRLPOOL b553fb1e4d982dc11a585486824b7140ce9ab087987d53cda323027ae7995c039ea7f5687e2e30731e09fe24a30406727c95d60d4e5eb4022327be57288f6e5b
+MISC metadata.xml 336 SHA256 2f0023f83f0e2f6a21fe5b25a260e325a2bbda3b8fb576b173d3e4b068256c9a SHA512 1b1fb530bcdeb8afc7c5b1edf81cd1d02cfc6829e30273b0270a67a0a263030256b4e6fbe40d3cfdc52e5b709a0b8625d3a06e3dad0667ff88743326c35ef789 WHIRLPOOL d69bd1140979dc7c2e2df35c7cdc36c6be3208212bfdadb83d92e3dc75fd9cf35ac9bacb1f26e0daaf61a66868a0de69373049cd14bab6f71cf2594efa25bebe
diff --git a/media-gfx/pngcheck/metadata.xml b/media-gfx/pngcheck/metadata.xml
new file mode 100644
index 000000000000..bc31c3af1295
--- /dev/null
+++ b/media-gfx/pngcheck/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="sourceforge">png-mng</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/media-gfx/pngcheck/pngcheck-2.3.0.ebuild b/media-gfx/pngcheck/pngcheck-2.3.0.ebuild
new file mode 100644
index 000000000000..9731e7c72fb2
--- /dev/null
+++ b/media-gfx/pngcheck/pngcheck-2.3.0.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=2
+inherit toolchain-funcs
+
+DESCRIPTION="verifies the integrity of PNG, JNG and MNG files with internal checksums"
+HOMEPAGE="http://www.libpng.org/pub/png/apps/pngcheck.html"
+SRC_URI="mirror://sourceforge/png-mng/${P}.tar.gz"
+
+LICENSE="HPND GPL-2+"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+RDEPEND="sys-libs/zlib"
+DEPEND="${RDEPEND}"
+
+src_compile() {
+ emake -f Makefile.unx \
+ CC="$(tc-getCC)" \
+ CFLAGS="${LDFLAGS} ${CFLAGS} -DUSE_ZLIB" \
+ ZLIB="-lz" || die
+}
+
+src_install() {
+ dobin png{check,split,-fix-IDAT-windowsize} || die
+ dodoc CHANGELOG README
+}
diff --git a/media-gfx/pngcrush/Manifest b/media-gfx/pngcrush/Manifest
new file mode 100644
index 000000000000..749dda82b1bc
--- /dev/null
+++ b/media-gfx/pngcrush/Manifest
@@ -0,0 +1,12 @@
+DIST pngcrush-1.8.11-nolib.tar.xz 65272 SHA256 23a293a9e7b1e4ea94829ae0266c8672506ed2dfa80f69b11594c650bf1ae5dd SHA512 1b6d1c5b934d3d349031da1e49f1b3206cb0540a3d3a36219a800f052cd30da305b80902f7bdccfcc1487babb826a925048d30f9fbae598ca8ca18d60b3c49e1 WHIRLPOOL aa5f8177634bdef7617d443654fa600bf9231461ce141cf27d7613819a74f57d4aa95b941d4c0036fce8d58a8c495da1a392121a1b56a521accc12fbe0b7606e
+DIST pngcrush-1.8.11.tar.xz 388456 SHA256 8d530328650ec82f3cbe998729ada8347eb3dbbdf706d9021c5786144d18f5b0 SHA512 7110d3f55ec1d18bf9cf9b923bfd2e06bdf8c87fbc8ac09a6bc9e17cc5cda022185d70270f67ea63f733b18f904c05f1426a4794c29493630d5661bddbcaca2b WHIRLPOOL 68f948e39d6a7b82de6ff87cdd5609a8e7a87eae813e97dc0eaa84d254319a6217f960943945e2a4c9645f9b033706d6fcb23d243cd3a74eec326213bcddd9e2
+DIST pngcrush-1.8.12-nolib.tar.xz 65816 SHA256 1382945b524ab61882250e9d0796afd73a538e2833b51a6ae6e7b0433fc2dd3c SHA512 1ef8c02c659a36a063ac420ed67d5d6d4e293deb15023ccca861f3491a8a271d78842291c5341db6ab347ed2a3e9090ebaeff1777bd47b3d32b3a70457898913 WHIRLPOOL acb7da09428f6523bad53e86e301562bd695d352523fd0d04414e062f20382154c9544431116907863f5f21d643a038de9f25daacba49c5bcf04e918a156d4da
+DIST pngcrush-1.8.12.tar.xz 403156 SHA256 591b0de2f241c60e3eb57435a2280e62a2184aaa8e3bb82a648077b54b34b921 SHA512 340d2f96e6289ee981a3bf76d568e7b8727edc70d7a15681ab1190431e4f1eedbcdeaa62a535f5c8780f4da959c9990444ba8671e06f153297ddcc66e1b2c3b5 WHIRLPOOL 612c20d131cbee6ecea244347b95648d179f0367a54cb804ab8a43a98dbcbecebaa0dae811afc38b35369f9e067f35acc68f69435936cacef48749bc562f7ae2
+DIST pngcrush-1.8.13-nolib.tar.xz 66104 SHA256 3b4eac8c5c69fe0894ad63534acedf6375b420f7038f7fc003346dd352618350 SHA512 c073d573e9b13b72fa39b178271ce65d1a19fef35943ef0a9e6121a5c66d9db212aaad38ab777c5b44e20a107eb677003acbdb4a354bcb2dc40f535a97d9df0e WHIRLPOOL 390f81b949dea2abf87d515e6c898147e582d65a3ae60cf61b33a2669354454e8e122fa97d65dc0a2ea88cf19e75da1b681fbf964e92499850c51d63b2b1ebe3
+DIST pngcrush-1.8.13.tar.xz 404564 SHA256 8fc18bcbcc65146769241e20f9e21e443b0f4538d581250dce89b1e969a30705 SHA512 5fdb7913ec8c90af63d68477f4031c9008dac0d7f4bfd7bd47e971d218e3ef8b0e1a8bf6ba0f5d2cc4c2682c9297efb4f738b11538ad306eee5d01277ce3f628 WHIRLPOOL c4d2c82476633b900db5962bb7c706a0e2d832aaaeef410666783497d9da5911eaa93e70521288f633ca0cbac86804e89b69edcbae804ae768e88e55faea49f7
+EBUILD pngcrush-1.8.11.ebuild 855 SHA256 0486cf4753862f7d3015557f465cade682893fd536ddcad0d5842c21a6c317e0 SHA512 113f5d242a72fa5cc301e4a9a7091ffa10a286a6e4b2bc6cea5eb079d74864a506fb792965b585547dd50e3e829aaf73213a53c920b2bd0ec254f41546084350 WHIRLPOOL 8e937766a0566724c143f89f48121f9b96cdae2b3838314551e5c2bb6e639fd20ee6d978464d72b365ea9461a4b2e7ca897f3063b3f2113b631c63ac83fdd0f8
+EBUILD pngcrush-1.8.12.ebuild 857 SHA256 ab378249d4b210c3f261e80bd985097562bce89fae7b9bf5ecd4bfb67ee6c09c SHA512 fc90617ed9512154ae113473820f1498b6bcc35ece4260aa5d771b8bdb6a4a2523042d96d0a669d4090d866e05c431d9108d466193a2bf4472db6f1f8e2b1fa5 WHIRLPOOL 8a7e11fc3b8a9cf5bca655cd6a09bb73c9e1c6648bae7b4fdb4557dcc81ff086e30ed6ceecf596581bb19ad25dcff63ea0a09456caf5bb73a97db58db22b9820
+EBUILD pngcrush-1.8.13.ebuild 857 SHA256 ab378249d4b210c3f261e80bd985097562bce89fae7b9bf5ecd4bfb67ee6c09c SHA512 fc90617ed9512154ae113473820f1498b6bcc35ece4260aa5d771b8bdb6a4a2523042d96d0a669d4090d866e05c431d9108d466193a2bf4472db6f1f8e2b1fa5 WHIRLPOOL 8a7e11fc3b8a9cf5bca655cd6a09bb73c9e1c6648bae7b4fdb4557dcc81ff086e30ed6ceecf596581bb19ad25dcff63ea0a09456caf5bb73a97db58db22b9820
+MISC ChangeLog 5312 SHA256 4d1dfa96a22e1d9e1deb142215af22edbb3bdd395badb91b2d03845644372663 SHA512 ce7c5842c6733266347aa3bacfb56cc178041518c240d85c9bd045b179cfb23b2845c5435c1778f8dc3b99fcdb43be6dd598eb1ac00d149b238fba90677e0440 WHIRLPOOL 0973ace56f004c68a3b074f2dd86371545be9b34a52b0d9a174293bad8459a1c1ec041c25334174f041ddb41b773d7abc4fb2f92aeffc6dabb84526365344c5d
+MISC ChangeLog-2015 17815 SHA256 073449a46f058d812db6a464482875a97c44d240a658e753b8b86ae0db183434 SHA512 8e48877b58e4a7503a6f24c2cb6329bdb234017e50e7cdc8e8c81489bdf3136ddc1b8c853aa36603c209bfe8905fcc77bc4a243a8fde37beef4620d10945c125 WHIRLPOOL baff3c34a2c95159f5b2f2875e566a6ec099f1c1fc2ca506e3edabfef6ea95b3a65946b5d0fd0c11daec8263208eef40a9db8bcb2d6b8558239ada67e983cc4f
+MISC metadata.xml 635 SHA256 de2515e1d60739858722edb442e9d6d3f31ee7463d4f44b06c621d79bea0519e SHA512 9821899ae557a075512ff8764ca0b44212cc1ca4b64ba92e99ae6d2785154ea18ed70cb8b702b2f1460951a563235917f975bfdf64ad8bae7970b6e9d5776d6c WHIRLPOOL 00e7e34871bdd273b304d85cb70fb282759bdafc0f0a57fdc1d5a6480d008b3cb32961475155c9cbd5b63613bb92d5efa9d7daea6e2fd1312de588d93d6dc850
diff --git a/media-gfx/pngcrush/metadata.xml b/media-gfx/pngcrush/metadata.xml
new file mode 100644
index 000000000000..4ac970928467
--- /dev/null
+++ b/media-gfx/pngcrush/metadata.xml
@@ -0,0 +1,19 @@
+<?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>
+ <maintainer status="active">
+ <email>glennrp@gmail.com</email>
+ <name>Glenn Randers-Pehrson</name>
+ </maintainer>
+ <bugs-to>https://sourceforge.net/tracker/?group_id=1689</bugs-to>
+ <remote-id type="sourceforge">pmt</remote-id>
+ </upstream>
+ <use>
+ <flag name="system-libs">Use libpng and libz provided by system</flag>
+ </use>
+</pkgmetadata>
diff --git a/media-gfx/pngcrush/pngcrush-1.8.11.ebuild b/media-gfx/pngcrush/pngcrush-1.8.11.ebuild
new file mode 100644
index 000000000000..2da3e2abd130
--- /dev/null
+++ b/media-gfx/pngcrush/pngcrush-1.8.11.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit toolchain-funcs
+
+DESCRIPTION="Portable Network Graphics (PNG) optimizing utility"
+HOMEPAGE="http://pmt.sourceforge.net/pngcrush/"
+SRC_URI="system-libs? ( mirror://sourceforge/pmt/${P}-nolib.tar.xz )
+ !system-libs? ( mirror://sourceforge/pmt/${P}.tar.xz )"
+
+LICENSE="pngcrush"
+SLOT="0"
+KEYWORDS="~alpha amd64 ~ppc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
+IUSE="+system-libs"
+
+RDEPEND="
+ system-libs? (
+ media-libs/libpng:0=
+ sys-libs/zlib:=
+ )"
+DEPEND="${RDEPEND}
+ app-arch/xz-utils"
+
+pkg_setup() {
+ use system-libs && S+="-nolib"
+}
+
+src_compile() {
+ emake \
+ CC="$(tc-getCC)" \
+ LD="$(tc-getCC)" \
+ CFLAGS="${CFLAGS} ${CPPFLAGS} -Wall" \
+ LDFLAGS="${LDFLAGS}"
+}
+
+src_install() {
+ dobin ${PN}
+ dodoc ChangeLog.html
+}
diff --git a/media-gfx/pngcrush/pngcrush-1.8.12.ebuild b/media-gfx/pngcrush/pngcrush-1.8.12.ebuild
new file mode 100644
index 000000000000..4dd7937e7113
--- /dev/null
+++ b/media-gfx/pngcrush/pngcrush-1.8.12.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit toolchain-funcs
+
+DESCRIPTION="Portable Network Graphics (PNG) optimizing utility"
+HOMEPAGE="http://pmt.sourceforge.net/pngcrush/"
+SRC_URI="system-libs? ( mirror://sourceforge/pmt/${P}-nolib.tar.xz )
+ !system-libs? ( mirror://sourceforge/pmt/${P}.tar.xz )"
+
+LICENSE="pngcrush"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
+IUSE="+system-libs"
+
+RDEPEND="
+ system-libs? (
+ media-libs/libpng:0=
+ sys-libs/zlib:=
+ )"
+DEPEND="${RDEPEND}
+ app-arch/xz-utils"
+
+pkg_setup() {
+ use system-libs && S+="-nolib"
+}
+
+src_compile() {
+ emake \
+ CC="$(tc-getCC)" \
+ LD="$(tc-getCC)" \
+ CFLAGS="${CFLAGS} ${CPPFLAGS} -Wall" \
+ LDFLAGS="${LDFLAGS}"
+}
+
+src_install() {
+ dobin ${PN}
+ dodoc ChangeLog.html
+}
diff --git a/media-gfx/pngcrush/pngcrush-1.8.13.ebuild b/media-gfx/pngcrush/pngcrush-1.8.13.ebuild
new file mode 100644
index 000000000000..4dd7937e7113
--- /dev/null
+++ b/media-gfx/pngcrush/pngcrush-1.8.13.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit toolchain-funcs
+
+DESCRIPTION="Portable Network Graphics (PNG) optimizing utility"
+HOMEPAGE="http://pmt.sourceforge.net/pngcrush/"
+SRC_URI="system-libs? ( mirror://sourceforge/pmt/${P}-nolib.tar.xz )
+ !system-libs? ( mirror://sourceforge/pmt/${P}.tar.xz )"
+
+LICENSE="pngcrush"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
+IUSE="+system-libs"
+
+RDEPEND="
+ system-libs? (
+ media-libs/libpng:0=
+ sys-libs/zlib:=
+ )"
+DEPEND="${RDEPEND}
+ app-arch/xz-utils"
+
+pkg_setup() {
+ use system-libs && S+="-nolib"
+}
+
+src_compile() {
+ emake \
+ CC="$(tc-getCC)" \
+ LD="$(tc-getCC)" \
+ CFLAGS="${CFLAGS} ${CPPFLAGS} -Wall" \
+ LDFLAGS="${LDFLAGS}"
+}
+
+src_install() {
+ dobin ${PN}
+ dodoc ChangeLog.html
+}
diff --git a/media-gfx/pngnq/Manifest b/media-gfx/pngnq/Manifest
new file mode 100644
index 000000000000..316428749565
--- /dev/null
+++ b/media-gfx/pngnq/Manifest
@@ -0,0 +1,7 @@
+AUX pngnq-1.0-libpng14.patch 378 SHA256 2f56e5f3c71462d70fb1e73f103bdab136399afba7ae49df3357622a7f9e17d0 SHA512 7a91550806ecc84bb5646b8a654f26d059ed253389626f5069de9e43b0667d2e2c3ee7a94efa96e908b1083d9af5efb80f942a78b6547b0bca8827c245f154fa WHIRLPOOL 9abb54c71110ceb1c6f46ef05f52061b048d9dcc498c895d7b4f7d4214e37ef07d6ccf3001d6023a62e07435cf75f0d40a0169e57762cdac9188a6653b60fc36
+AUX pngnq-1.0-libpng15.patch 355 SHA256 4f9675b5ff007fe46aad998df17a94b683aa4a647d93eb600b15c2cde117e56f SHA512 5ae6782a36bff27560318d5ca98101a49c0d66db71682d4976407af18e637740c68c1eb4b609d1b301e23d3dd62ef4a8bbe180f941e5333e91e17d900f66e96c WHIRLPOOL 2883f7dc593341fe199509ed0572b8925961d71be5c12a663f69e0ed747d39f8d247bc44a3a8993b900f74061bf5fe43be44f413ce4335075f9993410350c439
+DIST pngnq-1.1.tar.gz 117372 SHA256 c147fe0a94b32d323ef60be9fdcc9b683d1a82cd7513786229ef294310b5b6e2 SHA512 3bbc4ace1375517a7a73bbc65ff39512ef316e4b67fc3941cd0b7269e584a26f915f30591f8aa1c44eea73fe4ebe9519063a7bc426841e412c648aaa188be234 WHIRLPOOL 7d9ef79ed10d452cae47262104258210b0d51f898c477dd3d6d6ef23c7cde577c15e7b29ada4b14217bc4005a8efea2ee244b0eefa9e5bfc95adf812d133eb6d
+EBUILD pngnq-1.1.ebuild 541 SHA256 51e6f5a58cd1be7b1a9fcece3939c02c6ed8663c5d038d57201ab4a90e55441c SHA512 2c6c8e8f6b8e06945c36bd9532855e2da452f44c9796c347807ba99a8beb734d5643ce0ff195b0c09cfd4711e50b2fe0ed2e7e4ced37a9fef674c11220e9ce1e WHIRLPOOL 1dd4fd3188bc31804952d477431fb6e345ba120e467c2867b4ece267f5bdef2384502f0d04141622a4376da4cfcd599d77b2098ebd8f65af6487d1c6ecef3257
+MISC ChangeLog 2581 SHA256 7c4f67fbc46f908904a5afeb3cdd623366dddaffb5abb4de6ca9c754a6f67517 SHA512 c7f11362b39c3f682c01dbec3d5334e2e720e77aec3ca482b37dca877d8e52097027acd2e50735914fe6d80bfc4fefd997cdc179fcb289c582b5148affb61a47 WHIRLPOOL f45547ffa85392b40ee310d76ea098053ff5c02df19161125afd6349ae34d61db2a48c2e7e0a1b47b25a7244135396c9c22cef9b84f81375a19c3aca94aaf51f
+MISC ChangeLog-2015 2190 SHA256 a085a45a97edffde20feb0e8091820ba530c67cc6c1036dee529934643d531d3 SHA512 ec727a9cff3fd2c2622eb64a6c3bb4819a199d4776dfa8aea453b2c2f537b73d567e603f870f2e268a0541912beb67bb9caceeee25345bf0cc7052634c1e6185 WHIRLPOOL 65f66cc0d0dd9d889af22991b526ac8ad11bd10fb96ee401af23877210a4a635c5889dff2d6a8dd8f64818265b97f825ef9de732a2e045779fbd0591d40557de
+MISC metadata.xml 242 SHA256 8ee12910d3133c3a4f246265a674a77362383c1dea5f9e45004f6fe0f7f5cad2 SHA512 8490ed93a302cb46556d266836db2d7c6a317b2dd903cfcde06b8fb9d1455b925cd6114f41acac1175e1da6a707bf9f0ab5737d9b52936fb4e75974fd8e8d60a WHIRLPOOL ac59b6aaee4c7f84ca2a7817cf6498b33ec40dcbb3b1c2cd3719fbe18176c7c710ad2422b9d9e73e90a4729ee2908a94f8f2ece00281a58206819232d10b042e
diff --git a/media-gfx/pngnq/files/pngnq-1.0-libpng14.patch b/media-gfx/pngnq/files/pngnq-1.0-libpng14.patch
new file mode 100644
index 000000000000..e2eb9c8972e5
--- /dev/null
+++ b/media-gfx/pngnq/files/pngnq-1.0-libpng14.patch
@@ -0,0 +1,13 @@
+http://aur.archlinux.org/packages.php?ID=10325
+
+--- src/rwpng.c
++++ src/rwpng.c
+@@ -80,7 +80,7 @@
+ * have used slightly more general png_sig_cmp() function instead */
+
+ fread(sig, 1, 8, infile);
+- if (!png_check_sig(sig, 8)) {
++ if (png_sig_cmp(sig, 0, 8)) {
+ mainprog_ptr->retval = 21; /* bad signature */
+ return mainprog_ptr->retval;
+ }
diff --git a/media-gfx/pngnq/files/pngnq-1.0-libpng15.patch b/media-gfx/pngnq/files/pngnq-1.0-libpng15.patch
new file mode 100644
index 000000000000..7590431dcd3a
--- /dev/null
+++ b/media-gfx/pngnq/files/pngnq-1.0-libpng15.patch
@@ -0,0 +1,13 @@
+--- src/rwpng.c
++++ src/rwpng.c
+@@ -31,8 +31,9 @@
+
+ #include <stdio.h>
+ #include <stdlib.h>
++#include <zlib.h>
+
+-#include "png.h" /* libpng header; includes zlib.h */
++#include "png.h" /* libpng header */
+ #include "rwpng.h" /* typedefs, common macros, public prototypes */
+
+ /* future versions of libpng will provide this macro: */
diff --git a/media-gfx/pngnq/metadata.xml b/media-gfx/pngnq/metadata.xml
new file mode 100644
index 000000000000..278b141113f1
--- /dev/null
+++ b/media-gfx/pngnq/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-needed -->
+ <upstream>
+ <remote-id type="sourceforge">pngnq</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/media-gfx/pngnq/pngnq-1.1.ebuild b/media-gfx/pngnq/pngnq-1.1.ebuild
new file mode 100644
index 000000000000..d2580bf868b5
--- /dev/null
+++ b/media-gfx/pngnq/pngnq-1.1.ebuild
@@ -0,0 +1,25 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+WANT_AUTOMAKE=1.13
+inherit autotools eutils
+
+DESCRIPTION="Pngnq is a tool for quantizing PNG images in RGBA format"
+HOMEPAGE="http://pngnq.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="BSD pngnq rwpng"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+RDEPEND="media-libs/libpng:0="
+DEPEND=${RDEPEND}
+
+DOCS=( NEWS README )
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-1.0-libpng1{4,5}.patch
+ eautoreconf
+}
diff --git a/media-gfx/pngquant/Manifest b/media-gfx/pngquant/Manifest
new file mode 100644
index 000000000000..ab12e1d21a82
--- /dev/null
+++ b/media-gfx/pngquant/Manifest
@@ -0,0 +1,7 @@
+DIST pngquant-2.5.2-src.tar.bz2 54611 SHA256 5b064596305c6f765a753e96e08224dd71b31c20b72bdaf0f205da16b76a347d SHA512 d542765bc1f7e22fd7199cd4aeb8dc7b82fa87fe05c53ca6b7919522e081c861d419a541909284aa4e5dcfeeedb19729a50150d9139389c1949b3aeaf4933401 WHIRLPOOL 84682a44087a51a5475f1d21e3ce9e58fbb7cee81dc76c3e52cd234a28e80bd56686cc5323dcf8202e3a46fab3ca59278f45efee54dc93277040e742592bb064
+DIST pngquant-2.7.2-src.tar.gz 91721 SHA256 75801ed048c40cc4bff12773892d16d7ff00c11b9c549845c2133fd3abca17c2 SHA512 ab84651cf0b5f3af2095b5741e0d03f4ddedbed59e75c5c75faeac20efa8dd2fb482f2a8d9447b5673e9ae6970b9af8dfdbe40062bdf377206ee87eaa69ed9d8 WHIRLPOOL 88a6b77b8204e43f5f97815f34df103f31936e75f4e4822d7f8ac3d2ec80d5a584af7645277ef57d663159d088ce326c15d3eb69d016a682858e3658aabfa410
+EBUILD pngquant-2.5.2.ebuild 946 SHA256 49240acc2a3517a2245bb001b7f9589ce449f85b90f1241039f73f1cae57e4b7 SHA512 0a9e059e99d0c96b4d4506c75edfce6f70ba73b0395bbb4953fbd67b2d790ecc949b111563396b8295168d91a5f196a404d3892e6a16f3fa1b1916db97a4b314 WHIRLPOOL 50eb2b31b4c530b97761e6a56f9cb4c390ca65b4e92f97537db015739e8a6f97b2956aeb5e16f91c5ea47f13b347e89471f2e9c026ef19088c48c4278263d7a2
+EBUILD pngquant-2.7.2.ebuild 949 SHA256 a223c679a2fd469803a777a409dce152695e5874a914d869f9f82cb2e5031793 SHA512 f895a15658ad06e9f18bcd388877bc0519f4131d6cf6aca3924300073dc684bac4d5d07c403040870d14a18ad88e7832506fceba0da38ca2063829d5e398fed8 WHIRLPOOL d021c30a9a9c2a4c40e6ca072ebe2cb013f37faada270f8d9ea57f1d394e241619752bcdb6dad52b20efc67a87cee364b68d8f092e57d4b85c64424be3806a9f
+MISC ChangeLog 3568 SHA256 4243163d1859f8a21d4386117ab9ab01302a66d96d2272809c3d27e7ead30197 SHA512 8f4cee9fa905712a9db1772b5be14e55ed4a4caf69fe0a31b73ce07a804161632465557acb829fb2181d74616aca7e5f84fcc9d93f30f025d3de271ee82a30a4 WHIRLPOOL d777b078e5793532ca27dbb84c1aef904c972bfd6bd63392d1d690a152fc3c8c04c5ab64016eb11d0b070bfee52fd554480dfe5ddfe189c4e97a427dcd57ee09
+MISC ChangeLog-2015 1609 SHA256 7bc66afd2782662fc2754a57135ed01befbfe3d4a7f07c2578ae3b94eec679ff SHA512 351677cb2a131b5841b65d63cc3699ebe56d3605a6043800538e462b1d3cdcef6ccdc7d705b70124f33cbd3dfd32b1cff134883dbe46d1acf843793ba7331221 WHIRLPOOL 3121f06bb1504fd7f1709ad2134088c5eea1957404b7f4540b6baa26059363f0d1d9033aaad0a66b8f530829ec500667a43aa574e7e45735fad5405792c97a24
+MISC metadata.xml 542 SHA256 ff741a2eafdbf1be9a113a23db2091de3deb7ac774ffb11c3b29c67fe00195b0 SHA512 77bc685becffe4e065318a0f5310402fc72d5b52a5a29d2c812b3797ff40761599b7d1df9d4e6ae73308de5c41763004798c30053a9005cafc8282760c4b7225 WHIRLPOOL f241c6b05bc4a45b396adbeed8ebca8e6d97dcef63a0ae03eb8139a6ecdd2b466e2078e01d85a5113f48ec3b312a12a19839e3f5eb13de2e0513e86a66572fa0
diff --git a/media-gfx/pngquant/metadata.xml b/media-gfx/pngquant/metadata.xml
new file mode 100644
index 000000000000..0f41a1d113c4
--- /dev/null
+++ b/media-gfx/pngquant/metadata.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>alex_y_xu@yahoo.ca</email>
+ <name>Alex Xu</name>
+ <description>Proxied maintainer</description>
+ </maintainer>
+<maintainer type="project">
+ <email>graphics@gentoo.org</email>
+ <name>Gentoo Graphics Project</name>
+ </maintainer>
+<maintainer type="project">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/media-gfx/pngquant/pngquant-2.5.2.ebuild b/media-gfx/pngquant/pngquant-2.5.2.ebuild
new file mode 100644
index 000000000000..04a3c8e8cd2b
--- /dev/null
+++ b/media-gfx/pngquant/pngquant-2.5.2.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+inherit toolchain-funcs
+
+DESCRIPTION="command-line utility and library for lossy compression of PNG images"
+HOMEPAGE="http://pngquant.org/"
+SRC_URI="http://pngquant.org/${P}-src.tar.bz2"
+
+LICENSE="HPND rwpng"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="debug lcms openmp cpu_flags_x86_sse2"
+
+RDEPEND="media-libs/libpng:0=
+ sys-libs/zlib:=
+ lcms? ( media-libs/lcms:2 )"
+DEPEND="${RDEPEND}"
+
+src_configure() {
+ tc-export AR CC
+ # Hand rolled configure script, so not all flags are supported.
+ ./configure \
+ --prefix="${EPREFIX}/usr" \
+ $(use debug && echo --enable-debug) \
+ $(use_enable cpu_flags_x86_sse2 sse) \
+ $(use openmp && tc-has-openmp && echo --with-openmp) \
+ $(use_with lcms lcms2) \
+ CFLAGS="${CFLAGS} ${CPPFLAGS}" \
+ LDFLAGS="${LDFLAGS}"
+}
+
+src_install() {
+ dobin ${PN}
+ doman ${PN}.1
+ dodoc CHANGELOG README.md
+}
diff --git a/media-gfx/pngquant/pngquant-2.7.2.ebuild b/media-gfx/pngquant/pngquant-2.7.2.ebuild
new file mode 100644
index 000000000000..a9d5a186736e
--- /dev/null
+++ b/media-gfx/pngquant/pngquant-2.7.2.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit toolchain-funcs
+
+DESCRIPTION="command-line utility and library for lossy compression of PNG images"
+HOMEPAGE="http://pngquant.org/"
+SRC_URI="http://pngquant.org/${P}-src.tar.gz"
+
+LICENSE="GPL-3 HPND rwpng"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="debug lcms openmp cpu_flags_x86_sse2"
+
+RDEPEND="media-libs/libpng:0=
+ sys-libs/zlib:=
+ lcms? ( media-libs/lcms:2 )"
+DEPEND="${RDEPEND}"
+
+src_configure() {
+ tc-export AR CC
+ # Hand rolled configure script, so not all flags are supported.
+ ./configure \
+ --prefix="${EPREFIX}/usr" \
+ $(use debug && echo --enable-debug) \
+ $(use_enable cpu_flags_x86_sse2 sse) \
+ $(use openmp && tc-has-openmp && echo --with-openmp) \
+ $(use_with lcms lcms2) \
+ CFLAGS="${CFLAGS} ${CPPFLAGS}" \
+ LDFLAGS="${LDFLAGS}"
+}
+
+src_install() {
+ dobin ${PN}
+ doman ${PN}.1
+ dodoc CHANGELOG README.md
+}
diff --git a/media-gfx/pngrewrite/Manifest b/media-gfx/pngrewrite/Manifest
new file mode 100644
index 000000000000..c5b838ffb6e6
--- /dev/null
+++ b/media-gfx/pngrewrite/Manifest
@@ -0,0 +1,8 @@
+AUX pngrewrite-1.3.0-gcc44.patch 411 SHA256 fd41e366941673e4b4914311753f501149e7be28bb2bfdbf5a7c94d560a3aa40 SHA512 e0a4b22fb59d524f1936c0ff78977e6c75ef815fb1aa89fcd1be6b3e05fbed8d48c290bed83a45dc400c537d49a3c5d8a640de9531795e25181b94f1e90b69b9 WHIRLPOOL e4dc8a1e4d668ecc9d5ba79d9bf5b55e9124f0a3532cf613308d8ca298b4f13d3a9b197c3c0d0294018afd640cf355969f19612266acdc4d9eb722f8de320e84
+DIST pngrewrite-1.3.0.zip 105995 SHA256 497d5b8f9fb096a2f5510711a2c76688998706a32cc93ca1709d238969d7ebc6 SHA512 f146d69780309c61246f71cbc58081e1e357ea0cb58ee7ae5908075ab9cf86218f3eed956ff32df39efcebad7a743bf303ce1a50753d4d4c3710968002a75f1d WHIRLPOOL 2d89bc1fcda61302be73b5801c38a4346cd249b803f814d3757283c09e8108b08362c963f226ee97b59c0fd4b28fc2ce5207b77cd1c2bec99058c329b3837b0e
+DIST pngrewrite-1.4.0.zip 149760 SHA256 24c3706bcd55b3f957b2590f1cf19ca4dd3f5bc8310db47e464140ce773a94c3 SHA512 9ed9d220a4d8066f752d7ba123dd831ce6550072e7f8dd2327bf257b3d8e886f781c4878896c633a9a251a1311a10af56434e2c9ff773d174233a340a1f37e42 WHIRLPOOL faac2020d0ecc62bd2bf59e6e8e67b1b7a9ff615fa890e89ad24ab4f16afc62408bafdf297e8f001efbe5c8ba9e052072161ce0adf84c24964c14491ff186f6c
+EBUILD pngrewrite-1.3.0.ebuild 694 SHA256 8b58d7cbef33ae90b0d1c669b13274ea55858bd24ceebc3674e47928883db954 SHA512 6150f0a3b0e8c0829cf697bfbd7493cb28587b8059de6af6da88fff7c932e7cc4c487ca0645f28a2045d64342eb2c462b88962de8956823b139d02bbe4cd0814 WHIRLPOOL b4ae48266697142ca9d5dcce432dc9b7fd190fdbbd08048b18daadbaeab20efee22b0b779baa140712dbac056a308dd5fe47de38a57627558e316e052f517932
+EBUILD pngrewrite-1.4.0.ebuild 630 SHA256 5c90c03be91886bb5a53bcb17b7c65d5a821477ac2f8b53fb668beaf312cfa90 SHA512 958c207b0b43586ad01fc7058fd06455339d4d18ae669bd510b1627d3fa406bcf057bb5e7059b2489597dffa7d68d0da8ad47072ee9594383bef454e8c0329de WHIRLPOOL 3b9cd7f7422971df693928e124383a189a51795b154c80b6590a35a69431959f6faced35a54fe5137bc375419ba5228bc8b731ef015608a0462bb236486411af
+MISC ChangeLog 2534 SHA256 ab19f2fd1ac4c4b3826da9ddfc9de8dfc499954a97ea52b06a6a93bbcfbc8b77 SHA512 9f066aa829cea6b4c23d47ac4423f2496d43b50b349fad90ee7249141af5692f182ca7adb04dd759ebebb7ff3cdba285e59b0e58a329f76610360a01f55f8801 WHIRLPOOL f7460636ab14f21fd7544af58abf487572a553ffe6c442dd519a14cb204f83141c5595b0d0593bf89adc63a8ad2975b9ea03aa362d96a27129025e2fe26da1eb
+MISC ChangeLog-2015 3011 SHA256 9114c50d5718a2b96b27c39f8ce0dbf6dd645d0147ac7cf5939ff23e8605d1c1 SHA512 4df64c83c4c48c37359aea500a17ef1351618eb1b592891afd927fcf0ca843f6bb01a9808f3cc64e1749e100b417bc9960c92886e2fd048144bfc2eefe6c5a63 WHIRLPOOL a667fea028173b4671dc2c596b0ddeccd1aa9d6e400051717f995dcb8e15aede2c6e416294ac562a5b753a1a0873a7443dc1742e697492f49a3ec79c51227ae5
+MISC metadata.xml 255 SHA256 3e7137870fc49956d79719e3dfe029775cbaaa097e85748c139713c46fcd1798 SHA512 b7bc93530a1726c2d4dfbc71ae29cfbb57712fd9fdd2e76fd52f35ab4368cba0497b50145d1527a3b79e465d459a380821bb1371a01c2e915dc9adc6c7fafd5f WHIRLPOOL 392188d7e069f1720be9329edfb31b11b176bf0c411023b2ceeaeabef1cacf842d70657a2a14ac2ddabbdad70a304275f3b587e9bcdfe77be63a0092e370252c
diff --git a/media-gfx/pngrewrite/files/pngrewrite-1.3.0-gcc44.patch b/media-gfx/pngrewrite/files/pngrewrite-1.3.0-gcc44.patch
new file mode 100644
index 000000000000..e514c5d3fa7c
--- /dev/null
+++ b/media-gfx/pngrewrite/files/pngrewrite-1.3.0-gcc44.patch
@@ -0,0 +1,19 @@
+--- pngrewrite.c.orig 2009-06-01 21:12:19.000000000 +0200
++++ pngrewrite.c 2009-06-01 21:12:29.000000000 +0200
+@@ -89,6 +89,7 @@
+ //#define PNGRW_SUPPORT_1_ARG_MODE
+ #define PNGRW_PALSORT_BY_FREQUENCY
+
++#include <png.h>
+
+ #include <stdio.h>
+ #include <string.h>
+@@ -109,8 +110,6 @@
+ #include <unistd.h> /* for isatty() */
+ #endif
+
+-#include <png.h>
+-
+ struct errstruct {
+ jmp_buf jbuf;
+ char errmsg[200];
diff --git a/media-gfx/pngrewrite/metadata.xml b/media-gfx/pngrewrite/metadata.xml
new file mode 100644
index 000000000000..19bf1be2581e
--- /dev/null
+++ b/media-gfx/pngrewrite/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 type="project">
+ <email>graphics@gentoo.org</email>
+ <name>Gentoo Graphics Project</name>
+</maintainer>
+</pkgmetadata>
diff --git a/media-gfx/pngrewrite/pngrewrite-1.3.0.ebuild b/media-gfx/pngrewrite/pngrewrite-1.3.0.ebuild
new file mode 100644
index 000000000000..4fdba3ba5d7a
--- /dev/null
+++ b/media-gfx/pngrewrite/pngrewrite-1.3.0.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+inherit toolchain-funcs base
+
+DESCRIPTION="A utility which reduces large palettes in PNG images"
+HOMEPAGE="http://entropymine.com/jason/pngrewrite/"
+SRC_URI="http://entropymine.com/jason/${PN}/${P}.zip"
+
+LICENSE="public-domain"
+SLOT="0"
+KEYWORDS="alpha amd64 ppc sparc x86 ~x86-linux ~ppc-macos"
+IUSE=""
+
+RDEPEND="media-libs/libpng"
+DEPEND="${RDEPEND}
+ app-arch/unzip"
+
+S=${WORKDIR}
+PATCHES=( "${FILESDIR}"/${P}-gcc44.patch )
+
+src_compile() {
+ $(tc-getCC) ${LDFLAGS} ${CFLAGS} ${PN}.c -lpng -o ${PN} \
+ || die "compile failed."
+}
+
+src_install() {
+ dobin ${PN} || die "dobin failed."
+}
diff --git a/media-gfx/pngrewrite/pngrewrite-1.4.0.ebuild b/media-gfx/pngrewrite/pngrewrite-1.4.0.ebuild
new file mode 100644
index 000000000000..16c1e95be819
--- /dev/null
+++ b/media-gfx/pngrewrite/pngrewrite-1.4.0.ebuild
@@ -0,0 +1,30 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+
+inherit toolchain-funcs
+
+DESCRIPTION="A utility which reduces large palettes in PNG images"
+HOMEPAGE="http://entropymine.com/jason/pngrewrite/"
+SRC_URI="http://entropymine.com/jason/${PN}/${P}.zip"
+
+LICENSE="public-domain"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~ppc ~sparc ~x86 ~x86-linux ~ppc-macos"
+IUSE=""
+
+RDEPEND="media-libs/libpng"
+DEPEND="${RDEPEND}
+ app-arch/unzip"
+
+S=${WORKDIR}
+
+src_compile() {
+ emake CC=$(tc-getCC) CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}"
+}
+
+src_install() {
+ dobin ${PN}
+ dodoc readme.txt
+}
diff --git a/media-gfx/pngtoico/Manifest b/media-gfx/pngtoico/Manifest
new file mode 100644
index 000000000000..782d8d4406d5
--- /dev/null
+++ b/media-gfx/pngtoico/Manifest
@@ -0,0 +1,7 @@
+AUX pngtoico-1.0.1-Makefile.patch 467 SHA256 eb3450365ffe0c3138794e8e9d1429adf911173afa0c35b6e2ae43fa6e901177 SHA512 e8658146be6b61046a4154a4282897df0bf9336ca5c536a383ca5d80487a849ef972fb02dc003f0228c59bf8f1c17783f72e3191055d0cb3b4582ce98af087ed WHIRLPOOL ee459f358045d7385fb53c8328f47c681a0a645bc152d0599ef5ea4b394cf3f99c201c32cef9b2f186a97fac3ff2d8f25dff1c4b552302b061de29d519f8e0f6
+AUX pngtoico-1.0.1-libpng15.patch 231 SHA256 4ddde16030c5869a0e7b2db6d09aee3d7646a340baf6315f12a0e0f84c94283b SHA512 a32a89b248d712b776384d30ff76b9e4b119acf292f62b5e82b36387e1a4113e8926209543859509cfcd00b85ad4a8f95223a66fa1fbd4771b5a7779ed66caf1 WHIRLPOOL 8cca251726556959a1bc4aec81cd347b383d786426ca6c367a2cfdba73250435ef087ff6114d11bf98642012f5832e6ed423147a6ea774d4cdf235f400b091f5
+DIST pngtoico-1.0.1.tar.bz2 4355 SHA256 63201bf4abff473ee7056bd1c8f54c5eaaade2d9e42ae04ca7426812d64e522b SHA512 240d387b6d83cf9243d003d3233b642d1ae3f29f12ba5c97a4e0aa17f6a0d48ea035fb3f7cd4d44dd3d1056e713c6f5a3a4ae9b9bee8e191a564ed162bdebf7d WHIRLPOOL 5b5fd5dbb140146ab51ee501224db29e84e6609264bf2060184a21172e5a55e642f1536c5a142e36d24632594684f4446e6bfd5577ecd2ff3dab36927ae54d8f
+EBUILD pngtoico-1.0.1-r1.ebuild 679 SHA256 752fa9488e2632c8850b065a4dce01379cd5cd9b68653b9bfa45921e9410354a SHA512 f07058701788c4f48e1a9d107610ad2b2f172a49abbfb8bcd3536dda6599e2e157432401e63f952382b30c91aa917c2bd8b42ed1f84102b7484dfdacecd42a35 WHIRLPOOL c9aa39cc0f849d4b2c3f2c98cf80fd3661f2f4150ee72bfadc8a5ff25b39e77d6d37e91350aca1cc5460c881e916163b3d9f3910905974a6dd7f2105eb3558c9
+MISC ChangeLog 2430 SHA256 49bf855966fed32f12edaedaa898a902e7f3fbc1639b68a8aaf296e175eb6a94 SHA512 ec8aee2c4ea59cd5574c12765ccbde99436f2b1e1561f3e17aae6c36f00365556350fea3fbcf7f92edf82d2aa9a16cb71712b5f653c6513cfa06062de9716a79 WHIRLPOOL 9a7343ecc5225fbc7c9905ad343b383a135abe0286b75575eaf617aadf535763b1fdaf1c6b2a7a9b53b01cfa05a48c0f0f3f90708f613e694c5ebd3b6a3c5742
+MISC ChangeLog-2015 2151 SHA256 27de8613195089d956a217bbc2e7c57fcf7f50b66a65c864ae45a9791be96b94 SHA512 8107b08d5fea0faa7203fa112031395f74d69927b5cb389e2a8cb57999d805ba46a571f43d6fdf1d6a658835e618fd5c901ffd30414bd0eb20be65778b496514 WHIRLPOOL ae55e27475c78dba4e8cd89c8f663aeb453fecedaff87c2f4d302414fae68804f6da04806c9b2e5aaea0252faa26eaaabe30e3c7cffeae9f3d12df4bdac6bac8
+MISC metadata.xml 241 SHA256 5efaba43924fa2365e86a0508a711b16f24e9baf38319109e930e456c90f0cec SHA512 3e1af4796a9c6a176936843173357f35ff94281769b8f35e0678fa403a294a0bb0eb98f371d129cd19b74e1cc8e84cfa8db71e9ecebfb67394a51d55e6d90642 WHIRLPOOL 8894d973b403abe64c0116401267effcde6934ecbf8b6a66b88bf20edffa1f9ac62e5315aae5f8126f9aa1b3d3bb9cb2fd3e9495e088b933a54b299213859f7f
diff --git a/media-gfx/pngtoico/files/pngtoico-1.0.1-Makefile.patch b/media-gfx/pngtoico/files/pngtoico-1.0.1-Makefile.patch
new file mode 100644
index 000000000000..77d86dc52446
--- /dev/null
+++ b/media-gfx/pngtoico/files/pngtoico-1.0.1-Makefile.patch
@@ -0,0 +1,15 @@
+--- Makefile 2002-01-01 22:46:46.000000000 +0000
++++ Makefile.new 2002-11-11 01:11:12.000000000 +0000
+@@ -21,9 +21,9 @@
+ man1dir = $(mandir)/man1
+
+ CC = gcc -W -Wall
+-CFLAGS = -O2 -fomit-frame-pointer
+-LDFLAGS = -s
+-LIBS = -lpng
++CFLAGS += -fomit-frame-pointer `libpng-config --cflags`
++LDFLAGS += `libpng-config --ldflags`
++LIBS = `libpng-config --libs`
+ INSTALL = install
+ INSTALL_EXEC = $(INSTALL) -c -m 755
+ INSTALL_DATA = $(INSTALL) -c -m 644
diff --git a/media-gfx/pngtoico/files/pngtoico-1.0.1-libpng15.patch b/media-gfx/pngtoico/files/pngtoico-1.0.1-libpng15.patch
new file mode 100644
index 000000000000..c81b25ade627
--- /dev/null
+++ b/media-gfx/pngtoico/files/pngtoico-1.0.1-libpng15.patch
@@ -0,0 +1,11 @@
+--- pngtoico.c
++++ pngtoico.c
+@@ -188,7 +188,7 @@
+ goto perrexit;
+ }
+
+- if ( setjmp(png_ptr->jmpbuf) ) {
++ if ( setjmp(png_jmpbuf(png_ptr)) ) {
+ fprintf(stderr, "%s: PNG format error\n", file);
+ goto errexit;
+ }
diff --git a/media-gfx/pngtoico/metadata.xml b/media-gfx/pngtoico/metadata.xml
new file mode 100644
index 000000000000..cca0f56491e9
--- /dev/null
+++ b/media-gfx/pngtoico/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 type="person">
+<email>graaff@gentoo.org</email>
+<name>Hans de Graaff</name>
+</maintainer>
+</pkgmetadata>
diff --git a/media-gfx/pngtoico/pngtoico-1.0.1-r1.ebuild b/media-gfx/pngtoico/pngtoico-1.0.1-r1.ebuild
new file mode 100644
index 000000000000..2224bdcc6630
--- /dev/null
+++ b/media-gfx/pngtoico/pngtoico-1.0.1-r1.ebuild
@@ -0,0 +1,32 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+inherit eutils toolchain-funcs
+
+DESCRIPTION="Convert png images to MS ico format"
+HOMEPAGE="https://www.kernel.org/pub/software/graphics/pngtoico/"
+SRC_URI="mirror://kernel/software/graphics/pngtoico/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ~ppc x86 ~amd64-linux ~x86-linux ~ppc-macos"
+IUSE=""
+
+RDEPEND=">=media-libs/libpng-1.4"
+DEPEND="${RDEPEND}"
+
+src_prepare() {
+ epatch \
+ "${FILESDIR}"/${P}-Makefile.patch \
+ "${FILESDIR}"/${P}-libpng15.patch
+}
+
+src_compile() {
+ emake CC="$(tc-getCC)" || die
+}
+
+src_install() {
+ dobin ${PN}
+ doman ${PN}.1
+}
diff --git a/media-gfx/pngtools/Manifest b/media-gfx/pngtools/Manifest
new file mode 100644
index 000000000000..e79ede76cb51
--- /dev/null
+++ b/media-gfx/pngtools/Manifest
@@ -0,0 +1,8 @@
+AUX pngtools-0.3-implicit-declarations.patch 1428 SHA256 7ef75837f24736cbba7f7130ba1e31178a70088d883d6581f86acf0fed79ee62 SHA512 80ac14a46940324dcd33f0f6f215e56888cc46a24d216d120339e026fa2ef0624511c262daa195308d420ffa773e2279b73d332316f626dac4ec3c96d6a2ee6c WHIRLPOOL 7e0970400e0cc438fb778b77de1cfb438531eb9775c20efdb808bf279523fe09b918c7d752c22ac5f3e7309df054ca6311545776cad5d790880d40661192bc58
+AUX pngtools-0.4-libpng14.patch 1265 SHA256 22c623fee58ffc1b2c8f90b12e27ec56b9001decc97935d4caf94f991f4e44ee SHA512 94940722266361f90239712875067ab0d82c18545300d9d604b76eb00ffdb8e82af0e0ab78966b645aba2dbdf59666a2da593365d5b9c9745def2b8ede0a4480 WHIRLPOOL bf84c0d56e0aacba62ead161179ebd42fd0903c8b30186556874aff8e2f24ab2879a31a6e6985621d3b012750a2d106e339173a87399ab894dc3e2de126bea8e
+AUX pngtools-0.4-libpng15-fixes.patch 6722 SHA256 999ea2bb674ed0b5d341eafcdf02cc837bca2670b83dc16a413c180112d84c4c SHA512 aafc4c746efc0ef00e9d9e59acf0dee58b56ce80a9f04ddfa9879f46f342170f4641f23081323299a143d4837367645240f823ba9900592fcfdec71961f3f330 WHIRLPOOL 54875cdb00bea5c9e285e2d28081e72cb773b1b48dfa24b29c2c9a7b4db2cf6e2a9629c21fb14ed5478eec5ae44a235b072e5a81988ebdc386196d1792f98351
+DIST pngtools_0_4.tgz 1312178 SHA256 da0035d140c5efbc7d42d95a27327928d982866851c4c67bac58d32936075655 SHA512 588b954c7c43ba48442ed4b22ad94fcfb456c7fc84a682e9126ca9d1c9b63dbb8f2d64e6e156664f327efbe11bb2ab1ac29d63ebb8a05329ac14200fb29f95a1 WHIRLPOOL 8e377f468e46f2de0a874899c8c00bf0ab08e3f6dc9754bbb3689717c949178ad61224b3276720ad918e028d78529951cc6388bafa02ff003e6dd2f66ace8309
+EBUILD pngtools-0.4-r2.ebuild 784 SHA256 8c5ac8963feef5d92802dc50e06ff1411817f816da95a5a545cd7606fbaa4918 SHA512 980cd7dc16287b78c51e049bee4aae83d89107f202dbb9a0dec9028e49e689c78b1f3e26535c1c29363088e7ee625fac5b2536473099383e0d244aefd5d0142c WHIRLPOOL e15d65d4e55f7bb17c8f9edd8531c64bd5c106532ece355e6cadb69428fca5fe8590d452643bb36acdf6226f53eeedd6a900a656e90c03161a49d957a472640d
+MISC ChangeLog 2566 SHA256 2dd6a704f3dde294d7fd12906e55e87b154ebe25c205d739de5a44eee56e0713 SHA512 8e2a8e650e2b3624b146a16651fc1d922e968c9bf8d6bca56c846da63f73a627c5ad76d4cf6bfb4977134c660386e5586b56b02739b18a0cc0920ad1c36ba42e WHIRLPOOL fb80a1d9880518bc9b3cff5e5bba4a05d5163474abef0ce6a7c20b73e7c178b9cf912434d00c32852424e5bca424296798bbf5074db3ae56b2be0cf295c28d66
+MISC ChangeLog-2015 2330 SHA256 6c8ba84e325b798eda908124ef0f0d099854248c5783e3f0dccb642f0c2e351a SHA512 3c744543b54d9b0d6fffe647398f9295d25d7e51e7e639f76aaab352c8420197d798eefb8fbccab6b3430d911c11b3029168e1652036b826f96a34ad2e6fc2dd WHIRLPOOL 68a41f065641f570e3d80b7785a303fc4a15bfa723b18fbbcd2b1605514410e3ef6f6dc64e0c2e7fab63c357c29d94971b8a0d0c15cafc37ab31a9c957b4c06d
+MISC metadata.xml 334 SHA256 1c3f767f2db2905e4a3dfdb44cc3ecb9569b9e809a71f40c8e9cfd6faef6e70f SHA512 348994bfded172670ed4e52da50cec54a3c059a65d8a00e5aca8109c9320964dec238ad3c6439e7eb7556b4ee047423b93ca34c88090dbe1bfbcdd7a5a9e6fe2 WHIRLPOOL bbbc717988353ece3dc4a2f09d36871480e32e59f17023745a05f557c8fd12a7b921785fff75b3aad0f8d434b809f1e46b333e9be777445ab099b6e4715bea92
diff --git a/media-gfx/pngtools/files/pngtools-0.3-implicit-declarations.patch b/media-gfx/pngtools/files/pngtools-0.3-implicit-declarations.patch
new file mode 100644
index 000000000000..682bcc8c29d3
--- /dev/null
+++ b/media-gfx/pngtools/files/pngtools-0.3-implicit-declarations.patch
@@ -0,0 +1,40 @@
+diff -ur pngtools.orig/inflateraster.c pngtools/inflateraster.c
+--- pngtools.orig/inflateraster.c 2005-04-08 04:23:34.000000000 +0300
++++ pngtools/inflateraster.c 2008-04-23 20:38:05.000000000 +0300
+@@ -1,5 +1,6 @@
+ #include <stdlib.h>
+ #include <stdio.h>
++#include <math.h>
+
+ // Inflate a raster to a given pixel sample size
+ char *inflateraster(char *input, unsigned long width, unsigned long height,
+diff -ur pngtools.orig/pngchunkdesc.c pngtools/pngchunkdesc.c
+--- pngtools.orig/pngchunkdesc.c 2005-04-08 04:23:34.000000000 +0300
++++ pngtools/pngchunkdesc.c 2008-04-23 20:44:38.000000000 +0300
+@@ -20,6 +20,7 @@
+ ******************************************************************************/
+
+ #include <stdio.h>
++#include <string.h>
+
+ char *meanings[4][2] = {
+ {"Critical", "Ancillary"},
+diff -ur pngtools.orig/pngchunks.c pngtools/pngchunks.c
+--- pngtools.orig/pngchunks.c 2005-04-08 04:23:35.000000000 +0300
++++ pngtools/pngchunks.c 2008-04-23 20:38:29.000000000 +0300
+@@ -1,6 +1,7 @@
+ // List the chunks which appear in a given PNG image
+
+ #include <stdio.h>
++#include <stdlib.h>
+ #include <unistd.h>
+ #include <sys/mman.h>
+ #include <sys/types.h>
+diff -ur pngtools.orig/pngcp.c pngtools/pngcp.c
+--- pngtools.orig/pngcp.c 2005-04-08 04:23:35.000000000 +0300
++++ pngtools/pngcp.c 2008-04-23 20:38:13.000000000 +0300
+@@ -1,3 +1,4 @@
++#include <stdlib.h>
+ #include <unistd.h>
+ #include <stdio.h>
+ #include <math.h>
diff --git a/media-gfx/pngtools/files/pngtools-0.4-libpng14.patch b/media-gfx/pngtools/files/pngtools-0.4-libpng14.patch
new file mode 100644
index 000000000000..f849549bae13
--- /dev/null
+++ b/media-gfx/pngtools/files/pngtools-0.4-libpng14.patch
@@ -0,0 +1,34 @@
+diff -ur pngtools-0.4.orig/Makefile.am pngtools-0.4/Makefile.am
+--- pngtools-0.4.orig/Makefile.am 2008-11-27 01:14:17.000000000 +0200
++++ pngtools-0.4/Makefile.am 2010-03-09 00:51:10.000000000 +0200
+@@ -4,3 +4,6 @@
+ pngcp_SOURCES = pngcp.c pngread.c pngwrite.c inflateraster.c
+ pngchunkdesc_SOURCES = pngchunkdesc.c
+ pngchunks_SOURCES = pngchunks.c
++
++pnginfo_LDADD = -lpng
++pngcp_LDADD = -lpng
+diff -ur pngtools-0.4.orig/pnginfo.c pngtools-0.4/pnginfo.c
+--- pngtools-0.4.orig/pnginfo.c 2008-11-27 01:14:17.000000000 +0200
++++ pngtools-0.4/pnginfo.c 2010-03-09 00:42:58.000000000 +0200
+@@ -152,7 +152,7 @@
+
+ // Check that it really is a PNG file
+ fread (sig, 1, 8, image);
+- if (!png_check_sig (sig, 8))
++ if (!png_sig_cmp(sig, 0, 8) == 0)
+ {
+ printf (" This file is not a valid PNG file\n");
+ fclose (image);
+diff -ur pngtools-0.4.orig/pngread.c pngtools-0.4/pngread.c
+--- pngtools-0.4.orig/pngread.c 2008-11-27 01:14:17.000000000 +0200
++++ pngtools-0.4/pngread.c 2010-03-09 00:43:27.000000000 +0200
+@@ -26,7 +26,7 @@
+
+ // Check that it really is a PNG file
+ fread(sig, 1, 8, image);
+- if(!png_check_sig(sig, 8)){
++ if(!png_sig_cmp(sig, 0, 8) == 0){
+ fprintf(stderr, "This file is not a valid PNG file\n");
+ goto error;
+ }
diff --git a/media-gfx/pngtools/files/pngtools-0.4-libpng15-fixes.patch b/media-gfx/pngtools/files/pngtools-0.4-libpng15-fixes.patch
new file mode 100644
index 000000000000..29b73233610b
--- /dev/null
+++ b/media-gfx/pngtools/files/pngtools-0.4-libpng15-fixes.patch
@@ -0,0 +1,190 @@
+diff -Nuar --exclude '*.orig' --exclude '*.rej' pngtools-0.4.orig//pnginfo.c pngtools-0.4/pnginfo.c
+--- pngtools-0.4.orig//pnginfo.c 2011-09-16 07:05:05.235477249 +0000
++++ pngtools-0.4/pnginfo.c 2011-09-16 07:07:52.385872705 +0000
+@@ -185,20 +185,25 @@
+ ///////////////////////////////////////////////////////////////////////////
+
+ printf (" Image Width: %d Image Length: %d\n", width, height);
++ int pixel_depth;
++ pixel_depth = bitdepth * png_get_channels(png, info);
+ if(tiffnames == pnginfo_true){
+ printf (" Bits/Sample: %d\n", bitdepth);
+- printf (" Samples/Pixel: %d\n", info->channels);
+- printf (" Pixel Depth: %d\n", info->pixel_depth); // Does this add value?
++ printf (" Samples/Pixel: %d\n", png_get_channels(png, info));
++ printf (" Pixel Depth: %d\n", pixel_depth); // Does this add value?
+ }
+ else{
+ printf (" Bitdepth (Bits/Sample): %d\n", bitdepth);
+- printf (" Channels (Samples/Pixel): %d\n", info->channels);
+- printf (" Pixel depth (Pixel Depth): %d\n", info->pixel_depth); // Does this add value?
++ printf (" Channels (Samples/Pixel): %d\n", png_get_channels(png, info));
++ printf (" Pixel depth (Pixel Depth): %d\n", pixel_depth); // Does this add value?
+ }
+
+ // Photometric interp packs a lot of information
+ printf (" Colour Type (Photometric Interpretation): ");
+
++ int num_palette;
++ int num_trans;
++
+ switch (colourtype)
+ {
+ case PNG_COLOR_TYPE_GRAY:
+@@ -207,10 +212,10 @@
+
+ case PNG_COLOR_TYPE_PALETTE:
+ printf ("PALETTED COLOUR ");
+- if (info->num_trans > 0)
++ if (num_trans > 0)
+ printf ("with alpha ");
+ printf ("(%d colours, %d transparent) ",
+- info->num_palette, info->num_trans);
++ num_palette, num_trans);
+ break;
+
+ case PNG_COLOR_TYPE_RGB:
+@@ -232,7 +237,7 @@
+ printf ("\n");
+
+ printf (" Image filter: ");
+- switch (info->filter_type)
++ switch (png_get_filter_type(png, info))
+ {
+ case PNG_FILTER_TYPE_BASE:
+ printf ("Single row per byte filter ");
+@@ -249,7 +254,7 @@
+ printf ("\n");
+
+ printf (" Interlacing: ");
+- switch (info->interlace_type)
++ switch (png_get_interlace_type(png, info))
+ {
+ case PNG_INTERLACE_NONE:
+ printf ("No interlacing ");
+@@ -266,7 +271,7 @@
+ printf ("\n");
+
+ printf (" Compression Scheme: ");
+- switch (info->compression_type)
++ switch (png_get_compression_type(png, info))
+ {
+ case PNG_COMPRESSION_TYPE_BASE:
+ printf ("Deflate method 8, 32k window");
+@@ -278,9 +283,13 @@
+ }
+ printf ("\n");
+
++ png_uint_32 x_pixels_per_unit, y_pixels_per_unit;
++ int phys_unit_type;
++ png_get_pHYs (png, info, &x_pixels_per_unit, &y_pixels_per_unit, &phys_unit_type);
++
+ printf (" Resolution: %d, %d ",
+- info->x_pixels_per_unit, info->y_pixels_per_unit);
+- switch (info->phys_unit_type)
++ x_pixels_per_unit, y_pixels_per_unit);
++ switch (phys_unit_type)
+ {
+ case PNG_RESOLUTION_UNKNOWN:
+ printf ("(unit unknown)");
+@@ -299,15 +308,18 @@
+ // FillOrder is always msb-to-lsb, big endian
+ printf (" FillOrder: msb-to-lsb\n Byte Order: Network (Big Endian)\n");
+
++ png_textp text;
++ int num_text, max_text;
++
+ // Text comments
+ printf (" Number of text strings: %d of %d\n",
+- info->num_text, info->max_text);
++ num_text, max_text);
+
+- for (i = 0; i < info->num_text; i++)
++ for (i = 0; i < num_text; i++)
+ {
+- printf (" %s ", info->text[i].key);
++ printf (" %s ", text[i].key);
+
+- switch (info->text[1].compression)
++ switch (text[1].compression)
+ {
+ case -1:
+ printf ("(tEXt uncompressed)");
+@@ -332,12 +344,12 @@
+
+ printf (": ");
+ j = 0;
+- while (info->text[i].text[j] != '\0')
++ while (text[i].text[j] != '\0')
+ {
+- if (info->text[i].text[j] == '\n')
++ if (text[i].text[j] == '\n')
+ printf ("\\n");
+ else
+- fputc (info->text[i].text[j], stdout);
++ fputc (text[i].text[j], stdout);
+
+ j++;
+ }
+@@ -385,14 +397,14 @@
+
+ printf ("Dumping the bitmap for this image:\n");
+ printf ("(Expanded samples result in %d bytes per pixel, %d channels with %d bytes per channel)\n\n",
+- info->channels * bytespersample, info->channels, bytespersample);
++ png_get_channels(png, info) * bytespersample, png_get_channels(png, info), bytespersample);
+
+ // runlen is used to stop us displaying repeated byte patterns over and over --
+ // I display them once, and then tell you how many times it occured in the file.
+ // This currently only applies to runs on zeros -- I should one day add an
+ // option to extend this to runs of other values as well
+ runlen = 0;
+- for (i = 0; i < rowbytes * height / info->channels; i += info->channels * bytespersample)
++ for (i = 0; i < rowbytes * height / png_get_channels(png, info); i += png_get_channels(png, info) * bytespersample)
+ {
+ int scount, bcount, pixel;
+
+@@ -408,16 +420,16 @@
+
+ // Determine if this is a pixel whose entire value is zero
+ pixel = 0;
+- for(scount = 0; scount < info->channels; scount++)
++ for(scount = 0; scount < png_get_channels(png, info); scount++)
+ for(bcount = 0; bcount < bytespersample; bcount++)
+ pixel += bitmap[i + scount * bytespersample + bcount];
+
+ if ((runlen == 0) && !pixel)
+ {
+ printf ("[");
+- for(scount = 0; scount < info->channels; scount++){
++ for(scount = 0; scount < png_get_channels(png, info); scount++){
+ for(bcount = 0; bcount < bytespersample; bcount++) printf("00");
+- if(scount != info->channels - 1) printf(" ");
++ if(scount != png_get_channels(png, info) - 1) printf(" ");
+ }
+ printf ("] ");
+ runlen++;
+@@ -425,10 +437,10 @@
+
+ if (runlen == 0){
+ printf ("[");
+- for(scount = 0; scount < info->channels; scount++){
++ for(scount = 0; scount < png_get_channels(png, info); scount++){
+ for(bcount = 0; bcount < bytespersample; bcount++)
+ printf("%02x", (unsigned char) bitmap[i + scount * bytespersample + bcount]);
+- if(scount != info->channels - 1) printf(" ");
++ if(scount != png_get_channels(png, info) - 1) printf(" ");
+ }
+ printf("] ");
+ }
+diff -Nuar --exclude '*.orig' --exclude '*.rej' pngtools-0.4.orig//pngread.c pngtools-0.4/pngread.c
+--- pngtools-0.4.orig//pngread.c 2011-09-16 07:05:05.235477249 +0000
++++ pngtools-0.4/pngread.c 2011-09-16 07:05:44.865570870 +0000
+@@ -68,7 +68,7 @@
+ // palette is correctly reported...
+ //png_set_strip_alpha (png);
+ png_read_update_info (png, info);
+- *channels = info->channels;
++ *channels = png_get_channels(png, info);
+
+ rowbytes = png_get_rowbytes (png, info);
+ if((row_pointers = malloc (*height * sizeof (png_bytep))) == NULL){
diff --git a/media-gfx/pngtools/metadata.xml b/media-gfx/pngtools/metadata.xml
new file mode 100644
index 000000000000..612ab3f2987c
--- /dev/null
+++ b/media-gfx/pngtools/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>robbat2@gentoo.org</email>
+</maintainer>
+<maintainer type="project">
+ <email>graphics@gentoo.org</email>
+ <name>Gentoo Graphics Project</name>
+</maintainer>
+</pkgmetadata>
diff --git a/media-gfx/pngtools/pngtools-0.4-r2.ebuild b/media-gfx/pngtools/pngtools-0.4-r2.ebuild
new file mode 100644
index 000000000000..b561e2cde5e5
--- /dev/null
+++ b/media-gfx/pngtools/pngtools-0.4-r2.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+inherit autotools eutils
+
+MY_PV=${PV/./_}
+
+DESCRIPTION="A series of tools for the PNG image format"
+HOMEPAGE="http://www.stillhq.com/pngtools/"
+SRC_URI="http://www.stillhq.com/pngtools/source/pngtools_${MY_PV}.tgz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc x86"
+IUSE=""
+
+RDEPEND=">=media-libs/libpng-1.4:0"
+DEPEND="${RDEPEND}"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-0.3-implicit-declarations.patch
+ epatch "${FILESDIR}"/${P}-libpng14.patch
+ epatch "${FILESDIR}"/${P}-libpng15-fixes.patch
+
+ eautoreconf
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+ dodoc ABOUT AUTHORS ChangeLog NEWS README chunks.txt
+ insinto /usr/share/doc/${PF}/examples
+ doins *.png
+}
diff --git a/media-gfx/pornview/Manifest b/media-gfx/pornview/Manifest
new file mode 100644
index 000000000000..220a3fc8bcdc
--- /dev/null
+++ b/media-gfx/pornview/Manifest
@@ -0,0 +1,6 @@
+DIST pornview-0.2.2.tar.xz 489416 SHA256 9ec99e372da3fb0bfd62a21e569b13000be9951a947cfedf3eda7400fffb1a6c SHA512 f7413398b7d6a3807d9a8b59b0cd651fc2728ea12b4eec084a2654ab864b6ac79e75c6c7d80ad0a26b0e1d4a3f3cf757cfa86115ede4bd3ff9dfa199801a870f WHIRLPOOL 81f754bf5750772535473cb256c619b28ee8f32edc4584768b82eeef1316c879ecbf1d87b2e4073815ac8fef58fe67773cac38367960ac9a2b716fe40e94cded
+EBUILD pornview-0.2.2-r1.ebuild 974 SHA256 ba49d278891837c1482b8773f5c8bdb1eb8b8b8646540e1bbf467a77adc0eb87 SHA512 c27086ff8e55d0856f555c990a99634ff03fe8a3a7b7b61915909b3af221371233449a84e29ad229cd26ff0abffabecb0c94b88e8dc5eb1a0fdbfacf9cf1eeac WHIRLPOOL f86b0d3855271e44148e8f74924f97e431ff1e170734247abf89e7dd91dc98e4cd01e5e7d90254e4bb0fd2091c1b1d8efa936d353fe051f242265a43c2a1c701
+EBUILD pornview-0.2.2.ebuild 1022 SHA256 01d94e7169723a5501bcb131ad2c5d326e1fb580cd2858568ed8e2a48cf76526 SHA512 08f7b431700798353bf3609ef87516f1aa61895e2607ecbca0f67413547c67efea2a3b73ffabb82fbede459f8f0858235cb4f4a87e6f264f59e9e7a393c944e4 WHIRLPOOL dded171e3b8b48b29a66c1b7230c967d0041b532ad54dd3b9f698e7fd26c60da908e2e63724fbec8e6e4913fcf2eb396e3e1bd76ccc777022995e60b613deecb
+MISC ChangeLog 3082 SHA256 565b103b74c9ba1d1df3b8dfbe5b93523360836a562da727b1e6288160ce8cc1 SHA512 2b2a82aaa569500834cb00470dfe20331b4cd8a699f1c5e4e7547548ba14242241e3c30567ea2100344a37a76bc8c8b88fc4eac295304b6d7f9c4d1435d8fa98 WHIRLPOOL d74503105b0ec8537809a539d2018079ea2d38dad9e18e715063d856d03980155c48eeff38bbf7ae6d10d3215cbdaed1f7f88f7e4de00ed5cf27781fd4d849cc
+MISC ChangeLog-2015 7575 SHA256 9d9d3981e01226e59b9ff3d3c15a4e3208b5a371b274e5cf1624e046e708d906 SHA512 d35d42ea923c8011ec6696e6efc3fcf8bace652edc0a4d5c35525c098ccf4261d27ec0222671935cb1b00296ed98ca0eac73767391750b43e594d5b474851b07 WHIRLPOOL 0741136b210309a7e13acc512f3264cf099bd202699cce832af165ba8c5d0b5a900ad908b2e584b8dfe3b12eac56c357590b91b9466adea9c0cc6bae649f9349
+MISC metadata.xml 245 SHA256 74b0b39dcb38faf95ae0e0097063cdc1238d5966cff0c228bf5f464cf73292b9 SHA512 5d6d51920b6810926a788e7692616a3436dae92464a6c49f0446f6be44189ff464e3a2d56038d4e9a9ee715071b08edc29e416bfa35924917ca230c47b6ab26f WHIRLPOOL b5ed188dff052c9a3a02cbb4c531091debc914001d12d96898508a0af902932ac9d2247f76b2c6cb68a60b36aef052c1ed40f3cf90ad15d3a8b41cc6fc03d557
diff --git a/media-gfx/pornview/metadata.xml b/media-gfx/pornview/metadata.xml
new file mode 100644
index 000000000000..bf356604c7a4
--- /dev/null
+++ b/media-gfx/pornview/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-needed -->
+ <upstream>
+ <remote-id type="sourceforge">pornview</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/media-gfx/pornview/pornview-0.2.2-r1.ebuild b/media-gfx/pornview/pornview-0.2.2-r1.ebuild
new file mode 100644
index 000000000000..1f9077302ce2
--- /dev/null
+++ b/media-gfx/pornview/pornview-0.2.2-r1.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit gnome2-utils
+
+DESCRIPTION="Image viewer/manager with optional support for MPEG movies"
+HOMEPAGE="http://pornview.sourceforge.net"
+SRC_URI="https://dev.gentoo.org/~hasufell/distfiles/${P}.tar.xz
+ mirror://github/gentoo/${PN}/${P}.tar.xz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 -hppa ~ppc ~x86"
+IUSE="exif nls"
+
+RDEPEND="
+ dev-libs/glib:2
+ media-libs/libpng:0
+ virtual/jpeg:*
+ x11-libs/gdk-pixbuf:2
+ x11-libs/gtk+:2
+ x11-libs/libX11
+ x11-libs/libXinerama
+ exif? ( media-gfx/exiv2 )"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ nls? ( sys-devel/gettext )"
+
+src_configure() {
+ econf \
+ $(use_enable exif) \
+ $(use_enable nls)
+}
+
+src_install() {
+ default
+ emake DESTDIR="${D}" desktopdir="/usr/share/applications" install
+}
+
+pkg_preinst() {
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+}
diff --git a/media-gfx/pornview/pornview-0.2.2.ebuild b/media-gfx/pornview/pornview-0.2.2.ebuild
new file mode 100644
index 000000000000..554d2147923d
--- /dev/null
+++ b/media-gfx/pornview/pornview-0.2.2.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+inherit gnome2-utils
+
+DESCRIPTION="Image viewer/manager with optional support for MPEG movies"
+HOMEPAGE="http://pornview.sourceforge.net"
+SRC_URI="https://dev.gentoo.org/~hasufell/distfiles/${P}.tar.xz
+ mirror://github/gentoo/${PN}/${P}.tar.xz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 -hppa ppc x86"
+IUSE="exif nls"
+
+RDEPEND="
+ dev-libs/glib:2
+ media-libs/libpng:0
+ virtual/jpeg
+ x11-libs/gdk-pixbuf:2
+ x11-libs/gtk+:2
+ x11-libs/libX11
+ x11-libs/libXinerama
+ exif? ( media-gfx/exiv2 )"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ nls? ( sys-devel/gettext )"
+
+src_configure() {
+ econf \
+ $(use_enable exif) \
+ $(use_enable nls)
+}
+
+src_install() {
+ emake DESTDIR="${D}" desktopdir="/usr/share/applications" \
+ install || die "emake install failed."
+ dodoc AUTHORS NEWS README
+}
+
+pkg_preinst() {
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+}
diff --git a/media-gfx/postr/Manifest b/media-gfx/postr/Manifest
new file mode 100644
index 000000000000..c3a938586dfc
--- /dev/null
+++ b/media-gfx/postr/Manifest
@@ -0,0 +1,5 @@
+DIST postr-0.13.1.tar.xz 384196 SHA256 8b004d108ebe18e0399f8a20282f129a3c8c9b6615322479d0e01918c6b42fbc SHA512 43486d6c19ccad86e44e00fd7e7aadbdc8268ada38cffe616c5b7c3b7280556222ae961036cd7c711b067948772acec92927d86d4c1d82a26ecf49011991f598 WHIRLPOOL 7f139f8fa1b4d88b7a9eae13d82d71ca822428fcce3d7f23a0e68940494cbbf067ea61c0dea69a11ffe1841eec05ad13657c5786ab8cecbb62d2678b99ff3a38
+EBUILD postr-0.13.1.ebuild 1453 SHA256 1cc8da812c16a55f9190d5dcd6860cfc19c9e149b24cfe86e8a0630828423c24 SHA512 004d9c69b56f34f57e2528102ec533b267bd13393a2cd25054c1cfa618bf7c0529b55b12bacb0f71dc07d2f3fe78336cf3812c9b998ebb2a4773905e880e4468 WHIRLPOOL 6f4aa38e194db1b9751c248e0ff53bb1e2530e1d7674485b33c2d39dce87050029fa82f0c4ae5a492fe16b0855a0cf0a7930e8a8db50163194651099da9b5905
+MISC ChangeLog 2424 SHA256 17e17cfacbadc9c4f9deedbf52d2188ecae7a3d6896275cae81c9f5c8d0f977c SHA512 c9a9d7ecd352097cc67fa4bba5b5f1ed226711d54841a3457706b8652c5b19f465602d92dd77e7c11423350d26d1e1d4d04110684bf5f0451352aeb2cb24c9ff WHIRLPOOL 186aaf1692a17d979738711083cddc2192ba1e082b252892657763eeab730eed41584c31faca8850973df3e7248ad49c38ba0d5b8933c3e5691727878da18deb
+MISC ChangeLog-2015 2106 SHA256 7b619c3351593d07937fb04c472fbd08e002c4be3c61e28f51abc7fb5cbb0834 SHA512 99424c036b4dd1312a52c8e2c22ade960d313f62536fc8035c232e4671d5a3d779cd423eac2e3660a50e8b43db75673066419288a3879d1c8a8620363e7502a5 WHIRLPOOL 78970219f6b668f4b0c8a2602f7d913cc139f57c8274fe4d8edb61c2ee096723457e82bca2b2d11733325e0a8ed002f7e9022c05e7878f88347455916f5df53b
+MISC metadata.xml 249 SHA256 4505b0bfeadff287958620b7dc7b7209699065a8f17139a237a5dd409a726a97 SHA512 c40662134899a5c9f0369a1017806f35adf3280a0b3c91726f7a8ca6012a073a8b471583f5bfb6fe95faac1dcf607e8e2e43f8c91d48ec46f4a8824e2f551506 WHIRLPOOL 333a938ee1d2124595596c572697bf5ebad523a92ba12005cfb12e6bb6270881a94a911f0cc9c1cf2bb571559e8271e07dfd307dabe50058236dbe7103562b92
diff --git a/media-gfx/postr/metadata.xml b/media-gfx/postr/metadata.xml
new file mode 100644
index 000000000000..39980802b1da
--- /dev/null
+++ b/media-gfx/postr/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 type="project">
+ <email>gnome@gentoo.org</email>
+ <name>Gentoo GNOME Desktop</name>
+</maintainer>
+</pkgmetadata>
diff --git a/media-gfx/postr/postr-0.13.1.ebuild b/media-gfx/postr/postr-0.13.1.ebuild
new file mode 100644
index 000000000000..0f140ae55826
--- /dev/null
+++ b/media-gfx/postr/postr-0.13.1.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+GCONF_DEBUG="no"
+PYTHON_COMPAT=( python2_7 )
+PYTHON_REQ_USE="xml"
+
+inherit eutils gnome2 python-single-r1
+
+DESCRIPTION="Flickr uploader for GNOME"
+HOMEPAGE="https://wiki.gnome.org/Apps/Postr"
+
+LICENSE="GPL-2+ CC-BY-SA-3.0"
+SLOT="0"
+KEYWORDS="amd64 x86"
+
+IUSE=""
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+COMMON_DEPEND="
+ ${PYTHON_DEPS}
+ dev-python/pygtk:2[${PYTHON_USEDEP}]
+"
+
+RDEPEND="${COMMON_DEPEND}
+ dev-python/bsddb3[${PYTHON_USEDEP}]
+ dev-python/dbus-python[${PYTHON_USEDEP}]
+ dev-python/gconf-python[${PYTHON_USEDEP}]
+ dev-python/gtkspell-python[${PYTHON_USEDEP}]
+ dev-python/libgnome-python[${PYTHON_USEDEP}]
+ dev-python/pygobject:2[${PYTHON_USEDEP}]
+ || (
+ dev-python/twisted[${PYTHON_USEDEP}]
+ (
+ dev-python/twisted-core[${PYTHON_USEDEP}]
+ dev-python/twisted-web[${PYTHON_USEDEP}]
+ )
+ )
+"
+DEPEND="${COMMON_DEPEND}
+ app-text/gnome-doc-utils
+ dev-util/intltool
+ sys-devel/gettext
+ virtual/pkgconfig"
+
+src_prepare() {
+ # Don't check for nautilus-python if we aren't installing the nautilus-2 extension
+ sed -e 's:nautilus-python >= 0.6.1::' -i configure || die
+ gnome2_src_prepare
+}
+
+src_configure() {
+ gnome2_src_configure \
+ --with-nautilus-extension-dir="${EPREFIX}"/usr/share/nautilus-python/extensions
+}
+
+src_install() {
+ gnome2_src_install
+ python_fix_shebang "${ED}"
+
+ rm -r "${ED}usr/share/nautilus-python" || die
+}
diff --git a/media-gfx/potrace/Manifest b/media-gfx/potrace/Manifest
new file mode 100644
index 000000000000..3ed49437960f
--- /dev/null
+++ b/media-gfx/potrace/Manifest
@@ -0,0 +1,9 @@
+DIST potrace-1.13.tar.gz 605931 SHA256 6252438b6b6644b9b6298056b4c5de3690a1d4e862b66889abe21eecdf16b784 SHA512 d7b1e72bee388aa309a5fbf3944b9409d912f2ed8a089a44dfca597b55d88bdf08778d40fc487e6689a873631c24cd393894ff353442dc778dfd0d3068121484 WHIRLPOOL 2f09b8a0165fe60b6e93d23d5b3ae65d5544f6d2edf30e81dc980bff5235ceb66294d1c276d570772d7054dee39521becc69ceb6f15ed81d6f4263921b0156f1
+DIST potrace-1.14.tar.gz 649685 SHA256 db72b65311cfdcb63880b317f610d84485f086e15f88ca2346012d49414cd97e SHA512 ade5e18adfbfccbc1298d0bd416fe3ef49ebe0284b81d43e0dd0040498d0ef6995e6ac9dac0a1eb5c251921bc97c32db3213dbe0ab40365d87f92013dcdc99b5 WHIRLPOOL e4e08ff6228281baddcd927e8fc6db2fa7e22c613366a088c36d256cba6275cc285fcdee193d097e2163e95d20f5f7eae94db72d618968a587a1c921d4c95d19
+DIST potrace-1.15.tar.gz 650840 SHA256 a9b33904ace328340c850a01458199e0064e03ccaaa731bc869a842b1b8d529d SHA512 c9a8edd4f3339da587b9b32e12c83c8f7b993c7c23f551fa267545d9411679bc024924e23596ed1c83985693fc894b65dfa9f860275de395d9e0a88da37a4f02 WHIRLPOOL 6b5718dea33fb5597a56d8a8893198a342f6cf1c612ed4ea7b94417b9aabf31b3ecfec69a2dfcedb48430cfa09fdf987ab083a4b1298e73c4d163de93d48c8ee
+EBUILD potrace-1.13.ebuild 830 SHA256 38039d47f32b3a609d55ec3172bf468149ef3c9a5da63c4cff09e09da8858768 SHA512 50d4a9ae0d69dd85cbc22aed2a862e649b2bc17883e1bd782e9d4976d97807dbb7e69b67c073c800bd14bd92eb024af2f42b58e58c57f1d156e1ec72403fc268 WHIRLPOOL 26df7fed083ea4b31bc12d43dec22b47fe96c5d3e69344db19a709f49bd37b4b9b5c9722d28b99d4dd5a820d9a95fba706abba6fe1cfcbd435b921898447c7b9
+EBUILD potrace-1.14.ebuild 838 SHA256 3d9001016f2e2330a5e85eb836007d46407438c00405640a8bb98eed8b7997b3 SHA512 43d983d413c6077ad70f7211e9b9f467afadb9b4ad0613cf5f7ff110b713620e242b6cf9f9e1c557d3c3ce2593eeb0343ec1917bbb2302e7e990faf800eaaaf2 WHIRLPOOL 5528b04ee0b1d3d499653c543502ff0d8f70b212f34a564159f16737ad2324ff6bfad8c000ece395d47894bff1176f9d1d283f32f4a3ab909e910cef07cfaa5a
+EBUILD potrace-1.15.ebuild 833 SHA256 a3bdd3a97cfcd5bba54fd94fbd122569ce735c4fe165404712a0fef64ca75883 SHA512 36f6cfe6f7644b1fc460bd21a59274179397dbdbe151b87459b9b2250d795bcf75714262dff441351e48759c5ae24bc6cb4c0dae99fc01ae97648e84c1c14a0c WHIRLPOOL 5165b34652cd4714e64815114832c8aade1e5c8b9cc57fa7aa4a452213b4f4cf77490d7a423bc9dedf88b817cb36d606c80968bac6e9c25ad29294ff0fdffee3
+MISC ChangeLog 5086 SHA256 64488097ac31f9a46d377e30ea525b4aee1be34dd0379f5f085e07cf50048497 SHA512 cbefb651a0d1ae719eac60f5c3f99ba687afae36fc78ca65bd639bd4cdc0b8ff79b70e7438024ac07b4927e3e34aa92381b3086e231119a798a9b55b21d99c01 WHIRLPOOL 4670fdeaed00a769216a5d2a62500b49389c72acbbcd4416539f4373e2ddd092dee1651a05212306f6482bf3cba181cc1d0205a0064c5aa484b8eae9bfb6ef37
+MISC ChangeLog-2015 7442 SHA256 94d6987bdff3012328e7b4a6990d5af3401780651106d75e8261f08920216984 SHA512 d125d31f06c6466804296fd42d445a97908bb1074c04cd478ce5080dedddaa5a462b908be002351e84d88aaef3895c587cf389fd8d1501b46bf074e77f84be4a WHIRLPOOL 20bd35440fc87380d77e3ffc581f50ea215a85173b3f7f2603aaa776b68a660e37abfe4d5587550d6fc7fac091ffab5009b225b9ae98320a93cb6266af208785
+MISC metadata.xml 534 SHA256 7c0c57bc2be2d8b0466ec1c0f2fb3b3636990b35914fab0d6921d16e510817b5 SHA512 00f7a8a90caa7e7d9920929733f084d41baf72c45dc998255c54964eb50f6ec70d6af8666463fdefca27f95156834f1c4e9676f115bbb86538e979967a73b6c3 WHIRLPOOL 0d2ab5e46df97eb4af4d7b94e9c54746e72dc73307eeea103385eaa55f1c1e6a2bf3b4cd092813913bfcb46068a2df4ea8d6b8759b0b768f88f63f92891fae16
diff --git a/media-gfx/potrace/metadata.xml b/media-gfx/potrace/metadata.xml
new file mode 100644
index 000000000000..22251219aa95
--- /dev/null
+++ b/media-gfx/potrace/metadata.xml
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>fonts@gentoo.org</email>
+ <name>Fonts</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>graphics@gentoo.org</email>
+ <name>Gentoo Graphics Project</name>
+ </maintainer>
+ <use>
+ <flag name="metric">
+ default to a4 paper size and metric measurement
+ </flag>
+ </use>
+ <upstream>
+ <remote-id type="sourceforge">potrace</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/media-gfx/potrace/potrace-1.13.ebuild b/media-gfx/potrace/potrace-1.13.ebuild
new file mode 100644
index 000000000000..87359f05c2ef
--- /dev/null
+++ b/media-gfx/potrace/potrace-1.13.ebuild
@@ -0,0 +1,32 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+inherit autotools-utils toolchain-funcs
+
+DESCRIPTION="Transforming bitmaps into vector graphics"
+HOMEPAGE="http://potrace.sourceforge.net/"
+SRC_URI="http://potrace.sourceforge.net/download/${PV}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 ~s390 ~sh sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos"
+IUSE="metric static-libs"
+
+RDEPEND="sys-libs/zlib"
+DEPEND="${RDEPEND}"
+
+DOCS=( AUTHORS ChangeLog NEWS README )
+
+src_configure() {
+ tc-export CC # bug 610098
+ local myeconfargs=(
+ --docdir="${EPREFIX}"/usr/share/doc/${PF}
+ --enable-zlib
+ --with-libpotrace
+ $(use_enable metric a4)
+ $(use_enable metric)
+ )
+ autotools-utils_src_configure
+}
diff --git a/media-gfx/potrace/potrace-1.14.ebuild b/media-gfx/potrace/potrace-1.14.ebuild
new file mode 100644
index 000000000000..f8bf164ed65b
--- /dev/null
+++ b/media-gfx/potrace/potrace-1.14.ebuild
@@ -0,0 +1,32 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+inherit autotools-utils toolchain-funcs
+
+DESCRIPTION="Transforming bitmaps into vector graphics"
+HOMEPAGE="http://potrace.sourceforge.net/"
+SRC_URI="http://potrace.sourceforge.net/download/${PV}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 arm ~arm64 ~hppa ia64 ppc ppc64 ~s390 ~sh sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos"
+IUSE="metric static-libs"
+
+RDEPEND="sys-libs/zlib"
+DEPEND="${RDEPEND}"
+
+DOCS=( AUTHORS ChangeLog NEWS README )
+
+src_configure() {
+ tc-export CC # bug 610098
+ local myeconfargs=(
+ --docdir="${EPREFIX}"/usr/share/doc/${PF}
+ --enable-zlib
+ --with-libpotrace
+ $(use_enable metric a4)
+ $(use_enable metric)
+ )
+ autotools-utils_src_configure
+}
diff --git a/media-gfx/potrace/potrace-1.15.ebuild b/media-gfx/potrace/potrace-1.15.ebuild
new file mode 100644
index 000000000000..874baa1736b1
--- /dev/null
+++ b/media-gfx/potrace/potrace-1.15.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit toolchain-funcs
+
+DESCRIPTION="Transforming bitmaps into vector graphics"
+HOMEPAGE="http://potrace.sourceforge.net/"
+SRC_URI="http://potrace.sourceforge.net/download/${PV}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos"
+IUSE="metric static-libs"
+
+RDEPEND="sys-libs/zlib"
+DEPEND="${RDEPEND}"
+
+DOCS=( AUTHORS ChangeLog NEWS README )
+
+src_configure() {
+ tc-export CC # bug 610098
+ local myeconfargs=(
+ --enable-shared
+ --enable-zlib
+ --with-libpotrace
+ $(use_enable metric a4)
+ $(use_enable metric)
+ $(use_enable static-libs static)
+ )
+ econf "${myeconfargs[@]}"
+}
diff --git a/media-gfx/povray/Manifest b/media-gfx/povray/Manifest
new file mode 100644
index 000000000000..af21bb4f964f
--- /dev/null
+++ b/media-gfx/povray/Manifest
@@ -0,0 +1,12 @@
+AUX povray-3.7.0.0-automagic.patch 812 SHA256 dc37eb1505fcea73c2d30bef3939efa9ffb1921ee88d60e36e3aae0668336ab9 SHA512 c76ccc429b2868fbae4d40f66d81c07d8b5eba3ec419b2377d3ee541f34b7e597ecf232d1a268abd85fa47abd4f9c7b3cbf26293746b2b10361cef2ea4c34709 WHIRLPOOL 976db9c966d8f6e5e3c05c207f6d0c8f2c62cac9454bbd06f6a2dd8f3d478617b0436e9571bcfb9e8ebc32248561d472f747cc875715b2accc7b42c01fec8c12
+AUX povray-3.7.0.0-boost-1.50.patch 2739 SHA256 c8d4e6809bfcd1a33457b493fa9ba9d2a9983e1a4be750508d766d129dd0b180 SHA512 90b5f03bd290b8fd4431fae208a38d8d54c56bbe3e39db728546a0598ce953eb6f98745bd2ad527d4f8f39dc02cb066b4aee999e7fc7e1348c0da98e9f6bbc1b WHIRLPOOL ebfe59545a53562cbcccfd2da690f4fce80da28599978410f723efb76c589570fc44266a66691d065874701113f1efc37ce4748e6681d7a38ed578722a1f63e3
+AUX povray-3.7.0.0-r1-boost-1.50.patch 3582 SHA256 c837b6173e8600061e8eec338c27f8d59b4b8afa131861ab85acc2e55c48fed7 SHA512 5ab0f29e67e98e47fe8fb991d8a510cb1ff92f27be6e0191c7d8c8f91ec3d67b3127d7227bdbfe8f263b9c6ada216ac46d0bb2e1f221230b253f07424ba689db WHIRLPOOL 4bf9c7b395d97c25b7e006fd700fc2ff6e827b15c77cbb3a46332687ac25c247f86f529d77bec6630d2cb91875f3a5da948845848b4126d46f9b05cfeb870cb0
+AUX povray-3.7.0.0-user-conf.patch 1491 SHA256 f29cb95a171005422ae56aef93d420ab6cff03e88a0fdb0ddae1549c07675501 SHA512 f25ad7e0738a6e0e759aba7405d29839f69a3013170b7072e17afebda7e5d700906280491499628859a8d61c27ee3fc54f0b9fd3f472e0771cdad4f7a3bf6664 WHIRLPOOL 4128514106a5ea157f29d7545e2daaf9ad2138b2e48e7fd7cec53835d9364f841d32a31388af7bc5eb4461b6e38b31aa416cfb9ebaaa7727116a8dd20994bc56
+AUX povray-3.7.0_rc6-darwin-defaults.patch 920 SHA256 68c8094b916fc4c78c294f33502391c579505ae91b14d091c6fb78d91b147167 SHA512 17ae635430f0d57157c9915ce5b25a88afcb34f6dd9552b27a42b32d638fdfbcb8b4e41ec89b52048db9d054812535b7b41f328ffe4554e719e4a3de21cbfdee WHIRLPOOL a8e0d22fce5fe47e12ebb0c8c3b56aa364fd8ec7d963cd02e6b64d4a8825e2d98337b194820b588551e18e3e35fdf414f47e046c05f61ab9a0acc8183f378d79
+DIST povray-3.7.0.0.tar.gz 38191521 SHA256 bf68861d648e3acafbd1d83a25016a0c68547b257e4fa79fb36eb5f08d665f27 SHA512 82e3dbcd58b7ae921fe3b953815ca4dbbfb22eda434554baee4accabd1455b18cb511061f1cf9cf93128fab0a042df374fe2f68186d78c19853a465bd4bcbe10 WHIRLPOOL 6fc85ef9dc0d31a96d98f52d4c0c42cb37264f4e90da842b0e976076fcb1abad3a38d5f5ce82ebdd111babc67d8f16e460f8b04fd40f9dadf8f115f9493e933f
+DIST povray-3.7.0.0_p20160914-fix-c++14.patch.bz2 12876 SHA256 adc1a1cfda6494dfa18bb4a8c62e5a949e4369afc01d520975687c92edee69f8 SHA512 3329da12a822762559445e208a746ff208c39f7b63e27ba84a390074bb52a105c9a2f66180e58c5157795bb16346e11b5b05efaf077ee0d8246179975a692b04 WHIRLPOOL b3adb9f515841471ca7f1130e0991bbd362571f9c20c3f694cc73c03d3311b7143267b626bf08f2ac72b724ecf91274c24d4527e7a29c5368f1df874410a339f
+EBUILD povray-3.7.0.0-r1.ebuild 4418 SHA256 a442ea6e2f27f5aedd5c605c38f376d888ed4798747bac9d78382141f649c815 SHA512 6a44afc7b482fb9e09d8c14ad1a75f9672295844507ef2f63b464ddf8da3564f2fc76c1fd7152dd51ffb043ce01a6ad9afa3cabff485b2cd2aa31b44f0c762af WHIRLPOOL dfe6f4008c8627a0311670fb84f9bca27ab7ecc5cc53bcb08c9fd339539c6173e37a7d14955601efd25fd2d402867f4ab39ac3413602e6c9d3a1428f0116884c
+EBUILD povray-3.7.0.0.ebuild 4391 SHA256 0430f475b037ce7323af682b486d7498eca88ed86be259a62a9eb2753e9c2604 SHA512 1f213b1860b156d6f5cd6a19c41c6582f47ff96b5653f5d23e7baad787c2ce7ee592e80d03ff515ccffef7bacae0c7dcd8adb45a9f61b71055245a00e69221f7 WHIRLPOOL 766aec6a04e1ddb9dc72a35c8f19ce95b11e4310bdc4cf62230b077dea688d6e93d01eb7770144ef7675fe3699179ac29e3d36f318b16fa87f09127c273db109
+MISC ChangeLog 4461 SHA256 c4071c3126584e31059b43db61fd7dc6a04a3c38b39a1d1c458176d11e3e7f30 SHA512 f24e824b827c13dadfeec0d55c161a6504e84c13d5c29ad8935da23ce82ad337c5c0a6434ef1ca7c62545415b4ec2e8277133731140f872d78d46f3c3ea697ca WHIRLPOOL a24326057b24c822ee2206552d093c2d391bad5d39332991b949bec540600213b31fdd222fe16a529440a5570c237d122b7bedec5b2d99171d93424fab7fe500
+MISC ChangeLog-2015 24250 SHA256 870f69fa3163b4e0e7b6e8a2d2b9878b650207206473bff2015729b268b6b89e SHA512 0cd411490a29d40b039f81ae6c09e9ebad4603bb3d54aa0ec50b03587e6a69e45dc0272f60fa01a22954c07ad221ce31ac7cd203962cde0f9be075558c27e5f9 WHIRLPOOL 302588ae268cc92cadf6374dc946cd98eb6d83c110d1402433d1ba53189505d25806ceba8aa739b9709e9cbfbdb358ed5fdc831af84d3e13b5b96bdd00f04039
+MISC metadata.xml 504 SHA256 e6ca51e08746ac5d94195664f44174105c57706d9c7163bad5cb2c27c41b8790 SHA512 e2146892acd26bd3fc03fe1733f67073a1db1106f568ac886548b7c3e4fef508d1f3a619d74b8573696f007ae764d26e1f8556c3dbb03b9434b71258f0bcbb00 WHIRLPOOL ea6c829ba975cb190a6648dc8f0c95486c7c982771bab7775dce05ce4d105ccf85643bad01c58b1b232dcc6d25113b82adc6ef931d5e0d948372138107aa258e
diff --git a/media-gfx/povray/files/povray-3.7.0.0-automagic.patch b/media-gfx/povray/files/povray-3.7.0.0-automagic.patch
new file mode 100644
index 000000000000..a7c776f13fb6
--- /dev/null
+++ b/media-gfx/povray/files/povray-3.7.0.0-automagic.patch
@@ -0,0 +1,27 @@
+ unix/configure.ac | 13 +++++++++----
+ 1 file changed, 9 insertions(+), 4 deletions(-)
+
+diff --git a/configure.ac b/configure.ac
+index f62f5d4..d9a3750 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -335,10 +335,15 @@ fi
+ AC_DEFINE([USE_OFFICIAL_BOOST], [], [Use the official Boost libraries.])
+
+ # Intel Math Kernel library
+-pov_save_ldflags="$LDFLAGS"
+-test x"$with_libmkl" != x"" && LDFLAGS="-L$with_libmkl $LDFLAGS"
+-AC_CHECK_LIB([mkl], [sin])
+-test x"ac_cv_lib_mkl_sin" = x"no" && LDFLAGS="$pov_save_ldflags"
++AS_IF([test x"$with_libmkl" != x"no"], [
++ pov_save_ldflags="$LDFLAGS"
++ AS_IF([test x"$with_libmkl" != x"yes"], [
++ LDFLAGS="-L$with_libmkl $LDFLAGS"
++ ])
++ AC_CHECK_LIB([mkl], [sin], [], [
++ AC_MSG_ERROR([Cannot find working mkl library])
++ ])
++])
+
+ # libm
+ AC_CHECK_LIB([m], [sin])
diff --git a/media-gfx/povray/files/povray-3.7.0.0-boost-1.50.patch b/media-gfx/povray/files/povray-3.7.0.0-boost-1.50.patch
new file mode 100644
index 000000000000..f8e807ad647d
--- /dev/null
+++ b/media-gfx/povray/files/povray-3.7.0.0-boost-1.50.patch
@@ -0,0 +1,72 @@
+ configure.ac | 26 ++++++--------------------
+ vfe/unix/platformbase.cpp | 2 +-
+ 2 files changed, 7 insertions(+), 21 deletions(-)
+
+diff --git a/configure.ac b/configure.ac
+index 51596f8..900c150 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -57,8 +57,6 @@ AC_CONFIG_SRCDIR([unix/disp_text.cpp])
+ m4_include([unix/config/acx_pthread.m4])
+ m4_include([unix/config/ax_arg_enable.m4])
+ m4_include([unix/config/ax_arg_with.m4])
+-m4_include([unix/config/ax_boost_base.m4])
+-m4_include([unix/config/ax_boost_thread.m4])
+ m4_include([unix/config/ax_test_compiler_flags.m4])
+ m4_include([unix/config/ax_check_lib.m4])
+ m4_include([unix/config/ax_check_libjpeg.m4])
+@@ -168,6 +166,7 @@ AC_CANONICAL_HOST
+
+ AM_INIT_AUTOMAKE([1.9 dist-bzip2])
+ AM_MAINTAINER_MODE
++LT_INIT
+
+ AX_FIX_INCORRECT_PATH(C_INCLUDE_PATH, ".", [pov_warn_path="$pov_warn_path C_INCLUDE_PATH"])
+ AX_FIX_INCORRECT_PATH(CPLUS_INCLUDE_PATH, ".", [pov_warn_path="$pov_warn_path CPLUS_INCLUDE_PATH"])
+@@ -298,28 +297,15 @@ LIBS="$LIBS $PTHREAD_CFLAGS $PTHREAD_LIBS" # append
+
+ # Boost; required library
+ # the following macro stops with error when boost is not found
+-AX_BOOST_BASE([$required_libboost_version])
+-AX_BOOST_THREAD
+-if test x"$ax_cv_boost_thread" != x"yes"; then
++BOOST_REQUIRE([$required_libboost_version])
++BOOST_THREADS
++if test x"$boost_cv_lib_thread" != x"yes"; then
+ AC_MSG_ERROR([cannot find a suitable boost thread library])
+ else
+ CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS" # append
+- LDFLAGS="$LDFLAGS $BOOST_LDFLAGS" # append
+- LIBS="$BOOST_THREAD_LIB $LIBS"
++ LDFLAGS="$LDFLAGS -L$BOOST_LDPATH" # append
++ LIBS="$BOOST_THREAD_LIBS $LIBS"
+ fi
+-AC_MSG_CHECKING([whether the boost thread library is usable])
+-AC_RUN_IFELSE(
+- [AC_LANG_PROGRAM([[
+-#include <boost/thread/thread.hpp>
+- ]],
+- [[boost::defer_lock_t(); return 0;]])],
+- [AC_MSG_RESULT([yes])],
+- [
+- AC_MSG_RESULT([no])
+- AC_MSG_FAILURE([cannot link with the boost thread library])
+- ],
+- [AC_MSG_RESULT([cross-compiling])] # FIXME
+-)
+ AC_DEFINE([USE_OFFICIAL_BOOST], [], [Use the official Boost libraries.])
+
+ # Intel Math Kernel library
+diff --git a/vfe/unix/platformbase.cpp b/vfe/unix/platformbase.cpp
+index 8669d19..83c0191 100644
+--- a/vfe/unix/platformbase.cpp
++++ b/vfe/unix/platformbase.cpp
+@@ -68,7 +68,7 @@ namespace pov_base
+ #else
+ // taken from source/base/timer.cpp
+ boost::xtime t;
+- boost::xtime_get(&t, boost::TIME_UTC);
++ boost::xtime_get(&t, POV_TIME_UTC);
+ POV_ULONG ns = (POV_ULONG)(t.sec) * (POV_ULONG)(1000000000) + (POV_ULONG)(t.nsec) + (POV_ULONG)(msec) * (POV_ULONG)(1000000);
+ t.sec = (boost::xtime::xtime_sec_t)(ns / (POV_ULONG)(1000000000));
+ t.nsec = (boost::xtime::xtime_nsec_t)(ns % (POV_ULONG)(1000000000));
diff --git a/media-gfx/povray/files/povray-3.7.0.0-r1-boost-1.50.patch b/media-gfx/povray/files/povray-3.7.0.0-r1-boost-1.50.patch
new file mode 100644
index 000000000000..8a30041469f8
--- /dev/null
+++ b/media-gfx/povray/files/povray-3.7.0.0-r1-boost-1.50.patch
@@ -0,0 +1,108 @@
+Remove bundled m4 macros, instead use system ones from
+sys-devel/autoconf-archive. Use AX_BOOST_SYSTEM to prevent
+underlinking issues with more recent boost versions.
+See also: https://bugs.gentoo.org/show_bug.cgi?id=550018
+
+--- povray-3.7.0.0/unix/configure.ac
++++ povray-3.7.0.0/unix/configure.ac
+@@ -54,23 +54,7 @@
+ AC_CONFIG_SRCDIR([unix/disp_text.cpp])
+
+ # Additional autoconf macros.
+-m4_include([unix/config/acx_pthread.m4])
+-m4_include([unix/config/ax_arg_enable.m4])
+-m4_include([unix/config/ax_arg_with.m4])
+-m4_include([unix/config/ax_boost_base.m4])
+-m4_include([unix/config/ax_boost_thread.m4])
+-m4_include([unix/config/ax_test_compiler_flags.m4])
+-m4_include([unix/config/ax_check_lib.m4])
+-m4_include([unix/config/ax_check_libjpeg.m4])
+-m4_include([unix/config/ax_check_libsdl.m4])
+-m4_include([unix/config/ax_check_libtiff.m4])
+-m4_include([unix/config/ax_check_openexr.m4])
+-m4_include([unix/config/ax_compare_version.m4])
+-m4_include([unix/config/ax_compiler_vendor.m4])
+-m4_include([unix/config/ax_compiler_version.m4])
+-m4_include([unix/config/ax_fix_incorrect_path.m4])
+-m4_include([unix/config/ax_prog_ld_static.m4])
+-m4_include([unix/config/ax_x86_arch.m4])
++AC_CONFIG_MACRO_DIR([unix/config])
+
+ # Required versions of the support libraries.
+ # Must be declared after AC_INIT.
+@@ -166,7 +150,7 @@
+ AC_CANONICAL_BUILD
+ AC_CANONICAL_HOST
+
+-AM_INIT_AUTOMAKE([1.9 dist-bzip2])
++AM_INIT_AUTOMAKE([1.9 dist-bzip2 subdir-objects])
+ AM_MAINTAINER_MODE
+
+ AX_FIX_INCORRECT_PATH(C_INCLUDE_PATH, ".", [pov_warn_path="$pov_warn_path C_INCLUDE_PATH"])
+@@ -184,6 +168,7 @@
+ CFLAGS="$CFLAGS"
+ AC_PROG_CC
+ AC_PROG_CPP
++AM_PROG_AR
+
+ # Force checking essential (ANSI-compliant) headers.
+ AC_CHECK_HEADERS([stdlib.h])
+@@ -292,13 +277,14 @@
+ fi
+
+ # Posix threads
+-ACX_PTHREAD
++AX_PTHREAD
+ CXXFLAGS="$CXXFLAGS $PTHREAD_CFLAGS" # append
+ LIBS="$LIBS $PTHREAD_CFLAGS $PTHREAD_LIBS" # append
+
+ # Boost; required library
+ # the following macro stops with error when boost is not found
+ AX_BOOST_BASE([$required_libboost_version])
++AX_BOOST_SYSTEM
+ AX_BOOST_THREAD
+ if test x"$ax_cv_boost_thread" != x"yes"; then
+ AC_MSG_ERROR([cannot find a suitable boost thread library])
+@@ -307,19 +293,6 @@
+ LDFLAGS="$LDFLAGS $BOOST_LDFLAGS" # append
+ LIBS="$BOOST_THREAD_LIB $LIBS"
+ fi
+-AC_MSG_CHECKING([whether the boost thread library is usable])
+-AC_RUN_IFELSE(
+- [AC_LANG_PROGRAM([[
+-#include <boost/thread/thread.hpp>
+- ]],
+- [[boost::defer_lock_t(); return 0;]])],
+- [AC_MSG_RESULT([yes])],
+- [
+- AC_MSG_RESULT([no])
+- AC_MSG_FAILURE([cannot link with the boost thread library])
+- ],
+- [AC_MSG_RESULT([cross-compiling])] # FIXME
+-)
+ AC_DEFINE([USE_OFFICIAL_BOOST], [], [Use the official Boost libraries.])
+
+ # Intel Math Kernel library
+--- povray-3.7.0.0/unix/prebuild.sh
++++ povray-3.7.0.0/unix/prebuild.sh
+@@ -439,7 +439,8 @@
+ # Beware: order does matter!
+ LDADD = \\
+ \$(top_builddir)/vfe/libvfe.a \\
+- \$(top_builddir)/source/libpovray.a
++ \$(top_builddir)/source/libpovray.a \\
++ @BOOST_SYSTEM_LIB@
+ pbEOF
+ ;;
+ esac
+--- povray-3.7.0.0/vfe/unix/platformbase.cpp
++++ povray-3.7.0.0/vfe/unix/platformbase.cpp
+@@ -68,7 +68,7 @@
+ #else
+ // taken from source/base/timer.cpp
+ boost::xtime t;
+- boost::xtime_get(&t, boost::TIME_UTC);
++ boost::xtime_get(&t, POV_TIME_UTC);
+ POV_ULONG ns = (POV_ULONG)(t.sec) * (POV_ULONG)(1000000000) + (POV_ULONG)(t.nsec) + (POV_ULONG)(msec) * (POV_ULONG)(1000000);
+ t.sec = (boost::xtime::xtime_sec_t)(ns / (POV_ULONG)(1000000000));
+ t.nsec = (boost::xtime::xtime_nsec_t)(ns % (POV_ULONG)(1000000000));
diff --git a/media-gfx/povray/files/povray-3.7.0.0-user-conf.patch b/media-gfx/povray/files/povray-3.7.0.0-user-conf.patch
new file mode 100644
index 000000000000..b3c279fcdeff
--- /dev/null
+++ b/media-gfx/povray/files/povray-3.7.0.0-user-conf.patch
@@ -0,0 +1,27 @@
+ Makefile.am | 13 -------------
+ 1 files changed, 0 insertions(+), 13 deletions(-)
+
+diff --git a/Makefile.am b/Makefile.am
+index 76b394c..9822c52 100644
+--- a/Makefile.am
++++ b/Makefile.am
+@@ -107,19 +107,6 @@ install-data-local:
+ for f in $$filelist ; do \
+ $(INSTALL_DATA) $(top_srcdir)/doc/$$f $(DESTDIR)$(povdocdir)/$$f && echo "$(DESTDIR)$(povdocdir)/$$f" >> $(povinstall); \
+ done
+- @echo "Creating user directories..."; \
+- for p in $(povuser) $(povconfuser) ; do \
+- $(MKDIR_P) $$p && chown $(povowner) $$p && chgrp $(povgroup) $$p && printf "%s\n" "$$p" "`cat $(povinstall)`" > $(povinstall); \
+- done
+- @echo "Copying user configuration and INI files..."; \
+- for f in povray.conf povray.ini ; do \
+- if test -f $(povconfuser)/$$f; then \
+- echo "Creating backup of $(povconfuser)/$$f"; \
+- mv -f $(povconfuser)/$$f $(povconfuser)/$$f.bak; \
+- fi; \
+- done; \
+- $(INSTALL_DATA) $(top_srcdir)/povray.conf $(povconfuser)/povray.conf && chown $(povowner) $(povconfuser)/povray.conf && chgrp $(povgroup) $(povconfuser)/povray.conf && echo "$(povconfuser)/povray.conf" >> $(povinstall); \
+- $(INSTALL_DATA) $(top_builddir)/povray.ini $(povconfuser)/povray.ini && chown $(povowner) $(povconfuser)/povray.ini && chgrp $(povgroup) $(povconfuser)/povray.ini && echo "$(povconfuser)/povray.ini" >> $(povinstall)
+
+ # Remove data, config, and empty folders for 'make uninstall'.
+ # Use 'hook' instead of 'local' so as to properly remove *empty* folders (e.g. scripts).
diff --git a/media-gfx/povray/files/povray-3.7.0_rc6-darwin-defaults.patch b/media-gfx/povray/files/povray-3.7.0_rc6-darwin-defaults.patch
new file mode 100644
index 000000000000..16e09c749b2e
--- /dev/null
+++ b/media-gfx/povray/files/povray-3.7.0_rc6-darwin-defaults.patch
@@ -0,0 +1,21 @@
+# Darwin does not support thread-local storage (__thread)
+# http://lists.apple.com/archives/xcode-users/2006/Jun/msg00551.html
+# so use default from boost thread
+
+# use lseek for lseek64
+# sys/types.h is needed because of uint
+
+--- povray-3.7.0.RC6/vfe/unix/syspovconfig.h.orig 2013-03-01 11:09:42.000000000 -0700
++++ povray-3.7.0.RC6/vfe/unix/syspovconfig.h 2013-03-01 11:07:14.000000000 -0700
+@@ -171,9 +171,7 @@
+ #define METADATA_PLATFORM_STRING BUILD_ARCH
+ #define METADATA_COMPILER_STRING COMPILER_VERSION
+
+-#define DECLARE_THREAD_LOCAL_PTR(ptrType, ptrName) __thread ptrType *ptrName
+-#define IMPLEMENT_THREAD_LOCAL_PTR(ptrType, ptrName, ignore) __thread ptrType *ptrName
+-#define GET_THREAD_LOCAL_PTR(ptrName) (ptrName)
+-#define SET_THREAD_LOCAL_PTR(ptrName, ptrValue) (ptrName = ptrValue)
++#define lseek64 lseek
++#include <sys/types.h>
+
+ #endif
diff --git a/media-gfx/povray/metadata.xml b/media-gfx/povray/metadata.xml
new file mode 100644
index 000000000000..a23bbb8953d4
--- /dev/null
+++ b/media-gfx/povray/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>sci@gentoo.org</email>
+ </maintainer>
+ <use>
+ <flag name="mkl">Enable support for Intel Vector Math Library, part of sci-libs/mkl</flag>
+ <flag name="io-restrictions">POV-Ray's mechanism for control of I/O operations</flag>
+ </use>
+ <upstream>
+ <remote-id type="github">POV-Ray/povray</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/media-gfx/povray/povray-3.7.0.0-r1.ebuild b/media-gfx/povray/povray-3.7.0.0-r1.ebuild
new file mode 100644
index 000000000000..35f061a14759
--- /dev/null
+++ b/media-gfx/povray/povray-3.7.0.0-r1.ebuild
@@ -0,0 +1,141 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit autotools flag-o-matic versionator virtualx
+
+POVRAY_MAJOR_VER=$(get_version_component_range 1-3)
+POVRAY_MINOR_VER=$(get_version_component_range 4)
+if [ -n "$POVRAY_MINOR_VER" ]; then
+ POVRAY_MINOR_VER=${POVRAY_MINOR_VER/rc/RC}
+ MY_PV="${POVRAY_MAJOR_VER}.${POVRAY_MINOR_VER}"
+else
+ MY_PV=${POVRAY_MAJOR_VER}
+fi
+
+DESCRIPTION="The Persistence of Vision Raytracer"
+HOMEPAGE="http://www.povray.org/"
+SRC_URI="https://github.com/POV-Ray/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz
+ https://dev.gentoo.org/~soap/distfiles/${P}_p20160914-fix-c++14.patch.bz2"
+
+LICENSE="AGPL-3"
+SLOT="0"
+KEYWORDS="alpha amd64 ~arm hppa ia64 ~mips ppc ppc64 sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
+IUSE="debug +io-restrictions openexr static-libs tiff X"
+
+DEPEND="
+ >=dev-libs/boost-1.50.0:=[threads(+)]
+ media-libs/libpng:0
+ sys-libs/zlib
+ virtual/jpeg:0
+ openexr? (
+ media-libs/ilmbase
+ media-libs/openexr )
+ tiff? ( media-libs/tiff:0 )
+ X? ( media-libs/libsdl )"
+RDEPEND="${DEPEND}"
+DEPEND="${DEPEND}
+ sys-devel/autoconf-archive"
+
+S=${WORKDIR}/${PN}-${MY_PV}
+
+PATCHES=(
+ "${FILESDIR}"/${P}-user-conf.patch
+ "${FILESDIR}"/${P}-automagic.patch
+ "${WORKDIR}"/${P}_p20160914-fix-c++14.patch
+)
+
+src_prepare() {
+ [[ ${CHOST} == *-darwin* ]] && \
+ PATCHES+=( "${FILESDIR}"/${PN}-3.7.0_rc6-darwin-defaults.patch )
+ eapply "${FILESDIR}"/${PF}-boost-1.50.patch
+
+ pushd unix &>/dev/null || die
+ pushd config &>/dev/null || die
+ rm -rf \
+ acx_pthread.m4 \
+ ax_boost_base.m4 \
+ ax_boost_thread.m4 \
+ ax_compare_version.m4 \
+ ax_compiler_vendor.m4 \
+ ax_compiler_version.m4 || die
+ popd &>/dev/null || die
+ bash -x prebuild.sh || die
+ popd &>/dev/null || die
+
+ rm -rf libraries || die
+
+ # Change some destination directories that cannot be adjusted via configure
+ sed \
+ -e 's:${povsysconfdir}/$PACKAGE/$VERSION_BASE:${povsysconfdir}/'${PN}':g' \
+ -e 's:${povdatadir}/$PACKAGE-$VERSION_BASE:${povdatadir}/'${PN}':g' \
+ -e 's:${povdatadir}/doc/$PACKAGE-$VERSION_BASE:${povdatadir}/doc/'${PF}':g' \
+ -e 's:BOOST_THREAD_LIBS $LIBS:BOOST_THREAD_LIBS $LIBS -lboost_date_time:g' \
+ -i configure.ac || die
+
+ sed \
+ -e "s:^povlibdir = .*:povlibdir = @datadir@/${PN}:" \
+ -e "s:^povdocdir = .*:povdocdir = @datadir@/doc/${PF}:" \
+ -e "s:^povconfdir = .*:povconfdir = @sysconfdir@/${PN}:" \
+ -e 's:mkdir_p:MKDIR_P:g' \
+ -i Makefile.am || die
+
+ # The "+p" option on the test command line causes a pause and
+ # prompts the user to interact, so remove it.
+ sed -i -e "s:biscuit.pov -f +d +p:biscuit.pov -f +d:" Makefile.am || die
+ default
+
+ eautoreconf
+}
+
+src_configure() {
+ # Fixes bug 71255
+ if [[ $(get-flag march) == k6-2 ]]; then
+ filter-flags -fomit-frame-pointer
+ fi
+
+ # The config files are installed correctly (e.g. povray.conf),
+ # but the code compiles using incorrect [default] paths
+ # (based on /usr/local...), so povray will not find the system
+ # config files without the following fix:
+ append-cppflags -DPOVLIBDIR=\\\"${EROOT}usr/share/${PN}\\\" -DPOVCONFDIR=\\\"${EROOT}etc/${PN}\\\"
+
+ econf \
+ COMPILED_BY="Portage (Gentoo $(uname)) on $(hostname -f)" \
+ $(use_enable debug) \
+ $(use_enable io-restrictions) \
+ $(use_with openexr openexr "${EPREFIX}/usr/$(get_libdir)") \
+ $(use_with tiff libtiff "${EPREFIX}/usr/$(get_libdir)") \
+ $(use_with X libsdl "${EPREFIX}/usr/$(get_libdir)") \
+ $(use_with X x "${EPREFIX}/usr/$(get_libdir)") \
+ $(use_enable static-libs static) \
+ $(usex tiff "" "NON_REDISTRIBUTABLE_BUILD=yes") \
+ --without-libmkl \
+ --disable-pipe \
+ --disable-strip \
+ --disable-optimiz \
+ --disable-optimiz-arch
+}
+
+src_test() {
+ virtx default
+}
+
+pkg_preinst() {
+ # Copy the old config files if they are in the old location
+ # but do not yet exist in the new location.
+ # This way, they can be treated by CONFIG_PROTECT as normal.
+ local conf_file version_dir
+ for conf_file in "${ED}"/etc/"${PN}"/*; do
+ if [ ! -e "${EROOT}etc/${PN}/${conf_file}" ]; then
+ for version_dir in $(echo "${EROOT}"etc/"${PN}"/* | grep "^[0-9]" | sort -rn); do
+ if [ -e "${EROOT}etc/${PN}/${version_dir}/${conf_file}" ]; then
+ mv "${EROOT}etc/${PN}/${version_dir}/${conf_file}" "${EROOT}etc/${PN}" || die
+ elog "Note: ${conf_file} moved from ${EROOT}etc/povray/${version_dir}/ to ${EROOT}etc/povray/"
+ break
+ fi
+ done
+ fi
+ done
+}
diff --git a/media-gfx/povray/povray-3.7.0.0.ebuild b/media-gfx/povray/povray-3.7.0.0.ebuild
new file mode 100644
index 000000000000..9a8ae2aa94b5
--- /dev/null
+++ b/media-gfx/povray/povray-3.7.0.0.ebuild
@@ -0,0 +1,146 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+AUTOTOOLS_AUTORECONF=true
+
+inherit autotools-utils flag-o-matic multilib versionator virtualx
+
+POVRAY_MAJOR_VER=$(get_version_component_range 1-3)
+POVRAY_MINOR_VER=$(get_version_component_range 4)
+if [ -n "$POVRAY_MINOR_VER" ]; then
+ POVRAY_MINOR_VER=${POVRAY_MINOR_VER/rc/RC}
+ MY_PV="${POVRAY_MAJOR_VER}.${POVRAY_MINOR_VER}"
+else
+ MY_PV=${POVRAY_MAJOR_VER}
+fi
+
+DESCRIPTION="The Persistence of Vision Raytracer"
+HOMEPAGE="http://www.povray.org/"
+SRC_URI="https://github.com/POV-Ray/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="AGPL-3"
+SLOT="0"
+KEYWORDS="alpha amd64 ~arm hppa ia64 ~mips ppc ppc64 sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
+IUSE="debug +io-restrictions mkl openexr static-libs tiff X"
+
+DEPEND="
+ >=dev-libs/boost-1.50.0:=[threads(+)]
+ media-libs/libpng:0
+ sys-libs/zlib
+ virtual/jpeg
+ mkl? ( sci-libs/mkl )
+ openexr? (
+ media-libs/ilmbase
+ media-libs/openexr )
+ tiff? ( media-libs/tiff:0 )
+ X? ( media-libs/libsdl )"
+RDEPEND="${DEPEND}"
+DEPEND="${DEPEND}
+ sys-devel/boost-m4"
+
+S=${WORKDIR}/${PN}-${MY_PV}
+
+PATCHES=(
+ "${FILESDIR}"/${P}-user-conf.patch
+ "${FILESDIR}"/${P}-boost-1.50.patch
+ "${FILESDIR}"/${P}-automagic.patch
+ )
+
+src_prepare() {
+ [[ ${CHOST} == *-darwin* ]] && \
+ PATCHES+=( "${FILESDIR}"/${PN}-3.7.0_rc6-darwin-defaults.patch )
+
+ cd unix || die
+ bash -x prebuild.sh || die
+ cd .. || die
+ rm -rf libraries || die
+
+ # Change some destination directories that cannot be adjusted via configure
+ sed \
+ -e 's:${povsysconfdir}/$PACKAGE/$VERSION_BASE:${povsysconfdir}/'${PN}':g' \
+ -e 's:${povdatadir}/$PACKAGE-$VERSION_BASE:${povdatadir}/'${PN}':g' \
+ -e 's:${povdatadir}/doc/$PACKAGE-$VERSION_BASE:${povdatadir}/doc/'${PF}':g' \
+ -e 's:BOOST_THREAD_LIBS $LIBS:BOOST_THREAD_LIBS $LIBS -lboost_date_time:g' \
+ -i configure.ac || die
+
+ sed \
+ -e "s:^povlibdir = .*:povlibdir = @datadir@/${PN}:" \
+ -e "s:^povdocdir = .*:povdocdir = @datadir@/doc/${PF}:" \
+ -e "s:^povconfdir = .*:povconfdir = @sysconfdir@/${PN}:" \
+ -e 's:mkdir_p:MKDIR_P:g' \
+ -i Makefile.am || die
+
+ # The "+p" option on the test command line causes a pause and
+ # prompts the user to interact, so remove it.
+ sed -i -e "s:biscuit.pov -f +d +p:biscuit.pov -f +d:" Makefile.am || die
+
+ autotools-utils_src_prepare
+}
+
+_src_compile() {
+ einfo "${LDFLAGS}"
+ autotools-utils_src_compile LDFLAGS="${LDFLAGS}"
+}
+
+src_configure() {
+ local non_redist_conf
+
+ # Fixes bug 71255
+ if [[ $(get-flag march) == k6-2 ]]; then
+ filter-flags -fomit-frame-pointer
+ fi
+
+ # The config files are installed correctly (e.g. povray.conf),
+ # but the code compiles using incorrect [default] paths
+ # (based on /usr/local...), so povray will not find the system
+ # config files without the following fix:
+ append-cppflags -DPOVLIBDIR=\\\"${EROOT}usr/share/${PN}\\\" -DPOVCONFDIR=\\\"${EROOT}etc/${PN}\\\"
+
+ if ! use tiff ; then
+ non_redist_conf="NON_REDISTRIBUTABLE_BUILD=yes"
+ else
+ non_redist_conf=""
+ fi
+
+ local myeconfargs=(
+ ${non_redist_conf}
+ COMPILED_BY="Portage (Gentoo `uname`) on `hostname -f`"
+ $(use_enable debug)
+ $(use_enable io-restrictions)
+ $(use_with openexr openexr "${EPREFIX}/usr/$(get_libdir)")
+ $(use_with mkl libmkl "${EPREFIX}/usr/$(get_libdir)")
+ $(use_with tiff libtiff "${EPREFIX}/usr/$(get_libdir)")
+ $(use_with X libsdl "${EPREFIX}/usr/$(get_libdir)")
+ $(use_with X x "${EPREFIX}/usr/$(get_libdir)")
+ --disable-pipe
+ --disable-strip
+ --disable-optimiz
+ --disable-optimiz-arch
+ )
+ autotools-utils_src_configure
+}
+
+src_test() {
+ # For the beta releases, we generate a license extension in case needed
+ VIRTUALX_COMMAND="autotools-utils_src_test"
+ virtualmake
+}
+
+pkg_preinst() {
+ # Copy the old config files if they are in the old location
+ # but do not yet exist in the new location.
+ # This way, they can be treated by CONFIG_PROTECT as normal.
+ for conf_file in $(ls "${ED}/etc/${PN}"); do
+ if [ ! -e "${EROOT}etc/${PN}/${conf_file}" ]; then
+ for version_dir in $(ls "${EROOT}etc/${PN}" | grep "^[0-9]" | sort -rn); do
+ if [ -e "${EROOT}etc/${PN}/${version_dir}/${conf_file}" ]; then
+ mv "${EROOT}etc/${PN}/${version_dir}/${conf_file}" "${EROOT}etc/${PN}"
+ elog "Note: ${conf_file} moved from ${EROOT}etc/povray/${version_dir}/ to ${EROOT}etc/povray/"
+ break
+ fi
+ done
+ fi
+ done
+}
diff --git a/media-gfx/povtree/Manifest b/media-gfx/povtree/Manifest
new file mode 100644
index 000000000000..bba317975f81
--- /dev/null
+++ b/media-gfx/povtree/Manifest
@@ -0,0 +1,6 @@
+AUX povtree 326 SHA256 69259dd915992a54e080e9ac66227265aad1c3437f6ead6f4bd321db91796afc SHA512 9456ed3360de5f57d8d8f25c7f9986c631d90c73829df4be31f3eb7dc4fa1750e8b3e8ed986043bdfc01215a86a675fecdcfcd1c3279bb5df4f98ade57f57679 WHIRLPOOL 9926a62af089ef7b7764750251cb03524139dae88f566015999ae36ff85784815be768fd3cc3dc46cf8a076839329cfd30c07d277a861c1291f4ca15d2d1ca4d
+DIST povtree1.5.zip 917548 SHA256 d846e45ad77fe0a5501b46f40c1b2596161d59a51884c67af753d339143ad333 SHA512 ef8de1e1d9b5ffde782bd6bba39a11b57928bdb2b3359613a0ae1bc6ad012876a3a80d8cbbba1df77b366e44a7d2f0b48929f12e18853ec556f5af5780ea7d34 WHIRLPOOL 90cd76777217dd870220a7aebe3c12dc568a9c19877308ed1d56c024660e861819a1c535b38ada2154b3e057186b80865689756b9232dc30e4127fc02deb9e29
+EBUILD povtree-1.5-r1.ebuild 767 SHA256 21975a81b59d9ad4880946a5a9682b9f195e4a90c94c43126c102aaacb70b0f1 SHA512 17d51c5b79b0a33a8f6c576ba9dbe53f9f77db17622bb6401ed9917cced63c5c605c0fbd7059a0346261281c69200b98a22b7b3eccbb17534356e29877f88805 WHIRLPOOL d96e2645bde2e460f991fe7396f8136985fdc34941ad1c00782f9bd23cf49396501086e9f3e223ee78e61434ba287a03defced79655ab419f7400d9056fd9a12
+MISC ChangeLog 2585 SHA256 ab4e8ef96ee2a1a85b4e7a3d0cf237dc36d410630c6a06c0e3ed614fb0017e53 SHA512 fc15c73cabc8f50fe7b01bd712e11a48be327a162c086885a6c40d76979e718769af65a6585d6e63ff40bbe0b18d7cb3176b71da509a8fd5f38466f441417084 WHIRLPOOL 74763917d61a254415293f8c360aba4e0680f4b8edf556375324ee9256bdf4a29b4b779c9771f34a671bd690026a0c1e564c91a7638012ed208b5d1a41d72c2a
+MISC ChangeLog-2015 2622 SHA256 d506e009e64eb89bc3ffb4f24e055ed7c6e74e6384117c67c572c5001d50215b SHA512 bc7b59a196241f94617023cdb904e5c5720f8e47b3853096fbb79c5f93dc01d6f23c495992fec52d375c1bb45d597d3d1e93146fa501e9f87aceefe3d4de9141 WHIRLPOOL 881917c6b47634ec5a42291affae01bddc9accff3df0058fc33eebacdb97363f6b38291565eefa2e32a69f409a7dd09642bb6c0e5c69124e6fa7dbc5c1f18fe1
+MISC metadata.xml 255 SHA256 3e7137870fc49956d79719e3dfe029775cbaaa097e85748c139713c46fcd1798 SHA512 b7bc93530a1726c2d4dfbc71ae29cfbb57712fd9fdd2e76fd52f35ab4368cba0497b50145d1527a3b79e465d459a380821bb1371a01c2e915dc9adc6c7fafd5f WHIRLPOOL 392188d7e069f1720be9329edfb31b11b176bf0c411023b2ceeaeabef1cacf842d70657a2a14ac2ddabbdad70a304275f3b587e9bcdfe77be63a0092e370252c
diff --git a/media-gfx/povtree/files/povtree b/media-gfx/povtree/files/povtree
new file mode 100644
index 000000000000..61e1e75c9ce1
--- /dev/null
+++ b/media-gfx/povtree/files/povtree
@@ -0,0 +1,11 @@
+#!/bin/sh
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+which java > /dev/null 2>&1 && \
+ java -jar /usr/lib/povtree/povtree.jar $* && \
+ exit 0
+
+echo "No \"java\" binary found in your PATH."
+echo "You should run \"java-config\" to choose your default VM."
+exit 1
diff --git a/media-gfx/povtree/metadata.xml b/media-gfx/povtree/metadata.xml
new file mode 100644
index 000000000000..19bf1be2581e
--- /dev/null
+++ b/media-gfx/povtree/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 type="project">
+ <email>graphics@gentoo.org</email>
+ <name>Gentoo Graphics Project</name>
+</maintainer>
+</pkgmetadata>
diff --git a/media-gfx/povtree/povtree-1.5-r1.ebuild b/media-gfx/povtree/povtree-1.5-r1.ebuild
new file mode 100644
index 000000000000..ecc9cd966614
--- /dev/null
+++ b/media-gfx/povtree/povtree-1.5-r1.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+S="${WORKDIR}"
+MY_P="${PN}${PV}"
+DESCRIPTION="Tree generator for POVray based on TOMTREE macro"
+HOMEPAGE="http://propro.ru/go/Wshop/povtree/povtree.html"
+SRC_URI="http://propro.ru/go/Wshop/povtree/${MY_P}.zip"
+
+# Free for non-commercial use, according to e-mail from authors #446168
+LICENSE="free-noncomm"
+SLOT="0"
+KEYWORDS="amd64 x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
+
+RDEPEND=">=virtual/jre-1.3"
+DEPEND="app-arch/unzip"
+
+src_install() {
+ # wrapper
+ sed "s:/usr/:${EPREFIX}&:" "${FILESDIR}"/povtree > "${T}"/povtree || die
+ dobin "${T}"/povtree
+ # package
+ insinto /usr/lib/povtree
+ doins povtree.jar
+ dodoc TOMTREE-${PV}.inc help.jpg
+}
diff --git a/media-gfx/pqiv/Manifest b/media-gfx/pqiv/Manifest
new file mode 100644
index 000000000000..e439a8d755b8
--- /dev/null
+++ b/media-gfx/pqiv/Manifest
@@ -0,0 +1,6 @@
+DIST pqiv-2.9.tar.gz 133823 SHA256 e57298ae7123bd6b01b751f6ef2d7a7853e731a3271b50095683442a406da99c SHA512 0a509d5d4b41682f86f4b813d63f3f7f8f3977ede0b8b1649a2adc188ed83923147b8bb741ba7f85b4c1dd7a9612fca3fec44169364042be4db44ef53d813ab7 WHIRLPOOL e40e4aab7b4df92cc7bed911531be4e84062196ca1fdae867b05da38f28c448a34475a31865275f0d38f3efedf1f07af42f305fcb6621a16a73f7050cb327652
+EBUILD pqiv-2.9.ebuild 1798 SHA256 ff4e3f73b73fa75cd0616c514c6090a115c16d4ace3b95ca23646b6061925d9c SHA512 1285d38a37bce7f5670f7e39136a834b60af8c71db12bf84a962636ca9da5c27e162fe71e243f9c30689f2f2eba5277c121305d8e4f11f50fddcf635a60dfae9 WHIRLPOOL 3816ba0dafeefc878cfce1db8f90e5d6d85ca69f6ca90d195e173f41263c8ba2f56dc5a5d4fa121d0c04df84501ac78d566f5e413593a282b850743b7416854d
+EBUILD pqiv-9999.ebuild 1800 SHA256 e1a23c600db43fc1573ac75b1fffc3ffc4dd13da7d385aafd1d2242209cad62b SHA512 33ddac017e8c65c6df0b91ee20483a8bb486031c306e992593fb72f60740f8ad832eb8b8200aa52f89d9467dedf652bcebfdec5cd70a6063a25f5962c468288a WHIRLPOOL 75d39744d940eb1d7397d97726f1b70782dfbc3249ec6d0c4628b7e2326244d7bfe3980b305d60502b39bb9072358d17b6a781adab25622a2a01c43827713b88
+MISC ChangeLog 2992 SHA256 41b025840c651ea0cf8c1f5d2e69867a40a858bc46ebe7692a03fcab32375f90 SHA512 e53bfc47eeb14806238b1ba22a4f3e3be0f195c413314659527b6448162405ba00ea120e6e9c6efbf8a614d7aebd74f62f40cfa142f91663ff21de3721c1d5dc WHIRLPOOL 878dbe91eebcbb9f4548475b6c24edd1df73d4a8adb63517c3c95d69de2d0178375f762da42746b2172bc212f708f5c1cc1240d4a7192e4e577b8151026300b4
+MISC ChangeLog-2015 5575 SHA256 09eaf4458d2024168f92bcf7ae67c19bf7c3821c3e3af394d21b113bb7d53696 SHA512 e9e7f185aeb9107c755879cff8ef5d495b6093d27f3082a5ebc8e8a1da971a3def1e3d6ebf50f8b47e0a6bb7bdacc8b02986911837cebfd69b95a9f2d9209280 WHIRLPOOL d3f691ace51d2e77df6e6bb632de242bfb396f9488abc71748d43fd616da3bcfbc826232df10c4cca7ed8a3d20978a1c2b0b1de4c73540a394100ed0b11a65c4
+MISC metadata.xml 584 SHA256 f17c40e7c5b2cd92899e1f437888c5d4a360d815a4fa7ed5447b2502f52822fa SHA512 0d589cf085f6e6335aae5f6e32ccd153ddae1f0fa926fd3a135eabcdc20d5c560e2694216ba93b6d8c6c16bd8541f9d7aaa496e7ee4bc82fea90228a28320fbd WHIRLPOOL 69cba2a837eec2451a21a4db2811797fe284154eba194f708d6243e332f260099c90a5ae0d3e088bafe734c767954d88afb6bafd27eba4b32209a68c93fcc768
diff --git a/media-gfx/pqiv/metadata.xml b/media-gfx/pqiv/metadata.xml
new file mode 100644
index 000000000000..cb5fbcd27582
--- /dev/null
+++ b/media-gfx/pqiv/metadata.xml
@@ -0,0 +1,18 @@
+<?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>
+ <maintainer>
+ <email>phillip.berndt@googlemail.com</email>
+ <name>Phillip Berndt</name>
+ </maintainer>
+ <remote-id type="github">phillipberndt/pqiv</remote-id>
+ </upstream>
+ <use>
+ <flag name="archive">Enable support for images in archives and cbX comic book files</flag>
+ </use>
+</pkgmetadata>
diff --git a/media-gfx/pqiv/pqiv-2.9.ebuild b/media-gfx/pqiv/pqiv-2.9.ebuild
new file mode 100644
index 000000000000..2eaaf614442a
--- /dev/null
+++ b/media-gfx/pqiv/pqiv-2.9.ebuild
@@ -0,0 +1,79 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit linux-info toolchain-funcs xdg-utils
+
+if [[ ${PV} == 9999 ]]; then
+ EGIT_REPO_URI="https://github.com/phillipberndt/pqiv.git"
+ inherit git-r3
+else
+ SRC_URI="https://github.com/phillipberndt/pqiv/archive/${PV}.tar.gz -> ${P}.tar.gz"
+ KEYWORDS="amd64 x86"
+fi
+
+DESCRIPTION="powerful GTK 3 based command-line image viewer with a minimal UI"
+HOMEPAGE="https://github.com/phillipberndt/pqiv http://www.pberndt.com/Programme/Linux/pqiv/"
+
+LICENSE="GPL-2"
+SLOT="0"
+IUSE="archive ffmpeg imagemagick kernel_linux libav pdf postscript webp"
+
+RDEPEND="
+ >=dev-libs/glib-2.8:2
+ >=x11-libs/cairo-1.6
+ x11-libs/gtk+:3
+ archive? ( app-arch/libarchive:0= )
+ ffmpeg? (
+ !libav? ( media-video/ffmpeg:0= )
+ libav? ( media-video/libav:0= )
+ )
+ imagemagick? ( media-gfx/imagemagick:0= )
+ pdf? ( app-text/poppler:0= )
+ postscript? ( app-text/libspectre:0= )
+ webp? ( media-libs/libwebp:0= )
+"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+doecho() {
+ echo "$@"
+ "$@" || die
+}
+
+pkg_setup() {
+ if use kernel_linux; then
+ CONFIG_CHECK="~INOTIFY_USER"
+ linux-info_pkg_setup
+ fi
+}
+
+src_configure() {
+ local backends="gdkpixbuf"
+ use archive && backends+=",archive,archive_cbx"
+ use ffmpeg || use libav && backends+=",libav"
+ use imagemagick && backends+=",wand"
+ use pdf && backends+=",poppler"
+ use postscript && backends+=",spectre"
+ use webp && backends+=",webp"
+
+ doecho ./configure \
+ --backends-build=shared \
+ --backends=${backends} \
+ --prefix="${EPREFIX}/usr" \
+ --libdir="${EPREFIX}/usr/$(get_libdir)" \
+ --destdir="${ED}"
+}
+
+src_compile() {
+ tc-export CC
+ emake VERBOSE=1 CFLAGS="${CFLAGS}"
+}
+
+pkg_postinst() {
+ xdg_desktop_database_update
+}
+
+pkg_postrm() {
+ xdg_desktop_database_update
+}
diff --git a/media-gfx/pqiv/pqiv-9999.ebuild b/media-gfx/pqiv/pqiv-9999.ebuild
new file mode 100644
index 000000000000..38325520298a
--- /dev/null
+++ b/media-gfx/pqiv/pqiv-9999.ebuild
@@ -0,0 +1,79 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit linux-info toolchain-funcs xdg-utils
+
+if [[ ${PV} == 9999 ]]; then
+ EGIT_REPO_URI="https://github.com/phillipberndt/pqiv.git"
+ inherit git-r3
+else
+ SRC_URI="https://github.com/phillipberndt/pqiv/archive/${PV}.tar.gz -> ${P}.tar.gz"
+ KEYWORDS="~amd64 ~x86"
+fi
+
+DESCRIPTION="powerful GTK 3 based command-line image viewer with a minimal UI"
+HOMEPAGE="https://github.com/phillipberndt/pqiv http://www.pberndt.com/Programme/Linux/pqiv/"
+
+LICENSE="GPL-2"
+SLOT="0"
+IUSE="archive ffmpeg imagemagick kernel_linux libav pdf postscript webp"
+
+RDEPEND="
+ >=dev-libs/glib-2.8:2
+ >=x11-libs/cairo-1.6
+ x11-libs/gtk+:3
+ archive? ( app-arch/libarchive:0= )
+ ffmpeg? (
+ !libav? ( media-video/ffmpeg:0= )
+ libav? ( media-video/libav:0= )
+ )
+ imagemagick? ( media-gfx/imagemagick:0= )
+ pdf? ( app-text/poppler:0= )
+ postscript? ( app-text/libspectre:0= )
+ webp? ( media-libs/libwebp:0= )
+"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+doecho() {
+ echo "$@"
+ "$@" || die
+}
+
+pkg_setup() {
+ if use kernel_linux; then
+ CONFIG_CHECK="~INOTIFY_USER"
+ linux-info_pkg_setup
+ fi
+}
+
+src_configure() {
+ local backends="gdkpixbuf"
+ use archive && backends+=",archive,archive_cbx"
+ use ffmpeg || use libav && backends+=",libav"
+ use imagemagick && backends+=",wand"
+ use pdf && backends+=",poppler"
+ use postscript && backends+=",spectre"
+ use webp && backends+=",webp"
+
+ doecho ./configure \
+ --backends-build=shared \
+ --backends=${backends} \
+ --prefix="${EPREFIX}/usr" \
+ --libdir="${EPREFIX}/usr/$(get_libdir)" \
+ --destdir="${ED}"
+}
+
+src_compile() {
+ tc-export CC
+ emake VERBOSE=1 CFLAGS="${CFLAGS}"
+}
+
+pkg_postinst() {
+ xdg_desktop_database_update
+}
+
+pkg_postrm() {
+ xdg_desktop_database_update
+}
diff --git a/media-gfx/pqstego/Manifest b/media-gfx/pqstego/Manifest
new file mode 100644
index 000000000000..970d18f29b56
--- /dev/null
+++ b/media-gfx/pqstego/Manifest
@@ -0,0 +1,5 @@
+DIST pqstego-0.0.1.tar.gz 156170 SHA256 29117bfce9b6d88ab8d9599f95edde62c80a00aafde3c74daa52c81f3f62a216 SHA512 cc29f745ed6f4af27f491a2b97cc614b4bddd88bbfda9d2a2737c8c6a4a013e0ea6cb125cf579b3a792c060f8ed4c176af61a2ea0a309108176b463dd002f999 WHIRLPOOL fcac9e254ef8a2e800bafb7ed5b3627301bcd5fbaa8f4b6f1d1082de4f3de33b1ceff2f61e078c9603cd7ebcaed2a6813acfe35b9f46c18415c7d1dac6f5d582
+EBUILD pqstego-0.0.1.ebuild 532 SHA256 5589f083bea814d6625f32637b29ece04c463f694b428c9f048e537effaf7ed5 SHA512 4ea2f1280a8f6ccff07d6528b980f7bebc96e67b12c3e89ba86251ed6c6035da9d2452d2a4d4fe52e428e6b1794fb02ac0165cce191d6d4ab2135402154abecb WHIRLPOOL b1170d38bd409668f97583518fee4a9560e0077053201aa25649dfbf8c677d96ea04dd695023dfd233fa67e368002882af7a1d9a01804a3cec6fb82aedd3d492
+MISC ChangeLog 2540 SHA256 aa7e73895821a1cd954e47e2ef749686130f11cd89a869a45b7713c364c701d2 SHA512 f9eb331053a056a5589db60e00c721cf1d08781d1fcb66c7d8e85ccacca564c27f5048ac7974fff1904a8ad9f26e1dd4f6a32ac8bbdffc89bae09185ca7faddb WHIRLPOOL f2550c3497995b1456f8d8ff8501441e6f5fbb00528c598a8a18e5a51e319017f79b874ea1a6d904617ecc3143ac3cc932dfd82d4e332c7c34af2018ad16b19d
+MISC ChangeLog-2015 468 SHA256 19fd419a03a365c7827910e54d981c84a95885f60216d6ad6c9605c494063e25 SHA512 00a4c517fda5bcb8f25b21d2433d36a95469d0d2f6290478a36316e29cc258e49b8be13bfd047fa6d2419f3b9f4a12dda0ea17beb0a258d5878765e799dc91cc WHIRLPOOL 186cac557d8f1339472ba087dacfb399794406b54c9330527eaa3dcc5d5cefc50e974b828039bc950562a04b83c53e08a347af3dbeadc6b9cbe4a2053cf8fb74
+MISC metadata.xml 346 SHA256 2d4641b77e6cb741c3960e1224843d9ff35e9d57d03f485a0e7860cbc689284d SHA512 f49877aff2dc6429963ac5d9bce07797df793bbd89ef82cbb745d13fa2aed484a0758b6209f554fe3f21b3bde84827c6125cdca6fdaa5d6b6b1a4764c5d34d8e WHIRLPOOL b83c4a5df24a6bd9187d9e3ee9c2567ddce1573d2218e8d05801c3fc89f2305bd9bcc480d9bbe8ac8c7c952ed73f455f6a53899006648709fefd25c9e3c6c318
diff --git a/media-gfx/pqstego/metadata.xml b/media-gfx/pqstego/metadata.xml
new file mode 100644
index 000000000000..0dc38e231139
--- /dev/null
+++ b/media-gfx/pqstego/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="sourceforge">pqstego</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/media-gfx/pqstego/pqstego-0.0.1.ebuild b/media-gfx/pqstego/pqstego-0.0.1.ebuild
new file mode 100644
index 000000000000..f36a1ae72c7f
--- /dev/null
+++ b/media-gfx/pqstego/pqstego-0.0.1.ebuild
@@ -0,0 +1,26 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=2
+
+DESCRIPTION="Tools for Perturbed Quantization Steganography"
+HOMEPAGE="https://sourceforge.net/projects/pqstego/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="media-libs/libpqstego
+ virtual/jpeg:0"
+
+src_configure() {
+ econf \
+ --disable-dependency-tracking
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die
+ dodoc AUTHORS CHANGES README
+}
diff --git a/media-gfx/printrun/Manifest b/media-gfx/printrun/Manifest
new file mode 100644
index 000000000000..5c6c68806504
--- /dev/null
+++ b/media-gfx/printrun/Manifest
@@ -0,0 +1,9 @@
+AUX printrun-gtk3.patch 21526 SHA256 f7455f1c1d164830cce9284748ed55349224ac56cf14eda02c0e2ce2ed8df093 SHA512 78b30b491891633da8efa5d515e7ec5d0f95fc369d1a707a421f72da9ab34de0b9ee188753a4baef1675f2bb278b0e2858f8feec1fc95ca835c7872550248cd5 WHIRLPOOL 33b59f53a096213dab6b6f8074e05a86b4e49ef2805a79676334917263e14de7307bb3bd42cc36854d2540f95e935825836bd6464005a6784a86f18fe0081631
+AUX printrun-x11.patch 1075 SHA256 422a242b18869655201956c4d35357883d6d1da931e97855e7f1a9072b7da316 SHA512 8e3924fe0b77e361bedc52cc91a827abb0f72c45df42d243e3762e0759b59715cf0687b4ea1991a8567b5bdcb5e12f3c3b218d1cec2dfc434f81a1c479689203 WHIRLPOOL 16d806a611963dff4a7a74d7a36e33b65457dc17c9d2e15b70acbbb03f0908f298f1a3ddbbce2a766f63b000dcef4aa2560a2ab8fc3ef83645bcbe4642017f90
+DIST printrun-20150310.tar.gz 906153 SHA256 6edaa533df5a590f55039b81e47f61881d2a47de07c3391d53bfb6d847f46d2e SHA512 359a4a6128b274a6709fb5c35a2d6c510bb57e010cfb12ddefa39cdb371f2141e2cab394be7d9d2f1dbc0175cc24deba61941d73b6c19fb299083afbf1141f1e WHIRLPOOL 38d3ead2be8fb7f802d73956bda5e83c99a902c2682f5c48f74d92e8c5e30b351b06821d6178d3b44722a10982d7a79c471fb3a27d2f313bfb647e9a241e92e1
+EBUILD printrun-20150310-r1.ebuild 756 SHA256 063b5d1df28956571b09c2895be32c6b84bc25d64ee483cf455dadc78b57f5b2 SHA512 c002e13d5d6ba4018135ccf0f50745246ea5e4e747d43b4a64a4b10c71551cee9ff263b89e68d87ae42349bb0ef71da7f27b89b823204f73c3da9f4d4a814626 WHIRLPOOL d95fc0e12677a85d6e45b56ff07ca3c2e6f73eb7c6dd13dc13af20b40a660eaf784101c3e02b55242f18e2cd8c7c0b8a384ef629093dcefd98d933400a9547b8
+EBUILD printrun-20150310-r2.ebuild 941 SHA256 4af5c47845e6c4ad65434d396117305bf8748c8e81ad2287eabcb520e52b151e SHA512 12c118df5c164b9c360589c174e3f4332104995becfa544e8639688bf64b8f9fc639a39145a448dd1238f821ee6bf7dea75a0c78c733c2e84a9ec6a161722035 WHIRLPOOL 22e71e0316a81428f13459be28e768105e45fff6eb9c35489200152ad77f19e372ef50d102473353e67e6bd59f3117f19caed0361ffb9e056de565de4d003401
+EBUILD printrun-99999999.ebuild 817 SHA256 73e67e90cbfb9b2da8973c63ec006f25ca4ffaf88ca5ffbf993e1d6baaccb749 SHA512 d8454c7f5b0431dfc6ff8cb79c6ecbea46b600f087bcc3f096c73f32b93cef0be5db092290ca5445ed920d54c235fcc0c22d00285cd815c4f4cf017f27dbd0df WHIRLPOOL b9a5582e6fe70470d670b27a67437cc6bf509390cb3807dbd7773d2622069d2fdf258ccdbfad540ae6414bf4b65358a0e4be691c06b5f22008ff4b14617279d0
+MISC ChangeLog 2480 SHA256 c7d8c9c2196f873ec15cf0115085deeafd64c8cc494ce020a132f0e3a28d51e4 SHA512 4bdb1bf643143824e227944cde1b744ae7394afec88807a95d373d6d2b7aace6daf1eb5df0f5eaad910e1c10460aa6f5612d17474ae1496dc61596fe730d6b57 WHIRLPOOL 7150a193a716c389e911c09925666fb5729201a32001c5b6979e169ac295b5f47c62f53b51fc087542052b19772aea344c8247a57ee9628efb54aebb651c03f6
+MISC ChangeLog-2015 898 SHA256 fc1eef3fee7aec70b788120a05b4e3b34bdf1b3a723694a1fbdd93327e23d6ea SHA512 3b6bec737409544bfc5401f4d80c65e08bed0095d093151a6f997edf6ff0909ccc1c3dd186add3e01a7331312dcec5256e56616c3eda79f3ceafd04c1987555c WHIRLPOOL 60101e3ad3ab8ee5ae14aa9f036a48f597119079701dbe833710a24531ca5f13e355d4d8a79e7227134b9522859380d4f29d4bfbf85c29502267b72fe1a30350
+MISC metadata.xml 728 SHA256 011165ec556783a7bae59e3c3b7081c9ee001746de182eb49bc5fc339c234226 SHA512 37128e13862a70950c89d42e8d7bdfdd7eee598890f9c80b7c60a903ac0466b2e177546d5a5cd23883aaef9128bdae5428172b39b6cb65f4132fe2f9d3880723 WHIRLPOOL 3dc8e99ccb77dbcf71dd7594b03181c9f28863d0f42507bdc37a9106694c5dc1a1fe3725f3fe1ad4d11886bff2111fde776b4eada456032045e2f7fba021cf70
diff --git a/media-gfx/printrun/files/printrun-gtk3.patch b/media-gfx/printrun/files/printrun-gtk3.patch
new file mode 100644
index 000000000000..a31bcd15580d
--- /dev/null
+++ b/media-gfx/printrun/files/printrun-gtk3.patch
@@ -0,0 +1,291 @@
+diff -up a/printrun/gui/controls.py.gtk3 a/printrun/gui/controls.py
+--- a/printrun/gui/controls.py.gtk3 2015-03-09 07:22:14.000000000 -0400
++++ a/printrun/gui/controls.py 2015-08-11 23:43:27.444624125 -0400
+@@ -136,7 +136,7 @@ def add_extra_controls(self, root, paren
+ if root.settings.last_temperature not in map(float, root.temps.values()):
+ htemp_choices = [str(root.settings.last_temperature)] + htemp_choices
+ root.htemp = wx.ComboBox(parentpanel, -1, choices = htemp_choices,
+- style = wx.CB_DROPDOWN, size = (80, -1))
++ style = wx.CB_DROPDOWN, size = (115, -1))
+ root.htemp.SetToolTip(wx.ToolTip(_("Select Temperature for Hotend")))
+ root.htemp.Bind(wx.EVT_COMBOBOX, root.htemp_change)
+
+@@ -156,7 +156,7 @@ def add_extra_controls(self, root, paren
+ if root.settings.last_bed_temperature not in map(float, root.bedtemps.values()):
+ btemp_choices = [str(root.settings.last_bed_temperature)] + btemp_choices
+ root.btemp = wx.ComboBox(parentpanel, -1, choices = btemp_choices,
+- style = wx.CB_DROPDOWN, size = (80, -1))
++ style = wx.CB_DROPDOWN, size = (115, -1))
+ root.btemp.SetToolTip(wx.ToolTip(_("Select Temperature for Heated Bed")))
+ root.btemp.Bind(wx.EVT_COMBOBOX, root.btemp_change)
+ add("btemp_val", root.btemp)
+@@ -192,7 +192,11 @@ def add_extra_controls(self, root, paren
+ root.speed_slider = wx.Slider(speedpanel, -1, 100, 1, 300)
+ speedsizer.Add(root.speed_slider, 1, flag = wx.EXPAND)
+
+- root.speed_spin = FloatSpin(speedpanel, -1, value = 100, min_val = 1, max_val = 300, digits = 0, style = wx.ALIGN_LEFT, size = (80, -1))
++ if wx.VERSION < (3, 0):
++ root.speed_spin = FloatSpin(speedpanel, -1, value = 100, min_val = 1, max_val = 300, digits = 0, style = wx.ALIGN_LEFT, size = (80, -1))
++ else:
++ root.speed_spin = wx.SpinCtrlDouble(speedpanel, -1, initial = 100, min = 1, max = 300, style = wx.ALIGN_LEFT, size = (115, -1))
++ root.speed_spin.SetDigits(0)
+ speedsizer.Add(root.speed_spin, 0, flag = wx.ALIGN_CENTER_VERTICAL)
+ root.speed_label = wx.StaticText(speedpanel, -1, _("%"))
+ speedsizer.Add(root.speed_label, flag = wx.ALIGN_CENTER_VERTICAL | wx.ALIGN_RIGHT)
+@@ -210,7 +214,10 @@ def add_extra_controls(self, root, paren
+ value = root.speed_spin.GetValue()
+ root.speed_setbtn.SetBackgroundColour("red")
+ root.speed_slider.SetValue(value)
+- root.speed_spin.Bind(wx.EVT_SPINCTRL, speedslider_spin)
++ if wx.VERSION < (3, 0):
++ root.speed_spin.Bind(wx.EVT_SPINCTRL, speedslider_spin)
++ else:
++ root.speed_spin.Bind(wx.EVT_SPINCTRLDOUBLE, speedslider_spin)
+
+ def speedslider_scroll(event):
+ value = root.speed_slider.GetValue()
+@@ -269,10 +276,15 @@ def add_extra_controls(self, root, paren
+ esettingspanel = root.newPanel(parentpanel)
+ esettingssizer = wx.GridBagSizer()
+ esettingssizer.SetEmptyCellSize((0, 0))
+- root.edist = FloatSpin(esettingspanel, -1, value = root.settings.last_extrusion, min_val = 0, max_val = 1000, size = (90, -1), digits = 1)
++ if wx.VERSION < (3, 0):
++ root.edist = FloatSpin(esettingspanel, -1, value = root.settings.last_extrusion, min_val = 0, max_val = 1000, size = (90, -1), digits = 1)
++ root.edist.Bind(wx.EVT_SPINCTRL, root.setfeeds)
++ else:
++ root.edist = wx.SpinCtrlDouble(esettingspanel, -1, initial = root.settings.last_extrusion, min = 0, max = 1000, size = (135, -1))
++ root.edist.SetDigits(1)
++ root.edist.Bind(wx.EVT_SPINCTRLDOUBLE, root.setfeeds)
+ root.edist.SetBackgroundColour((225, 200, 200))
+ root.edist.SetForegroundColour("black")
+- root.edist.Bind(wx.EVT_SPINCTRL, root.setfeeds)
+ root.edist.Bind(wx.EVT_TEXT, root.setfeeds)
+ add("edist_label", wx.StaticText(esettingspanel, -1, _("Length:")), container = esettingssizer, flag = wx.ALIGN_CENTER_VERTICAL | wx.ALIGN_LEFT | wx.RIGHT | wx.LEFT, border = 5)
+ add("edist_val", root.edist, container = esettingssizer, flag = wx.ALIGN_CENTER | wx.RIGHT, border = 5)
+@@ -280,11 +292,16 @@ def add_extra_controls(self, root, paren
+ add("edist_unit", wx.StaticText(esettingspanel, -1, unit_label), container = esettingssizer, flag = wx.ALIGN_CENTER | wx.RIGHT, border = 5)
+ root.edist.SetToolTip(wx.ToolTip(_("Amount to Extrude or Retract (mm)")))
+ if not mini_mode:
+- root.efeedc = FloatSpin(esettingspanel, -1, value = root.settings.e_feedrate, min_val = 0, max_val = 50000, size = (90, -1), digits = 1)
++ if wx.VERSION < (3, 0):
++ root.efeedc = FloatSpin(esettingspanel, -1, value = root.settings.e_feedrate, min_val = 0, max_val = 50000, size = (90, -1), digits = 1)
++ root.efeedc.Bind(wx.EVT_SPINCTRL, root.setfeeds)
++ else:
++ root.efeedc = wx.SpinCtrlDouble(esettingspanel, -1, initial = root.settings.e_feedrate, min = 0, max = 50000, size = (145, -1))
++ root.efeedc.SetDigits(1)
++ root.efeedc.Bind(wx.EVT_SPINCTRLDOUBLE, root.setfeeds)
+ root.efeedc.SetToolTip(wx.ToolTip(_("Extrude / Retract speed (mm/min)")))
+ root.efeedc.SetBackgroundColour((225, 200, 200))
+ root.efeedc.SetForegroundColour("black")
+- root.efeedc.Bind(wx.EVT_SPINCTRL, root.setfeeds)
+ root.efeedc.Bind(wx.EVT_TEXT, root.setfeeds)
+ add("efeed_val", root.efeedc, container = esettingssizer, flag = wx.ALIGN_CENTER | wx.RIGHT, border = 5)
+ add("efeed_label", wx.StaticText(esettingspanel, -1, _("Speed:")), container = esettingssizer, flag = wx.ALIGN_LEFT)
+@@ -379,12 +396,12 @@ class ControlsSizer(wx.GridBagSizer):
+ else:
+ self.extra_buttons[key] = btn
+
+- root.xyfeedc = wx.SpinCtrl(lltspanel, -1, str(root.settings.xy_feedrate), min = 0, max = 50000, size = (97, -1))
++ root.xyfeedc = wx.SpinCtrl(lltspanel, -1, str(root.settings.xy_feedrate), min = 0, max = 50000, size = (130, -1))
+ root.xyfeedc.SetToolTip(wx.ToolTip(_("Set Maximum Speed for X & Y axes (mm/min)")))
+ llts.Add(wx.StaticText(lltspanel, -1, _("XY:")), flag = wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL)
+ llts.Add(root.xyfeedc)
+ llts.Add(wx.StaticText(lltspanel, -1, _("mm/min Z:")), flag = wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL)
+- root.zfeedc = wx.SpinCtrl(lltspanel, -1, str(root.settings.z_feedrate), min = 0, max = 50000, size = (90, -1))
++ root.zfeedc = wx.SpinCtrl(lltspanel, -1, str(root.settings.z_feedrate), min = 0, max = 50000, size = (130, -1))
+ root.zfeedc.SetToolTip(wx.ToolTip(_("Set Maximum Speed for Z axis (mm/min)")))
+ llts.Add(root.zfeedc,)
+
+diff -up a/printrun/gui/toolbar.py.gtk3 a/printrun/gui/toolbar.py
+--- a/printrun/gui/toolbar.py.gtk3 2015-03-09 07:22:14.000000000 -0400
++++ a/printrun/gui/toolbar.py 2015-06-29 23:43:30.700768952 -0400
+@@ -42,7 +42,7 @@ def MainToolbar(root, parentpanel = None
+ root.baud = wx.ComboBox(parentpanel, -1,
+ choices = ["2400", "9600", "19200", "38400",
+ "57600", "115200", "250000"],
+- style = wx.CB_DROPDOWN, size = (100, -1))
++ style = wx.CB_DROPDOWN, size = (110, -1))
+ root.baud.SetToolTip(wx.ToolTip(_("Select Baud rate for printer communication")))
+ try:
+ root.baud.SetValue("115200")
+diff -up a/printrun/projectlayer.py.gtk3 a/printrun/projectlayer.py
+--- a/printrun/projectlayer.py.gtk3 2015-03-09 07:22:14.000000000 -0400
++++ a/printrun/projectlayer.py 2015-08-11 23:24:05.729359412 -0400
+@@ -278,38 +278,48 @@ class SettingsFrame(wx.Frame):
+ # Left Column
+
+ fieldsizer.Add(wx.StaticText(self.panel, -1, "Layer (mm):"), pos = (0, 0), flag = wx.ALIGN_CENTER_VERTICAL)
+- self.thickness = wx.TextCtrl(self.panel, -1, str(self._get_setting("project_layer", "0.1")), size = (80, -1))
++ self.thickness = wx.TextCtrl(self.panel, -1, str(self._get_setting("project_layer", "0.1")), size = (125, -1))
+ self.thickness.Bind(wx.EVT_TEXT, self.update_thickness)
+ self.thickness.SetHelpText("The thickness of each slice. Should match the value used to slice the model. SVG files update this value automatically, 3dlp.zip files have to be manually entered.")
+ fieldsizer.Add(self.thickness, pos = (0, 1))
+
+ fieldsizer.Add(wx.StaticText(self.panel, -1, "Exposure (s):"), pos = (1, 0), flag = wx.ALIGN_CENTER_VERTICAL)
+- self.interval = wx.TextCtrl(self.panel, -1, str(self._get_setting("project_interval", "0.5")), size = (80, -1))
++ self.interval = wx.TextCtrl(self.panel, -1, str(self._get_setting("project_interval", "0.5")), size = (125, -1))
+ self.interval.Bind(wx.EVT_TEXT, self.update_interval)
+ self.interval.SetHelpText("How long each slice should be displayed.")
+ fieldsizer.Add(self.interval, pos = (1, 1))
+
+ fieldsizer.Add(wx.StaticText(self.panel, -1, "Blank (s):"), pos = (2, 0), flag = wx.ALIGN_CENTER_VERTICAL)
+- self.pause = wx.TextCtrl(self.panel, -1, str(self._get_setting("project_pause", "0.5")), size = (80, -1))
++ self.pause = wx.TextCtrl(self.panel, -1, str(self._get_setting("project_pause", "0.5")), size = (125, -1))
+ self.pause.Bind(wx.EVT_TEXT, self.update_pause)
+ self.pause.SetHelpText("The pause length between slices. This should take into account any movement of the Z axis, plus time to prepare the resin surface (sliding, tilting, sweeping, etc).")
+ fieldsizer.Add(self.pause, pos = (2, 1))
+
+ fieldsizer.Add(wx.StaticText(self.panel, -1, "Scale:"), pos = (3, 0), flag = wx.ALIGN_CENTER_VERTICAL)
+- self.scale = floatspin.FloatSpin(self.panel, -1, value = self._get_setting('project_scale', 1.0), increment = 0.1, digits = 3, size = (80, -1))
+- self.scale.Bind(floatspin.EVT_FLOATSPIN, self.update_scale)
++ if wx.VERSION < (3, 0):
++ self.scale = floatspin.FloatSpin(self.panel, -1, value = self._get_setting('project_scale', 1.0), increment = 0.1, digits = 3, size = (80, -1))
++ self.scale.Bind(floatspin.EVT_FLOATSPIN, self.update_scale)
++ else:
++ self.scale = wx.SpinCtrlDouble(self.panel, -1, initial = self._get_setting('project_scale', 1.0), inc = 0.1, size = (125, -1))
++ self.scale.SetDigits(3)
++ self.scale.Bind(wx.EVT_SPINCTRLDOUBLE, self.update_scale)
+ self.scale.SetHelpText("The additional scaling of each slice.")
+ fieldsizer.Add(self.scale, pos = (3, 1))
+
+ fieldsizer.Add(wx.StaticText(self.panel, -1, "Direction:"), pos = (4, 0), flag = wx.ALIGN_CENTER_VERTICAL)
+- self.direction = wx.ComboBox(self.panel, -1, choices = ["Top Down", "Bottom Up"], value = self._get_setting('project_direction', "Top Down"), size = (80, -1))
++ self.direction = wx.ComboBox(self.panel, -1, choices = ["Top Down", "Bottom Up"], value = self._get_setting('project_direction', "Top Down"), size = (125, -1))
+ self.direction.Bind(wx.EVT_COMBOBOX, self.update_direction)
+ self.direction.SetHelpText("The direction the Z axis should move. Top Down is where the projector is above the model, Bottom up is where the projector is below the model.")
+ fieldsizer.Add(self.direction, pos = (4, 1), flag = wx.ALIGN_CENTER_VERTICAL)
+
+ fieldsizer.Add(wx.StaticText(self.panel, -1, "Overshoot (mm):"), pos = (5, 0), flag = wx.ALIGN_CENTER_VERTICAL)
+- self.overshoot = floatspin.FloatSpin(self.panel, -1, value = self._get_setting('project_overshoot', 3.0), increment = 0.1, digits = 1, min_val = 0, size = (80, -1))
+- self.overshoot.Bind(floatspin.EVT_FLOATSPIN, self.update_overshoot)
++ if wx.VERSION < (3, 0):
++ self.overshoot = floatspin.FloatSpin(self.panel, -1, value = self._get_setting('project_overshoot', 3.0), increment = 0.1, digits = 1, min_val = 0, size = (80, -1))
++ self.overshoot.Bind(floatspin.EVT_FLOATSPIN, self.update_overshoot)
++ else:
++ self.overshoot = wx.SpinCtrlDouble(self.panel, -1, initial = self._get_setting('project_overshoot', 3.0), inc = 0.1, min = 0, size = (125, -1))
++ self.overshoot.SetDigits(1)
++ self.overshoot.Bind(wx.EVT_SPINCTRLDOUBLE, self.update_overshoot)
+ self.overshoot.SetHelpText("How far the axis should move beyond the next slice position for each slice. For Top Down printers this would dunk the model under the resi and then return. For Bottom Up printers this would raise the base away from the vat and then return.")
+ fieldsizer.Add(self.overshoot, pos = (5, 1))
+
+@@ -329,38 +339,53 @@ class SettingsFrame(wx.Frame):
+
+ fieldsizer.Add(wx.StaticText(self.panel, -1, "X (px):"), pos = (0, 2), flag = wx.ALIGN_CENTER_VERTICAL)
+ projectX = int(math.floor(float(self._get_setting("project_x", 1920))))
+- self.X = wx.SpinCtrl(self.panel, -1, str(projectX), max = 999999, size = (80, -1))
++ self.X = wx.SpinCtrl(self.panel, -1, str(projectX), max = 999999, size = (125, -1))
+ self.X.Bind(wx.EVT_SPINCTRL, self.update_resolution)
+ self.X.SetHelpText("The projector resolution in the X axis.")
+ fieldsizer.Add(self.X, pos = (0, 3))
+
+ fieldsizer.Add(wx.StaticText(self.panel, -1, "Y (px):"), pos = (1, 2), flag = wx.ALIGN_CENTER_VERTICAL)
+ projectY = int(math.floor(float(self._get_setting("project_y", 1200))))
+- self.Y = wx.SpinCtrl(self.panel, -1, str(projectY), max = 999999, size = (80, -1))
++ self.Y = wx.SpinCtrl(self.panel, -1, str(projectY), max = 999999, size = (125, -1))
+ self.Y.Bind(wx.EVT_SPINCTRL, self.update_resolution)
+ self.Y.SetHelpText("The projector resolution in the Y axis.")
+ fieldsizer.Add(self.Y, pos = (1, 3))
+
+ fieldsizer.Add(wx.StaticText(self.panel, -1, "OffsetX (mm):"), pos = (2, 2), flag = wx.ALIGN_CENTER_VERTICAL)
+- self.offset_X = floatspin.FloatSpin(self.panel, -1, value = self._get_setting("project_offset_x", 0.0), increment = 1, digits = 1, size = (80, -1))
+- self.offset_X.Bind(floatspin.EVT_FLOATSPIN, self.update_offset)
++ if wx.VERSION < (3, 0):
++ self.offset_X = floatspin.FloatSpin(self.panel, -1, value = self._get_setting("project_offset_x", 0.0), increment = 1, digits = 1, size = (80, -1))
++ self.offset_X.Bind(floatspin.EVT_FLOATSPIN, self.update_offset)
++ else:
++ self.offset_X = wx.SpinCtrlDouble(self.panel, -1, initial = self._get_setting("project_offset_x", 0.0), inc = 1, size = (125, -1))
++ self.offset_X.SetDigits(1)
++ self.offset_X.Bind(wx.EVT_SPINCTRLDOUBLE, self.update_offset)
+ self.offset_X.SetHelpText("How far the slice should be offset from the edge in the X axis.")
+ fieldsizer.Add(self.offset_X, pos = (2, 3))
+
+ fieldsizer.Add(wx.StaticText(self.panel, -1, "OffsetY (mm):"), pos = (3, 2), flag = wx.ALIGN_CENTER_VERTICAL)
+- self.offset_Y = floatspin.FloatSpin(self.panel, -1, value = self._get_setting("project_offset_y", 0.0), increment = 1, digits = 1, size = (80, -1))
+- self.offset_Y.Bind(floatspin.EVT_FLOATSPIN, self.update_offset)
++ if wx.VERSION < (3, 0):
++ self.offset_Y = floatspin.FloatSpin(self.panel, -1, value = self._get_setting("project_offset_y", 0.0), increment = 1, digits = 1, size = (80, -1))
++ self.offset_Y.Bind(floatspin.EVT_FLOATSPIN, self.update_offset)
++ else:
++ self.offset_Y = wx.SpinCtrlDouble(self.panel, -1, initial = self._get_setting("project_offset_y", 0.0), inc = 1, size = (125, -1))
++ self.offset_Y.SetDigits(1)
++ self.offset_Y.Bind(wx.EVT_SPINCTRLDOUBLE, self.update_offset)
+ self.offset_Y.SetHelpText("How far the slice should be offset from the edge in the Y axis.")
+ fieldsizer.Add(self.offset_Y, pos = (3, 3))
+
+ fieldsizer.Add(wx.StaticText(self.panel, -1, "ProjectedX (mm):"), pos = (4, 2), flag = wx.ALIGN_CENTER_VERTICAL)
+- self.projected_X_mm = floatspin.FloatSpin(self.panel, -1, value = self._get_setting("project_projected_x", 505.0), increment = 1, digits = 1, size = (80, -1))
+- self.projected_X_mm.Bind(floatspin.EVT_FLOATSPIN, self.update_projected_Xmm)
++ if wx.VERSION < (3, 0):
++ self.projected_X_mm = floatspin.FloatSpin(self.panel, -1, value = self._get_setting("project_projected_x", 505.0), increment = 1, digits = 1, size = (80, -1))
++ self.projected_X_mm.Bind(floatspin.EVT_FLOATSPIN, self.update_projected_Xmm)
++ else:
++ self.projected_X_mm = wx.SpinCtrlDouble(self.panel, -1, initial = self._get_setting("project_projected_x", 505.0), inc = 1, size = (125, -1))
++ self.projected_X_mm.SetDigits(1)
++ self.projected_X_mm.Bind(wx.EVT_SPINCTRLDOUBLE, self.update_projected_Xmm)
+ self.projected_X_mm.SetHelpText("The actual width of the entire projected image. Use the Calibrate grid to show the full size of the projected image, and measure the width at the same level where the slice will be projected onto the resin.")
+ fieldsizer.Add(self.projected_X_mm, pos = (4, 3))
+
+ fieldsizer.Add(wx.StaticText(self.panel, -1, "Z Axis Speed (mm/min):"), pos = (5, 2), flag = wx.ALIGN_CENTER_VERTICAL)
+- self.z_axis_rate = wx.SpinCtrl(self.panel, -1, str(self._get_setting("project_z_axis_rate", 200)), max = 9999, size = (80, -1))
++ self.z_axis_rate = wx.SpinCtrl(self.panel, -1, str(self._get_setting("project_z_axis_rate", 200)), max = 9999, size = (125, -1))
+ self.z_axis_rate.Bind(wx.EVT_SPINCTRL, self.update_z_axis_rate)
+ self.z_axis_rate.SetHelpText("Speed of the Z axis in mm/minute. Take into account that slower rates may require a longer pause value.")
+ fieldsizer.Add(self.z_axis_rate, pos = (5, 3))
+@@ -394,7 +419,11 @@ class SettingsFrame(wx.Frame):
+ first_layer_boxer.Add(self.first_layer, flag = wx.ALIGN_CENTER_VERTICAL)
+
+ first_layer_boxer.Add(wx.StaticText(self.panel, -1, " (s):"), flag = wx.ALIGN_CENTER_VERTICAL)
+- self.show_first_layer_timer = floatspin.FloatSpin(self.panel, -1, value=-1, increment = 1, digits = 1, size = (55, -1))
++ if wx.VERSION < (3, 0):
++ self.show_first_layer_timer = floatspin.FloatSpin(self.panel, -1, value=-1, increment = 1, digits = 1, size = (55, -1))
++ else:
++ self.show_first_layer_timer = wx.SpinCtrlDouble(self.panel, -1, initial = -1, inc = 1, size = (125, -1))
++ self.show_first_layer_timer.SetDigits(1)
+ self.show_first_layer_timer.SetHelpText("How long to display the first layer for. -1 = unlimited.")
+ first_layer_boxer.Add(self.show_first_layer_timer, flag = wx.ALIGN_CENTER_VERTICAL)
+ displaysizer.Add(first_layer_boxer, pos = (0, 6), flag = wx.ALIGN_CENTER_VERTICAL)
+diff -up a/printrun/settings.py.gtk3 a/printrun/settings.py
+--- a/printrun/settings.py.gtk3 2015-06-19 05:47:24.000000000 -0400
++++ a/printrun/settings.py 2015-08-11 23:32:05.603437536 -0400
+@@ -145,7 +145,12 @@ class SpinSetting(wxSetting):
+
+ def get_specific_widget(self, parent):
+ from wx.lib.agw.floatspin import FloatSpin
+- self.widget = FloatSpin(parent, -1, min_val = self.min, max_val = self.max, digits = 0)
++ import wx
++ if wx.VERSION < (3, 0):
++ self.widget = FloatSpin(parent, -1, min_val = self.min, max_val = self.max, digits = 0)
++ else:
++ self.widget = wx.SpinCtrlDouble(parent, -1, min = self.min, max = self.max)
++ self.widget.SetDigits(0)
+ self.widget.SetValue(self.value)
+ orig = self.widget.GetValue
+ self.widget.GetValue = lambda: int(orig())
+@@ -155,7 +160,12 @@ class FloatSpinSetting(SpinSetting):
+
+ def get_specific_widget(self, parent):
+ from wx.lib.agw.floatspin import FloatSpin
+- self.widget = FloatSpin(parent, -1, value = self.value, min_val = self.min, max_val = self.max, increment = self.increment, digits = 2)
++ import wx
++ if wx.VERSION < (3, 0):
++ self.widget = FloatSpin(parent, -1, value = self.value, min_val = self.min, max_val = self.max, increment = self.increment, digits = 2)
++ else:
++ self.widget = wx.SpinCtrlDouble(parent, -1, initial = self.value, min = self.min, max = self.max, inc = self.increment)
++ self.widget.SetDigits(2)
+ return self.widget
+
+ class BooleanSetting(wxSetting):
+@@ -216,7 +226,12 @@ class BuildDimensionsSetting(wxSetting):
+ import wx
+ build_dimensions = parse_build_dimensions(self.value)
+ self.widgets = []
+- w = lambda val, m, M: self.widgets.append(FloatSpin(parent, -1, value = val, min_val = m, max_val = M, digits = 2))
++ def w(val, m, M):
++ if wx.VERSION < (3, 0):
++ self.widgets.append(FloatSpin(parent, -1, value = val, min_val = m, max_val = M, digits = 2))
++ else:
++ self.widgets.append(wx.SpinCtrlDouble(parent, -1, initial = val, min = m, max = M))
++ self.widgets[-1].SetDigits(2)
+ addlabel = lambda name, pos: self.widget.Add(wx.StaticText(parent, -1, name), pos = pos, flag = wx.ALIGN_CENTER_VERTICAL | wx.RIGHT, border = 5)
+ addwidget = lambda *pos: self.widget.Add(self.widgets[-1], pos = pos, flag = wx.RIGHT, border = 5)
+ self.widget = wx.GridBagSizer()
diff --git a/media-gfx/printrun/files/printrun-x11.patch b/media-gfx/printrun/files/printrun-x11.patch
new file mode 100644
index 000000000000..dd9597a126e1
--- /dev/null
+++ b/media-gfx/printrun/files/printrun-x11.patch
@@ -0,0 +1,39 @@
+diff --git a/plater.py b/plater.py
+index 469eeb2..bfcc975 100755
+--- a/plater.py
++++ b/plater.py
+@@ -15,12 +15,14 @@
+ # You should have received a copy of the GNU General Public License
+ # along with Printrun. If not, see <http://www.gnu.org/licenses/>.
+
++import os
+ import sys
+ import wx
+
+ from printrun.stlplater import StlPlater
+
+ if __name__ == '__main__':
++ os.environ['GDK_BACKEND'] = 'x11'
+ app = wx.App(False)
+ main = StlPlater(filenames = sys.argv[1:])
+ main.Show()
+diff --git a/pronterface.py b/pronterface.py
+index dbe295a..4152288 100755
+--- a/pronterface.py
++++ b/pronterface.py
+@@ -15,6 +15,7 @@
+ # You should have received a copy of the GNU General Public License
+ # along with Printrun. If not, see <http://www.gnu.org/licenses/>.
+
++import os
+ import sys
+
+ try:
+@@ -32,6 +33,7 @@ not yet available for python3. You should try running with python2 instead.""")
+ from printrun.pronterface import PronterApp
+
+ if __name__ == '__main__':
++ os.environ['GDK_BACKEND'] = 'x11'
+ app = PronterApp(False)
+ try:
+ app.MainLoop()
diff --git a/media-gfx/printrun/metadata.xml b/media-gfx/printrun/metadata.xml
new file mode 100644
index 000000000000..0611e6680367
--- /dev/null
+++ b/media-gfx/printrun/metadata.xml
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>amynka@gentoo.org</email>
+ </maintainer>
+ <maintainer type="project">
+ <email>3dprint@gentoo.org</email>
+ <name>Gentoo 3D print</name>
+ </maintainer>
+ <longdescription lang="en">
+ Printrun is a set of G-code sending applications for RepRap.
+ It consists of printcore (dumb G-code sender), pronsole (featured command line
+ G-code sender), pronterface (featured G-code sender with graphical user
+ interface), and a small collection of helpful scripts.
+</longdescription>
+ <upstream>
+ <remote-id type="github">kliment/Printrun</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/media-gfx/printrun/printrun-20150310-r1.ebuild b/media-gfx/printrun/printrun-20150310-r1.ebuild
new file mode 100644
index 000000000000..3185dcf2a6d7
--- /dev/null
+++ b/media-gfx/printrun/printrun-20150310-r1.ebuild
@@ -0,0 +1,34 @@
+# 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
+
+DESCRIPTION="GUI interface for 3D printing on RepRap and other printers"
+HOMEPAGE="https://github.com/kliment/Printrun"
+SRC_URI="https://github.com/kliment/Printrun/archive/${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="dev-python/pyserial
+ dev-python/wxpython:*
+ dev-python/pyglet
+ dev-python/dbus-python
+ media-gfx/cairosvg"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/Printrun-${P}"
+
+PATCHES=(
+ # https://bugzilla.redhat.com/show_bug.cgi?id=1231518
+ "${FILESDIR}"/${PN}-gtk3.patch
+
+ # https://github.com/kliment/Printrun/pull/790
+ "${FILESDIR}"/${PN}-x11.patch
+)
diff --git a/media-gfx/printrun/printrun-20150310-r2.ebuild b/media-gfx/printrun/printrun-20150310-r2.ebuild
new file mode 100644
index 000000000000..72839c7ab4e8
--- /dev/null
+++ b/media-gfx/printrun/printrun-20150310-r2.ebuild
@@ -0,0 +1,39 @@
+# 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
+
+DESCRIPTION="GUI interface for 3D printing on RepRap and other printers"
+HOMEPAGE="https://github.com/kliment/Printrun"
+SRC_URI="https://github.com/kliment/Printrun/archive/${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="
+ app-text/psutils
+ dev-python/dbus-python[${PYTHON_USEDEP}]
+ dev-python/numpy[${PYTHON_USEDEP}]
+ dev-python/pycairo[${PYTHON_USEDEP}]
+ dev-python/pyglet[${PYTHON_USEDEP}]
+ dev-python/pyserial[${PYTHON_USEDEP}]
+ dev-python/wxpython:*[${PYTHON_USEDEP}]
+ media-gfx/cairosvg[${PYTHON_USEDEP}]"
+
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/Printrun-${P}"
+
+PATCHES=(
+ # https://bugzilla.redhat.com/show_bug.cgi?id=1231518
+ "${FILESDIR}"/${PN}-gtk3.patch
+
+ # https://github.com/kliment/Printrun/pull/790
+ "${FILESDIR}"/${PN}-x11.patch
+)
diff --git a/media-gfx/printrun/printrun-99999999.ebuild b/media-gfx/printrun/printrun-99999999.ebuild
new file mode 100644
index 000000000000..d12fe530c379
--- /dev/null
+++ b/media-gfx/printrun/printrun-99999999.ebuild
@@ -0,0 +1,34 @@
+# 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 git-r3
+
+DESCRIPTION="GUI interface for 3D printing on RepRap and other printers"
+HOMEPAGE="https://github.com/kliment/Printrun"
+EGIT_REPO_URI="https://github.com/kliment/Printrun.git"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS=""
+IUSE=""
+
+DEPEND="
+ app-text/psutils
+ dev-python/dbus-python[${PYTHON_USEDEP}]
+ dev-python/numpy[${PYTHON_USEDEP}]
+ dev-python/pycairo[${PYTHON_USEDEP}]
+ dev-python/pyglet[${PYTHON_USEDEP}]
+ dev-python/pyserial[${PYTHON_USEDEP}]
+ dev-python/wxpython:*[${PYTHON_USEDEP}]
+ media-gfx/cairosvg[${PYTHON_USEDEP}]"
+
+RDEPEND="${DEPEND}"
+
+PATCHES=(
+ # https://bugzilla.redhat.com/show_bug.cgi?id=1231518
+ "${FILESDIR}"/${PN}-gtk3.patch
+)
diff --git a/media-gfx/propaganda/Manifest b/media-gfx/propaganda/Manifest
new file mode 100644
index 000000000000..c270d4280658
--- /dev/null
+++ b/media-gfx/propaganda/Manifest
@@ -0,0 +1,20 @@
+DIST Propaganda-13.tar.gz 4143608 SHA256 69ec4fa3ce48ad8f775ba9f1fbb4c7fcc8e7046fc7290782f3dc93fc4e2823d9 SHA512 c945e87f90e3f2617916a6e66522f9f0395e12b036bcbc4ef1b072e05443b865122dcffec2358fa98138ef14104d6a2b02285c19c45b26ee64255b869049a09f WHIRLPOOL a6bbb07a14e77196173ab71fe0c838d36d322a3c9467acd0bbb7385bfa52ed9766573c9bb7c2b584b23dfdee32ed95b247c73065f41cdfdf36602224f59ad1e1
+DIST Propaganda-14.tar.gz 3734658 SHA256 1b13ba961a029e15e22c63abaeb237f2775a1735405209f97c62890b7982c21d SHA512 aa0ce453096501728270b995ea91bc79be425f7b37255753687410c9a6d3205023b25bb9b3adc41856315d143099834d490547422d640a964b2c9ff751e039fc WHIRLPOOL ce344f0ea32603fdc8ad3235b51c48215eea9ff8b31b8f23da9db87f193ef7991ef25e02ef50a08a01384424916eaf7778618a40931c523e47b0b6c89e1aa57c
+DIST Propaganda-For-E.tar.gz 4234559 SHA256 af2eb4c656598cbd3cb1f8356be264eaba63b438bc4fa6b08c5745b44308c49e SHA512 3c44bff6d78fca42e31c1229a27d0bc1ce2931ab16004242444772cd04ce09bf36940aa498a2e32e45470122a6a79e08d5ed2b32d530bee329b47faff359e93d WHIRLPOOL 2251d208766751d1415fcdbeab69ed45377233aaa41cd6d8cdf93470c04aead5236485a4cd8c5873400025b532fed048d74db2ab9e267bb85320aee50cade218
+DIST Propaganda-Vol-01.tar.gz 1086117 SHA256 a859a05f3d9b4c0ed85aeff37fee68b404fc7767400b978f07b0ada16d9680ea SHA512 58465f94d0df1b2445f02a61202e8fd6af5759250154684e2a1752d031f5e2c09156ead538d43c519bfa7bb572cd8c9b9355c4f014706072528c06ac35e73b98 WHIRLPOOL df908ffa8d445348e1f82b32a0e7dde902c5988b36d333d382585b65da825b0be496c5e9d0f5c76d70689efd6a60e08fcc252a9ed2eb31231ef1c7b5633cbe96
+DIST Propaganda-Vol-02.tar.gz 335094 SHA256 d5184bcb3a92f984a79087432ebee41bfaaceaa451d58b1e7d7471f08d164595 SHA512 f97b68a772f739fb1763409a9046a5bebf17958ea64ec0a843cca546dec5d2dabb14be9494d8ebb144ccc27f9bcbe6a6fcec670b27e5d74ab06ec9147245875d WHIRLPOOL e3ac7a290f30c46ed5edc154599bd6e5571edcfd529cd8b6a5ca3d98fb2489ce42c70ca36dc59de93ef2bc61feae58d5483fc6da7cd53d3dbcccb346154532dd
+DIST Propaganda-Vol-03.tar.gz 1186808 SHA256 f906297306e55398c4335db7cb5154b0c7ef07e40323b7d5698f988b187bd064 SHA512 ea41270952829d8c089615c9fbfc160b52383446ffcfd818a18f56be30615be5e6ec5cd6527792a926a4ecf7b738e2982c8614b86a8abb37d395bbc32ec1febc WHIRLPOOL 4b5c863ccaf8792eebfb1025728ccc4eba391ef9450f6f0d8b2823f4918f6cc0a54e8478e4f8846c1f156e896cd8e723570d9125cb3cf58f9e239a61c6db6145
+DIST Propaganda-Vol-04.tar.gz 1136867 SHA256 f1b8e04a0935b97540783c67e01942aa72a54609dbd1a8d947f4a03248ed7e8b SHA512 567d6379d9bbbad90216576dae5260f52e45d3d0bde09dfd9190a5e24cdc70955004edd28e0a45a2a5107ca9b0f134ff8918261c39e952ff0075f021465767cd WHIRLPOOL 54289e10fef21f5a372d5d053b1efdd13d359b9fc8814b60b5a4fa763683d3ea6bcfce89f79322280466ec82ac8e82e1fd57b8918fdcc004ebeb00d463ca3730
+DIST Propaganda-Vol-05.tar.gz 1020372 SHA256 f886a25a0b2401bdefd62a770afb4221b1385691492dccbe683276a69447ef1d SHA512 c695545ac2fa72287e014d4598025d984c04495b6ed32e1a3eaa295b9af107516431516de2f3cf779a209b10c3245d2fee5de5b5f6c2e3ccabc831824e53bbd4 WHIRLPOOL c8afa9ca1d2b96974f9d0c192429ee7ca36ff8e5fef8196a2ff12e1b42d93bf14722787677ffdfaf5ab56c91b801d209d360f81bd6123cffec60eaff44126ed1
+DIST Propaganda-Vol-06.tar.gz 1165404 SHA256 718ae670c608ff049b0be010bd894529a88702ba399f8502bf60648a3ad6c427 SHA512 bc1475ee96ff7d26c288374c40ee7cd538ad64908c0604bba1cded56600ec6485c24e89ada3acba5dd8932b9302cf0756ed00728903e480790d063c846a7fa4c WHIRLPOOL 1c8e502afd59f07c87e2303242ab0c6da4d067b31445de08f3a21ea3079cb6bcaacf0c2da3ac4df87710795528c20915ec909f54159258689ca9a74c13a46aee
+DIST Propaganda-Vol-07.tar.gz 1736281 SHA256 cc4219992257620d85f34db0e542bd0d8b9932fda42b93fa2a874aa56a3dc113 SHA512 0a3c7fce63985af882c0297697a06683adf0cca1c45662d8113f970a5ed631db1ffa3e2ac32966e561100e57849eec4442ed7a5b8ead25c988aa467293b2e2bd WHIRLPOOL ec87b0963bfdeb8cb8cde5fd02e530efe7d04c7f93ac8d256d7e0cc9ce27c98ff7030485be995fe19fbbdfdbe2ae830a395e485ec92158282848087c4f25deb2
+DIST Propaganda-Vol-08.tar.gz 1486421 SHA256 34cae16d1cb8ec07c309ab450a5bcdffc0ed02a6ffa3f594c2f50734f6e65895 SHA512 357143586e5b882a13f78b2aabed4c7434f45be54b6a3a46601f6ead2307d36e28c9ec56c68a6e40fe6040a3b093b9a9d1d9624073f9ed711f55473185df3f39 WHIRLPOOL 2608a4ec4e96b40e97340158c4b1031bbf11cee6eb7fc4f20d7780a6845e6f8a77ff9704e9703a471d6055efc40696fdf1583fe7aef7ad1ddc5a28d5401366c0
+DIST Propaganda-Vol-09.tar.gz 1664869 SHA256 1029ce133b109eff2e64ee97563488e22e4d0e75e4e0df29e409eec07d665ad9 SHA512 cd70f63d9a68cf1d73627d31589aa6c2bb42ba014c6c0fc9e0b2991017bb0136950f4bc9d478b39e156ba2039f72c970ad9ef4b4e0a73294ffec1c6adfe4b303 WHIRLPOOL 5d58e77d1ceb31e83fbf6d229a1fed799348c81f7fd740c6d8aa45f744c40f5970632a3eb232599eb48f618bc3af8a090b098ce3b6c4ed782a82874334e97715
+DIST Propaganda-Vol-10.tar.gz 6376914 SHA256 2a9df4a6af44aa0a4e061412e67cd096cb1d13eddc6fbb3ba7a2b0a2a869cf5c SHA512 080d563442050f1266d09fbb2148d14173555a213ce1fb110ce4aab2d85a18563543705227b1e68146dd2f1a5b1bb7cc75f9512f823a4970f92b55eb9251b1fd WHIRLPOOL 4bf5d9944bece8f3628878ae52d40e5598b906e6ac283c0ec45b73534af825bfc6a123970eda40ea47c8579f30ae76104dd08b6fcef88786f264d2cfc7da6633
+DIST Propaganda-Vol-11.tar.gz 3030910 SHA256 c9aa7e8379b10dd4353e791b3f90aa43543e3d8745c0a1630343aea7ab52c515 SHA512 752a3e27bfbde1f694be3f57e4c7bf638159f8e7b06c00c703a82ff2795625298feca20f91beecc651da66ac7b6dc5e7fcfc0b5d7b465118e94f8769488be1c7 WHIRLPOOL 8cb9b5df0ebac9ad72044786960fd3dc67e2e576436ffc8443692c55bb495bd2be9bdbd8913f6a3d0a4581cca8a6d868f12c616b82e3f7ccbd1b76b73ecbbd9f
+DIST Propaganda-Vol-12.tar.gz 3140955 SHA256 704973ebf106b0e30ecbae211f1a67daddd9f84f880a191d03a726010823d919 SHA512 1cef61c88a4cbe4c757c05c1ecf2d72ab67ad13e0268497971f9a11047351d0a0e8770a69bd6754672b6a8c99e69a2e61693fb593bcfb4db7003cd9eddd31f80 WHIRLPOOL c0c98c4f3f32927974b7cd36b550737596f830924952c16faafa3f52243bbdeaa0fa0e2c7a46e3d63320817d836408489bc58450ea9e70e07646d81ab4b3649b
+EBUILD propaganda-1.0-r1.ebuild 1176 SHA256 fffc3a93b67198cc9774619017ba1c48659e38db025129049ae8db57380c5fe7 SHA512 013d23575e23faa8b34bff19d74b79c9372722cca876c9a8e7be51628369d7e5753f58f573136c151add46f1409d96e9c1a493bbfe61339cb2ed79b8fb2f68d3 WHIRLPOOL 8d1a069d4b8d33b15a4a3c9093ea4fab32f2dd050558bec59419ce4ba967c57988a658327ee3769dd401ffa2ee5c4218d5d322f66e8f7ddb55e9cc757b71dace
+EBUILD propaganda-1.0.ebuild 1788 SHA256 08a06f0a05aef66aee77ad88a23839a99a2847a5343fd3af0740d6b6fc0ea7e7 SHA512 48cb923ddbfcec7f7ff0dad6d884caaa3b4fca63b4d6a206ef2c8b62e7f0e219779da4f95bcbf79583faf3e515952b318708c8af371b0980bd8913d8ec1f7439 WHIRLPOOL 0fe9e855f7f6b53dcb76e47bab92b3badee6a885131181801aa891280799da865525b3cd114a934cc281296ac4dfa0d17b1a93a39374fe08aa411fee12d93be7
+MISC ChangeLog 2528 SHA256 d7e0a97638bcc5739f20566d178e3ba1c300e0668c2b22f6ba22c99c5cd1106e SHA512 9a77b9b790c87fd06f8e946f584155a33c53d6776c7bbdacf00a7fa81791f5126abc0321cec7f516d6cdc6d6d21e5ae1a7ccf934c66f6b367b5b3bd2595748cf WHIRLPOOL a3a9597257cfdb20b818abc41e2ddf5c1f553d8f1989c30dc86ddee21f0dd820e333b0362427293120d893eb94459e64d8c616ee9cc5947d55f883685f4bca2f
+MISC ChangeLog-2015 970 SHA256 f3d5bd96bbebf022c99b065ecf6d22845747a9307f930f0ccc69c1c0b15ff206 SHA512 9fd9ad94f51a951e9b4b8e5a3aaf7edb80dd9f88658882f68cef7d2f1dda0e8ec6abe55d4efbb6a68f5372f42f67b5ee84bd787f190ad9c2c6f84171a6ddb4ec WHIRLPOOL a997e83b5130bded7017bf4f2cf8c7f7d0553e7409af42c5512c9387e68c1863a606dc4653c487f7e92f6476c51ed9f3919567267c9b9ed8451bb41ea24c7492
+MISC metadata.xml 166 SHA256 2caff447f5bd2701d8456ada5cc633c41ef4373fa4bfeabeb73599d40bcc941b SHA512 a56648c974a1d14dd4c18237532773c72057a13ab90c58b5da04f185e3c12a8bd8d5c21fb06053507f31766291a82dc7d87b34cd65fd94cfe2af7295c813ef84 WHIRLPOOL 1ff70497eca6531f0e0614c72a19f4b8e5ff486a58d369f4f0b36308d1d6b01168f9da887740e3b9f536236be251d3fe05f904d27a9233a7cf613416ba882968
diff --git a/media-gfx/propaganda/metadata.xml b/media-gfx/propaganda/metadata.xml
new file mode 100644
index 000000000000..6f49eba8f496
--- /dev/null
+++ b/media-gfx/propaganda/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<!-- maintainer-needed -->
+</pkgmetadata>
diff --git a/media-gfx/propaganda/propaganda-1.0-r1.ebuild b/media-gfx/propaganda/propaganda-1.0-r1.ebuild
new file mode 100644
index 000000000000..86f584a1d5f7
--- /dev/null
+++ b/media-gfx/propaganda/propaganda-1.0-r1.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+S="${WORKDIR}/Propaganda"
+DESCRIPTION="Propaganda Volume 1-14 + E. Tiling images for your desktop"
+HOMEPAGE="https://wiki.gentoo.org/wiki/No_homepage"
+SITE="mirror://gentoo/"
+SRC_URI="${SITE}Propaganda-Vol-01.tar.gz
+ ${SITE}Propaganda-Vol-02.tar.gz
+ ${SITE}Propaganda-Vol-03.tar.gz
+ ${SITE}Propaganda-Vol-04.tar.gz
+ ${SITE}Propaganda-Vol-05.tar.gz
+ ${SITE}Propaganda-Vol-06.tar.gz
+ ${SITE}Propaganda-Vol-07.tar.gz
+ ${SITE}Propaganda-Vol-08.tar.gz
+ ${SITE}Propaganda-Vol-09.tar.gz
+ ${SITE}Propaganda-Vol-10.tar.gz
+ ${SITE}Propaganda-Vol-11.tar.gz
+ ${SITE}Propaganda-Vol-12.tar.gz
+ ${SITE}Propaganda-13.tar.gz
+ ${SITE}Propaganda-14.tar.gz
+ ${SITE}Propaganda-For-E.tar.gz"
+
+SLOT="0"
+LICENSE="GPL-2+"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
+IUSE=""
+
+src_prepare() {
+ default
+
+ mv ../Propaganda-Vol-11 Vol11 || die
+ mv ../Propaganda-Vol-12 Vol12 || die
+
+ rename JPG jpg */*.JPG || die
+}
+
+src_install() {
+ dodoc README-PROPAGANDA
+
+ local VOLUME
+ for VOLUME in Vol* Propaganda-For-E; do
+ insinto "/usr/share/pixmaps/Propaganda/${VOLUME}"
+ doins "${VOLUME}"/*.jpg
+ done
+}
diff --git a/media-gfx/propaganda/propaganda-1.0.ebuild b/media-gfx/propaganda/propaganda-1.0.ebuild
new file mode 100644
index 000000000000..d4918b184462
--- /dev/null
+++ b/media-gfx/propaganda/propaganda-1.0.ebuild
@@ -0,0 +1,67 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+S=${WORKDIR}/Propaganda
+DESCRIPTION="Propaganda Volume 1-14 + E. Tiling images for your desktop"
+HOMEPAGE="http://www.resexcellence.com/propaganda/index.shtml"
+SITE="http://www.resexcellence.com/propaganda/"
+# Point to any required sources; these will be automatically
+# downloaded by Portage.
+SRC_URI="${SITE}Propaganda-Vol-01.tar.gz
+ ${SITE}Propaganda-Vol-02.tar.gz
+ ${SITE}Propaganda-Vol-03.tar.gz
+ ${SITE}Propaganda-Vol-04.tar.gz
+ ${SITE}Propaganda-Vol-05.tar.gz
+ ${SITE}Propaganda-Vol-06.tar.gz
+ ${SITE}Propaganda-Vol-07.tar.gz
+ ${SITE}Propaganda-Vol-08.tar.gz
+ ${SITE}Propaganda-Vol-09.tar.gz
+ ${SITE}Propaganda-Vol-10.tar.gz
+ ${SITE}Propaganda-Vol-11.tar.gz
+ ${SITE}Propaganda-Vol-12.tar.gz
+ ${SITE}Propaganda-13.tar.gz
+ ${SITE}Propaganda-14.tar.gz
+ ${SITE}Propaganda-For-E.tar.gz"
+
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="amd64 ppc ppc64 x86"
+IUSE=""
+
+src_compile() {
+ rm -fr ${S}/../Propaganda-Vol-11/.finderinfo
+ rm -fr ${S}/../Propaganda-Vol-11/.resource
+
+ rm -fr ${S}/../Propaganda-Vol-12/.finderinfo
+ rm -fr ${S}/../Propaganda-Vol-12/.resource
+
+ mv ${S}/../Propaganda-Vol-11 ${S}/Vol11
+ mv ${S}/../Propaganda-Vol-12 ${S}/Vol12
+
+ for NUM in 1 2 3 4 5 6 7 8 9 10 11 12 13 14; do
+ chmod -x ${S}/Vol${NUM}/*
+ cd ${S}/Vol${NUM}
+ rm *.html
+ rename JPG jpg *.JPG
+ chmod +x script.perl
+ ./script.perl *.jpg
+ done
+ chmod -x ${S}/Propaganda-For-E/*
+ cd ${S}/Propaganda-For-E/
+ rm *.html
+ rename JPG jpg *.JPG
+ chmod +x script.perl
+ ./script.perl *.jpg
+ cd ${S}
+ pwd
+ rm -f ${S}/Vol2/\@
+ chmod ugo-w -R ${S}
+ chmod ugo+r -R ${S}
+}
+
+src_install() {
+ dodir /usr/share/pixmaps/
+ gunzip magicbg.tar.gz
+ dodoc COPYING READM* magicbg.tar
+ mv -f ${S} ${D}/usr/share/pixmaps || die
+}
diff --git a/media-gfx/psftools/Manifest b/media-gfx/psftools/Manifest
new file mode 100644
index 000000000000..2f3ee8402ad0
--- /dev/null
+++ b/media-gfx/psftools/Manifest
@@ -0,0 +1,5 @@
+DIST psftools-1.0.7.tar.gz 547537 SHA256 d6f83e76efddaff86d69392656a5623b54e79cfe7aa74b75684ae3fef1093baf SHA512 9135f4aa8ea4a4cfdaebc7764db0409b304dc34310ebe84d6fc786d42a392c79da4f097b6b3526edaf862305edf8794ef62f6bf48a3de5dac22c8e0c0c77aa14 WHIRLPOOL 83051b32c1999c62d296d614db30d97e9a3d525361dfd4110bb25605d8cc0d9bc5ab65fe69ecdfc710f93d10f4a2a9ff5963216f2ab74b93bbb0928d506dd5b3
+EBUILD psftools-1.0.7.ebuild 443 SHA256 d76e00037603b426fa7f7314faacbac2eaa7cc233f20996534d817b3650faf02 SHA512 633511d8c0a2c36536c6ad15a9f22c0d14ac8c43fd7df838dcdf9724ddcdd942122a4f4eaafb615a7dd115ca59edc4d009e5bf84120a52a45f5b90f3a980b322 WHIRLPOOL ac868111d57023eb52c179f58c3c2322478d24a05053b0c52ef6a598c7182479077dcc1e77d1c139c3d4203565938412ce620dd9fa0c8a8bc6a3ac2c9dee293d
+MISC ChangeLog 2431 SHA256 7c73f1e47189d0917dd08fe0478e87b6a4da9b1d9ec69961a6587169302c8242 SHA512 0565e25f074d41a1cddd993ea247afa4061f4f64815f0a2e8eb8bc24de69b8b724e6b592cff50c7c8a6b0882ae2828890de1f5473e67b48a20f3a9c8bcf741e0 WHIRLPOOL 8ad5e1f7448140f84d780b5d75ad10ae797929810b1b756b47c6cdd7a0e703125aff2fe5bf15a4e0509a3e45fde7fb9b3c77b0a76fa7af04bdcb97d224164f26
+MISC ChangeLog-2015 342 SHA256 993bd4db9840263fc95b0d135c62ecb2a26c91d73331508c93bb976a148047ca SHA512 ff3546db4e028bf76fcae6a4f953c90b3de0653f1c294038ad7acd1a72da4699e75baca051fcbad18b33a4848f9d4307746782cef2a1ea55b516ed2c3f31513e WHIRLPOOL b1d07f0314252ce48c197ca8a9bea411522ab4e54d245185be8d391ef663a8f5703ebbf8709b7c65f39c40e5a53dafd7cf448abf6002df7572cdf9a020528829
+MISC metadata.xml 234 SHA256 e4848031eef3f8cb5089319b804a2c1cc2aba578c8cf7fc8323b9782c98d04dd SHA512 582b5859e81dd9914f3a2665bcdec86d1ba10026f0b0c8207fa0a6a621eaedd40286fc01250e8fed3d63750a4f39c6c8e4e5d358d360c0113e0904f297624ff5 WHIRLPOOL c11a2368b5137f9ae0226b17808f9d0dbb31821b850bbfc8cb9cb33963e54f33ba9362b0ba39abb48a469c5dc62d1a79686eb401a47a2c02fd73c09dfb6c325e
diff --git a/media-gfx/psftools/metadata.xml b/media-gfx/psftools/metadata.xml
new file mode 100644
index 000000000000..13ee79314597
--- /dev/null
+++ b/media-gfx/psftools/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 type="project">
+ <email>fonts@gentoo.org</email>
+ <name>Fonts</name>
+</maintainer>
+</pkgmetadata>
diff --git a/media-gfx/psftools/psftools-1.0.7.ebuild b/media-gfx/psftools/psftools-1.0.7.ebuild
new file mode 100644
index 000000000000..2cdfc40cc302
--- /dev/null
+++ b/media-gfx/psftools/psftools-1.0.7.ebuild
@@ -0,0 +1,19 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+DESCRIPTION="Utilities for manipulation of console fonts in PSF format"
+HOMEPAGE="http://www.seasip.info/Unix/PSF/"
+SRC_URI="http://www.seasip.info/Unix/PSF/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE=""
+
+DEPEND=""
+RDEPEND=""
+
+src_install() {
+ emake DESTDIR="${D}" install || die
+ dodoc AUTHORS NEWS TODO doc/*.txt
+}
diff --git a/media-gfx/pstoedit/Manifest b/media-gfx/pstoedit/Manifest
new file mode 100644
index 000000000000..05cc97cb7806
--- /dev/null
+++ b/media-gfx/pstoedit/Manifest
@@ -0,0 +1,7 @@
+AUX pstoedit-3.60-libdl.patch 428 SHA256 587e8e9786002f245fc4f5a9bd89fb7bd15b2febacc96201f954923c07c40377 SHA512 dc29caf4b1bf1e6ce7cc73fd5ae1682f0aba8a798f632d29cca450bf3883afe54142ea06fbe6d9aa07f2580450780afe1c671cb1c37f1dd800582b2036797f73 WHIRLPOOL 5481982aa82ac96cecfcdc9795a688e2d9bbae36bbab287b6a34b2366bbd0a10b3ad499b0b333f819597af2ead306986470d00653a2e9f5dad681eca6ac2d655
+AUX pstoedit-3.70-pkgconfig.patch 627 SHA256 7ab8def047aef6a2e1abd528707895f03dcfdf0f2eb13db7d975ebe74893dad4 SHA512 8edfc9f0c0db6371405ff16641294c8aebb7dc09e9bc8b9114c7506f4fd494f0361b90abceddad68c351baa2d2917b6212056ed69c0a6dde0d914a2c801888ec WHIRLPOOL 7575e808d7ac63f4971be6deef1981b3d1bfedf9e5c0ad8d45d4691eeabb287633bb51172fccf52c350946b3dd8d0457e71d48df458dac0cea84b4dba6b48fba
+DIST pstoedit-3.70.tar.gz 1013949 SHA256 06b86113f7847cbcfd4e0623921a8763143bbcaef9f9098e6def650d1ff8138c SHA512 63668ea039fdf988ba007bafb8dc1f23f06d4eb430a92b97fb93c71b819f63e2708b99476ec9b096598db2ddd30d29a69101f078e7d4fdfec314677f50293cf9 WHIRLPOOL b1538ddc6fdebd150e79e3c574b41941077863e14eff1b9e74baf0bffe6d4ef8419bff551bf88e6e4e98550648d7a050e18b0df8627373351074ff434de8a571
+EBUILD pstoedit-3.70-r1.ebuild 1370 SHA256 74c27e8ab32bb61f31efebaa784b1860c8500ed5e58bfec3055bf7a6e0239875 SHA512 07c9b99642ffe4a02a6309bc95d21d2055e867d2f0f8150e69f25047b3bd48a50f575da73a8c7d4e71d19d41af017011d98f1fe5ec3cdae602cb865547683a2e WHIRLPOOL 0d8b8a090685b1769f5c2ab7c512cd584cf9674cf005a168334da39dfc868c971be01cb77d31f94040bae3bb8c01ebdcf90870ae195c03df39d2f1f93b3a3e0f
+MISC ChangeLog 3766 SHA256 a1355129dc963271e9bd40508bdb6ce94fb06d7511f716d600f2a2b9c5d82bb8 SHA512 db36538638c4da01b2ba5d86b4aaeb048f058010c309a87cd7549251b72a6dd9b7b343470eaad0bc804e8850dfc15a7ba0cca974ad8199f6f54ed6279f0d8299 WHIRLPOOL ee1e1e36d100fd6a9d2bfae106c7ce176c9000c18df6a039ab13895658e5a094f58bdada15704c0de3772522a833b958d15ced4ca5f4b59b3481467339e6d807
+MISC ChangeLog-2015 13119 SHA256 f21f0ecf038246d814399d0d1e0ed7a06fdc0cf219f81a249e3fcc60f2df92a5 SHA512 95326067e7fed8807d3ad0a9ffdf2e88ae4435555887e3d0e7e9a5db9042102294547069d8c8c7684dc6e9ae7be9594d98b015d8e5bd06280aa9e6000e16f9e0 WHIRLPOOL 835e2de630a1f4e8b7a20fe85edb84d53794de5722755f9d607a4aa25a7a8338ecb7b79c1b6a710b5d135e8ac4c78417e5bd7816082612ab3e30cf437781433c
+MISC metadata.xml 709 SHA256 5083e90d68e387f751b8a2aa5c2b9ab608366183abb1e1a66fe6b61d1f9cf947 SHA512 36f14c4cce30c5a2d9f581ad02c61d7b8fc1de7bb613c3d1d1741a7753e215816c32846cf8c93f4905da839523d6a1e624beae66366770f102291e7219df0bda WHIRLPOOL d55c8bd62f4eab9d760d99a784e83cd856d8238bf68a046882b5f8aa744e6c570bfc073647bc732241a5b957fa7f9d534e07b596dbc3880a064c997af429aed7
diff --git a/media-gfx/pstoedit/files/pstoedit-3.60-libdl.patch b/media-gfx/pstoedit/files/pstoedit-3.60-libdl.patch
new file mode 100644
index 000000000000..279ed715f53a
--- /dev/null
+++ b/media-gfx/pstoedit/files/pstoedit-3.60-libdl.patch
@@ -0,0 +1,13 @@
+diff --git a/src/Makefile.am b/src/Makefile.am
+index 6b33220..30c9f2e 100755
+--- a/src/Makefile.am
++++ b/src/Makefile.am
+@@ -139,7 +139,7 @@ libpstoedit_la_SOURCES = \
+ genericints.h \
+ version.h
+
+-libpstoedit_la_LIBADD = ${CXX_STD_LIB} ${CXX_RUNTIME_LIB} -ldl -lm
++libpstoedit_la_LIBADD = ${CXX_STD_LIB} ${CXX_RUNTIME_LIB} ${LIBLD_LDFLAGS} -lm
+ libpstoedit_la_LDFLAGS = -no-undefined
+
+ pstoedit_SOURCES = cmdmain.cpp
diff --git a/media-gfx/pstoedit/files/pstoedit-3.70-pkgconfig.patch b/media-gfx/pstoedit/files/pstoedit-3.70-pkgconfig.patch
new file mode 100644
index 000000000000..c101077431e5
--- /dev/null
+++ b/media-gfx/pstoedit/files/pstoedit-3.70-pkgconfig.patch
@@ -0,0 +1,14 @@
+LIBPNG_LDFLAGS is never substituted...
+https://bugs.gentoo.org/show_bug.cgi?id=551208
+
+Index: pstoedit-3.70/config/pstoedit.pc.in
+===================================================================
+--- pstoedit-3.70.orig/config/pstoedit.pc.in
++++ pstoedit-3.70/config/pstoedit.pc.in
+@@ -7,5 +7,5 @@ Name: pstoedit
+ Description: converts PostScript(TM) and PDF files to other vector graphic formats
+ Version: @VERSION@.0
+ Requires:
+-Libs: -L@libdir@ -lpstoedit @LIBPNG_LDFLAGS@ @CXX_STD_LIB@ @CXX_RUNTIME_LIB@ @LIBLD_LDFLAGS@
++Libs: -L@libdir@ -lpstoedit @CXX_STD_LIB@ @CXX_RUNTIME_LIB@ @LIBLD_LDFLAGS@
+ Cflags: -I@includedir@
diff --git a/media-gfx/pstoedit/metadata.xml b/media-gfx/pstoedit/metadata.xml
new file mode 100644
index 000000000000..b2d783b728aa
--- /dev/null
+++ b/media-gfx/pstoedit/metadata.xml
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>tex@gentoo.org</email>
+ <name>Gentoo TeX Project</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>printing@gentoo.org</email>
+ <name>Gentoo Printing Project</name>
+ </maintainer>
+ <use>
+ <flag name="emf">Enable <pkg>media-libs/libemf</pkg> support</flag>
+ <flag name="flash">Enable <pkg>media-libs/ming</pkg> SWF support</flag>
+ <flag name="pptx">Enable support for generating PowerPoint pptx files</flag>
+ </use>
+ <upstream>
+ <remote-id type="sourceforge">pstoedit</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/media-gfx/pstoedit/pstoedit-3.70-r1.ebuild b/media-gfx/pstoedit/pstoedit-3.70-r1.ebuild
new file mode 100644
index 000000000000..6ce7a5d378cd
--- /dev/null
+++ b/media-gfx/pstoedit/pstoedit-3.70-r1.ebuild
@@ -0,0 +1,64 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit autotools
+
+DESCRIPTION="Translate PostScript and PDF graphics into other vector formats"
+HOMEPAGE="https://sourceforge.net/projects/pstoedit/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 ~arm ~arm64 hppa ia64 ppc ppc64 sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux"
+IUSE="emf flash imagemagick plotutils pptx static-libs"
+
+RDEPEND="
+ >=media-libs/gd-2.0.35-r1:=
+ >=app-text/ghostscript-gpl-8.71-r1
+ emf? ( >=media-libs/libemf-1.0.3 )
+ flash? ( >=media-libs/ming-0.4.3 )
+ imagemagick? ( >=media-gfx/imagemagick-6.6.1.2[cxx] )
+ plotutils? ( media-libs/plotutils )
+ pptx? ( dev-libs/libzip )
+"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-3.60-libdl.patch
+ "${FILESDIR}"/${PN}-3.70-pkgconfig.patch
+)
+
+src_prepare() {
+ default
+
+ sed -i \
+ -e '/CXXFLAGS="-g"/d' \
+ -e 's:-pedantic::' \
+ configure.ac || die
+
+ eautoreconf
+}
+
+src_configure() {
+ econf \
+ $(use_enable static-libs static) \
+ $(use_with emf) \
+ $(use_with imagemagick magick) \
+ $(use_with plotutils libplot) \
+ $(use_with flash swf) \
+ $(use_with pptx)
+}
+
+src_install() {
+ default
+ doman doc/pstoedit.1
+ dodoc doc/*.txt
+ docinto html
+ dodoc doc/*.htm
+
+ find "${ED}" -name '*.la' -delete
+}
diff --git a/media-gfx/pycam/Manifest b/media-gfx/pycam/Manifest
new file mode 100644
index 000000000000..a20053ac1961
--- /dev/null
+++ b/media-gfx/pycam/Manifest
@@ -0,0 +1,8 @@
+AUX fix-export-toolpath.patch 663 SHA256 7ac4d3627f2042b305a1c3cec73ecb167019a0acbc6d95812f415d711b62e185 SHA512 d6bbb4b16e8df111a1961b70ae68d241fed3310fe71d7942a9da9dbdf64cb50d04e4a29f558bcbb3439a592a32d2d87f11b32dde15ebd64246db640498805d90 WHIRLPOOL 312aa562ed075c3e9cf6e128ee7eed937d4d32c040074cd2d332010973a36433f9611c27644fb1a85f46accbd55f2b49e53a5cf8d0a7659f8f3f1be6fd275fea
+DIST pycam-0.5.1.tar.gz 1680577 SHA256 e26a6db82efa4761a1db6b81de3165898430d5c14d09614b67321105d67e264c SHA512 f880d960f82eb374465a593f3b27e9f72148b3ceb99fde15bee4ccf1078acc8ef44ddfd9ee12f89e5b5e5ee14706b6e5d76eff7d0334c9526866ff263a057994 WHIRLPOOL 3f78eedcc6d745142578ef3e57141cf026b2ebca1a699a340237e2288c9c7054a1226ad47aa947d5de612c44c4445fd451e8adcfe7c0783b59332cb1a12998b9
+DIST pycam-0.6_pre20130416.tar.gz 5766314 SHA256 d927682785178b8aba57e275b6af0b9203263840b0648b023616f5f6cd5867d6 SHA512 04d0a3328febbe58010cf9ad990b8c059f9fe0a17946d8485979082dfaa0b3b8705ffdcd695dca5887d9892a55285cca7acf774fe7c407240103da2de92dc9a1 WHIRLPOOL d6ca3504bca4e1d9e0830c5bd0f765d6aad0fb869890d07e430f6f05dc50103d209c7c90d8b866a9dee9fc20df739ed38f56005718c67786f318a70cea9b0719
+EBUILD pycam-0.5.1.ebuild 486 SHA256 fa61343d29bd64ddbe85d12df9805399b140f86bcda85150b9a0c3e1541fec95 SHA512 ef68e5b6c3204756789d460865702d2e64cb65b5a4e182908bb7ef0a85f1f5ec024d36cb3d9eed73276398aa2a140bc082e9e90b218b1fbb2232f9ced51d9569 WHIRLPOOL 0e5755dea771e2920e8382e6a8acb456b5fdfe8f410bdacbf69214a4c6b52d51c353ad11772bde54741fc9147ae2aa24cd4aee9f50ba7b3b645e23f349c18bf4
+EBUILD pycam-0.6_pre20130416-r1.ebuild 603 SHA256 5169ab80bff48744b148f50725ef51cc35208b6ae0349d06a1e79a8d9556f9ee SHA512 e9c286f58e35381b714eb3c0a979219a311aad6a50d9bea496ca7900e67548a7efd330a76092c2fe9372f737ffded68a22749104e4e173fbce535c20659c364b WHIRLPOOL b79841efec8e55ca2ccd6642575d4c9ad0f41364bd1d6b3c0c62c05cb81ac75013ccd97db32d5478eb2432a3f403b9a06fa6cb8eb561bd22798b33891e7345b2
+MISC ChangeLog 2862 SHA256 3d2bd1d66a6f22510b844063c99862808a33359781be35fd3b579ff16da6c6c9 SHA512 5e39b5fe46e8c30558918584ddbbc452715929b5771d2f40d75ec752a2d417ffa653fa7adc65464120bc471a0928dd4fe91e2bc1ec2fc7bce970bb2eb972ebc2 WHIRLPOOL 24d1528eb894f8c8e40825810b1b79b538cd7c98c721b94e0c1751910cc65c4ed767aa0ccc2bbfe3df69c139cd9397463b6450db69b07153f45cb428b14a04b4
+MISC ChangeLog-2015 749 SHA256 d7ff8b9435ddf8b753671537bbe4bda58645fb125b790e311cc92f898c63a43e SHA512 0a48f1fc0fa33bff8d19ff29621ca1d0369d5defc1c695fa9e8435487295026b949c91c681d072d0eca8c36ba79274b371e926cb26fefbbcda97cb9db4d40445 WHIRLPOOL 8b1110998471ee4d6303bca5eddcefffd77feab9152050d6dadb9e9ba3da0de5b7cf210ea267bd35396f7614d759f14ea5e6548e6c95da4427bf4915b7527d09
+MISC metadata.xml 290 SHA256 9f688a3bab3cd4d362d3eeb275027c73355b8cc5832405453d25244b12be8818 SHA512 b3ebcaa51728a7fe09029f792e3ad7dbaa50b30e98d4e523d7258ab2d70824f3722c40ba60cda6feae303dd3779cb65cefe560c9740f1b07e6d2c905660bf2eb WHIRLPOOL 96f9089a41ab4c5c577d9780c983a1ed99bb7025da9e4a1e3b2da86a3f6e37a4ed6522ff2a96771b021632d030d394b2f5527cb9bc8adf631cdcb438959ed057
diff --git a/media-gfx/pycam/files/fix-export-toolpath.patch b/media-gfx/pycam/files/fix-export-toolpath.patch
new file mode 100644
index 000000000000..5b8a1f59ce7f
--- /dev/null
+++ b/media-gfx/pycam/files/fix-export-toolpath.patch
@@ -0,0 +1,25 @@
+From fd206b003c0ba494cbdf6192395ec45fd1f706f3 Mon Sep 17 00:00:00 2001
+From: Tobias Schmidt <tobias@isntwork.org>
+Date: Sat, 12 Oct 2013 00:12:52 +0200
+Subject: [PATCH] add Exporters.GCode package to setup.py to fix broken
+ ToolpathExport plugin
+
+---
+ setup.py | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/setup.py b/setup.py
+index 92feab4..634ff9f 100755
+--- a/setup.py
++++ b/setup.py
+@@ -89,6 +89,7 @@ Windows: select Python 2.5 in the following dialog.
+ "pycam",
+ "pycam.Cutters",
+ "pycam.Exporters",
++ "pycam.Exporters.GCode",
+ "pycam.Geometry",
+ "pycam.Gui",
+ "pycam.Importers",
+--
+1.7.10.4
+
diff --git a/media-gfx/pycam/metadata.xml b/media-gfx/pycam/metadata.xml
new file mode 100644
index 000000000000..5efab33516e9
--- /dev/null
+++ b/media-gfx/pycam/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>slis@gentoo.org</email>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">pycam</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/media-gfx/pycam/pycam-0.5.1.ebuild b/media-gfx/pycam/pycam-0.5.1.ebuild
new file mode 100644
index 000000000000..26eaf6996f51
--- /dev/null
+++ b/media-gfx/pycam/pycam-0.5.1.ebuild
@@ -0,0 +1,22 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+PYTHON_COMPAT=( python2_7 )
+inherit distutils-r1 python-r1
+
+DESCRIPTION="Open Source CAM - Toolpath Generation for 3-Axis CNC machining"
+HOMEPAGE="http://pycam.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-3"
+KEYWORDS="~amd64 ~x86"
+SLOT="0"
+
+DEPEND="
+ dev-python/pygtk
+ dev-python/pygtkglext
+ dev-python/pyopengl
+"
+RDEPEND="${DEPEND}"
diff --git a/media-gfx/pycam/pycam-0.6_pre20130416-r1.ebuild b/media-gfx/pycam/pycam-0.6_pre20130416-r1.ebuild
new file mode 100644
index 000000000000..1eb3bef2beba
--- /dev/null
+++ b/media-gfx/pycam/pycam-0.6_pre20130416-r1.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+PYTHON_COMPAT=( python2_7 )
+
+inherit distutils-r1 python-r1
+
+DESCRIPTION="Open Source CAM - Toolpath Generation for 3-Axis CNC machining"
+HOMEPAGE="http://pycam.sourceforge.net/"
+SRC_URI="https://dev.gentoo.org/~slis/${P}.tar.gz"
+
+LICENSE="GPL-3"
+KEYWORDS="~amd64 ~x86"
+SLOT="0"
+
+DEPEND="
+ dev-python/pygtk
+ dev-python/pygtkglext
+ dev-python/pyopengl
+"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/${PN}"
+
+src_prepare() {
+ epatch "${FILESDIR}/fix-export-toolpath.patch"
+ distutils-r1_src_prepare
+}
diff --git a/media-gfx/qingy-themes/Manifest b/media-gfx/qingy-themes/Manifest
new file mode 100644
index 000000000000..715cecaf60b5
--- /dev/null
+++ b/media-gfx/qingy-themes/Manifest
@@ -0,0 +1,22 @@
+DIST _aquaish_-default.tar.gz 370262 SHA256 44a8f05c881f27e01bf17ba02fa324cbf8bc2a477b23402266da48d177ef9fec SHA512 d6c887e607029220759e5219fc820404ed16cf72b5ba4e9152c61d78963f19de8ecb93bf0df238cd451b280b3e51c9381115bf319d40882e7e1a709f6e043844 WHIRLPOOL 79455f840ea16e7377a9f4b0c9edb9f5d147ef95fea5b91d7136826bd75ba89f135c9678325972090938b2c875134ddd47138a67fe8a7d38ebfd702e322a8974
+DIST _biohazard_-default-1.0.tar.gz 273773 SHA256 0e4a822976ad0e83e7a56b489d81a7f376a859845470449d47e102be783537e2 SHA512 ef17307ce9b86ca0250a6b7dcf564f13898cc059b221a5d5aec51e3042e8be574a540dee3aaf6f8934262dee91535f2e1b1573f1b21a8223dc75a29492e2e4e7 WHIRLPOOL 44f9fca322c537be1e7544c63dca056664fe399226e8f71e3d3bb7b5a4765d6ad7e6b972b7f7adce59eb37ae1873159a24757b9c3d336b332dc12de0fa1fa7b6
+DIST _casablanca_-default-1.0.tar.gz 129819 SHA256 d27f75ac98d3adb6825b9ce087e29858f032cb5369b2f799c0b60e84141d114c SHA512 a5acdf04c67d810acf486f999e1a6b08882d290ec9b08935070622e744e9b482b84a8b3aa03eb1383b79b83e88200e75966b358ead8221b59deebfad01ae49f4 WHIRLPOOL 331f4d5c50d17c317cded70f488b7904459b2e8f4da9d489eedf7c1a00e016d19809e1f276479e6db357bec424842843e6e96964f0888cfff59dd8accd55ceec
+DIST _dragonfly_-default.tar.gz 907660 SHA256 5731e7889f29fd8b63b3030e76b51fc592eb613fca7759d8b93c7e50825cfe0b SHA512 874831d8e92d9d4ab681090f5756ab9d9c05e1caf03d512ea20c62861c7e77c3aba389db41e06b68a3c72844cf9bf530105be21893218377bca7b6e26f37ed51 WHIRLPOOL 0a497735b2ec74244ffa82be57fa60b49e3791b8a5c9add7fdbd58c792c669e518a9d9106cf9dade7a56fed00aee3d91701ba6fc22b9daf9fa0ec489434db174
+DIST _matrix_-default-2.tar.gz 371502 SHA256 d67b801f0146c035d60869284c5336cac2ce622a78c1000baaacc15737365242 SHA512 c992a4dd191e00b0f3f26adac9c584ab1dfa0f2fbd70ab3f8e956d3f14078bb19bb8eac69f48332b562a64394f58659943ede19e3428acafb535d7204fc9963e WHIRLPOOL ff44bb5c305d5dc6e7c8fffbf54c180af6252a5d9c4ec5062c7e2a6bf515f33e9592b31bff9eb55a742ee84a0cdcd4e694faea7d4cb24867cf818b45a5f54583
+DIST _vendetta_-default.tar.gz 874809 SHA256 7f5445c3b0a12b49139ae29b4bbec41031b25bd7407aab4915b79e49162476f7 SHA512 1e53d74f6fa87dd2520d06d96b27dccc46640d4f8ec1ff7c35f7c7dc91cd2fc202dc233b9fbc507c448d34a28a5a8da1b45dc45c4e672aabbd1f706366043365 WHIRLPOOL c031a888e9b62ecc4bfb47da6cd8c869caa33fe3d9b2100b314c07276699de4a033f289cfdf6416d31c3a2e1492eb523b0cb40f01d3418cdc710b4067e8a53f1
+DIST adc-default.tar.gz 361240 SHA256 981df75ddbd237a77841309bed9197737d847e39862e3b38be0341c3c04401d1 SHA512 7cef6c54d08d2fe686f36d8f2c6a27ab45e8dca7fcad41034de03a9e5b49532be9f4e16a051b440020f6c596d1d6cd6a161818a1f70ad292c1e555a845e16a8d WHIRLPOOL a25b8613ed8a740b66bf83bcc94997c4b10386cbd6cb46619667344ca5579de45407a07a4d26ca462b1fa8e2c36fea47dec3b8f29ba212fa1442a22522daf5e0
+DIST blnkftre-default.tar.gz 49770 SHA256 7ac6969aa2d10a6c8d34d17cd0b291c90217e275104723c90858f48ef156270b SHA512 e46b29db4dfe4de0d65396cecf3680138bf30b424abe3d9def08f06bbcf27f006bfb24a42b4ea9dbc882a1dd05ab23d7da790c55f086f70ea53c8e60c485436f WHIRLPOOL 3f5af559cb58e6eb38c1ee1080b98949161d436ae4815b5aececf4668ff55c498ba0060e8be1b9ce8002f47726349cf41781b98d3b7fd219bd4a8c875fc5b65d
+DIST chaosr-default.tar.gz 402463 SHA256 2c90c861ede0621dd194ef22db0e5c8e0be886d983db0bc39f5db987df4551b0 SHA512 6d0be14db77b46f0406bb6b83375eacc6b538705aa4fcbc322b3e9801d1e29318959a86ba45afd10cfdd88fb42eccb20b89edd6972176a70dd0d925ab4c234cd WHIRLPOOL 854a1353805913df4a2ccaea05c3b67b57bd25dd6afc3b6975d3f933f91041d0d44b1250bdc89ffac449183d697f67a4f6fe8d6dd3e477958c449bc297a91284
+DIST computerroom-default.tar.gz 985602 SHA256 335c9b327267c47ad4fdb3e8d2aacf49d953fd16827673d212e3e4fd4a7afe2b SHA512 037a77f4282c08e98f46621ce046d029f54588c52d2f5ea5eae630dc8c25280b27b45e584ac71726e9fc2f633e6e3afe47550fca480592bc699570c0dd86a5ec WHIRLPOOL eac338e99d5c9747482395e84f03858a91648b6feed7d8a91d1e76c8b11c6ecc0868c2e4629abe452056c26558e514dbcecfcad42f12d285986947d485279004
+DIST fgdm-default.tar.gz 206988 SHA256 661c0e4d14868e8d74d5a000539dd41042abc9f87ef9bc0f737f45375c710d82 SHA512 fa997586624393f8013a6859e76a956bb0a4eecf15f066508614cb71089b23054e269589697981fefb2bd5a2749cf2be4818a88fa51de78a787bcd27087c5d7e WHIRLPOOL 5c1af7f5274d7fc11a8ef2497794877c46ae259384c649f03fbd378dd9acb6f8d6c8b699b601d185705cf28a11843ebb3714ec047c295fc6dc9f3cd3b4876415
+DIST fireplace-default.tar.gz 1392742 SHA256 7d17a2cebeb1de12d09fb42b8b54f227844e8621506f8554d56d38c46ea71768 SHA512 cc94143f64f1ca20b1441c5abc58860c9bcc9472c0558c52cbacb3805c56e3fea40aa500c59dc1a01a3beca85eee70eb9b7acde9f9a137452e8b22dbf2388a42 WHIRLPOOL d9cfad2ca5ccd3e1c1b39162e31574d14aa80eecced65c9548b7f37d8a46e0a2ce778d1ac572ecf0b084f91f8720c52958f70866e39ceea000853603a564c894
+DIST fkdm-default.tar.gz 226868 SHA256 0ee44e066ecde10f8c1906684560dfdedecd2d419414123e8276cb990374c448 SHA512 8354afd34b289dd4cd52d65209ceacbe0eb8675442e7e4e643591f014c8d4011a01e69773144b86822fc4667fdf6ca29cbe969071f895a58c16d0d46d8d92b1b WHIRLPOOL 0e3aa05f80bb36eb5d01b8174fa37a83b97bd530a0063067f7fea03fddb40830a0460b40d5a64c38dc2817036da034980716ceb16a7c6d71125d6560710b5238
+DIST kitten-default-1.0.tar.gz 103467 SHA256 4270d799c93687811ba4977ed828d184bf98921190f668d8998131f3d7736dec SHA512 4f2907bc212cb22f7ca707f291c396b025d408db34b901a9ccc6a55b6148b32c1fe717be960e152e35920ae38d73195001eb6277adf3f06388787839b705002a WHIRLPOOL c63d42b6c68260b772ef431d729e89008763e93cd58e907afeba6bd0c9dc3f3331aafdd32e16f876e25a8bbcd8e7713c3a4142b09a3e06c9dff56b195a163ee6
+DIST lambretta-default.tar.gz 214789 SHA256 d9462603d8b9559d72dbd714158989b13b78002163bcc960a7ffe6d32f1c517a SHA512 9dc1c00676935cb6dc566f07153785894e2cef5f2b9e28abbaa56d3660ffafe4c5b93738ff51711f2093b2941ed584491e6352d771dee06d6ed5966d6f61e921 WHIRLPOOL 153f3f2597b145d714dbee803ebbc1584377c70686bf755787f3a2cc9d0d985f42dc5d889bae0b188c87b1353a606061aef1c2786dc98f2919edf9b2d4b8563b
+DIST macmen-default.tar.gz 313117 SHA256 e3f65f3dad7a08795f38e92472f9690e8dc98f6fc2f3ac755d3b157309159247 SHA512 52e26231d9105dbc5d10e2f171518ee66d91f8db463f9f55a776bffd95a141280e4853c9a7b9f06ea294473d6cd2bcd45c46d92504515b6bd716ea6f3314ddd4 WHIRLPOOL 644e3c60b8b8ef05346ce9f70fc8f56a3a3678c4615879bae42d4e96c1dd48e720df6906fb4ae333aa34705e2f32274c7b35c068e6d7e5149c99122aecdf37fd
+DIST qingy_lila.tar.bz2 433944 SHA256 acbdf26b75096fce253ef426a47b58fc1706b8c7131566257f74fe08fdb5bcbd SHA512 9255d1a5ad5d0832302f30a116d34bc1360a3acb417da6bae3febbf0a1d0afabc72583d85fcb63d93930e2f81d1329353aecc94e07431ae3675be83357a4b9c9 WHIRLPOOL d175d1d41febb0970280af326a1e1e9b61303673ca92502ee94be9a39abd86649bb84d8bfbaf067ba29797f5bfa00b058dcaaffb1c9ad8f05fe78369b0d38b19
+DIST rouge-default.tar.gz 233178 SHA256 a1389912a9d41fa471e0f571cf87edf8da0acc2001600267de6c0e7425448cd3 SHA512 18f1dc0d55829b6822bf10b659dbb140c43cbc9e7fc230beaefbfd8566348cf531c8f3b98ef70c154ea41c6d13d27cbfd68b78c40d7b29f245601fe82eeeda24 WHIRLPOOL 4f580b5c079ba2d8b80574cd0669831ab7d373b31269a86a7b3b2afde918ed146276a716b399991b23b4d1c95499978eb5457a93e51112b69224d7fd6eb0271a
+EBUILD qingy-themes-20050816.ebuild 2308 SHA256 cbb3a5c34836dc75ae4a69e39b2a0c9e42f05f42e5f9bca43f9937eb0ececf9b SHA512 c02b616330ddf407c2a97198c507db088ccd5d65821379594fac908474a558ef747afa203c8bd83187753e74ff689888a0cd0b3ee4a7f91ccb9222c68283227d WHIRLPOOL 5ffa640a33e4b3191b317a2ec1e554e741b8bebd5f06d3199861773e91d6326b64a220c545d2bee6abf310981bdd1b1c31c8b48221f74ce676a84b2ecb384395
+MISC ChangeLog 2544 SHA256 8c23da0ac8df1042664016f0556438a6c65318ad364332ee01ade62354065632 SHA512 4efe20b65297b39fde5cc23d2a51062b5d2231080dc5adc9d56b86967307806817ccb6c1b1487cbc624d3c1936af3b3f2a0f02421da76cd1a8995ebc455b3d13 WHIRLPOOL 2e2b1abf0c08c6f17b377d86c5431dc5b03fa41f54e214bd9f757d3dc4033d9b33fff9e2381ef20d27175d77bd18959d66cdeb7ffdc57f01a604fae37b785737
+MISC ChangeLog-2015 1200 SHA256 a9de68e88ce36326d2744376b50a2f7f73f4c79d75105f3142bfe3ec9e1c3e13 SHA512 f04b33bb93affc788eecbebee7996e8a496101c14771bb5af7535f940ab9643f16da5362f37e99375040fdc9dee61f7d61632bbea1c049b9b65ec077464874a9 WHIRLPOOL 77075bfeb3d6635a179feff0da257d6cdeebfa81f5a6ae6cef34854691c7846bc822bfd672bbe0c5b7d2242f3f499fcf7dfe0397ab71a7099cebf9505b1f5c40
+MISC metadata.xml 166 SHA256 2caff447f5bd2701d8456ada5cc633c41ef4373fa4bfeabeb73599d40bcc941b SHA512 a56648c974a1d14dd4c18237532773c72057a13ab90c58b5da04f185e3c12a8bd8d5c21fb06053507f31766291a82dc7d87b34cd65fd94cfe2af7295c813ef84 WHIRLPOOL 1ff70497eca6531f0e0614c72a19f4b8e5ff486a58d369f4f0b36308d1d6b01168f9da887740e3b9f536236be251d3fe05f904d27a9233a7cf613416ba882968
diff --git a/media-gfx/qingy-themes/metadata.xml b/media-gfx/qingy-themes/metadata.xml
new file mode 100644
index 000000000000..6f49eba8f496
--- /dev/null
+++ b/media-gfx/qingy-themes/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<!-- maintainer-needed -->
+</pkgmetadata>
diff --git a/media-gfx/qingy-themes/qingy-themes-20050816.ebuild b/media-gfx/qingy-themes/qingy-themes-20050816.ebuild
new file mode 100644
index 000000000000..2ebb33ab95aa
--- /dev/null
+++ b/media-gfx/qingy-themes/qingy-themes-20050816.ebuild
@@ -0,0 +1,64 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+DESCRIPTION="Collection of qingy themes"
+
+HOMEPAGE="http://themes.freshmeat.net/projects/qingy-lila/
+ http://themes.freshmeat.net/projects/kitten/
+ http://themes.freshmeat.net/projects/blnkftre/
+ http://themes.freshmeat.net/projects/fireplace/
+ http://themes.freshmeat.net/projects/_dragonfly_/
+ http://themes.freshmeat.net/projects/computerroom/
+ http://themes.freshmeat.net/projects/_biohazard_/
+ http://themes.freshmeat.net/projects/_casablanca_/
+ http://themes.freshmeat.net/projects/_matrix_/
+ http://themes.freshmeat.net/projects/adc/
+ http://themes.freshmeat.net/projects/rouge/
+ http://themes.freshmeat.net/projects/_aquaish_/
+ http://themes.freshmeat.net/projects/macmen/
+ http://themes.freshmeat.net/projects/lambretta/
+ http://themes.freshmeat.net/projects/_vendetta_/
+ http://themes.freshmeat.net/projects/chaosr/
+ http://themes.freshmeat.net/projects/fgdm/
+ http://themes.freshmeat.net/projects/fkdm/"
+
+THEME_URI="http://download.freshmeat.net/themes"
+
+SRC_URI="http://jefklak.suidzer0.org/downloads/qingy/qingy_lila.tar.bz2
+ ${THEME_URI}/kitten/kitten-default-1.0.tar.gz
+ ${THEME_URI}/blnkftre/blnkftre-default.tar.gz
+ ${THEME_URI}/fireplace/fireplace-default.tar.gz
+ ${THEME_URI}/_dragonfly_/_dragonfly_-default.tar.gz
+ ${THEME_URI}/computerroom/computerroom-default.tar.gz
+ ${THEME_URI}/_biohazard_/_biohazard_-default-1.0.tar.gz
+ ${THEME_URI}/_casablanca_/_casablanca_-default-1.0.tar.gz
+ ${THEME_URI}/_matrix_/_matrix_-default-2.tar.gz
+ ${THEME_URI}/adc/adc-default.tar.gz
+ ${THEME_URI}/rouge/rouge-default.tar.gz
+ ${THEME_URI}/_aquaish_/_aquaish_-default.tar.gz
+ ${THEME_URI}/macmen/macmen-default.tar.gz
+ ${THEME_URI}/lambretta/lambretta-default.tar.gz
+ ${THEME_URI}/_vendetta_/_vendetta_-default.tar.gz
+ ${THEME_URI}/blnkftre/blnkftre-default.tar.gz
+ ${THEME_URI}/chaosr/chaosr-default.tar.gz
+ ${THEME_URI}/fgdm/fgdm-default.tar.gz
+ ${THEME_URI}/fkdm/fkdm-default.tar.gz"
+
+# lila -> freedist
+# all the others -> GPL
+LICENSE="GPL-2 freedist"
+KEYWORDS="amd64 ppc x86"
+
+SLOT="0"
+IUSE=""
+RDEPEND="sys-apps/qingy"
+
+S=${WORKDIR}
+
+src_install()
+{
+ local QINGY_THEMES=/usr/share/qingy/themes
+ dodir ${QINGY_THEMES}
+ cp -dpR * ${D}/${QINGY_THEMES}
+ chown -R root:0 ${D}/${QINGY_THEMES}
+}
diff --git a/media-gfx/qiv/Manifest b/media-gfx/qiv/Manifest
new file mode 100644
index 000000000000..f5a80b218f2b
--- /dev/null
+++ b/media-gfx/qiv/Manifest
@@ -0,0 +1,7 @@
+DIST qiv-2.2.4.tgz 98874 SHA256 ed6078dc550c1dc2fe35c1e0f46463c13589a24b83d4f7101b71a7485e51abb7 SHA512 744014ff70c9397d7a90e60740f482976713c9e5ff295a03684ae7b50ae70b86589d9e9066702fd43241bf2767c3537f582aab5ebbde25caea1663ec825f76a5 WHIRLPOOL 4587a9f467bf5bd0cb35040372bb3d445e900f0c93f44f186b939afedd9d2ea0a707c91b63987857c9bf9ead3a943fabb72a87f3e3b9f8256932ec3304dbb213
+DIST qiv-2.3.1.tgz 130621 SHA256 675396b539e6511135fe73c867f9fdd6d912c24c7562797cb047c27d0c2c8ee6 SHA512 5a9b8ac082c78071c903e2f10a98effc412c0b6b940437b6592077978de03b5c7b6192e4d696f0389c12e99e0d3b5ca40c3be54ca2dfa5439121af2415f32812 WHIRLPOOL c890059062ca33886b34ea2cf146854431770af03cf5720c205dfd494023b64297b536decc70fe6b8a8b2a7879a4917f3dfd496d1e207dbb92d28d5114b32d06
+EBUILD qiv-2.2.4.ebuild 832 SHA256 7b81986016864c9d9c9902a3305b011ea904b57553c9ddb226c9733f05be99ee SHA512 610f4ac7c6d976fa7534b23df722853509286eb49e96baf713224dc2a82369863b3715c0f09ca8420de6c6b46157191ab840e7a2e4299f56556a7099625ef48f WHIRLPOOL 2182673ecb7a4db0754df20e5c906130bbf20528e4c58138f2abc40e02fbc6384b43d1ababc5b36e1c96f4da3e2d798a5060273aa09018ea3e7424938172935f
+EBUILD qiv-2.3.1.ebuild 1217 SHA256 5d7cd4363be7d05fe179caf151a1cc3696107a98b85ae355bf72516f5929a562 SHA512 9fe3f72b32268fb86c1e65376b87437d099033429e2ddc4e6e928e2ec99a3c0a96a3aae2f13f6e17bdd7558a29f996b877c7148cbf8b9c1c2fb8f48c7808d06c WHIRLPOOL a4e7e1d2493389f020aac31bf1e699fcdeab162a08a4bee82b77a3b10e998b91b6144f25996b50231f86ccf4f5eb2fd6413901bffdbde735a3048bfa2c2fc5fe
+MISC ChangeLog 2460 SHA256 bcc36563dc54d717447f9fbc17a5facddc72759cf3b84cf361538096a5ec289a SHA512 cd8ee3f9dd36a00a3baf12ea6455d86ea8488aaca83c3570ef021f7d1947a92b397b289f6bb4a529579f636fc6fdab282c73c7e704944cb2cd699c839c964686 WHIRLPOOL 2c50575a0e83b846995faecda93b5cb20d6f7f9e5935c7850379ca19d93bb3285b3b98936110fb940a830d90e02eae0565e5a0b6e6c1db625a1fc1b6c45127f3
+MISC ChangeLog-2015 1460 SHA256 1fc1f6bf6c45d099fa9d29e04bfb3808f937b32a04784effe078227bd020645b SHA512 23ad28699c23109577e0df1c1ede141d5bd5d394ecc9ed2b41db78f567f493413058d7acfe7b81ee818c293cd7f3fcca63717b3d38c47dfb0e2e8350de9c06ec WHIRLPOOL 4b500d970cf95e754abc8b8724daefa042a433938b2ae87a92717d7699aea5c994ce87f54dd1f5d9aa7aafc13b2209f13053d418fd11a62c98bf4b5923e8d765
+MISC metadata.xml 338 SHA256 fc8f3d60d759aafdfe2fa32d867c1578e1146a16966bb7bda9527b55b4b1eeaa SHA512 67b1a99367a1b89fdcf2b8775b69a516e0cd4f2135f5071998049a21613b4237df7a578682534d6a40a418c9653e417a3177256a074ebb3a3cfac6ada429c757 WHIRLPOOL 14649ab75119259f76a2212fb3c0f1a9d0e67876cfba3ca76af66417b577d0277c381eabc8905449acfec9ee07790758984cb3c7e966ad81ec2402e9b2f856f4
diff --git a/media-gfx/qiv/metadata.xml b/media-gfx/qiv/metadata.xml
new file mode 100644
index 000000000000..9cc5dff0ad50
--- /dev/null
+++ b/media-gfx/qiv/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>
+ <use>
+ <flag name="magic">Use libmagic to determine mimetypes</flag>
+ </use>
+</pkgmetadata>
diff --git a/media-gfx/qiv/qiv-2.2.4.ebuild b/media-gfx/qiv/qiv-2.2.4.ebuild
new file mode 100644
index 000000000000..f26a883e40e5
--- /dev/null
+++ b/media-gfx/qiv/qiv-2.2.4.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+inherit toolchain-funcs
+
+DESCRIPTION="Quick Image Viewer"
+HOMEPAGE="http://spiegl.de/qiv/"
+SRC_URI="http://spiegl.de/qiv/download/${P}.tgz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~mips ~x86"
+IUSE="xinerama"
+
+RDEPEND=">=x11-libs/gtk+-2.12:2
+ media-libs/imlib2[X]
+ !<media-gfx/pqiv-0.11
+ xinerama? ( x11-libs/libXinerama )"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+src_prepare() {
+ sed -i \
+ -e 's:$(CC) $(CFLAGS):$(CC) $(LDFLAGS) $(CFLAGS):' \
+ Makefile || die
+
+ if ! use xinerama; then
+ sed -i \
+ -e 's:-DGTD_XINERAMA::' \
+ Makefile || die
+ fi
+}
+
+src_compile() {
+ emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}"
+}
+
+src_install() {
+ dobin qiv
+ doman qiv.1
+ dodoc Changelog qiv-command.example README README.TODO
+}
diff --git a/media-gfx/qiv/qiv-2.3.1.ebuild b/media-gfx/qiv/qiv-2.3.1.ebuild
new file mode 100644
index 000000000000..12439b7f9774
--- /dev/null
+++ b/media-gfx/qiv/qiv-2.3.1.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit toolchain-funcs eutils fdo-mime gnome2-utils
+
+DESCRIPTION="Quick Image Viewer"
+HOMEPAGE="http://spiegl.de/qiv/"
+SRC_URI="http://spiegl.de/qiv/download/${P}.tgz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~mips ~x86"
+IUSE="exif lcms magic"
+
+RDEPEND=">=x11-libs/gtk+-2.12:2
+ media-libs/imlib2[X]
+ exif? ( media-libs/libexif )
+ lcms? ( media-libs/lcms:2 )
+ magic? ( sys-apps/file )"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+src_prepare() {
+ sed -i \
+ -e 's:$(CC) $(CFLAGS):$(CC) $(LDFLAGS) $(CFLAGS):' \
+ Makefile || die
+
+ if ! use exif ; then
+ sed -i 's/^EXIF =/#\0/' Makefile || die
+ fi
+
+ if ! use lcms ; then
+ sed -i 's/^LCMS =/#\0/' Makefile || die
+ fi
+
+ if ! use magic ; then
+ sed -i 's/^MAGIC =/#\0/' Makefile || die
+ fi
+}
+
+src_compile() {
+ emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}"
+}
+
+src_install() {
+ dobin qiv
+ doman qiv.1
+ dodoc Changelog contrib/qiv-command.example README README.TODO
+
+ domenu qiv.desktop
+ doicon qiv.png
+}
+
+pkg_postinst() {
+ fdo-mime_desktop_database_update
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ fdo-mime_desktop_database_update
+ gnome2_icon_cache_update
+}
diff --git a/media-gfx/qiviewer/Manifest b/media-gfx/qiviewer/Manifest
new file mode 100644
index 000000000000..e3a1aa76f357
--- /dev/null
+++ b/media-gfx/qiviewer/Manifest
@@ -0,0 +1,6 @@
+AUX qiviewer-use-system-webp.patch 1510 SHA256 31a32ce304a8e44ffc1307b8e99a0bba587039687763ffc5e208794c70d10bb3 SHA512 71d5e1c51aed1a9b576e30913bf9841151cc3755b7fc12a07ee5f4dfc213427d4e6a0c193f657780b364a37ab51dc4bb0c186589e18c685db870992b1dfddb9a WHIRLPOOL 9cad2e335151f8e4bbb4553f69b3d37f0f83f5f6d8f89a3dd5d1e9e9e6639b3afbc666ee621fcbd09eaa91e324d0e63184061c2a298dffbb8b0d4cec428c477b
+DIST qiviewer-0.5.0.tar.bz2 177201 SHA256 99d997ea1b05187794c14773402215178d3a21198231edd95f309badbb73010d SHA512 f9a75020085576f28b1e38e12a0e69d4b5efbedca5602ad1b47583a220eb50f6967f87764658b1d38ac696ed45134d580d3971c1d791a3156f28c55dceaa7fc7 WHIRLPOOL a9a808b22f11d111bfcb1d38ea099e3a95932982387b17f204d5ee7dc85562421057398fa99cab08110075a16f8ef443186a4189cc106b003367c35d58899cf7
+EBUILD qiviewer-0.5.0-r1.ebuild 1532 SHA256 04254a9e35c9cf2e586cb28610fface4479d4e38880540401eb03c050a109c2f SHA512 59470e04325c4141472480eeec4651d23363f85323bc4ba7464f4d4ab00201da33a49b56a37d819f792e73e72b1b0fa80b5f73c5ef2eabd582dce5ec03856d83 WHIRLPOOL 22474e4966df4b230bf5f5aadf24d6a3d2669413d0fe047672477faf45d12e93d5a6807bd8ba9cc4fe9e4dfdef6e8bdbeef75a6ab17797aca494c48c7db42bad
+MISC ChangeLog 3395 SHA256 288d01110d8a2f674a8b5967258b671622341ea8ae0568b5e85f04950cc145d4 SHA512 39e94d0208fc162c98841554147940aad8915a41c9a03f52b308272f2bbacd1df724f82b66864a84153a267c20c016c244120f0d3daac85779c122ec573c3632 WHIRLPOOL d80a748425b5ef6ee780f6fd18a5a51e8d240b941c54c1d626d0d8b5f43065107488f3601c97379b7c2a67fb2db74f68c75a107a6adc31a867e33026d54d0720
+MISC ChangeLog-2015 1076 SHA256 9933a5a0a6627363d74269d6836d30f66b28e771bf40be95744ef335dace4242 SHA512 175ef244bbc1ffb9338470947975839ac4f649c0ea07bf4ba9f1738ecc5244d95e520b945041ae42a0c886a6f450eb051adcd9fbfc66d8c4979aca5eb4984b21 WHIRLPOOL 480e08c3755f4dede62d2557ab928f53fce475514cbe2faef96637fe05a2a4ef820b34fc205fc9fed3e0cfae030a36a354ef6e0421b10bd56145aef63ed68328
+MISC metadata.xml 405 SHA256 497d7e22f91daaaba7e9d3b920a18c150b940a9447c51c106f05e4789baa3ac6 SHA512 2306632b70bc7344eff02381475c4d1218820449752a116aefd5df4642290134b9c91d91f49cb4c625dd415237b92c16a7f33f5291e27993970a4c8b4bbbe111 WHIRLPOOL 232f2d6be5cc9d23e0b556bf7d0942792c7822dbfb40f8db804762a275d9beb78df6703078f70105e497b9bc48f4b430a9a8d934a691c83b29b38f00f6e0256e
diff --git a/media-gfx/qiviewer/files/qiviewer-use-system-webp.patch b/media-gfx/qiviewer/files/qiviewer-use-system-webp.patch
new file mode 100644
index 000000000000..252477f7d84a
--- /dev/null
+++ b/media-gfx/qiviewer/files/qiviewer-use-system-webp.patch
@@ -0,0 +1,41 @@
+--- qiviewer.pro.orig 2012-08-27 15:29:24.435612352 +0400
++++ qiviewer.pro 2012-08-27 15:30:12.286611983 +0400
+@@ -58,24 +58,9 @@
+ message(This feature isn't ready yet, use it carefully!)
+ # rules to execute when myfeature IS defined:
+ DEFINES += WEBP_SUPPORT
+- INCLUDEPATH += . ./3rdparty/webp
+- HEADERS += webpdecoder.h \
+- 3rdparty/webp/dec/bits.h \
+- 3rdparty/webp/dec/vp8i.h \
+- 3rdparty/webp/dec/yuv.h \
+- 3rdparty/webp/webp/decode.h \
+- 3rdparty/webp/webp/decode_vp8.h \
+- 3rdparty/webp/webp/encode.h \
+- 3rdparty/webp/webp/types.h
+- SOURCES += webpdecoder.cpp \
+- 3rdparty/webp/dec/bits.c \
+- 3rdparty/webp/dec/dsp.c \
+- 3rdparty/webp/dec/frame.c \
+- 3rdparty/webp/dec/quant.c \
+- 3rdparty/webp/dec/tree.c \
+- 3rdparty/webp/dec/vp8.c \
+- 3rdparty/webp/dec/webp.c \
+- 3rdparty/webp/dec/yuv.c
++ HEADERS += webpdecoder.h
++ SOURCES += webpdecoder.cpp
++ LIBS += -lwebp
+ }
+
+ # Tell Qt Linguist that we use UTF-8 strings in our sources
+--- webpdecoder.cpp.orig 2012-08-27 15:29:30.110612309 +0400
++++ webpdecoder.cpp 2012-08-27 15:29:49.919612154 +0400
+@@ -2,7 +2,7 @@
+ #include <QPainter>
+ #include <QPixmap>
+ #include "webpdecoder.h"
+-#include "3rdparty/webp/webp/decode.h"
++#include <webp/decode.h>
+
+ WebpDecoder::WebpDecoder(QWidget *parent) : QWidget(parent)
+ {
diff --git a/media-gfx/qiviewer/metadata.xml b/media-gfx/qiviewer/metadata.xml
new file mode 100644
index 000000000000..a712eb06f83c
--- /dev/null
+++ b/media-gfx/qiviewer/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>pinkbyte@gentoo.org</email>
+ <name>Sergey Popov</name>
+ </maintainer>
+ <use>
+ <flag name="webp">Build support for WEBP image format</flag>
+ </use>
+ <upstream>
+ <remote-id type="github">samkpo/qiviewer</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/media-gfx/qiviewer/qiviewer-0.5.0-r1.ebuild b/media-gfx/qiviewer/qiviewer-0.5.0-r1.ebuild
new file mode 100644
index 000000000000..d75250f855a0
--- /dev/null
+++ b/media-gfx/qiviewer/qiviewer-0.5.0-r1.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+PLOCALES="el es_AR es_ES"
+
+inherit l10n qt4-r2 readme.gentoo
+
+DESCRIPTION="Lightweight image viewer, similar to eog or viewnior for Gnome"
+HOMEPAGE="https://github.com/samkpo/qiviewer"
+SRC_URI="https://${PN}.googlecode.com/files/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="webp"
+
+DEPEND="dev-qt/qtgui:4
+ webp? ( media-libs/libwebp )"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/${PN}/src"
+
+DOC_CONTENTS="If you want support for gif and tiff images
+make sure that you build dev-qt/qtgui:4
+with apropriate USE flags"
+
+src_prepare() {
+ local LOCALE_FILES=""
+ add_locale() {
+ LOCALE_FILES="${LOCALE_FILES} ${1}.ts"
+ }
+
+ # Check for locales added/removed from previous version
+ l10n_find_plocales_changes "${S}/translations" "" '.ts'
+ # Fill list of available locale files
+ l10n_for_each_locale_do add_locale
+ sed -i -e "s:TRANSLATIONS += .\+:TRANSLATIONS = ${LOCALE_FILES}:" translations/locale.pri || die 'locale sed failed'
+ # Fix mime types in desktop file
+ sed -i -e "s:^MimeType=\(.\+\)imaqe/x-xpixrnap;\(.\+\):MimeType=\1\2:" qiviewer.desktop || die 'desktop file sed failed'
+ # Use system libwebp
+ epatch "${FILESDIR}"/${PN}-use-system-webp.patch
+
+ qt4-r2_src_prepare
+}
+
+src_configure() {
+ local _webp=
+ use webp && _webp="CONFIG+=enable-webp"
+ eqmake4 ${PN}.pro $_webp
+}
+
+src_install() {
+ qt4-r2_src_install
+ cd "${WORKDIR}"/"${PN}"
+ dodoc AUTHORS ChangeLog README
+ readme.gentoo_create_doc
+}
diff --git a/media-gfx/qosmic/Manifest b/media-gfx/qosmic/Manifest
new file mode 100644
index 000000000000..d560bfbaeeec
--- /dev/null
+++ b/media-gfx/qosmic/Manifest
@@ -0,0 +1,5 @@
+DIST qosmic-1.5.0.tar.bz2 367993 SHA256 cf3461d9611092636662c21d601f43ebdac95474e0e049b34cadd6b0ef07b945 SHA512 38f73db991587b0607b5b1670578e4b109af3f54b31ada41e7af57c068fd65250aa7285e1765052059e4d4670ad42c4a5da626e475d17110f1517b2d55a9df4d WHIRLPOOL 10f1a081cc0bb5478a5a3915c49faf86c1bcde8641eeca754439bbf30abe52a86c44e6de6ea0f3c49ec24cab22ee2e0ffcbb2e6ae2b798872384d563ab110cb4
+EBUILD qosmic-1.5.0.ebuild 575 SHA256 1701d7868fd27ab1690e2c798ed64788150e6be20311ae9be68661a10e0702c9 SHA512 61b2ac4ef06d4afaba6ca8a173c39ce009c0361a8054c274ccf8fa3bbb8ef76f77801bfe27f62ae38b3a08f71078212c14fcb32b728f9ebd4738a600f1fed7fb WHIRLPOOL 92ffce2d246c163e7cf5a36deff170220a7aff1e45b5fc44e395b97c8634c7c2c07cc52681fd6a1775eb61c22304ff89494ca77c2f0ad8c41cf45706f4a5d416
+MISC ChangeLog 2882 SHA256 b31efd5c7e61437adc45026b8609b423b6add3095bb572d32744c026b3f567ed SHA512 5a9929c4a023f5153439a62248a33a672d367620d93526f77764e2a2dfdbfc83e0dc4d12891a31fde5f5fb434eda53501ec0243b997ceb6b25db7d0b8e7aff8b WHIRLPOOL 0b7b72cfa24bbdcc3804da9dabb81cd7502ff5a0c14203b8e0754b8735771abaa8ecf41823bbb83dbb617faa6c2738a34c8e8f521cd85b338fd34266da50e0d6
+MISC ChangeLog-2015 1055 SHA256 cbe070f9cafe8cca421d4fb2cb75be9d3eeb1a44bf16cc76e421454cafce36ec SHA512 dcd3a98d8890d4231eb69b04b783a344653726e5d6c04783cb1d1a1ef41ca3ddcccfca7da4600953df9efe46ae677ae8e3eb8194f4726b246fce94125c520be6 WHIRLPOOL 588f5334c76f91eea231dd21ab058dcabd33f93561519c4b761ce48f0f16cffedbb6dc49e0910b61a9333e9c49a2623ec3f82614766803b08f6274028d78fd2f
+MISC metadata.xml 443 SHA256 fa7abd22c13963d2716c74d5d7fae92f7d02f8f445dfa27675b6c0b762de4afe SHA512 6b52798bb2b080b839a3a6bf4586882f4b4e54c2bc9c5fe8cfbdac91e17e44331b44be0c6c326891b36df94ac50cd3875c74ba478c3bdea65338aa518e7b7307 WHIRLPOOL 23a0b2d65492543b6bf8090fb77c83faba271d62bd5759a5a4ba03d03c550cda0e88d6065cf82943389853723fa7a502eb72a043a214079830468bda4b29d47b
diff --git a/media-gfx/qosmic/metadata.xml b/media-gfx/qosmic/metadata.xml
new file mode 100644
index 000000000000..ce8e31a39cd5
--- /dev/null
+++ b/media-gfx/qosmic/metadata.xml
@@ -0,0 +1,15 @@
+<?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>
+ <maintainer type="project">
+ <email>qt@gentoo.org</email>
+ <name>Gentoo Qt Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="google-code">qosmic</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/media-gfx/qosmic/qosmic-1.5.0.ebuild b/media-gfx/qosmic/qosmic-1.5.0.ebuild
new file mode 100644
index 000000000000..a9fb06f7b9be
--- /dev/null
+++ b/media-gfx/qosmic/qosmic-1.5.0.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+inherit qt4-r2
+
+DESCRIPTION="A cosmic recursive flame fractal editor"
+HOMEPAGE="https://github.com/bitsed/qosmic"
+SRC_URI="https://qosmic.googlecode.com/files/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND=">=dev-lang/lua-5.1.4
+ dev-qt/qtgui:4
+ >=media-gfx/flam3-3.0.1"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+DOCS="changes.txt README"
+
+src_prepare() {
+ qt4-r2_src_prepare
+
+ sed -i -e "/^CONFIG/s/uitools//" ${PN}.pro || die
+}
diff --git a/media-gfx/qrencode-python/Manifest b/media-gfx/qrencode-python/Manifest
new file mode 100644
index 000000000000..788cd8f7f6f1
--- /dev/null
+++ b/media-gfx/qrencode-python/Manifest
@@ -0,0 +1,5 @@
+DIST qrencode-python-1.02_pre140921.tar.gz 2084 SHA256 8c3d5d2c5479f10aa1462a9bf95390b78b47043bf56e0f581ed61a3eb9507ccf SHA512 231c61f98f064d282611d14194de7b3c0a18faff0ed856722e39a6cc25f744442d77bd43418aec117c6e39ddd78a6ea770edee8992aa4e3cfce50254ac6526aa WHIRLPOOL 44009c565bff4c330a416653e7c3863a33b25290a71e4a800f920240b11428fa945ae1c854af5f5c9b5d1d508a915f97bfdbd7c15eee791b27628912f0edd452
+EBUILD qrencode-python-1.02_pre140921.ebuild 703 SHA256 0c064d1dc2767177c501285c818a4bcabbc92138be178f244a5b179ce4ed754d SHA512 75f4be9ca17fccc62a18cb61c8f73fbb40bbc3e0a970caba5fd9b06e285c99a5da0f8b6bfb1295ab4cff0d3b26af52f24161c17718ae8677b99b4f2a2909f73d WHIRLPOOL ea52f0e4c684d5e7942dfd02c1078c07793f6f174563e212f737af28e54352fd10bed1f6e885ed45a4ed7d2f2cd4c975280782786d7f2793158d7badbe7d5b99
+MISC ChangeLog 3078 SHA256 20a3a62f49f740ae7cc2e44e6b87389277646adb3423f3fe12f2c809593eacac SHA512 cba30db43fd2aa2983361868e88ef1d887a23bd91b833ffdeff19b0516b7d904bf26fb0be8bda34b3ec9b3cbd03344e70d0ecba13e9696890a13a260ad0440e7 WHIRLPOOL ee33ce79a67ef103c5546458cef08ef1131e6fbe21649258808a7dc292db1e557bc1fce1719a0e72ca3e36b9720435243a4e4bf16679cd890d73f01167adbf43
+MISC ChangeLog-2015 1180 SHA256 daad26c534f71e238f3ada0a96116666884b5690643cffe511417191e69c85a0 SHA512 2c802ae52907929fd222a19ee924cd4c2185a4552577fd505d214f1f7bc304f99a3ea6fcba59fd91994caaf81d44684a205428f2ae2de3e88b8af59f73b80041 WHIRLPOOL 88d76fe04f32113b974f3293d0320fd369abc9baff8c172fd58808cd3388d2187f3d821418a3f735f16dbfaf017aca397ab06f614fa2223b92386b046dd6863f
+MISC metadata.xml 304 SHA256 ef2746798e04c56d87e5dbb860d72632fd431e8e5c0be1933acf6ad4737b6898 SHA512 d36db02c7fa11ce34c655789975cdac826c259dfe778a27b28221c31bc6a5e99e3ce53f0b3c0a3abb8ad29b39e937cb02379a6c93310ccb1978c62511a4c6f1f WHIRLPOOL d941059f4f5055f1a6e4546a8eb6d3a3ee964043e74a20f508ce4835b170522cb729e22c7a3c2c8fc8a9c35ca8be82b42e1094d26745f09db435700122e3eff3
diff --git a/media-gfx/qrencode-python/metadata.xml b/media-gfx/qrencode-python/metadata.xml
new file mode 100644
index 000000000000..8236bfa16a59
--- /dev/null
+++ b/media-gfx/qrencode-python/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <!-- maintainer-needed -->
+ <upstream>
+ <remote-id type="pypi">qrencode</remote-id>
+ <remote-id type="github">Arachnid/pyqrencode</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/media-gfx/qrencode-python/qrencode-python-1.02_pre140921.ebuild b/media-gfx/qrencode-python/qrencode-python-1.02_pre140921.ebuild
new file mode 100644
index 000000000000..10d25c6326d6
--- /dev/null
+++ b/media-gfx/qrencode-python/qrencode-python-1.02_pre140921.ebuild
@@ -0,0 +1,23 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} )
+
+inherit distutils-r1 vcs-snapshot
+
+DESCRIPTION="A simple wrapper for the C qrencode library"
+HOMEPAGE="https://pypi.python.org/pypi/qrencode/ https://github.com/Arachnid/pyqrencode/"
+#SRC_URI="mirror://pypi/q/qrencode/qrencode-${PV}.tar.gz -> ${P}.tar.gz"
+SRC_URI="https://github.com/Arachnid/pyqrencode/tarball/486bb7b64e3ce5483f65e375a67da0fa6d02ca92 -> ${P}.tar.gz"
+
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
+LICENSE="Apache-2.0"
+IUSE=""
+
+RDEPEND="
+ dev-python/pillow[${PYTHON_USEDEP}]
+ media-gfx/qrencode"
+DEPEND="${RDEPEND}"
diff --git a/media-gfx/qrencode/Manifest b/media-gfx/qrencode/Manifest
new file mode 100644
index 000000000000..8302e5bfeed5
--- /dev/null
+++ b/media-gfx/qrencode/Manifest
@@ -0,0 +1,8 @@
+AUX qrencode-3.2.0-pngregenfix.patch 1339 SHA256 05733f20c687ce0421f8207eb9d1e6902eb3014d07f4f0ffc51d4439b5a067e0 SHA512 3155814da1abcbf0ad3c144e3470b5b2ae9e93d9d1b1df2437dfdf16b31aaa9efb3642ceedb6facdc640685ddc41cfddf2e7266994d6ad5f1fa0f24e1473a89a WHIRLPOOL 7e42db9eec2d369ac40360e46ab54eb0f74761103cccf43fe6cbbb94feb379812a65837ccd96e48f6c9c2a733698bf686b9910b1dc78b82ad2ebc7fc51d9b714
+DIST qrencode-3.4.4.tar.bz2 369136 SHA256 efe5188b1ddbcbf98763b819b146be6a90481aac30cfc8d858ab78a19cde1fa5 SHA512 4835d462542e37e5460635e0dd84e291ff0976a6aec61c63f9950c1e60b446bc913220726e14f6379322bfd32ccd9bcd5fceed9ca10cb95343c952d8472b983d WHIRLPOOL fb5ce83ba422c361717514956e72157b5d611dc7eb33416bc621ec3fb57032ff57c3aa2eb1b1d5780608649d3424ed312c5cf7c15718baa5042542b3a42987fa
+DIST qrencode-4.0.0.tar.bz2 429244 SHA256 c90035e16921117d4086a7fdee65aab85be32beb4a376f6b664b8a425d327d0b SHA512 d4140d77fce3a1c39735cc3e98e3a19018daaa08c870644f71727d27ffb17711e76b4ed4e51718d90d812e78df75fe575617580ea9b1bf210438f8fd1734204e WHIRLPOOL 1418922ee5b8ba73ccb89417cfbbfb6fdd93520d1ab73587cc4bae97816ae9d88a91ebf5a73aef136c50b5ff33d6f7939c87029aef614ccbb71de1dd93410203
+EBUILD qrencode-3.4.4-r1.ebuild 577 SHA256 87252e40f7b1dc9a1639d2d1864d5c9ccce787e4915d5e57d585c37500f9e6fc SHA512 af41d0ff230fe92fdc21d7ee0ab93820187f1973f633dc7cc5b32140504c48729c30a9d35488cf59e90010a5852fd72111275118053789c6e5e4ccefeab35288 WHIRLPOOL 614f198f914b0ef3b93204eb26d5fbaca08ab3523843c39aff1288e9eef55dc670cf5d6fc6d56bd8fe06cc9ade3ac45c68d9a49472f4fc7d3caafe3d48b8c150
+EBUILD qrencode-4.0.0.ebuild 878 SHA256 eac250be250668f4a4813bddacd609eb4069355e0ec996c2038eafa4fffe6902 SHA512 41b35cbf75b0da794ce977fcd676a9c677410fe103833d9a7bdb92b205b1877504279422c120aaf85b097fbc04593187cfa8bebba8fbc7f6187966f20f488fef WHIRLPOOL 160e24fdadbc8e94587ce95fae91781c10416a6966ee5fbc197b4abd47029c8c7e4f7b29c064d5475f80f80578f1ecd47b02bef0b191759ca60b7c7261a199ae
+MISC ChangeLog 4046 SHA256 e171d6ae225ae9cf6b65454421aa1adc9454449f78b1de1939c85194f0136aa3 SHA512 9299d24ee13802c2b75ce20cabbe860b6bfb6c3ec1c091200780bfa1e9612554d422a868f6f77887f5f2eb6d5399f10e12e2ec448a6e0f1f27e4254929c8ca95 WHIRLPOOL 870c9589e192bea889df43876ba07057f88defb789701ad963a91b134d51df9b8da2a9513f57c4e7d490c5e830898c8a135063f2794844b22c3579937c70d513
+MISC ChangeLog-2015 6911 SHA256 ddabb7f7f63af9b265e33bb1534ee80e56420db65b0cea157b7d3ec6b81332dd SHA512 92b15103255e66db685c9f4c0d80787fc08a74570ebf9655b6f586d7ff9d96e3ea446b3cf68e5ea97881383fb3ac801d853318c90fecba323d899ddf6f9cc279 WHIRLPOOL 72ccd189c79a2375b01e9f2bb85f7b192c4b9c8ebca1c3fbe971c862a24de1fe6b2cc9f189db0209ea75a3179392492bd0c140f1c075059359a12d81e767baf6
+MISC metadata.xml 370 SHA256 ec4a78ec46ab9a85615df225063f763895e8a43fc2a191d377fb56de2dec0502 SHA512 f5987a8aab3b861bbe4961c69d0c72b07826c43320fd383075036ad63a070204c6ed41297b2490b4a14224f5c4269c37c40e5abc9bce4d1c5857e68e98d6428c WHIRLPOOL 7d4267e10127af3a24437c86adc941e93c98cca91ccba435e4038ff4c8855bc4113b97c43473f4742f597a070bc79c8e3b8975155e93c1e224ce981a37538772
diff --git a/media-gfx/qrencode/files/qrencode-3.2.0-pngregenfix.patch b/media-gfx/qrencode/files/qrencode-3.2.0-pngregenfix.patch
new file mode 100644
index 000000000000..09c15eedfbe6
--- /dev/null
+++ b/media-gfx/qrencode/files/qrencode-3.2.0-pngregenfix.patch
@@ -0,0 +1,44 @@
+ Makefile.am | 2 +-
+ configure.ac | 9 +--------
+ 2 files changed, 2 insertions(+), 9 deletions(-)
+
+diff --git a/Makefile.am b/Makefile.am
+index 55659c5..a065514 100644
+--- a/Makefile.am
++++ b/Makefile.am
+@@ -27,7 +27,7 @@ pkgconfigdir = $(libdir)/pkgconfig
+ pkgconfig_DATA = libqrencode.pc
+
+ EXTRA_DIST = libqrencode.pc.in autogen.sh configure.ac acinclude.m4 \
+- Makefile.am tests/Makefile.am qrencode.spec.in qrencode.spec \
++ Makefile.am qrencode.spec.in qrencode.spec \
+ qrencode.1.in Doxyfile tests/test_all.sh
+
+ if BUILD_TOOLS
+diff --git a/configure.ac b/configure.ac
+index 6fb1409..ca30225 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -30,7 +30,7 @@ AC_PROG_LIBTOOL
+ AC_PROG_RANLIB
+ PKG_PROG_PKG_CONFIG
+
+-AC_CONFIG_FILES([Makefile libqrencode.pc tests/Makefile qrencode.spec qrencode.1])
++AC_CONFIG_FILES([Makefile libqrencode.pc qrencode.spec qrencode.1])
+
+ AC_CHECK_FUNCS([strdup])
+
+@@ -71,13 +71,6 @@ echo "#define __STATIC static" >>confdefs.h
+ echo "/* #undef WITH_TESTS */" >>confdefs.h
+ fi
+
+-if test x$build_tests = xyes ; then
+- SDL_REQUIRED_VERSION=1.2.0
+- AM_PATH_SDL($SDL_REQUIRED_VERSION,,AC_MSG_WARN([*** SDL $SDL_REQUIRED_VERSION or better is required.]))
+- AC_MSG_NOTICE([SDL check done.])
+- AM_ICONV_LINK
+-fi
+-AM_CONDITIONAL(HAVE_SDL, [test "x$SDL_CFLAGS" != "x" ])
+
+
+ dnl --enable-gprof
diff --git a/media-gfx/qrencode/metadata.xml b/media-gfx/qrencode/metadata.xml
new file mode 100644
index 000000000000..c9678884551b
--- /dev/null
+++ b/media-gfx/qrencode/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>bircoph@gentoo.org</email>
+ <name>Andrew Savchenko</name>
+ </maintainer>
+ <maintainer type="person">
+ <email>mgorny@gentoo.org</email>
+ <name>Michał Górny</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/media-gfx/qrencode/qrencode-3.4.4-r1.ebuild b/media-gfx/qrencode/qrencode-3.4.4-r1.ebuild
new file mode 100644
index 000000000000..d08b8dbfe7e9
--- /dev/null
+++ b/media-gfx/qrencode/qrencode-3.4.4-r1.ebuild
@@ -0,0 +1,26 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit autotools
+
+DESCRIPTION="C library for encoding data in a QR Code symbol"
+HOMEPAGE="https://fukuchi.org/works/qrencode/"
+SRC_URI="https://fukuchi.org/works/${PN}/${P}.tar.bz2"
+
+LICENSE="LGPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ppc ppc64 sparc x86 ~x86-fbsd"
+IUSE=""
+
+RDEPEND="media-libs/libpng:0="
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+PATCHES=( "${FILESDIR}/${PN}-3.2.0-pngregenfix.patch" )
+
+src_prepare() {
+ default
+ eautoreconf
+}
diff --git a/media-gfx/qrencode/qrencode-4.0.0.ebuild b/media-gfx/qrencode/qrencode-4.0.0.ebuild
new file mode 100644
index 000000000000..76deeee294d2
--- /dev/null
+++ b/media-gfx/qrencode/qrencode-4.0.0.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DESCRIPTION="C library for encoding data in a QR Code symbol"
+HOMEPAGE="https://fukuchi.org/works/qrencode/"
+SRC_URI="https://fukuchi.org/works/${PN}/${P}.tar.bz2"
+
+LICENSE="LGPL-2"
+SLOT="0/4"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
+IUSE="test"
+
+RDEPEND="media-libs/libpng:0="
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+src_configure() {
+ local myconf=(
+ $(use_with test tests)
+ # TODO: figure out how to make SDL check fail as the SDL test
+ # program is not useful
+ )
+
+ econf "${myconf[@]}"
+}
+
+src_test() {
+ cd tests || die
+ # the configure test checks if reconfiguring works...
+ sed -i -e '/configure/d' test_all.sh || die
+ sh test_all.sh || die
+}
+
+src_install() {
+ default
+ find "${D}" -name '*.la' -delete || die
+}
diff --git a/media-gfx/quat/Manifest b/media-gfx/quat/Manifest
new file mode 100644
index 000000000000..854bbb2058f9
--- /dev/null
+++ b/media-gfx/quat/Manifest
@@ -0,0 +1,6 @@
+DIST quat-1.20.tar.gz 474448 SHA256 0c18262944507559a91615c0e02e3560279817544fd596051d3f1ab452566331 SHA512 eb77d628ea0e329e8bda11124bfa57e4005f06ad4d54d8bdc31eaab09fc0cf7ebf1873e7dd47624781e8ee75c7644bfc75819ce5aeb5c150644f8b7a7c81e85b WHIRLPOOL 250eabd87512250dfc9edf3f00232e53aeae6c832afec1090a2ef7b3aac4e0877b9b909cbad8295851b045bb34344d95d3cb94b64f2cd7c7564b3de5414c9b1a
+EBUILD quat-1.20-r1.ebuild 783 SHA256 d31b2cc8f86829d215e9a6137de0d868fafcb627e8b9acfd595fa357e1ee560f SHA512 a11b1ba94f2241f93d489c136967f9d0a6a5a610f523c051c32265bbbc8352615ca90403d4e1190794873e8b82a7f2c19b53a1962691161946b3ccba61ee6bec WHIRLPOOL f40fe70ce7cf560a2f286b053adee825ab8f3a282c7ebb13be9e0eb6a31fef03270de5ce4e754bae374552d5f54069829c6bd644d763bab6585a6591b3fea140
+EBUILD quat-1.20.ebuild 859 SHA256 7432c0d74c8cbf7bc825a44e993d74f3d04006e6da82ad5ee3578790436f806c SHA512 82e50cb8a8de385b6ab415482c600069ce601898e75d3cef46078fff5d9c2cd2f81511b79600ff597dd1e08440118fd745e0a47cd0b30361bd08b67bf21dcc7f WHIRLPOOL 608e480b6c8c136d03e12d0233580f20f3c5d370532ccd81a09789f9aaeb1290d4d32ada2fe11e6025a6dd7a12acdf367f4f6fe1c4d03624903254a7d1f991e9
+MISC ChangeLog 2512 SHA256 047873790fb0feee7e180a076719fa92b3d332f7b3d7e6bfee48ed3c46f23929 SHA512 6df3f65c511e978096cf440d84de2bb1d5a6363dc8bfc3b9b59885693584c794eb6b77cdda1f4ba5c7a1670a00538779a0cb8175a0bc7186e60f7dedb14bada7 WHIRLPOOL 0a8c43108114adc23be9d678fb85c97d139cfa7059aeac5535964f0e52a1e1de1625618fe5a9e10cb429d0c66379de532d018a9cec40de6ead8fd2f4aeb780de
+MISC ChangeLog-2015 1498 SHA256 768ae1d72db02f2addfa44c3efc9900063ca8b6d32fe43a1803938d3834a3f6e SHA512 60a2a08ec4f7582703738294cfbc6375c433e5c9b7803dc9892bb34e99d1994d5603f473afbdf049c1c68882e0e4e9dbdc8b2e17bf7060e5bc8e91a93af833c9 WHIRLPOOL 16fa479707dbc417dc4f47bed8385c087bf2891295cf46ac0e4c38d9afaf2c56c625fd36c85e0310db32d21c5d693e5ca360109127b2d91e4abc28fbd99e6b3a
+MISC metadata.xml 166 SHA256 2caff447f5bd2701d8456ada5cc633c41ef4373fa4bfeabeb73599d40bcc941b SHA512 a56648c974a1d14dd4c18237532773c72057a13ab90c58b5da04f185e3c12a8bd8d5c21fb06053507f31766291a82dc7d87b34cd65fd94cfe2af7295c813ef84 WHIRLPOOL 1ff70497eca6531f0e0614c72a19f4b8e5ff486a58d369f4f0b36308d1d6b01168f9da887740e3b9f536236be251d3fe05f904d27a9233a7cf613416ba882968
diff --git a/media-gfx/quat/metadata.xml b/media-gfx/quat/metadata.xml
new file mode 100644
index 000000000000..6f49eba8f496
--- /dev/null
+++ b/media-gfx/quat/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<!-- maintainer-needed -->
+</pkgmetadata>
diff --git a/media-gfx/quat/quat-1.20-r1.ebuild b/media-gfx/quat/quat-1.20-r1.ebuild
new file mode 100644
index 000000000000..9769ad572424
--- /dev/null
+++ b/media-gfx/quat/quat-1.20-r1.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DESCRIPTION="A 3D quaternionic fractal generator"
+HOMEPAGE="http://www.physcip.uni-stuttgart.de/phy11733/quat_e.html"
+SRC_URI="http://www.physcip.uni-stuttgart.de/phy11733/download/quat-1.20.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE="X debug"
+
+DEPEND="X? ( =x11-libs/fltk-1*
+ x11-libs/libX11
+ x11-libs/libXext
+ x11-libs/libXft
+ )
+ >=sys-libs/zlib-1.1.4"
+RDEPEND=""
+
+src_configure() {
+ export FLUID="/usr/bin/fluid" # needed because configure tries an invalid option
+ econf \
+ `use_enable X gui` \
+ `use_enable debug` \
+ `use_enable debug prof`
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+ dodoc AUTHORS ChangeLog NEWS README
+}
diff --git a/media-gfx/quat/quat-1.20.ebuild b/media-gfx/quat/quat-1.20.ebuild
new file mode 100644
index 000000000000..275fd898170d
--- /dev/null
+++ b/media-gfx/quat/quat-1.20.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+DESCRIPTION="A 3D quaternionic fractal generator"
+HOMEPAGE="http://www.physcip.uni-stuttgart.de/phy11733/quat_e.html"
+SRC_URI="http://www.physcip.uni-stuttgart.de/phy11733/download/quat-1.20.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc x86"
+IUSE="X debug"
+
+DEPEND="X? ( =x11-libs/fltk-1*
+ x11-libs/libX11
+ x11-libs/libXext
+ x11-libs/libXft
+ )
+ >=sys-libs/zlib-1.1.4"
+RDEPEND=""
+
+src_compile() {
+ export FLUID="/usr/bin/fluid" # needed because configure tries an invalid option
+ econf \
+ `use_enable X gui` \
+ `use_enable debug` \
+ `use_enable debug prof` \
+ || die "configure failure"
+ emake || die "make failure"
+}
+
+src_install() {
+ make DESTDIR="${D}" install || die "make install failure"
+ dodoc AUTHORS ChangeLog NEWS README
+}
diff --git a/media-gfx/qvv/Manifest b/media-gfx/qvv/Manifest
new file mode 100644
index 000000000000..ab88da26b1a3
--- /dev/null
+++ b/media-gfx/qvv/Manifest
@@ -0,0 +1,5 @@
+DIST qvv-4.02.tar.gz 1837213 SHA256 94a765027a1c737a845a258c5a2765f8f10e9f21fb9d4588246b5e7dc2b138fa SHA512 2cd82b4c1a1664e2ab2df4b9de21c6504c44baa634e370a0365257f0b5c906d3588af371e754b2a26d86527568aded40112095f55141e159f54ce8d8b663bc6c WHIRLPOOL 8d9a3531b69a525e0900cd23c4645f201121253937d6190f9bf028870fc7d07c115c80db153cfc8380c57899a71d97146de455a1f3f279123d4c2620a499b7ea
+EBUILD qvv-4.02.ebuild 628 SHA256 67b8dae101793f56d06a3fdaf7f4104873899676be5f890351a834d630dfd07e SHA512 c87e5e78d2ee582c8379cd948ce4d99caa8580c9ed14d5bef3a18566ad549998342c51e9ec1fe41c57a60b7e1870c446b50aafe49c0bcf874c0810dbe2cc6661 WHIRLPOOL 95256a6b1434a56278fbbb8ab94ad356bcaab9f35f76964e5fc39e4bc4b6e2a21129b97d83d12a7f9b3eada5c6de1755f39159e66b6a2a3a830235c6cbfa58f4
+MISC ChangeLog 2414 SHA256 721cf9fe4ebb372037dbbb768b124477ba55b289434e48721395af0ed2a4226f SHA512 f7c8d496ff0d8b90f13ce0f19805e69553caa599b0f1c3e2c97f8e26f637573b48b79e54939a369bfa9fd4c19be6f671af015fa1f5b9a4654094d920a11b6d46 WHIRLPOOL d8b998b43f29e9f51d6d166879485f48a0ffd1009abf4aa723b40fcfdce112a6c186c46d351cbb9847fdb678f2bdee783ef3fa35bca28ed28c249481c39abc4c
+MISC ChangeLog-2015 693 SHA256 cd54ec13249bd071abcd02c744654406f953f21151946604ee5710f91685a83c SHA512 8d476c7a8958b1bd891a941f354fe75b96cf8b7b1087a822256cb792924822c662d3fea2ddb6a8358a5852579cd1157455825eb3938feedd39f762705e3707b2 WHIRLPOOL 45d5c684a5fbc45ffb3b7bec63cc22b61168d471cecac4cfdc53e0445cb260ade2905f54233a5af0c93492345f96d393c5756ed0616e6f63980961ae9b857d36
+MISC metadata.xml 255 SHA256 3e7137870fc49956d79719e3dfe029775cbaaa097e85748c139713c46fcd1798 SHA512 b7bc93530a1726c2d4dfbc71ae29cfbb57712fd9fdd2e76fd52f35ab4368cba0497b50145d1527a3b79e465d459a380821bb1371a01c2e915dc9adc6c7fafd5f WHIRLPOOL 392188d7e069f1720be9329edfb31b11b176bf0c411023b2ceeaeabef1cacf842d70657a2a14ac2ddabbdad70a304275f3b587e9bcdfe77be63a0092e370252c
diff --git a/media-gfx/qvv/metadata.xml b/media-gfx/qvv/metadata.xml
new file mode 100644
index 000000000000..19bf1be2581e
--- /dev/null
+++ b/media-gfx/qvv/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 type="project">
+ <email>graphics@gentoo.org</email>
+ <name>Gentoo Graphics Project</name>
+</maintainer>
+</pkgmetadata>
diff --git a/media-gfx/qvv/qvv-4.02.ebuild b/media-gfx/qvv/qvv-4.02.ebuild
new file mode 100644
index 000000000000..59fb3f5f3b7a
--- /dev/null
+++ b/media-gfx/qvv/qvv-4.02.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=2
+inherit eutils qt4-r2
+
+DESCRIPTION="QVV Image Viewer and Browser"
+HOMEPAGE="http://cade.datamax.bg/qvv/"
+SRC_URI="http://cade.datamax.bg/qvv/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="dev-qt/qtgui:4"
+RDEPEND="${DEPEND}"
+
+src_configure() {
+ eqmake4
+}
+
+src_install() {
+ dobin qvv || die "dobin failed"
+ doicon images/qvv_icon_128x128.png || die "doicon failed"
+ make_desktop_entry qvv QVV qvv_icon_128x128
+ dodoc ANFSCD GPG_README HISTORY README todo.txt || die "dodoc failed"
+}
diff --git a/media-gfx/raw-thumbnailer/Manifest b/media-gfx/raw-thumbnailer/Manifest
new file mode 100644
index 000000000000..af4a9bbc4136
--- /dev/null
+++ b/media-gfx/raw-thumbnailer/Manifest
@@ -0,0 +1,5 @@
+DIST raw-thumbnailer-0.2.1.tar.gz 89468 SHA256 3a348ac6c74c8bbd4d7379659fa65da9d67b133c1e5c9e2a3aecf3e6e3d568bc SHA512 cc3c107b060add00b4af811bb548b597493ff0d54d863c530d183970ac8bdd4f6b9f4c25cf978e1d2bf80b11424dbbfb20e73c6dd1abeff3a15a08843bcd41e1 WHIRLPOOL d5afcd53b1320bd1dfdd4c6a2c6c97db85698ab6772f956a622bb1216aed6fe189fe9cca18e892187593a1af00b3cd86a6395c9efdbd0ca396dc5f7575229414
+EBUILD raw-thumbnailer-0.2.1.ebuild 541 SHA256 36a2a29d6dbde13281534d23f277350d229d4adb417c680d93574d4b1f362583 SHA512 e538902d9a994a1e36969b9b592a2ae974372dc67ce1eae3e0def9f462b7322b59e8f4571624ad620b16573e48c1887ffb5a3b73de53da79b1a3215bf7c1844d WHIRLPOOL a71386a68b9ae5ed17fb1006ee2f445dd0362c5620d6563eb12d80d7abc8af228a115d33c91eb69692ae44e51e6c09c1a4ec7ec7c910080e77f379b9cbc8f66f
+MISC ChangeLog 3230 SHA256 41f2c4482e225b1ca041c5d09d9d57a4e0ac06914255c502ca990da61bfa7210 SHA512 71ac5c029367957abeb3aeba2101072ab6f980565d3fcf5a104daf7e6474fc6c875a650701b9d1ed670c2941e6715bedc1f6565ea3f80de6f95342dc1dfb738c WHIRLPOOL 882268fe59dcc38e984b39220d5604f17e95d76b7d1f1510469ac135296ef9683d2c60b788b0a2ac98117dcc9e0429b317e33834177335db5fe520a4a9c9b7f3
+MISC ChangeLog-2015 4827 SHA256 d044366aa0cb2cb53d7dc0720b4974dfd0256dac6e78a602bbf3efe8dc71ba8d SHA512 afa5683e9754c8f74b33f3d8d2eb61875e393fcf759a87d175a2e3f1c308ff8cc03d42530fc22368afe9f633a782d6ccec31a098c8c811c325735bb9959cd689 WHIRLPOOL 3df40833f06b990118472bf924541c915d02512fa5302804317db2e8c6e45d2138402b3dfdffa748d5ac502392a7e2bdd5a05b8aa46b2bea097b7c328d234360
+MISC metadata.xml 407 SHA256 bb42e412774bbce3d7ad2d3dc50b4e03146efbd219e3aedf8cbe24563f588e9f SHA512 7383547238ca395a6cffde72366521dd7e3e04218f8840f19f093cfa61d0788d10138d39250702085a5669f715aaf3d0da5e357829a0e0fd44a70d20c14ed46a WHIRLPOOL a25c196a7e231324c6ee825d4e459484e688e5f51aba7d9edf21f13f02766b7dbb20a9072af809c6720a29688fc0e97b7f672c077331600d9accd7441f8a780d
diff --git a/media-gfx/raw-thumbnailer/metadata.xml b/media-gfx/raw-thumbnailer/metadata.xml
new file mode 100644
index 000000000000..9829c52dfe9b
--- /dev/null
+++ b/media-gfx/raw-thumbnailer/metadata.xml
@@ -0,0 +1,12 @@
+<?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">raw-thumbnailer</remote-id>
+ <remote-id type="github">erlendd/raw-thumbnailer</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/media-gfx/raw-thumbnailer/raw-thumbnailer-0.2.1.ebuild b/media-gfx/raw-thumbnailer/raw-thumbnailer-0.2.1.ebuild
new file mode 100644
index 000000000000..cf2c9096972e
--- /dev/null
+++ b/media-gfx/raw-thumbnailer/raw-thumbnailer-0.2.1.ebuild
@@ -0,0 +1,21 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+
+DESCRIPTION="A lightweight and fast raw image thumbnailer"
+HOMEPAGE="https://github.com/erlendd/raw-thumbnailer"
+SRC_URI="https://${PN}.googlecode.com/files/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 sparc x86"
+IUSE=""
+
+RDEPEND=">=media-libs/libopenraw-0.0.9[gtk]
+ x11-libs/gtk+:2
+ !media-gfx/gnome-raw-thumbnailer"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+DOCS=( AUTHORS ChangeLog )
diff --git a/media-gfx/rawtherapee/Manifest b/media-gfx/rawtherapee/Manifest
new file mode 100644
index 000000000000..9494c27aec86
--- /dev/null
+++ b/media-gfx/rawtherapee/Manifest
@@ -0,0 +1,9 @@
+DIST rawtherapee-5.1.tar.xz 10785516 SHA256 fb742065a6b2e1b89df67c70395e52ee1ebd537c86dfc473b41e7af171655b67 SHA512 6a881fe24a4109c7db39cb8bee500eb2f9357c479ddb32b3c9b7987aa5d12e4f10083533b5657a0e0f0713fe4ebc58e0dcf204eb8d5c5b656f3e7867a775ab19 WHIRLPOOL 0fc24843015750ab4747311d5ac6f40e5ebd9cedaa9c78e73c7fa7250dcbda9ea1260b7f6fc9a0c91559be4530a84e3826f991d9b9199d7caf25691ad78fd78b
+DIST rawtherapee-5.2.tar.xz 10819936 SHA256 5c32679bfb77eca36c26288483be75696086459b7a59bd4437e371ea1bf827b6 SHA512 ed2ff2e96ad4f0c50ebbc8a232d85b8c5b118bc956bc26aa72beb4741f464c46900aa668127fe7bdc963fabb5c2e2931c50cf784d1fc4fbc4dce3090412a1b5d WHIRLPOOL 02c71705b76df25e86b6ba5bf6439a3a2966e84dfa968b0a82c1dbe0c6297af826d2ffff6e973a56db21f5821d0a4eead6c05422bc6cb36269ed18b829bad1df
+DIST rawtherapee-5.3.tar.xz 11042548 SHA256 97959c946b7cc346affce53efc4bf6eca4125873343f96d1fbe43a5c717f3ef8 SHA512 8a9a7fe98ba0c8e03e964c809afc90afcc03a31b8b88e0f9e2ab4ecdc1fbe4712231f692d0585d95d638cae7171393e01860296149fc9dfbd86ecb35c3709284 WHIRLPOOL 4ad4824ec499a3c10ca20fae5d95e36bc5503a5c878219d4fae12116b96d99c8f02a4017932e753284a93d6d01302cb64363fb953af600fb223b11758ae286ff
+EBUILD rawtherapee-5.1.ebuild 1607 SHA256 c434abbd2b014b317900772263dfd4edd5415fe990e6daa6a6e25509378fca20 SHA512 77658a33529b11d2369505aae9de5d56cc49069121087fefeec75aada1e87f2b211649b449633d6f00f709ff08ec409628ebfe55c6ab244a8cc524585e05b7c8 WHIRLPOOL fc72ba619e420c4f8e934c97a026581cb8e5afd24210d16863911c2e90dfcd52f827985edbd967e8c8cb510c563303b080365484ed348ca37eda90b034414612
+EBUILD rawtherapee-5.2.ebuild 1647 SHA256 e3200a30d06546236d73fc61b8af9b635e658b9f354c9bd9a044d44b421bc215 SHA512 b11dacb8626aa54171b5edc252b8cd8411f7e9a4e2e9691cf4ac7cf2eafd704777e772e24acba8d2193cabb5f7db1be6aa4490ec5799c28f149108575077a7b7 WHIRLPOOL 872d63ae77b567cac0399027016ad46784bea3ce9a9ddd64a6c8004d447cb0aaef61061478bcb584a4552fb4e7f42d23f59b2d6bf12e6bcc07a57f84847aefa9
+EBUILD rawtherapee-5.3.ebuild 1667 SHA256 3c368a540611ca4134479ca6513ffc3eae47f0c79d20f958522476cd731e25ba SHA512 d1f0044b321b3063504d17ac9944d9173237f80401c543c99fc8f40d5b182e3f6f0d1f6070687069ebd2a1cba3f89d1fec649f3e927bdaf6f8e55c5e37a9ac4a WHIRLPOOL 5114886ecbed5867eabaa781ea27cbe829047ba76c7618b4ac1c623bb9f27dd56f135ed750d34b1560a8f121d2235ca6bb30200eb401c905d8c97833a9c319c0
+MISC ChangeLog 4079 SHA256 b09230451fbe05e2b78eb65414e13f2d891cbbe252a05f90f89c2f3dd8a0170f SHA512 4e60d418b89c6d702a30bdccbf483bd2742c851a8b89af6a72d6e35969f6f99df5fccf41c2b3e27ddc7eb600d5145e584f342a726f838acdfc814ea1141b22aa WHIRLPOOL 0233cc875277cb17e70ac29ca511d3605e69c9ed98315be59779c7e870ff2e5e31516010d633eb2f50af0a2ce12b1d0d06cabb0d0e05a3bba2ed2b689ac90196
+MISC ChangeLog-2015 2958 SHA256 43fcd2365c6cff209cfafc99ccc550d5bca515913871cdd68c9c8f675e7d55a4 SHA512 f46eb64555da7fd7688d2ff156d9bd978933573143ca0bc5c777d876fc29fe6a97d396f5d8574e8d135ac2ecb75558f787de9fa9747dba61d025ab6d1b2cb5c0 WHIRLPOOL 88ef16a5e46a351920c0b0e25ccdb1d993d072ebda44e09174e991c525759a1cbd30163148abbcb3164966571fffc4a693810619e19375983975f9a3256a7918
+MISC metadata.xml 484 SHA256 eaf73173b0b38cb85f99ef5554f5820c28c343abb5aad0882f92ecc8fb480f84 SHA512 91f11609c7472bb7cebff5d440ee3d4b0560e0832e1bfb6ffd5b239e8e60647e067894d77ccb6e40a379680775f80b91250c3feab5cd2ce32d7991e0776d0cd9 WHIRLPOOL 5ccd994ebe3e85b515a8ae29bd63dcf6b2f2a2e8b4e1f8f6bd44b4919196a9cbf8740dad42007963ce8bd787bcfc324c9cea13edbfdf162f0f5fe9a95a053811
diff --git a/media-gfx/rawtherapee/metadata.xml b/media-gfx/rawtherapee/metadata.xml
new file mode 100644
index 000000000000..370756f32bc0
--- /dev/null
+++ b/media-gfx/rawtherapee/metadata.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>vivo75@gmail.com</email>
+ <name>Francesco Riosa</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>graphics@gentoo.org</email>
+ <name>Gentoo Graphics Project</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/media-gfx/rawtherapee/rawtherapee-5.1.ebuild b/media-gfx/rawtherapee/rawtherapee-5.1.ebuild
new file mode 100644
index 000000000000..543edfb71014
--- /dev/null
+++ b/media-gfx/rawtherapee/rawtherapee-5.1.ebuild
@@ -0,0 +1,64 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit cmake-utils toolchain-funcs flag-o-matic
+
+DESCRIPTION="A powerful cross-platform raw image processing program"
+HOMEPAGE="http://www.rawtherapee.com/"
+
+MY_P=${P/_rc/-rc}
+SRC_URI="http://rawtherapee.com/shared/source/${MY_P}.tar.xz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="bzip2 openmp"
+
+RDEPEND="bzip2? ( app-arch/bzip2 )
+ x11-libs/gtk+:3
+ dev-libs/expat
+ dev-libs/libsigc++:2
+ media-libs/libcanberra[gtk3]
+ media-libs/tiff:0
+ media-libs/libpng:0
+ media-libs/libiptcdata
+ media-libs/lcms:2
+ sci-libs/fftw:3.0
+ sys-libs/zlib
+ virtual/jpeg:0"
+DEPEND="${RDEPEND}
+ app-arch/xz-utils
+ virtual/pkgconfig
+ dev-cpp/gtkmm:3.0"
+
+S="${WORKDIR}/${MY_P}"
+
+pkg_pretend() {
+ if use openmp ; then
+ tc-has-openmp || die "Please switch to an openmp compatible compiler"
+ fi
+ # https://bugs.gentoo.org/show_bug.cgi?id=606896#c2
+ # https://github.com/vivo75/vivovl/issues/2
+ if [[ $(get-flag -O3) != "-O3" ]] ; then
+ ewarn "upstream suggest using {C,CXX}FLAGS+=\"-O3\" for better performances"
+ ewarn "see bug#606896#c2"
+ ewarn "take a look at https://wiki.gentoo.org/wiki//etc/portage/package.env"
+ ewarn "for suggestion on how to change environment for a single package"
+ fi
+}
+
+src_configure() {
+ filter-flags -ffast-math
+ local mycmakeargs=(
+ -DOPTION_OMP=$(usex openmp)
+ -DBZIP=$(usex bzip2)
+ -DDOCDIR=/usr/share/doc/${PF}
+ -DCREDITSDIR=/usr/share/${PN}
+ -DLICENCEDIR=/usr/share/${PN}
+ -DCACHE_NAME_SUFFIX=""
+ -DCMAKE_CXX_FLAGS="-std=c++11"
+ )
+ cmake-utils_src_configure
+}
diff --git a/media-gfx/rawtherapee/rawtherapee-5.2.ebuild b/media-gfx/rawtherapee/rawtherapee-5.2.ebuild
new file mode 100644
index 000000000000..38848a678a86
--- /dev/null
+++ b/media-gfx/rawtherapee/rawtherapee-5.2.ebuild
@@ -0,0 +1,65 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit cmake-utils toolchain-funcs flag-o-matic
+
+DESCRIPTION="A powerful cross-platform raw image processing program"
+HOMEPAGE="http://www.rawtherapee.com/"
+
+MY_P=${P/_rc/-rc}
+SRC_URI="http://rawtherapee.com/shared/source/${MY_P}.tar.xz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+IUSE="openmp"
+
+RDEPEND="x11-libs/gtk+:3
+ dev-libs/expat
+ dev-libs/libsigc++:2
+ media-libs/libcanberra[gtk3]
+ media-libs/tiff:0
+ media-libs/libpng:0
+ media-libs/libiptcdata
+ media-libs/lcms:2
+ sci-libs/fftw:3.0
+ sys-libs/zlib
+ virtual/jpeg:0"
+DEPEND="${RDEPEND}
+ app-arch/xz-utils
+ virtual/pkgconfig
+ dev-cpp/gtkmm:3.0"
+
+S="${WORKDIR}/${MY_P}"
+
+pkg_pretend() {
+ if use openmp ; then
+ tc-has-openmp || die "Please switch to an openmp compatible compiler"
+ fi
+ # https://bugs.gentoo.org/show_bug.cgi?id=606896#c2
+ # https://github.com/vivo75/vivovl/issues/2
+ if [[ $(get-flag -O3) != "-O3" ]] ; then
+ ewarn "upstream suggest using {C,CXX}FLAGS+=\"-O3\" for better performances"
+ ewarn "see bug#606896#c2"
+ ewarn "take a look at https://wiki.gentoo.org/wiki//etc/portage/package.env"
+ ewarn "for suggestion on how to change environment for a single package"
+ fi
+}
+
+src_configure() {
+ filter-flags -ffast-math
+ # In case we add an ebuild for klt we can (i)use that one,
+ # see http://cecas.clemson.edu/~stb/klt/
+ local mycmakeargs=(
+ -DOPTION_OMP=$(usex openmp)
+ -DDOCDIR=/usr/share/doc/${PF}
+ -DCREDITSDIR=/usr/share/${PN}
+ -DLICENCEDIR=/usr/share/${PN}
+ -DCACHE_NAME_SUFFIX=""
+ -DWITH_SYSTEM_KLT="off"
+ )
+ cmake-utils_src_configure
+}
diff --git a/media-gfx/rawtherapee/rawtherapee-5.3.ebuild b/media-gfx/rawtherapee/rawtherapee-5.3.ebuild
new file mode 100644
index 000000000000..a345df7ead1c
--- /dev/null
+++ b/media-gfx/rawtherapee/rawtherapee-5.3.ebuild
@@ -0,0 +1,66 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit cmake-utils toolchain-funcs flag-o-matic
+
+DESCRIPTION="A powerful cross-platform raw image processing program"
+HOMEPAGE="http://www.rawtherapee.com/"
+
+MY_P=${P/_rc/-rc}
+SRC_URI="http://rawtherapee.com/shared/source/${MY_P}.tar.xz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+IUSE="openmp"
+
+RDEPEND="x11-libs/gtk+:3
+ dev-libs/expat
+ dev-libs/libsigc++:2
+ media-libs/libcanberra[gtk3]
+ media-libs/tiff:0
+ media-libs/libpng:0
+ media-libs/libiptcdata
+ media-libs/lcms:2
+ media-libs/lensfun
+ sci-libs/fftw:3.0
+ sys-libs/zlib
+ virtual/jpeg:0"
+DEPEND="${RDEPEND}
+ app-arch/xz-utils
+ virtual/pkgconfig
+ dev-cpp/gtkmm:3.0"
+
+S="${WORKDIR}/${MY_P}"
+
+pkg_pretend() {
+ if use openmp ; then
+ tc-has-openmp || die "Please switch to an openmp compatible compiler"
+ fi
+ # https://bugs.gentoo.org/show_bug.cgi?id=606896#c2
+ # https://github.com/vivo75/vivovl/issues/2
+ if [[ $(get-flag -O3) != "-O3" ]] ; then
+ ewarn "upstream suggest using {C,CXX}FLAGS+=\"-O3\" for better performances"
+ ewarn "see bug#606896#c2"
+ ewarn "take a look at https://wiki.gentoo.org/wiki//etc/portage/package.env"
+ ewarn "for suggestion on how to change environment for a single package"
+ fi
+}
+
+src_configure() {
+ filter-flags -ffast-math
+ # In case we add an ebuild for klt we can (i)use that one,
+ # see http://cecas.clemson.edu/~stb/klt/
+ local mycmakeargs=(
+ -DOPTION_OMP=$(usex openmp)
+ -DDOCDIR=/usr/share/doc/${PF}
+ -DCREDITSDIR=/usr/share/${PN}
+ -DLICENCEDIR=/usr/share/${PN}
+ -DCACHE_NAME_SUFFIX=""
+ -DWITH_SYSTEM_KLT="off"
+ )
+ cmake-utils_src_configure
+}
diff --git a/media-gfx/recoverjpeg/Manifest b/media-gfx/recoverjpeg/Manifest
new file mode 100644
index 000000000000..2fdd27b86e26
--- /dev/null
+++ b/media-gfx/recoverjpeg/Manifest
@@ -0,0 +1,13 @@
+DIST recoverjpeg-2.0.tar.gz 83762 SHA256 0ad2252cb0b843f61b3d91a3f0a4dca440e8a1a25e3a632b8bc80ae14b3815d4 SHA512 c736a95011ea124eb4792c7d182b1da43b675323fbdeed06d15abc2586bd4010204bdf4529a8bc2c5f2d95c33a7963b8a6115c33f5e65495290ddb69ec4b600c WHIRLPOOL 0ef19d8cdb5a37666bc232fc0d48a9a3d8076c630492181871f97db05b06f06e9a49af6d623aa89fa8f74f44e7ecb7797f99eecb9341a7671f6e316e0932c784
+DIST recoverjpeg-2.1.1.tar.gz 87445 SHA256 e762fd7c6e985ea8ad4a8190a12b3f7f03bdfed9fb735e0f99721c44afed82a0 SHA512 aca4a9cf5403db8c56f357c5f6f12b17e5be428e4846af65add19bfacc990e3e2e2afc27cfaac1635cf4edb9289ab8353a239d32053c570bb8976992d30e721f WHIRLPOOL 1cea50da4fc8ac9c91c997d0e130bf4bf1db99a5d8a2841f6cd19ab33e93270045d718baf780ea2ac79e4d596cca3fc0211650282f4367c75b5aa5c87e64effe
+DIST recoverjpeg-2.2.1.tar.gz 88391 SHA256 d4876a5dd8be2aaeff9dd20149d972c73a47f7562d75324ad0cd28920974d2e8 SHA512 1308542c25cccb0daefa9248f7a41451f59374e33c3ad4a82ad2195aafb66548b98bbc57c56436902a6c5732a5b20f69658567378f0a211a61f258cd62d699b1 WHIRLPOOL fcc49877d0171d89c3a7acf1ba2a09aeeafc472ff6d13c4f3bc6f57ad38a55f80daea5a572b43ca5db8ad90450b528e3d0703b74428bba2e5a5b3c15968e0203
+DIST recoverjpeg-2.2.2.tar.gz 91440 SHA256 476686425637b1971cff6d05554bba81fd76fc21d1aa1f745df3a1ad8820bd8c SHA512 fc609aa47a96b44e10aef4137b92f7b8e99d9f40ab559870225042acd85a97bc745a494cabb29fe21b3b374243c4589eeae8da7ec09a3bacbf9462762782ffc6 WHIRLPOOL fcd1bc5fdccdce82ee6a6c2e6299f64d04873facc2f3e782a70a5cc000f5600adcf4e7f99b8a49832d4539b5987b78c67289a6e89cda0d8a9ba8eed2ed3a8c17
+DIST recoverjpeg-2.2.3.tar.gz 91672 SHA256 99650045a309ae2ffa7a7d19ca356bb7464eaadf8804b4dc68d5ed5239accc8f SHA512 67f923193c9b012302ad4e374141803992bfa4e4ac4c2384c8d44df29927c06a5224caefc936e30cef3fe1ca6dcf9f3544fc5171e4f76d17a83df974d0253c23 WHIRLPOOL dacada2bc903aa282d421de0b7e8ff364cfb7f0aa85c641e3123e9860639ae9ddfd5bbe24b2d90ab4f96018ff0773a53155b80fec6257acb06db3f595e3a590d
+EBUILD recoverjpeg-2.0-r2.ebuild 464 SHA256 8f30d4a517798c5cdde98e221b1c8e4cfe8f2ae516c78d25861dd169d0f9cc9b SHA512 996544863a00c0f747d548f021cd8225383e92d788ac29c92f4f4903393cc3902020a9ec3a7dc29faedaa22e5c322984b6c05e71bd6fa46dbe3fd892679228aa WHIRLPOOL 38e2ac3d172c34655a6dc568b50542e7aeb159677783eb3fe6a6a40e805b7ef23e1e21c1f09b6c355a7ea05cd68c80161ccb5e841429267f5f97a5adf5938067
+EBUILD recoverjpeg-2.1.1-r1.ebuild 469 SHA256 a77f08f39448a3aac6fe1b795976d118da376759fa6e0e265fc2ff7de3cf6da4 SHA512 ccebb94370c5c9ed496ccf7eba0f6e992d11d5c2d680517fa5f5273be0e6b2a827b51b7495bc24ba229f8fe1881c2cf0a097cfa3e40aee876a1b35e532d51d5a WHIRLPOOL e21d7ac3cdc1375e4adac523a5c303582dc1cb5301b853314193a2ee6eded1e4ac51a5dbfe14764d6dca63e93b663103d168c7d04a63c7d484a4511a0ddfafaf
+EBUILD recoverjpeg-2.2.1-r1.ebuild 467 SHA256 2e5c41a65bc757d6d014f1956fdfbacaee3d7ff6ffa85672198f5071d970b589 SHA512 25003f0d99a2ae64b2f4103d4e77bc33fb4ddbc4614549ae6f5f2f8d26bd35253c746c699ce5b12667c1502f8720fcc3cc5c58ed8b71a1b7ff8aa4b8dc7142b3 WHIRLPOOL ace59b7812fd5920a38ff569b41f14a2c3f47817af1f893f14dc4e74cfecd403648755f1d728db7e5c1a60f5a5395a47daf4e75d329f0a4850824bca8afc9fcf
+EBUILD recoverjpeg-2.2.2-r1.ebuild 469 SHA256 a77f08f39448a3aac6fe1b795976d118da376759fa6e0e265fc2ff7de3cf6da4 SHA512 ccebb94370c5c9ed496ccf7eba0f6e992d11d5c2d680517fa5f5273be0e6b2a827b51b7495bc24ba229f8fe1881c2cf0a097cfa3e40aee876a1b35e532d51d5a WHIRLPOOL e21d7ac3cdc1375e4adac523a5c303582dc1cb5301b853314193a2ee6eded1e4ac51a5dbfe14764d6dca63e93b663103d168c7d04a63c7d484a4511a0ddfafaf
+EBUILD recoverjpeg-2.2.3-r1.ebuild 467 SHA256 2e5c41a65bc757d6d014f1956fdfbacaee3d7ff6ffa85672198f5071d970b589 SHA512 25003f0d99a2ae64b2f4103d4e77bc33fb4ddbc4614549ae6f5f2f8d26bd35253c746c699ce5b12667c1502f8720fcc3cc5c58ed8b71a1b7ff8aa4b8dc7142b3 WHIRLPOOL ace59b7812fd5920a38ff569b41f14a2c3f47817af1f893f14dc4e74cfecd403648755f1d728db7e5c1a60f5a5395a47daf4e75d329f0a4850824bca8afc9fcf
+MISC ChangeLog 2435 SHA256 3492b37a10ff74e740a7c74b418d2d94589598e4e36b01249790c2315be1752b SHA512 ff4eb09880a935e4deab0540353693f7fb5de610d77d62857a04c209fb001c58c23f85e91a04c7f0032fd91e730350c5b21e967a7b1450502dde02b838ebf27c WHIRLPOOL 853a05a501659b01cc28400d3726beb900ee1118a613de07d8b9e250c2f0e8079cb814526ffe39ca91ab82f420a1d8aaa6a4c34e1f3a345116ae4c3b41a32b08
+MISC ChangeLog-2015 2547 SHA256 1cb7797f2f73c27129600990e64020a7d8b281d0a870d5f9c9a245c3ee278c09 SHA512 6cb05ac2067eea498012b8ec36bc4fcac624ce6255f078d17dbba6a8b08733682aeb11dc476517bd06dbf3dd4aca7d5c3730498574befd0dba83eff2fb3a6438 WHIRLPOOL 62e972dc02f4bfe15cd6169be3172cec0f6ee86c0ca37e185503205982123dbe3bfb4938e1f52f76bd1306e978521da5e43aaff5d62a76edd9993cbc2f66d97e
+MISC metadata.xml 241 SHA256 1bde00aa4fcc25c9f0cbadd61dbbd96bec63ec9e8b87205abe0a14e74eb91ca4 SHA512 36d2c19e9be1e9b7cb9448aad02e7601fed141574c932ef6c6f1cf2e65ae89832a6d276a18497e845ab584ff5a0f6425b15a325963c123e1070da3fc416f83bd WHIRLPOOL 5674f9763d0bef1849216d1071604678d9c39e2712a8d5b1cd75913249d365db7584d295af5bf8b1c5c1c3cfe6107c9fe4575778675145cd4a5c351bff6f9da0
diff --git a/media-gfx/recoverjpeg/metadata.xml b/media-gfx/recoverjpeg/metadata.xml
new file mode 100644
index 000000000000..d15a3ebeaa10
--- /dev/null
+++ b/media-gfx/recoverjpeg/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 type="person">
+ <email>xmw@gentoo.org</email>
+ <name>Michael Weber</name>
+</maintainer>
+</pkgmetadata>
diff --git a/media-gfx/recoverjpeg/recoverjpeg-2.0-r2.ebuild b/media-gfx/recoverjpeg/recoverjpeg-2.0-r2.ebuild
new file mode 100644
index 000000000000..0d7e2b17aa45
--- /dev/null
+++ b/media-gfx/recoverjpeg/recoverjpeg-2.0-r2.ebuild
@@ -0,0 +1,21 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+
+inherit base
+
+DESCRIPTION="Recover JPEG pictures from a possibly corrupted disk image"
+HOMEPAGE="http://www.rfc1149.net/devel/recoverjpeg.html"
+SRC_URI="http://www.rfc1149.net/download/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+DEPEND="media-gfx/exif
+ virtual/imagemagick-tools"
+RDEPEND="${DEPEND}"
+
+DOCS=( README )
diff --git a/media-gfx/recoverjpeg/recoverjpeg-2.1.1-r1.ebuild b/media-gfx/recoverjpeg/recoverjpeg-2.1.1-r1.ebuild
new file mode 100644
index 000000000000..1cefa1795ef4
--- /dev/null
+++ b/media-gfx/recoverjpeg/recoverjpeg-2.1.1-r1.ebuild
@@ -0,0 +1,21 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+
+inherit base
+
+DESCRIPTION="Recover JPEG pictures from a possibly corrupted disk image"
+HOMEPAGE="http://www.rfc1149.net/devel/recoverjpeg.html"
+SRC_URI="http://www.rfc1149.net/download/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="media-gfx/exif
+ virtual/imagemagick-tools"
+RDEPEND="${DEPEND}"
+
+DOCS=( ChangeLog )
diff --git a/media-gfx/recoverjpeg/recoverjpeg-2.2.1-r1.ebuild b/media-gfx/recoverjpeg/recoverjpeg-2.2.1-r1.ebuild
new file mode 100644
index 000000000000..2ecd6e8acb5c
--- /dev/null
+++ b/media-gfx/recoverjpeg/recoverjpeg-2.2.1-r1.ebuild
@@ -0,0 +1,21 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+
+inherit base
+
+DESCRIPTION="Recover JPEG pictures from a possibly corrupted disk image"
+HOMEPAGE="http://www.rfc1149.net/devel/recoverjpeg.html"
+SRC_URI="http://www.rfc1149.net/download/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+DEPEND="media-gfx/exif
+ virtual/imagemagick-tools"
+RDEPEND="${DEPEND}"
+
+DOCS=( ChangeLog )
diff --git a/media-gfx/recoverjpeg/recoverjpeg-2.2.2-r1.ebuild b/media-gfx/recoverjpeg/recoverjpeg-2.2.2-r1.ebuild
new file mode 100644
index 000000000000..1cefa1795ef4
--- /dev/null
+++ b/media-gfx/recoverjpeg/recoverjpeg-2.2.2-r1.ebuild
@@ -0,0 +1,21 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+
+inherit base
+
+DESCRIPTION="Recover JPEG pictures from a possibly corrupted disk image"
+HOMEPAGE="http://www.rfc1149.net/devel/recoverjpeg.html"
+SRC_URI="http://www.rfc1149.net/download/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="media-gfx/exif
+ virtual/imagemagick-tools"
+RDEPEND="${DEPEND}"
+
+DOCS=( ChangeLog )
diff --git a/media-gfx/recoverjpeg/recoverjpeg-2.2.3-r1.ebuild b/media-gfx/recoverjpeg/recoverjpeg-2.2.3-r1.ebuild
new file mode 100644
index 000000000000..2ecd6e8acb5c
--- /dev/null
+++ b/media-gfx/recoverjpeg/recoverjpeg-2.2.3-r1.ebuild
@@ -0,0 +1,21 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+
+inherit base
+
+DESCRIPTION="Recover JPEG pictures from a possibly corrupted disk image"
+HOMEPAGE="http://www.rfc1149.net/devel/recoverjpeg.html"
+SRC_URI="http://www.rfc1149.net/download/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+DEPEND="media-gfx/exif
+ virtual/imagemagick-tools"
+RDEPEND="${DEPEND}"
+
+DOCS=( ChangeLog )
diff --git a/media-gfx/replicatorg/Manifest b/media-gfx/replicatorg/Manifest
new file mode 100644
index 000000000000..5da372e931aa
--- /dev/null
+++ b/media-gfx/replicatorg/Manifest
@@ -0,0 +1,8 @@
+AUX replicatorg 52 SHA256 21422427de3f6da60d984e987d839fbaff0ff51569b6ea9cf78a21a06947b175 SHA512 93e5c726d4252d1ebe9d8283d1bb9c0857c8a8385f35762a9ca972fb79fd9723b60faa39e2553cdf1da790405bbc74863e72da26c27081ed96d5d9ca4715c095 WHIRLPOOL 48f42b60998bc0bb5927e74e24d14b296cf2785163e966ede60c8f14fdc9790cffd930820d91cebd2c2543e171f522f4fa5d191e5ad02db529f2e39730425482
+DIST replicatorg-0037-linux.tgz 52627038 SHA256 304d942cc47933953bd4a74e7c88d6137e5ad0a5c4d0a6d0c51fa703d279f4cd SHA512 9fabfe64a6ff6c059abe66404349739cd74bcc244a4f37d020d506fd82d318f5103daeb289f615fe47203c43ea8842487acbe21b6cdbb9cdb4d9b20bfbfd845c WHIRLPOOL 62fa5629366bb9d5b32537834e2fdabf5ab3514282e7c24aeec4c04f8513fb4367514117089b7d7075c12d79f32ec059d1ef59c0f62803e0dbf34d0dccd3cb20
+DIST replicatorg-0040-linux.tgz 45962287 SHA256 9f614c2f0ae4494c73af84fd07937115d3c739bea638acf226419b80d31d2aad SHA512 c2be8679ebcb722a01f46bbd5a3dd771ebda0eb5e5546627f9064b412be0e5ae0b63f9d44dc7f03d9b3fb862c45dbe09edfb15018a075f39ca57d725ca804205 WHIRLPOOL 2088a517b11938f430a100d6f4e41cd14c6cc7db6954c8ce3475e019cdd2e9cb8833632b841affb88445d5b5ad1f99d8d9d85cb03651020e261aa53b05737059
+EBUILD replicatorg-37-r2.ebuild 1955 SHA256 81a6c55f8f160978ca90aeaa8bf49c7125ed193220737a2c98b954086ced88d4 SHA512 11e90b1b7311a2bb1dafee4d136a2ef6556059bac2e464dfd0fdeec8e9a039951dbd5d5073463440540c402fe04591b4fe91e9b1bccc4964e59cf8e6bbaf2d10 WHIRLPOOL 711d6a4e7e00410118051bc60e973fd7edf0d8a8d3570717aceb41b8a3f279e5c59ac6bba91815a4cafced433cb318ac080c24216cd8b7aee4b91c13bbaee7e4
+EBUILD replicatorg-40-r1.ebuild 1944 SHA256 457a5882fdc5ef88750337672f2865c8eeea8fcae0e537b9365449d6288f7a02 SHA512 55df428e236e89c68e5733e2ae4b80e80e926bd1eb91a70e96c14c19075eeaf091f1368933c95c45050bed6f1db0994c063d5da0ae341f975a9141de8d09c827 WHIRLPOOL 2e9d34a6db1ec19145c4c91c9ad59f65d5447170fa2177402f3ab896767502f39e7c4e7ee3365c768df888e64392756c386d5a047516e9d6591b10b9e14f7cba
+MISC ChangeLog 2930 SHA256 4dd3122ade46c27b3e2fb64a14abfd0fcfb42f6f8aacb5c5a06383c65af7a4b3 SHA512 74b52c2d604228f9d6a3c96a66ac7aa751b6a4abc588d11d0bc9f3ab224a92a744fa7b716b445aa1d65435eac21c87dfa37e32f940567ca812e9dd94b7ec70c4 WHIRLPOOL 5477cd0cc2b862027acaa0a028403ca0ca632f839bba17490b1e29536dd6751498a7f392034dafbfbc43f47674a10cbc709476f32eed8a274208ecf428c04761
+MISC ChangeLog-2015 1647 SHA256 2b3fca08be9eabc35240b81674d9ebedf9f21733cf456d26c5bf4cf2fda85ce3 SHA512 60dd5c3608f7a0ec609aa49f8fe1febfc239adc87c430f3d01b67ccde95b7402ef998ee061ac45df50c04a214157614f086cb8b23b3d59cd4edcf0791a3d0347 WHIRLPOOL ac201094d74ebddc3014251e640229c0a7158e0682b79e224df95df20c311e3844d35e2df190bba69df732afbe868d7a8d7dab443588b7ed1dd7afb6bc53afb8
+MISC metadata.xml 602 SHA256 aa9d118ccdadd175248b36ffa8c2c3491d283231277bd8883e7ade9e43beb232 SHA512 cf713f392d8c00180c20bca0a5d4396ec6c3c2b1f9cf468e51c0f4116a097c1a2c50a63a39187a84aeed05f9645bc1eb19ae6be4f8237bf010c3377c04300cf8 WHIRLPOOL 3c78f855f391146b35fceae462f06c9db95445a5c527c2c73cc2d07fe02cd395fdf0a2911acc04127820fdd6a049368e21be6b748e0cf9850e0a91132194c180
diff --git a/media-gfx/replicatorg/files/replicatorg b/media-gfx/replicatorg/files/replicatorg
new file mode 100644
index 000000000000..2c91bf254346
--- /dev/null
+++ b/media-gfx/replicatorg/files/replicatorg
@@ -0,0 +1,2 @@
+#!/bin/bash
+( cd /opt/replicatorg ; ./replicatorg )
diff --git a/media-gfx/replicatorg/metadata.xml b/media-gfx/replicatorg/metadata.xml
new file mode 100644
index 000000000000..fba3a21a731d
--- /dev/null
+++ b/media-gfx/replicatorg/metadata.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <longdescription>
+This is the software that will drive your MakerBot Replicator, Thing-O-Matic, CupCake CNC, RepRap machine, or generic CNC machine. You can give it a GCode or STL file to process, and it takes it from there. It's cross platform, easily installed, and is based on the familiar Arduino / Processing environments. ReplicatorG is used by thousands of MakerBot Operators, and has printed tens of thousands of objects and counting.
+</longdescription>
+</pkgmetadata>
diff --git a/media-gfx/replicatorg/replicatorg-37-r2.ebuild b/media-gfx/replicatorg/replicatorg-37-r2.ebuild
new file mode 100644
index 000000000000..839824ac1a47
--- /dev/null
+++ b/media-gfx/replicatorg/replicatorg-37-r2.ebuild
@@ -0,0 +1,84 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="3"
+
+inherit eutils versionator user
+
+MY_P="${PN}-00${PV}"
+
+DESCRIPTION="ReplicatorG is a simple, open source 3D printing program"
+HOMEPAGE="http://replicat.org/start"
+SRC_URI="https://replicatorg.googlecode.com/files/${MY_P}-linux.tgz"
+
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="~amd64 ~x86"
+
+IUSE=""
+
+COMMON_DEPEND="dev-java/oracle-jre-bin"
+RDEPEND="${COMMON_DEPEND}"
+DEPEND="${COMMON_DEPEND}"
+
+S="${WORKDIR}/${MY_P}"
+
+pkg_setup() {
+ enewgroup replicator
+}
+
+pkg_postinst() {
+ elog "Replicatorg requires Sun/Oracle JRE and will not work with OpenJDK."
+ elog
+ elog "Ensure that your user account has permissions to access serial port,"
+ elog "if you plan to connect directly to a 3d printer rather than using"
+ elog "a flash card. Printing directly from replicatorg is preferred."
+ elog
+ elog "The replicator printer will likely show up in /dev as ttyACM0."
+ elog "You may want to autoload the cdc_acm kernel module."
+ elog
+ elog "Note that replicatorg includes its own version of skeinforge."
+ elog "There doesn't seem to be a simple way to depend on an external"
+ elog "version."
+ elog
+ elog "Replicatorg users should add themselves to the replicator group"
+ elog "to avoid upstream warnings about not being able to modify shared"
+ elog "skeinforge scripts."
+ elog
+ chmod -R g+w "${ROOT}"/opt/replicatorg
+ chown -R root:replicator "${ROOT}"/opt/replicatorg
+ chmod 0755 /opt/replicatorg
+}
+
+src_install() {
+ dodir \
+ /opt/replicatorg \
+ /usr/share/replicatorg
+
+ keepdir \
+ /opt/replicatorg \
+ /usr/share/replicatorg
+
+ dobin "${FILESDIR}"/replicatorg
+
+ /bin/cp -R --preserve=mode \
+ docs \
+ examples \
+ lib \
+ lib-i686 \
+ lib-x86_64 \
+ machines \
+ scripts \
+ replicatorg \
+ skein_engines \
+ tools \
+ "${D}"/opt/replicatorg/
+
+ insinto /usr/share/replicatorg
+ doins -r \
+ contributors.txt \
+ license.txt \
+ readme.txt \
+ todo.txt
+
+}
diff --git a/media-gfx/replicatorg/replicatorg-40-r1.ebuild b/media-gfx/replicatorg/replicatorg-40-r1.ebuild
new file mode 100644
index 000000000000..042c8795ed5e
--- /dev/null
+++ b/media-gfx/replicatorg/replicatorg-40-r1.ebuild
@@ -0,0 +1,84 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="3"
+
+inherit eutils versionator user
+
+MY_P="${PN}-00${PV}"
+
+DESCRIPTION="ReplicatorG is a simple, open source 3D printing program"
+HOMEPAGE="http://replicat.org/start"
+SRC_URI="https://replicatorg.googlecode.com/files/${MY_P}-linux.tgz"
+
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS=""
+
+IUSE=""
+
+COMMON_DEPEND="dev-java/oracle-jre-bin"
+RDEPEND="${COMMON_DEPEND}"
+DEPEND="${COMMON_DEPEND}"
+
+S="${WORKDIR}/${MY_P}"
+
+pkg_setup() {
+ enewgroup replicator
+}
+
+pkg_postinst() {
+ elog "Replicatorg requires Sun/Oracle JRE and will not work with OpenJDK."
+ elog
+ elog "Ensure that your user account has permissions to access serial port,"
+ elog "if you plan to connect directly to a 3d printer rather than using"
+ elog "a flash card. Printing directly from replicatorg is preferred."
+ elog
+ elog "The replicator printer will likely show up in /dev as ttyACM0."
+ elog "You may want to autoload the cdc_acm kernel module."
+ elog
+ elog "Note that replicatorg includes its own version of skeinforge."
+ elog "There doesn't seem to be a simple way to depend on an external"
+ elog "version."
+ elog
+ elog "Replicatorg users should add themselves to the replicator group"
+ elog "to avoid upstream warnings about not being able to modify shared"
+ elog "skeinforge scripts."
+ elog
+ chmod -R g+w "${ROOT}"/opt/replicatorg
+ chown -R root:replicator "${ROOT}"/opt/replicatorg
+ chmod 0755 /opt/replicatorg
+}
+
+src_install() {
+ dodir \
+ /opt/replicatorg \
+ /usr/share/replicatorg
+
+ keepdir \
+ /opt/replicatorg \
+ /usr/share/replicatorg
+
+ dobin "${FILESDIR}"/replicatorg
+
+ /bin/cp -R --preserve=mode \
+ docs \
+ examples \
+ lib \
+ lib-i686 \
+ lib-x86_64 \
+ machines \
+ scripts \
+ replicatorg \
+ skein_engines \
+ tools \
+ "${D}"/opt/replicatorg/
+
+ insinto /usr/share/replicatorg
+ doins -r \
+ contributors.txt \
+ license.txt \
+ readme.txt \
+ todo.txt
+
+}
diff --git a/media-gfx/ristretto/Manifest b/media-gfx/ristretto/Manifest
new file mode 100644
index 000000000000..23826ed3d657
--- /dev/null
+++ b/media-gfx/ristretto/Manifest
@@ -0,0 +1,11 @@
+AUX ristretto-0.8.0-fix-appdata-validation.patch 1084 SHA256 89ae1eee31329352eaf6427e6c4699023c584e1683caef37ee03736937da5738 SHA512 dcd2ee1a6b21c7973b0de30632029628eadc604f4d606f16d72eb344b2f321caeed527c9964ddd4972d5db529bf48bc234ef67759953943b2df21ddaaed94fa4 WHIRLPOOL 29e59618ed720991ec4722ab146b1160eb590a91a80420c86102e61a3e443e4a42d7433026f7cfb295051871618c90745ead43defda26080985dd9fbc3a5bcb8
+AUX ristretto-0.8.0-fix-icon-installation.patch 745 SHA256 e5f581a2087dafa22bf6114c6a656cc5ac2bff7c761f5f04af4a94267eaa72d1 SHA512 878c6e377ab261b7034d659be768c816ad61be960a792d506dde404d0a7c04436d8ca60bec35a4562ead219cc329b53e301afda1536ce456270cb5469472a079 WHIRLPOOL 64d21daa1af162e34c3f43340a939ca4ac32234d565cb6603c48315f9e5a122d0683dfca2674fac100a323d3fc46050d01305bf422fbeaeced506436504d3b0a
+DIST ristretto-0.8.0.tar.bz2 541473 SHA256 71625324cecda7199acbc95a3ea5132d0dcbf808771e7a209ea2b9503ae4f328 SHA512 067d3e7b5ec4fe3537cc796b94e8b999fc99efdb58c52a2a71160405626a3784caa877724e756b363012dce4719ee534f4ce0c92f2f6f2adaf937da8d5abab99 WHIRLPOOL 85b7dbbf7009b5a100f8fa5302f683df2832d448c5580e94ae8e48cd74ec600b9964b101f774cb9610f63786ffe7f11a779a5a4c333ba4778c058ac2f70d35c9
+DIST ristretto-0.8.2.tar.bz2 559444 SHA256 f8f3b77ca6fc77ddf8cff1bb52e5c5802c462663f72f324393b3a0360f6901b8 SHA512 bceef420ebb6e5ab89f339cb4d173bbdd3abc09df5f7dd4551e5c8484e226af6a4ef7b131888926027bae901fd05278cf29de296588723142bd6d0bd8afc312e WHIRLPOOL 85da22ada74afe3fff268d316823979c1992d8e705a97a9d92bb6bcf7fea9b25d69ba59cf399a45d775561ec28758b7ee5012ab238e76d4e169eac1eb32fada9
+DIST ristretto-0.8.2git-rd21ed3c.tar.bz2 584418 SHA256 9de0e922372c63c7ba3b108cd2d777feab3c1b551b8e646b42dbbd73ca84ceca SHA512 17fe6b5c24d4f4f3b6d28e1c435afbb0140e81a77f2b1c628ab7e05ed380a55a902368dabbb8e92647f08bb8853df8099b8de779d94dc91d3426cc7e33cbcbe3 WHIRLPOOL 93c3e5d23ec35f91253f40f84b862e81f54aebb4821b00bea50e8bc51e70b79c8b0151c2cfc3cd650cbfbbd04d730822314fa8a40da327aeadc31aae7e27a823
+EBUILD ristretto-0.8.0-r1.ebuild 959 SHA256 91d350f7c31adf3517f16d4863a51d07b2cb1496045396577586aa4d9ca7fe3a SHA512 6a0829f14ac72ce3e7860412e09ea9148d39d00fd21d9cd52f2dac30c4bdc0cf10ebe8f471f519886f7d85530eced1d518cbe9eca090eb741e7b0a555f9edd38 WHIRLPOOL 81ebc6c467d56c923e469d1ee7348ffe54a5ad87b3ab0f0de4ebe9eacfc8043f940fd4a739a02846230345504d23bce2d492e6d6fdf4ebe42bcfc9e5cb92e2bf
+EBUILD ristretto-0.8.2.ebuild 853 SHA256 252c9149c6130df6fc75d398d473e12bb0df4319b3d17f45bdff503e5f643254 SHA512 ab24be0f6c395ba7c3fae4fa1a17ca3dfb785814f05fb1ae788a2b76331647138c0c99db760656d89acb44b945f260ad061d26c79527023b09f21a95489c0ecd WHIRLPOOL 707cea32d2c193cb06e817f1c92a3c1c310d761d77fe9a6fde49c6371a34ccddc092e16ac8faf36468c12522c3a137c4c3f15008bedb811fce58cb4827ba11a7
+EBUILD ristretto-0.8.2_p20170821.ebuild 946 SHA256 df5c8739a1a9f71282b9cff23a48ad5558d3dc700a906023811d5c71752d740b SHA512 cc8e1d72806a99cb07b21f8070eb730025fd788aa3a893a98c78b185f5c0a38a85d95aab5903838591d794b71a75f17de97d7cc079fa224ee0f4f8930696387e WHIRLPOOL 83159be6d33b903fe2d4156a45f647602363a6573034caf185e66aa08588a8a1ff3b71f8d88a1328b4d4749abe7d0d9c84d65eade6396999bec2f5ae0c91140c
+MISC ChangeLog 2566 SHA256 59a4947645e1eb4a6bead48682fda1948693fd65a877ab2f29218330991999a4 SHA512 41cd2259d696d819bca71e75634291f7916b301c1c71f6e3e56935f360c119d753645fc021676a7dfe6a89b3027fd7630c49c74461ec0255cbfa29f0e3ce17cc WHIRLPOOL 661431f7d88e1b7bfb09b8f685144c4c62dc6858a7337887a8f7faf3cba2b4c43ecfc77a7b1127a0544d2cbd0601689fcc20f66aa1e62f33bebaa3e374e09fb2
+MISC ChangeLog-2015 14512 SHA256 97035baff604b2e069e3630539dc17af1cf1b40b662a91bbe8e0dc1aecbd3cd8 SHA512 8cea86a2971132055902d35716b51fd446cf3b2d45391605ec6c7ad60932cb27fac896a2aecb2eb5be432844998fe4bece6f88873e0776c40dfe206c7c5d76e5 WHIRLPOOL 1035759f113ea67251c8cade21da1453d69aa06a61d544bb667f87ade6d8ddd7bf32411ef38ed077dc4817f8fc34f16a30717e1ed52617a7ad0e89671b513d73
+MISC metadata.xml 247 SHA256 5e270543b0f1e81148a19b29d77d40191169f37a8b3e34c7c08bdca376150864 SHA512 25494c0053fb7b2ed0f78ecc2de8a8ae08a971db8e15f89e906a1d43177fef53eb9ec5dd075a5c67ddee2be112c0943f6c87e4870d405436bddfea3a4fa19203 WHIRLPOOL 15305f8aec1b5f5e255d6378d5b44652a3958e808017fd8ba00350b667528753ff0466bcf5b9b28b683fd3341d25bf8884396730003f071515ad28146d33893b
diff --git a/media-gfx/ristretto/files/ristretto-0.8.0-fix-appdata-validation.patch b/media-gfx/ristretto/files/ristretto-0.8.0-fix-appdata-validation.patch
new file mode 100644
index 000000000000..e1266ab547b9
--- /dev/null
+++ b/media-gfx/ristretto/files/ristretto-0.8.0-fix-appdata-validation.patch
@@ -0,0 +1,25 @@
+From 3ae341ba0bbf5c0fefcdb02a3674061a6b73f7db Mon Sep 17 00:00:00 2001
+From: Kevin Fenzi <kevin@scrye.com>
+Date: Mon, 2 Mar 2015 15:41:11 +0300
+Subject: appdata fails validation (Bug #11622)
+
+appstream-util fails with "cannot contain a hyperlink".
+
+Signed-off-by: Eric Koegel <eric.koegel@gmail.com>
+
+diff --git a/ristretto.appdata.xml.in b/ristretto.appdata.xml.in
+index 0ff8b22..ea7a96f 100644
+--- a/ristretto.appdata.xml.in
++++ b/ristretto.appdata.xml.in
+@@ -66,7 +66,7 @@
+ <release version="0.6.0" timestamp="1335662454">
+ <description>
+ <_p>This version comes with several changes such as online documentation on
+- http://docs.xfce.org, the option to limit the maximum image-quality to
++ docs.xfce.org, the option to limit the maximum image-quality to
+ the screen dimensions to improve memory-usage and performance - now ristretto
+ renders at full quality with this option disabled, only one toolbar - instead
+ of two, a quick-launch button on the toolbar to execute an editor, the option
+--
+cgit v0.10.1
+
diff --git a/media-gfx/ristretto/files/ristretto-0.8.0-fix-icon-installation.patch b/media-gfx/ristretto/files/ristretto-0.8.0-fix-icon-installation.patch
new file mode 100644
index 000000000000..79eed6b47b7d
--- /dev/null
+++ b/media-gfx/ristretto/files/ristretto-0.8.0-fix-icon-installation.patch
@@ -0,0 +1,20 @@
+This should normally patch Makefile.am and use autotools.eclass to re-run
+autoreconf. However, this does not work out of the box and pulling out the big
+artillery to fix a simple typo which will be gone in the next release wasn't
+worth the trouble.
+
+See https://bugs.gentoo.org/542604.
+
+Denis Dupeyron <calchan@gentoo.org>
+
+--- icons/128x128/Makefile.in.orig 2015-04-20 21:16:04.376497095 -0600
++++ icons/128x128/Makefile.in 2015-04-20 21:16:23.423138219 -0600
+@@ -337,7 +337,7 @@
+ top_build_prefix = @top_build_prefix@
+ top_builddir = @top_builddir@
+ top_srcdir = @top_srcdir@
+-iconsdir = $(datadir)/icons/hicolor/48x48/apps
++iconsdir = $(datadir)/icons/hicolor/128x128/apps
+ icons_DATA = ristretto.png
+ EXTRA_DIST = $(icons_DATA)
+ all: all-am
diff --git a/media-gfx/ristretto/metadata.xml b/media-gfx/ristretto/metadata.xml
new file mode 100644
index 000000000000..359901b31db4
--- /dev/null
+++ b/media-gfx/ristretto/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 type="project">
+ <email>xfce@gentoo.org</email>
+ <name>XFCE Team</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/media-gfx/ristretto/ristretto-0.8.0-r1.ebuild b/media-gfx/ristretto/ristretto-0.8.0-r1.ebuild
new file mode 100644
index 000000000000..8974558e41db
--- /dev/null
+++ b/media-gfx/ristretto/ristretto-0.8.0-r1.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit xfconf
+
+DESCRIPTION="A fast and lightweight picture viewer for the Xfce desktop environment"
+HOMEPAGE="https://docs.xfce.org/apps/ristretto/start"
+SRC_URI="mirror://xfce/src/apps/${PN}/${PV%.*}/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc x86"
+IUSE="debug"
+
+RDEPEND=">=dev-libs/dbus-glib-0.98:0=
+ >=dev-libs/glib-2.24:2=
+ media-libs/libexif:0=
+ x11-libs/cairo:0=
+ >=x11-libs/gtk+-2.20:2=
+ x11-libs/libX11:0=
+ >=xfce-base/libxfce4ui-4.10:0=
+ >=xfce-base/libxfce4util-4.10:0=
+ >=xfce-base/xfconf-4.10:0="
+DEPEND="${RDEPEND}
+ dev-util/intltool
+ virtual/pkgconfig
+ sys-devel/gettext"
+
+pkg_setup() {
+ PATCHES=(
+ "${FILESDIR}"/${P}-fix-appdata-validation.patch
+ "${FILESDIR}"/${P}-fix-icon-installation.patch
+ )
+
+ XFCONF=(
+ $(xfconf_use_debug)
+ )
+
+ DOCS=( AUTHORS ChangeLog NEWS TODO )
+}
diff --git a/media-gfx/ristretto/ristretto-0.8.2.ebuild b/media-gfx/ristretto/ristretto-0.8.2.ebuild
new file mode 100644
index 000000000000..7c1f99c4c960
--- /dev/null
+++ b/media-gfx/ristretto/ristretto-0.8.2.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit xfconf
+
+DESCRIPTION="A fast and lightweight picture viewer for the Xfce desktop environment"
+HOMEPAGE="https://docs.xfce.org/apps/ristretto/start"
+SRC_URI="mirror://xfce/src/apps/${PN}/${PV%.*}/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
+IUSE="debug"
+
+RDEPEND=">=dev-libs/dbus-glib-0.98:0=
+ >=dev-libs/glib-2.24:2=
+ media-libs/libexif:0=
+ x11-libs/cairo:0=
+ >=x11-libs/gtk+-2.20:2=
+ x11-libs/libX11:0=
+ >=xfce-base/libxfce4ui-4.10:0=
+ >=xfce-base/libxfce4util-4.10:0=
+ >=xfce-base/xfconf-4.10:0="
+DEPEND="${RDEPEND}
+ dev-util/intltool
+ virtual/pkgconfig
+ sys-devel/gettext"
+
+pkg_setup() {
+ XFCONF=(
+ $(xfconf_use_debug)
+ )
+
+ DOCS=( AUTHORS ChangeLog NEWS TODO )
+}
diff --git a/media-gfx/ristretto/ristretto-0.8.2_p20170821.ebuild b/media-gfx/ristretto/ristretto-0.8.2_p20170821.ebuild
new file mode 100644
index 000000000000..bce668dc9152
--- /dev/null
+++ b/media-gfx/ristretto/ristretto-0.8.2_p20170821.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit gnome2-utils xdg-utils
+
+MY_P=${P%_p*}git-rd21ed3c
+DESCRIPTION="A fast and lightweight picture viewer for Xfce"
+HOMEPAGE="https://docs.xfce.org/apps/ristretto/start"
+SRC_URI="https://dev.gentoo.org/~mgorny/dist/${MY_P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
+IUSE=""
+
+RDEPEND=">=dev-libs/dbus-glib-0.98:0=
+ >=dev-libs/glib-2.24:2=
+ media-libs/libexif:0=
+ x11-libs/cairo:0=
+ >=x11-libs/gtk+-2.20:2=
+ x11-libs/libX11:0=
+ >=xfce-base/libxfce4ui-4.10:0=
+ >=xfce-base/libxfce4util-4.10:0=
+ >=xfce-base/xfconf-4.10:0="
+DEPEND="${RDEPEND}
+ dev-util/intltool
+ virtual/pkgconfig
+ sys-devel/gettext"
+
+S=${WORKDIR}/${MY_P}
+
+pkg_postinst() {
+ xdg_desktop_database_update
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ xdg_desktop_database_update
+ gnome2_icon_cache_update
+}
diff --git a/media-gfx/rotoscope/Manifest b/media-gfx/rotoscope/Manifest
new file mode 100644
index 000000000000..6ccde40fdfd4
--- /dev/null
+++ b/media-gfx/rotoscope/Manifest
@@ -0,0 +1,5 @@
+DIST rotoscope_0.2.orig.tar.gz 108147 SHA256 2a78537965c6ff46ce245a16784da7c9d013a567925df5ec9c9fedf52f62860a SHA512 106dedbfb5eb378da3e2082935f2127a84f194437e95cf331081fa45284066f00028c26f09b66848530d76138b6b55e9da46cf62b98a8e9af7e628806559cabe WHIRLPOOL ee4f465cf07371c11dafd647c890a62e79d25d55e6c635d7bdf829f8b46a220e08e6a6acf31a52461f7ca80dc47eb16897fdb162e4d651e0bc1f96c15202bb4c
+EBUILD rotoscope-0.2.ebuild 552 SHA256 da47bfcfc18376f788945bbc2f942f3406917587acbbd6ccc230530ea42f1fb3 SHA512 d7d3e9daa2a8da64c39f6868f5d12c7ff391c7434f5962b92e175fc1ace93ae5b69a7478721048bcb1d8670cfa2a1ddbcf3c4151e299453ebf45b62d5a3da3d0 WHIRLPOOL a5f9c13bf16926d7dd86135f62a30e27216227ff1f86f27eaaaa6fd0e9ccf5900ba32724e3314a93d65f2a549fcc050bc309237da8076973e5d734396c832b29
+MISC ChangeLog 2430 SHA256 999864d5030bb6cc6e84f8f4cbdcf2ed25d2dcc78416d4b41797ae4f036eabec SHA512 68a69f6203bb91eeda8420456d3fd87109bd26fc738ca5f229e85f399eeccf2b1723aa00d20a8d42bff0c0a9d66237e589bca411c2a9c838b20be664984675f3 WHIRLPOOL 00dd7c41e4725d0f4bfb9d73c8c6bdc45c5e0410ce9233ad771ccf4f8213ea868c6039a8bd7d8dc66e9073dcb3b89dde26117cf23c1da890fa27c60338d72a11
+MISC ChangeLog-2015 1115 SHA256 a2ca25dff919e5c9a4249130e9b18c95179e8db03fd2cc799899a5dbc11df4fd SHA512 5047563d0a9fe57a13ab07294b57f8af5e4cacf924c9ae4d6617e16c4ee10bfc16bf387ea973afe4d3596d5c6d209788ea91a1c2978b57e57352f075c2f2305d WHIRLPOOL f0489b33e2c6a0b11119f1b7763c92a702eeae900a2791d6452916d43a7cb495c7d05e35fd1754e5d4219e73b6d16a41f7fbd56a633317d2875e20b450617bf0
+MISC metadata.xml 338 SHA256 b38ebfd69164d1ac72590accdd8924d8ce6104cfade9c5e1b3183d4d0266b0c5 SHA512 b4f2d1c6ec05bcd5db895bdb3a7427f0aefc5f1cbb2b83b138309fd8bd5a1082209063e4e78bdd3ae811d2bfba6b587f4e13cf1c2d0698ce0508fa94d39d3e5c WHIRLPOOL 1101852c8309c880283c878c0206f0396933e88904ba0962fd95919115e757fba7b6c895760a017f99aab904532ed93a59fd0eb00da867382c4f7d15bee98b8c
diff --git a/media-gfx/rotoscope/metadata.xml b/media-gfx/rotoscope/metadata.xml
new file mode 100644
index 000000000000..ce31a41e361e
--- /dev/null
+++ b/media-gfx/rotoscope/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="sourceforge">rotoscope</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/media-gfx/rotoscope/rotoscope-0.2.ebuild b/media-gfx/rotoscope/rotoscope-0.2.ebuild
new file mode 100644
index 000000000000..050a4fcc7539
--- /dev/null
+++ b/media-gfx/rotoscope/rotoscope-0.2.ebuild
@@ -0,0 +1,23 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=2
+
+DESCRIPTION="Graphics program that can be used to give photos a cartoon-like appearance"
+HOMEPAGE="http://www.toonyphotos.com"
+SRC_URI="mirror://sourceforge/${PN}/${PN}_${PV}.orig.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+RDEPEND="x11-libs/gtk+:2
+ >=gnome-base/libglade-2"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+src_install() {
+ emake DESTDIR="${D}" install || die "emake install failed."
+ dodoc AUTHORS README
+}
diff --git a/media-gfx/sam2p/Manifest b/media-gfx/sam2p/Manifest
new file mode 100644
index 000000000000..c1d9943e4b7f
--- /dev/null
+++ b/media-gfx/sam2p/Manifest
@@ -0,0 +1,15 @@
+AUX sam2p-0.45-fbsd.patch 319 SHA256 44944d770cb7dc515c54b325d46451edefb89b73ac3b407374d18b7639a26d80 SHA512 e0b0b48e391cf52cbb46613d185aedd0e758a2db8783798718600a7d4bb11cce15cd64fcadb222227d1adcb7f3a476b3c842ee206bfb8f127624fada7da8e770 WHIRLPOOL 8218acedf9e20218e0ab1a02cd2acda6511148ac10eadea4e4250c8d6d5baffd544100ddd371a2fbdc0155ab78453bc9a1e18c477c41a724385e8517cf34d736
+AUX sam2p-0.49-glibc-2.20.patch 629 SHA256 b68e7fcba981a9aed429e60f3384a9a8f377b569349ec6b477b036a9d6d339d3 SHA512 8c7dcef4bbe2b8f5b6934e286d313071ff50f872550134016b368104055dc18fe77843b9a59a6c8a853115b3154bbecb68fe3b4467c9d1eebe894ebcd379146c WHIRLPOOL 0b1a775e4121cfe47d031807343c5cd1e38f20edfa0812f365a74d1d8c4618dd503c3101fa2e6a8836f21a5f1ff119c7439b640db70e74464a533f3a00ee03de
+AUX sam2p-0.49.1-build.patch 1179 SHA256 4c61b451e671e9761aef3dc10f6cfcbf8d391037ea3f24fab6f62fd700e9c37f SHA512 4bb8693bb2068d295e8a996bf66ee94eb215f103ef7996ef236cb4e80be2489655350d902d6b0a3fdd66004d332294ff2478e2dea0d02714af49c652bea5184b WHIRLPOOL f724030b1aae7777a2ab2ab606d0f4951d2e7a3cbe81f4489e44989758e8c8749eb61782f2646ac38ae5f56997e4e6b1117f18be828ea86e00900e6f99f50f79
+AUX sam2p-0.49.1-gcc48.patch 1186 SHA256 2cf6e831872647a80deccba8a370f8e40e1b0dfa21deb1b0d2a5d397a162b5dc SHA512 048c3b308bfdc624ab43fd7403314ebbe3d1c2dd32c72d9236b5e5df2f4c1766fb88c7f6460cac74b84be3c6d8f5ed1e879299256f028b42700fc3d5d7e63bc0 WHIRLPOOL d61b9376184f693f7ccff58f9710c165767caa1e791cd2d2bc90ede9f0a5cb1f6196be3aaabcbcdd1797edd9e265fe2228fb782f4fea4c85e003c78153ff84fb
+AUX sam2p-0.49.3-build-fixes.patch 6108 SHA256 b4dbb564dcb9188983873f54db355a8741687df2a23871198cdcb6a92d3b7e88 SHA512 70e14339b6fb8f587adc4692982601db0b1d0343a737cf08931101589eaecc419e8f571bd138a6e585a7a9a7a9f2e8f3ebf3ccf4c315d805be9f625a917a56c3 WHIRLPOOL 4444b0d0aa0c75b14dd702f307277848e26b7ebe119ca36725e27150f3c56f94e1c8091b0bb94323ed8d27104540326ff828ffeccca415cb2b45bc702b29b91c
+AUX sam2p-0.49.3-perl526.patch 648 SHA256 a4e468fa406da069a2d5b937e376fe1eef92b4376d1972d0e162841079c585a8 SHA512 22628eadcf9399ba89a652ad41ac55e98fdb596df029e466a4bbc609131e914e456451362e8639c98dbf59c7e288296b4940fa2e92d8ce671715103e9b622f0d WHIRLPOOL 04363e57b993f71e4f508209571e1792b32193ea01894a9cc9cea4fab686ab173382db814d27574dadb4b838838373a1ea3ae5395eeb99bad0504ad87bfcb08c
+DIST sam2p-0.49.1.tar.gz 562304 SHA256 d97a270e3ad4ad138378b5fcb10e489e9af48a8150f308458771808dfceb069a SHA512 58565fdcb7c450ad23c2971b70f0362dbf4ecfd8c4dedf19c25b56fc98c8799696c6ecf75d47650bc3b21f88b8454d7c4e6b206f7c0ae0e5de35d608262c1220 WHIRLPOOL 809512e56f7e0b4ac0b8a00be1da1088a1249fbccf1b59470b4e25036ffdaf36884374c7735bad6a3440166e835c02ade7f87dc9eb00b92b84382602884517d5
+DIST sam2p-0.49.2.tar.gz 562733 SHA256 0e75d94bed380f8d8bd629f7797a0ca533b5d0b40eba2dab339146dedc1f79bf SHA512 8e4d629df192381bddf8468687c6a41d459b70788a5e9defc68d5497f855cbae838f2f6f924237b17e4a8e6fbf982fb2709615c8fb1d9c8cec5ec7ecf91ec6ce WHIRLPOOL 90ede2ba7b8f1dbc056cfdcfbaedd3cc995ccb58439050d6b4c51ab24a33f91b022110ea3a72ffe8b72e42f9104e936511fdbcdc1bf579fdac26c145ff2bb949
+DIST sam2p-0.49.3.tar.gz 2184864 SHA256 687210c3ccd12da646db2a6e53f2de5a3a7639a7bcb0c381a61789eca50a824d SHA512 9e9c91a2cd692e49bf73e7c197a0fcbe7df96c685636d1d00456eb8b4b847de3f4848d9bb3d9246340c479c62900ddd4e0a248257aa5e6ec6e16683c5dad54f8 WHIRLPOOL 5362348d1955f67ae6f64b72ec0d53e88e21c46d281e3e844329059f7d0f2c4a1ac2b2faeca48c1a923fbbbcff1c9732bb016192c001a2de1970197a17051f9b
+EBUILD sam2p-0.49.1.ebuild 943 SHA256 6ba571cbd981eba9a01394eb46146e326b96ac83dc5c314c2e44efb5e02d9994 SHA512 c90d0c231a6521de2d02d3b6a1963d11d096ac632428d23eeb1cae77cf3665f19032a97b62eced9fe5cd0ecf0a6c9d142582924b718f57e423ecfb2bfdab5b77 WHIRLPOOL fa1ec8879b1174aea76d760f4db4b93bb8989fef469443a75efe44d7159f07b0326c2f91109d0287cd867820d8e8943fca83579d714e8a92f105a1a9b69154a5
+EBUILD sam2p-0.49.2.ebuild 911 SHA256 4d890bfe95c1d18c8fe72126c5b584eb4af637eb269d8b1ad9c87ac86199057b SHA512 de9cb80aa6a45f5417daf63a2862d81effd51ed09d4851381399e8b6edb42ed5facb16790c1c6987cd8b2157d394f1f07ae462292be4a1ba00f1d05a0daddc49 WHIRLPOOL cf611374c1cff0abc6c2fae933cb5129cf45045398a0d5fac1c80e62c340b024aba55ebc2373f7985799c22f2661d3b4746461549e65ee82c4ec88f5792977bb
+EBUILD sam2p-0.49.3.ebuild 994 SHA256 e24ad0b07bf1a51862aa89d0fbe7613030cb141adff1892624f46f360d2b5ce1 SHA512 6774363be58fffdee1aa94384962b29ead42e5d27dde82422d3c9ada8a50c9ca1134fa3d06228252b2452b6adbb5e11d0a8c2a18229f219953d9edac30b48e38 WHIRLPOOL f96f8aeeb246afa75a244570efbb5fc28c6110772911f992f42630e56fa2e48fb5295d3175fb9498b642ed74ad16b27605830f8a5c776ac5e9e7cb9439a50b96
+MISC ChangeLog 3461 SHA256 844c6f31c125c46d5eb2d34f0a3e22f72d09b0b299f60afdb17d55e9851a6ed2 SHA512 85c40c4b003ba9783ffbb080a867a7526222f5b6fe736d3f5914844c146632a6384bd9662cb7b50607e6ea6ced3aa6d844ff2d62cd53aca89824a5d60517819f WHIRLPOOL 1d6918cd59e241620abe8c9a36e79179704a7078b7273afa22a1382f6d4b75073b224f5e01535ebc860346b78594ceeda2a9f22fc5d54b13d128695ff0f90496
+MISC ChangeLog-2015 7721 SHA256 136a342c4cffec5ab780060cfb3119761dc66f776697f97a9eb874ea04540648 SHA512 e1652ce86a4dc655cc566862bb1b63ac1c580e98fd8389ced629fbe791a869b4b89b20f50fe41dbc33314cd158e289541ef4a256d397e7c2f9457ddf8082ff2c WHIRLPOOL 45d40184927f0e19d5a1c570478e552223e1ebe3d1f0f35b403f35498f50c969beaccf97bf26889e4a99dd54905808a95f591c5b8eaa215e737cfa5c886d9e6a
+MISC metadata.xml 373 SHA256 7d85877654d908d869d132fba0afb2d878dabc71e36173eef8ce59e2082fb667 SHA512 2bac0bb931232d7b994f24551d0fedccfcaf69932e4900264857e9ba09a9c32495ab743c1fe930e63adca3b7bc11efdea526982e6e27869033bc17731fa5c7fa WHIRLPOOL f597c62d7481ead093380aea78486da250c32670029268de616993855c1ad49088154497461c8294fd3348631092b96bc4b1d8301f6c6e9adcc2f75784924f94
diff --git a/media-gfx/sam2p/files/sam2p-0.45-fbsd.patch b/media-gfx/sam2p/files/sam2p-0.45-fbsd.patch
new file mode 100644
index 000000000000..aed13acf08dd
--- /dev/null
+++ b/media-gfx/sam2p/files/sam2p-0.45-fbsd.patch
@@ -0,0 +1,14 @@
+--- gensio.cpp.orig Fri Feb 7 02:24:56 2003
++++ gensio.cpp Fri Feb 7 02:25:11 2003
+@@ -491,11 +491,7 @@
+ /* --- */
+
+
+-#if HAVE_lstat_in_sys_stat
+-# define PTS_lstat lstat
+-#else
+ # define PTS_lstat stat
+-#endif
+
+ /** @param fname must start with '/' (dir separator)
+ * @return true if file successfully created
diff --git a/media-gfx/sam2p/files/sam2p-0.49-glibc-2.20.patch b/media-gfx/sam2p/files/sam2p-0.49-glibc-2.20.patch
new file mode 100644
index 000000000000..f96a97969390
--- /dev/null
+++ b/media-gfx/sam2p/files/sam2p-0.49-glibc-2.20.patch
@@ -0,0 +1,18 @@
+https://bugs.gentoo.org/524048
+
+ignore warnings w/newer glibc-2.20
+
+patch by Dmitry Derevyanko
+
+--- a/ccdep.pl
++++ b/ccdep.pl
+@@ -233,6 +233,9 @@
+ } elsif ($S=~/\A([^:]+):\d+:(\d+:)? warning: this is the location of /) {
+ # ^^^ gcc-3.1
+ undef $included_from;
++ } elsif ($S=~/\A([^:]+):\d+:(\d+:)? warning: .*\bdeprecated\b/) {
++ # Example: /usr/include/features.h:148:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
++ undef $included_from;
+ } elsif ($S=~/: No such file or directory$/) { # Depends on $ENV{LC_ALL}.
+ # ^^^ gcc-3.3
+ undef $included_from;
diff --git a/media-gfx/sam2p/files/sam2p-0.49.1-build.patch b/media-gfx/sam2p/files/sam2p-0.49.1-build.patch
new file mode 100644
index 000000000000..ba421463d536
--- /dev/null
+++ b/media-gfx/sam2p/files/sam2p-0.49.1-build.patch
@@ -0,0 +1,42 @@
+--- configure.in
++++ configure.in
+@@ -81,7 +81,7 @@
+ dnl Checks for programs.
+ dnl AC_PROG_CC
+ AC_LANG_CPLUSPLUS
+-CXXFLAGS=" "
++#CXXFLAGS=" "
+ dnl ^^^ set it to non-empty, so AC_PROG_CXX won't include `-g'
+ CCC="$CCC g++"
+ dnl ^^^ check g++ before c++ (see acspecific.m4, grep AC_PROG_CXX)
+@@ -215,7 +215,7 @@
+
+ dnl AC_PTS_RUN_OK([perl -x -S ./ccdep.pl $CXX], [], [AC_MSG_ERROR(cannot compute depends)])
+ rm -f Makedep
+-AC_PTS_RUN_OK([make Makedep], [], [AC_MSG_ERROR(cannot compute depends)])
++AC_PTS_RUN_OK([gmake Makedep], [], [AC_MSG_ERROR(cannot compute depends)])
+ AC_PTS_OK
+ echo "configure done. Now you should run: make; make install"
+
+--- Makefile
++++ Makefile
+@@ -17,7 +17,7 @@
+ export PERL_BADLANG
+
+ CXXX=$(CXD_assert)
+-LDALL=$(LDXX) -s $(LDFLAGS) $(LIBS)
++LDALL=$(LDXX) $(LDFLAGS) $(LIBS)
+ ifeq ($(ENABLE_DEBUG), no)
+ CXXX=$(CXD_no)
+ endif
+@@ -51,8 +51,8 @@
+ IDE_TARGETS_debug := $(patsubst %,%.yes, $(TARGETS))
+ IDE_TARGETS_release := $(TARGETS)
+
+-CXD_assert =$(CXX) -s -O2
+-CXD_no =$(CXX) -s -DNDEBUG -O3
++CXD_assert =$(CXX)
++CXD_no =$(CXX) -DNDEBUG
+ # CXD_yes =$(CXX) $(GFLAG) -lefence
+ CXD_yes =$(CXX) $(GFLAG)
+ CXD_checker=checkerg++ $(GFLAG)
diff --git a/media-gfx/sam2p/files/sam2p-0.49.1-gcc48.patch b/media-gfx/sam2p/files/sam2p-0.49.1-gcc48.patch
new file mode 100644
index 000000000000..d427c2076d3c
--- /dev/null
+++ b/media-gfx/sam2p/files/sam2p-0.49.1-gcc48.patch
@@ -0,0 +1,39 @@
+Index: ccdep.pl
+===================================================================
+--- ccdep.pl (revision 123)
++++ ccdep.pl (revision 125)
+@@ -137,13 +137,20 @@
+
+ my @DS=find_ds();
+ my @DSQ=map{shq$_}@DS;
+-my $R="$GCCP -DOBJDEP -M -MG -E 2>&1 @DSQ";
+-$R=backtick($R);
++my $DIAG=" -fno-diagnostics-show-caret";
++my $Q="$GCCP -DOBJDEP$DIAG -M -MG -E 2>&1 @DSQ";
++my $R=backtick($Q);
++if ($R=~/\berror: .*-fno-diagnostics-show-caret\b/) {
++ # gcc-4.6 and earlier don't have this flag, and they fail.
++ $Q=~s@ -fno-diagnostics-show-caret(?=\s)@@;
++ $DIAG="";
++ $R=backtick($Q);
++}
+
+ if ($R!~/: warning: #warning\b/) {
+ # config2.h:314:4: warning: #warning REQUIRES: c_lgcc3.o
+ # Dat: g++-3.3 ignores #warning with -M -MG -E
+- $R.="\n".backtick("$GCCP -DOBJDEP -E 2>&1 >/dev/null @DSQ");
++ $R.="\n".backtick("$GCCP -DOBJDEP$DIAG -E 2>&1 >/dev/null @DSQ");
+ }
+
+ ## die $R;
+--- rule.hpp 2013-04-18 12:14:20.385333527 +0200
++++ rule.hpp 2013-04-18 12:14:35.818870070 +0200
+@@ -88,7 +88,7 @@
+ PR_PNGAuto=15,
+ PR_PNGAutoMaybe=25,
+ PR_PNGAutoBadUnsigned=45,
+- PR_PNGAutoBadSigned=55,
++ PR_PNGAutoBadSigned=55
+ END_STATIC_ENUM()
+ pr_t Predictor;
+
diff --git a/media-gfx/sam2p/files/sam2p-0.49.3-build-fixes.patch b/media-gfx/sam2p/files/sam2p-0.49.3-build-fixes.patch
new file mode 100644
index 000000000000..dfad65cc05d9
--- /dev/null
+++ b/media-gfx/sam2p/files/sam2p-0.49.3-build-fixes.patch
@@ -0,0 +1,160 @@
+Fix literal suffix errors in C++14, caused by missing spaces between
+C-strings and macros.
+See also: https://bugs.gentoo.org/show_bug.cgi?id=585630
+
+--- a/configure.in
++++ b/configure.in
+@@ -81,8 +81,6 @@
+ dnl Checks for programs.
+ dnl AC_PROG_CC
+ AC_LANG_CPLUSPLUS
+-CXXFLAGS=" "
+-dnl ^^^ set it to non-empty, so AC_PROG_CXX won't include `-g'
+ CCC="$CCC g++"
+ dnl ^^^ check g++ before c++ (see acspecific.m4, grep AC_PROG_CXX)
+ AC_PROG_CXX
+@@ -216,7 +214,7 @@
+
+ dnl AC_PTS_RUN_OK([perl -x -S ./ccdep.pl $CXX], [], [AC_MSG_ERROR(cannot compute depends)])
+ rm -f Makedep
+-AC_PTS_RUN_OK([make Makedep], [], [AC_MSG_ERROR(cannot compute depends)])
++AC_PTS_RUN_OK([gmake Makedep], [], [AC_MSG_ERROR(cannot compute depends)])
+ AC_PTS_OK
+ echo "configure done. Now you should run: make; make install"
+
+--- a/gensio.cpp
++++ b/gensio.cpp
+@@ -494,7 +494,7 @@
+
+ #if HAVE_PTS_POPEN
+ if (!tmpsname) {
+- if (NULLP==(p=popen(redir_cmd(), "w"CFG_PTS_POPEN_B))) Error::sev(Error::EERROR) << "Filter::PipeE" << ": popen() failed: " << (SimBuffer::B().appendDumpC(redir_cmd)) << (Error*)0;
++ if (NULLP==(p=popen(redir_cmd(), "w" CFG_PTS_POPEN_B))) Error::sev(Error::EERROR) << "Filter::PipeE" << ": popen() failed: " << (SimBuffer::B().appendDumpC(redir_cmd)) << (Error*)0;
+ signal(SIGPIPE, SIG_IGN); /* Don't abort process with SIGPIPE signals if child cannot read our data */
+ } else {
+ #else
+@@ -622,7 +622,7 @@
+ if (state==0) { /* Read the whole stream from `in', write it to `tmpsname' */
+ #if HAVE_PTS_POPEN
+ if (!tmpsname) {
+- if (NULLP==(p=popen(redir_cmd(), "w"CFG_PTS_POPEN_B))) Error::sev(Error::EERROR) << "Filter::PipeD" << ": popen() failed: " << (SimBuffer::B().appendDumpC(redir_cmd)) << (Error*)0;
++ if (NULLP==(p=popen(redir_cmd(), "w" CFG_PTS_POPEN_B))) Error::sev(Error::EERROR) << "Filter::PipeD" << ": popen() failed: " << (SimBuffer::B().appendDumpC(redir_cmd)) << (Error*)0;
+ signal(SIGPIPE, SIG_IGN); /* Don't abort process with SIGPIPE signals if child cannot read our data */
+ vi_precopy();
+ in.vi_read(0,0);
+@@ -730,12 +730,7 @@
+
+ /* --- */
+
+-
+-#if HAVE_lstat_in_sys_stat
+-# define PTS_lstat lstat
+-#else
+ # define PTS_lstat stat
+-#endif
+
+ /** @param fname must start with '/' (dir separator)
+ * @return true if file successfully created
+--- a/in_ps.cpp
++++ b/in_ps.cpp
+@@ -137,7 +137,7 @@
+ // fprintf(stderr, "bbox=[%"PTS_CFG_PRINTFGLEN"g %"PTS_CFG_PRINTFGLEN"g %"PTS_CFG_PRINTFGLEN"g %"PTS_CFG_PRINTFGLEN"g]\n", llx, lly, urx, ury);
+ /* Dat: we must call translate _after_ setpagedevice (so it will take effect), at least with ESP Ghostscript 7.05.6 (2003-02-05); BUGFIX at Fri Aug 12 22:49:07 CEST 2005 */
+ sprintf(bboxline,
+- "<</PageSize[%"PTS_CFG_PRINTFGLEN"g %"PTS_CFG_PRINTFGLEN"g]>>setpagedevice\n"
++ "<</PageSize[%" PTS_CFG_PRINTFGLEN "g %" PTS_CFG_PRINTFGLEN "g]>>setpagedevice\n"
+ /* removing /PageSize also cancels /a4, /a5 etc. */
+ /* we need `currentmatrix ... setpagedevice setmatrix' because
+ * setpagedevice cancels the current transformation matrix so our
+@@ -147,7 +147,7 @@
+ "/setpagedevice{matrix currentmatrix exch "
+ "dup length dict copy dup /PageSize undef setpagedevice "
+ "setmatrix}bind def\n"
+- "%"PTS_CFG_PRINTFGLEN"g %"PTS_CFG_PRINTFGLEN"g translate\n"
++ "%" PTS_CFG_PRINTFGLEN "g %" PTS_CFG_PRINTFGLEN "g translate\n"
+ , urx-llx, ury-lly, -llx, -lly);
+ } else {
+ Error::sev(Error::WARNING) << "in_eps_reader: missing EPS bbox" << (Error*)0;
+--- a/Makefile
++++ b/Makefile
+@@ -17,7 +17,7 @@
+ export PERL_BADLANG
+
+ CXXX=$(CXD_assert)
+-LDALL=$(LDXX) -s $(LDFLAGS) $(LIBS)
++LDALL=$(LDXX) $(LDFLAGS) $(LIBS)
+ ifeq ($(ENABLE_DEBUG), no)
+ CXXX=$(CXD_no)
+ endif
+@@ -51,8 +51,8 @@
+ IDE_TARGETS_debug := $(patsubst %,%.yes, $(TARGETS))
+ IDE_TARGETS_release := $(TARGETS)
+
+-CXD_assert =$(CXX) -s -O2
+-CXD_no =$(CXX) -s -DNDEBUG -O3
++CXD_assert =$(CXX)
++CXD_no =$(CXX) -DNDEBUG
+ # CXD_yes =$(CXX) $(GFLAG) -lefence
+ CXD_yes =$(CXX) $(GFLAG)
+ CXD_checker=checkerg++ $(GFLAG)
+--- a/minips.cpp
++++ b/minips.cpp
+@@ -292,9 +292,9 @@
+ void MiniPS::Real::dump(GenBuffer::Writable &out_, bool dumpPS_force) {
+ char buf[64]; /* Imp: should be enough?? */
+ if (metric!=0 && (dumpPS_force || dumpPS)) {
+- sprintf(buf, "%"PTS_CFG_PRINTFGLEN"g%s", d, me_psfactor[metric]);
++ sprintf(buf, "%" PTS_CFG_PRINTFGLEN "g%s", d, me_psfactor[metric]);
+ } else {
+- sprintf(buf, "%"PTS_CFG_PRINTFGLEN"g", d*me_factor[metric]);
++ sprintf(buf, "%" PTS_CFG_PRINTFGLEN "g", d*me_factor[metric]);
+ }
+ out_ << buf;
+ }
+@@ -1044,7 +1044,7 @@
+ } else {
+ d = d < 0 ? 72.0 / -d : d / 72.0;
+ char buf[64]; /* Dat: enough */
+- sprintf(buf, "%"PTS_CFG_PRINTFGLEN"g", d);
++ sprintf(buf, "%" PTS_CFG_PRINTFGLEN "g", d);
+ out << buf;
+ }
+ }
+@@ -1093,7 +1093,7 @@
+ out << (rounding>=2 && ll<0 ? 0 : ll);
+ } else {
+ char buf[64]; /* Dat: enough */
+- sprintf(buf, "%"PTS_CFG_PRINTFGLEN"g", d);
++ sprintf(buf, "%" PTS_CFG_PRINTFGLEN "g", d);
+ out << buf;
+ }
+ }
+--- a/ps_tiny.c
++++ b/ps_tiny.c
+@@ -151,7 +151,7 @@
+ }
+
+ static void erri(char const*msg1, char const*msg2) {
+- fprintf(stderr, "%s: error at %"SLEN_P"u.%"SLEN_P"u.%"SLEN_P"u: %s%s\n",
++ fprintf(stderr, "%s: error at %" SLEN_P "u.%" SLEN_P "u.%" SLEN_P "u: %s%s\n",
+ PROGNAME, curline, curofs-leftofs+1, curofs, msg1, msg2?msg2:"");
+ exit(3);
+ }
+@@ -230,7 +230,7 @@
+ /** @param b: assume null-terminated @return true on error */
+ static /*inline*/ sbool toInteger(char *s, psint_t *ret) {
+ int n=0; /* BUGFIX?? found by __CHECKER__ */
+- return sscanf(s, "%"SLEN_P"i%n", ret, &n)<1 || s[n]!='\0';
++ return sscanf(s, "%" SLEN_P "i%n", ret, &n)<1 || s[n]!='\0';
+ }
+
+ /** @param b: assume null-terminated @return true on error */
+@@ -700,7 +700,7 @@
+ getotag("Abbr");
+ getkey("acount"); acount=getuintval();
+ getkey("xcount"); xcount=getuintval();
+- sprintf(tmp,"%"SLEN_P"u dict%%</I>", acount+xcount);
++ sprintf(tmp,"%" SLEN_P "u dict%%</I>", acount+xcount);
+ setifmt(tmp,0); copy("I"); noifmt();
+ gettagbeg();
+
diff --git a/media-gfx/sam2p/files/sam2p-0.49.3-perl526.patch b/media-gfx/sam2p/files/sam2p-0.49.3-perl526.patch
new file mode 100644
index 000000000000..cb24dbda1bda
--- /dev/null
+++ b/media-gfx/sam2p/files/sam2p-0.49.3-perl526.patch
@@ -0,0 +1,23 @@
+commit 79a7de171f461a1c79089fa770f0da186e87c723
+Author: Peter Szabo <pts@fazekas.hu>
+Date: Sun Apr 30 04:00:23 2017 +0200
+
+ fixed Perl 5.26 compatibility for perl -x (https://github.com/pts/sam2p/issues/2)
+
+diff --git a/Makefile b/Makefile
+index 849b09d..1791a9c 100644
+--- a/Makefile
++++ b/Makefile
+@@ -71,10 +71,10 @@ sam2p_version.h: debian/changelog
+ sam2p_main.o: sam2p_version.h
+
+ xpmc.h: cols2.pl
+- perl -x cols2.pl >xpmc.h
++ perl -x ./cols2.pl >xpmc.h
+
+ #HQ=perl -e'$$_=join"",<STDIN>; s@([^\w\.\/\-])@sprintf"\\%03o",ord$$1@ge; print "\"$$_\"\n"'
+-HQ=perl -x hq.pl
++HQ=perl -x ./hq.pl
+ #%.tth: %.tte
+ # <$< >$@ $(HQ)
+ #%.tth: %.ttm
diff --git a/media-gfx/sam2p/metadata.xml b/media-gfx/sam2p/metadata.xml
new file mode 100644
index 000000000000..7dab55141c22
--- /dev/null
+++ b/media-gfx/sam2p/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>tex@gentoo.org</email>
+ <name>Gentoo TeX Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="google-code">sam2p</remote-id>
+ <remote-id type="github">pts/sam2p</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/media-gfx/sam2p/sam2p-0.49.1.ebuild b/media-gfx/sam2p/sam2p-0.49.1.ebuild
new file mode 100644
index 000000000000..3ec3ab048c36
--- /dev/null
+++ b/media-gfx/sam2p/sam2p-0.49.1.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+inherit autotools eutils toolchain-funcs
+
+DESCRIPTION="Utility to convert raster images to EPS, PDF and many others"
+HOMEPAGE="https://code.google.com/p/sam2p/"
+SRC_URI="https://sam2p.googlecode.com/files/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~x86-fbsd"
+IUSE="examples gif"
+
+RDEPEND=""
+DEPEND="dev-lang/perl"
+
+RESTRICT="test"
+
+src_prepare() {
+ epatch \
+ "${FILESDIR}"/${PN}-0.45-fbsd.patch \
+ "${FILESDIR}"/${PN}-0.49.1-build.patch \
+ "${FILESDIR}"/${PN}-0.49.1-gcc48.patch \
+ "${FILESDIR}"/${PN}-0.49-glibc-2.20.patch
+ eautoreconf
+ tc-export CXX
+}
+
+src_configure() {
+ econf --enable-lzw $(use_enable gif)
+}
+
+src_install() {
+ dobin sam2p
+ dodoc README
+
+ if use examples; then
+ insinto /usr/share/doc/${PF}/examples
+ doins examples/*
+ fi
+}
diff --git a/media-gfx/sam2p/sam2p-0.49.2.ebuild b/media-gfx/sam2p/sam2p-0.49.2.ebuild
new file mode 100644
index 000000000000..dd065be2dd58
--- /dev/null
+++ b/media-gfx/sam2p/sam2p-0.49.2.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+inherit autotools eutils toolchain-funcs
+
+DESCRIPTION="Utility to convert raster images to EPS, PDF and many others"
+HOMEPAGE="https://code.google.com/p/sam2p/"
+SRC_URI="https://sam2p.googlecode.com/files/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd"
+IUSE="examples gif"
+
+RDEPEND=""
+DEPEND="dev-lang/perl"
+
+RESTRICT="test"
+
+src_prepare() {
+ epatch \
+ "${FILESDIR}"/${PN}-0.45-fbsd.patch \
+ "${FILESDIR}"/${PN}-0.49.1-build.patch \
+ "${FILESDIR}"/${PN}-0.49-glibc-2.20.patch
+ eautoreconf
+ tc-export CXX
+}
+
+src_configure() {
+ econf --enable-lzw $(use_enable gif)
+}
+
+src_install() {
+ dobin sam2p
+ dodoc README
+
+ if use examples; then
+ insinto /usr/share/doc/${PF}/examples
+ doins examples/*
+ fi
+}
diff --git a/media-gfx/sam2p/sam2p-0.49.3.ebuild b/media-gfx/sam2p/sam2p-0.49.3.ebuild
new file mode 100644
index 000000000000..b135825759b9
--- /dev/null
+++ b/media-gfx/sam2p/sam2p-0.49.3.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit autotools toolchain-funcs
+
+DESCRIPTION="Utility to convert raster images to EPS, PDF and many others"
+HOMEPAGE="https://github.com/pts/sam2p"
+SRC_URI="https://github.com/pts/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 arm ~arm64 ~hppa ia64 ~mips ppc ppc64 ~s390 ~sh sparc x86 ~amd64-fbsd ~x86-fbsd"
+IUSE="examples gif"
+
+DEPEND="dev-lang/perl"
+
+RESTRICT="test"
+
+PATCHES=( "${FILESDIR}"/${P}-build-fixes.patch "${FILESDIR}/${P}-perl526.patch" )
+
+src_prepare() {
+ default
+
+ # configure.in files are deprecated
+ mv configure.{in,ac} || die
+
+ # eautoreconf is still needed or you get bad warnings
+ eautoreconf
+}
+
+src_configure() {
+ tc-export CXX
+
+ econf --enable-lzw $(use_enable gif)
+}
+
+src_install() {
+ dobin sam2p
+ einstalldocs
+
+ if use examples; then
+ dodoc -r examples
+ docompress -x /usr/share/doc/${PF}/examples
+ fi
+}
diff --git a/media-gfx/sane-backends/Manifest b/media-gfx/sane-backends/Manifest
new file mode 100644
index 000000000000..dcedbbbc7819
--- /dev/null
+++ b/media-gfx/sane-backends/Manifest
@@ -0,0 +1,15 @@
+AUX sane-backends-1.0.24-saned_pidfile_location.patch 345 SHA256 c95f305d01fd0dfb63944788f450d798a8882412f1d3e6da5c7e49f33cceba51 SHA512 49519b8fea68292b8cbd7bdcaf5b4803a1b890800e17015ace1d662e4503cc0844f191793c8f42cd6aa7e9922ee9f961d4784e30f22abc497973be1978bf1b24 WHIRLPOOL d72b314c7e4898c83a4c79e6fa39af978bd60e2b78afa58c1f8e1709b5f597292e965d330a58cd4109780fb2051dcd7880008f65d2b204fe476cbf3ce898e22b
+AUX sane-backends-1.0.25-disable-usb-tests.patch 428 SHA256 c9af9deacbde51c4c6566dc3ceef449d32137d398fb2691c619194cb69659fa3 SHA512 05e3d33f127211c2dd12e174083fa307a057a207bd3112045f3d6b6a5948643e0f450ebb473dabba3536a48b42393a63e8309d8bb788b80d18c42c9531aeb6f6 WHIRLPOOL c998c896e5271c73a4cafd8f119fd4d50898dcf8ba751ecb53416f49b81515a01c0b24440535dc9d8b40ccc0bd16293ae158f4496fda730e04436aa569f82549
+AUX sane-backends-1.0.27-disable-usb-tests.patch 336 SHA256 7f910c13f05dade4f68100a3438be29bf09eb0cb5274a85bafb56cf332fa5346 SHA512 64cce489e87de31e1a865b86d5829ae4914a30f47e27b07fba68629261cefcd617b8eed272c94b7554545e4802283c5bd5b53f79f54403d875726b38378ae74d WHIRLPOOL 5c678166fc82bf18422f08c2f1ed7cfd89fb0d84f50758628d191d2525697da03e1fc81c6f7eeb8ae24ab7f9e87f211f4370b65005d3aafe66e26f936aa88376
+AUX saned 150 SHA256 d18856d6dd26fac11988fea5217c8616686ad3c0c024ad5437efbf0fd24984f5 SHA512 26f3d66c6b1e75d87d7d430518aa878c77d5ab8d76a45847cef3ff15566341938eedf46c50d0fa8cdeef828df9cddefdd6fdd767c5de30d3aa7d64ed1911d910 WHIRLPOOL 5bdd707daeba740b980ce6dd51096716eec2c2939681f6abd9e7f73b50d8d384a68a07dcc11e9295cd123cc5d2a53d02def52133a559c3e33d63612028d2aac5
+AUX saned.confd 76 SHA256 197e44ba1f438a18f5f7d9f5858feb19c1ece4286d82a5e63caf9be5b964aa76 SHA512 8f4a99ef24c19b3a7213b3d25ea16f5bca8623735cf25d21e3a706e9e0135ac8cce5d0b8fb8728845977f41dcefe6bd858076d755515fc91b00e05ee5817d751 WHIRLPOOL ede920bf5eb1ee59263296a2ccce1ab2da2b04669c2f8a58de1fc4fa76cc1eee501290eb4fdaece464bc184cc0cfb17d100e9309a33d79c06142a3f03c91b837
+AUX saned.initd 294 SHA256 80e12e65ec5abf2e57da9fdf58e681845029ccab65206cd56a4bc06e2abefb0a SHA512 655200141339f14bf7fc6f4fff3403cf9504809b7f023aa5425aad691c5baa65772100da0a6311669f83ed1dce73b7d65ca20aa31345b13c48dfdb1b30ce5dbd WHIRLPOOL 0fd72d11962640451b7dd68066a6d029af322a5662486f9be1626a159422bf862aa4c397a69b956019e64bcce2c4388ff5ed14ed70038fa7efcf0dea9c07227d
+AUX saned.socket 132 SHA256 67e988f3294f33abd34974367fb3b48cd6d71a5c507d3ad9b0f86c5d7eac2dd6 SHA512 a23ceeeb02bd9e214702003a3165886858ecbdd93df89cd37ad5f00581745454548ccda0ab656f2dc0acbf2896a8781568c786797e64a07014be003d6140a093 WHIRLPOOL ac2140e47bb7d0ec6736cf9b231337f0e17d910072246d223ce017b5f6c975ba0deed3a0c7350a761154b455780529262a7d3f60b429c8996d9cd34c279ec17c
+AUX saned_at.service 434 SHA256 4892a381f3bc05679c4b20307046cf37c22bc2a17b141cb7a2b1297cd94e15b0 SHA512 891c751261107676f8159f403e0f4d4254099b709b9ba0ac9f2af97a9ed30f677411ad6bc316c2e6e673c616ba988253479d5e30c9617e3ae279beb79f70e965 WHIRLPOOL 4b413df19bca4dc52a8eb6c1a91edfb3b52744cd92483b6b416ef577e3698f71d82c85d000a45140e7bcdfa4b0a95e871375d0745d15cd06e419694535fa606c
+DIST sane-backends-1.0.25.tar.gz 5955016 SHA256 a4d7ba8d62b2dea702ce76be85699940992daf3f44823ddc128812da33dc6e2c SHA512 b9548646fff13558a4da4a4e9e8bad730f05121bcc65b72d24ded3bfddc6fe574e08c39c8651544b8fbfeab036fffd76cc14d76ef5d5d47e7513a2ce3afcc9df WHIRLPOOL 557a3ac8785c0dd7f98aa55d5edaf76fb5b2b3c86a2431bb40b5b132ac05de3abcb250a8bcf8ed188868c4f124ce0a323a92a5a83c7b44a20908fe40ca323711
+DIST sane-backends-1.0.27.tar.gz 6430188 SHA256 293747bf37275c424ebb2c833f8588601a60b2f9653945d5a3194875355e36c9 SHA512 c6552768bfc10216730fc11011c82f74ca0952182019ded3916072147ec09be5c975ce1d37dc3ccea050c488dbdf983c2ca17dcd702644060ba796ae2591f9c5 WHIRLPOOL 62ac1f4d4601bb2189212f021c23a48067ebdb5d900c2259ae4acdb6f94292c20689d9889bb11861b78be5ea7c3f76e815154e032f4bda76efcf901a97895cdd
+EBUILD sane-backends-1.0.25-r1.ebuild 7883 SHA256 31a194a93efa46cbcfd597e3f4ec28298230b5bdfc69c6942698a4ab63ba3b78 SHA512 2f201d80d12b5138f979b23932101eee82b9379b3110265b02dc8cb2664b9ce803ea774f4278aa52f65a3cb8c3261dcae50183ddf1e2c64be5a79e5209d154f3 WHIRLPOOL ead801902f9f94b9717be3aa45e50727fa8a0823257fadae3fa8e54c586cb7d47689e26a380cba0f800cf7ff558e1c2f3972df7ab6965fe1d0cff9829e18231c
+EBUILD sane-backends-1.0.27.ebuild 7922 SHA256 01d5e5d3c6cb7a971885d76a7f8ac77446dbb9904fd15e01c6b32c257667a7f3 SHA512 8aa67a03e2e552a62bb5b3a7062079bad280c64e2cbebedb2f1dc5f9d3d54f2209246dbfb4842479717454423bd4c61f28fa5551567691e9c6852eab44e7e7e8 WHIRLPOOL f3f2ef3c80363f9471f7bce7b9164117c785fb2f4a7ca6188d9a0c3b847495ae189eaefdb6feafe6b9e4f28198c3899014e254579f30a1675fdf233d5783d3eb
+MISC ChangeLog 5821 SHA256 fa6f96e052c8dfd3e34b0a775e9a2604c9f4b45bb3b2200c40f151e65a467773 SHA512 c8085e7371914acdca025efe83cf25226c32dc58213362b5292cfb54a36a7a8a3e91b196dbffacb5f7d3e886ac006da977a44cd697174dc747abdc8a4b6893ea WHIRLPOOL ebbe0fe42598e339f80cff820d7480be897f0311a5724d8aa7851c1f2b3e24191f35b10faf94d072b57016cb0d558353527202db56629fba288a0deb364ce38d
+MISC ChangeLog-2015 47640 SHA256 c6257e3d197ffa048e4c1e7f01ba4a2516965237fb15dcee476cc914573d3114 SHA512 fbc5f5ca0c8e3c0ad1f2ec241c13dbd5a17d42bd8fd38541f1fccd2effa6e858a996fb4758dbe9a8afefb7586df42094d78de936f22986d5138fbf20241a9e37 WHIRLPOOL ad673ba6b449c6cf6f93cf536fb8fdc8230a24d61048430f9c65bfb1a0b61ecc09543f846b0a838734034a383fd3f190af580175a507802c3fac067f6c88ec20
+MISC metadata.xml 166 SHA256 2caff447f5bd2701d8456ada5cc633c41ef4373fa4bfeabeb73599d40bcc941b SHA512 a56648c974a1d14dd4c18237532773c72057a13ab90c58b5da04f185e3c12a8bd8d5c21fb06053507f31766291a82dc7d87b34cd65fd94cfe2af7295c813ef84 WHIRLPOOL 1ff70497eca6531f0e0614c72a19f4b8e5ff486a58d369f4f0b36308d1d6b01168f9da887740e3b9f536236be251d3fe05f904d27a9233a7cf613416ba882968
diff --git a/media-gfx/sane-backends/files/sane-backends-1.0.24-saned_pidfile_location.patch b/media-gfx/sane-backends/files/sane-backends-1.0.24-saned_pidfile_location.patch
new file mode 100644
index 000000000000..c682961f7c3f
--- /dev/null
+++ b/media-gfx/sane-backends/files/sane-backends-1.0.24-saned_pidfile_location.patch
@@ -0,0 +1,11 @@
+--- sane-backends-1.0.23/frontend/saned.c
++++ sane-backends-1.0.23/frontend/saned.c
+@@ -221,7 +221,7 @@
+ int numchildren;
+
+ #define SANED_CONFIG_FILE "saned.conf"
+-#define SANED_PID_FILE "/var/run/saned.pid"
++#define SANED_PID_FILE "/var/run/saned/saned.pid"
+
+ #define SANED_SERVICE_NAME "sane-port"
+ #define SANED_SERVICE_PORT 6566
diff --git a/media-gfx/sane-backends/files/sane-backends-1.0.25-disable-usb-tests.patch b/media-gfx/sane-backends/files/sane-backends-1.0.25-disable-usb-tests.patch
new file mode 100644
index 000000000000..217a4408e2ff
--- /dev/null
+++ b/media-gfx/sane-backends/files/sane-backends-1.0.25-disable-usb-tests.patch
@@ -0,0 +1,14 @@
+do not let the tests try reading/locking usb hardware. we also disable
+this because the test will abort() if no usb support is found at all.
+
+--- a/testsuite/sanei/sanei_usb_test.c
++++ b/testsuite/sanei/sanei_usb_test.c
+@@ -832,6 +832,8 @@ main (int argc, char **argv)
+ int detected, opened, i;
+ SANE_Int dn[MAX_DEVICES];
+
++ return 77;
++
+ #ifdef HAVE_LIBUSB
+ printf ("\n%s built with old libusb\n\n", argv[0]);
+ #endif
diff --git a/media-gfx/sane-backends/files/sane-backends-1.0.27-disable-usb-tests.patch b/media-gfx/sane-backends/files/sane-backends-1.0.27-disable-usb-tests.patch
new file mode 100644
index 000000000000..6d208b9fbb83
--- /dev/null
+++ b/media-gfx/sane-backends/files/sane-backends-1.0.27-disable-usb-tests.patch
@@ -0,0 +1,11 @@
+--- a/testsuite/sanei/sanei_usb_test.c~ 2017-05-15 03:19:11.000000000 +0200
++++ b/testsuite/sanei/sanei_usb_test.c 2017-09-27 12:13:57.402803737 +0200
+@@ -832,6 +832,8 @@
+ int detected, opened, i;
+ SANE_Int dn[MAX_DEVICES];
+
++ return 77;
++
+ #ifdef HAVE_LIBUSB_LEGACY
+ printf ("\n%s built with old libusb\n\n", argv[0]);
+ #endif
diff --git a/media-gfx/sane-backends/files/saned b/media-gfx/sane-backends/files/saned
new file mode 100644
index 000000000000..4b3e228eec99
--- /dev/null
+++ b/media-gfx/sane-backends/files/saned
@@ -0,0 +1,10 @@
+service sane-port
+{
+ socket_type = stream
+ server = /usr/sbin/saned
+ protocol = tcp
+ user = saned
+ group = scanner
+ wait = no
+ disable = yes
+}
diff --git a/media-gfx/sane-backends/files/saned.confd b/media-gfx/sane-backends/files/saned.confd
new file mode 100644
index 000000000000..adb1eab2c86b
--- /dev/null
+++ b/media-gfx/sane-backends/files/saned.confd
@@ -0,0 +1,2 @@
+# The user saned should drop its privileges to after startup
+#SANED_USER=""
diff --git a/media-gfx/sane-backends/files/saned.initd b/media-gfx/sane-backends/files/saned.initd
new file mode 100644
index 000000000000..e7f2ebda689b
--- /dev/null
+++ b/media-gfx/sane-backends/files/saned.initd
@@ -0,0 +1,11 @@
+#!/sbin/openrc-run
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+pidfile="/var/run/saned/saned.pid"
+command="/usr/sbin/saned"
+command_args="-a ${SANED_USER:-root}"
+
+start_pre() {
+ checkpath -d -o ${SANED_USER:-root} ${pidfile%/*}
+}
diff --git a/media-gfx/sane-backends/files/saned.socket b/media-gfx/sane-backends/files/saned.socket
new file mode 100644
index 000000000000..1aa19e703c97
--- /dev/null
+++ b/media-gfx/sane-backends/files/saned.socket
@@ -0,0 +1,10 @@
+[Unit]
+Description=saned incoming socket
+
+[Socket]
+ListenStream=6566
+Accept=yes
+MaxConnections=1
+
+[Install]
+WantedBy=sockets.target
diff --git a/media-gfx/sane-backends/files/saned_at.service b/media-gfx/sane-backends/files/saned_at.service
new file mode 100644
index 000000000000..f3282e44da93
--- /dev/null
+++ b/media-gfx/sane-backends/files/saned_at.service
@@ -0,0 +1,18 @@
+[Unit]
+Description=Scanner Service
+Requires=saned.socket
+
+[Service]
+ExecStart=/usr/sbin/saned
+User=scanner
+Group=scanner
+StandardInput=null
+StandardOutput=syslog
+StandardError=syslog
+Environment=SANE_CONFIG_DIR=@CONFIGDIR@
+# If you need to debug your configuration uncomment the next line and
+# change it as appropriate to set the desired debug options
+# Environment=SANE_DEBUG_DLL=255 SANE_DEBUG_NET=255
+
+[Install]
+Also=saned.socket
diff --git a/media-gfx/sane-backends/metadata.xml b/media-gfx/sane-backends/metadata.xml
new file mode 100644
index 000000000000..6f49eba8f496
--- /dev/null
+++ b/media-gfx/sane-backends/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<!-- maintainer-needed -->
+</pkgmetadata>
diff --git a/media-gfx/sane-backends/sane-backends-1.0.25-r1.ebuild b/media-gfx/sane-backends/sane-backends-1.0.25-r1.ebuild
new file mode 100644
index 000000000000..1a8f79ce3b07
--- /dev/null
+++ b/media-gfx/sane-backends/sane-backends-1.0.25-r1.ebuild
@@ -0,0 +1,346 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+inherit eutils flag-o-matic multilib multilib-minimal udev user toolchain-funcs
+
+# gphoto and v4l are handled by their usual USE flags.
+# The pint backend was disabled because I could not get it to compile.
+IUSE_SANE_BACKENDS="
+ abaton
+ agfafocus
+ apple
+ artec
+ artec_eplus48u
+ as6e
+ avision
+ bh
+ canon
+ canon630u
+ canon_dr
+ canon_pp
+ cardscan
+ coolscan
+ coolscan2
+ coolscan3
+ dc210
+ dc240
+ dc25
+ dell1600n_net
+ dmc
+ epjitsu
+ epson
+ epson2
+ fujitsu
+ genesys
+ gt68xx
+ hp
+ hp3500
+ hp3900
+ hp4200
+ hp5400
+ hp5590
+ hpljm1005
+ hpsj5s
+ hs2p
+ ibm
+ kodak
+ kodakaio
+ kvs1025
+ kvs20xx
+ kvs40xx
+ leo
+ lexmark
+ ma1509
+ magicolor
+ matsushita
+ microtek
+ microtek2
+ mustek
+ mustek_pp
+ mustek_usb
+ mustek_usb2
+ nec
+ net
+ niash
+ p5
+ pie
+ pixma
+ plustek
+ plustek_pp
+ pnm
+ qcam
+ ricoh
+ rts8891
+ s9036
+ sceptre
+ sharp
+ sm3600
+ sm3840
+ snapscan
+ sp15c
+ st400
+ stv680
+ tamarack
+ teco1
+ teco2
+ teco3
+ test
+ u12
+ umax
+ umax1220u
+ umax_pp
+ xerox_mfp"
+
+IUSE="doc gphoto2 ipv6 nls snmp systemd threads usb v4l xinetd zeroconf"
+
+for backend in ${IUSE_SANE_BACKENDS}; do
+ case ${backend} in
+ # Disable backends that require parallel ports as no one has those anymore.
+ canon_pp|hpsj5s|mustek_pp|\
+ pnm)
+ IUSE+=" -sane_backends_${backend}"
+ ;;
+ mustek_usb2|kvs40xx)
+ IUSE+=" sane_backends_${backend}"
+ ;;
+ *)
+ IUSE+=" +sane_backends_${backend}"
+ esac
+done
+
+REQUIRED_USE="
+ sane_backends_mustek_usb2? ( threads )
+ sane_backends_kvs40xx? ( threads )
+"
+
+DESCRIPTION="Scanner Access Now Easy - Backends"
+HOMEPAGE="http://www.sane-project.org/"
+case ${PV} in
+9999)
+ EGIT_REPO_URI="git://anonscm.debian.org/sane/sane-backends.git"
+ inherit git-r3 autotools
+ ;;
+*_pre*)
+ MY_P="${PN}-git${PV#*_pre}"
+ SRC_URI="http://www.sane-project.org/snapshots/${MY_P}.tar.gz
+ mirror://gentoo/${MY_P}.tar.gz"
+ S=${WORKDIR}/${MY_P}
+ ;;
+*)
+ MY_P=${P}
+ FRS_ID="4146"
+ SRC_URI="https://alioth.debian.org/frs/download.php/file/${FRS_ID}/${P}.tar.gz"
+ ;;
+esac
+
+LICENSE="GPL-2 public-domain"
+SLOT="0"
+if [[ ${PV} != "9999" ]] ; then
+ KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux"
+fi
+
+RDEPEND="
+ sane_backends_dc210? ( >=virtual/jpeg-0-r2:0=[${MULTILIB_USEDEP}] )
+ sane_backends_dc240? ( >=virtual/jpeg-0-r2:0=[${MULTILIB_USEDEP}] )
+ sane_backends_dell1600n_net? (
+ >=virtual/jpeg-0-r2:0=[${MULTILIB_USEDEP}]
+ >=media-libs/tiff-3.9.7-r1:0=[${MULTILIB_USEDEP}]
+ )
+ sane_backends_canon_pp? ( >=sys-libs/libieee1284-0.2.11-r3[${MULTILIB_USEDEP}] )
+ sane_backends_hpsj5s? ( >=sys-libs/libieee1284-0.2.11-r3[${MULTILIB_USEDEP}] )
+ sane_backends_mustek_pp? ( >=sys-libs/libieee1284-0.2.11-r3[${MULTILIB_USEDEP}] )
+ usb? ( >=virtual/libusb-1-r1:1=[${MULTILIB_USEDEP}] )
+ gphoto2? (
+ >=media-libs/libgphoto2-2.5.3.1:=[${MULTILIB_USEDEP}]
+ >=virtual/jpeg-0-r2:0=[${MULTILIB_USEDEP}]
+ )
+ v4l? ( >=media-libs/libv4l-0.9.5[${MULTILIB_USEDEP}] )
+ xinetd? ( sys-apps/xinetd )
+ snmp? ( net-analyzer/net-snmp )
+ systemd? ( sys-apps/systemd:0= )
+ zeroconf? ( >=net-dns/avahi-0.6.31-r2[${MULTILIB_USEDEP}] )
+"
+
+DEPEND="${RDEPEND}
+ v4l? ( sys-kernel/linux-headers )
+ doc? (
+ virtual/latex-base
+ dev-texlive/texlive-latexextra
+ )
+ >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}]"
+
+# We now use new syntax construct (SUBSYSTEMS!="usb|usb_device)
+RDEPEND="${RDEPEND}
+ !<sys-fs/udev-114"
+
+MULTILIB_CHOST_TOOLS=(
+ /usr/bin/sane-config
+)
+
+pkg_setup() {
+ enewgroup scanner
+ enewuser saned -1 -1 -1 scanner
+}
+
+src_prepare() {
+ cat >> backend/dll.conf.in <<-EOF
+ # Add support for the HP-specific backend. Needs net-print/hplip installed.
+ hpaio
+ # Add support for the Epson-specific backend. Needs media-gfx/iscan installed.
+ epkowa
+ EOF
+ epatch "${FILESDIR}"/${PN}-1.0.24-saned_pidfile_location.patch
+ epatch "${FILESDIR}"/${PN}-1.0.25-disable-usb-tests.patch
+ if [[ ${PV} == "9999" ]] ; then
+ mv configure.{in,ac} || die
+ AT_NOELIBTOOLIZE=yes eautoreconf
+ fi
+
+ # Fix for "make check". Upstream sometimes forgets to update this.
+ local ver=$(./configure --version | awk '{print $NF; exit 0}')
+ sed -i \
+ -e "/by sane-desc 3.5 from sane-backends/s:sane-backends .*:sane-backends ${ver}:" \
+ testsuite/tools/data/html* || die
+}
+
+src_configure() {
+ append-flags -fno-strict-aliasing
+
+ # if LINGUAS is set, just use the listed and supported localizations.
+ if [[ ${LINGUAS+set} == "set" ]]; then
+ mkdir -p po || die
+ strip-linguas -u po
+ printf '%s\n' ${LINGUAS} > po/LINGUAS
+ fi
+
+ multilib-minimal_src_configure
+}
+
+multilib_src_configure() {
+ # the blank is intended - an empty string would result in building ALL backends.
+ local BACKENDS=" "
+
+ use gphoto2 && BACKENDS="gphoto2"
+ use v4l && BACKENDS="${BACKENDS} v4l"
+ for backend in ${IUSE_SANE_BACKENDS}; do
+ if use "sane_backends_${backend}" && [ ${backend} != pnm ]; then
+ BACKENDS="${BACKENDS} ${backend}"
+ fi
+ done
+
+ local myconf=(
+ $(use_enable usb libusb_1_0)
+ $(multilib_native_use_with snmp)
+ )
+
+ # you can only enable this backend, not disable it...
+ if use sane_backends_pnm; then
+ myconf+=( --enable-pnm-backend )
+ fi
+ if ! use doc; then
+ myconf+=( --disable-latex )
+ fi
+ if use sane_backends_mustek_pp; then
+ myconf+=( --enable-parport-directio )
+ fi
+ if ! { use sane_backends_canon_pp || use sane_backends_hpsj5s || use sane_backends_mustek_pp; }; then
+ myconf+=( sane_cv_use_libieee1284=no )
+ fi
+
+ # relative path must be used for tests to work properly
+ ECONF_SOURCE=${S} \
+ SANEI_JPEG="sanei_jpeg.o" SANEI_JPEG_LO="sanei_jpeg.lo" \
+ BACKENDS="${BACKENDS}" \
+ econf \
+ $(use_with gphoto2) \
+ $(multilib_native_use_with systemd) \
+ $(use_with v4l) \
+ $(use_enable ipv6) \
+ $(use_enable nls translations) \
+ $(use_enable threads pthread) \
+ $(use_enable zeroconf avahi) \
+ "${myconf[@]}"
+}
+
+multilib_src_compile() {
+ emake VARTEXFONTS="${T}/fonts"
+
+ if tc-is-cross-compiler; then
+ pushd "${BUILD_DIR}"/tools >/dev/null || die
+
+ # The build system sucks and doesn't handle this properly.
+ # https://alioth.debian.org/tracker/index.php?func=detail&aid=314236&group_id=30186&atid=410366
+ tc-export_build_env BUILD_CC
+ ${BUILD_CC} ${BUILD_CPPFLAGS} ${BUILD_CFLAGS} ${BUILD_LDFLAGS} \
+ -I. -I../include -I"${S}"/include \
+ "${S}"/sanei/sanei_config.c "${S}"/sanei/sanei_constrain_value.c \
+ "${S}"/sanei/sanei_init_debug.c "${S}"/tools/sane-desc.c -o sane-desc || die
+ local dirs=( hal hotplug hotplug-ng udev )
+ local targets=(
+ hal/libsane.fdi
+ hotplug/libsane.usermap
+ hotplug-ng/libsane.db
+ udev/libsane.rules
+ )
+ mkdir -p "${dirs[@]}" || die
+ emake "${targets[@]}"
+
+ popd >/dev/null
+ fi
+
+ if use usb; then
+ sed -i -e '/^$/d' \
+ tools/hotplug/libsane.usermap || die
+ fi
+}
+
+multilib_src_install() {
+ emake INSTALL_LOCKPATH="" DESTDIR="${D}" install \
+ docdir="${EPREFIX}"/usr/share/doc/${PF}
+
+ if multilib_is_native_abi; then
+ if use usb; then
+ insinto /etc/hotplug/usb
+ doins tools/hotplug/libsane.usermap
+ fi
+
+ udev_newrules tools/udev/libsane.rules 41-libsane.rules
+ insinto "/usr/share/pkgconfig"
+ doins tools/sane-backends.pc
+ fi
+}
+
+multilib_src_install_all() {
+ keepdir /var/lib/lock/sane
+ fowners root:scanner /var/lib/lock/sane
+ fperms g+w /var/lib/lock/sane
+ dodir /etc/env.d
+
+ if use usb; then
+ exeinto /etc/hotplug/usb
+ doexe tools/hotplug/libusbscanner
+ newdoc tools/hotplug/README README.hotplug
+ fi
+
+ dodoc NEWS AUTHORS ChangeLog* PROBLEMS README README.linux
+ prune_libtool_files --all
+ if use xinetd; then
+ insinto /etc/xinetd.d
+ doins "${FILESDIR}"/saned
+ fi
+
+ newinitd "${FILESDIR}"/saned.initd saned
+ newconfd "${FILESDIR}"/saned.confd saned
+}
+
+pkg_postinst() {
+ if use xinetd; then
+ elog "If you want remote clients to connect, edit"
+ elog "/etc/sane.d/saned.conf and /etc/hosts.allow"
+ fi
+
+ elog "If you are using a USB scanner, add all users who want"
+ elog "to access your scanner to the \"scanner\" group."
+}
diff --git a/media-gfx/sane-backends/sane-backends-1.0.27.ebuild b/media-gfx/sane-backends/sane-backends-1.0.27.ebuild
new file mode 100644
index 000000000000..b74b5565a8e7
--- /dev/null
+++ b/media-gfx/sane-backends/sane-backends-1.0.27.ebuild
@@ -0,0 +1,349 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit flag-o-matic ltprune multilib-minimal systemd toolchain-funcs udev user
+
+# gphoto and v4l are handled by their usual USE flags.
+# The pint backend was disabled because I could not get it to compile.
+IUSE_SANE_BACKENDS="
+ abaton
+ agfafocus
+ apple
+ artec
+ artec_eplus48u
+ as6e
+ avision
+ bh
+ canon
+ canon630u
+ canon_dr
+ canon_pp
+ cardscan
+ coolscan
+ coolscan2
+ coolscan3
+ dc210
+ dc240
+ dc25
+ dell1600n_net
+ dmc
+ epjitsu
+ epson
+ epson2
+ fujitsu
+ genesys
+ gt68xx
+ hp
+ hp3500
+ hp3900
+ hp4200
+ hp5400
+ hp5590
+ hpljm1005
+ hpsj5s
+ hs2p
+ ibm
+ kodak
+ kodakaio
+ kvs1025
+ kvs20xx
+ kvs40xx
+ leo
+ lexmark
+ ma1509
+ magicolor
+ matsushita
+ microtek
+ microtek2
+ mustek
+ mustek_pp
+ mustek_usb
+ mustek_usb2
+ nec
+ net
+ niash
+ p5
+ pie
+ pixma
+ plustek
+ plustek_pp
+ pnm
+ qcam
+ ricoh
+ rts8891
+ s9036
+ sceptre
+ sharp
+ sm3600
+ sm3840
+ snapscan
+ sp15c
+ st400
+ stv680
+ tamarack
+ teco1
+ teco2
+ teco3
+ test
+ u12
+ umax
+ umax1220u
+ umax_pp
+ xerox_mfp"
+
+IUSE="gphoto2 ipv6 snmp systemd threads usb v4l xinetd zeroconf"
+
+for backend in ${IUSE_SANE_BACKENDS}; do
+ case ${backend} in
+ # Disable backends that require parallel ports as no one has those anymore.
+ canon_pp|hpsj5s|mustek_pp|\
+ pnm)
+ IUSE+=" -sane_backends_${backend}"
+ ;;
+ mustek_usb2|kvs40xx)
+ IUSE+=" sane_backends_${backend}"
+ ;;
+ *)
+ IUSE+=" +sane_backends_${backend}"
+ esac
+done
+
+REQUIRED_USE="
+ sane_backends_mustek_usb2? ( threads )
+ sane_backends_kvs40xx? ( threads )
+"
+
+DESCRIPTION="Scanner Access Now Easy - Backends"
+HOMEPAGE="http://www.sane-project.org/"
+case ${PV} in
+9999)
+ EGIT_REPO_URI="git://anonscm.debian.org/sane/sane-backends.git"
+ inherit git-r3 autotools
+ ;;
+*_pre*)
+ MY_P="${PN}-git${PV#*_pre}"
+ SRC_URI="http://www.sane-project.org/snapshots/${MY_P}.tar.gz
+ mirror://gentoo/${MY_P}.tar.gz"
+ S=${WORKDIR}/${MY_P}
+ ;;
+*)
+ MY_P=${P}
+ FRS_ID="4224"
+ SRC_URI="https://alioth.debian.org/frs/download.php/file/${FRS_ID}/${P}.tar.gz"
+ ;;
+esac
+
+LICENSE="GPL-2 public-domain"
+SLOT="0"
+if [[ ${PV} != "9999" ]] ; then
+ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux"
+fi
+
+RDEPEND="
+ sane_backends_dc210? ( >=virtual/jpeg-0-r2:0=[${MULTILIB_USEDEP}] )
+ sane_backends_dc240? ( >=virtual/jpeg-0-r2:0=[${MULTILIB_USEDEP}] )
+ sane_backends_dell1600n_net? (
+ >=virtual/jpeg-0-r2:0=[${MULTILIB_USEDEP}]
+ >=media-libs/tiff-3.9.7-r1:0=[${MULTILIB_USEDEP}]
+ )
+ sane_backends_canon_pp? ( >=sys-libs/libieee1284-0.2.11-r3[${MULTILIB_USEDEP}] )
+ sane_backends_hpsj5s? ( >=sys-libs/libieee1284-0.2.11-r3[${MULTILIB_USEDEP}] )
+ sane_backends_mustek_pp? ( >=sys-libs/libieee1284-0.2.11-r3[${MULTILIB_USEDEP}] )
+ usb? ( >=virtual/libusb-1-r1:1=[${MULTILIB_USEDEP}] )
+ gphoto2? (
+ >=media-libs/libgphoto2-2.5.3.1:=[${MULTILIB_USEDEP}]
+ >=virtual/jpeg-0-r2:0=[${MULTILIB_USEDEP}]
+ )
+ v4l? ( >=media-libs/libv4l-0.9.5[${MULTILIB_USEDEP}] )
+ xinetd? ( sys-apps/xinetd )
+ snmp? ( net-analyzer/net-snmp )
+ systemd? ( sys-apps/systemd:0= )
+ zeroconf? ( >=net-dns/avahi-0.6.31-r2[${MULTILIB_USEDEP}] )
+"
+
+DEPEND="${RDEPEND}
+ v4l? ( sys-kernel/linux-headers )
+ >=sys-devel/gettext-0.18.1
+ >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}]
+"
+
+# We now use new syntax construct (SUBSYSTEMS!="usb|usb_device)
+RDEPEND="${RDEPEND}
+ !<sys-fs/udev-114
+"
+
+MULTILIB_CHOST_TOOLS=(
+ /usr/bin/sane-config
+)
+
+pkg_setup() {
+ enewgroup scanner
+ enewuser saned -1 -1 -1 scanner
+}
+
+src_prepare() {
+ default
+
+ cat >> backend/dll.conf.in <<-EOF
+ # Add support for the HP-specific backend. Needs net-print/hplip installed.
+ hpaio
+ # Add support for the Epson-specific backend. Needs media-gfx/iscan installed.
+ epkowa
+ EOF
+
+ eapply "${FILESDIR}"/${PN}-1.0.24-saned_pidfile_location.patch
+ eapply "${FILESDIR}"/${PN}-1.0.27-disable-usb-tests.patch
+
+ if [[ ${PV} == "9999" ]] ; then
+ mv configure.{in,ac} || die
+ AT_NOELIBTOOLIZE=yes eautoreconf
+ fi
+
+ # Fix for "make check". Upstream sometimes forgets to update this.
+ local ver=$(./configure --version | awk '{print $NF; exit 0}')
+ sed -i \
+ -e "/by sane-desc 3.5 from sane-backends/s:sane-backends .*:sane-backends ${ver}:" \
+ testsuite/tools/data/html* || die
+}
+
+src_configure() {
+ append-flags -fno-strict-aliasing # bug?????
+
+ # if LINGUAS is set, just use the listed and supported localizations.
+ if [[ ${LINGUAS+set} == "set" ]]; then
+ mkdir -p po || die
+ strip-linguas -u po
+ printf '%s\n' ${LINGUAS} > po/LINGUAS
+ fi
+
+ multilib-minimal_src_configure
+}
+
+multilib_src_configure() {
+ # the blank is intended - an empty string would result in building ALL backends.
+ local BACKENDS=" "
+
+ use gphoto2 && BACKENDS="gphoto2"
+ use v4l && BACKENDS="${BACKENDS} v4l"
+ for backend in ${IUSE_SANE_BACKENDS}; do
+ if use "sane_backends_${backend}" && [ ${backend} != pnm ]; then
+ BACKENDS="${BACKENDS} ${backend}"
+ fi
+ done
+
+ local myconf=(
+ $(use_with usb)
+ $(multilib_native_use_with snmp)
+ )
+
+ # you can only enable this backend, not disable it...
+ if use sane_backends_pnm; then
+ myconf+=( --enable-pnm-backend )
+ fi
+ if use sane_backends_mustek_pp; then
+ myconf+=( --enable-parport-directio )
+ fi
+ if ! { use sane_backends_canon_pp || use sane_backends_hpsj5s || use sane_backends_mustek_pp; }; then
+ myconf+=( sane_cv_use_libieee1284=no )
+ fi
+
+ # relative path must be used for tests to work properly
+ ECONF_SOURCE=${S} \
+ SANEI_JPEG="sanei_jpeg.o" SANEI_JPEG_LO="sanei_jpeg.lo" \
+ BACKENDS="${BACKENDS}" \
+ econf \
+ $(use_with gphoto2) \
+ $(multilib_native_use_with systemd) \
+ $(use_with v4l) \
+ $(use_enable ipv6) \
+ $(use_enable threads pthread) \
+ $(use_enable zeroconf avahi) \
+ "${myconf[@]}"
+}
+
+multilib_src_compile() {
+ emake VARTEXFONTS="${T}/fonts"
+
+ if tc-is-cross-compiler; then
+ pushd "${BUILD_DIR}"/tools >/dev/null || die
+
+ # The build system sucks and doesn't handle this properly.
+ # https://alioth.debian.org/tracker/index.php?func=detail&aid=314236&group_id=30186&atid=410366
+ tc-export_build_env BUILD_CC
+ ${BUILD_CC} ${BUILD_CPPFLAGS} ${BUILD_CFLAGS} ${BUILD_LDFLAGS} \
+ -I. -I../include -I"${S}"/include \
+ "${S}"/sanei/sanei_config.c "${S}"/sanei/sanei_constrain_value.c \
+ "${S}"/sanei/sanei_init_debug.c "${S}"/tools/sane-desc.c -o sane-desc || die
+ local dirs=( hal hotplug hotplug-ng udev )
+ local targets=(
+ hal/libsane.fdi
+ hotplug/libsane.usermap
+ hotplug-ng/libsane.db
+ udev/libsane.rules
+ )
+ mkdir -p "${dirs[@]}" || die
+ emake "${targets[@]}"
+
+ popd >/dev/null
+ fi
+
+ if use usb; then
+ sed -i -e '/^$/d' \
+ tools/hotplug/libsane.usermap || die
+ fi
+}
+
+multilib_src_install() {
+ emake INSTALL_LOCKPATH="" DESTDIR="${D}" install \
+ docdir="${EPREFIX}"/usr/share/doc/${PF}
+
+ if multilib_is_native_abi; then
+ if use usb; then
+ insinto /etc/hotplug/usb
+ doins tools/hotplug/libsane.usermap
+ fi
+
+ udev_newrules tools/udev/libsane.rules 41-libsane.rules
+ insinto "/usr/share/pkgconfig"
+ doins tools/sane-backends.pc
+ fi
+}
+
+multilib_src_install_all() {
+ keepdir /var/lib/lock/sane
+ fowners root:scanner /var/lib/lock/sane
+ fperms g+w /var/lib/lock/sane
+ dodir /etc/env.d
+
+ if use systemd; then
+ systemd_newunit "${FILESDIR}"/saned_at.service "saned@.service"
+ systemd_newunit "${FILESDIR}"/saned.socket saned.socket
+ fi
+
+ if use usb; then
+ exeinto /etc/hotplug/usb
+ doexe tools/hotplug/libusbscanner
+ newdoc tools/hotplug/README README.hotplug
+ fi
+
+ dodoc NEWS AUTHORS ChangeLog* PROBLEMS README README.linux
+ prune_libtool_files --modules
+ if use xinetd; then
+ insinto /etc/xinetd.d
+ doins "${FILESDIR}"/saned
+ fi
+
+ newinitd "${FILESDIR}"/saned.initd saned
+ newconfd "${FILESDIR}"/saned.confd saned
+}
+
+pkg_postinst() {
+ if use xinetd; then
+ elog "If you want remote clients to connect, edit"
+ elog "/etc/sane.d/saned.conf and /etc/hosts.allow"
+ fi
+
+ elog "If you are using a USB scanner, add all users who want"
+ elog "to access your scanner to the \"scanner\" group."
+}
diff --git a/media-gfx/sane-frontends/Manifest b/media-gfx/sane-frontends/Manifest
new file mode 100644
index 000000000000..8afa51213755
--- /dev/null
+++ b/media-gfx/sane-frontends/Manifest
@@ -0,0 +1,7 @@
+AUX MissingCapsFlag.patch 417 SHA256 b9b4738a01cc354268940d1bfcb484ef83b96c78a284708b8c5678dbd5f61a90 SHA512 39790a52414a7edcfc4dd9379bd8f35ce91e932209ba9c2ab3f1cb9e5dd140b37f3bfed1e642050a142da43ae435329ab60e201f2934be76648380615a3f37ef WHIRLPOOL c467818dfcf57b05eb707a506a28133e2b400d5dbca17ed637fcca85471301454cb3df5486c450c8ec9205f7287808a5a238f4718af10583f5674fd8bc2863f9
+DIST sane-frontends-1.0.14.tar.gz 231892 SHA256 e7839dac1b70b5bb39124615aba8a136f5275d0e78bafd3d52ed76964ffea4a9 SHA512 51b24a9bd6889e99419c1d6abb30cb14d8f89b6196c5147044697bdb1b39ee029bdc0d7c6e1f1e800491988aa26f658bc974b25040c49d008ca8977673c78710 WHIRLPOOL 734abe5322f0726eabfa7e7f6287d98315bcf7e24f9d06a3cf7248c408f0b055438261a73ae29ce102760403d94f1905cf596756eb42f63e747e2a55a4c5b000
+EBUILD sane-frontends-1.0.14-r1.ebuild 1386 SHA256 cd8c4b891b6187194824709c813b67d78bddbd61885b0943c1c3be1d684222e9 SHA512 01f6cda1eb98c511aab5445ec580df175e0bc8f6498c7693916a3931b714d926640797d2bfab5119b7487f3684ac7f132f8a4112f1fb9768a1b75ce9d4b1f88f WHIRLPOOL 74c652c75ec6d9b57c1127916ee5f4e7e53a298e31f3e5dd50649c62bb1d4b4763e6379b76225bba97701dbbbd868ed962f59ecad78ab77f762d5730d40948d0
+EBUILD sane-frontends-1.0.14.ebuild 1430 SHA256 84a8a5f6adedeb5612b76b413f50a24a088d041311184072d98a64378130ab58 SHA512 0f433d8f9915d2ba644b3d76e04e9b3bd208a8c9f3c62067203e0e5b571deab87f2577114f846143d3ca860ecfca9b383a8a3d0f470047009754ae0853ca4e30 WHIRLPOOL f995262713d6fc957be1603acf1def1b93a4f8e5798c37288642022d8ca71abef34e8bc6bc0c64dce3ea05603b39612d5ba6e65ad83947099a81cd716a6ed768
+MISC ChangeLog 2576 SHA256 341f98109b8b0729e3acd997adaa42c10aefcf1964cd5f8e30a95e1b13183bc9 SHA512 b7898950e80492ece04f932b6476a4c70296de1065bb443c5180d5111eeaf7e5577e88a0bcd8bffa63c2e6ead753d32e5d656b3286a8205bfff93b7dd1b39c34 WHIRLPOOL feadfcc356d49605514c009e6a2d715e2aa262de9ff4f19e1d4f0af085cbbc1442d92c05ae534b87ee0bdc85e5d516c4694088470fcf1f941fc9ca2e51e662d9
+MISC ChangeLog-2015 5933 SHA256 6bc6047c7b9ba3f836fb1698fbff74fbca17907f25059fe0b10fc372ba6ecc75 SHA512 8966c60bbc6f1750ae5ed301ee897b64f6846ebc564714e0aeb9418398a8198055b9022af0d5d1fa1d0a235aa86194f412037d11b25fdda4807f246a4b264849 WHIRLPOOL 8a025a631a7a544d209b46827152ab078e38af115465f2f2d561492954ff87813ce267c759d7db5a5b29f4a2ce45fdf2454d204b33f5e00eb773a0320247fe50
+MISC metadata.xml 166 SHA256 2caff447f5bd2701d8456ada5cc633c41ef4373fa4bfeabeb73599d40bcc941b SHA512 a56648c974a1d14dd4c18237532773c72057a13ab90c58b5da04f185e3c12a8bd8d5c21fb06053507f31766291a82dc7d87b34cd65fd94cfe2af7295c813ef84 WHIRLPOOL 1ff70497eca6531f0e0614c72a19f4b8e5ff486a58d369f4f0b36308d1d6b01168f9da887740e3b9f536236be251d3fe05f904d27a9233a7cf613416ba882968
diff --git a/media-gfx/sane-frontends/files/MissingCapsFlag.patch b/media-gfx/sane-frontends/files/MissingCapsFlag.patch
new file mode 100644
index 000000000000..226ca085713c
--- /dev/null
+++ b/media-gfx/sane-frontends/files/MissingCapsFlag.patch
@@ -0,0 +1,12 @@
+--- a/src/gtkglue.c 2005-04-16 15:12:07.000000000 +0200
++++ b/src/gtkglue.c 2009-06-24 00:26:46.000000000 +0200
+@@ -1476,8 +1476,7 @@
+ || opt->type == SANE_TYPE_GROUP || !dialog->element[i].widget)
+ continue;
+
+- if (!(opt->cap & SANE_CAP_ALWAYS_SETTABLE))
+- gtk_widget_set_sensitive (dialog->element[i].widget, sensitive);
++ gtk_widget_set_sensitive (dialog->element[i].widget, sensitive);
+ }
+ }
+
diff --git a/media-gfx/sane-frontends/metadata.xml b/media-gfx/sane-frontends/metadata.xml
new file mode 100644
index 000000000000..6f49eba8f496
--- /dev/null
+++ b/media-gfx/sane-frontends/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<!-- maintainer-needed -->
+</pkgmetadata>
diff --git a/media-gfx/sane-frontends/sane-frontends-1.0.14-r1.ebuild b/media-gfx/sane-frontends/sane-frontends-1.0.14-r1.ebuild
new file mode 100644
index 000000000000..26cd1d46586c
--- /dev/null
+++ b/media-gfx/sane-frontends/sane-frontends-1.0.14-r1.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit eutils
+
+DESCRIPTION="Scanner Access Now Easy"
+HOMEPAGE="http://www.sane-project.org"
+SRC_URI="ftp://ftp.sane-project.org/pub/sane/${P}/${P}.tar.gz
+ ftp://ftp.sane-project.org/pub/sane/old-versions/${P}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~sparc ~x86"
+IUSE="gimp"
+
+RDEPEND=""
+DEPEND="media-gfx/sane-backends
+ gimp? ( media-gfx/gimp )"
+
+PATCHES=( "${FILESDIR}/MissingCapsFlag.patch" )
+
+src_configure () {
+ local myconf=""
+ use gimp || myconf="--disable-gimp"
+ use gimp && ! has_version ">=media-gfx/gimp-2" && myconf="--enable-gimp12"
+ econf \
+ --datadir=/usr/share/misc \
+ ${myconf}
+ emake
+}
+
+src_install () {
+ local gimpplugindir
+ local gimptool
+ emake DESTDIR="${D}" install
+ if use gimp; then
+ for gimptool in gimptool gimptool-2.0 gimptool-1.2; do
+ if [ -x /usr/bin/${gimptool} ]; then
+ einfo "Setting plugin link for GIMP version $(/usr/bin/${gimptool} --version)"
+ gimpplugindir=$(/usr/bin/${gimptool} --gimpplugindir)/plug-ins
+ break
+ fi
+ done
+ if [ "/plug-ins" != "${gimpplugindir}" ]; then
+ dodir ${gimpplugindir}
+ dosym /usr/bin/xscanimage ${gimpplugindir}/xscanimage
+ else
+ ewarn "No idea where to find the gimp plugin directory"
+ fi
+ fi
+ dodoc AUTHORS Changelog NEWS PROBLEMS README
+}
diff --git a/media-gfx/sane-frontends/sane-frontends-1.0.14.ebuild b/media-gfx/sane-frontends/sane-frontends-1.0.14.ebuild
new file mode 100644
index 000000000000..536163b61125
--- /dev/null
+++ b/media-gfx/sane-frontends/sane-frontends-1.0.14.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+inherit eutils
+
+DESCRIPTION="Scanner Access Now Easy"
+HOMEPAGE="http://www.sane-project.org"
+SRC_URI="ftp://ftp.sane-project.org/pub/sane/${P}/${P}.tar.gz
+ ftp://ftp.sane-project.org/pub/sane/old-versions/${P}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 ppc ppc64 sparc x86"
+IUSE="gimp"
+
+DEPEND="media-gfx/sane-backends
+ gimp? ( media-gfx/gimp )"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}/MissingCapsFlag.patch"
+}
+
+src_compile() {
+ local myconf=""
+ use gimp || myconf="--disable-gimp"
+ use gimp && ! has_version ">=media-gfx/gimp-2" && myconf="--enable-gimp12"
+ econf \
+ --datadir=/usr/share/misc \
+ ${myconf} || die
+ emake || die "emake failed"
+}
+
+src_install() {
+ local gimpplugindir
+ local gimptool
+ emake DESTDIR="${D}" install || die
+ if use gimp; then
+ for gimptool in gimptool gimptool-2.0 gimptool-1.2; do
+ if [ -x /usr/bin/${gimptool} ]; then
+ einfo "Setting plugin link for GIMP version $(/usr/bin/${gimptool} --version)"
+ gimpplugindir=$(/usr/bin/${gimptool} --gimpplugindir)/plug-ins
+ break
+ fi
+ done
+ if [ "/plug-ins" != "${gimpplugindir}" ]; then
+ dodir ${gimpplugindir}
+ dosym /usr/bin/xscanimage ${gimpplugindir}/xscanimage
+ else
+ ewarn "No idea where to find the gimp plugin directory"
+ fi
+ fi
+ dodoc AUTHORS Changelog NEWS PROBLEMS README
+}
diff --git a/media-gfx/scantailor/Manifest b/media-gfx/scantailor/Manifest
new file mode 100644
index 000000000000..1519386587cf
--- /dev/null
+++ b/media-gfx/scantailor/Manifest
@@ -0,0 +1,5 @@
+DIST scantailor-0.9.12.2.tar.gz 1207379 SHA256 1f7b96bbe5179d46e332aea8d51ba50545fe7c510811e51588b6a4919e4feeab SHA512 d98603c5b3dfadeae3bda66d8b5ea085107edf9ee03efd299d50bf88a01f2b1092957f1ed4abe1a5d53b9028b7dec16dc5a8452d1a197fe0f3aaddeff6d02793 WHIRLPOOL 2ab46657538b5d95e2a564aa70775fdac8854136708f482c24c61507af217c75cb8974ace731a87b9a59d7e7da3788b23e28c178099fa479e2e01c3b767eb10c
+EBUILD scantailor-0.9.12.2.ebuild 1145 SHA256 4712071e65e28da23125442bbb351af796ebb2210745bbfa6af43f34556830f6 SHA512 451755455e848fe065829dffd38acdecab33e8dc53e25c064045efe5fb06c523041a45e25e84bf7f7a74cad47d2ce37c0a29ec50aafc0d6f27ffeee4df9242d8 WHIRLPOOL f1bd7fd0116840b59f578cb7192081280f17a72a4a2349b413791a946089f7f78262e01229a0a66f3db34406834d9c99a2455cc30ace125676b577a086fd8274
+MISC ChangeLog 2908 SHA256 890b9857fdfe543b82e8db16d2829952f414678a08979ba5b8c4682253c7ed48 SHA512 75f28370b3072d6c410e9c46d9b9bf582ca8654346d8a430b2d02cc7e5b71bc90e23ed0486da56716d4d18b678392996a0e11676cbbff937a33aa86210c85a43 WHIRLPOOL 4701e5feaa9ff4d8275ca24e9c2bfad338756bfd1e2ffb024eca72862491a81c3859fe3ffd906afc759c9a93d92d96490f6dda239b00c34ac5ed74f039fd483f
+MISC ChangeLog-2015 2101 SHA256 e95144ed7c35c0d8d00070efc4efe21bdb4f4079a17afc9f4bbd67891457f581 SHA512 2e401e0afdf919703d5038ee4ed7218ce5484d4acaf63dc6b80d39a9c40e194d26692ca3859edb236904375ffa33fefcb840c46565ce892228d5196b3f683a2c WHIRLPOOL ec7d9c1bc7f7ed5adb3f93d7ca480272bbc82b4693400090f10b970b616407716bca44e151c66b553e2dee9e810e610da531eb4cc6dc69137d2134b1d98ff8f7
+MISC metadata.xml 345 SHA256 28d52f71184c22c464b77f0ec78abd1f7a48a45058148802fb100bfbe550f71b SHA512 9cf847f38815e0611b5fe52a7a70a8a51d21a48ba68b13a204de1c3d8613e472a815790597bd691215ba09a50d57c5b6a7c7b122cf4bee166d89384f43a2045d WHIRLPOOL 1392890e2b77a61796a67edd7c9877162ef86aa179d11cea8df3895d5fcccea5f32ba483247e1ddf7cc274d9ec71907bbc92c06194ead9f978e139d033090e68
diff --git a/media-gfx/scantailor/metadata.xml b/media-gfx/scantailor/metadata.xml
new file mode 100644
index 000000000000..9e17a6dcaa61
--- /dev/null
+++ b/media-gfx/scantailor/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="github">scantailor/scantailor</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/media-gfx/scantailor/scantailor-0.9.12.2.ebuild b/media-gfx/scantailor/scantailor-0.9.12.2.ebuild
new file mode 100644
index 000000000000..6dee26316088
--- /dev/null
+++ b/media-gfx/scantailor/scantailor-0.9.12.2.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit cmake-utils eutils virtualx toolchain-funcs versionator
+MY_PV="RELEASE_$(replace_all_version_separators _)"
+MY_P="${PN}-${MY_PV}"
+
+DESCRIPTION="A interactive post-processing tool for scanned pages"
+HOMEPAGE="http://scantailor.org/ https://github.com/scantailor/scantailor"
+SRC_URI="https://github.com/scantailor/${PN}/archive/${MY_PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2 GPL-3 public-domain"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="opengl"
+
+RDEPEND="
+ dev-qt/qtcore:4
+ dev-qt/qtgui:4
+ media-libs/libpng:0
+ media-libs/tiff:0
+ sys-libs/zlib
+ virtual/jpeg:0
+ x11-libs/libXrender
+ opengl? ( dev-qt/qtopengl:4 )"
+DEPEND="${RDEPEND}
+ dev-libs/boost"
+
+S="${WORKDIR}/${PN}-${MY_PV}"
+
+src_configure() {
+ tc-export CXX
+
+ local mycmakeargs=(
+ -DCOMPILER_FLAGS_OVERRIDDEN=ON
+ -DENABLE_OPENGL=$(usex opengl)
+ )
+
+ cmake-utils_src_configure
+}
+
+src_test() {
+ cd "${CMAKE_BUILD_DIR}" || die
+ virtx emake test
+}
+
+src_install() {
+ cmake-utils_src_install
+
+ newicon resources/appicon.svg ${PN}.svg
+ make_desktop_entry ${PN} "Scan Tailor"
+}
diff --git a/media-gfx/scour/Manifest b/media-gfx/scour/Manifest
new file mode 100644
index 000000000000..1806fa0047f4
--- /dev/null
+++ b/media-gfx/scour/Manifest
@@ -0,0 +1,5 @@
+DIST scour-0.35.tar.gz 80981 SHA256 91a7dd0d721a3567b802c1b353ef451621594e628fe723cedb65cd4629fbc96f SHA512 9a09d862d66e21a63744401a44f517eef268288408556e3541218713ee8c5b5c0414ab03ac61d5d2fdbd2f01fa3276793b17f110d44cdec1c53c7b7dee16afc0 WHIRLPOOL 0e0d16aa11220a7219071e5570fc5265416c7b22eb0ec2cbff1ce21a810d4dc0128c8e576743b6c2e2b22f8a7fdaf73fbb584ca4345589a5757cf8b83f540a1f
+DIST scour-0.36.tar.gz 91575 SHA256 1b6820430c671c71406bf79afced676699d03bd3fcc65f01a651da5dcbcf3d3b SHA512 8593f46a0e36fe220f5ce6dd85696172435712491cd1a6983c12054965ce96eeb2a52be0877f8fa6967444817abfc353f9a00f1d8d676cbd6651cfd33a0790f7 WHIRLPOOL 1465a5aa04c768dded91c98dd55d03ef699c609b6b287db96ac3cf2bcb61d25fe35616ddbb3111a2602358c9577d411992f7b64f6d359c0306f4253defa19b86
+EBUILD scour-0.35-r1.ebuild 655 SHA256 188bee0b48233404c1fb48b3cd1edf454894f7c9c46ea5000476a5c5590c9800 SHA512 ff88db744f396df8d9c0e964c7a48db367b2dea7bb2093bf06674c4cf1907b36617f27f68828c9a141fe19b23294ac3401fb314277228b3cde8269d8a582f954 WHIRLPOOL bca8e249ea2ebac4a0e4e1b8af6b00b44f5619b0487b213bfb5e1b7173b9e4530474b38a7f7c7c19972941f9c704983f7d97b3bf81c0ffc643174e6ca52cbe30
+EBUILD scour-0.36.ebuild 666 SHA256 a3e9f6dddf98fa3ba03c74f2730bc64ce365759c29dfc780c4dfefc39dc76318 SHA512 3b64773458af27271f42db0a3b115b696eeb43bd04962b251cd53beab1382aceb88f58141af937ad0cc79439029fe39b1b39b898e15433cbd7b0c2fb95736e1c WHIRLPOOL eb2eaa3e03679a6598b0f78c48f5c177304e6602f874df9d3fdf57a2387df0284b2d0b1c5117d885fae158c9ffd5403c7e6e60ac1f6850566891d3f5412faf54
+MISC metadata.xml 265 SHA256 db1cfbffc28a5904257a8fbd4f99c081aa42b08239ff8d97aa299983b32d58fd SHA512 65fd64249e8dde8eb2ddcb67c58c05b36b10e51956e2237f60dd3ae50872492f3d5872b64106acb13e453a41960f4f817161be3c8b89e6b9a2367b8f1403ffaf WHIRLPOOL ea60bca9e9cd33aa65e8800ca0bc1c3e84a3f4cad168d7d3d8a8b73d335b866442271f1b027f7f1a6d69dbd1408555c495a581a9280c0b217036a6b736276906
diff --git a/media-gfx/scour/metadata.xml b/media-gfx/scour/metadata.xml
new file mode 100644
index 000000000000..6ade85e1c642
--- /dev/null
+++ b/media-gfx/scour/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 type="project">
+ <email>graphics@gentoo.org</email>
+ <name>Gentoo Graphics Project</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/media-gfx/scour/scour-0.35-r1.ebuild b/media-gfx/scour/scour-0.35-r1.ebuild
new file mode 100644
index 000000000000..ca09fb68ded8
--- /dev/null
+++ b/media-gfx/scour/scour-0.35-r1.ebuild
@@ -0,0 +1,24 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} )
+inherit distutils-r1
+
+DESCRIPTION="Take an SVG file and produce a cleaner and more concise file"
+HOMEPAGE="http://www.codedread.com/scour/"
+SRC_URI="https://github.com/codedread/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~hppa ~ppc ~ppc64 ~x86"
+IUSE=""
+
+RDEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
+ dev-python/six[${PYTHON_USEDEP}]"
+DEPEND="${RDEPEND}"
+
+python_test() {
+ "${EPYTHON}" testscour.py -v || die "Tests fail with ${EPYTHON}"
+}
diff --git a/media-gfx/scour/scour-0.36.ebuild b/media-gfx/scour/scour-0.36.ebuild
new file mode 100644
index 000000000000..a70ee93ef476
--- /dev/null
+++ b/media-gfx/scour/scour-0.36.ebuild
@@ -0,0 +1,24 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} )
+inherit distutils-r1
+
+DESCRIPTION="Take an SVG file and produce a cleaner and more concise file"
+HOMEPAGE="https://github.com/scour-project/scour"
+SRC_URI="https://github.com/scour-project/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~hppa ~ppc ~ppc64 ~x86"
+IUSE=""
+
+RDEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
+ dev-python/six[${PYTHON_USEDEP}]"
+DEPEND="${RDEPEND}"
+
+python_test() {
+ "${EPYTHON}" testscour.py -v || die "Tests fail with ${EPYTHON}"
+}
diff --git a/media-gfx/scrot/Manifest b/media-gfx/scrot/Manifest
new file mode 100644
index 000000000000..0639164688b4
--- /dev/null
+++ b/media-gfx/scrot/Manifest
@@ -0,0 +1,10 @@
+AUX scrot.bash-completion 1063 SHA256 fdae201eacd656fd817d6ef3663b4b2256fa079ef010705587399b423c84ef42 SHA512 ce8df63bb5b10dbf19f465f2629ebe7045d84105f3da70a49f2bde6a0a416a8f14a02ba3e7d3a8aeba144a592b45a770929b56f6ae7ac867222213ac8f923a0f WHIRLPOOL 221eea17ae544fab6842bead1a87b4c97bd7903bd3ce71d492671141bc0db732a3f7501b5cb5563ce778c15b18bdc4c988a36b7f0e5a2bd37a9057afc4613d0e
+DIST scrot-0.8.tar.gz 74324 SHA256 613d1cf524c2b62ce3c65f1232ea4f05c7daf248d5e82ff2a6892c98093994f2 SHA512 cba8f589e45758ddbfe4e276399a1ecb0dbe29569be5d85d97733e7f64de2911bd2d03e62700ad0c718a1fc886c2e3def9dee1de5cac884f9e65e772cebe838c WHIRLPOOL 713e21755b7252d8bb32ec499674249ab29015e1896e67e98be02c403f7b20973389617698195f93ebc7f77249e14122e402f9fb4a110ac7bdbdb62c57863cab
+DIST scrot_0.8-13.debian.tar.gz 7943 SHA256 508bb60c9f476d593a49ca0f1bbe0b3d5a742289146c5b33033435fc286e2376 SHA512 3f6d0a8e592088af38a3d90394b6b7246430479f5b0c8451af5eae383725d1896dc4bbf595495f9f2b546f00ef38780123c4ee0e3f06971c55a6ac2dfa5b7d53 WHIRLPOOL d60a42425ea541a18879207d0b5d1b0936a733adc1168aed13793258c2812556e0e6ccf69f834fff59ea326ff9d990c72475f8a2115a609dbdf618a076c10501
+DIST scrot_0.8.orig.tar.gz 74324 SHA256 613d1cf524c2b62ce3c65f1232ea4f05c7daf248d5e82ff2a6892c98093994f2 SHA512 cba8f589e45758ddbfe4e276399a1ecb0dbe29569be5d85d97733e7f64de2911bd2d03e62700ad0c718a1fc886c2e3def9dee1de5cac884f9e65e772cebe838c WHIRLPOOL 713e21755b7252d8bb32ec499674249ab29015e1896e67e98be02c403f7b20973389617698195f93ebc7f77249e14122e402f9fb4a110ac7bdbdb62c57863cab
+EBUILD scrot-0.8-r1.ebuild 662 SHA256 f8a0e12187611f5a75cb3439bf4387a5998ab692a3f43b7469d5bcd2fc7671c0 SHA512 edd9a48e946ea4e3cbaedf277c1d80f9bd8c5a727da72ce1e6167fe1d23bbe9103b804197e4e46ef0a47500c54221d2299bae5abfd709eb5deeceae6ba10c66a WHIRLPOOL 2d4af75174def89d6ab2abf624ddef9208d47e6d4fcc688a075bad707334e0c5fc5e81a30ff8fd9a05cfc6b615a5528296d1a5d9327637ee5c107cc2a9922107
+EBUILD scrot-0.8_p13-r1.ebuild 1002 SHA256 55330089f3d523f431a3a0853a291337568af820f6af698f8f29e17d50515a1d SHA512 dd5bbb9672729f53fee54b7d2fde70d0c15f8459f27df3dd47c3d612f876c9bf96f240798501afc3563577da4ffe57c9d20fc17ce100c74f109f8172252dad6f WHIRLPOOL e078034e796d1a2596d9e6d18d17182d4ab17f2845823c2741c16f9c9468124d26230b9e576649f5419fb4f6072848af5d440a7a5310cb08df4d6a0a40eb1a6b
+EBUILD scrot-0.8_p13.ebuild 909 SHA256 635e5ab67bd3ad1c778967b42c1be9976bd1f28c7982afc3834f2332f579a710 SHA512 98b9ef9f2a381fb4f33a87d51b0115ea38edea097bba1a5c71f96be1da04e6182e3e2586deee1e64962d2ed14ef2ec57458a1ffd842952cb8981bab8122224fa WHIRLPOOL 64a3994437b63f7dbfa16e3f2d67b6b713022b11c5e6afb6d1b367965708625dbfdd7ee94dc93588dae5fa1296e9851982826e95b976ab4364205b0357d5fa15
+MISC ChangeLog 2938 SHA256 b2d0870cccf57a0912da4a087ce4439625f137e4ca25ae7e1d4348c29c226bd1 SHA512 96ac46f0c9eff3786e8b4222b3ea57ee66d2a19656ead4f395981ba012fc1958ce58b8c128ebb69376f3ebb40f458754b02e6c198976b398359d7d45e8c5989e WHIRLPOOL 3beecb5d4f94f82498953fcbb4552a3ba8e44f32f5c7aec064f87df4b085c1f0325db327e12019f1938be301e52c65fd2bfd3de51e99cb3a0987b11e2faddd48
+MISC ChangeLog-2015 4293 SHA256 3d844fd76b0d2c5d34b8100b189ebb6496cb08fd56e99ebc40529109cad4d377 SHA512 777d5db539f1fb1f9ce9f6f986ed94744e38cc55675a737fa0ddf5ee1356fc15990451e2d9b9b0238bf74e48147d1bd634d6708d537378a043a5f66f0540c173 WHIRLPOOL 0b2f187517a4e1019d72ffed472a299b439b75b5623f3b6413fb03c229b72e5b8b09674cd7bd969db81d69668fd79aa5358cf821a2041ec6207296dcd12d2ad9
+MISC metadata.xml 255 SHA256 3e7137870fc49956d79719e3dfe029775cbaaa097e85748c139713c46fcd1798 SHA512 b7bc93530a1726c2d4dfbc71ae29cfbb57712fd9fdd2e76fd52f35ab4368cba0497b50145d1527a3b79e465d459a380821bb1371a01c2e915dc9adc6c7fafd5f WHIRLPOOL 392188d7e069f1720be9329edfb31b11b176bf0c411023b2ceeaeabef1cacf842d70657a2a14ac2ddabbdad70a304275f3b587e9bcdfe77be63a0092e370252c
diff --git a/media-gfx/scrot/files/scrot.bash-completion b/media-gfx/scrot/files/scrot.bash-completion
new file mode 100644
index 000000000000..d7e5729cd849
--- /dev/null
+++ b/media-gfx/scrot/files/scrot.bash-completion
@@ -0,0 +1,40 @@
+# bash-completion script for scrot
+# place this in /etc/bash_completion.d
+
+_scrot() {
+ local cur prev opts
+ COMPREPLY=()
+ cur=${COMP_WORDS[COMP_CWORD]}
+ prev=${COMP_WORDS[COMP_CWORD-1]}
+ opts="-h --help -v --version -b --border -c --count -d --delay -e --exec \
+ -q --quality -m --multidisp -s --select -t --thumb"
+
+ if [[ "${cur}" == -* ]] || [[ ${COMP_CWORD} -eq 1 ]]; then
+ COMPREPLY=($(compgen -W "${opts}" -- "${cur}"))
+ fi
+
+ case "${prev}" in
+ -e|--exec)
+ COMPREPLY=($(compgen -A command -- "${cur}"))
+ ;;
+ -h|--help)
+ COMPREPLY=($(compgen -W "${opts/-h --help}" -- "${cur}"))
+ ;;
+ -v|--version)
+ COMPREPLY=($(compgen -W "${opts/-v --version}" -- "${cur}"))
+ ;;
+ -b|--border)
+ COMPREPLY=($(compgen -W "${opts/-b --border}" -- "${cur}"))
+ ;;
+ -c|--count)
+ COMPREPLY=($(compgen -W "${opts/-c --count}" -- "${cur}"))
+ ;;
+ -m|--multidisp)
+ COMPREPLY=($(compgen -W "${opts/-m --multidisp}" -- "${cur}"))
+ ;;
+ -s|--select)
+ COMPREPLY=($(compgen -W "${opts/-s --select}" -- "${cur}"))
+ ;;
+ esac
+}
+complete -F _scrot scrot
diff --git a/media-gfx/scrot/metadata.xml b/media-gfx/scrot/metadata.xml
new file mode 100644
index 000000000000..19bf1be2581e
--- /dev/null
+++ b/media-gfx/scrot/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 type="project">
+ <email>graphics@gentoo.org</email>
+ <name>Gentoo Graphics Project</name>
+</maintainer>
+</pkgmetadata>
diff --git a/media-gfx/scrot/scrot-0.8-r1.ebuild b/media-gfx/scrot/scrot-0.8-r1.ebuild
new file mode 100644
index 000000000000..4ca575a899da
--- /dev/null
+++ b/media-gfx/scrot/scrot-0.8-r1.ebuild
@@ -0,0 +1,27 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit bash-completion-r1
+
+DESCRIPTION="Screen capture utility using imlib2 library"
+HOMEPAGE="http://www.linuxbrit.co.uk/"
+SRC_URI="http://www.linuxbrit.co.uk/downloads/${P}.tar.gz"
+
+LICENSE="feh LGPL-2+"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ppc ~ppc64 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd"
+IUSE=""
+
+RDEPEND=">=media-libs/imlib2-1.0.3
+ >=media-libs/giblib-1.2.3"
+DEPEND="${RDEPEND}"
+
+src_install() {
+ emake DESTDIR="${D}" install
+ rm -r "${D}"/usr/doc
+ dodoc AUTHORS ChangeLog
+
+ newbashcomp "${FILESDIR}/${PN}.bash-completion" ${PN}
+}
diff --git a/media-gfx/scrot/scrot-0.8_p13-r1.ebuild b/media-gfx/scrot/scrot-0.8_p13-r1.ebuild
new file mode 100644
index 000000000000..46e7b729c2cc
--- /dev/null
+++ b/media-gfx/scrot/scrot-0.8_p13-r1.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+MY_PV=${PV/_p/-}
+
+inherit bash-completion-r1 eutils
+
+DESCRIPTION="Screen capture utility using imlib2 library"
+HOMEPAGE="http://scrot.sourcearchive.com/"
+SRC_URI="http://${PN}.sourcearchive.com/downloads/${MY_PV}/${PN}_0.8.orig.tar.gz
+ http://${PN}.sourcearchive.com/downloads/${MY_PV}/${PN}_${MY_PV}.debian.tar.gz"
+
+LICENSE="feh LGPL-2+"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ppc ~ppc64 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd"
+IUSE=""
+
+RDEPEND=">=media-libs/imlib2-1.0.3
+ >=media-libs/giblib-1.2.3
+ || ( media-libs/imlib2[gif] media-libs/imlib2[jpeg] media-libs/imlib2[png] )"
+DEPEND="${RDEPEND}"
+
+S=${WORKDIR}/${PN}-0.8
+
+src_prepare() {
+ local d=${WORKDIR}/debian/patches
+ EPATCH_SOURCE=${d} epatch $(<"${d}"/series)
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+ rm -r "${D}"/usr/doc || die
+ dodoc AUTHORS ChangeLog
+
+ newbashcomp "${FILESDIR}"/${PN}.bash-completion ${PN}
+}
diff --git a/media-gfx/scrot/scrot-0.8_p13.ebuild b/media-gfx/scrot/scrot-0.8_p13.ebuild
new file mode 100644
index 000000000000..116fe3d5dd6f
--- /dev/null
+++ b/media-gfx/scrot/scrot-0.8_p13.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+MY_PV=${PV/_p/-}
+
+inherit bash-completion-r1 eutils
+
+DESCRIPTION="Screen capture utility using imlib2 library"
+HOMEPAGE="http://scrot.sourcearchive.com/"
+SRC_URI="http://${PN}.sourcearchive.com/downloads/${MY_PV}/${PN}_0.8.orig.tar.gz
+ http://${PN}.sourcearchive.com/downloads/${MY_PV}/${PN}_${MY_PV}.debian.tar.gz"
+
+LICENSE="feh LGPL-2+"
+SLOT="0"
+KEYWORDS="alpha amd64 arm hppa ppc ppc64 ~sh sparc x86 ~amd64-fbsd ~x86-fbsd"
+IUSE=""
+
+RDEPEND=">=media-libs/imlib2-1.0.3
+ >=media-libs/giblib-1.2.3"
+DEPEND="${RDEPEND}"
+
+S=${WORKDIR}/${PN}-0.8
+
+src_prepare() {
+ local d=${WORKDIR}/debian/patches
+ EPATCH_SOURCE=${d} epatch $(<"${d}"/series)
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+ rm -r "${D}"/usr/doc
+ dodoc AUTHORS ChangeLog
+
+ newbashcomp "${FILESDIR}"/${PN}.bash-completion ${PN}
+}
diff --git a/media-gfx/sfftobmp/Manifest b/media-gfx/sfftobmp/Manifest
new file mode 100644
index 000000000000..3f757ab72ec6
--- /dev/null
+++ b/media-gfx/sfftobmp/Manifest
@@ -0,0 +1,7 @@
+AUX sfftobmp-3.1.1-gcc44-and-boost-1_37.patch 1351 SHA256 cd0630bab67b6a02887f02b69013aa2fbb038e38fab6e2ec22dd5b1870f5acd4 SHA512 bd92e0f3e6743941080319da764ce6bbdb0b8d0694a9e5dd113e3a64c0deb0a86ce33a9a9f306c8a2c75d08f6fb33c78c1fe60f36309acf9c6223ec02b158f5b WHIRLPOOL c3be5ed263e5c2e8236ef838087424ddd8ccc00b348888350bd840a7aef5543342a9ad9445c7caf39da5d9f486111b02e2e817be94af46369e8f68ae467186a3
+AUX sfftobmp-3.1.2-boost_fs3.patch 538 SHA256 a2314dd69429eec8d3d44c066a69ee7cf021315a10b47c64c74fd5d01b1158ed SHA512 75158af4ff574fe5112e4057ce0c2bca2f49afaf63862c42add85b8ee8e843f0a08b8c3d9f658f999024643d95ffcd65085bcb0607213722eb021b102037872e WHIRLPOOL bd05410507f8dc16c39e34e79f385208b1ae833ee03096c8afa7e1f40babf633065d343728bd0854d98a8d322311310547a8369a0b4be2126ec10b8d42b0a9db
+DIST sfftobmp3_1_2_src.zip 121478 SHA256 08f8080ead0e0c1fee4cfb0061ea08edfd95dae60f333269337ae17d9562d970 SHA512 3c460dcd60486954f792ecc8e864d109dabbae30b56a6ba4b3228a42dd489fd88793e4d93e2d032e6cd1c552bf5e217bc2afb3eae85a1a4e1db340f7761905b7 WHIRLPOOL bde9c8d2bd9f9b1a25af99fc19e781501764de1715ad7f6be33e53cee88b0672d629de28be2601bf1001eb8be3deb837413e42b72a3125dea01aae3049c4743c
+EBUILD sfftobmp-3.1.2-r1.ebuild 779 SHA256 f64c0b8538b4cfcfea4b49aa5d7f3820fd1edb1b7137f04ed11bdd3d42542a6f SHA512 89449a9ad5737348348b82005230d9d72fcde123c08908d1d0f6af51926db4cca510fc2221a958450948aaa59650998da0829b344154014ba612b81d6ac55c9a WHIRLPOOL 89a4e9f3bf4c55f5cdf573db7d58ac715ff1fba6424653ce9f229181700a54a0ecec09d3267892b0c8ed89033fcc0b905aaa5e754953da9e5015ab17bcbee802
+MISC ChangeLog 2530 SHA256 ececb19244b0d42a88f4b072d87acc2ad883ff6831c0150a94a858b77c0932e7 SHA512 9e9b7d30af5212adf594501a3e58aaf97aacf4ad9dba09b8583dfb4da66cd24d82ca6750e86712e4fd5c96ab93b42805bf3773c3a37dd77d41f3e49cb79b4e44 WHIRLPOOL 0c95dc3a0988b285e2cf41e3131827f439e02d4863e557da2409a976aa4abaf99124e53288fe5bfd0317d57293b7fcbfbcfa6d955c427b1cec2f688746ee4420
+MISC ChangeLog-2015 3865 SHA256 4d05d3f35efbb6582afda48edafe2b8e6656a3b58c2b0980b0e3fccb87019ce1 SHA512 3ae837141f0ff38191dda467bb40f42e9e04a39d38280f3448f50610a8c80d27f017aaf7381d57d18b369fc3b61c92fc9898a895b3a6051cc4196f1e29d58384 WHIRLPOOL 594b7800672a588a13aa017933be779838132b4b85cd7de299115c37a0e9ddabddbf28432d14c5b577eaa8df9a47f45402622a25b16f12278b2f03f586b5ff0c
+MISC metadata.xml 394 SHA256 5e940fc104847e7e8524d6cfdc5c05a89bf4ae48b2f78fcb4015b28a58378c44 SHA512 0a55c57ccd8c0ab9a1344f16c7aeec7bccfbbbcffd3634ab908deb62e996ff16ddf0a8cc6a2591b768330cd67d242379f2a5b8fab71534fbc31d4360e68db4ac WHIRLPOOL 08916761331e5038d4ee659eb208a117f7b3752650bfec7d3b5e2f959d8ac2d5ec4658d5db950af82376cea32e395a0d57be8acaa61a44b59a7283064c8cb47e
diff --git a/media-gfx/sfftobmp/files/sfftobmp-3.1.1-gcc44-and-boost-1_37.patch b/media-gfx/sfftobmp/files/sfftobmp-3.1.1-gcc44-and-boost-1_37.patch
new file mode 100644
index 000000000000..3ba832afaed6
--- /dev/null
+++ b/media-gfx/sfftobmp/files/sfftobmp-3.1.1-gcc44-and-boost-1_37.patch
@@ -0,0 +1,33 @@
+Only in sfftobmp3_1_1: Makefile.am.orig
+Only in sfftobmp3_1_1: Makefile.am.rej
+diff -ur sfftobmp3_1_1.orig/src/cmdline.cpp sfftobmp3_1_1/src/cmdline.cpp
+--- sfftobmp3_1_1.orig/src/cmdline.cpp 2007-10-07 22:01:21.000000000 +0300
++++ sfftobmp3_1_1/src/cmdline.cpp 2009-05-09 00:33:06.000000000 +0300
+@@ -35,6 +35,7 @@
+
+ ---RCS-Info--------------------------------------------------*/
+
++#include <cstdio>
+ #include <vector>
+ #include <cassert>
+ #include <iostream>
+diff -ur sfftobmp3_1_1.orig/src/common.cpp sfftobmp3_1_1/src/common.cpp
+--- sfftobmp3_1_1.orig/src/common.cpp 2007-10-07 22:01:20.000000000 +0300
++++ sfftobmp3_1_1/src/common.cpp 2009-05-09 00:28:37.000000000 +0300
+@@ -49,6 +49,7 @@
+ #include <sys/utime.h>
+ #endif
+
++#include <cstdio>
+ #include <cassert>
+ #include <iostream>
+
+diff -ur sfftobmp3_1_1.orig/src/Makefile.am sfftobmp3_1_1/src/Makefile.am
+--- sfftobmp3_1_1.orig/src/Makefile.am 2006-10-24 23:14:19.000000000 +0300
++++ sfftobmp3_1_1/src/Makefile.am 2009-05-09 00:27:42.000000000 +0300
+@@ -3,4 +3,4 @@
+ INCLUDES = -I$(top_builddir) -I$(top_srcdir)
+ bin_PROGRAMS = sfftobmp
+ sfftobmp_SOURCES = my_getopt.c cmdline.cpp codes.cpp common.cpp decoder.cpp input.cpp main.cpp output.cpp
+-sfftobmp_LDADD = @TIFF_LIB@ @JPEG_LIB@ -lboost_filesystem
++sfftobmp_LDADD = @TIFF_LIB@ @JPEG_LIB@ -lboost_filesystem -lboost_system
diff --git a/media-gfx/sfftobmp/files/sfftobmp-3.1.2-boost_fs3.patch b/media-gfx/sfftobmp/files/sfftobmp-3.1.2-boost_fs3.patch
new file mode 100644
index 000000000000..f39d157e1972
--- /dev/null
+++ b/media-gfx/sfftobmp/files/sfftobmp-3.1.2-boost_fs3.patch
@@ -0,0 +1,21 @@
+http://bugs.gentoo.org/425364
+
+--- src/cmdline.cpp
++++ src/cmdline.cpp
+@@ -264,14 +264,14 @@
+ }
+ do {
+ if (!(fd.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY)) {
+- m_vFiles.push_back( fs::path(fd.cFileName, fs::native) );
++ m_vFiles.push_back( fs::path(fd.cFileName) );
+ }
+ } while (::FindNextFile(hFind, &fd));
+ ::FindClose(hFind);
+ #else
+ int n = optind;
+ while (n < m_argc) {
+- m_vFiles.push_back( fs::path(m_argv[n], fs::native) );
++ m_vFiles.push_back( fs::path(m_argv[n]) );
+ ++n;
+ }
+ #endif
diff --git a/media-gfx/sfftobmp/metadata.xml b/media-gfx/sfftobmp/metadata.xml
new file mode 100644
index 000000000000..e9834a5d4681
--- /dev/null
+++ b/media-gfx/sfftobmp/metadata.xml
@@ -0,0 +1,12 @@
+<?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>
+ <longdescription>sff to bmp converter</longdescription>
+ <upstream>
+ <remote-id type="sourceforge">sfftools</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/media-gfx/sfftobmp/sfftobmp-3.1.2-r1.ebuild b/media-gfx/sfftobmp/sfftobmp-3.1.2-r1.ebuild
new file mode 100644
index 000000000000..c29caa1997b3
--- /dev/null
+++ b/media-gfx/sfftobmp/sfftobmp-3.1.2-r1.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit autotools eutils flag-o-matic
+
+MY_P=${PN}${PV//./_}
+
+DESCRIPTION="sff to bmp converter"
+HOMEPAGE="http://sfftools.sourceforge.net/"
+SRC_URI="mirror://sourceforge/sfftools/${MY_P}_src.zip"
+
+LICENSE="HPND MIT"
+SLOT="0"
+KEYWORDS="amd64 ~hppa ppc x86"
+IUSE=""
+
+RDEPEND=">=dev-libs/boost-1.49
+ media-libs/tiff:0
+ virtual/jpeg:0"
+DEPEND="${RDEPEND}
+ app-arch/unzip"
+
+S=${WORKDIR}/${MY_P}
+
+src_prepare() {
+ epatch \
+ "${FILESDIR}"/${PN}-3.1.1-gcc44-and-boost-1_37.patch \
+ "${FILESDIR}"/${PN}-3.1.2-boost_fs3.patch
+ append-cppflags -DBOOST_FILESYSTEM_VERSION=3
+ eautoreconf
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+ dodoc doc/{changes,credits,readme}
+}
diff --git a/media-gfx/shotwell/Manifest b/media-gfx/shotwell/Manifest
new file mode 100644
index 000000000000..ed59dc1a4a0b
--- /dev/null
+++ b/media-gfx/shotwell/Manifest
@@ -0,0 +1,17 @@
+DIST shotwell-0.24.6.tar.xz 5401300 SHA256 ecbbe8be422f0a228eb5a9d42f948f14d0b4ad4206dd503e3438be589595f947 SHA512 48f4595950700b3d193b7d73d4ff45abda1544de66c6252fcf98e94e58f284a0491b08d11045a96b8581f3370d759346739d3da1ef85311717908c33ab1c25c6 WHIRLPOOL a3f1127eb24ede554ccc1c08402aceb008728dff8ada56831f51729ae324f8c0bc425e6b04d210bd830ed3ce337a6805aef59f9d9bb9d7354127942c6794d141
+DIST shotwell-0.25.0.1.tar.xz 5398404 SHA256 e69c96b3ee650aed8f83dfe099e01d85f83ab19f56995a90d48681fdf26400a6 SHA512 6a071b0b7d84bf78727b84e0ba707d6d7f5408a0b942962771b24a79381c102c58c06b4895eba69527215103279946f4e33b14410a1ce6dd58d3dba3870975df WHIRLPOOL 7ab54b4b28d1db631e9a359ab803a6a4447a6642b44daf59ed4970e49ee40cf23208f7bf0754eaccfa6ed10ad4b3f02110769dad4f32ff13b1173f636c4d6b62
+DIST shotwell-0.26.0.tar.xz 5583732 SHA256 305df4d49971eb10f2a04b577ebbd9448202f13d51aa02608e433b8613df1024 SHA512 fd25bd24593360ae3d1f4cf5960d8ff2023f965e5d3bb70b80801a4c23103b570ae856e243c08e486b428c746b6f82bf3c3982a21689e72be7d2dfc3aec16ccf WHIRLPOOL df449129ee5d8b0a4ec5826b2a106e228fe3f9daca864038e02524b04d568d336b3c4acfa76ec57a510acaa5ccf839a3f0d2f2c35e5602e05a01690a8ce1fac5
+DIST shotwell-0.26.1.tar.xz 5593092 SHA256 0a60cc8a132fd962ed8c73f82b3f8ad7cbf1014bb93e89eee83e5c9a8c0b5375 SHA512 82cc95b3b173fbcd3cbb4f5d42f24fcb951b34039af1fdbd062d3f334aa2c305640833a7279cb79e02f0334da8b3a85cd8aadff45a80161ab0d2fbcd14278cd1 WHIRLPOOL 8cbf50548eec1bb7b53d6d2df75dacc3b464b7790a0bbcceed799c948e5e3f777ad6f7f547ae2ef74d42466c06db94368ebf8fa0125908cb57ca200c49456119
+DIST shotwell-0.26.2.tar.xz 5575388 SHA256 4f65283d54772ef6344b8e8acb242f06b7f5b3f8e42ccb292b02c06a8dc2323b SHA512 a38681cb1b192372381d67abdc6c088c80fcc1db0d8d328330ee8f1ab78608c742de5e33030ccb1b941f1583a2b7028caadf61ce10ba7f2a93863bd2c3019813 WHIRLPOOL 1b8ba18aa63b033c00d55f1cdc2e95d8232f32c8d1e438cbba90b7e2e8cfb3fe454934686363d81cdda56beb19e1494f8ed69c7edc29398b54ff23216516225d
+DIST shotwell-0.26.3.tar.xz 5581204 SHA256 fb83e4b0b3d2fde62f3870e01294269fa099a94cfbcfcc614ab6b09387690ee5 SHA512 8d54ffec947b81517840f4f9d223edb6673e6ef66c6cc4333c2353b7c197c0630c10fbf7ae5d3ff5963322f19e5b7adfd6aac5e391262c6edb3b22a01de9a18f WHIRLPOOL d5f6a4ecba5417ce66bf30479e5db7810c7887f044769de7d28c2effcd5da8e093dd4d485c9e433c73451b829385e99b7bf9e48616935aea60263aef635eb332
+DIST shotwell-0.27.0.tar.xz 5574988 SHA256 42851935652986f000d96b4c6ac4180c96942fd63e437dee3179b249c2b87c0f SHA512 e7b5fe153fff96e04507588b4b8a1e71c121787cb6d28b7e14bb31824f1a09ca1948edc4bccfa069b2ffebe1ac753580257c1af4b7aec0ed49af74944ee91fbb WHIRLPOOL bf188b53f841c65acc0d3589fce5ca39b1e6c0f7b867f88b7018104f211c5677f6f0906b037ab54aafdfc3bec87d29076f97ce3d286f50c852690862b8e919ea
+EBUILD shotwell-0.24.6.ebuild 1444 SHA256 cc93d5222c7737d1e6d30a2743ae427ada01d47ef56d71592b2116619db15d6c SHA512 559e06d8bed36ab72880dfb409d4151d9ddc040201f4bd144b67202cd103db09c1b3a428b94c5875ac50159da0e22beb7e3242e515cb8dea259dfae75f383dd9 WHIRLPOOL 87b587000f690d01e496ba6f4002407479b22c3585944ba9c6a87e8521713e5194ea37aca26e93415339e57d334916ec50a47b02e14a66b851eeeea918e1892c
+EBUILD shotwell-0.25.0.1.ebuild 1471 SHA256 57474445740c569581f9d436af8cf18ac9ff801b53817b8043db746ef57005e8 SHA512 ff395918298ad2b4e7725149177ebcf19b30f517e3e78ec4e62aa421e4cc61ccdc41be2c4234301f10df1ec5d8e8a188f17f69048dc0decd3b77e0a2bb52d67e WHIRLPOOL 5d19ce22ee8d4a59f0d1560f3d364fa4171567b5a5085e4568d2d0fd1b72d62316b046d9e251c5e81e2385076661ed9a7e329a1883ba12b32b84125362fa7233
+EBUILD shotwell-0.26.0.ebuild 1471 SHA256 f32d9a02c4ff2ffd66640295dd863b81c5b0419efe0a148225539b274cf27e12 SHA512 7738e3cf9e6e545005071c01500ce091b1908b651162187bb91ee88bd954371ce9ed0962f76d4a688783f6a27374835d6c517a7c9b2c477cbca0f4b1ecbfa521 WHIRLPOOL b5fec5a1179affb17f740722c65c44bc641e519cbefb6b7daf67bf3f4934240a632dfa0724b2978c1dd3861409beea5aecb6491c41312d06668660b02347cc6d
+EBUILD shotwell-0.26.1.ebuild 1471 SHA256 f32d9a02c4ff2ffd66640295dd863b81c5b0419efe0a148225539b274cf27e12 SHA512 7738e3cf9e6e545005071c01500ce091b1908b651162187bb91ee88bd954371ce9ed0962f76d4a688783f6a27374835d6c517a7c9b2c477cbca0f4b1ecbfa521 WHIRLPOOL b5fec5a1179affb17f740722c65c44bc641e519cbefb6b7daf67bf3f4934240a632dfa0724b2978c1dd3861409beea5aecb6491c41312d06668660b02347cc6d
+EBUILD shotwell-0.26.2.ebuild 1490 SHA256 2e92e974cadac82566552e6e78f87f3ad9d3281ef59c4c66121480aa16e2dbaf SHA512 c8f6fb632fb4b49aa60cbb5cbc572aaa191bbe047d434c6bd6b97a3bc9bd61540d7ab31fec1121d8faad55e622cd39e1bc10f1d2139f54daa58346542c162cf6 WHIRLPOOL 6ca3cab60f3e496e607a526b8ec94d58ec38fee1bbd9c027818c4fbee984c84f2ff7b34fa70502498e5ceb7810601f28e7a204973edee6037edc50e2488ad47d
+EBUILD shotwell-0.26.3.ebuild 1490 SHA256 2e92e974cadac82566552e6e78f87f3ad9d3281ef59c4c66121480aa16e2dbaf SHA512 c8f6fb632fb4b49aa60cbb5cbc572aaa191bbe047d434c6bd6b97a3bc9bd61540d7ab31fec1121d8faad55e622cd39e1bc10f1d2139f54daa58346542c162cf6 WHIRLPOOL 6ca3cab60f3e496e607a526b8ec94d58ec38fee1bbd9c027818c4fbee984c84f2ff7b34fa70502498e5ceb7810601f28e7a204973edee6037edc50e2488ad47d
+EBUILD shotwell-0.27.0.ebuild 1490 SHA256 2e92e974cadac82566552e6e78f87f3ad9d3281ef59c4c66121480aa16e2dbaf SHA512 c8f6fb632fb4b49aa60cbb5cbc572aaa191bbe047d434c6bd6b97a3bc9bd61540d7ab31fec1121d8faad55e622cd39e1bc10f1d2139f54daa58346542c162cf6 WHIRLPOOL 6ca3cab60f3e496e607a526b8ec94d58ec38fee1bbd9c027818c4fbee984c84f2ff7b34fa70502498e5ceb7810601f28e7a204973edee6037edc50e2488ad47d
+MISC ChangeLog 7190 SHA256 773b9627fea502e816fd8f0d6fa87aecea876df1ede05553674b965d5b6d31b0 SHA512 5f8f1609f2004dd16e2fb363e86e7645aac7f3a41df4aa5a4959c994dbcbf62cf04b3d81529c57c8f5ba566d64fbd2b924daf01e5041f98424f75cda231f08bd WHIRLPOOL 0015e57b0dfe756c550c518238594d65660320dcd50c1080f73b7268276488aaa2fa22315841073aaff2186f4e168c4cb405cd40868d0de09a5de76036091c9e
+MISC ChangeLog-2015 13149 SHA256 0b668b615c618f17e7eb199ce770c1fcbcb48b6aab0a083be255d95574ed978f SHA512 fef2294c2b0339c44f9e5e54c7e9ca0003f11922d7693a9b1f783cf563419e09b93bfdcab2ea6d9da4cdfcbd83c0ad6c9100798657608b2f5586da9e576e4d83 WHIRLPOOL 7af1af49b2749c05649539f210beb19984b509c6306c47b6ce5115e15df7b6a1da94a0aed9dc6b1a99eb2b970791e1af9b3a2157d76939906ce6b3d80aa27bd6
+MISC metadata.xml 900 SHA256 7d9af9a94d03e3160b11dbe853ecb557d69d821997e726e9993162b27b6ac094 SHA512 aab4bb7556cb7fc926b59e68d16a2425af57cab5ae80c68ce2dd650bf49b9e3872771fee51552aa0aba9c50167a33b1976700f65bbc1531de44ac638cdd4a0be WHIRLPOOL 59272edc66c987a57f49452d2799174c9c2234e8c0bf613dc2abd2fb01b6ea23b343da308148316ad829a916a4d579df7f8592f63f64dfec281bba574c5c235b
diff --git a/media-gfx/shotwell/metadata.xml b/media-gfx/shotwell/metadata.xml
new file mode 100644
index 000000000000..b9e9ae86acfe
--- /dev/null
+++ b/media-gfx/shotwell/metadata.xml
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>hwoarang@gentoo.org</email>
+ <name>Markos Chandras</name>
+ </maintainer>
+ <maintainer type="person">
+ <email>nicolasbock@gentoo.org</email>
+ <name>Nicolas Bock</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>graphics@gentoo.org</email>
+ <name>Gentoo Graphics Project</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>gnome@gentoo.org</email>
+ <name>Gentoo GNOME Project</name>
+ </maintainer>
+ <longdescription lang="en">
+ Shotwell is a digital photo organizer designed for the GNOME desktop
+ environment. It allows you to import photos from disk or camera, organize
+ them in various ways, view them in full-window or fullscreen mode, and
+ export them to share with others.
+ </longdescription>
+</pkgmetadata>
diff --git a/media-gfx/shotwell/shotwell-0.24.6.ebuild b/media-gfx/shotwell/shotwell-0.24.6.ebuild
new file mode 100644
index 000000000000..46c72d688c80
--- /dev/null
+++ b/media-gfx/shotwell/shotwell-0.24.6.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+GNOME2_LA_PUNT="yes"
+VALA_MIN_API_VERSION="0.28"
+
+inherit gnome2 multilib toolchain-funcs vala versionator
+
+MY_PV=$(get_version_component_range 1-2)
+DESCRIPTION="Open source photo manager for GNOME"
+HOMEPAGE="https://wiki.gnome.org/Apps/Shotwell"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~alpha amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc x86"
+IUSE=""
+
+RDEPEND="
+ >=dev-db/sqlite-3.5.9:3
+ >=dev-libs/glib-2.30.0:2
+ >=dev-libs/json-glib-0.7.6
+ >=dev-libs/libgee-0.8.5:0.8
+ >=dev-libs/libxml2-2.6.32:2
+ gnome-base/dconf
+ >=media-libs/gexiv2-0.4.90
+ media-libs/gst-plugins-base:1.0
+ media-libs/gst-plugins-good:1.0
+ media-libs/gstreamer:1.0
+ media-libs/lcms:2
+ >=media-libs/libexif-0.6.16:=
+ >=media-libs/libgphoto2-2.5:=
+ >=media-libs/libraw-0.13.2:=
+ media-plugins/gst-plugins-gdkpixbuf:1.0
+ >=net-libs/libsoup-2.26.0:2.4
+ net-libs/webkit-gtk:4
+ virtual/libgudev:=[introspection]
+ >=x11-libs/gtk+-3.12.2:3[X]
+"
+DEPEND="${RDEPEND}
+ $(vala_depend)
+ dev-util/itstool
+ >=sys-devel/gettext-0.19.7
+ >=sys-devel/m4-1.4.13
+ virtual/pkgconfig
+"
+
+# This probably comes from libraries that
+# shotwell-video-thumbnailer links to.
+# Nothing we can do at the moment. #435048
+QA_FLAGS_IGNORED="/usr/libexec/${PN}/${PN}-video-thumbnailer"
+
+src_prepare() {
+ vala_src_prepare
+ gnome2_src_prepare
+}
+
+src_configure() {
+ gnome2_src_configure --disable-static
+}
diff --git a/media-gfx/shotwell/shotwell-0.25.0.1.ebuild b/media-gfx/shotwell/shotwell-0.25.0.1.ebuild
new file mode 100644
index 000000000000..c3827990765f
--- /dev/null
+++ b/media-gfx/shotwell/shotwell-0.25.0.1.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+GNOME2_LA_PUNT="yes"
+VALA_MIN_API_VERSION="0.28"
+
+inherit gnome2 multilib toolchain-funcs vala versionator
+
+MY_PV=$(get_version_component_range 1-2)
+DESCRIPTION="Open source photo manager for GNOME"
+HOMEPAGE="https://wiki.gnome.org/Apps/Shotwell"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86"
+IUSE=""
+
+RDEPEND="
+ >=app-crypt/gcr-3[gtk]
+ >=dev-db/sqlite-3.5.9:3
+ >=dev-libs/glib-2.40.0:2
+ >=dev-libs/json-glib-0.7.6
+ >=dev-libs/libgee-0.8.5:0.8
+ >=dev-libs/libxml2-2.6.32:2
+ gnome-base/dconf
+ >=media-libs/gexiv2-0.10.4
+ media-libs/gst-plugins-base:1.0
+ media-libs/gst-plugins-good:1.0
+ media-libs/gstreamer:1.0
+ media-libs/lcms:2
+ >=media-libs/libexif-0.6.16:=
+ >=media-libs/libgphoto2-2.5:=
+ >=media-libs/libraw-0.13.2:=
+ media-plugins/gst-plugins-gdkpixbuf:1.0
+ >=net-libs/libsoup-2.42.0:2.4
+ net-libs/webkit-gtk:4
+ virtual/libgudev:=[introspection]
+ >=x11-libs/gtk+-3.14.0:3[X]
+
+"
+DEPEND="${RDEPEND}
+ $(vala_depend)
+ dev-util/itstool
+ >=sys-devel/gettext-0.19.7
+ >=sys-devel/m4-1.4.13
+ virtual/pkgconfig
+"
+
+# This probably comes from libraries that
+# shotwell-video-thumbnailer links to.
+# Nothing we can do at the moment. #435048
+QA_FLAGS_IGNORED="/usr/libexec/${PN}/${PN}-video-thumbnailer"
+
+src_prepare() {
+ vala_src_prepare
+ gnome2_src_prepare
+}
+
+src_configure() {
+ gnome2_src_configure --disable-static
+}
diff --git a/media-gfx/shotwell/shotwell-0.26.0.ebuild b/media-gfx/shotwell/shotwell-0.26.0.ebuild
new file mode 100644
index 000000000000..5d5a82fa7382
--- /dev/null
+++ b/media-gfx/shotwell/shotwell-0.26.0.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+GNOME2_LA_PUNT="yes"
+VALA_MIN_API_VERSION="0.28"
+
+inherit gnome2 multilib toolchain-funcs vala versionator
+
+MY_PV=$(get_version_component_range 1-2)
+DESCRIPTION="Open source photo manager for GNOME"
+HOMEPAGE="https://wiki.gnome.org/Apps/Shotwell"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86"
+IUSE=""
+
+RDEPEND="
+ >=app-crypt/gcr-3[gtk]
+ >=dev-db/sqlite-3.5.9:3
+ >=dev-libs/glib-2.40.0:2
+ >=dev-libs/json-glib-0.7.6
+ >=dev-libs/libgee-0.8.5:0.8
+ >=dev-libs/libxml2-2.6.32:2
+ gnome-base/dconf
+ >=media-libs/gexiv2-0.10.4
+ media-libs/gst-plugins-base:1.0
+ media-libs/gst-plugins-good:1.0
+ media-libs/gstreamer:1.0
+ media-libs/lcms:2
+ >=media-libs/libexif-0.6.16:=
+ >=media-libs/libgphoto2-2.5:=
+ >=media-libs/libraw-0.13.2:=
+ media-plugins/gst-plugins-gdkpixbuf:1.0
+ >=net-libs/libsoup-2.42.0:2.4
+ net-libs/webkit-gtk:4
+ virtual/libgudev:=[introspection]
+ >=x11-libs/gtk+-3.14.0:3[X]
+
+"
+DEPEND="${RDEPEND}
+ $(vala_depend)
+ dev-util/itstool
+ >=sys-devel/gettext-0.19.7
+ >=sys-devel/m4-1.4.13
+ virtual/pkgconfig
+"
+
+# This probably comes from libraries that
+# shotwell-video-thumbnailer links to.
+# Nothing we can do at the moment. #435048
+QA_FLAGS_IGNORED="/usr/libexec/${PN}/${PN}-video-thumbnailer"
+
+src_prepare() {
+ vala_src_prepare
+ gnome2_src_prepare
+}
+
+src_configure() {
+ gnome2_src_configure --disable-static
+}
diff --git a/media-gfx/shotwell/shotwell-0.26.1.ebuild b/media-gfx/shotwell/shotwell-0.26.1.ebuild
new file mode 100644
index 000000000000..5d5a82fa7382
--- /dev/null
+++ b/media-gfx/shotwell/shotwell-0.26.1.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+GNOME2_LA_PUNT="yes"
+VALA_MIN_API_VERSION="0.28"
+
+inherit gnome2 multilib toolchain-funcs vala versionator
+
+MY_PV=$(get_version_component_range 1-2)
+DESCRIPTION="Open source photo manager for GNOME"
+HOMEPAGE="https://wiki.gnome.org/Apps/Shotwell"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86"
+IUSE=""
+
+RDEPEND="
+ >=app-crypt/gcr-3[gtk]
+ >=dev-db/sqlite-3.5.9:3
+ >=dev-libs/glib-2.40.0:2
+ >=dev-libs/json-glib-0.7.6
+ >=dev-libs/libgee-0.8.5:0.8
+ >=dev-libs/libxml2-2.6.32:2
+ gnome-base/dconf
+ >=media-libs/gexiv2-0.10.4
+ media-libs/gst-plugins-base:1.0
+ media-libs/gst-plugins-good:1.0
+ media-libs/gstreamer:1.0
+ media-libs/lcms:2
+ >=media-libs/libexif-0.6.16:=
+ >=media-libs/libgphoto2-2.5:=
+ >=media-libs/libraw-0.13.2:=
+ media-plugins/gst-plugins-gdkpixbuf:1.0
+ >=net-libs/libsoup-2.42.0:2.4
+ net-libs/webkit-gtk:4
+ virtual/libgudev:=[introspection]
+ >=x11-libs/gtk+-3.14.0:3[X]
+
+"
+DEPEND="${RDEPEND}
+ $(vala_depend)
+ dev-util/itstool
+ >=sys-devel/gettext-0.19.7
+ >=sys-devel/m4-1.4.13
+ virtual/pkgconfig
+"
+
+# This probably comes from libraries that
+# shotwell-video-thumbnailer links to.
+# Nothing we can do at the moment. #435048
+QA_FLAGS_IGNORED="/usr/libexec/${PN}/${PN}-video-thumbnailer"
+
+src_prepare() {
+ vala_src_prepare
+ gnome2_src_prepare
+}
+
+src_configure() {
+ gnome2_src_configure --disable-static
+}
diff --git a/media-gfx/shotwell/shotwell-0.26.2.ebuild b/media-gfx/shotwell/shotwell-0.26.2.ebuild
new file mode 100644
index 000000000000..0cafa2080fcf
--- /dev/null
+++ b/media-gfx/shotwell/shotwell-0.26.2.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+GNOME2_LA_PUNT="yes"
+VALA_MIN_API_VERSION="0.28"
+
+inherit gnome2 multilib toolchain-funcs vala versionator
+
+MY_PV=$(get_version_component_range 1-2)
+DESCRIPTION="Open source photo manager for GNOME"
+HOMEPAGE="https://wiki.gnome.org/Apps/Shotwell"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86"
+IUSE=""
+
+RDEPEND="
+ >=app-crypt/gcr-3[gtk]
+ >=dev-db/sqlite-3.5.9:3
+ >=dev-libs/glib-2.40.0:2
+ >=dev-libs/json-glib-0.7.6
+ >=dev-libs/libgee-0.8.5:0.8
+ >=dev-libs/libxml2-2.6.32:2
+ gnome-base/dconf
+ >=media-libs/gexiv2-0.10.4
+ media-libs/gst-plugins-base:1.0
+ media-libs/gst-plugins-good:1.0
+ media-libs/gstreamer:1.0
+ media-libs/lcms:2
+ >=media-libs/libexif-0.6.16:=
+ >=media-libs/libgphoto2-2.5:=
+ >=media-libs/libraw-0.13.2:=
+ media-plugins/gst-plugins-gdkpixbuf:1.0
+ >=net-libs/libsoup-2.42.0:2.4
+ net-libs/webkit-gtk:4
+ virtual/libgudev:=[introspection]
+ >=x11-libs/gtk+-3.14.0:3[X]
+ dev-libs/libgdata
+
+"
+DEPEND="${RDEPEND}
+ $(vala_depend)
+ dev-util/itstool
+ >=sys-devel/gettext-0.19.7
+ >=sys-devel/m4-1.4.13
+ virtual/pkgconfig
+"
+
+# This probably comes from libraries that
+# shotwell-video-thumbnailer links to.
+# Nothing we can do at the moment. #435048
+QA_FLAGS_IGNORED="/usr/libexec/${PN}/${PN}-video-thumbnailer"
+
+src_prepare() {
+ vala_src_prepare
+ gnome2_src_prepare
+}
+
+src_configure() {
+ gnome2_src_configure --disable-static
+}
diff --git a/media-gfx/shotwell/shotwell-0.26.3.ebuild b/media-gfx/shotwell/shotwell-0.26.3.ebuild
new file mode 100644
index 000000000000..0cafa2080fcf
--- /dev/null
+++ b/media-gfx/shotwell/shotwell-0.26.3.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+GNOME2_LA_PUNT="yes"
+VALA_MIN_API_VERSION="0.28"
+
+inherit gnome2 multilib toolchain-funcs vala versionator
+
+MY_PV=$(get_version_component_range 1-2)
+DESCRIPTION="Open source photo manager for GNOME"
+HOMEPAGE="https://wiki.gnome.org/Apps/Shotwell"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86"
+IUSE=""
+
+RDEPEND="
+ >=app-crypt/gcr-3[gtk]
+ >=dev-db/sqlite-3.5.9:3
+ >=dev-libs/glib-2.40.0:2
+ >=dev-libs/json-glib-0.7.6
+ >=dev-libs/libgee-0.8.5:0.8
+ >=dev-libs/libxml2-2.6.32:2
+ gnome-base/dconf
+ >=media-libs/gexiv2-0.10.4
+ media-libs/gst-plugins-base:1.0
+ media-libs/gst-plugins-good:1.0
+ media-libs/gstreamer:1.0
+ media-libs/lcms:2
+ >=media-libs/libexif-0.6.16:=
+ >=media-libs/libgphoto2-2.5:=
+ >=media-libs/libraw-0.13.2:=
+ media-plugins/gst-plugins-gdkpixbuf:1.0
+ >=net-libs/libsoup-2.42.0:2.4
+ net-libs/webkit-gtk:4
+ virtual/libgudev:=[introspection]
+ >=x11-libs/gtk+-3.14.0:3[X]
+ dev-libs/libgdata
+
+"
+DEPEND="${RDEPEND}
+ $(vala_depend)
+ dev-util/itstool
+ >=sys-devel/gettext-0.19.7
+ >=sys-devel/m4-1.4.13
+ virtual/pkgconfig
+"
+
+# This probably comes from libraries that
+# shotwell-video-thumbnailer links to.
+# Nothing we can do at the moment. #435048
+QA_FLAGS_IGNORED="/usr/libexec/${PN}/${PN}-video-thumbnailer"
+
+src_prepare() {
+ vala_src_prepare
+ gnome2_src_prepare
+}
+
+src_configure() {
+ gnome2_src_configure --disable-static
+}
diff --git a/media-gfx/shotwell/shotwell-0.27.0.ebuild b/media-gfx/shotwell/shotwell-0.27.0.ebuild
new file mode 100644
index 000000000000..0cafa2080fcf
--- /dev/null
+++ b/media-gfx/shotwell/shotwell-0.27.0.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+GNOME2_LA_PUNT="yes"
+VALA_MIN_API_VERSION="0.28"
+
+inherit gnome2 multilib toolchain-funcs vala versionator
+
+MY_PV=$(get_version_component_range 1-2)
+DESCRIPTION="Open source photo manager for GNOME"
+HOMEPAGE="https://wiki.gnome.org/Apps/Shotwell"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86"
+IUSE=""
+
+RDEPEND="
+ >=app-crypt/gcr-3[gtk]
+ >=dev-db/sqlite-3.5.9:3
+ >=dev-libs/glib-2.40.0:2
+ >=dev-libs/json-glib-0.7.6
+ >=dev-libs/libgee-0.8.5:0.8
+ >=dev-libs/libxml2-2.6.32:2
+ gnome-base/dconf
+ >=media-libs/gexiv2-0.10.4
+ media-libs/gst-plugins-base:1.0
+ media-libs/gst-plugins-good:1.0
+ media-libs/gstreamer:1.0
+ media-libs/lcms:2
+ >=media-libs/libexif-0.6.16:=
+ >=media-libs/libgphoto2-2.5:=
+ >=media-libs/libraw-0.13.2:=
+ media-plugins/gst-plugins-gdkpixbuf:1.0
+ >=net-libs/libsoup-2.42.0:2.4
+ net-libs/webkit-gtk:4
+ virtual/libgudev:=[introspection]
+ >=x11-libs/gtk+-3.14.0:3[X]
+ dev-libs/libgdata
+
+"
+DEPEND="${RDEPEND}
+ $(vala_depend)
+ dev-util/itstool
+ >=sys-devel/gettext-0.19.7
+ >=sys-devel/m4-1.4.13
+ virtual/pkgconfig
+"
+
+# This probably comes from libraries that
+# shotwell-video-thumbnailer links to.
+# Nothing we can do at the moment. #435048
+QA_FLAGS_IGNORED="/usr/libexec/${PN}/${PN}-video-thumbnailer"
+
+src_prepare() {
+ vala_src_prepare
+ gnome2_src_prepare
+}
+
+src_configure() {
+ gnome2_src_configure --disable-static
+}
diff --git a/media-gfx/simple-scan/Manifest b/media-gfx/simple-scan/Manifest
new file mode 100644
index 000000000000..de0155e185ab
--- /dev/null
+++ b/media-gfx/simple-scan/Manifest
@@ -0,0 +1,7 @@
+DIST simple-scan-3.22.0.1.tar.xz 659564 SHA256 c505b6e63379c9256fbeaa4def3e595fd063d46a8a852ed90218d336291d2b50 SHA512 2513887546c1e6764cffeac26638646b03eaf2f2e5d8013d9c29dfd4fbe200b347f7ee8a94e402497d1e8bdc3ba55d2fb2a740eecc8663c692f75fda2b1607c0 WHIRLPOOL 9fe1bbc2774ace85869fb12084e304e26dff2612bdcd7335de3ad12f803ff9d3ed7fb2b2b64273584782b5ba15ace1acf3cea2f52a2900b5d66b0b67f58cfec8
+DIST simple-scan-3.24.1.tar.xz 669452 SHA256 5eae832b14664183d55aa599801cf32f19ff2174dfba4e3d7e4eb4d55810efb3 SHA512 9f0ced644b13dcaad4f1e23a6520b1cbe3c36d995fca4791383f959986cd396f123638a23dbd02a9511ef7e1c9c915b3a025e9b7e4de4542a4c180c4fe29e2b9 WHIRLPOOL c382f3b6836f8a26b760bf026e2aa76771be74f142e3778be70cd72755188cb45d3453ce95066fa5c0253de9069abd34d39b556ade69355a732f42d0f8573a9c
+EBUILD simple-scan-3.22.0.1.ebuild 1303 SHA256 081ceb8ae5a9878a330a6430d033907d3ab0ce1bed4bbb40f7e05a89b5000bd9 SHA512 07e3f1c580eeb17e11fa287b95a729f25819bdaaa6d85b9f1c7fb814ac2c1324c5a0b567b111e0713cc259c83611b9b6a9d8de48d593105157616ee3f3c83355 WHIRLPOOL dfb1f414c9907b49f5a40796edc253260f02c2244cebb25a71022376b227ce52d5ac60e25651e4e0d897c33e4af9f6f39ad26e852db57d63d4472c5e0d0432dc
+EBUILD simple-scan-3.24.1.ebuild 1305 SHA256 c221f1fa89293982f91bf87f38d4889728dd4418c4ffffdb5655104578b3143b SHA512 4157b2b705e1cee2e1d106cb5b0eba8d79270b32b1da41c0fac5d3b1fff96911799730aedc09caf42970509118bc436cfd496161d2bf57498fc7a9d869ac6c85 WHIRLPOOL 1ae580e26764cffa9e8b92e6866fcc682afd5f39f8173d2458c3daa4f720a449a94e25da620fe240ab9858184fffead43f084a2143b958c68264d79fa1fc8a1c
+MISC ChangeLog 5809 SHA256 798cbf9cd368ccca0a429fd2f0a5ec811361b5aaf5fec09b86a4ca26aa08a681 SHA512 cd18776de3070261f951a935bd10f7aa3c11741252e0fd246dd8d5c92f4d176eaae6f4d5a1fc49f1e67482274ca3521bc61f98b758cd82d0c51bdaa61e541a30 WHIRLPOOL abcf49de2ecb5f4e786b5b224bee507d6c09834034f9b83c78d81b37e6da8566bc1a1915f73ab1dcaf5cb05cc8fc3a49929c42a5d829763239c586f8098be891
+MISC ChangeLog-2015 8641 SHA256 7f460f25a1036aab0bbdbde7e0122ac5449038c2143bb8de0f484e25093a878e SHA512 f2d68abc0d488dcb6e3170bc55274497325a22b4ee35bbde44bd83ed2d288fea81a0c796b03030873f6e361901638304ecd849317b6861faca4e0bf7aab8a93d WHIRLPOOL ef28ae6c6bccd208571b681099d972d866ee6b11e387bc65b9b2a9094a640417247a290e8f06bd1003a8669031a7ebcc499a91396d85929f3b452eb8609f5cfa
+MISC metadata.xml 718 SHA256 7d681fa9fe88a2fe970eee9fc46d244918f09c24baea1ebb000564f2df60c36e SHA512 82244c0dc32c4ded72048a387cee5f350a66148ecaa12a941e4a86d9d9079f1769f1f240ee564c7f991f9d53c050e9fd3e9113024fc8831a6766ec3d88b665ca WHIRLPOOL 253690b85d5887822c4d0d36b0fa979e149eca2e21899f7ad921eccaf5b9cb6d4ca3130df1310b1d37994a87ff60651d80dbaaed9b55f81c9c891a6e163ec576
diff --git a/media-gfx/simple-scan/metadata.xml b/media-gfx/simple-scan/metadata.xml
new file mode 100644
index 000000000000..a84032e4aaae
--- /dev/null
+++ b/media-gfx/simple-scan/metadata.xml
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>gnome@gentoo.org</email>
+ <name>Gentoo GNOME Desktop</name>
+ </maintainer>
+ <longdescription lang="en">
+ A really easy way to scan both documents and photos. You can crop out
+ the bad parts of a photo and rotate it if it is the wrong way round.
+ You can print your scans, export them to pdf, or save them in a range
+ of image formats.
+ </longdescription>
+ <use>
+ <flag name="colord">Support color management using <pkg>x11-misc/colord</pkg></flag>
+ </use>
+ <upstream>
+ <remote-id type="launchpad">simple-scan</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/media-gfx/simple-scan/simple-scan-3.22.0.1.ebuild b/media-gfx/simple-scan/simple-scan-3.22.0.1.ebuild
new file mode 100644
index 000000000000..a51727d20142
--- /dev/null
+++ b/media-gfx/simple-scan/simple-scan-3.22.0.1.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit gnome2 vala versionator
+
+DESCRIPTION="Simple document scanning utility"
+HOMEPAGE="https://launchpad.net/simple-scan"
+
+MY_PV=$(get_version_component_range 1-2)
+SRC_URI="https://launchpad.net/${PN}/${MY_PV}/${PV}/+download/${P}.tar.xz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="amd64 ~arm x86"
+IUSE="colord" # packagekit
+
+COMMON_DEPEND="
+ >=dev-libs/glib-2.32:2
+ dev-libs/libgusb[vala]
+ >=media-gfx/sane-backends-1.0.20:=
+ >=sys-libs/zlib-1.2.3.1:=
+ virtual/jpeg:0=
+ x11-libs/cairo:=
+ >=x11-libs/gtk+-3:3
+ colord? ( >=x11-misc/colord-0.1.24:=[udev] )
+"
+# packagekit? ( app-admin/packagekit-base )
+RDEPEND="${COMMON_DEPEND}
+ x11-misc/xdg-utils
+ x11-themes/adwaita-icon-theme
+"
+DEPEND="${COMMON_DEPEND}
+ $(vala_depend)
+ app-text/yelp-tools
+ dev-libs/appstream-glib
+ >=sys-devel/gettext-0.19.7
+ virtual/pkgconfig
+"
+
+src_prepare() {
+ # Force build from vala sources due to mismatch between generated
+ # C files and configure switches
+ # https://bugs.launchpad.net/simple-scan/+bug/1462769
+ rm -f src/simple_scan_vala.stamp || die
+ vala_src_prepare
+ gnome2_src_prepare
+}
+
+src_configure() {
+ gnome2_src_configure \
+ --disable-packagekit \
+ $(use_enable colord)
+ # $(use_enable packagekit)
+}
diff --git a/media-gfx/simple-scan/simple-scan-3.24.1.ebuild b/media-gfx/simple-scan/simple-scan-3.24.1.ebuild
new file mode 100644
index 000000000000..ccf4fc1917fc
--- /dev/null
+++ b/media-gfx/simple-scan/simple-scan-3.24.1.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit gnome2 vala versionator
+
+DESCRIPTION="Simple document scanning utility"
+HOMEPAGE="https://launchpad.net/simple-scan"
+
+MY_PV=$(get_version_component_range 1-2)
+SRC_URI="https://launchpad.net/${PN}/${MY_PV}/${PV}/+download/${P}.tar.xz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~x86"
+IUSE="colord" # packagekit
+
+COMMON_DEPEND="
+ >=dev-libs/glib-2.32:2
+ dev-libs/libgusb[vala]
+ >=media-gfx/sane-backends-1.0.20:=
+ >=sys-libs/zlib-1.2.3.1:=
+ virtual/jpeg:0=
+ x11-libs/cairo:=
+ >=x11-libs/gtk+-3:3
+ colord? ( >=x11-misc/colord-0.1.24:=[udev] )
+"
+# packagekit? ( app-admin/packagekit-base )
+RDEPEND="${COMMON_DEPEND}
+ x11-misc/xdg-utils
+ x11-themes/adwaita-icon-theme
+"
+DEPEND="${COMMON_DEPEND}
+ $(vala_depend)
+ app-text/yelp-tools
+ dev-libs/appstream-glib
+ >=sys-devel/gettext-0.19.7
+ virtual/pkgconfig
+"
+
+src_prepare() {
+ # Force build from vala sources due to mismatch between generated
+ # C files and configure switches
+ # https://bugs.launchpad.net/simple-scan/+bug/1462769
+ rm -f src/simple_scan_vala.stamp || die
+ vala_src_prepare
+ gnome2_src_prepare
+}
+
+src_configure() {
+ gnome2_src_configure \
+ --disable-packagekit \
+ $(use_enable colord)
+ # $(use_enable packagekit)
+}
diff --git a/media-gfx/slic3r/Manifest b/media-gfx/slic3r/Manifest
new file mode 100644
index 000000000000..7b1b6fde00de
--- /dev/null
+++ b/media-gfx/slic3r/Manifest
@@ -0,0 +1,11 @@
+AUX slic3r-1.1.7-adjust_var_path.patch 274 SHA256 9a709ec1e6f39ad6ddeb6b51dbf7311f69a07a4c420f4bf8e99eaec17e4618d5 SHA512 c13cf1a6f37aa13a9b85093e75de0d2368b4ca4623b28be17e7cfef5740b2b4f4cee69492c099bf936e4ee553e37389b8ffa9ea0df804a80a1cb6295cd198653 WHIRLPOOL 969787e008263944c4f7e537a436abd4966e05db8074e6b89c7d205754d98e15bbe46842fe49cdee263dd56cef2a1d6e43f38f47896ecf4d54dbada22606a0e0
+AUX slic3r-1.2.9-adjust_var_path.patch 293 SHA256 9196226a4c5792a0312e8d28567684975d3ed3419cb0ac9cd4bce4d820a76fe9 SHA512 5a1ddca0380964c2bce9ba83dd9654671636433d0719cb54851e2ff521bd08c886f317073a1db5c145f8b3689248781cc1dc734c2071e6f6319be21845ed8a9d WHIRLPOOL 40ac44c9887244a5d924bd76c6a9b15df461d596d2244ac4854868de5bf18d1931edcdca8471ac404fcb1c944d3b04802ad10e6564bf517b2920ba9132d1f6ab
+AUX slic3r-1.2.9-c++11.patch 1102 SHA256 4b32b987d1e46cbda9f791dc46c76fa73b65178fe2bb8dc18e19615bf931cf9b SHA512 e5fa8ba0ce1ccbf5da34559c1e4d6d2db3c71acff69129125aef68e785285649a2e9b6c66779caffd2fe400859e878178afbd3f1884a28d9bdbee3b66d86311c WHIRLPOOL b5dec08f2d9f5fc82f225532b947584e787df13750ad82a94626631052da0b7a18b28b02d44771e0f6e9fbb34ade7ab143c3f3612d0244753c6bda4a6392c5bf
+AUX slic3r-9999-no-locallib.patch 15462 SHA256 c2114dd607da51416facadceaae1ba459ac3b63c2ccb01195a447c93da31218f SHA512 cdf791f721ab3a2356631ee9c74c796c48626c8313dd31dab59e880ab181734e892fa341bbb1a648d35303f4fb4a8e3c4615d360c317438876f67de1ef9f9187 WHIRLPOOL 4d571798c249d4e36cd06a72ed1a9d5267c02358fe2c5cc5237cfbf706ef98e7666c4516e957e3f1a109f459f1ec4f059aeb43c0eecd8bca409a77e476a9dc45
+DIST slic3r-1.1.7.tar.gz 2079200 SHA256 8e1f68a71d78686cf6957ee7665757a4e7d14646bdee262cef76cba47b3f0d50 SHA512 0c3a12890f57f422084b20152ede3467a8624db4ba8be774258df0af963c1f6f41fda7d96967f6355bd95727539e6aad51c30cf45284a7ee3fff294839acc650 WHIRLPOOL 18c95a59acff51891251852d59d4bf33b9c1ad8721f581e3c9f55b56bb62e087d030ecb701d16b07cca4567f142ea3b0693c0ab436f1c25b28d02b4a1ce351cd
+DIST slic3r-1.2.9.tar.gz 2165322 SHA256 f1c231ae56039ccd4ecf624e288c1362cab49b0f751a4663857b916b7fa51f2f SHA512 c0284f40de43c54e775baccdb2a67813a6ca4b69db78a788f2023b3f34127e780e6d0160144b9df1e17a2992b3255ef9a372b61a594f503b21efad7334387a51 WHIRLPOOL fc3bee0188ab7bd54ac19f3d874acb20dd8614594b79a8539001fd9a682f10c3436ef477d60458c49c7028c8b4bb7bf8585b4b53e73ac3a411d1a18720820eb0
+EBUILD slic3r-1.1.7.ebuild 2911 SHA256 2c743cd075b7593ac26b6e955dfd0a9f15cad1ab9105c0facfd131462d866436 SHA512 2fee10cde9c132cd7b6d142ea6b5550a294a2d366ca5eb88599567d0d13d1d5a837d63018836e7cd677a3e558180e4297bf6e4fceae51f2f9b48c9809cc44014 WHIRLPOOL a339035714f59b52f320945b1f174fb693a6deca39f835bfcde4d8aafe0f25844775b052dcdb629364151ca05dd12f159777d0bdda3cb5338ba19d4d22ed080a
+EBUILD slic3r-1.2.9-r2.ebuild 2472 SHA256 ac4365ff678d841529fcb852175ade6e046866360fa71c028ed07d77ce0781a3 SHA512 9937794276d490f75476fa39208f7726d0ad83534acb84ab5818cd1849c580cf3ce2c9f01b9eeaaee9ed9d4f49cc24bb9c4b95c4b45bbd70fd304678e0246795 WHIRLPOOL 7def4a7a52cfc9ecac2cf8266c4b216d763a7d33a59e0e50ac379811eb8b92bef9d7721e04a616aa05c420bd5c792ca03e456e5f7db2c1eb97fc74719634cc02
+EBUILD slic3r-9999.ebuild 2621 SHA256 c343bc2bdac0ec1e67253fb21aa9487fbcd6a80eec433b5990ac92e8d28e06a4 SHA512 bfff6a690433fdd85398d841c738578e44569eb58df43b602502c062419a77b3786288944414b3114538cbc278ccb029fa074ce44e4f2fc919209052888dacdc WHIRLPOOL 32d0d5369d4b4996258f2f448a520d4d97e5d11110fcb07b91367a93377e5a8ab5fa0442407841cd7421cc15c0d9467a844f561d353542e5f1e9c51e2f4b6663
+MISC ChangeLog 2206 SHA256 ef4b15eee040ebed9c2b0bea2d05a3512704677666eec33ba9d92221b8fbcb57 SHA512 acc6da2b31a88912904a884e29a364d77c9be66f3c904effc49575d554daa4882582acbbae779fc72793f66dd86a2bf526c8e02c761cc2ca946b86faa581ce7d WHIRLPOOL 25f2f8ce2376f1619443dfcd058fffd061490ce8c9d620987b6331c6c03de6f691dfaec474c6516989e953a6886d27c8ff3419e1da4810fde19b68e6edb8971b
+MISC metadata.xml 1166 SHA256 f9ead7e79da319295791a454378ef319bc215d647af78ce0c1ee50d0b9272cfc SHA512 8fa8adf81c468d72253218f1e5c4c42e8546a89166c3a3158db17b7504c13920abe7bc4ce3efadb4e6fa035d23d3a509c844699ac80b417dd16b570a6f6f213e WHIRLPOOL ff18b28867a43a0094fa59739f2ea72fb5297cda6ba4f40e43fd006e13c3c4f4e7a6baadd6dcb816103d39a59b16f90bf75b5ededd23f220cd3c6260e393448f
diff --git a/media-gfx/slic3r/files/slic3r-1.1.7-adjust_var_path.patch b/media-gfx/slic3r/files/slic3r-1.1.7-adjust_var_path.patch
new file mode 100644
index 000000000000..ee4d75d0122a
--- /dev/null
+++ b/media-gfx/slic3r/files/slic3r-1.1.7-adjust_var_path.patch
@@ -0,0 +1,11 @@
+--- a/lib/Slic3r.pm 2016-03-31 13:27:59.431548980 +0200
++++ b/lib/Slic3r.pm 2016-03-31 13:28:21.658675137 +0200
+@@ -29,7 +29,7 @@
+ if $^V >= v5.16;
+
+ use FindBin;
+-our $var = "$FindBin::Bin/var";
++our $var = "$FindBin::RealBin/var";
+
+ use Encode;
+ use Encode::Locale;
diff --git a/media-gfx/slic3r/files/slic3r-1.2.9-adjust_var_path.patch b/media-gfx/slic3r/files/slic3r-1.2.9-adjust_var_path.patch
new file mode 100644
index 000000000000..9dc93a52dde3
--- /dev/null
+++ b/media-gfx/slic3r/files/slic3r-1.2.9-adjust_var_path.patch
@@ -0,0 +1,11 @@
+--- a/lib/Slic3r.pm 2015-06-17 04:38:28.000000000 -0400
++++ b/lib/Slic3r.pm 2015-06-19 11:56:07.005873299 -0400
+@@ -30,7 +30,7 @@
+ if $^V == v5.16;
+
+ use FindBin;
+-our $var = decode_path($FindBin::Bin) . "/var";
++our $var = decode_path($FindBin::RealBin) . "/var";
+
+ use Moo 1.003001;
+
diff --git a/media-gfx/slic3r/files/slic3r-1.2.9-c++11.patch b/media-gfx/slic3r/files/slic3r-1.2.9-c++11.patch
new file mode 100644
index 000000000000..f6b15d70a1ab
--- /dev/null
+++ b/media-gfx/slic3r/files/slic3r-1.2.9-c++11.patch
@@ -0,0 +1,38 @@
+--- a/xs/src/libslic3r/Config.hpp 2015-06-17 04:38:28.000000000 -0400
++++ b/xs/src/libslic3r/Config.hpp 2017-09-27 10:59:26.527103728 -0400
+@@ -65,7 +65,7 @@
+
+ bool deserialize(std::string str) {
+ std::istringstream iss(str);
+- return iss >> this->value;
++ return static_cast<bool>(iss >> this->value);
+ };
+ };
+
+@@ -124,7 +124,7 @@
+
+ bool deserialize(std::string str) {
+ std::istringstream iss(str);
+- return iss >> this->value;
++ return static_cast<bool>(iss >> this->value);
+ };
+ };
+
+@@ -249,7 +249,7 @@
+ bool deserialize(std::string str) {
+ // don't try to parse the trailing % since it's optional
+ std::istringstream iss(str);
+- return iss >> this->value;
++ return static_cast<bool>(iss >> this->value);
+ };
+ };
+
+@@ -279,7 +279,7 @@
+ bool deserialize(std::string str) {
+ this->percent = str.find_first_of("%") != std::string::npos;
+ std::istringstream iss(str);
+- return iss >> this->value;
++ return static_cast<bool>(iss >> this->value);
+ };
+ };
+
diff --git a/media-gfx/slic3r/files/slic3r-9999-no-locallib.patch b/media-gfx/slic3r/files/slic3r-9999-no-locallib.patch
new file mode 100644
index 000000000000..8cb7fd6d16dc
--- /dev/null
+++ b/media-gfx/slic3r/files/slic3r-9999-no-locallib.patch
@@ -0,0 +1,609 @@
+commit 6f7e42a4707788d079d865800d9fdb65ed7d5f1f
+Author: Ian Stakenvicius <axs@gentoo.org>
+Date: Wed Sep 27 12:22:14 2017 -0400
+
+ Revert "Use --local-lib when calling cpanm"
+
+ This reverts commit e5412b5d69dc4d5415c92a7daaa47fb4860ca4ea and others
+ that add local::lib dependency
+
+diff --git a/Build.PL b/Build.PL
+index 2dd18435..18befbf8 100644
+--- a/Build.PL
++++ b/Build.PL
+@@ -109,16 +109,7 @@ EOF
+ if !$cpanm;
+ my @cpanm_args = ();
+ push @cpanm_args, "--sudo" if $sudo;
+-
+- # install local::lib without --local-lib otherwise it's not usable afterwards
+- if (!eval "use local::lib qw(local-lib); 1") {
+- my $res = system $cpanm, @cpanm_args, 'local::lib';
+- warn "Warning: local::lib is required. You might need to run the `cpanm --sudo local::lib` command in order to install it.\n"
+- if $res != 0;
+- }
+-
+- push @cpanm_args, ('--local-lib', 'local-lib');
+-
++
+ # make sure our cpanm is updated (old ones don't support the ~ syntax)
+ system $cpanm, @cpanm_args, 'App::cpanminus';
+
+diff --git a/slic3r.pl b/slic3r.pl
+index 11dc2fad..76885c90 100755
+--- a/slic3r.pl
++++ b/slic3r.pl
+@@ -6,7 +6,6 @@ use warnings;
+ BEGIN {
+ use FindBin;
+ use lib "$FindBin::Bin/lib";
+- use local::lib '--no-create', "$FindBin::Bin/local-lib";
+ }
+
+ use File::Basename qw(basename);
+diff --git a/t/adaptive_slicing.t b/t/adaptive_slicing.t
+index 64c3769f..5ab631fe 100644
+--- a/t/adaptive_slicing.t
++++ b/t/adaptive_slicing.t
+@@ -5,7 +5,6 @@ use warnings;
+ BEGIN {
+ use FindBin;
+ use lib "$FindBin::Bin/../lib";
+- use local::lib "$FindBin::Bin/../local-lib";
+ }
+
+ use List::Util qw(first sum);
+diff --git a/t/adaptive_width.t b/t/adaptive_width.t
+index 7a0baa75..c200f844 100644
+--- a/t/adaptive_width.t
++++ b/t/adaptive_width.t
+@@ -7,7 +7,6 @@ plan tests => 32;
+ BEGIN {
+ use FindBin;
+ use lib "$FindBin::Bin/../lib";
+- use local::lib "$FindBin::Bin/../local-lib";
+ }
+
+ use List::Util qw(first);
+diff --git a/t/angles.t b/t/angles.t
+index 2ae00b4e..1e1a6c9c 100644
+--- a/t/angles.t
++++ b/t/angles.t
+@@ -7,9 +7,6 @@ plan tests => 34;
+ BEGIN {
+ use FindBin;
+ use lib "$FindBin::Bin/../lib";
+- use lib "$FindBin::Bin/../lib";
+- use lib "$FindBin::Bin/../lib";
+- use local::lib "$FindBin::Bin/../local-lib";
+ }
+
+ use Slic3r;
+diff --git a/t/arcs.t b/t/arcs.t
+index ec85dfbc..65b83de4 100644
+--- a/t/arcs.t
++++ b/t/arcs.t
+@@ -7,7 +7,6 @@ plan tests => 24;
+ BEGIN {
+ use FindBin;
+ use lib "$FindBin::Bin/../lib";
+- use local::lib "$FindBin::Bin/../local-lib";
+ }
+
+ use Slic3r;
+diff --git a/t/avoid_crossing_perimeters.t b/t/avoid_crossing_perimeters.t
+index 7cd04e50..dd6c3e7b 100644
+--- a/t/avoid_crossing_perimeters.t
++++ b/t/avoid_crossing_perimeters.t
+@@ -5,7 +5,6 @@ use warnings;
+ BEGIN {
+ use FindBin;
+ use lib "$FindBin::Bin/../lib";
+- use local::lib "$FindBin::Bin/../local-lib";
+ }
+
+ use List::Util qw(first sum);
+diff --git a/t/bridges.t b/t/bridges.t
+index 677115b8..3dc6b84a 100644
+--- a/t/bridges.t
++++ b/t/bridges.t
+@@ -5,7 +5,6 @@ use warnings;
+ BEGIN {
+ use FindBin;
+ use lib "$FindBin::Bin/../lib";
+- use local::lib "$FindBin::Bin/../local-lib";
+ }
+
+ use List::Util qw(first sum);
+diff --git a/t/clean_polylines.t b/t/clean_polylines.t
+index 50c6f5bb..4526bd60 100644
+--- a/t/clean_polylines.t
++++ b/t/clean_polylines.t
+@@ -7,7 +7,6 @@ plan tests => 6;
+ BEGIN {
+ use FindBin;
+ use lib "$FindBin::Bin/../lib";
+- use local::lib "$FindBin::Bin/../local-lib";
+ }
+
+ use Slic3r;
+diff --git a/t/clipper.t b/t/clipper.t
+index 3c983814..a898a53f 100644
+--- a/t/clipper.t
++++ b/t/clipper.t
+@@ -7,7 +7,6 @@ plan tests => 6;
+ BEGIN {
+ use FindBin;
+ use lib "$FindBin::Bin/../lib";
+- use local::lib "$FindBin::Bin/../local-lib";
+ }
+
+ use List::Util qw(sum);
+diff --git a/t/collinear.t b/t/collinear.t
+index b28a3602..9dee7770 100644
+--- a/t/collinear.t
++++ b/t/collinear.t
+@@ -7,7 +7,6 @@ plan tests => 11;
+ BEGIN {
+ use FindBin;
+ use lib "$FindBin::Bin/../lib";
+- use local::lib "$FindBin::Bin/../local-lib";
+ }
+
+ use Slic3r;
+diff --git a/t/combineinfill.t b/t/combineinfill.t
+index 66e461d4..6661cdd6 100644
+--- a/t/combineinfill.t
++++ b/t/combineinfill.t
+@@ -5,7 +5,6 @@ use warnings;
+ BEGIN {
+ use FindBin;
+ use lib "$FindBin::Bin/../lib";
+- use local::lib "$FindBin::Bin/../local-lib";
+ }
+
+ use List::Util qw(first);
+diff --git a/t/config.t b/t/config.t
+index 829ef5f3..7f85dae8 100644
+--- a/t/config.t
++++ b/t/config.t
+@@ -5,7 +5,6 @@ use warnings;
+ BEGIN {
+ use FindBin;
+ use lib "$FindBin::Bin/../lib";
+- use local::lib "$FindBin::Bin/../local-lib";
+ }
+
+ use Slic3r;
+diff --git a/t/cooling.t b/t/cooling.t
+index 80819bdc..5b2d4b4c 100644
+--- a/t/cooling.t
++++ b/t/cooling.t
+@@ -7,7 +7,6 @@ plan tests => 13;
+ BEGIN {
+ use FindBin;
+ use lib "$FindBin::Bin/../lib";
+- use local::lib "$FindBin::Bin/../local-lib";
+ }
+
+ use List::Util qw(none all);
+diff --git a/t/custom_gcode.t b/t/custom_gcode.t
+index 9b58344e..3ff7c35d 100644
+--- a/t/custom_gcode.t
++++ b/t/custom_gcode.t
+@@ -5,7 +5,6 @@ use warnings;
+ BEGIN {
+ use FindBin;
+ use lib "$FindBin::Bin/../lib";
+- use local::lib "$FindBin::Bin/../local-lib";
+ }
+
+ use List::Util qw(first);
+diff --git a/t/fill.t b/t/fill.t
+index 765cfd47..d422d27a 100644
+--- a/t/fill.t
++++ b/t/fill.t
+@@ -7,7 +7,6 @@ plan tests => 95;
+ BEGIN {
+ use FindBin;
+ use lib "$FindBin::Bin/../lib";
+- use local::lib "$FindBin::Bin/../local-lib";
+ }
+
+ use List::Util qw(first sum max);
+diff --git a/t/flow.t b/t/flow.t
+index 37e9deaf..071d290c 100644
+--- a/t/flow.t
++++ b/t/flow.t
+@@ -5,7 +5,6 @@ use warnings;
+ BEGIN {
+ use FindBin;
+ use lib "$FindBin::Bin/../lib";
+- use local::lib "$FindBin::Bin/../local-lib";
+ }
+
+ use List::Util qw(first sum);
+diff --git a/t/gaps.t b/t/gaps.t
+index 01ec1b4e..16baa036 100644
+--- a/t/gaps.t
++++ b/t/gaps.t
+@@ -5,7 +5,6 @@ use warnings;
+ BEGIN {
+ use FindBin;
+ use lib "$FindBin::Bin/../lib";
+- use local::lib "$FindBin::Bin/../local-lib";
+ }
+
+ use List::Util qw(first);
+diff --git a/t/gcode.t b/t/gcode.t
+index ec9b7bb2..525356df 100644
+--- a/t/gcode.t
++++ b/t/gcode.t
+@@ -5,7 +5,6 @@ use warnings;
+ BEGIN {
+ use FindBin;
+ use lib "$FindBin::Bin/../lib";
+- use local::lib "$FindBin::Bin/../local-lib";
+ }
+
+ use List::Util qw(first);
+diff --git a/t/geometry.t b/t/geometry.t
+index 9c6eef55..4e6e7097 100644
+--- a/t/geometry.t
++++ b/t/geometry.t
+@@ -7,7 +7,6 @@ plan tests => 44;
+ BEGIN {
+ use FindBin;
+ use lib "$FindBin::Bin/../lib";
+- use local::lib "$FindBin::Bin/../local-lib";
+ }
+
+ use Slic3r;
+diff --git a/t/layers.t b/t/layers.t
+index a8599807..57fd2576 100644
+--- a/t/layers.t
++++ b/t/layers.t
+@@ -5,7 +5,6 @@ use warnings;
+ BEGIN {
+ use FindBin;
+ use lib "$FindBin::Bin/../lib";
+- use local::lib "$FindBin::Bin/../local-lib";
+ }
+
+ use List::Util qw(first);
+diff --git a/t/loops.t b/t/loops.t
+index d2bf7717..725154c9 100644
+--- a/t/loops.t
++++ b/t/loops.t
+@@ -7,7 +7,6 @@ plan tests => 4;
+ BEGIN {
+ use FindBin;
+ use lib "$FindBin::Bin/../lib";
+- use local::lib "$FindBin::Bin/../local-lib";
+ }
+
+ use Slic3r;
+diff --git a/t/multi.t b/t/multi.t
+index fb8cad81..4d6f8193 100644
+--- a/t/multi.t
++++ b/t/multi.t
+@@ -5,7 +5,6 @@ use warnings;
+ BEGIN {
+ use FindBin;
+ use lib "$FindBin::Bin/../lib";
+- use local::lib "$FindBin::Bin/../local-lib";
+ }
+
+ use List::Util qw(first);
+diff --git a/t/perimeters.t b/t/perimeters.t
+index 513c76ef..3ddde0b8 100644
+--- a/t/perimeters.t
++++ b/t/perimeters.t
+@@ -5,7 +5,6 @@ use warnings;
+ BEGIN {
+ use FindBin;
+ use lib "$FindBin::Bin/../lib";
+- use local::lib "$FindBin::Bin/../local-lib";
+ }
+
+ use Slic3r::ExtrusionLoop ':roles';
+diff --git a/t/polyclip.t b/t/polyclip.t
+index 0808c7be..1292d321 100644
+--- a/t/polyclip.t
++++ b/t/polyclip.t
+@@ -7,7 +7,6 @@ plan tests => 18;
+ BEGIN {
+ use FindBin;
+ use lib "$FindBin::Bin/../lib";
+- use local::lib "$FindBin::Bin/../local-lib";
+ }
+
+ use Slic3r;
+diff --git a/t/pressure.t b/t/pressure.t
+index dde23695..6bbb81d8 100644
+--- a/t/pressure.t
++++ b/t/pressure.t
+@@ -5,7 +5,6 @@ use warnings;
+ BEGIN {
+ use FindBin;
+ use lib "$FindBin::Bin/../lib";
+- use local::lib "$FindBin::Bin/../local-lib";
+ }
+
+ use List::Util qw();
+diff --git a/t/print.t b/t/print.t
+index b78739e4..28cf1ee4 100644
+--- a/t/print.t
++++ b/t/print.t
+@@ -5,7 +5,6 @@ use warnings;
+ BEGIN {
+ use FindBin;
+ use lib "$FindBin::Bin/../lib";
+- use local::lib "$FindBin::Bin/../local-lib";
+ }
+
+ use List::Util qw(first);
+diff --git a/t/retraction.t b/t/retraction.t
+index 237af3ab..37dcb64b 100644
+--- a/t/retraction.t
++++ b/t/retraction.t
+@@ -5,7 +5,6 @@ use warnings;
+ BEGIN {
+ use FindBin;
+ use lib "$FindBin::Bin/../lib";
+- use local::lib "$FindBin::Bin/../local-lib";
+ }
+
+ use List::Util qw(any);
+diff --git a/t/shells.t b/t/shells.t
+index 2347ff36..d64eb28c 100644
+--- a/t/shells.t
++++ b/t/shells.t
+@@ -5,7 +5,6 @@ use warnings;
+ BEGIN {
+ use FindBin;
+ use lib "$FindBin::Bin/../lib";
+- use local::lib "$FindBin::Bin/../local-lib";
+ }
+
+ use List::Util qw(first sum);
+diff --git a/t/skirt_brim.t b/t/skirt_brim.t
+index d6181ba2..cfa0698e 100644
+--- a/t/skirt_brim.t
++++ b/t/skirt_brim.t
+@@ -5,7 +5,6 @@ use warnings;
+ BEGIN {
+ use FindBin;
+ use lib "$FindBin::Bin/../lib";
+- use local::lib "$FindBin::Bin/../local-lib";
+ }
+
+ use List::Util qw(first);
+diff --git a/t/slice.t b/t/slice.t
+index 51b52163..301ae164 100644
+--- a/t/slice.t
++++ b/t/slice.t
+@@ -8,7 +8,6 @@ plan tests => 16;
+ BEGIN {
+ use FindBin;
+ use lib "$FindBin::Bin/../lib";
+- use local::lib "$FindBin::Bin/../local-lib";
+ }
+
+ # temporarily disable compilation errors due to constant not being exported anymore
+diff --git a/t/speed.t b/t/speed.t
+index 5d9fb54c..3deab75b 100644
+--- a/t/speed.t
++++ b/t/speed.t
+@@ -5,7 +5,6 @@ use warnings;
+ BEGIN {
+ use FindBin;
+ use lib "$FindBin::Bin/../lib";
+- use local::lib "$FindBin::Bin/../local-lib";
+ }
+
+ use List::Util qw(none);
+diff --git a/t/support.t b/t/support.t
+index 8d4655b3..b4f9ce04 100644
+--- a/t/support.t
++++ b/t/support.t
+@@ -5,7 +5,6 @@ use warnings;
+ BEGIN {
+ use FindBin;
+ use lib "$FindBin::Bin/../lib";
+- use local::lib "$FindBin::Bin/../local-lib";
+ }
+
+ use List::Util qw(first);
+diff --git a/t/svg.t b/t/svg.t
+index 6092efe2..9299eeef 100644
+--- a/t/svg.t
++++ b/t/svg.t
+@@ -5,7 +5,6 @@ use warnings;
+ BEGIN {
+ use FindBin;
+ use lib "$FindBin::Bin/../lib";
+- use local::lib "$FindBin::Bin/../local-lib";
+ }
+
+ use Slic3r;
+diff --git a/t/thin.t b/t/thin.t
+index 2d256d28..51461480 100644
+--- a/t/thin.t
++++ b/t/thin.t
+@@ -5,7 +5,6 @@ use warnings;
+ BEGIN {
+ use FindBin;
+ use lib "$FindBin::Bin/../lib";
+- use local::lib "$FindBin::Bin/../local-lib";
+ }
+
+ use Slic3r;
+diff --git a/t/threads.t b/t/threads.t
+index 7fcd86f0..106a68af 100644
+--- a/t/threads.t
++++ b/t/threads.t
+@@ -5,7 +5,6 @@ use warnings;
+ BEGIN {
+ use FindBin;
+ use lib "$FindBin::Bin/../lib";
+- use local::lib "$FindBin::Bin/../local-lib";
+ }
+
+ use List::Util qw(first);
+diff --git a/t/vibrationlimit.t b/t/vibrationlimit.t
+index 1a5488a6..7bfa27ac 100644
+--- a/t/vibrationlimit.t
++++ b/t/vibrationlimit.t
+@@ -5,7 +5,6 @@ use warnings;
+ BEGIN {
+ use FindBin;
+ use lib "$FindBin::Bin/../lib";
+- use local::lib "$FindBin::Bin/../local-lib";
+ }
+
+ use Slic3r;
+diff --git a/utils/amf-to-stl.pl b/utils/amf-to-stl.pl
+index 56df2e23..7edc1460 100755
+--- a/utils/amf-to-stl.pl
++++ b/utils/amf-to-stl.pl
+@@ -7,7 +7,6 @@ use warnings;
+ BEGIN {
+ use FindBin;
+ use lib "$FindBin::Bin/../lib";
+- use local::lib "$FindBin::Bin/../local-lib";
+ }
+
+ use File::Basename qw(basename);
+diff --git a/utils/config-bundle-to-config.pl b/utils/config-bundle-to-config.pl
+index e1d7f614..beecd666 100755
+--- a/utils/config-bundle-to-config.pl
++++ b/utils/config-bundle-to-config.pl
+@@ -9,7 +9,6 @@ use warnings;
+ BEGIN {
+ use FindBin;
+ use lib "$FindBin::Bin/../lib";
+- use local::lib "$FindBin::Bin/../local-lib";
+ }
+
+ use Getopt::Long qw(:config no_auto_abbrev);
+diff --git a/utils/dump-stl.pl b/utils/dump-stl.pl
+index 6da275ab..4df94268 100644
+--- a/utils/dump-stl.pl
++++ b/utils/dump-stl.pl
+@@ -8,7 +8,6 @@ use warnings;
+ BEGIN {
+ use FindBin;
+ use lib "$FindBin::Bin/../lib";
+- use local::lib "$FindBin::Bin/../local-lib";
+ }
+
+ use Slic3r;
+diff --git a/utils/estimate-gcode-time.pl b/utils/estimate-gcode-time.pl
+index 43c558b6..eab4f6da 100755
+--- a/utils/estimate-gcode-time.pl
++++ b/utils/estimate-gcode-time.pl
+@@ -6,7 +6,6 @@ use warnings;
+ BEGIN {
+ use FindBin;
+ use lib "$FindBin::Bin/../lib";
+- use local::lib "$FindBin::Bin/../local-lib";
+ }
+
+ use Slic3r;
+diff --git a/utils/gcode_sectioncut.pl b/utils/gcode_sectioncut.pl
+index b94a2fc4..4d9619e4 100644
+--- a/utils/gcode_sectioncut.pl
++++ b/utils/gcode_sectioncut.pl
+@@ -7,7 +7,6 @@ use warnings;
+ BEGIN {
+ use FindBin;
+ use lib "$FindBin::Bin/../lib";
+- use local::lib "$FindBin::Bin/../local-lib";
+ }
+
+ use Getopt::Long qw(:config no_auto_abbrev);
+diff --git a/utils/pdf-slices.pl b/utils/pdf-slices.pl
+index 30c41ae4..fa7612bb 100755
+--- a/utils/pdf-slices.pl
++++ b/utils/pdf-slices.pl
+@@ -7,7 +7,6 @@ use warnings;
+ BEGIN {
+ use FindBin;
+ use lib "$FindBin::Bin/../lib";
+- use local::lib "$FindBin::Bin/../local-lib";
+ }
+
+ use Getopt::Long qw(:config no_auto_abbrev);
+diff --git a/utils/send-gcode.pl b/utils/send-gcode.pl
+index d87e6826..6f529b90 100644
+--- a/utils/send-gcode.pl
++++ b/utils/send-gcode.pl
+@@ -6,7 +6,6 @@ use warnings;
+ BEGIN {
+ use FindBin;
+ use lib "$FindBin::Bin/../lib";
+- use local::lib "$FindBin::Bin/../local-lib";
+ }
+
+ use Slic3r;
+diff --git a/utils/split_stl.pl b/utils/split_stl.pl
+index eb659b9c..16cf5a9d 100755
+--- a/utils/split_stl.pl
++++ b/utils/split_stl.pl
+@@ -7,7 +7,6 @@ use warnings;
+ BEGIN {
+ use FindBin;
+ use lib "$FindBin::Bin/../lib";
+- use local::lib "$FindBin::Bin/../local-lib";
+ }
+
+ use File::Basename qw(basename);
+diff --git a/utils/stl-to-amf.pl b/utils/stl-to-amf.pl
+index cb041893..81648b8e 100755
+--- a/utils/stl-to-amf.pl
++++ b/utils/stl-to-amf.pl
+@@ -7,7 +7,6 @@ use warnings;
+ BEGIN {
+ use FindBin;
+ use lib "$FindBin::Bin/../lib";
+- use local::lib "$FindBin::Bin/../local-lib";
+ }
+
+ use File::Basename qw(basename);
+diff --git a/utils/view-mesh.pl b/utils/view-mesh.pl
+index 91cd20a2..b122faed 100644
+--- a/utils/view-mesh.pl
++++ b/utils/view-mesh.pl
+@@ -7,7 +7,6 @@ use warnings;
+ BEGIN {
+ use FindBin;
+ use lib "$FindBin::Bin/../lib";
+- use local::lib "$FindBin::Bin/../local-lib";
+ }
+
+ use Getopt::Long qw(:config no_auto_abbrev);
+diff --git a/utils/view-toolpaths.pl b/utils/view-toolpaths.pl
+index d4c47f07..4bbbaab4 100755
+--- a/utils/view-toolpaths.pl
++++ b/utils/view-toolpaths.pl
+@@ -7,7 +7,6 @@ use warnings;
+ BEGIN {
+ use FindBin;
+ use lib "$FindBin::Bin/../lib";
+- use local::lib "$FindBin::Bin/../local-lib";
+ }
+
+ use Getopt::Long qw(:config no_auto_abbrev);
+diff --git a/utils/wireframe.pl b/utils/wireframe.pl
+index f49b66e5..053581de 100644
+--- a/utils/wireframe.pl
++++ b/utils/wireframe.pl
+@@ -8,7 +8,6 @@ use warnings;
+ BEGIN {
+ use FindBin;
+ use lib "$FindBin::Bin/../lib";
+- use local::lib "$FindBin::Bin/../local-lib";
+ }
+
+ use Getopt::Long qw(:config no_auto_abbrev);
diff --git a/media-gfx/slic3r/metadata.xml b/media-gfx/slic3r/metadata.xml
new file mode 100644
index 000000000000..c0f39d3c0420
--- /dev/null
+++ b/media-gfx/slic3r/metadata.xml
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>tomboy64@sina.cn</email>
+ <name>Proxy-Maintainer; please assign him to bugs.</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Gentoo Proxy Maintainers Project</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>3dprint@gentoo.org</email>
+ <name>Gentoo 3D Printer Project</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>perl@gentoo.org</email>
+ <name>Gentoo Perl Project</name>
+ </maintainer>
+ <use>
+ <flag name="gui">Enable GUI</flag>
+ </use>
+ <longdescription lang="en">
+ Slic3r is the tool you need to convert a 3D model into printing instructions for your 3D printer. It cuts the model into horizontal slices (layers), generates toolpaths to fill them and calculates the amount of material to be extruded.
+ </longdescription>
+ <upstream>
+ <remote-id type="github">alexrj/Slic3r</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/media-gfx/slic3r/slic3r-1.1.7.ebuild b/media-gfx/slic3r/slic3r-1.1.7.ebuild
new file mode 100644
index 000000000000..cc961a803fea
--- /dev/null
+++ b/media-gfx/slic3r/slic3r-1.1.7.ebuild
@@ -0,0 +1,114 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit eutils perl-module
+
+DESCRIPTION="A mesh slicer to generate G-code for fused-filament-fabrication (3D printers)"
+HOMEPAGE="http://slic3r.org"
+SRC_URI="https://github.com/alexrj/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="AGPL-3 CC-BY-3.0"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="+gui test"
+
+# check Build.PL for dependencies
+RDEPEND="!=dev-lang/perl-5.16*
+ >=dev-libs/boost-1.55[threads]
+ dev-perl/Class-XSAccessor
+ dev-perl/Encode-Locale
+ dev-perl/IO-stringy
+ >=dev-perl/Math-PlanePath-53.0.0
+ >=dev-perl/Moo-1.3.1
+ dev-perl/XML-SAX-ExpatXS
+ virtual/perl-Carp
+ virtual/perl-File-Spec
+ virtual/perl-Getopt-Long
+ virtual/perl-parent
+ virtual/perl-Scalar-List-Utils
+ virtual/perl-Test-Simple
+ virtual/perl-Thread-Semaphore
+ >=virtual/perl-threads-1.960.0
+ virtual/perl-Time-HiRes
+ virtual/perl-XSLoader
+ gui? ( dev-perl/Class-Accessor
+ dev-perl/Growl-GNTP
+ dev-perl/libwww-perl
+ dev-perl/Module-Pluggable
+ dev-perl/Net-Bonjour
+ dev-perl/Net-DBus
+ dev-perl/OpenGL
+ >=dev-perl/Wx-0.991.800
+ dev-perl/Wx-GLCanvas
+ >=media-libs/freeglut-3
+ virtual/perl-Math-Complex
+ >=virtual/perl-Socket-2.16.0
+ x11-libs/libXmu
+ )"
+DEPEND="${RDEPEND}
+ >=dev-perl/ExtUtils-CppGuess-0.70.0
+ >=dev-perl/ExtUtils-Typemaps-Default-1.50.0
+ >=dev-perl/ExtUtils-XSpp-0.170.0
+ >=dev-perl/Module-Build-0.380.0
+ >=dev-perl/Module-Build-WithXSpp-0.140.0
+ >=virtual/perl-ExtUtils-MakeMaker-6.800.0
+ >=virtual/perl-ExtUtils-ParseXS-3.220.0
+ test? ( virtual/perl-Test-Harness
+ virtual/perl-Test-Simple )"
+
+DIST_TEST="do"
+S="${WORKDIR}/Slic3r-${PV}/xs"
+
+src_prepare() {
+ pushd "${WORKDIR}/Slic3r-${PV}" || die
+ eapply "${FILESDIR}/${P}-adjust_var_path.patch"
+ eapply_user
+ popd || die
+}
+
+src_configure() {
+ SLIC3R_NO_AUTO=1 perl-module_src_configure
+}
+
+src_test() {
+ perl-module_src_test
+ # 1.1.7 Is kinda broken after Perl 5.16
+ pushd .. || die
+ ewarn "Some Tests Skipped due to consuming 100% of RAM"
+ local bad_files=(
+ t/combineinfill.t t/cooling.t t/custom_gcode.t t/fill.t
+ t/flow.t t/gaps.t t/gcode.t t/layers.t t/multi.t
+ t/perimeters.t t/print.t t/retraction.t t/shells.t
+ t/skirt_brim.t t/support.t t/threads.t t/vibrationlimit.t
+ );
+ for filename in "${bad_files[@]}"; do
+ einfo "Removing bad test ${filename}";
+ rm -f "./${filename}" || die "Cannot remove ./${filename}";
+ done
+ prove -Ixs/blib/arch -Ixs/blib/lib/ t/ || die "Tests failed"
+ popd || die
+}
+
+src_install() {
+ perl-module_src_install
+
+ pushd .. || die
+ insinto "${VENDOR_LIB}"
+ doins -r lib/Slic3r.pm lib/Slic3r
+
+ insinto "${VENDOR_LIB}"/Slic3r
+ doins -r var
+
+ exeinto "${VENDOR_LIB}"/Slic3r
+ doexe slic3r.pl
+
+ dosym "${VENDOR_LIB}"/Slic3r/slic3r.pl /usr/bin/slic3r.pl
+
+ make_desktop_entry slic3r.pl \
+ Slic3r \
+ "${VENDOR_LIB}/Slic3r/var/Slic3r_128px.png" \
+ "Graphics;3DGraphics;Engineering;Development"
+ popd || die
+}
diff --git a/media-gfx/slic3r/slic3r-1.2.9-r2.ebuild b/media-gfx/slic3r/slic3r-1.2.9-r2.ebuild
new file mode 100644
index 000000000000..21f227284727
--- /dev/null
+++ b/media-gfx/slic3r/slic3r-1.2.9-r2.ebuild
@@ -0,0 +1,103 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit eutils perl-module
+
+DESCRIPTION="A mesh slicer to generate G-code for fused-filament-fabrication (3D printers)"
+HOMEPAGE="http://slic3r.org"
+SRC_URI="https://github.com/alexrj/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="AGPL-3 CC-BY-3.0"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="+gui test"
+
+RDEPEND="!=dev-lang/perl-5.16*
+ >=dev-libs/boost-1.55[threads]
+ dev-perl/Class-XSAccessor
+ >=dev-perl/Encode-Locale-1.50.0
+ dev-perl/IO-stringy
+ >=dev-perl/Math-PlanePath-53.0.0
+ >=dev-perl/Moo-1.3.1
+ dev-perl/XML-SAX-ExpatXS
+ virtual/perl-Carp
+ virtual/perl-Encode
+ virtual/perl-File-Spec
+ virtual/perl-Getopt-Long
+ virtual/perl-parent
+ virtual/perl-Scalar-List-Utils
+ virtual/perl-Test-Simple
+ virtual/perl-Thread-Semaphore
+ >=virtual/perl-threads-1.960.0
+ virtual/perl-Time-HiRes
+ virtual/perl-Unicode-Normalize
+ virtual/perl-XSLoader
+ gui? ( dev-perl/Class-Accessor
+ dev-perl/Growl-GNTP
+ dev-perl/libwww-perl
+ dev-perl/Module-Pluggable
+ dev-perl/Net-Bonjour
+ dev-perl/Net-DBus
+ dev-perl/OpenGL
+ >=dev-perl/Wx-0.991.800
+ dev-perl/Wx-GLCanvas
+ >=media-libs/freeglut-3
+ virtual/perl-Math-Complex
+ >=virtual/perl-Socket-2.16.0
+ x11-libs/libXmu
+ )"
+DEPEND="${RDEPEND}
+ >=dev-perl/ExtUtils-CppGuess-0.70.0
+ >=dev-perl/ExtUtils-Typemaps-Default-1.50.0
+ >=dev-perl/ExtUtils-XSpp-0.170.0
+ >=dev-perl/Module-Build-0.380.0
+ >=dev-perl/Module-Build-WithXSpp-0.140.0
+ >=virtual/perl-ExtUtils-MakeMaker-6.800.0
+ >=virtual/perl-ExtUtils-ParseXS-3.220.0
+ test? ( virtual/perl-Test-Harness
+ virtual/perl-Test-Simple )"
+
+S="${WORKDIR}/Slic3r-${PV}/xs"
+
+src_prepare() {
+ pushd "${WORKDIR}/Slic3r-${PV}" || die
+ eapply "${FILESDIR}/${P}-adjust_var_path.patch"
+ eapply "${FILESDIR}/${P}-c++11.patch"
+ eapply_user
+ popd || die
+}
+
+src_configure() {
+ SLIC3R_NO_AUTO=1 perl-module_src_configure
+}
+
+src_test() {
+ perl-module_src_test
+ pushd .. || die
+ prove -Ixs/blib/arch -Ixs/blib/lib/ t/ || die "Tests failed"
+ popd || die
+}
+
+src_install() {
+ perl-module_src_install
+
+ pushd .. || die
+ insinto "${VENDOR_LIB}"
+ doins -r lib/Slic3r.pm lib/Slic3r
+
+ insinto "${VENDOR_LIB}"/Slic3r
+ doins -r var
+
+ exeinto "${VENDOR_LIB}"/Slic3r
+ doexe slic3r.pl
+
+ dosym "${VENDOR_LIB}"/Slic3r/slic3r.pl /usr/bin/slic3r.pl
+
+ make_desktop_entry slic3r.pl \
+ Slic3r \
+ "${VENDOR_LIB}/Slic3r/var/Slic3r_128px.png" \
+ "Graphics;3DGraphics;Engineering;Development"
+ popd || die
+}
diff --git a/media-gfx/slic3r/slic3r-9999.ebuild b/media-gfx/slic3r/slic3r-9999.ebuild
new file mode 100644
index 000000000000..db80a647e0ed
--- /dev/null
+++ b/media-gfx/slic3r/slic3r-9999.ebuild
@@ -0,0 +1,112 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit eutils git-r3 perl-module
+
+DESCRIPTION="A mesh slicer to generate G-code for fused-filament-fabrication (3D printers)"
+HOMEPAGE="http://slic3r.org"
+SRC_URI=""
+EGIT_REPO_URI="https://github.com/alexrj/Slic3r.git"
+
+LICENSE="AGPL-3 CC-BY-3.0"
+SLOT="0"
+KEYWORDS=""
+IUSE="+gui test"
+
+# check Build.PL for dependencies
+RDEPEND="!=dev-lang/perl-5.16*
+ >=dev-libs/boost-1.55[threads]
+ dev-perl/Class-XSAccessor
+ dev-perl/Devel-CheckLib
+ dev-perl/Devel-Size
+ >=dev-perl/Encode-Locale-1.50.0
+ dev-perl/IO-stringy
+ >=dev-perl/Math-PlanePath-53.0.0
+ >=dev-perl/Moo-1.3.1
+ dev-perl/XML-SAX-ExpatXS
+ virtual/perl-Carp
+ virtual/perl-Encode
+ virtual/perl-File-Spec
+ virtual/perl-Getopt-Long
+ virtual/perl-parent
+ virtual/perl-Scalar-List-Utils
+ virtual/perl-Test-Simple
+ virtual/perl-Thread-Semaphore
+ >=virtual/perl-threads-1.960.0
+ virtual/perl-Time-HiRes
+ virtual/perl-Unicode-Normalize
+ virtual/perl-XSLoader
+ gui? ( dev-perl/Class-Accessor
+ dev-perl/Growl-GNTP
+ dev-perl/libwww-perl
+ dev-perl/Module-Pluggable
+ dev-perl/Net-Bonjour
+ dev-perl/Net-DBus
+ dev-perl/OpenGL
+ >=dev-perl/Wx-0.991.800
+ dev-perl/Wx-GLCanvas
+ >=media-libs/freeglut-3
+ virtual/perl-Math-Complex
+ >=virtual/perl-Socket-2.16.0
+ x11-libs/libXmu
+ )"
+DEPEND="${RDEPEND}
+ dev-perl/Devel-CheckLib
+ >=dev-perl/ExtUtils-CppGuess-0.70.0
+ >=dev-perl/ExtUtils-Typemaps-Default-1.50.0
+ >=dev-perl/ExtUtils-XSpp-0.170.0
+ >=dev-perl/Module-Build-0.380.0
+ >=dev-perl/Module-Build-WithXSpp-0.140.0
+ >=virtual/perl-ExtUtils-MakeMaker-6.800.0
+ >=virtual/perl-ExtUtils-ParseXS-3.220.0
+ test? ( virtual/perl-Test-Harness
+ virtual/perl-Test-Simple )"
+
+S="${WORKDIR}/slic3r-${PV}/xs"
+
+src_unpack() {
+ git-r3_src_unpack
+}
+
+src_prepare() {
+ pushd "${WORKDIR}/slic3r-${PV}" || die
+ sed -i lib/Slic3r.pm -e "s@FindBin::Bin@FindBin::RealBin@g" || die
+ eapply "${FILESDIR}"/${P}-no-locallib.patch
+ eapply_user
+ popd || die
+}
+
+src_configure() {
+ SLIC3R_NO_AUTO=1 perl-module_src_configure
+}
+
+src_test() {
+ perl-module_src_test
+ pushd .. || die
+ prove -Ixs/blib/arch -Ixs/blib/lib/ t/ || die "Tests failed"
+ popd || die
+}
+
+src_install() {
+ perl-module_src_install
+
+ pushd .. || die
+ insinto "${VENDOR_LIB}"
+ doins -r lib/Slic3r.pm lib/Slic3r
+
+ insinto "${VENDOR_LIB}"/Slic3r
+ doins -r var
+
+ exeinto "${VENDOR_LIB}"/Slic3r
+ doexe slic3r.pl
+
+ dosym "${VENDOR_LIB}"/Slic3r/slic3r.pl /usr/bin/slic3r.pl
+
+ make_desktop_entry slic3r.pl \
+ Slic3r \
+ "${VENDOR_LIB}/Slic3r/var/Slic3r_128px.png" \
+ "Graphics;3DGraphics;Engineering;Development"
+ popd || die
+}
diff --git a/media-gfx/splash-themes-gentoo/Manifest b/media-gfx/splash-themes-gentoo/Manifest
new file mode 100644
index 000000000000..c44c0a8d159d
--- /dev/null
+++ b/media-gfx/splash-themes-gentoo/Manifest
@@ -0,0 +1,9 @@
+DIST fbsplash-theme-emerge-world-1.0.tar.bz2 3963650 SHA256 a00ee0364842b276389eb09c95fa3ee16ad3fa15017998fe6765d45167015d7d SHA512 a77f0a97cc97c60159dfa3f445de827c26c261d7194a7716277a8ae5c197ffd31cc7c703aec053fc59fad5e855e049d65ad3eb313789d7e1524c574fedc2ec7b WHIRLPOOL 5f3f0ce84cc959632110507ce90b329a9c0ac23ec8b93d63b4d8155b7aa3e166020e526609072844b1a8b9005f7bf6fa22cfde08fb492e7b4c6222060280ad01
+DIST fbsplash-theme-emergence-r2.tar.bz2 4794297 SHA256 77eda040aa858b19c822549bb1478dbb66a5e68f5ce3dade727ef36ae9121d92 SHA512 eefb2c1e09e9efbe6f574d007633a85d83227a526711845f5ede36b4664d781c2de05f3a79ba8d710114dd98559328aaee816983a5dc486cce089e4afb0dd260 WHIRLPOOL 341d35ab37e2489620419c5c644891518c2a2b83422d40f0636190608fa25b3cb1ed2d2afc0ead333950c2bcf4eec3f237d6f9bb27ce00a4290abf2a83a15ac2
+DIST fbsplash-theme-gentoo-r2.tar.bz2 5605891 SHA256 30bc1e5a13d978c0c3ad4b9c25576897018053d3e9d573e7af0a8865bc2f3f82 SHA512 eb7b90f8e3821e76ca75706841cd6a170a3bcdc0bfff6e876eb5425f211e3501ad78479e7b8f232eb1e221dfacf450620ffd10191790173359ee053ab9843eea WHIRLPOOL eceaef29d6029199b987125237b4f93e335119228f92b1cd85955ca2b49e3fa2a5992c7f161be3428137f09d352354f25b2b92a5f3cf199985781590f0c30bc8
+DIST natural_gentoo-9.0-r2.tar.bz2 433306 SHA256 9f31569123854dbeff596e40edcdb88dcb953a90d936ff6c9e177cf52d3825a2 SHA512 ba24da013d2f9c63d7974d443c8529bdd10b552b02006ee107b0b4b1f1034c27448754f220ae153557058f1b359061036c83e687ead2a179392f9239f9fcf686 WHIRLPOOL 5b99a7a5ae4f54907bb2c21f47c0ac3986c38774a8ce11d0a632d6ce239aa1a7c4504a2fb1629cc844e16b8b147a133cc9e7cdbed9e311ab39f1a58cb2067990
+EBUILD splash-themes-gentoo-20101212-r1.ebuild 1115 SHA256 4cf04962aa50cbaed5c3753516f959c20a6e0bca35f1793148ba2204fcbb31a0 SHA512 f1cf653fc790db5389b7d4f2521d6c1c9bd3ee57620ee1a13a4ea0f1c74acc6a64bb47413e0bdc56f2f91366ed3ab0a0d9312da72ca182490c35d6b47bdd3198 WHIRLPOOL d4df552463caaea72fefaee6ae9e3be46bcd1c24cfc75ba5f8f9f46e3e049b6ae0ebc6f2cc8c623ff9d604cf991186646e9788fe5407cd4c476ebd9f8fe3e694
+EBUILD splash-themes-gentoo-20101212-r2.ebuild 1439 SHA256 5315e78de7a89ee5fd39d9370159509f5bfb652b7b10a127d3840e9b97b9da5d SHA512 9676581cd65783644ecd709057693f91be7c854fd6119c4494e22de860cfc0e62d4b33ac604131360f73a5b5d85b2d4d06adb8005bf899eb5f63c3948082d9ed WHIRLPOOL 6fd9700a26759179162220d8a6a72869054c9e7d8f1ec5e7be1a7d968302f4a357b01efafedc2d3edf0613bc331f92f92899c0bb712e9dd6d28171f0f92ebae9
+MISC ChangeLog 2752 SHA256 66cdecb100a927378fa9a0ed99eb8f95061f8880e885364b48e7b2f2b243ec21 SHA512 18c04f26aebb285b9cda02134af9b34b1320ee8530db6465920de320a07b2118a1faa239ac7f4b0e49698ef441c5a5fa1aaf40df1055280695690eb6254641ee WHIRLPOOL 6c2bc631712d30c7a85b755f9e65015e8296cd90eba8e79d9425318f8f9fe4680827ebf6d96e08e8599e1a3ee59774fc2c2c613a8a0bd23b127194506a9c654d
+MISC ChangeLog-2015 5338 SHA256 dbe591fbcff609a026151c417ee503f0cb3f1e99b4d5e0341088774c04787069 SHA512 b13dc3ac066627384fb71529dfd0c7d70ba92a162e8e3e469e10b5dbfde2d2a8efb6f3ab2f75d6b23dacd03370b033132eda081a5a24fd7d3051a6b0ce9897a7 WHIRLPOOL 20624411923b9a45ca1eeef5e647c0b34730cccc286c27db39ef2579f429ee2b932d8c0a42e3856ff00437a4fb11335198d8c2c2a26f8f5c5281f73fac06cf7b
+MISC metadata.xml 166 SHA256 2caff447f5bd2701d8456ada5cc633c41ef4373fa4bfeabeb73599d40bcc941b SHA512 a56648c974a1d14dd4c18237532773c72057a13ab90c58b5da04f185e3c12a8bd8d5c21fb06053507f31766291a82dc7d87b34cd65fd94cfe2af7295c813ef84 WHIRLPOOL 1ff70497eca6531f0e0614c72a19f4b8e5ff486a58d369f4f0b36308d1d6b01168f9da887740e3b9f536236be251d3fe05f904d27a9233a7cf613416ba882968
diff --git a/media-gfx/splash-themes-gentoo/metadata.xml b/media-gfx/splash-themes-gentoo/metadata.xml
new file mode 100644
index 000000000000..6f49eba8f496
--- /dev/null
+++ b/media-gfx/splash-themes-gentoo/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<!-- maintainer-needed -->
+</pkgmetadata>
diff --git a/media-gfx/splash-themes-gentoo/splash-themes-gentoo-20101212-r1.ebuild b/media-gfx/splash-themes-gentoo/splash-themes-gentoo-20101212-r1.ebuild
new file mode 100644
index 000000000000..e007a46b0632
--- /dev/null
+++ b/media-gfx/splash-themes-gentoo/splash-themes-gentoo-20101212-r1.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+DESCRIPTION="A collection of Gentoo themes for splashutils"
+HOMEPAGE="https://dev.gentoo.org/~spock/"
+SRC_URI="mirror://gentoo/fbsplash-theme-emergence-r2.tar.bz2
+ mirror://gentoo/fbsplash-theme-gentoo-r2.tar.bz2
+ mirror://gentoo/fbsplash-theme-emerge-world-1.0.tar.bz2
+ http://fbsplash.berlios.de/themes/repo/natural_gentoo-9.0-r2.tar.bz2"
+
+LICENSE="freedist"
+SLOT="0"
+KEYWORDS="amd64 ~ppc x86"
+IUSE=""
+
+RDEPEND=">=media-gfx/splashutils-1.1.9.5[png]"
+DEPEND="${RDEPEND}"
+
+S="${WORKDIR}"
+RESTRICT="binchecks strip"
+
+src_prepare() {
+ sed -i -e 's/natural-gentoo/natural_gentoo/g' natural_gentoo/*.cfg || die 'sed failed'
+}
+
+src_install() {
+ insinto /etc/splash
+ doins -r *
+}
+
+pkg_postinst() {
+ if [[ -z ${REPLACING_VERSIONS} ]]; then
+ elog "The upstream tarball for the 'Natural Gentoo' theme also contains a GRUB"
+ elog "splash image which is not installed by this ebuild. See:"
+ elog " http://www.kde-look.org/content/show.php?content=49074"
+ elog "if you are interested in this."
+ fi
+}
diff --git a/media-gfx/splash-themes-gentoo/splash-themes-gentoo-20101212-r2.ebuild b/media-gfx/splash-themes-gentoo/splash-themes-gentoo-20101212-r2.ebuild
new file mode 100644
index 000000000000..225ed6c22066
--- /dev/null
+++ b/media-gfx/splash-themes-gentoo/splash-themes-gentoo-20101212-r2.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+DESCRIPTION="A collection of Gentoo themes for splashutils"
+HOMEPAGE="https://dev.gentoo.org/~spock/"
+SRC_URI="mirror://gentoo/fbsplash-theme-emergence-r2.tar.bz2
+ mirror://gentoo/fbsplash-theme-gentoo-r2.tar.bz2
+ mirror://gentoo/fbsplash-theme-emerge-world-1.0.tar.bz2
+ http://fbsplash.berlios.de/themes/repo/natural_gentoo-9.0-r2.tar.bz2"
+
+LICENSE="freedist"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE=""
+
+RDEPEND=">=media-gfx/splashutils-1.1.9.5[png]"
+DEPEND="${RDEPEND}"
+
+S="${WORKDIR}"
+RESTRICT="binchecks strip"
+
+src_prepare() {
+ sed -i -e 's/natural-gentoo/natural_gentoo/g' natural_gentoo/*.cfg || die 'sed failed'
+}
+
+src_install() {
+ # They need to be executable, bug #470100
+ insinto /etc/splash
+ doins -r *
+
+ # They need to be executable, bug #470100
+ fperms +x /etc/splash/emerge-world/scripts/svc_started-pre
+ fperms +x /etc/splash/emerge-world/scripts/svc_start-pre
+ fperms +x /etc/splash/emerge-world/scripts/svc_stopped-pre
+ fperms +x /etc/splash/emerge-world/scripts/svc_stop-pre
+}
+
+pkg_postinst() {
+ if [[ -z ${REPLACING_VERSIONS} ]]; then
+ elog "The upstream tarball for the 'Natural Gentoo' theme also contains a GRUB"
+ elog "splash image which is not installed by this ebuild. See:"
+ elog " http://www.kde-look.org/content/show.php?content=49074"
+ elog "if you are interested in this."
+ fi
+}
diff --git a/media-gfx/splash-themes-livecd/Manifest b/media-gfx/splash-themes-livecd/Manifest
new file mode 100644
index 000000000000..0b789fd090f6
--- /dev/null
+++ b/media-gfx/splash-themes-livecd/Manifest
@@ -0,0 +1,16 @@
+AUX use-new-path-for-functions.sh.patch 355 SHA256 efa3fac99afe6c0fa0291b303ccecb76ef5bf45714ba79411013cf12e41c9527 SHA512 7476b91df9caaf06c409947bb2c970b297dfccb17eec5a5c2f016090a6a8e76a4f42e98986317f64e1d3c5a548a1d0a10e2cdc8a7f6cde16e54b80ade0cf094e WHIRLPOOL 8279af9abdc04784492abc0f4795b08c5e2751c738308d2f0985f220ccbec9916499820facdcf127f8d09363eb3de60fb10f52af7653af25060d9a8342a637aa
+DIST gentoo-livecd-2005.0-0.9.1.tar.bz2 4887028 SHA256 433e9b2b1a4d3e03c000c56b91b01de9355b7fb8e3f3fcd1302c018a1001b424 SHA512 5728363564a8d98d62c478b9b196e7d7e596da66f8640fddd68b161ad6d037e5f3be9f16d84ecbbd97b9dcbd7f30b40cbc69774aa354f58d9619cfb6e313cf85 WHIRLPOOL 286cde88548797946082018cdb7b389b2c2619d0dc34455a06eb20735c0e63587445d4f2b1c5f9c4dc67dcf1f14dbfaa4866de234f3cd96e8c06a0de4fc7b71c
+DIST gentoo-livecd-2005.1-0.9.2.tar.bz2 13000381 SHA256 5b9c4c20af8efefa987608957bd57e1c8dd788360f7d7660e9394bd74a419234 SHA512 eca90d70cc0f3d8e7f5d10a56f7e7fcbc7ed251d43506ae2797b8cbb5be506a12a60454804917c535b17fb8fd8fb47fb9864f7c27d0d12da10869a3288f8b7e4 WHIRLPOOL db5581c076f6d8e1afa8ddd1919669dd30fae26aa27d5787a485439d8802e3d0429f1ed43ccbed33d554f914052b68b89713da80af4bade980ae659f1e9644de
+DIST gentoo-livecd-2006.0-0.9.3.tar.bz2 3207382 SHA256 f6cd2120a2c139a5a0607151efd7a62f71e9fb915c46d1abebc2b894b0adda5a SHA512 79f0007f6c4d3b0056ca8d1d1ed6f021140ffefb5cdaa651483f2c4d8cfbd0b001cf27ab96474c17eeb61ffb72cb8d9d003db8bfa6fc7b737071c46ed9c6aca1 WHIRLPOOL 68d9c9329c8fef42f43fb69fa6dbea0fe8654d6cfca599f63b6ea06fef96b6b886ca7df637556a6ebeee797bc6a1ab82816f16c9682ef37fe8011c98ec96659a
+DIST gentoo-livecd-2006.1-0.9.4.tar.bz2 3447608 SHA256 8d87c4bd6d2677ff11566aee6bfadfbbf12f9dabc60c7c9b76eeaac5c86cbaa3 SHA512 e2928b547c6e7fe5e8c633f0a2e0363802c2b8f1fc5eb112a7be727b1a81b95bbb9889509efacbe7d6f555750438a1da7ad3705d9a2315ab15152c3794ac024c WHIRLPOOL 79f7cd1505b689d5dad6a582b5eea67f27de5b097239c4d093e328f6c1d546f433723f1d285c634c1fd09b93d763cd0b587152db150294e280a6e84b55c9188c
+DIST gentoo-livecd-2007.0-0.9.6.tar.bz2 4760433 SHA256 ed6a097cf1e33c55cb1f98dda1f7ae33be8e785e12ba00df82d497f04131e01f SHA512 a5a1ef2f10c9880d546184772108c56d5c700707199408ae63389a5bd7bec9c526f73631dfe782cceb88242ab8e8a56d14755552500c589fe1958e75e8b5015d WHIRLPOOL 7d7b3ddc3ad97a80917e52c483ceb0d53264dba9aed999e59d1b4245b7df16d56c9877fc5d89fd33cec1bc1b81394ad5fad05d91b791f9a3163a7d548d0d10d8
+DIST splash-themes-livecd-2004.3.tar.bz2 1790707 SHA256 9b14e8c9a2124e3f1683fd6b3aa9a39ba9d090984c86ec7fcc3c7b1bf0e0b511 SHA512 75c897965cec7173c09027a8578e5047f7121e4b64f09f169ab40616bda412d555e5a4e42375082d685dd73d2d1026e18788408b36e9a690c41a0ba83759498f WHIRLPOOL 84b0a23771a7e85784551deab87cbb42a155581096f7e0b102b878f99495ed54847d9e68f2984ccb742febcfe2eca81db2065409237f58259c3508897caf8211
+EBUILD splash-themes-livecd-2004.3.ebuild 511 SHA256 36593fc5eece615e5b954af568aba9d5d21fda83134c61b19f47ef0ff089ea5b SHA512 c9e6323a9368ea354e53a173a2e28433f3849a722925248e5de8daead7b525ff0e65d30efac839bfdae13cfd8eef91f1f15cb11a958d039b505c76103a6ae4a8 WHIRLPOOL 71c9368d46e3435d005c9cccc1eb610bcb09f99e6de54d0eb41cbb7cb6dfa2f8eb5598cd280ff2952c2ac6590e381afc12844294002d89acf19402f3c38c4528
+EBUILD splash-themes-livecd-2005.0.ebuild 734 SHA256 8f022d82dd95b8c5ba081f5c1b8b6b88c21d265827440c0f55ad4ae39595bcef SHA512 878615d44cc4ead46f05060cc7c6f6fe01e4f3a60df54fbcaf286ba200f8ac0b566f62de5ecda8bb0e34fe986d71a9319ad094281d067d0669ae7ab857dcb2d9 WHIRLPOOL e62b954c85ce009818b3e47efc144f203d1420cae87f9a87302bbbc9963cf910ceefe2dc1ed86c3e45f105c91b0c02da6771bdefd35f2765483f9b2233d155d6
+EBUILD splash-themes-livecd-2005.1.ebuild 833 SHA256 e4c01a42cbd01c0754e8cb8b0cd0a10616bdff2990bec53568d651c1466313c9 SHA512 5787872e41d7aa6a8504a3e3a9af5ab9b6bf4202f96a3c012a8573a7407cd1e77458b5ddc7fe5410c22854b6c38373d910111d21a11cdcd3e857d4687faee27a WHIRLPOOL 27f3e2108af48ef4c869700a8d11894a2b68070618d9179397ac492ca8a3759e72aa9f30d3c709a9143c088d7799bd6eb1f9542b9fe2c0cc01d741ba61a769ad
+EBUILD splash-themes-livecd-2006.0.ebuild 716 SHA256 dd7254fdfc5afb86b6c86af1d8272a8e368964797c7a8b81abc9a5a2dd4b6012 SHA512 553bd4c097b0c076b0581b05fc64ea2153f2d42162e001a7f1e893e0369a9b12e1f4303e154d689810220d00c63279d72216228a1ac41848fb9a6796fca0b8c9 WHIRLPOOL 1db3e1d12e3cb86a1ce5544280c87ea8d90f3a2b47ef5dc693d3eedb304a51cd93f02e58a1a9233eb97ce25f42c4883cd0237c4f94b89c24d2f9ab9587d9ce10
+EBUILD splash-themes-livecd-2006.1.ebuild 720 SHA256 dd6638f7d05be99415dd959e54f996665d49bc6e31a99baddc6804f60a0f53cb SHA512 d7ff46f6358fe5aa06b9b772c36cbb0af1c7e889896dc2351347d0b8a1848c55b8c525b29a6d7d00d191bde1c58711bb7a18e63a940a433d4ef8b9bdc156f78d WHIRLPOOL e35695e29364686bc935bc9bb66f6437dde8ee2438bd35db510096f38763d140dd950fabd9d76025d409c44b2d19f07971f30fc1979b7b62e158fd4d0077849a
+EBUILD splash-themes-livecd-2007.0-r3.ebuild 721 SHA256 b76f252f4e7d656a4b30ff9b53245d89b300a475aa30c2bcf312efd2312eed20 SHA512 3efd8574dae88e32a0c56a090bc13517d0bc3ca9c0508f8df48292e56c1bb1d583f4c5e02fdaf892987dae124c016c0be74b0c1bdd31cef9fed1a30cd3b02225 WHIRLPOOL 5ab30e8586e7ab6901947d7da3e4b3a5f7b4f593bc62e5d8f3c799b4e6c58f405c22a74332b3a458e031369c37b79777ba261d1ba0317212a50f04b7536485e7
+MISC ChangeLog 4085 SHA256 a08bd07af708bd89656cfc92ea68f585996e702cc5c2879c8ee755494caa54ab SHA512 d5fbb010b5bad8f5bc6d2fc7d1aabb14dabdf43de20d78b0c66939cd30671c3a8d6dc01e2a0a0ffca5649c9c6564acb88edfd9ff7697a54aa3030164252082b6 WHIRLPOOL 7884ef218918602a508970d93f83d9430a932e781d932281e174aa38691c4186e475d76488d3a0b4a7823581dcaf52215f8912fafcd2e1860dfcce868f43cd99
+MISC ChangeLog-2015 5545 SHA256 5d59de0fc35f34c1040ef5bc0aeb6f2d156ab7e7a53dc7dd2354e9d2b8de0ade SHA512 e72bd764354067a9ca9e3f32141cc2e2915ff80f84a8973e0cb8a12c3b8ff5b3b126fff80b9e7951c553cd93af8a78f9eda774cce7ecf08de7d5050de46ebed6 WHIRLPOOL 06b9eaedd5bcd9114590afd9746ba919f505e491dae733dc5c5e58f6e28df70578023aabb5a3a891763f0d31cd6dbaf7680891c9f0d444d37f997bcf049ce4d7
+MISC metadata.xml 251 SHA256 64aac5f4a42f3b20222048411f52dbf0c57134b8d5aecd25dee154d75d1c0b73 SHA512 2da7a6b2b1b7153b8803cc52201fa006313bf75a25f7d917f26eadd7a6426529e4b30a57c3c24cca20865d9dc4f3d56fdfa14b10254158bea2dfeb2c64fcc18c WHIRLPOOL 5fb64a7c924e2d96d98db3c80ebaa98d19bf644a2936b65d63c3642673cb259670411265eb7c2647697f09aae62d503ee21334e1f1c8aa68d85e6521cf83608f
diff --git a/media-gfx/splash-themes-livecd/files/use-new-path-for-functions.sh.patch b/media-gfx/splash-themes-livecd/files/use-new-path-for-functions.sh.patch
new file mode 100644
index 000000000000..67128fbe5393
--- /dev/null
+++ b/media-gfx/splash-themes-livecd/files/use-new-path-for-functions.sh.patch
@@ -0,0 +1,11 @@
+--- scripts/rc_init-pre.orig 2016-02-18 13:31:23.610276701 -0200
++++ scripts/rc_init-pre 2016-02-18 13:31:57.405275206 -0200
+@@ -77,7 +77,7 @@
+ return 0
+ }
+
+-[ -r /etc/init.d/functions.sh ] && . /etc/init.d/functions.sh
++[ -r /lib/gentoo/functions.sh ] && . /lib/gentoo/functions.sh
+
+ if [ -z "${1}" ]; then
+ log err "no internal runlevel provided"
diff --git a/media-gfx/splash-themes-livecd/metadata.xml b/media-gfx/splash-themes-livecd/metadata.xml
new file mode 100644
index 000000000000..767266dca141
--- /dev/null
+++ b/media-gfx/splash-themes-livecd/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 type="project">
+ <email>livecd@gentoo.org</email>
+ <name>Gentoo LiveCD Project</name>
+</maintainer>
+</pkgmetadata>
diff --git a/media-gfx/splash-themes-livecd/splash-themes-livecd-2004.3.ebuild b/media-gfx/splash-themes-livecd/splash-themes-livecd-2004.3.ebuild
new file mode 100644
index 000000000000..0c33a319051b
--- /dev/null
+++ b/media-gfx/splash-themes-livecd/splash-themes-livecd-2004.3.ebuild
@@ -0,0 +1,20 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+S="${WORKDIR}/livecd-${PV}"
+DESCRIPTION="Gentoo theme for gensplash consoles"
+HOMEPAGE="https://www.gentoo.org/"
+SRC_URI="https://dev.gentoo.org/~wolf31o2/sources/${PN}/${PF}.tar.bz2"
+
+SLOT=${PV}
+LICENSE="GPL-2"
+KEYWORDS="amd64 ~ppc x86"
+IUSE=""
+RESTRICT="binchecks strip"
+
+DEPEND="media-gfx/splashutils"
+
+src_install() {
+ dodir /etc/splash/livecd-${PV}
+ cp -r "${S}"/* "${D}"/etc/splash/livecd-${PV}
+}
diff --git a/media-gfx/splash-themes-livecd/splash-themes-livecd-2005.0.ebuild b/media-gfx/splash-themes-livecd/splash-themes-livecd-2005.0.ebuild
new file mode 100644
index 000000000000..0a81732e5410
--- /dev/null
+++ b/media-gfx/splash-themes-livecd/splash-themes-livecd-2005.0.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+MY_P="gentoo-livecd-${PV}"
+MY_REV="0.9.1"
+DESCRIPTION="Gentoo theme for gensplash consoles"
+HOMEPAGE="https://www.gentoo.org/"
+SRC_URI="https://dev.gentoo.org/~wolf31o2/sources/${PN}/${MY_P}-${MY_REV}.tar.bz2"
+
+SLOT=${PV}
+LICENSE="Artistic GPL-2 BitstreamVera"
+KEYWORDS="amd64 ~ppc x86"
+IUSE=""
+RESTRICT="binchecks strip"
+
+DEPEND=">=media-gfx/splashutils-0.9.1"
+
+S="${WORKDIR}/${MY_P}"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ sed -i -e 's-/sbin/functions.sh-/etc/init.d/functions.sh-' scripts/rc_init-pre scripts/list_svc.sh
+}
+
+src_install() {
+ dodir /etc/splash/livecd-${PV}
+ cp -r "${S}"/* "${D}"/etc/splash/livecd-${PV}
+}
diff --git a/media-gfx/splash-themes-livecd/splash-themes-livecd-2005.1.ebuild b/media-gfx/splash-themes-livecd/splash-themes-livecd-2005.1.ebuild
new file mode 100644
index 000000000000..75c895bd71a8
--- /dev/null
+++ b/media-gfx/splash-themes-livecd/splash-themes-livecd-2005.1.ebuild
@@ -0,0 +1,30 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+MY_P="gentoo-livecd-${PV}"
+MY_REV="0.9.2"
+DESCRIPTION="Gentoo theme for gensplash consoles"
+HOMEPAGE="https://www.gentoo.org/"
+SRC_URI="https://dev.gentoo.org/~wolf31o2/sources/${PN}/${MY_P}-${MY_REV}.tar.bz2"
+
+SLOT=${PV}
+LICENSE="Artistic GPL-2 BitstreamVera"
+KEYWORDS="amd64 ~ppc x86"
+IUSE=""
+RESTRICT="binchecks strip"
+
+DEPEND=">=media-gfx/splashutils-1.1.9.7"
+
+S="${WORKDIR}/${MY_P}"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ sed -i -e '/^\/bin\/umount -l "\/etc\/splash\/${SPLASH_THEME}"$/s/^\(.*\)$/\1 \&>\/dev\/null/' scripts/rc_exit-post
+ sed -i -e 's-/sbin/functions.sh-/etc/init.d/functions.sh-' scripts/rc_init-pre
+}
+
+src_install() {
+ dodir /etc/splash/livecd-${PV}
+ cp -r "${S}"/* "${D}"/etc/splash/livecd-${PV}
+}
diff --git a/media-gfx/splash-themes-livecd/splash-themes-livecd-2006.0.ebuild b/media-gfx/splash-themes-livecd/splash-themes-livecd-2006.0.ebuild
new file mode 100644
index 000000000000..f33946acddeb
--- /dev/null
+++ b/media-gfx/splash-themes-livecd/splash-themes-livecd-2006.0.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+MY_P="gentoo-livecd-${PV}"
+MY_REV="0.9.3"
+DESCRIPTION="Gentoo theme for gensplash consoles"
+HOMEPAGE="https://www.gentoo.org/"
+SRC_URI="https://dev.gentoo.org/~wolf31o2/sources/${PN}/${MY_P}-${MY_REV}.tar.bz2"
+
+SLOT=${PV}
+LICENSE="Artistic GPL-2 BitstreamVera"
+KEYWORDS="amd64 ~ppc x86"
+IUSE=""
+RESTRICT="binchecks strip"
+
+DEPEND=">=media-gfx/splashutils-1.1.9.7"
+
+S="${WORKDIR}/${MY_P}"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ sed -i -e 's-/sbin/functions.sh-/etc/init.d/functions.sh-' scripts/rc_init-pre
+}
+
+src_install() {
+ dodir /etc/splash/livecd-${PV}
+ cp -r "${S}"/* "${D}"/etc/splash/livecd-${PV}
+}
diff --git a/media-gfx/splash-themes-livecd/splash-themes-livecd-2006.1.ebuild b/media-gfx/splash-themes-livecd/splash-themes-livecd-2006.1.ebuild
new file mode 100644
index 000000000000..cce53f3873b2
--- /dev/null
+++ b/media-gfx/splash-themes-livecd/splash-themes-livecd-2006.1.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+MY_P="gentoo-livecd-${PV}"
+MY_REV="0.9.4"
+DESCRIPTION="Gentoo theme for gensplash consoles"
+HOMEPAGE="https://www.gentoo.org/"
+SRC_URI="https://dev.gentoo.org/~wolf31o2/sources/${PN}/${MY_P}-${MY_REV}.tar.bz2"
+
+SLOT=${PV}
+LICENSE="Artistic GPL-2 BitstreamVera"
+KEYWORDS="amd64 ~ppc x86"
+IUSE=""
+RESTRICT="binchecks strip"
+
+DEPEND=">=media-gfx/splashutils-1.1.9.10-r1"
+
+S="${WORKDIR}/${MY_P}"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ sed -i -e 's-/sbin/functions.sh-/etc/init.d/functions.sh-' scripts/rc_init-pre
+}
+
+src_install() {
+ dodir /etc/splash/livecd-${PV}
+ cp -r "${S}"/* "${D}"/etc/splash/livecd-${PV}
+}
diff --git a/media-gfx/splash-themes-livecd/splash-themes-livecd-2007.0-r3.ebuild b/media-gfx/splash-themes-livecd/splash-themes-livecd-2007.0-r3.ebuild
new file mode 100644
index 000000000000..874af82e6768
--- /dev/null
+++ b/media-gfx/splash-themes-livecd/splash-themes-livecd-2007.0-r3.ebuild
@@ -0,0 +1,31 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+inherit eutils
+
+MY_P="gentoo-livecd-${PV}"
+MY_REV="0.9.6"
+DESCRIPTION="Gentoo theme for gensplash consoles"
+HOMEPAGE="https://www.gentoo.org/"
+SRC_URI="mirror://gentoo/${PN}/${MY_P}-${MY_REV}.tar.bz2"
+
+SLOT=${PV}
+LICENSE="Artistic GPL-2 BitstreamVera"
+KEYWORDS="amd64 ~ppc x86"
+RESTRICT="binchecks strip"
+
+RDEPEND=">=media-gfx/splashutils-1.5.4[png]
+ sys-apps/gentoo-functions"
+DEPEND="${RDEPEND}"
+
+S="${WORKDIR}/${MY_P}"
+
+src_prepare() {
+ epatch "${FILESDIR}"/use-new-path-for-functions.sh.patch
+}
+
+src_install() {
+ dodir /etc/splash/livecd-${PV}
+ cp -r "${S}"/* "${D}"/etc/splash/livecd-${PV} || die
+}
diff --git a/media-gfx/splash-themes-livedvd/Manifest b/media-gfx/splash-themes-livedvd/Manifest
new file mode 100644
index 000000000000..12ebe17b84be
--- /dev/null
+++ b/media-gfx/splash-themes-livedvd/Manifest
@@ -0,0 +1,7 @@
+AUX use-new-path-for-functions.sh.patch 353 SHA256 d09a572cee795b585f150f06b0ed0890296f4a3e7ceba2bdbd7365dd21f64462 SHA512 5018fc07c5a7031f567185e1f15cf02a30a20cf65bb44163e0372945b2f458f811d447be2e8080ef610397ede4c0477ed70248d01e565ab82d909d045687b463 WHIRLPOOL ca7dd8e537a4e8264ea5d904312b078bb427e81235e29a80d3407d1653b6b202c07895337f2f3d5173d8d765e0e36f29bdc1a8a90b416cb14de9cc77f2acaa8e
+DIST splash-themes-livedvd-12.0.tar.bz2 5416705 SHA256 549442466cb2cb280d21c59c94d9ff3ea23e34e490f8efd3c691226b4ecde5b0 SHA512 ba0cd1cba44793a48a6aae1b91248fb699389e26d30b851ecb2d809857e0d1159c5f190c5b35390aa394cf14d5c7df39811b2ba6018ae8f10c7e886636c92686 WHIRLPOOL 3c9ba9e725be19825e7daa144d50b497daf663862e8d13d28514cda43d5eff70ce82b91b639842e4704e456d0330d49dbb032b5c081223d1108c86b3ca9e2597
+EBUILD splash-themes-livedvd-12.0-r1.ebuild 689 SHA256 ef077cbafb54a1b07e57f288ee3691dd30bb48f59e201d0e283bf5993c76de31 SHA512 dcf1ff7b3642d6a98bc293d664e032faf5d69c0af7f21646dca60381884919ae9a47bcca226cd6f4ea76e2729c02cfdbde433398658bcd1b1c0444002ab4872b WHIRLPOOL d54b69dc7e41e26a958d200b58cdbbf125fd1915c623ff29137c36e76e062d66814bfa0c787e314acf842c4562ab2f6eb8d68c9873476e2c4275650d715c11e6
+EBUILD splash-themes-livedvd-12.0-r2.ebuild 694 SHA256 175556aec83e30f1aa109b92a7eaf023ff843a83f9828b62963878588f47b1c2 SHA512 65393de608d86acd495e99e43c128e58c949a8d5b514d4d9941db283dce08855f54c87ab70f8369b5ffd96fb81297b0aa1f11b5f54b83a2ad54e2598f82c9fdb WHIRLPOOL fb5fcc6314dab36d561872d7df47b4fd69613d5d08911ba5a12912245c6193f7595b5062f1c6eafcbc6edd44bcb49b6da924f84eacbe3cc6c41a02144b14ec62
+MISC ChangeLog 2934 SHA256 f9c7289631fba45026ea42bd213202821b7e8b1c24e4471bd370b374b41ee56e SHA512 1676d33d02607ac42dcd8e7d19ab845900aa7fda7a6340715c8742d7fec69ef53ef033453e322b2937c75a0d8d1ab9581b61ef5007f8fd0d4b44d58a2e2d9339 WHIRLPOOL 230fd6f2dbef54fd3076a8d367930b3c06af5a8dd221f2758b1e5e7ba2f8e442f677c4c9f80b4938302f3b1d85725ac011ba07d6b2f18ceb9a623706c1b4631a
+MISC ChangeLog-2015 1150 SHA256 8368daadec5d110c6c3d42a226f782d23a168631fd055bb02aeaff70160fcc08 SHA512 7ec038d394d862a48a555dd65386b37a4d4339e752a7108d766e38161a4e17753a4d172cf3c2c54f753427052e97c74cb7018c3107e43b770ef3531f6e4bdd59 WHIRLPOOL c9871f0b2e2ac414204fbbd1fc4ca8da11fa33eba2b0f0973e4a89a34a8aec62c86884e03b9a0d316de7ae83db71cbd117cd50e62062ca36053ce437f0395269
+MISC metadata.xml 464 SHA256 f0b3d4068f906a77769bdec194f0fa4480e8ab2f9ee9132969e60cb970253e21 SHA512 0b843092fa149744df1ed46557ca0eb5a36a33c090868358b546066f776b08bcb11f2c6ccc6877fa2056e5f63673654bd2732ce89a6dc478549db8eabea93f7e WHIRLPOOL 32b102ad5531248d719134c50b46131ba9b23198eb34a522e91e41877dd533c6fba6c256f45de30afbf6fe3fef93bddb80d2f6d7c68ad20e1b221c9ee61eea89
diff --git a/media-gfx/splash-themes-livedvd/files/use-new-path-for-functions.sh.patch b/media-gfx/splash-themes-livedvd/files/use-new-path-for-functions.sh.patch
new file mode 100644
index 000000000000..62f269ed862f
--- /dev/null
+++ b/media-gfx/splash-themes-livedvd/files/use-new-path-for-functions.sh.patch
@@ -0,0 +1,11 @@
+--- scripts/rc_init-pre.orig 2016-02-18 13:31:23.610276701 -0200
++++ scripts/rc_init-pre 2016-02-18 13:31:57.405275206 -0200
+@@ -77,7 +77,7 @@
+ return 0
+ }
+
+-[ -r /etc/init.d/functions.sh ] && . /etc/init.d/functions.sh
++[ -r /lib/gentoo/functions.sh ] && . /lib/gentoo/functions.sh
+
+ if [ -z "${1}" ]; then
+ log err "no internal runlevel provided"
diff --git a/media-gfx/splash-themes-livedvd/metadata.xml b/media-gfx/splash-themes-livedvd/metadata.xml
new file mode 100644
index 000000000000..ea182c6e924b
--- /dev/null
+++ b/media-gfx/splash-themes-livedvd/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<longdescription lang="en">
+A collection of Gentoo themes for splashutils.
+</longdescription>
+<maintainer type="person">
+ <email>email@missionaccomplish.com</email>
+ <name>Fernando Orocu</name>
+</maintainer>
+<maintainer type="project">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+</maintainer>
+</pkgmetadata>
diff --git a/media-gfx/splash-themes-livedvd/splash-themes-livedvd-12.0-r1.ebuild b/media-gfx/splash-themes-livedvd/splash-themes-livedvd-12.0-r1.ebuild
new file mode 100644
index 000000000000..63dcf6a54071
--- /dev/null
+++ b/media-gfx/splash-themes-livedvd/splash-themes-livedvd-12.0-r1.ebuild
@@ -0,0 +1,32 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+
+inherit eutils
+
+DESCRIPTION="Gentoo theme for gensplash consoles"
+HOMEPAGE="https://www.gentoo.org/"
+SRC_URI="https://dev.gentoo.org/~tampakrap/tarballs/${P}.tar.bz2"
+
+LICENSE="Artistic GPL-2 BitstreamVera"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RESTRICT="binchecks strip"
+
+DEPEND=">=media-gfx/splashutils-1.4.1[png]"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ sed -i -e 's:/sbin/functions.sh:/etc/init.d/functions.sh:' scripts/rc_init-pre
+}
+
+src_install() {
+ dodir /etc/splash/livedvd-${PV}
+ insinto /etc/splash/livedvd-${PV}
+ doins -r *
+ insopts -m 0755
+ doins -r scripts
+}
diff --git a/media-gfx/splash-themes-livedvd/splash-themes-livedvd-12.0-r2.ebuild b/media-gfx/splash-themes-livedvd/splash-themes-livedvd-12.0-r2.ebuild
new file mode 100644
index 000000000000..bc3b40319231
--- /dev/null
+++ b/media-gfx/splash-themes-livedvd/splash-themes-livedvd-12.0-r2.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit eutils
+
+DESCRIPTION="Gentoo theme for gensplash consoles"
+HOMEPAGE="https://www.gentoo.org/"
+SRC_URI="https://dev.gentoo.org/~tampakrap/tarballs/${P}.tar.bz2"
+
+LICENSE="Artistic GPL-2 BitstreamVera"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RESTRICT="binchecks strip"
+
+DEPEND=">=media-gfx/splashutils-1.4.1[png]"
+RDEPEND="${DEPEND}
+ sys-apps/gentoo-functions"
+
+src_prepare() {
+ epatch "${FILESDIR}"/use-new-path-for-functions.sh.patch
+}
+
+src_install() {
+ dodir /etc/splash/livedvd-${PV}
+ insinto /etc/splash/livedvd-${PV}
+ doins -r *
+ insopts -m 0755
+ doins -r scripts
+}
diff --git a/media-gfx/splashutils/Manifest b/media-gfx/splashutils/Manifest
new file mode 100644
index 000000000000..2264ae5838ef
--- /dev/null
+++ b/media-gfx/splashutils/Manifest
@@ -0,0 +1,17 @@
+AUX splashutils-1.5.4.4-freetype-bz2.patch 515 SHA256 06a9f6d9d9206d09115abf3d8c86692908530f11168a51d99dd43a465e7092c0 SHA512 880cc0703de76c3c145680f1e85e461473df3dd41817757878bd18dc4c0d10484d1f93f995e6818ddcf3309e6b9febc1447ce7880006df8e08626bac5aae2e5c WHIRLPOOL 50c58afaacfd2594c1bc402c07680d742809e2af694b98acb3656f7dbc50cc85a537bec4b362c443f9dbe1054307c397cdba9613392ef6c508760d2487095265
+AUX splashutils-1.5.4.4-ft25.patch 1221 SHA256 6468265cffb4595703a83c01f5b54d7d3d389f93b395636010564db49c4e843b SHA512 5a6d80ed51c7c57ff9ab5930bdbb50d8c594076c0a8a5e72d2d1014f32d2413a2c5b366a777da2cd4292d4e8246caa05c69892930a7a17719e989edd7b749051 WHIRLPOOL 8415e49f13fd80a6beebc14d0cbb4f3a209a104f123695b34e5f746f442085f43f287b85caffb6a3ba0f0e6ce905986a62f19610b8a7c4fa356e23cbbc5434c2
+AUX splashutils-1.5.4.4-gentoo-typo-fix.patch 567 SHA256 92ee0727bfd9fe6f9565d09546ea63079467f67c2d57385713a62d0b617bb1bf SHA512 f5d5fd222b5dea9906e5a7541ad2ab1ff161061c6bb5e013929767d3f6aa9fe245092e201b8d42a086938be3320b77384301c22bc307cf7872daac33184127f2 WHIRLPOOL f971453383c1abf28c912a49c426c7da92ba6d44580981e89bedd4ef7df9940236e53842bd31ecb85c44c2ff31230569a33e7233498269aefc8caeacb84b9caa
+AUX splashutils-1.5.4.4-multi-keyboard.patch 10158 SHA256 95a0de0a666c29c7d80fe653659191770d359f62d1edac00dc3ad97ac14d6dac SHA512 71056d599f4465ef424444d717ce1597295e0228f548c69cb36ef617075af430b1ac50f5be27bca65a50ed9e7d0169ceb256dbc66cf4b635fd9f8310d32baeae WHIRLPOOL ce782d0a6a21350fd9b00792f0eb247907b3bcf900c0e5aa8f6304d4d3c05ee59f1b036d623f25262484bd8d48ddd95a5ef086644d369c6190570be8db432112
+AUX splashutils-1.5.4.4-no-la.patch 504 SHA256 acb6971f60b3029291869226d6a5f5ac89f7e8b9f4c9e5de50d457e20272a8ac SHA512 e513e0440fa3383dd368c777ac96717ffe94b8dd2b87c36d0dc0daf890b0f7082234ff5086b4c34144c0589a2c45137ec43158605ce50e58879646cd2a68e1c0 WHIRLPOOL bf33f1130826bfdf05abc7333bc78570397cc3a3b7399c9e89a9f315c4ed283b437799bb4ad80580b7acbc89af85b6164dd22a3e692760aae72b9ad18feeddae
+AUX splashutils-1.5.4.4-sys-queue.patch 233 SHA256 a3425703473d21050a142d901ee1d6114967ce91da4a2540fa6d262de191bea0 SHA512 27181754bffb312360cc5834587a6cb68154cdac3a771956f3d4165db0cd079e884a7af5ee1910003882ad7b8835f8947ba9fc7dcc14800635206ac8bd7ada76 WHIRLPOOL 3b04bc2cae8e89489204bbdd58ba87e654e54dd0c5c56afb3fb6ee7a20feaac8188176a116ec70390ede4e5faf22b25945de4a2d524b39eee821ac749d1e5ed6
+DIST freetype-2.3.12.tar.bz2 1453034 SHA256 3b96438f016a62b676c1d2089c00ca777f710d19f6aefa66ccf068d360db3e92 SHA512 becb0f138ee13181513d3f03b943f0a474e492cab151992fa78d0c84127819dc91ec6d2bd1528af7e111ab150b3a29104f2f7ab79650cebc35ce4d966b19f34b WHIRLPOOL 1a7363b8e1cc1b4597077e6cdf7e978b80cc76e1428124312d139ee81fe5247eed5ec0243352b721c28a25a179bceb901700d0766c1a5110b19f8fe53c303a89
+DIST jpegsrc.v8a.tar.gz 962018 SHA256 bf86a5eaafa79b5d60feb27bee08df2db4c9ca2fb40d453e7a2080f7663a713b SHA512 4020e82e16b99189b1a50bad18b09616775559740b94a988692aa33f9302d4b5abe3ccaa30895b49e6950fb3d9a830deeb7df750d128ec5c7e1844583db4524d WHIRLPOOL 46e0c98f30c8d975b85b8e86b69e9c5c64632f579502b1b3c54902706d7e08b86582a85b49a0d3bfffd03cd90946fbd20171324504a5ff521eb89e6ce11d568b
+DIST libpng-1.4.3.tar.bz2 658335 SHA256 2b022f39f4788505ad62a4b1f4a33286228d544719680da40f3626393ecde4a2 SHA512 aaa137ebc2312805d58caf19702d24a34ee81593d4250c4e807ce66ba7edb829926919cd0a2b0e5975421451c8eb6674798c06dbaf745175b16c9d3c92b63f61 WHIRLPOOL d383e01e6080166816991650183b47d15938aa269c0a85e234846b9c5a7ec04a1ba7620779b4ddae639ca64440772ce8dd1b3a596f6eb32124c4d6c55592fb0a
+DIST miscsplashutils-0.1.8.tar.bz2 91997 SHA256 38e8434c7266126477237c4d9e6cbeca152089ab33c14a7761089b7970f8d336 SHA512 fa017e264249feda45839030728e90c82f775354c3f2c29a88362938c4a31b19e6d61f967512305642f8b96575f4d756ba197e672a361760e40080c23ec0442a WHIRLPOOL c418ee425bf323fc0e00388be4547232207fd6cac10a2e8cafeef8c8aabcd014052307533bd015e61dc483ab45edd9fbd59a3005549b7bee4a4b90bf3297394a
+DIST splashutils-gentoo-1.0.17.tar.bz2 15814 SHA256 6877263d0b6f5a3532db0d6a531cd4d41fbc6c45a16c5d10050e9048ecc1af81 SHA512 75f1fbfdf165f571b0bf09235235827f370e1b940f1717c4faf5b223caba0b80f853a910ba492c776512aecfafa6e74fd964239bbc6cf412620143d5ffc74167 WHIRLPOOL de9e1ca86a87c169f0a2f7844ab9a68b29cc46c208daca4d13cf7d552b35c05b6e266d66724078cf1f6eea3d41496fdf4fd7b3219697b2032520ad2b9a5ec5c9
+DIST splashutils-lite-1.5.4.4.tar.bz2 441340 SHA256 bc0e22293d4550281d2289672da3acb42594c18a75b9d00ba75526e05162ec6b SHA512 1a78216a1de1fdccff514494d7301640e447c65466e1fe02428e5114485507f67fe4394094880d927d074a8ab2d9c786ba03f9fb0371eb7ab6ef4e3b01aa4613 WHIRLPOOL f861a1673fd9e1fe32e417da48be8c472c5c3cc06844eb0886a66b498ca38cb04a6e51708821eefe3e15f66004bb6a4ef76df7242643b34090035bffdf1f87d7
+DIST zlib-1.2.3.tar.bz2 425209 SHA256 e3b9950851a19904d642c4dec518623382cf4d2ac24f70a76510c944330d28ca SHA512 edae735960279d92acf58e1f4095c6392a7c2059b8f1d2c46648fc608a0fb06b392db2d073f4973f5762c034ea66596e769b95b3d26ad963a086b9b2d09825f2 WHIRLPOOL e874b123296f5d77daf60617501b30f4beebccb64b3910c2539f75f6c194a2cf4885dc7a3904bf790e1651120ec33b55c48e95970dd6bfd6c4d0a2ea48d7d0f4
+EBUILD splashutils-1.5.4.4-r7.ebuild 6878 SHA256 0232c68a43dd0d962a27717126a5febd904a900b3d263cb8b6c1274324dd0a26 SHA512 1b1e328e9b9b06b53d5e676c8dd79d339095194345f94fd135297bccde2afa5044c2a8c16b4ebdef523dce52b8a9075dceabdecc70765312b8baf959c9dd7713 WHIRLPOOL 48b46cb9d2ea5c765442a3b4ae365457093a8a21595731d95e45647ecec7b23e5c8ca9893a5df1abdfdfb1f3097907e97d01f36fbbeab0b6997b1947a7ae24dd
+MISC ChangeLog 4599 SHA256 d55ab577a099dcabafe7898a5bca7896ab0fa647fa972c8e2957b8788ae52059 SHA512 5e4109858f757431427f4f2f254067d18653d49f2cf172d547e12cd2c3016ba2f6868b2803af7efa8a3fd0b8b2abb4c47abf397139b65833dbf6c1a80df0c4e4 WHIRLPOOL 604d31a7183ee5d54e243ff62fd378433078b6b8bc8fa1f9b70596f72dd5ff9cdde8bf912050c126916ec968780d0505832dcac3bbaf36c093cea9eb8038c80a
+MISC ChangeLog-2015 41786 SHA256 9e3f486d6b536f4d3a131820e70068af371e3c9ce88b352c91be0236048f3c80 SHA512 fd5523005e869fb92978d5967faee9c477adbb9503c847d5edb5e60cf7547fefafad2360b0b1d35ee9230997ed7379816569ffbdc9255086260f18306a218171 WHIRLPOOL 607436ef9bd5896ead465273c78ab9e295bf54939c2f524c9ca77090510ce6a5a133b97ad11ac965ba899807b74ea48919567378418a2aba8ab305868a5dadef
+MISC metadata.xml 508 SHA256 1c52dae633774af39a0260d9e42f7b9bcf31922ffb223ee2a34f7077ee0d2198 SHA512 6ad59793cd6d2c3542f447cf7d9557740758d276405c48a0cedd9c8258f8f7b88d110f8339c91ab57c1140c3a4fd96a7fb02ebebd84613f7b18c672b9bc6f194 WHIRLPOOL 9088561f1b04ef0e3e1a00f785ce5bb4a4831092ff26248eace25cfe3d8ba6ca9c5be2f21ead5887fa8950e6ecce3723c3f09e5d4bf52309811adb7a3b06c5b1
diff --git a/media-gfx/splashutils/files/splashutils-1.5.4.4-freetype-bz2.patch b/media-gfx/splashutils/files/splashutils-1.5.4.4-freetype-bz2.patch
new file mode 100644
index 000000000000..3438fd523b2a
--- /dev/null
+++ b/media-gfx/splashutils/files/splashutils-1.5.4.4-freetype-bz2.patch
@@ -0,0 +1,15 @@
+=== modified file 'fbtruetype/Makefile'
+--- fbtruetype/Makefile 2011-10-01 14:10:17 +0000
++++ fbtruetype/Makefile 2011-10-01 14:15:02 +0000
+@@ -23,8 +23,8 @@
+ OBJECTS = fbtruetype.o messages.o console.o ttf.o luxisri.o
+
+ LDFLAGS += -L$(LIBDIR)
+-LIBSS = $(LIBDIR)/libfreetype.a $(LIBDIR)/libz.a -lm
+-LIBSD = -lfreetype -lm
++LIBSS = $(shell pkg-config freetype2 --libs --static) -lm
++LIBSD = $(shell pkg-config freetype2 --libs) -lm
+
+ CFLAGS += -I/usr/include/freetype2
+ COMPILE = $(CC) $(CFLAGS)
+
diff --git a/media-gfx/splashutils/files/splashutils-1.5.4.4-ft25.patch b/media-gfx/splashutils/files/splashutils-1.5.4.4-ft25.patch
new file mode 100644
index 000000000000..b5194d5499a8
--- /dev/null
+++ b/media-gfx/splashutils/files/splashutils-1.5.4.4-ft25.patch
@@ -0,0 +1,42 @@
+Gentoo-bug: https://bugs.gentoo.org/506124
+Signed-off-by: Lars Wendler (Polynomial-C)
+Modified-by: Sergey Popov (Pinkbyte)
+--- miscsplashutils-0.1.8/fbtruetype/ttf.c
++++ miscsplashutils-0.1.8/fbtruetype/ttf.c
+@@ -13,8 +13,8 @@
+ #include <ft2build.h>
+ #include FT_FREETYPE_H
+ /* #include <freetype/freetype.h> */
+-#include <freetype/ftoutln.h>
+-#include <freetype/ttnameid.h>
++#include FT_OUTLINE_H
++#include FT_TRUETYPE_IDS_H
+
+ #include "ttf.h"
+
+--- splashutils-1.5.4.4/src/ttf.c 2015-02-01 11:35:04.330595381 +0300
++++ splashutils-1.5.4.4/src/ttf.c 2015-02-01 11:35:24.287596342 +0300
+@@ -25,8 +25,8 @@
+ #include <assert.h>
+
+ #include <ft2build.h>
+-#include <freetype/ftoutln.h>
+-#include <freetype/ttnameid.h>
++#include FT_OUTLINE_H
++#include FT_TRUETYPE_IDS_H
+
+ #include "common.h"
+ #include "render.h"
+--- splashutils-1.5.4.4/src/ttf.h 2015-02-01 11:38:33.852605470 +0300
++++ splashutils-1.5.4.4/src/ttf.h 2015-02-01 11:38:52.504606368 +0300
+@@ -1,8 +1,8 @@
+ #ifndef _TTF_H
+ #define _TTF_H
+ #include <ft2build.h>
+-#include <freetype/ftoutln.h>
+-#include <freetype/ttnameid.h>
++#include FT_OUTLINE_H
++#include FT_TRUETYPE_IDS_H
+
+ #define CACHED_METRICS 0x10
+ #define CACHED_BITMAP 0x01
diff --git a/media-gfx/splashutils/files/splashutils-1.5.4.4-gentoo-typo-fix.patch b/media-gfx/splashutils/files/splashutils-1.5.4.4-gentoo-typo-fix.patch
new file mode 100644
index 000000000000..4b8d51375e71
--- /dev/null
+++ b/media-gfx/splashutils/files/splashutils-1.5.4.4-gentoo-typo-fix.patch
@@ -0,0 +1,19 @@
+commit 74dda8291efae78f00bb781148c8fd4fccaeb764
+Author: Michał Januszewski <spock@gentoo.org>
+Date: Tue Jun 14 23:23:33 2011 +0200
+
+ Fix typo in the Gentoo initscript.
+
+diff --git a/gentoo/init-fbcondecor b/gentoo/init-fbcondecor
+index b66f40a..ce921b6 100755
+--- a/gentoo/init-fbcondecor
++++ b/gentoo/init-fbcondecor
+@@ -12,7 +12,7 @@ start() {
+ splash_setup
+
+ if [ -z "${FBCONDECOR_TTYS}" ]; then
+- FBCONDECOR_TTYS=$(seq 1 "${rc_tty_number:-${RC_TTY_NUMBER}:-12}")
++ FBCONDECOR_TTYS=$(seq 1 "${rc_tty_number:-${RC_TTY_NUMBER:-12}}")
+ fi
+
+ local err=0
diff --git a/media-gfx/splashutils/files/splashutils-1.5.4.4-multi-keyboard.patch b/media-gfx/splashutils/files/splashutils-1.5.4.4-multi-keyboard.patch
new file mode 100644
index 000000000000..23f15fd8f9c5
--- /dev/null
+++ b/media-gfx/splashutils/files/splashutils-1.5.4.4-multi-keyboard.patch
@@ -0,0 +1,381 @@
+diff -ru a/core/src/common.h b/core/src/common.h
+--- a/core/src/common.h 2013-01-11 06:35:35.000000000 +0200
++++ b/core/src/common.h 2013-01-11 06:34:08.000000000 +0200
+@@ -34,6 +34,10 @@
+ #define PATH_PROC FBSPLASH_DIR"/proc"
+ #endif
+
++/* Maximum number of keyboard connected to a machine.
++ * The number is big (8) to be on the safe side */
++#define MAX_KBDS 8
++
+ /* Useful short-named types */
+ typedef u_int8_t u8;
+ typedef u_int16_t u16;
+diff -ru a/core/src/daemon.c b/core/src/daemon.c
+--- a/core/src/daemon.c 2013-01-11 06:35:35.000000000 +0200
++++ b/core/src/daemon.c 2013-01-11 06:34:08.000000000 +0200
+@@ -20,6 +20,7 @@
+ #include <sys/ioctl.h>
+ #include <sys/wait.h>
+ #include <sys/mman.h>
++#include <sys/select.h>
+ #include <pthread.h>
+ #include <errno.h>
+ #include <dirent.h>
+@@ -29,6 +30,8 @@
+ #include "common.h"
+ #include "daemon.h"
+
++#define EV_BUF_SIZE 8
++
+ /* Threading structures */
+ pthread_mutex_t mtx_tty = PTHREAD_MUTEX_INITIALIZER;
+ pthread_mutex_t mtx_paint = PTHREAD_MUTEX_INITIALIZER;
+@@ -41,7 +44,8 @@
+ int ctty = CTTY_VERBOSE;
+
+ /* File descriptors */
+-int fd_evdev = -1;
++int fd_evdevs[MAX_KBDS];
++int evdev_count = 0;
+ #ifdef CONFIG_GPM
+ int fd_gpm = -1;
+ #endif
+@@ -51,7 +55,6 @@
+
+ /* Misc settings */
+ char *notify[2];
+-char *evdev = NULL;
+
+ /* Service list */
+ list svcs = { NULL, NULL };
+@@ -400,56 +403,83 @@
+ }
+ }
+
++__u16 get_ev_key_pressed(int fd_evdev, int ev_buf_size,
++ struct input_event *ev_buf) {
++ size_t rb;
++ int i;
++ rb = read(fd_evdev, ev_buf, sizeof(struct input_event) * ev_buf_size);
++ if (rb < (int) sizeof(struct input_event))
++ return 0;
++
++ for (i = 0; i < (int) (rb / sizeof(struct input_event)); i++) {
++ if (ev_buf[i].type != EV_KEY || ev_buf[i].value != 0)
++ continue;
++ return ev_buf[i].code;
++ }
++}
++
+ /*
+ * Event device monitor thread.
+ */
+ void* thf_switch_evdev(void *unused)
+ {
+- int i, h, oldstate;
+- size_t rb;
+- struct input_event ev[8];
++ int i, h, oldstate, nfds, retval, fd_evdev;
++ fd_set rfds;
++ struct input_event ev_buf[EV_BUF_SIZE];
++ __u16 key_pressed = 0;
+
+ while (1) {
+- rb = read(fd_evdev, ev, sizeof(struct input_event)*8);
+- if (rb < (int) sizeof(struct input_event))
+- continue;
++ nfds = 0, fd_evdev = -1;
++ FD_ZERO(&rfds);
++ for (i = 0;i < evdev_count;i++) {
++ FD_SET(fd_evdevs[i], &rfds);
++ nfds = max(nfds, fd_evdevs[i]);
++ }
+
+- for (i = 0; i < (int) (rb / sizeof(struct input_event)); i++) {
+- if (ev[i].type != EV_KEY || ev[i].value != 0)
+- continue;
++ nfds++;
+
+- switch (ev[i].code) {
+- case KEY_F2:
+- pthread_setcancelstate(PTHREAD_CANCEL_DISABLE, &oldstate);
+- pthread_mutex_lock(&mtx_paint);
+- if (ctty == CTTY_SILENT) {
+- h = config.tty_v;
+- } else {
+- h = config.tty_s;
++ retval = select(nfds, &rfds, NULL, NULL, NULL);
++ if (retval == -1)
++ perror("select()");
++ else if (retval) {
++ for (i = 0;i < evdev_count;i++) {
++ if (FD_ISSET(fd_evdevs[i], &rfds)) {
++ fd_evdev = fd_evdevs[i];
++ break;
+ }
+- pthread_mutex_unlock(&mtx_paint);
+- pthread_setcancelstate(oldstate, NULL);
++ }
++ key_pressed = get_ev_key_pressed(fd_evdev, EV_BUF_SIZE, ev_buf);
++ if (key_pressed == -1)
++ continue;
++ switch (key_pressed) {
++ case KEY_F2:
++ pthread_setcancelstate(PTHREAD_CANCEL_DISABLE, &oldstate);
++ pthread_mutex_lock(&mtx_paint);
++ h = (ctty == CTTY_SILENT) ? config.tty_v : config.tty_s;
++ pthread_mutex_unlock(&mtx_paint);
++ pthread_setcancelstate(oldstate, NULL);
++
++ /* Switch to the new tty. This ioctl has to be done on
++ * the silent tty. Sometimes init will mess with the
++ * settings of the verbose console which will prevent
++ * console switching from working properly.
++ *
++ * Don't worry about fd_tty[config.tty_s]
++ * not being protected by a mutex --
++ * this thread is always killed before any changes
++ * are made to fd_tty[config.tty_s].
++ */
++ ioctl(fd_tty[config.tty_s], VT_ACTIVATE, h);
++ break;
+
+- /* Switch to the new tty. This ioctl has to be done on
+- * the silent tty. Sometimes init will mess with the
+- * settings of the verbose console which will prevent
+- * console switching from working properly.
+- *
+- * Don't worry about fd_tty[config.tty_s] not being protected by a
+- * mutex -- this thread is always killed before any changes
+- * are made to fd_tty[config.tty_s].
+- */
+- ioctl(fd_tty[config.tty_s], VT_ACTIVATE, h);
+- break;
+-
+- case KEY_F3:
+- config.textbox_visible = !config.textbox_visible;
+- invalidate_textbox(theme, config.textbox_visible);
+- cmd_paint(NULL);
+- break;
++ case KEY_F3:
++ config.textbox_visible = !config.textbox_visible;
++ invalidate_textbox(theme, config.textbox_visible);
++ cmd_paint(NULL);
++ break;
+ }
+- }
+- }
++ } /* end of else if (retval) */
++ } /* end of while(1) */
+
+ pthread_exit(NULL);
+ }
+@@ -519,7 +549,7 @@
+
+ /* Do we have to start a monitor thread? */
+ if (update & UPD_MON) {
+- if (fd_evdev != -1) {
++ if (evdev_count >= 0) {
+ if (pthread_create(&th_switchmon, NULL, &thf_switch_evdev, NULL)) {
+ iprint(MSG_ERROR, "Evdev monitor thread creation failed.\n");
+ exit(3);
+diff -ru a/core/src/daemon.h b/core/src/daemon.h
+--- a/core/src/daemon.h 2013-01-11 06:35:35.000000000 +0200
++++ b/core/src/daemon.h 2013-01-11 06:34:08.000000000 +0200
+@@ -40,13 +40,13 @@
+ extern int fd_tty_s, fd_tty1, fd_tty0;
+
+ /*
+- * Event device on which the daemon listens for F2 keypresses.
+- * The proper device has to be detected by an external program and
++ * Event devices on which the daemon listens for F2 keypresses.
++ * The proper devices have to be detected by an external program and
+ * then enabled by sending an appropriate command to the splash
+ * daemon.
+ */
+-extern int fd_evdev;
+-extern char *evdev;
++extern int fd_evdevs[];
++extern int evdev_count;
+
+ #ifdef CONFIG_GPM
+ #include <gpm.h>
+diff -ru a/core/src/daemon_cmd.c b/core/src/daemon_cmd.c
+--- a/core/src/daemon_cmd.c 2013-01-11 06:35:35.000000000 +0200
++++ b/core/src/daemon_cmd.c 2013-01-11 06:34:08.000000000 +0200
+@@ -239,18 +239,35 @@
+ */
+ int cmd_set_event_dev(void **args)
+ {
+- if (evdev)
+- free(evdev);
+-
+- evdev = strdup(args[0]);
++ char *evdevs;
++ char *evdev;
++ int i, j, fd_evdev = -1;
+
+ pthread_cancel(th_switchmon);
++ for (i = 0;i < evdev_count;i++) {
++ close(fd_evdevs[i]);
++ }
++ evdevs = strdup(args[1]);
++ evdev_count = *(int*)args[0];
++ j = 0;
++ for (i = 0;i < evdev_count;i++, evdevs = NULL) {
++ evdev = strtok(evdevs, ",");
++ fd_evdev = open(evdev, O_RDONLY);
++ if (fd_evdev != -1) {
++ fd_evdevs[j] = fd_evdev;
++ j++;
++ } else {
++ perror("failed to open event device");
++ }
++ }
++ if (j == 0) { /* all input devices failed to open */
++ evdev_count = -1;
++ free(evdevs);
++ return -1;
++ }
+
+- if (fd_evdev != -1)
+- close(fd_evdev);
+-
+- fd_evdev = open(evdev, O_RDONLY);
+-
++ evdev_count = j;
++ free(evdevs);
+ switchmon_start(UPD_MON, config.tty_s);
+
+ return 0;
+@@ -524,8 +541,8 @@
+
+ { .cmd = "set event dev",
+ .handler = cmd_set_event_dev,
+- .args = 1,
+- .specs = "s"
++ .args = 2,
++ .specs = "ds"
+ },
+
+ { .cmd = "set message",
+@@ -628,7 +645,7 @@
+ continue;
+
+ for (j = 0; j < known_cmds[i].args; j++) {
+- for (; buf[k] == ' '; buf[k] = 0, k++);
++ for (; buf[k] == ' '; buf[k] = '\0', k++);
+ if (!buf[k]) {
+ args[j] = NULL;
+ continue;
+diff -ru a/core/src/libfbsplash.c b/core/src/libfbsplash.c
+--- a/core/src/libfbsplash.c 2013-01-11 06:35:35.000000000 +0200
++++ b/core/src/libfbsplash.c 2013-01-11 06:34:08.000000000 +0200
+@@ -588,6 +588,8 @@
+ return -1;
+ }
+
++#define EVDV_BUF_LEN 128
++
+ /**
+ * Try to set the event device for the splash daemon.
+ *
+@@ -595,10 +597,14 @@
+ */
+ int fbsplash_set_evdev(void)
+ {
+- char buf[128];
++ char buf[EVDV_BUF_LEN];
++ char evdev_devs[EVDV_BUF_LEN * MAX_KBDS];
+ FILE *fp;
+ int i, j;
+-
++ int kbd_count;
++ int max_chars, chars_left, dev_path_len;
++ char dev_path[] = PATH_DEV "/input/";
++ dev_path_len = strlen(dev_path);
+ char *evdev_cmds[] = {
+ "/bin/grep -Hsi keyboard " PATH_SYS "/class/input/input*/name | /bin/sed -e 's#.*input\\([0-9]*\\)/name.*#event\\1#'",
+ "/bin/grep -Hsi keyboard " PATH_SYS "/class/input/event*/device/driver/description | /bin/grep -o 'event[0-9]\\+'",
+@@ -608,22 +614,43 @@
+
+ /* Try to activate the event device interface so that F2 can
+ * be used to switch from verbose to silent. */
+- buf[0] = 0;
+- for (i = 0; i < sizeof(evdev_cmds)/sizeof(char*); i++) {
++ buf[0] = '\0';
++ kbd_count = 0;
++ max_chars = sizeof(evdev_devs) / sizeof(char*);
++ chars_left = max_chars - 1;
++ evdev_devs[0] = '\0';
++ for (i = 0; i < sizeof(evdev_cmds) / sizeof(char*); i++) {
+ fp = popen(evdev_cmds[i], "r");
+ if (fp) {
+- fgets(buf, 128, fp);
+- if ((j = strlen(buf)) > 0) {
+- if (buf[j-1] == '\n')
+- buf[j-1] = 0;
+- break;
++ while (fgets(buf, 128, fp) && kbd_count < MAX_KBDS) {
++ if ((j = strlen(buf)) > 0) {
++ if (buf[j-1] == '\n')
++ buf[j-1] = ',';
++ if (chars_left < (j + dev_path_len)) {
++ break;
++ }
++ kbd_count++;
++ strncat(evdev_devs, dev_path, chars_left);
++ chars_left -= dev_path_len;
++ strncat(evdev_devs, buf, chars_left);
++ chars_left -= j;
++ }
++ }
++ /* replace the last ',' with '\n' */
++ if (chars_left > 0 && evdev_devs[0] != '\0') {
++ j = strlen(evdev_devs);
++ if (j > 2) {
++ evdev_devs[j - 1] = '\n';
++ }
+ }
+ pclose(fp);
+ }
++ if (kbd_count > 0)
++ break;
+ }
+
+- if (buf[0] != 0) {
+- fbsplash_send("set event dev " PATH_DEV "/input/%s\n", buf);
++ if (evdev_devs[0] != '\0') {
++ fbsplash_send("set event dev %d %s", kbd_count, evdev_devs);
+ return 0;
+ } else {
+ return -1;
+@@ -661,6 +688,8 @@
+ return 0;
+ }
+
++#define MAX_CMD 2048
++
+ /**
+ * Send stuff to the splash daemon using the splash FIFO.
+ *
+@@ -668,7 +697,7 @@
+ */
+ int fbsplash_send(const char *fmt, ...)
+ {
+- char cmd[256];
++ char cmd[MAX_CMD];
+ va_list ap;
+
+ if (!fp_fifo) {
+@@ -690,7 +719,7 @@
+ }
+
+ va_start(ap, fmt);
+- vsnprintf(cmd, 256, fmt, ap);
++ vsnprintf(cmd, MAX_CMD, fmt, ap);
+ va_end(ap);
+
+ fprintf(fp_fifo, cmd);
diff --git a/media-gfx/splashutils/files/splashutils-1.5.4.4-no-la.patch b/media-gfx/splashutils/files/splashutils-1.5.4.4-no-la.patch
new file mode 100644
index 000000000000..0dae2589b7fb
--- /dev/null
+++ b/media-gfx/splashutils/files/splashutils-1.5.4.4-no-la.patch
@@ -0,0 +1,12 @@
+--- splashutils-1.5.4.4/src/Makefile.am.orig 2011-06-13 01:43:39.000000000 +0400
++++ splashutils-1.5.4.4/src/Makefile.am 2015-08-09 23:37:23.191078543 +0300
+@@ -119,7 +119,7 @@
+ fbsplash.h
+ libfbsplashrender_la_CFLAGS = $(AM_CFLAGS)
+ libfbsplashrender_la_LDFLAGS = $(AM_LDFLAGS) -version-info $(libfbsplashrender_version)
+-libfbsplashrender_la_LIBADD = libfbsplash.la
++libfbsplashrender_la_LIBADD =
+
+ libfbsplashrender_la_CFLAGS += $(JPEG_CFLAGS)
+ libfbsplashrender_la_LIBADD += $(JPEG_LIBS)
+
diff --git a/media-gfx/splashutils/files/splashutils-1.5.4.4-sys-queue.patch b/media-gfx/splashutils/files/splashutils-1.5.4.4-sys-queue.patch
new file mode 100644
index 000000000000..8ede7322c0d1
--- /dev/null
+++ b/media-gfx/splashutils/files/splashutils-1.5.4.4-sys-queue.patch
@@ -0,0 +1,8 @@
+--- splash.c 2011-06-13 04:45:59.000000000 +0700
++++ splash.c 2014-11-14 20:04:43.000000000 +0700
+@@ -21,4 +21,5 @@
+ #include <sys/wait.h>
+ #include <sys/ioctl.h>
++#include <sys/queue.h>
+ #include <linux/kd.h>
+ #include <linux/fb.h>
diff --git a/media-gfx/splashutils/metadata.xml b/media-gfx/splashutils/metadata.xml
new file mode 100644
index 000000000000..384553ab7506
--- /dev/null
+++ b/media-gfx/splashutils/metadata.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>asaf.gery@gmail.com</email>
+ </maintainer>
+ <maintainer type="project">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+ </maintainer>
+ <use>
+ <flag name="fbcondecor">
+ Support for the fbcondecor kernel patch.
+ </flag>
+ </use>
+ <upstream>
+ <remote-id type="sourceforge">freetype</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/media-gfx/splashutils/splashutils-1.5.4.4-r7.ebuild b/media-gfx/splashutils/splashutils-1.5.4.4-r7.ebuild
new file mode 100644
index 000000000000..06730c581400
--- /dev/null
+++ b/media-gfx/splashutils/splashutils-1.5.4.4-r7.ebuild
@@ -0,0 +1,239 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit autotools eutils multilib toolchain-funcs
+
+MISCSPLASH="miscsplashutils-0.1.8"
+GENTOOSPLASH="splashutils-gentoo-1.0.17"
+V_JPEG="8a"
+V_PNG="1.4.3"
+V_ZLIB="1.2.3"
+V_FT="2.3.12"
+
+ZLIBSRC="libs/zlib-${V_ZLIB}"
+LPNGSRC="libs/libpng-${V_PNG}"
+JPEGSRC="libs/jpeg-${V_JPEG}"
+FT2SRC="libs/freetype-${V_FT}"
+
+RESTRICT="test"
+IUSE="hardened +png +truetype gpm fbcondecor"
+
+DESCRIPTION="Framebuffer splash utilities"
+HOMEPAGE="https://sourceforge.net/projects/fbsplash.berlios/"
+SRC_URI="
+ mirror://sourceforge/fbsplash.berlios/${PN}-lite-${PV}.tar.bz2
+ mirror://sourceforge/fbsplash.berlios/${GENTOOSPLASH}.tar.bz2
+ mirror://gentoo/${MISCSPLASH}.tar.bz2
+ mirror://sourceforge/libpng/libpng-${V_PNG}.tar.bz2
+ ftp://ftp.uu.net/graphics/jpeg/jpegsrc.v${V_JPEG}.tar.gz
+ mirror://sourceforge/freetype/freetype-${V_FT}.tar.bz2
+ http://www.gzip.org/zlib/zlib-${V_ZLIB}.tar.bz2
+"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc x86"
+
+RDEPEND="
+ gpm? ( sys-libs/gpm[static-libs(+)] )
+ truetype? (
+ >=media-libs/freetype-2[static-libs]
+ app-arch/bzip2[static-libs(+)]
+ sys-libs/zlib[static-libs(+)]
+ )
+ png? (
+ >=media-libs/libpng-1.4.3[static-libs]
+ sys-libs/zlib[static-libs(+)]
+ )
+ virtual/jpeg:0[static-libs]
+ app-arch/cpio
+ media-gfx/fbgrab
+ !sys-apps/lcdsplash
+ sys-apps/openrc"
+
+DEPEND="${RDEPEND}
+ >=dev-libs/klibc-1.5
+ virtual/pkgconfig
+"
+
+S="${WORKDIR}/${P/_/-}"
+SG="${WORKDIR}/${GENTOOSPLASH}"
+SM="${WORKDIR}/${MISCSPLASH}"
+
+pkg_setup() {
+ if use hardened; then
+ ewarn "Due to problems with klibc, it is currently impossible to compile splashutils"
+ ewarn "with 'hardened' GCC flags. As a workaround, the package will be compiled with"
+ ewarn "-fno-stack-protector. Hardened GCC features will not be used while building"
+ ewarn "the splash kernel helper."
+ fi
+}
+
+src_prepare() {
+ mv "${WORKDIR}"/{libpng-${V_PNG},jpeg-${V_JPEG},zlib-${V_ZLIB},freetype-${V_FT}} "${S}/libs"
+
+ # We need to delete the Makefile and let it be rebuilt when splashutils
+ # is being configured. Either that, or we end up with a segfaulting kernel
+ # helper.
+ rm "${S}/libs/zlib-${V_ZLIB}/Makefile"
+
+ cd "${SG}"
+ epatch "${FILESDIR}/splashutils-1.5.4.4-gentoo-typo-fix.patch"
+ epatch "${FILESDIR}/splashutils-1.5.4.4-sys-queue.patch"
+
+ if use truetype ; then
+ cd "${SM}"
+ epatch "${FILESDIR}/splashutils-1.5.4.4-freetype-bz2.patch"
+ cd "${WORKDIR}"
+ epatch "${FILESDIR}/splashutils-1.5.4.4-ft25.patch"
+ fi
+
+ cd "${S}"
+ ln -sf "${S}/src" "${WORKDIR}/core"
+
+ #epatch "${FILESDIR}/${P}-bzip2.patch"
+ epatch "${FILESDIR}/${P}-multi-keyboard.patch"
+ # Bug #557126
+ epatch "${FILESDIR}/${P}-no-la.patch"
+
+ if ! tc-is-cross-compiler && \
+ has_version "sys-devel/gcc:$(gcc-version)[vanilla]" ; then
+ ewarn "Your GCC was built with the 'vanilla' flag set. If you can't compile"
+ ewarn "splashutils, you're on your own, as this configuration is not supported."
+ else
+ # This should make splashutils compile on systems with hardened GCC.
+ sed -e 's@K_CFLAGS =@K_CFLAGS = -fno-stack-protector@' -i "${S}/Makefile.in"
+ fi
+
+ if ! use truetype ; then
+ sed -i -e 's/fbtruetype kbd/kbd/' "${SM}/Makefile"
+ fi
+
+ # Latest version of klibc defined its own version of ferror, so there is
+ # not need for the hack in klibc_compat.h
+ if has_version ">=dev-libs/klibc-1.5.20"; then
+ echo > "libs/klibc_compat.h"
+ fi
+
+ rm -f m4/*
+ epatch_user
+ export PKG_CONFIG="pkg-config --static"
+ eautoreconf
+}
+
+src_configure() {
+ tc-export CC
+ cd "${SM}"
+ emake CC="${CC}" LIB=$(get_libdir) STRIP=true
+
+ cd "${S}"
+ econf \
+ $(use_with png) \
+ --without-mng \
+ $(use_with gpm) \
+ $(use_with truetype ttf) \
+ $(use_with truetype ttf-kernel) \
+ $(use_enable fbcondecor) \
+ --docdir=/usr/share/doc/${PF} \
+ --with-freetype2-src=${FT2SRC} \
+ --with-jpeg-src=${JPEGSRC} \
+ --with-lpng-src=${LPNGSRC} \
+ --with-zlib-src=${ZLIBSRC} \
+ --with-essential-libdir=/$(get_libdir)
+}
+
+src_compile() {
+ emake CC="${CC}" STRIP="true"
+
+ cd "${SG}"
+ emake LIB=$(get_libdir)
+}
+
+src_install() {
+ local LIB=$(get_libdir)
+
+ cd "${SM}"
+ emake DESTDIR="${D}" LIB=${LIB} install
+
+ cd "${S}"
+ emake DESTDIR="${D}" STRIP="true" install
+
+ mv "${D}"/usr/${LIB}/libfbsplash.so* "${D}"/${LIB}/
+ gen_usr_ldscript libfbsplash.so
+
+ echo 'CONFIG_PROTECT_MASK="/etc/splash"' > 99splash
+ doenvd 99splash
+
+ if use fbcondecor ; then
+ newinitd "${SG}"/init-fbcondecor fbcondecor
+ newconfd "${SG}"/fbcondecor.conf fbcondecor
+ fi
+ newconfd "${SG}"/splash.conf splash
+
+ insinto /usr/share/${PN}
+ doins "${SG}"/initrd.splash
+
+ insinto /etc/splash
+ doins "${SM}"/fbtruetype/luxisri.ttf
+
+ cd "${SG}"
+ make DESTDIR="${D}" LIB=${LIB} install
+ prune_libtool_files
+
+ sed -i -e "s#/lib/splash#/${LIB}/splash#" "${D}"/sbin/splash-functions.sh
+ keepdir /${LIB}/splash/{tmp,cache,bin,sys}
+ dosym /${LIB}/splash/bin/fbres /sbin/fbres
+}
+
+pkg_preinst() {
+ has_version "<${CATEGORY}/${PN}-1.0"
+ previous_less_than_1_0=$?
+
+ has_version "<${CATEGORY}/${PN}-1.5.3"
+ previous_less_than_1_5_3=$?
+}
+
+pkg_postinst() {
+ if has_version sys-fs/devfsd || ! has_version virtual/udev ; then
+ elog "This package has been designed with udev in mind. Other solutions, such as"
+ elog "devfs or a static /dev tree might work, but are generally discouraged and"
+ elog "not supported. If you decide to switch to udev, you might want to have a"
+ elog "look at 'The Gentoo udev Guide', which can be found at"
+ elog " https://wiki.gentoo.org/wiki/Udev"
+ elog ""
+ fi
+
+ if [[ $previous_less_than_1_0 = 0 ]] ; then
+ elog "Since you are upgrading from a pre-1.0 version, please make sure that you"
+ elog "rebuild your initrds. You can use the splash_geninitramfs script to do that."
+ elog ""
+ fi
+
+ if [[ $previous_less_than_1_5_3 = 0 ]] && ! use fbcondecor ; then
+ elog "Starting with splashutils-1.5.3, support for the fbcondecor kernel patch"
+ elog "is optional and dependent on the the 'fbcondecor' USE flag. If you wish"
+ elog "to use fbcondecor, run:"
+ elog " echo \"media-gfx/splashutils fbcondecor\" >> /etc/portage/package.use"
+ elog "and re-emerge splashutils."
+ fi
+
+ if ! test -f /proc/cmdline ||
+ ! egrep -q '(console=tty1|CONSOLE=/dev/tty1)' /proc/cmdline ; then
+ elog "It is required that you add 'console=tty1' to your kernel"
+ elog "command line parameters."
+ elog ""
+ elog "After these modifications, the relevant part of the kernel command"
+ elog "line might look like:"
+ elog " splash=silent,fadein,theme:emergence console=tty1"
+ elog ""
+ fi
+
+ if ! has_version 'media-gfx/splash-themes-livecd' &&
+ ! has_version 'media-gfx/splash-themes-gentoo'; then
+ elog "The sample Gentoo themes (emergence, gentoo) have been removed from the"
+ elog "core splashutils package. To get some themes you might want to emerge:"
+ elog " media-gfx/splash-themes-livecd"
+ elog " media-gfx/splash-themes-gentoo"
+ fi
+}
diff --git a/media-gfx/springgraph/Manifest b/media-gfx/springgraph/Manifest
new file mode 100644
index 000000000000..18e2e62fd164
--- /dev/null
+++ b/media-gfx/springgraph/Manifest
@@ -0,0 +1,6 @@
+DIST springgraph.pl.88 29818 SHA256 7e9eac0301d93a0f3e63e7a2ebd305434195313497e81574fced9ce3114ccd3f SHA512 51d7a840778478498c23d61af7e0ef0bd795953110850d0a1ec403146ce843c6eb5efa5c0c55d84a9995aecadf7657bc253dbf5a72354207d38a6e269b2f1325 WHIRLPOOL 7c968624da6a68c783a3d45895e4b79a6fb03290e8cc7d037c573e136eeee4c42a806cb34c45215ebb9c6b379c8ec9a20115ca4e1027f778689e3ea0f92b7c4f
+DIST springgraph_0.82-5.diff.gz 3110 SHA256 6085f6037b6c7a4c2b1ad4449e1c6b68502e40a172b1c7626d939811e3e3d22f SHA512 dcfc214c116cc8040b7eedf9a4864e84bc7c0b1f036fafb6322d9433564762135d1e845bb75891a380907059f7ebba7ed72efafb733a83a517f14af327d32e9b WHIRLPOOL 7b6d6078de17b7bcd9df7032fca26cc1e7a75c389e223a8924720600488b0ff46259b631fb7b1c5b4302b6f792ae55f25498820ce71daaa4902ecbf2c655ddbe
+EBUILD springgraph-88.ebuild 886 SHA256 e7317a370d2c7ebd2466a17cb862f42dea0a8525a2001dff0375326419ac7648 SHA512 596febcf313fe66ff26e3a1165550c7346f26cbc295b1f9f017cdbc53ee1bbcf6b2554d4a90b4986293e20c70eaaa019c74c3026859710342e4dc6f5859067fa WHIRLPOOL 14cdadb71e43f7ab0846a956c88fec5cb18a0223342a74cde29cd370d928f1718c2b09a783f9c4c08b9ae66f3cf9af19dcbcda899e3ae2ae1d57a5c1cd1a5dbb
+MISC ChangeLog 2183 SHA256 50e18c912208c1a8e359185ba8b74620d750f9be0ec8dee4869cd983228cd9db SHA512 795c123b12cd3f7203181175230847cfa199a7b83324970fa11909bbbe6bbff08f27a2e18a5287ffebfb1653ae8d46377787cbe2dc5aa0e82d9760d137d89ae3 WHIRLPOOL e6d95fb9ad88eeac35f4a416c0b29aa397bef4590eb47384c57eea4d29c705eea57bb1c6859f6216835a3b20bab9ea729afc66349f8c09063640469ceb5080e4
+MISC ChangeLog-2015 2611 SHA256 e61caada75f4e8219cfd31d61927e0ecd92e7852624fb7b1f21c50e73aab6077 SHA512 a137c6c677c493221b4f02e77c4bdf846118c967b168a594aea60c5e06919adda9b01b107577c09b34b14e6d49cc36fa77f873cec454c1af17ce74001ca625f6 WHIRLPOOL 55da18244ac90f353f347fc2f11ec0ef77e472ba8b84808490356fbdd1c37537267e0ca81e3d0f49f3624c51cb6cf072fecd691b9fc1d8a318b9adc04b35b056
+MISC metadata.xml 709 SHA256 10e7b93c78167673b208047969a3a9bf179de050ca66a61dfc4ae89f94b08bd8 SHA512 f0dca73c130603698093f900d702c6d9d8fbc6bdde5cb95369d24f0dca7b5f35ff68d773b8056b5cf7f0f8f3bd41b5a55bbd68e4323f32d4d6a74eaaba4d72f5 WHIRLPOOL ba13ea13772664a3f90fffdea3dd6cdce6d75a70b7a9e65996d9874416ca58f41ed8ec1e75cdd139c9352c6d53481c8327672b8c57d1ce87842d5222073acca0
diff --git a/media-gfx/springgraph/metadata.xml b/media-gfx/springgraph/metadata.xml
new file mode 100644
index 000000000000..e88f112c87c5
--- /dev/null
+++ b/media-gfx/springgraph/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="person">
+ <email>robbat2@gentoo.org</email>
+</maintainer>
+<longdescription> Springgraph will read in a .dot file description of a graph,
+ which, for each node, specifies its name and which other nodes it is
+ connected to, and then renders a graph. Each node is drawn as an ellipse,
+ and each connection is drawn as an arrow. The node placement is a result of
+ all of the nodes moving away from each other, while all nodes which are
+ connected move toward each other. This movement is repeated until it
+ stabilizes.</longdescription>
+</pkgmetadata>
diff --git a/media-gfx/springgraph/springgraph-88.ebuild b/media-gfx/springgraph/springgraph-88.ebuild
new file mode 100644
index 000000000000..5b76e3db5e66
--- /dev/null
+++ b/media-gfx/springgraph/springgraph-88.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+inherit eutils
+
+DESCRIPTION="Generate spring graphs from graphviz input files"
+HOMEPAGE="http://www.chaosreigns.com/code/springgraph"
+MY_PV="0.${PV}"
+MY_P="${PN}_${MY_PV}"
+SRC_FILE="${MY_P}.orig.tar.gz"
+SRC_DEBIAN_PATCH="${PN}_0.82-5.diff.gz"
+SRC_URI="http://www.chaosreigns.com/code/springgraph/dl/${PN}.pl.${PV}
+ mirror://debian/pool/main/${PN:0:1}/${PN}/${SRC_DEBIAN_PATCH}"
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 hppa ia64 ~mips ppc ~ppc64 sparc x86"
+IUSE=""
+DEPEND=""
+RDEPEND="dev-perl/GD"
+S="${WORKDIR}/${PN}-${MY_PV}"
+
+src_unpack() {
+ mkdir -p ${S}
+ cp ${DISTDIR}/${PN}.pl.${PV} ${S}/${PN}
+ EPATCH_OPTS="-p1 -d ${S}" epatch ${DISTDIR}/${SRC_DEBIAN_PATCH}
+}
+
+src_compile() {
+ # nothing to do
+ :
+}
+
+src_install() {
+ into /usr
+ dobin ${PN}
+ doman debian/${PN}.1
+}
diff --git a/media-gfx/structure-synth/Manifest b/media-gfx/structure-synth/Manifest
new file mode 100644
index 000000000000..37ae58c20306
--- /dev/null
+++ b/media-gfx/structure-synth/Manifest
@@ -0,0 +1,5 @@
+DIST StructureSynth-Source-v1.5.0.zip 1922583 SHA256 6b713da8e3e96ebbee047279712a9956a0cfb3475be52fcd57291c437aad2ace SHA512 50fbd2838ccc9978e9646d3b0a45bcad92cf64008db205fa171b2ea90ca6327981de6bce9d0eec61a670be8c883f03731c265c730a1218c5ffc9882d53ff7289 WHIRLPOOL 2fce63fdc1ae6e020b386e00f9136f24a28bc7f611ffe0a791fad559f900699d6863459cd559d6803bac31c2462852bf717c74fa9cc6ab0473c06a8cb5cf6839
+EBUILD structure-synth-1.5.0.ebuild 884 SHA256 acfe16f6fc0c16f8f9ff7b5b5a5ab84b251cb648f1e007d20ac86964bf2a5961 SHA512 7a37113e860a89dfd0bdf4beaaa68b017d6c9290ae1a8e68243d3a948bb189aee8606d03005ca71ebdf181e358954b734930335f8cb4fecb41fd1ee402eab828 WHIRLPOOL 32a9e2b8e31931e9c0fe7325e7cd42fa3f2b50fbeb411ec65c18c339799e3c1aecb61060c7ed3adb51e7590fa41e30e5f119f9d694d3b8495510d68b350118c2
+MISC ChangeLog 2452 SHA256 3731fff9be83256de276710dc58f30df0a6db9f78e1b1d978e000450794e344b SHA512 a61d0e597ca55a1a5a7c3dc39fe899960cf04ac12d5647606bc70439b70c2ab7838cf62a669ffaf144877d98ed792d8af122970cfa7b0b3054200438897d6680 WHIRLPOOL b405fc0ce0583380cb0768d7196e02b8962783197e1d8fb8114abcdea2173085a2d1e84f61873fc55436ee7bf6319533a85001048e617d4508c8d323079a872a
+MISC ChangeLog-2015 507 SHA256 3f2c8d7bd0d6edc74c4e7297e8c363f927244741120be85304acf084587aff50 SHA512 08ae746d162068c5f37bd8a6b0eabef9e217aabf9b0401fcfe7730231d8c8b76a90a57263fd8637e48b7164aff8723a7370c92a4afe99c4b0652f65a37b72886 WHIRLPOOL c3a99ba254592e237bd08ee233c10448b8f0f0498a28599dc16c55e4a36c5dcc401356133e9685d97757551afa71b1806900979056f6bccb698882e9eb34bb1f
+MISC metadata.xml 353 SHA256 9f929b6f7b7c9f3e151f2c0761204b6c215fa2801f727fff401e23c527449d78 SHA512 8986f6fad8fbb9e07ace8336ff6bff63220f61dc97dbe63c91df44aa4fa368f0099e35798d81bdb0f8fc5eade7c2077a7d8c5227f1c1da6cf8d9b518b459a060 WHIRLPOOL bf80e3bc6ad818a5b9f2b8c4a41617e0814cd7fbb4e8fe18c8e46d546d02815338f1ab1812bcbbfe7804abcfea98483515463a19cc32aab3004097a387fc4632
diff --git a/media-gfx/structure-synth/metadata.xml b/media-gfx/structure-synth/metadata.xml
new file mode 100644
index 000000000000..66e0f549e615
--- /dev/null
+++ b/media-gfx/structure-synth/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="sourceforge">structuresynth</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/media-gfx/structure-synth/structure-synth-1.5.0.ebuild b/media-gfx/structure-synth/structure-synth-1.5.0.ebuild
new file mode 100644
index 000000000000..0974d6a6c10d
--- /dev/null
+++ b/media-gfx/structure-synth/structure-synth-1.5.0.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+
+inherit eutils qt4-r2
+
+MY_P="StructureSynth-Source-v${PV}"
+DESCRIPTION="A program to generate 3D structures by specifying a design grammar"
+HOMEPAGE="http://structuresynth.sourceforge.net/"
+SRC_URI="mirror://sourceforge/structuresynth/${MY_P}.zip"
+
+LICENSE="|| ( LGPL-2.1 GPL-3 )"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="virtual/opengl
+ dev-qt/qtcore:4
+ dev-qt/qtgui:4
+ dev-qt/qtopengl:4
+ dev-qt/qtscript:4"
+DEPEND="${RDEPEND}
+ app-arch/unzip"
+
+S="${WORKDIR}/Structure Synth Source Code"
+
+src_prepare() {
+ qmake -project -o ${PN}.pro -after "CONFIG+=opengl" \
+ -after "QT+=xml opengl script" || die "qmake failed"
+}
+
+src_install() {
+ dobin ${PN}
+ dodoc roadmap.txt changelog.txt bugs.txt
+ domenu ${PN}.desktop
+ newicon images/structuresynth.png ${PN}.png
+}
diff --git a/media-gfx/svg2rlg/Manifest b/media-gfx/svg2rlg/Manifest
new file mode 100644
index 000000000000..6da5751bbee7
--- /dev/null
+++ b/media-gfx/svg2rlg/Manifest
@@ -0,0 +1,8 @@
+AUX svg2rlg-issue-3.patch 507 SHA256 5bdbc6ce22256fa4e9f632168205bd70f2afab0ef44af994df9ad7da72b4067a SHA512 aa7c02fe9afaebb8e56397bd2f609d83e772fa53f60088b12212eaa3934a10a1ea452f20f407a9134e87c0133dddd17c7bea8c6f03d7d3eef2bfaeb6430d2f8c WHIRLPOOL 3b4d8586c1caf2a11dffb0d20f4422dad2a2a4013873a16bb4d754080305613a1f2861684e0db43a012d9baeb5c91b1ca023dcc9b732f5bd35778fb8726c2082
+AUX svg2rlg-issue-6.patch 1221 SHA256 5f147fd0a5d780f46e18f34e99fffadf5a1d1e2104333678907ace38801400a5 SHA512 500b929de726cb728ea10f295c7e15845046d0d3d70067c2ef54cca1466f456cb682797ddf99e0ae62ec68ba125183900763e82a2889f8941b507490a197ed88 WHIRLPOOL 7cbe58269d9847d4c46729e34a7bdf14e8cdd4861dc9d3507f88a6147459ec604ca5ea1b580f51578104c2d4e76f2e18cd8be07a523d682bf81bad3ea3d16c54
+AUX svg2rlg-issue-7.patch 473 SHA256 75eb6c5e39ff551ba24355543ede1446f0d83d12b02df091c03bb8eab609a5a9 SHA512 42be68efd3aedb00d1461dfa99de7aebf9477a531a491676cc189a7299e206650df9a9bd51d27c3a2cf6e761f8892c5b61577eed1b232f5109374df32329d3e4 WHIRLPOOL a0d1310962e0a8b9de79ad31e42750a5f6e29e5e6c3cd39f78242188fec6d0217a7ce1579d62768264f0c79383c800935536ef352cacdebbeaea193b108a27af
+DIST svg2rlg-0.3.tar.gz 490908 SHA256 05db4480b90e912e08727d4cb24385fe33e8436def079b8f149b61a350638bee SHA512 44efebe7d978a46ab26b4bc332ad08db9236a86b160d73fc1fdc2b54c44bb2604147ae458eea1fe81c579c7f94e39869459567a6b6b3a551d6db6132816c4723 WHIRLPOOL 257bd5c50f86578b75b510c9ebc78d32155d73d321e40c83c64ddbe644d37c7a49d28660f0d7a509caaa1760f7715e405cc197eb4ef4b43f5d05fc9445625799
+EBUILD svg2rlg-0.3.ebuild 806 SHA256 bed83b04a5387142c80071803ce7356a74bafb521f73ea8bb1f308f519e1d06e SHA512 b7e1b0662cdbc32b179daf16f62244c93d65ea356f2604c900517fbe55284fc2f8dd4a3e0e3da649a1a7841e7e9854d0950c9be8c262e2d3f753aa6be7691fea WHIRLPOOL 2eed6449ee0f5bf1a38820de41d71090a8717bd337393171ab7f38bb06ab82c0d1e4d263648bbf2ed2ba5c7e9c105e650089cd35c3ebb56049fab0cd45d50cbc
+MISC ChangeLog 3388 SHA256 86d896e4273b833011404ded683513b0ed9470afc367c6fb02fa28d03da7d56e SHA512 4f3c5349cffa712c1f3a7ebf389fd45e5187be5c25c74a4672c3d939e69a581277d1ec2115d28ea89a3c0cf6332cbf1c4f811f3f2059ac0640d308ba8bc1c78c WHIRLPOOL fc1d3f17224d6e75b4091b2dd11dae0968532a36fa4f01661794a1ac746492f24915cca922d52d62a1b12033b54af1de1cab44785a2f720800e435b01ab34807
+MISC ChangeLog-2015 1277 SHA256 7c1508aaa044ced095cbdbbfb588b895ad9a08672195fe31bd0212d8a4facbdd SHA512 555f3c78ea7034f7739080a46f84b6b3a5d7dffd03e5412e50c3841112f23d0234cf25de4e6f49216c906ca4f569d33e36e5a74e45b22327ef7f5c083809b307 WHIRLPOOL 701f549fe57ee0c87365b3d982ed9fe23c535c1a518b4a85742389f2c50aae77d33181127283d490d5ef9254e64043b6759b5aa9279495f6665f642d0f405889
+MISC metadata.xml 371 SHA256 9d55da5c4d80e3f182c8df7dd111b1f2380b63193100f27afab5f49860c4993e SHA512 1d0eee581b8e4d17ebfea5a3bed36317ebd37bde175791616311f36834c6105d7c4aebddfa7fa6fa54a9cdebd5a1450757411eec9923810510abf89b1544a0ea WHIRLPOOL d114c5aa74ee56b92a7003c454ffa9f018eb707c3b37ccaaa6c663d5fd4f245e3a48f53a433132c30457d9917cc83f0c1e05aa82f9577861e026ddb829cf940e
diff --git a/media-gfx/svg2rlg/files/svg2rlg-issue-3.patch b/media-gfx/svg2rlg/files/svg2rlg-issue-3.patch
new file mode 100644
index 000000000000..df70bf345aa8
--- /dev/null
+++ b/media-gfx/svg2rlg/files/svg2rlg-issue-3.patch
@@ -0,0 +1,19 @@
+commit e5aa6784a10717641bc5b6d9d77a5029f815654a
+Author: yac <yac@blesmrt.net>
+Date: Wed May 8 04:59:17 2013 +0200
+
+ fix #3
+
+ remove windows only function which is useless anyway
+
+diff --git a/svg2rlg.py b/svg2rlg.py
+index 1c5f80c..2b35c62 100644
+--- a/svg2rlg.py
++++ b/svg2rlg.py
+@@ -1574,5 +1574,3 @@ if __name__ == "__main__":
+
+ drawing = svg2rlg(source)
+ drawing.save(formats=['pdf'],outDir='.',fnRoot=name)
+-
+- os.startfile(name + '.pdf')
+\ No newline at end of file
diff --git a/media-gfx/svg2rlg/files/svg2rlg-issue-6.patch b/media-gfx/svg2rlg/files/svg2rlg-issue-6.patch
new file mode 100644
index 000000000000..6ca750e79193
--- /dev/null
+++ b/media-gfx/svg2rlg/files/svg2rlg-issue-6.patch
@@ -0,0 +1,47 @@
+commit e42661b9cd6d7b71ce5e7674ac8eff25c74db07a
+Author: yac <yac@blesmrt.net>
+Date: Wed May 8 05:00:32 2013 +0200
+
+ use entry_point fixes #6
+
+diff --git a/setup.py b/setup.py
+index 9e00fba..512fa79 100644
+--- a/setup.py
++++ b/setup.py
+@@ -1,6 +1,6 @@
+ #!/usr/bin/python
+ # -*- coding: utf-8 -*-
+-from distutils.core import setup
++from setuptools import setup
+
+ setup(
+ name = 'svg2rlg',
+@@ -12,6 +12,8 @@ setup(
+ url = 'http://code.google.com/p/svg2rlg/',
+ download_url = 'http://pypi.python.org/pypi/svg2rlg/',
+ requires = ['reportlab'],
++ entry_points = {
++ 'console_scripts': ['svg2rlg = svg2rlg:main']},
+
+ classifiers=[
+ 'Environment :: Console',
+@@ -30,4 +32,4 @@ The authors motivation was to have a more robust handling of
+ SVG files in the **rst2pdf** tool. Specific to be able to handle
+ the quirks needed to include SVG export from matplotlib.
+ '''
+-)
+\ No newline at end of file
++)
+diff --git a/svg2rlg.py b/svg2rlg.py
+index 2b35c62..cc812b2 100644
+--- a/svg2rlg.py
++++ b/svg2rlg.py
+@@ -1562,7 +1562,7 @@ def svg2rlg(filename):
+
+ return renderer.render(xml)
+
+-if __name__ == "__main__":
++def main():
+ import sys
+ import os
+
diff --git a/media-gfx/svg2rlg/files/svg2rlg-issue-7.patch b/media-gfx/svg2rlg/files/svg2rlg-issue-7.patch
new file mode 100644
index 000000000000..8145f416f804
--- /dev/null
+++ b/media-gfx/svg2rlg/files/svg2rlg-issue-7.patch
@@ -0,0 +1,16 @@
+commit c30b4f90cac69934761e44bf59a8ba8a3827d647
+Author: yac <yac@blesmrt.net>
+Date: Wed May 8 05:44:00 2013 +0200
+
+ fix #7
+
+diff --git a/svg2rlg.py b/svg2rlg.py
+index cc812b2..80d72de 100644
+--- a/svg2rlg.py
++++ b/svg2rlg.py
+@@ -1573,4 +1573,4 @@ def main():
+ name, ext = os.path.splitext(filename)
+
+ drawing = svg2rlg(source)
+- drawing.save(formats=['pdf'],outDir='.',fnRoot=name)
++ drawing.save(formats=['pdf'],outDir=os.getcwd(),fnRoot=name)
diff --git a/media-gfx/svg2rlg/metadata.xml b/media-gfx/svg2rlg/metadata.xml
new file mode 100644
index 000000000000..9563deaff36d
--- /dev/null
+++ b/media-gfx/svg2rlg/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <!-- maintainer-needed -->
+ <longdescription lang="en">
+ The tool can be used as a console application to convert SVG to PDF
+ files.
+ </longdescription>
+ <upstream>
+ <remote-id type="pypi">svg2rlg</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/media-gfx/svg2rlg/svg2rlg-0.3.ebuild b/media-gfx/svg2rlg/svg2rlg-0.3.ebuild
new file mode 100644
index 000000000000..5375f967966c
--- /dev/null
+++ b/media-gfx/svg2rlg/svg2rlg-0.3.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+PYTHON_COMPAT=( python2_7 )
+
+inherit distutils-r1
+
+DESCRIPTION="python tool to convert SVG files to reportlab graphics"
+HOMEPAGE="https://code.google.com/p/svg2rlg/"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="alpha amd64 arm hppa ppc ppc64 sparc x86"
+IUSE=""
+
+DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
+RDEPEND="${DEPEND}
+ dev-python/reportlab[${PYTHON_USEDEP}]"
+
+PATCHES=(
+ "${FILESDIR}/${PN}-issue-3.patch"
+ "${FILESDIR}/${PN}-issue-6.patch"
+ "${FILESDIR}/${PN}-issue-7.patch"
+)
+
+python_test() {
+ ${EPYTHON} test_svg2rlg.py
+}
+
+python_prepare_all() {
+ find -name '*.py' -exec sed -i 's:\r::' {} + || die
+
+ distutils-r1_python_prepare_all
+}
diff --git a/media-gfx/swftools/Manifest b/media-gfx/swftools/Manifest
new file mode 100644
index 000000000000..d6495c93d85a
--- /dev/null
+++ b/media-gfx/swftools/Manifest
@@ -0,0 +1,9 @@
+AUX swftools-0.9.2_general.patch 1747 SHA256 593d5b4c480b6203bd3d5a875b1e5bdb8efa6038df7c1999cc665a9e76737608 SHA512 c6874f0a12939f67f93a1c7615e3dfe5ecdfadffe1bb9f790be44815b4329758566e8a10eb7d4ed6757580f4c8c0251ced12908a1555c500efb41727ef05307c WHIRLPOOL 0d164c592ddc8285a3a203d753b305c530f7b012428823ab5cdc56ece9550db7cc1e7884b96a6da70bd491e9744fd777e63e23bebbc71a613e706ca69a17307b
+AUX swftools-0.9.2_giflib.patch 2687 SHA256 f78e68d7ecf09169df43ae6fe6c7092e84d578ba4199c7f463250e1d38bde7c0 SHA512 88f8bf4d75578656ff37498cdfb4c577dda85f192222b749708dabffc27314605ca930aa6a8686e2205f0dd81f5b53988432685430ac0f8f15ac538658e6a03c WHIRLPOOL a60f0f6244f804a0c732fdc9dc927473436237f6870c215c77aaf2740ee9510c061c9177ddd4f5ccec42c298a85ad193590c5fb748ea260aa20377b655c53a98
+AUX swftools-0.9.2_giflib5.patch 678 SHA256 a6ec1f3413e386d38189ab2486354216b2cbed111c86281e6d18c1760b8854b0 SHA512 91a6bc2dd57aec2979b9b7eada5990b8dfa68748acf6d2c4f58c379e0312a9581637c0dfd0899107ba3805e72f34c6652fe4e59f07629a457534ee5d93663800 WHIRLPOOL b375c7303cbc9bfffd648639a3e6ae4ce92a3c849e7a72f7823d04186bd55b9c27bf916449609350405a510e604ef472e886bc38bfb9d577bbcd54b4dcd1751f
+AUX swftools-0.9.2_nopdf.patch 2366 SHA256 5a5326f28647a98cd472e64c7a613ce65a76a0af89fbf8ee7d5be7f52e1fa2a7 SHA512 aaecc86d3cea1b97d748959fdf00c4249891bc3ff4d668e7d7a2ec5277e53cc9bda9281a2de065c9395aab49175f5438822d82641a24768997ec48cd4bcd213b WHIRLPOOL 4f5f32e0f3c3239750b091271111aec1c2b732b251dfa0a71dcaf761cdf8baff5dcd5509607b3f4130a21da1d452755065b60fa96e05d41158506c8fba39d216
+DIST swftools-0.9.2.tar.gz 2675939 SHA256 bf6891bfc6bf535a1a99a485478f7896ebacbe3bbf545ba551298080a26f01f1 SHA512 91bbd48914f9a8a1cdf85532b371721b01982c5f88648b908fbe99fbf4e17e9893ce575e4fd699927e9bc1c79d846f6bcd4f1d868578fb17403467cc1e28259b WHIRLPOOL a0c4699db82f488e464ad2246840de616595025e0f5f35880db2972b438deb503a5a702f911dd997e85e3ccc61e90515391090b5ec7289d1370f35bf00e36bf3
+EBUILD swftools-0.9.2-r1.ebuild 998 SHA256 e1d449b16d52a2646e5767f8184d887f1d63294b1a4164ea9253d13fcb68e5fc SHA512 f76750fefac4b480fd43131e1f4577c171fd8e3b11b6f056c95c8e588428149deaf9f9b43eec614d648ee49a2eb6eb61ab7dc9f34b748c41e34991eada7fdfbb WHIRLPOOL b326e744b81f23eaf7753e6d0734f0a1543e68d700e990985268279f81dc70754f5e3b6bb6a70ddb09ab7c4aa5cdbd00165992ddba86e842b51d5f0df0609835
+MISC ChangeLog 2924 SHA256 4e67773e299d09fb6b246d36c40b8395a41337d98080f9ffa2517a4a0afde54e SHA512 6eb247cd633334dd281841b9f679ef034817577ccb54d8e18a9d76266dfdc7f428991f25ac3a41b86d8dffde1c9fd7f5a6069b85adcf853e4b7db06646fcf99d WHIRLPOOL 2e67723a077dbfd72ed898a5aa2859728492a4f3bdd729e6963988769693362a9c447e371bea182d109df4e2c9b537705a163c06ac49f3a6b2d04b61caa57763
+MISC ChangeLog-2015 1221 SHA256 b2aeb11370d714c25b135dc1c81ef2e48844c797592393424afa285500088e3e SHA512 9e0052c2ee25cc398be7f2e0def888f323bceb6df8ddd4deee5a98955a9c0859e69efd738811ffd43a5a035235646e0e1a10dc4d5601833f58633db52cd14158 WHIRLPOOL 3d8df3887f01e15e79338ae79eb056c36c3000a79b6f11fa797347d70ab2f5eafceb87c2d9db82a2eded6084702642db6affcbc85197627ce2e0323e08daaab2
+MISC metadata.xml 373 SHA256 cb51cb89c0b29b601dfd56dc3ff61aae52f40cec32a7a54ca274c574820c1fca SHA512 3c13254770c4b250796162893d0fa4b3ae78993a371db8cf927ff5e469acf394085c65a03975c84575ea2302ed99f7a6dea649a83bccaf1bde68338dbba7148c WHIRLPOOL 6adacd3337b9cfa950c31e72d0e082282e89368850fdab22e6c25b225fec82be4d4903912cc162754234f7bea836ee2b53974a7e0db8612cf25664c2c4ef3755
diff --git a/media-gfx/swftools/files/swftools-0.9.2_general.patch b/media-gfx/swftools/files/swftools-0.9.2_general.patch
new file mode 100644
index 000000000000..f49fcb0d2f64
--- /dev/null
+++ b/media-gfx/swftools/files/swftools-0.9.2_general.patch
@@ -0,0 +1,28 @@
+diff -urB swftools-0.9.2.old/src/png2swf.c swftools-0.9.2.jo/src/png2swf.c
+--- swftools-0.9.2.old/src/png2swf.c 2012-04-08 19:25:26.000000000 +0200
++++ swftools-0.9.2.jo/src/png2swf.c 2012-04-11 23:29:08.569700175 +0200
+@@ -777,7 +777,7 @@
+ printf("-q , --quiet Omit normal log messages, only log errors\n");
+ printf("-C , --cgi For use as CGI- prepend http header, write to stdout\n");
+ printf("-V , --version Print version information and exit\n");
+- printf("-s , --scale <percent> Scale image to <percent>% size.\n");
++ printf("-s , --scale <percent> Scale image to <percent>%% size.\n");
+ printf("\n");
+ }
+
+diff -urB swftools-0.9.2.old/swfs/Makefile.in swftools-0.9.2.jo/swfs/Makefile.in
+--- swftools-0.9.2.old/swfs/Makefile.in 2012-04-08 19:25:26.000000000 +0200
++++ swftools-0.9.2.jo/swfs/Makefile.in 2012-04-11 23:29:08.573699972 +0200
+@@ -41,10 +41,8 @@
+ $(INSTALL_DATA) ./PreLoaderTemplate.swf $(pkgdatadir)/swfs/PreLoaderTemplate.swf
+ $(INSTALL_DATA) ./tessel_loader.swf $(pkgdatadir)/swfs/tessel_loader.swf
+ $(INSTALL_DATA) ./swft_loader.swf $(pkgdatadir)/swfs/swft_loader.swf
+- rm -f $(pkgdatadir)/swfs/default_viewer.swf -o -L $(pkgdatadir)/swfs/default_viewer.swf
+- $(LN_S) $(pkgdatadir)/swfs/simple_viewer.swf $(pkgdatadir)/swfs/default_viewer.swf
+- rm -f $(pkgdatadir)/swfs/default_loader.swf -o -L $(pkgdatadir)/swfs/default_loader.swf
+- $(LN_S) $(pkgdatadir)/swfs/tessel_loader.swf $(pkgdatadir)/swfs/default_loader.swf
++ cd $(pkgdatadir)/swfs; ${LN_S} simple_viewer.swf default_viewer.swf
++ cd $(pkgdatadir)/swfs; ${LN_S} tessel_loader.swf default_loader.swf
+
+ uninstall:
+ $(UNINSTALL_DATA) $(pkgdatadir)/swfs/simple_viewer.swf
diff --git a/media-gfx/swftools/files/swftools-0.9.2_giflib.patch b/media-gfx/swftools/files/swftools-0.9.2_giflib.patch
new file mode 100644
index 000000000000..913b5e3b08d1
--- /dev/null
+++ b/media-gfx/swftools/files/swftools-0.9.2_giflib.patch
@@ -0,0 +1,89 @@
+From 05c1df6a6da28734533722dc0ac99ea5b206a492 Mon Sep 17 00:00:00 2001
+From: Matthias Kramm <kramm@quiss.org>
+Date: Sat, 6 Jul 2013 12:09:53 -0700
+Subject: [PATCH] applied giflib patch from Jan Engelhardt
+
+---
+ src/gif2swf.c | 28 ++++++++++++++++++++++++----
+ 1 file changed, 24 insertions(+), 4 deletions(-)
+
+diff --git a/src/gif2swf.c b/src/gif2swf.c
+index 2359da5..5e52ea8 100644
+--- a/src/gif2swf.c
++++ b/src/gif2swf.c
+@@ -222,6 +222,7 @@ TAG *MovieAddFrame(SWF * swf, TAG * t, char *sname, int id, int imgidx)
+
+ GifFileType *gft;
+ FILE *fi;
++ int ret;
+
+ if ((fi = fopen(sname, "rb")) == NULL) {
+ if (VERBOSE(1))
+@@ -230,13 +231,24 @@ TAG *MovieAddFrame(SWF * swf, TAG * t, char *sname, int id, int imgidx)
+ }
+ fclose(fi);
+
+- if ((gft = DGifOpenFileName(sname)) == NULL) {
++#if defined(GIFLIB_MAJOR) && GIFLIB_MAJOR >= 5
++ gft = DGifOpenFileName(sname, NULL);
++#else
++ gft = DGifOpenFileName(sname);
++#endif
++ if (gft == NULL) {
+ fprintf(stderr, "%s is not a GIF file!\n", sname);
+ return t;
+ }
+
+- if (DGifSlurp(gft) != GIF_OK) {
++ if ((ret = DGifSlurp(gft)) != GIF_OK) {
++#if defined(GIFLIB_MAJOR) && GIFLIB_MAJOR == 4 && GIFLIB_MINOR >= 2
++ fprintf(stderr, "GIF-LIB: %s\n", GifErrorString());
++#elif defined(GIFLIB_MAJOR) && GIFLIB_MAJOR >= 5
++ fprintf(stderr, "GIF-LIB: %s\n", GifErrorString(ret));
++#else
+ PrintGifError();
++#endif
+ return t;
+ }
+
+@@ -465,6 +475,7 @@ int CheckInputFile(char *fname, char **realname)
+ FILE *fi;
+ char *s = malloc(strlen(fname) + 5);
+ GifFileType *gft;
++ int ret;
+
+ if (!s)
+ exit(2);
+@@ -488,7 +499,12 @@ int CheckInputFile(char *fname, char **realname)
+ }
+ fclose(fi);
+
+- if ((gft = DGifOpenFileName(s)) == NULL) {
++#if defined(GIFLIB_MAJOR) && GIFLIB_MAJOR >= 5
++ gft = DGifOpenFileName(s, NULL);
++#else
++ gft = DGifOpenFileName(s);
++#endif
++ if (gft == NULL) {
+ fprintf(stderr, "%s is not a GIF file!\n", fname);
+ return -1;
+ }
+@@ -498,8 +514,14 @@ int CheckInputFile(char *fname, char **realname)
+ if (global.max_image_height < gft->SHeight)
+ global.max_image_height = gft->SHeight;
+
+- if (DGifSlurp(gft) != GIF_OK) {
++ if ((ret = DGifSlurp(gft)) != GIF_OK) {
++#if defined(GIFLIB_MAJOR) && GIFLIB_MAJOR == 4 && GIFLIB_MINOR >= 2
++ fprintf(stderr, "GIF-LIB: %s\n", GifErrorString());
++#elif defined(GIFLIB_MAJOR) && GIFLIB_MAJOR >= 5
++ fprintf(stderr, "GIF-LIB: %s\n", GifErrorString(ret));
++#else
+ PrintGifError();
++#endif
+ return -1;
+ }
+ // After DGifSlurp() call, gft->ImageCount become available
+--
+1.8.4
+
diff --git a/media-gfx/swftools/files/swftools-0.9.2_giflib5.patch b/media-gfx/swftools/files/swftools-0.9.2_giflib5.patch
new file mode 100644
index 000000000000..6450f827b87b
--- /dev/null
+++ b/media-gfx/swftools/files/swftools-0.9.2_giflib5.patch
@@ -0,0 +1,26 @@
+--- swftools-0.9.2.orig/src/gif2swf.c 2016-02-16 16:15:39.697992195 -0500
++++ swftools-0.9.2/src/gif2swf.c 2016-02-16 16:25:37.047992256 -0500
+@@ -467,7 +467,11 @@
+
+ free(pal);
+ free(imagedata);
++#if defined(GIFLIB_MAJOR) && GIFLIB_MAJOR == 5 && GIFLIB_MINOR >= 1
++ DGifCloseFile(gft, D_GIF_SUCCEEDED);
++#else
+ DGifCloseFile(gft);
++#endif
+
+ return t;
+ }
+@@ -542,7 +546,11 @@
+ fprintf(stderr, "frame: %u, delay: %.3f sec\n", i + 1, getGifDelayTime(gft, i) / 100.0);
+ }
+
++#if defined(GIFLIB_MAJOR) && GIFLIB_MAJOR == 5 && GIFLIB_MINOR >= 1
++ DGifCloseFile(gft, D_GIF_SUCCEEDED);
++#else
+ DGifCloseFile(gft);
++#endif
+
+ return 0;
+ }
diff --git a/media-gfx/swftools/files/swftools-0.9.2_nopdf.patch b/media-gfx/swftools/files/swftools-0.9.2_nopdf.patch
new file mode 100644
index 000000000000..9dc6c2ac2560
--- /dev/null
+++ b/media-gfx/swftools/files/swftools-0.9.2_nopdf.patch
@@ -0,0 +1,40 @@
+diff -urB swftools-0.9.2.old/lib/Makefile.in swftools-0.9.2.jo/lib/Makefile.in
+--- swftools-0.9.2.old/lib/Makefile.in 2011-10-07 05:35:18.000000000 +0200
++++ swftools-0.9.2.jo/lib/Makefile.in 2012-04-11 23:33:53.299308801 +0200
+@@ -3,7 +3,8 @@
+ top_srcdir = @top_srcdir@
+ include ../Makefile.common
+
+-all: librfxswf$(A) libgfxpdf$(A) libbase$(A) libgfx$(A) libgfxswf$(A) libocr$(A)
++#all: librfxswf$(A) libgfxpdf$(A) libbase$(A) libgfx$(A) libgfxswf$(A) libocr$(A)
++all: librfxswf$(A) libbase$(A) libgfx$(A) libgfxswf$(A) libocr$(A)
+
+ lame_objects = lame/psymodel.$(O) lame/fft.$(O) lame/newmdct.$(O) lame/quantize.$(O) lame/takehiro.$(O) lame/reservoir.$(O) lame/quantize_pvt.$(O) lame/vbrquantize.$(O) lame/encoder.$(O) lame/id3tag.$(O) lame/version.$(O) lame/tables.$(O) lame/util.$(O) lame/bitstream.$(O) lame/set_get.$(O) lame/VbrTag.$(O) lame/lame.$(O)
+ lame_in_source = @lame_in_source@
+diff -urB swftools-0.9.2.old/Makefile.in swftools-0.9.2.jo/Makefile.in
+--- swftools-0.9.2.old/Makefile.in 2012-04-08 19:25:26.000000000 +0200
++++ swftools-0.9.2.jo/Makefile.in 2012-04-11 23:33:53.299308801 +0200
+@@ -8,8 +8,8 @@
+ cd m4;$(MAKE) $@
+ @echo making $@ in lib...
+ cd lib;$(MAKE) $@
+- @echo making $@ in lib/pdf...
+- cd lib/pdf;$(MAKE) $@
++# @echo making $@ in lib/pdf...
++# cd lib/pdf;$(MAKE) $@
+ @echo making $@ in lib...
+ cd lib;$(MAKE) $@
+ @echo making $@ in lib/python...
+diff -urB swftools-0.9.2.old/src/Makefile.in swftools-0.9.2.jo/src/Makefile.in
+--- swftools-0.9.2.old/src/Makefile.in 2011-10-07 05:20:17.000000000 +0200
++++ swftools-0.9.2.jo/src/Makefile.in 2012-04-11 23:33:53.299308801 +0200
+@@ -3,7 +3,8 @@
+ top_srcdir = @top_srcdir@
+ include ../Makefile.common
+
+-install_programs = wav2swf$(E) @PNG2SWF@ swfcombine$(E) swfstrings$(E) swfextract$(E) swfdump$(E) swfc$(E) @JPEG2SWF@ @GIF2SWF@ swfbbox$(E) font2swf$(E) swfrender$(E) as3compile$(E) @PDF2SWF@ @PDF2PDF@
++#install_programs = wav2swf$(E) @PNG2SWF@ swfcombine$(E) swfstrings$(E) swfextract$(E) swfdump$(E) swfc$(E) @JPEG2SWF@ @GIF2SWF@ swfbbox$(E) font2swf$(E) swfrender$(E) as3compile$(E) @PDF2SWF@ @PDF2PDF@
++install_programs = wav2swf$(E) @PNG2SWF@ swfcombine$(E) swfstrings$(E) swfextract$(E) swfdump$(E) swfc$(E) @JPEG2SWF@ @GIF2SWF@ swfbbox$(E) font2swf$(E) swfrender$(E) as3compile$(E) @PDF2PDF@
+ programs = $(install_programs) swfbytes$(E) ttftool$(E)
+
+ all: $(programs)
diff --git a/media-gfx/swftools/metadata.xml b/media-gfx/swftools/metadata.xml
new file mode 100644
index 000000000000..60b965ace907
--- /dev/null
+++ b/media-gfx/swftools/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="person">
+ <email>dblaci@dblaci.hu</email>
+ <description>Please assign bugs</description>
+</maintainer>
+<maintainer type="project">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+</maintainer>
+</pkgmetadata>
diff --git a/media-gfx/swftools/swftools-0.9.2-r1.ebuild b/media-gfx/swftools/swftools-0.9.2-r1.ebuild
new file mode 100644
index 000000000000..de698a91aa5b
--- /dev/null
+++ b/media-gfx/swftools/swftools-0.9.2-r1.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils
+
+DESCRIPTION="SWF Tools is a collection of SWF manipulation and generation utilities"
+HOMEPAGE="http://www.swftools.org/"
+SRC_URI="http://www.swftools.org/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~hppa ~ppc ~sparc ~x86"
+IUSE=""
+
+RDEPEND="
+ app-text/poppler
+ media-libs/freetype:2
+ media-libs/giflib:0=
+ >=media-libs/t1lib-1.3.1:5
+ virtual/jpeg:0
+"
+DEPEND="${RDEPEND}
+ !<media-libs/ming-0.4.0_rc2
+"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}_nopdf.patch
+ epatch "${FILESDIR}"/${P}_general.patch
+ epatch "${FILESDIR}"/${P}_giflib.patch
+ epatch "${FILESDIR}"/${P}_giflib5.patch
+}
+
+src_configure() {
+ econf --enable-poppler
+ # disable the python interface; there's no configure switch; bug 118242
+ echo "all install uninstall clean:" > lib/python/Makefile
+}
+
+src_compile() {
+ emake FLAGS="${CFLAGS}"
+}
+
+src_install() {
+ einstall
+ dodoc AUTHORS ChangeLog
+}
diff --git a/media-gfx/sxiv/Manifest b/media-gfx/sxiv/Manifest
new file mode 100644
index 000000000000..6475c6fb3ace
--- /dev/null
+++ b/media-gfx/sxiv/Manifest
@@ -0,0 +1,7 @@
+DIST sxiv-1.3.2.tar.gz 46560 SHA256 9f5368de8f0f57e78ebe02cb531a31107a993f2769cec51bcc8d70f5c668b653 SHA512 3bcf67a778a3e40cb6ae6b6fcc685cd57e303265df34c8a56d6ebb8ad0237e7136e738c44fee5c5504c73e4722d017f1e746691fac482568b2a960931f1ecdd5 WHIRLPOOL 8b02d693cbe8be31f81de8a0d69f218fbf2919f937fadc93657db4837bcb41e05c7b41ecbb24bfc559a1edda2d8b9f0ad14cb2118264ae52d14ac883e82dc56a
+EBUILD sxiv-1.3.2-r2.ebuild 1461 SHA256 cec4db2abb95f58d3d97eb9cd6df5342fa9326b6756fb022b3054bcc48844057 SHA512 8428c83942cd9d4b96df43d7672ebcced049688d2e728d215846cb9b0469a9d3771211dce9b5acfa4dccee19a74c54b6a3455252f3be9afa8b470b8a76ee4d9f WHIRLPOOL 8515c544d1a11d95b50b6ad5dc8a460c6eaa2fc632bf53f64c61fc050e0ec73507b8a95372f4ea3972f2a600d7ff9944c8a071c788537dd220997d1693153dae
+EBUILD sxiv-1.3.2.ebuild 1003 SHA256 4dc95fa3eb80227156148861940d07ecb95992e4b5af1dcb2bb7f889cf32666d SHA512 bab18754311fdd0f2ac95ec354c2d180e1761510fe72269ecfe05d48b5cdd64bf991d5f0df6d301c4c4d0e63a6777b56b1b6679ccc866834f826747a3e2cb7a6 WHIRLPOOL 8ccd310b1049dda9eb3a474fc6be73ee0a51e64b7eb69bc6fca68565fc4f522b44c572e224d5cfd502ecd49f75c6d64b37b54bfe046910c6c2adfda85141de32
+EBUILD sxiv-9999.ebuild 1252 SHA256 06d6871fccb2f775bad1a092d76a37f32cc3036a0ad153494f89089eaf7aebad SHA512 5609688ab5b916bbd97236d673f36f2a6e62ec3bf54bb8c7f6057bea999710937e7fc390d3756f8c27087dec0ecb88d010cf849dc37a819717ed282d2f478ad9 WHIRLPOOL 04e69727ced9ee3c0007a1802e6fe1005a054d1522a5ab8b4f61bc1fb648ce7953a14ec67715962c8ddbbe13037eed2284146a90db6964ac2c1f058060f41f58
+MISC ChangeLog 3248 SHA256 2474ca34b0819b4dcc9643ccccf9779c1bba67a7045c1d572802aa36c31c2ec2 SHA512 7b8ee0459d914f72fad32b836d7c1ab751c1724c6badce5a5a5beb1bc2eaafa175c99aded8d1d6afea55c0dbbdee799f09e5e784397405f6452642eb5fbf82d8 WHIRLPOOL eaad3123a61ec6f3bf02665e0da71e3a5bac1b739dcd9230e842e90942a783996f455b79b0eb3c84308f2115a451bdb3403045d8a60052253414ed0a981ddff6
+MISC ChangeLog-2015 3032 SHA256 d32d7e3e8804e3161fc06781661b9ce6e1e76db7b3c3e7e266b0bb8bf57c659e SHA512 c2afbb46e5598e39a5d143552fc5179722f356fcac5971f08ac3a10c731c0ea0d1529db9d870427ad167a86f425f26edb59630ef76e20ed48c2586e4fca8e72c WHIRLPOOL ab4f842af814b346d47054277e58411b954a470c31919a19a84983b0cd6e651b350cdf09046cd4cccb5defa3478d519c209a9e664bb07b6e574c3e71e0067221
+MISC metadata.xml 347 SHA256 0e9bedb2007085ad5f1280eae4c796d35b76d5e36ef8bdbd1a7021924d6d439c SHA512 9aca2dd50b12a3bc6a0175bf8fe1767990b519ba92f91eca79137383901119fb7002b0e31d817a287ec08595d32c0074d92aefb0b0ae14c8e4c0b6b366e28515 WHIRLPOOL f78ac0c0a3e24f0fc15d5f5ecf18c0a3012bc50265584f519c125ed2a0f9bbd07248766a30485f6cf42fc9030c8ff88e6aa670e29b435980df38bf03fff34473
diff --git a/media-gfx/sxiv/metadata.xml b/media-gfx/sxiv/metadata.xml
new file mode 100644
index 000000000000..c8196c0a0547
--- /dev/null
+++ b/media-gfx/sxiv/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="github">muennich/sxiv</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/media-gfx/sxiv/sxiv-1.3.2-r2.ebuild b/media-gfx/sxiv/sxiv-1.3.2-r2.ebuild
new file mode 100644
index 000000000000..937dac0c4cf7
--- /dev/null
+++ b/media-gfx/sxiv/sxiv-1.3.2-r2.ebuild
@@ -0,0 +1,77 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit eutils xdg-utils gnome2-utils savedconfig toolchain-funcs
+
+if [[ ${PV} == "9999" ]] ; then
+ EGIT_REPO_URI="https://github.com/muennich/sxiv.git"
+ inherit git-r3
+else
+ SRC_URI="https://github.com/muennich/sxiv/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+ KEYWORDS="~amd64 ~x86"
+fi
+
+DESCRIPTION="Simple (or small or suckless) X Image Viewer"
+HOMEPAGE="https://github.com/muennich/sxiv/"
+
+LICENSE="GPL-2"
+SLOT="0"
+IUSE="exif gif"
+
+RDEPEND="
+ exif? ( media-libs/libexif )
+ gif? ( media-libs/giflib:0= )
+ media-libs/imlib2[X,gif?]
+ x11-libs/libX11
+"
+DEPEND="${RDEPEND}"
+
+src_prepare() {
+ sed -i '/^LDFLAGS/d' Makefile || die
+
+ # disable exif support as required
+ if ! use exif; then
+ sed \
+ -e 's/^.* -DHAVE_LIBEXIF/#\0/' \
+ -e 's/^.* -lexif/#\0/' \
+ -i Makefile || die
+ fi
+
+ # disable gif support as required
+ if ! use gif; then
+ sed \
+ -e 's/^.* -DHAVE_GIFLIB/#\0/' \
+ -e 's/^.* -lgif/#\0/' \
+ -i Makefile || die
+ fi
+
+ tc-export CC
+
+ restore_config config.h
+ default
+}
+
+src_install() {
+ emake DESTDIR="${ED}" PREFIX=/usr install
+ emake -C icon DESTDIR="${ED}" PREFIX=/usr install
+ dodoc README.md
+ domenu sxiv.desktop
+
+ save_config config.h
+}
+
+pkg_preinst() {
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ xdg_desktop_database_update
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ xdg_desktop_database_update
+ gnome2_icon_cache_update
+}
diff --git a/media-gfx/sxiv/sxiv-1.3.2.ebuild b/media-gfx/sxiv/sxiv-1.3.2.ebuild
new file mode 100644
index 000000000000..a5ce018584de
--- /dev/null
+++ b/media-gfx/sxiv/sxiv-1.3.2.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit eutils fdo-mime gnome2-utils savedconfig toolchain-funcs
+
+DESCRIPTION="Simple (or small or suckless) X Image Viewer"
+HOMEPAGE="https://github.com/muennich/sxiv/"
+SRC_URI="https://github.com/muennich/sxiv/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+
+RDEPEND="
+ media-libs/libexif
+ media-libs/giflib
+ media-libs/imlib2[X]
+ x11-libs/libX11
+"
+DEPEND="${RDEPEND}"
+
+src_prepare() {
+ sed -i '/^LDFLAGS/d' Makefile || die
+ tc-export CC
+
+ restore_config config.h
+ default
+}
+
+src_install() {
+ emake DESTDIR="${ED}" PREFIX=/usr install
+ emake -C icon DESTDIR="${ED}" PREFIX=/usr install
+ dodoc README.md
+ domenu sxiv.desktop
+
+ save_config config.h
+}
+
+pkg_preinst() {
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ fdo-mime_desktop_database_update
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ fdo-mime_desktop_database_update
+ gnome2_icon_cache_update
+}
diff --git a/media-gfx/sxiv/sxiv-9999.ebuild b/media-gfx/sxiv/sxiv-9999.ebuild
new file mode 100644
index 000000000000..3e670c67d76c
--- /dev/null
+++ b/media-gfx/sxiv/sxiv-9999.ebuild
@@ -0,0 +1,66 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit eutils xdg-utils gnome2-utils savedconfig toolchain-funcs
+
+if [[ ${PV} == "9999" ]] ; then
+ EGIT_REPO_URI="https://github.com/muennich/sxiv.git"
+ inherit git-r3
+else
+ SRC_URI="https://github.com/muennich/sxiv/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+ KEYWORDS="~amd64 ~x86"
+fi
+
+DESCRIPTION="Simple (or small or suckless) X Image Viewer"
+HOMEPAGE="https://github.com/muennich/sxiv/"
+
+LICENSE="GPL-2"
+SLOT="0"
+IUSE="exif gif"
+
+RDEPEND="
+ exif? ( media-libs/libexif )
+ gif? ( media-libs/giflib:0= )
+ media-libs/imlib2[X,gif?]
+ x11-libs/libX11
+ x11-libs/libXft
+"
+DEPEND="${RDEPEND}"
+
+src_prepare() {
+ sed -i '/^LDFLAGS/d' Makefile || die
+
+ tc-export CC
+
+ restore_config config.h
+ default
+}
+
+src_compile() {
+ emake $(usex exif "" NO_LIBEXIF=1) $(usex gif "" NO_GIFLIB=1)
+}
+
+src_install() {
+ emake DESTDIR="${ED}" PREFIX=/usr install
+ emake -C icon DESTDIR="${ED}" PREFIX=/usr install
+ dodoc README.md
+ domenu sxiv.desktop
+
+ save_config config.h
+}
+
+pkg_preinst() {
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ xdg_desktop_database_update
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ xdg_desktop_database_update
+ gnome2_icon_cache_update
+}
diff --git a/media-gfx/symboleditor/Manifest b/media-gfx/symboleditor/Manifest
new file mode 100644
index 000000000000..2d6f6ddb0c2e
--- /dev/null
+++ b/media-gfx/symboleditor/Manifest
@@ -0,0 +1,5 @@
+DIST SymbolEditor-2.0.0.tar.bz2 544789 SHA256 7cf3ea3acae9bcbe1291526e8e3819d0707a2f288d33cfe22913ec7f894d6e14 SHA512 8baee88fd8ff5f2b6334e80fe7c3fe8044ae521e5a8ffa2588f37dc4a8bf0495c902789bfaaed21a6eaf3c4f6380d18550aaed8046e84b396317104c8a49c993 WHIRLPOOL ac6ec72c1d27ff55774378a384cebe2c5477af8093508e619036309993ec810bc918f68c9cb9a892498ea5afc51e1e22229a8ab77ee3388f8d59755b464813cd
+EBUILD symboleditor-2.0.0.ebuild 1030 SHA256 f9b1446192c6d36cb5a31a16070d8b125d1f2cbb5d795c1173cd25e6ca5cbab0 SHA512 83f82650e0811e2669f00b03e3b0bfb6253543914225e8691fff6344296ba5f8bc692e816170f01c0c89ded7a30b7f0c4327e64a3eb961c8c6ee5bb3d02ceb31 WHIRLPOOL a0bf5578e3f78e9f9c6edbd88f9add2906a60e075a26196c411d5867d5d1984487d634a2e188ce06df01df74acac576b3779233dd0e166020641feaa98bb324c
+MISC ChangeLog 3699 SHA256 417617decf870eaac1e96495ddfaec61bded3a9621fd128fc183970331c68375 SHA512 c8cf0621459c8c482b337c8264711b2e54b626b1af125e87dc4e32da3e66b39b98fd2c9cd5433ccde35756fd77cf72e4bd04000b49a565f1f66fc38da0bce248 WHIRLPOOL 81dd493b5d6a55615b251d780c9cdb002fe41f2f526f25fec4b68b153467ed83136cac100f56a63bbdf3ab83675d8b0261adaf99671718448f68ffc4565c6ca4
+MISC ChangeLog-2015 414 SHA256 e542c22edc850886e8c1c7da4be7c2a0a66109d3270e87a1b67de6ae72b9e387 SHA512 b47d37483045ecf7803432bb47209ed873b68b03c75897ef155083296c0a8a1b8690bad501564ae575f977d2d3edb0bc9b884d067183f4f41ea7795b3ef5fc48 WHIRLPOOL e0cf39a50829684a89ebc6297894ff2d86223584eb9579826c622e8d37f4e694bd2213bba939232ff1d7f1b451c9c1633d591f83cafa06df3ba953c4acd96541
+MISC metadata.xml 249 SHA256 584f1dcf51866dc24a9abf7a89bfba0fad11dde81ae1c1b715da41770d233c99 SHA512 76a5a340b13f0053ca3c5e94ed24380ea8d29b45ac8655419e22eaadb1e4a827c04d2e7e36b65145c4964e6526f656618fc6ac144e277ef53cb7373e6239e3c3 WHIRLPOOL 200c07a8bf7c55b11b7936d5cd30e991a511684913334e72f59def66c0ced5fed0b4a8754e2d98bffbab631cb90d4e17fcccc59d5dcc5a8e988f69e47c85518c
diff --git a/media-gfx/symboleditor/metadata.xml b/media-gfx/symboleditor/metadata.xml
new file mode 100644
index 000000000000..2fdbf33d963d
--- /dev/null
+++ b/media-gfx/symboleditor/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 type="project">
+ <email>kde@gentoo.org</email>
+ <name>Gentoo KDE Project</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/media-gfx/symboleditor/symboleditor-2.0.0.ebuild b/media-gfx/symboleditor/symboleditor-2.0.0.ebuild
new file mode 100644
index 000000000000..194321ebd65b
--- /dev/null
+++ b/media-gfx/symboleditor/symboleditor-2.0.0.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+KDE_HANDBOOK="true"
+inherit kde5
+
+DESCRIPTION="Application to create libraries of QPainterPath objects with redering hints"
+HOMEPAGE="https://userbase.kde.org/SymbolEditor"
+if [[ ${KDE_BUILD_TYPE} != live ]]; then
+ MY_P=SymbolEditor-${PV}
+ SRC_URI="mirror://kde/stable/${PN}/${PV}/src/${MY_P}.tar.bz2"
+ S="${WORKDIR}"/${MY_P}
+fi
+
+LICENSE="GPL-2"
+KEYWORDS="amd64"
+IUSE=""
+
+COMMON_DEPEND="
+ $(add_frameworks_dep kconfig)
+ $(add_frameworks_dep kconfigwidgets)
+ $(add_frameworks_dep kcoreaddons)
+ $(add_frameworks_dep ki18n)
+ $(add_frameworks_dep kio)
+ $(add_frameworks_dep kwidgetsaddons)
+ $(add_frameworks_dep kxmlgui)
+ $(add_qt_dep qtgui)
+ $(add_qt_dep qtwidgets)
+"
+DEPEND="${COMMON_DEPEND}
+ sys-devel/gettext
+ x11-misc/shared-mime-info
+"
+RDEPEND="${COMMON_DEPEND}
+ !media-gfx/symboleditor:4
+"
+
+src_configure() {
+ local mycmakeargs=(
+ $(cmake-utils_use_find_package handbook KF5DocTools)
+ )
+
+ kde5_src_configure
+}
diff --git a/media-gfx/synnefo/Manifest b/media-gfx/synnefo/Manifest
new file mode 100644
index 000000000000..8c20be340e47
--- /dev/null
+++ b/media-gfx/synnefo/Manifest
@@ -0,0 +1,3 @@
+DIST synnefo-1.1.0.tar.gz 161822 SHA256 719f1b32ab63abdc6b97c0a343147f59e558f08fac7814c5556ccfff6e5c5ff5 SHA512 f4c50e6e018b0dcf91715c379cd5b79452886fb7fda189ad47a22b9d5f47b3ca710b959b773a1e0a42564e881d09da088a88eef505719b1b1fbfbb5e21fb26ef WHIRLPOOL 7a8e73af5419012cbc5897ba9622f67a59bbdba7d4d0965bf4cfdc8f427514c307986d8dc8d98b51a078240a84f6d6e8ecf0385339e7f63a47f4acea303b2c82
+EBUILD synnefo-1.1.0.ebuild 721 SHA256 31534514bc4299ef331c5ed8732431119ccd57a53d2723fbd864917aec284dff SHA512 7218facf8db96f0ae85a1274c5eee70037a2581fc058a94a364a77b7fda097c940e4a096a3b101c80c6f940eca9789e7aee15b1ffc3882bc282c19b2d79d0410 WHIRLPOOL 1da1d62541af05d154f3ecb9bc639c3b7b0c60b9a54346e6a326fc4b6d4c317fcd243f408c36668be15978165742019ddba7740ead132df2012f5f459a338924
+MISC metadata.xml 333 SHA256 55b4ca20c842b643a414a2c5c7732e58efd8e89de46cce2f9da566571ba54c90 SHA512 49d4f64a95ddf7b75f0e3efe44bc03e8df9f565aec70c52838dea32badc5809d0b3945f87a4de3bc6704f0a3e1732e683412d4ffd480e5ef40bf763c958b7936 WHIRLPOOL 9cb262c988256e988906fdac3b6ace6e8b0f75dbf8528f5fd416df27eeb7a82513784c5b5d35a41f557d6f85dc62ef99c846f319286eca29fc2906253769dad5
diff --git a/media-gfx/synnefo/metadata.xml b/media-gfx/synnefo/metadata.xml
new file mode 100644
index 000000000000..d85e5ec3d7c1
--- /dev/null
+++ b/media-gfx/synnefo/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>kde@gentoo.org</email>
+ <name>Gentoo KDE Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">oyranos-cms/Synnefo</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/media-gfx/synnefo/synnefo-1.1.0.ebuild b/media-gfx/synnefo/synnefo-1.1.0.ebuild
new file mode 100644
index 000000000000..a2e194042a75
--- /dev/null
+++ b/media-gfx/synnefo/synnefo-1.1.0.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit cmake-utils
+if [[ ${PV} == "9999" ]]; then
+ EGIT_REPO_URI="https://github.com/oyranos-cms/Synnefo.git"
+ inherit git-r3
+else
+ SRC_URI="https://github.com/oyranos-cms/Synnefo/archive/${PV}.tar.gz -> ${P}.tar.gz"
+ KEYWORDS="~amd64 ~x86"
+ S="${WORKDIR}/Synnefo-${PV}"
+fi
+
+DESCRIPTION="Qt front end for the Oyranos Color Management System"
+HOMEPAGE="https://github.com/oyranos-cms/Synnefo"
+LICENSE="BSD-2"
+SLOT="0"
+IUSE=""
+
+DEPEND="
+ dev-qt/qtcore:5
+ dev-qt/qtdbus:5
+ dev-qt/qtgui:5
+ dev-qt/qtwidgets:5
+ >=media-libs/oyranos-0.9.6
+"
+RDEPEND="${DEPEND}
+ x11-misc/xcalib
+"
+
+DOCS=( AUTHORS.md README.md )
diff --git a/media-gfx/tachyon/Manifest b/media-gfx/tachyon/Manifest
new file mode 100644
index 000000000000..c8a66ef38511
--- /dev/null
+++ b/media-gfx/tachyon/Manifest
@@ -0,0 +1,7 @@
+AUX tachyon-0.99_beta6-ldflags.patch 939 SHA256 e1f38acbfbba9835119b88713064aaefd179a214396ea46a0ae8ee5d44046e28 SHA512 a57a66fd72295b74de7ec94bf1a0b4c75fc61c1189bf0c4eb288a274915f72c97c869b60aad167a73d78c7242821e522de22e4de99ab13a3f61367568bfb5acd WHIRLPOOL 3c7210588f055e7f20a6fa8e392106febf6236188f147756cccd636f71b901963203e758d70792be54fe0ad855bf77b4a8e14b1abf069655897c849edb03b5ff
+AUX tachyon-0.99_beta6-shared.patch 8065 SHA256 839f49108fb45d69aac09e4989bca9d667b1f374dab970a171c567c68a6de9ec SHA512 535a3e6524d6d788e1eabf73fb5cd1bbbb2cbc6fb32294895762cf2405360c40861b1813b3b15bea6f28577595bffd84607997a9964bd743722b003acc1dfd17 WHIRLPOOL 4240de75abc404df1ab0550ee1dcaad00235712c2636e84f5eb66a2fb225e925fd559768d0a393c336a4e4afeda8e398ee5fa7d1654c89d8bf7ffc05cefb9081
+DIST tachyon-0.99b6.tar.gz 2981568 SHA256 f4dcaf9c76a4f49310f56254390f9611c22e353947a1745a8c623e8bc8119b97 SHA512 4d0d707bf46528b87bfe1a05f490f40bcbee8f21271c5212247d4fd25956a27ad8a40b4621817a3f1c03495f1ba9eeb99b152929fdcd92c7118a35ef116f3f33 WHIRLPOOL b8f12422ff2ca0199b37f12cd4dde09401e7c7d5aa238b8f16f742d34af382e613cf91d1e6e2827dfc585b46ade56ec100fcad9d625a3e6c32882549b6fcb490
+EBUILD tachyon-0.99_beta6-r1.ebuild 2784 SHA256 9db85e0b440c24c59ec254914a707a1a4d6e2b483a5cd7ed55996c2710c650fa SHA512 ed925e8dcb650254e4c60f375850c89d16dbc6a75997b8360bad2fec0e645c5cc970a8cbfb7968e494a73cc5d781c65f3d073de830db8112c5e177058b0584e5 WHIRLPOOL 6565825c8ba869147be5529fab54005bc8c5e96bbe26d4d02b3aba700b206d69a4a407e402a5f84c890eea33f90077b198b3d0f7f49635990e52cc54fd253204
+MISC ChangeLog 2612 SHA256 aa0fee90a4779927b3bd6c9caf4cd50e0848ce5613f9a1b26700b1cf1faf7516 SHA512 e06bfbc16d495c3547d432daaf1a48fd020dcce89bc8b2949078d422dada32151099c9931e867bc840ed4dcbe6cc3cf4b0a693a314ab4feff3aadfada841dca3 WHIRLPOOL af8eedede776b82b8064e131c9ae6e2b49d06f3428c39ed9658df03649a50eb76be369e05f12d3d8b6c3c8ad9bcf361c8149dc8d62bda2468ce8cf48a41316f3
+MISC ChangeLog-2015 1845 SHA256 7d3a91a0d037d485a22634ccd427a3924d63cb951d8a6861b144eba29b8f76bf SHA512 de4b4e00faf7e0961bfa152f1febab805ee8dc1074c839dbbc516bfa27668d357660e5525d480c70cea67529810a015c4c1e9f9cb7c2680febcdbceeeea52996 WHIRLPOOL 45c647022c150140f532f84c315e89b0c9f624ca28326fddf75baf8a83485d7756c96bd3821b4a216a712aa8d1db0816549bdc5881d689c6e7deec73fa3fae6d
+MISC metadata.xml 339 SHA256 9132e32eb7ae057e7d13623c24b2158a2b4a2566acef821fea4d38dda13d6119 SHA512 ceba0ae3ec140c4efe0d1708243954fb3bc9804109727610079712a5ce91f5133197e61a2c3bb4dcfd6f743dcfcbc829cc68f5def0b2aa023e3eeb5dfa09a68a WHIRLPOOL ec584df1363d3ea72c0478f65700dc7811c8c60b2346d47d0cb0d48c4d4ab8d41c09e83f6156cb2ec4f70cb1b34ca7f1eff8eff12927fa8cd717a5a3ca0320ad
diff --git a/media-gfx/tachyon/files/tachyon-0.99_beta6-ldflags.patch b/media-gfx/tachyon/files/tachyon-0.99_beta6-ldflags.patch
new file mode 100644
index 000000000000..99d5b8bfb664
--- /dev/null
+++ b/media-gfx/tachyon/files/tachyon-0.99_beta6-ldflags.patch
@@ -0,0 +1,13 @@
+diff --git a/unix/Makefile b/unix/Makefile
+index 8dd0846..d2fe1ac 100644
+--- a/unix/Makefile
++++ b/unix/Makefile
+@@ -121,7 +121,7 @@ ${MGFLIB} : ../libmgf/Makefile
+ };
+
+ ${ARCHDIR}/tachyon : ${RAYLIB} ${PARSELIB} ${OBJDIR}/main.o ${OBJDIR}/getargs.o ${OBJDIR}/parse.o ${OBJDIR}/nffparse.o ${OBJDIR}/glwin.o ${OBJDIR}/spaceball.o ${OBJDIR}/trackball.o ${PARSEOBJS}
+- ${CC} ${CFLAGS} ${DEMOINC} -o ${ARCHDIR}/tachyon ${OBJDIR}/main.o ${OBJDIR}/getargs.o ${OBJDIR}/parse.o ${OBJDIR}/nffparse.o ${OBJDIR}/glwin.o ${OBJDIR}/spaceball.o ${OBJDIR}/trackball.o ${PARSEOBJS} -L${RAYLIBDIR} ${PARSELIBS} ${LIBS}
++ ${CC} ${CFLAGS} ${LDFLAGS} ${DEMOINC} -o ${ARCHDIR}/tachyon ${OBJDIR}/main.o ${OBJDIR}/getargs.o ${OBJDIR}/parse.o ${OBJDIR}/nffparse.o ${OBJDIR}/glwin.o ${OBJDIR}/spaceball.o ${OBJDIR}/trackball.o ${PARSEOBJS} -L${RAYLIBDIR} ${PARSELIBS} ${LIBS}
+ ${STRIP} ${ARCHDIR}/tachyon
+
+ ${ARCHDIR}/animray : ${RAYLIB} ${OBJDIR}/mainanim.o
diff --git a/media-gfx/tachyon/files/tachyon-0.99_beta6-shared.patch b/media-gfx/tachyon/files/tachyon-0.99_beta6-shared.patch
new file mode 100644
index 000000000000..dd23fe301675
--- /dev/null
+++ b/media-gfx/tachyon/files/tachyon-0.99_beta6-shared.patch
@@ -0,0 +1,179 @@
+diff -up tachyon/unix/Makefile.shared tachyon/unix/Makefile
+--- tachyon/unix/Makefile.shared 2011-02-07 16:14:38.000000000 +0100
++++ tachyon/unix/Makefile 2011-07-23 20:23:51.000000000 +0200
+@@ -22,7 +22,7 @@ OBJDIR=${ARCHDIR}/libtachyon
+ #
+ # Name of raytracing library file to create
+ #
+-RAYLIB=${ARCHDIR}/libtachyon.a
++RAYLIB=${ARCHDIR}/libtachyon.so
+ RAYLIBDIR=${ARCHDIR}
+
+ #
+@@ -251,124 +251,125 @@ RAYOBJS= ${OBJDIR}/api.o \
+ ${OBJDIR}/tgafile.o \
+ ${OBJDIR}/winbmp.o
+
++VERSION=$(shell grep TACHYON_VERSION_STRING ../src/tachyon.h | cut -d\" -f 2)
++${RAYLIB} : DIRNAME=tachyon-${VERSION}
+ ${RAYLIB} : ${RAYOBJS}
+- rm -f ${RAYLIB}
+- ${AR} ${ARFLAGS} ${RAYLIB} ${RAYOBJS}
+- ${RANLIB} ${RAYLIB}
++ ${CC} ${LDFLAGS} -shared -Wl,-soname,libtachyon.so.${VERSION} -o ${RAYLIBDIR}/libtachyon.so.${VERSION} ${CFLAGS} -fPIC ${RAYOBJS} ${PNGLIB} -lm -lpthread ${JPEGLIB}
++ ln -s libtachyon.so.${VERSION} ${RAYLIBDIR}/libtachyon.so
+
+ ${OBJDIR}/vol.o : ${SRCDIR}/vol.c ${OBJDEPS}
+- ${CC} ${CFLAGS} -c ${SRCDIR}/vol.c -o ${OBJDIR}/vol.o
++ ${CC} ${CFLAGS} -fPIC -c ${SRCDIR}/vol.c -o ${OBJDIR}/vol.o
+
+ ${OBJDIR}/extvol.o : ${SRCDIR}/extvol.c ${OBJDEPS}
+- ${CC} ${CFLAGS} -c ${SRCDIR}/extvol.c -o ${OBJDIR}/extvol.o
++ ${CC} ${CFLAGS} -fPIC -c ${SRCDIR}/extvol.c -o ${OBJDIR}/extvol.o
+
+ ${OBJDIR}/winbmp.o : ${SRCDIR}/winbmp.c ${OBJDEPS}
+- ${CC} ${CFLAGS} -c ${SRCDIR}/winbmp.c -o ${OBJDIR}/winbmp.o
++ ${CC} ${CFLAGS} -fPIC -c ${SRCDIR}/winbmp.c -o ${OBJDIR}/winbmp.o
+
+ ${OBJDIR}/vector.o : ${SRCDIR}/vector.c ${OBJDEPS}
+- ${CC} ${CFLAGS} -c ${SRCDIR}/vector.c -o ${OBJDIR}/vector.o
++ ${CC} ${CFLAGS} -fPIC -c ${SRCDIR}/vector.c -o ${OBJDIR}/vector.o
+
+ ${OBJDIR}/triangle.o : ${SRCDIR}/triangle.c ${OBJDEPS} ${SRCDIR}/triangle.h
+- ${CC} ${CFLAGS} -c ${SRCDIR}/triangle.c -o ${OBJDIR}/triangle.o
++ ${CC} ${CFLAGS} -fPIC -c ${SRCDIR}/triangle.c -o ${OBJDIR}/triangle.o
+
+ ${OBJDIR}/trace.o : ${SRCDIR}/trace.c ${OBJDEPS}
+- ${CC} ${CFLAGS} -c ${SRCDIR}/trace.c -o ${OBJDIR}/trace.o
++ ${CC} ${CFLAGS} -fPIC -c ${SRCDIR}/trace.c -o ${OBJDIR}/trace.o
+
+ ${OBJDIR}/threads.o : ${SRCDIR}/threads.c ${OBJDEPS}
+- ${CC} ${CFLAGS} -c ${SRCDIR}/threads.c -o ${OBJDIR}/threads.o
++ ${CC} ${CFLAGS} -fPIC -c ${SRCDIR}/threads.c -o ${OBJDIR}/threads.o
+
+ ${OBJDIR}/tgafile.o : ${SRCDIR}/tgafile.c ${OBJDEPS}
+- ${CC} ${CFLAGS} -c ${SRCDIR}/tgafile.c -o ${OBJDIR}/tgafile.o
++ ${CC} ${CFLAGS} -fPIC -c ${SRCDIR}/tgafile.c -o ${OBJDIR}/tgafile.o
+
+ ${OBJDIR}/util.o : ${SRCDIR}/util.c ${OBJDEPS}
+- ${CC} ${CFLAGS} -c ${SRCDIR}/util.c -o ${OBJDIR}/util.o
++ ${CC} ${CFLAGS} -fPIC -c ${SRCDIR}/util.c -o ${OBJDIR}/util.o
+
+ ${OBJDIR}/ui.o : ${SRCDIR}/ui.c ${OBJDEPS}
+- ${CC} ${CFLAGS} -c ${SRCDIR}/ui.c -o ${OBJDIR}/ui.o
++ ${CC} ${CFLAGS} -fPIC -c ${SRCDIR}/ui.c -o ${OBJDIR}/ui.o
+
+ ${OBJDIR}/texture.o : ${SRCDIR}/texture.c ${OBJDEPS}
+- ${CC} ${CFLAGS} -c ${SRCDIR}/texture.c -o ${OBJDIR}/texture.o
++ ${CC} ${CFLAGS} -fPIC -c ${SRCDIR}/texture.c -o ${OBJDIR}/texture.o
+
+ ${OBJDIR}/sphere.o : ${SRCDIR}/sphere.c ${OBJDEPS} ${SRCDIR}/sphere.h
+- ${CC} ${CFLAGS} -c ${SRCDIR}/sphere.c -o ${OBJDIR}/sphere.o
++ ${CC} ${CFLAGS} -fPIC -c ${SRCDIR}/sphere.c -o ${OBJDIR}/sphere.o
+
+ ${OBJDIR}/sgirgb.o : ${SRCDIR}/sgirgb.c ${OBJDEPS}
+- ${CC} ${CFLAGS} -c ${SRCDIR}/sgirgb.c -o ${OBJDIR}/sgirgb.o
++ ${CC} ${CFLAGS} -fPIC -c ${SRCDIR}/sgirgb.c -o ${OBJDIR}/sgirgb.o
+
+ ${OBJDIR}/shade.o : ${SRCDIR}/shade.c ${OBJDEPS}
+- ${CC} ${CFLAGS} -c ${SRCDIR}/shade.c -o ${OBJDIR}/shade.o
++ ${CC} ${CFLAGS} -fPIC -c ${SRCDIR}/shade.c -o ${OBJDIR}/shade.o
+
+ ${OBJDIR}/ring.o : ${SRCDIR}/ring.c ${OBJDEPS}
+- ${CC} ${CFLAGS} -c ${SRCDIR}/ring.c -o ${OBJDIR}/ring.o
++ ${CC} ${CFLAGS} -fPIC -c ${SRCDIR}/ring.c -o ${OBJDIR}/ring.o
+
+ ${OBJDIR}/render.o : ${SRCDIR}/render.c ${OBJDEPS}
+- ${CC} ${CFLAGS} -c ${SRCDIR}/render.c -o ${OBJDIR}/render.o
++ ${CC} ${CFLAGS} -fPIC -c ${SRCDIR}/render.c -o ${OBJDIR}/render.o
+
+ ${OBJDIR}/quadric.o : ${SRCDIR}/quadric.c ${OBJDEPS}
+- ${CC} ${CFLAGS} -c ${SRCDIR}/quadric.c -o ${OBJDIR}/quadric.o
++ ${CC} ${CFLAGS} -fPIC -c ${SRCDIR}/quadric.c -o ${OBJDIR}/quadric.o
+
+ ${OBJDIR}/jpeg.o : ${SRCDIR}/jpeg.c ${OBJDEPS}
+- ${CC} ${CFLAGS} -c ${SRCDIR}/jpeg.c -o ${OBJDIR}/jpeg.o
++ ${CC} ${CFLAGS} -fPIC -c ${SRCDIR}/jpeg.c -o ${OBJDIR}/jpeg.o
+
+ ${OBJDIR}/pngfile.o : ${SRCDIR}/pngfile.c ${OBJDEPS}
+- ${CC} ${CFLAGS} -c ${SRCDIR}/pngfile.c -o ${OBJDIR}/pngfile.o
++ ${CC} ${CFLAGS} -fPIC -c ${SRCDIR}/pngfile.c -o ${OBJDIR}/pngfile.o
+
+ ${OBJDIR}/ppm.o : ${SRCDIR}/ppm.c ${OBJDEPS}
+- ${CC} ${CFLAGS} -c ${SRCDIR}/ppm.c -o ${OBJDIR}/ppm.o
++ ${CC} ${CFLAGS} -fPIC -c ${SRCDIR}/ppm.c -o ${OBJDIR}/ppm.o
+
+ ${OBJDIR}/psd.o : ${SRCDIR}/psd.c ${OBJDEPS}
+- ${CC} ${CFLAGS} -c ${SRCDIR}/psd.c -o ${OBJDIR}/psd.o
++ ${CC} ${CFLAGS} -fPIC -c ${SRCDIR}/psd.c -o ${OBJDIR}/psd.o
+
+ ${OBJDIR}/plane.o : ${SRCDIR}/plane.c ${OBJDEPS} ${SRCDIR}/plane.h
+- ${CC} ${CFLAGS} -c ${SRCDIR}/plane.c -o ${OBJDIR}/plane.o
++ ${CC} ${CFLAGS} -fPIC -c ${SRCDIR}/plane.c -o ${OBJDIR}/plane.o
+
+ ${OBJDIR}/parallel.o : ${SRCDIR}/parallel.c ${OBJDEPS}
+- ${CC} ${CFLAGS} -c ${SRCDIR}/parallel.c -o ${OBJDIR}/parallel.o
++ ${CC} ${CFLAGS} -fPIC -c ${SRCDIR}/parallel.c -o ${OBJDIR}/parallel.o
+
+ ${OBJDIR}/objbound.o : ${SRCDIR}/objbound.c ${OBJDEPS}
+- ${CC} ${CFLAGS} -c ${SRCDIR}/objbound.c -o ${OBJDIR}/objbound.o
++ ${CC} ${CFLAGS} -fPIC -c ${SRCDIR}/objbound.c -o ${OBJDIR}/objbound.o
+
+ ${OBJDIR}/light.o : ${SRCDIR}/light.c ${OBJDEPS}
+- ${CC} ${CFLAGS} -c ${SRCDIR}/light.c -o ${OBJDIR}/light.o
++ ${CC} ${CFLAGS} -fPIC -c ${SRCDIR}/light.c -o ${OBJDIR}/light.o
+
+ ${OBJDIR}/intersect.o : ${SRCDIR}/intersect.c ${OBJDEPS}
+- ${CC} ${CFLAGS} -c ${SRCDIR}/intersect.c -o ${OBJDIR}/intersect.o
++ ${CC} ${CFLAGS} -fPIC -c ${SRCDIR}/intersect.c -o ${OBJDIR}/intersect.o
+
+ ${OBJDIR}/imageio.o : ${SRCDIR}/imageio.c ${OBJDEPS}
+- ${CC} ${CFLAGS} -c ${SRCDIR}/imageio.c -o ${OBJDIR}/imageio.o
++ ${CC} ${CFLAGS} -fPIC -c ${SRCDIR}/imageio.c -o ${OBJDIR}/imageio.o
+
+ ${OBJDIR}/imap.o : ${SRCDIR}/imap.c ${OBJDEPS}
+- ${CC} ${CFLAGS} -c ${SRCDIR}/imap.c -o ${OBJDIR}/imap.o
++ ${CC} ${CFLAGS} -fPIC -c ${SRCDIR}/imap.c -o ${OBJDIR}/imap.o
+
+ ${OBJDIR}/grid.o : ${SRCDIR}/grid.c ${SRCDIR}/grid.h ${OBJDEPS}
+- ${CC} ${CFLAGS} -c ${SRCDIR}/grid.c -o ${OBJDIR}/grid.o
++ ${CC} ${CFLAGS} -fPIC -c ${SRCDIR}/grid.c -o ${OBJDIR}/grid.o
+
+ ${OBJDIR}/global.o : ${SRCDIR}/global.c ${OBJDEPS}
+- ${CC} ${CFLAGS} -c ${SRCDIR}/global.c -o ${OBJDIR}/global.o
++ ${CC} ${CFLAGS} -fPIC -c ${SRCDIR}/global.c -o ${OBJDIR}/global.o
+
+ ${OBJDIR}/hash.o : ${SRCDIR}/hash.c ${OBJDEPS}
+- ${CC} ${CFLAGS} -c ${SRCDIR}/hash.c -o ${OBJDIR}/hash.o
++ ${CC} ${CFLAGS} -fPIC -c ${SRCDIR}/hash.c -o ${OBJDIR}/hash.o
+
+ ${OBJDIR}/cylinder.o : ${SRCDIR}/cylinder.c ${OBJDEPS} ${SRCDIR}/cylinder.h
+- ${CC} ${CFLAGS} -c ${SRCDIR}/cylinder.c -o ${OBJDIR}/cylinder.o
++ ${CC} ${CFLAGS} -fPIC -c ${SRCDIR}/cylinder.c -o ${OBJDIR}/cylinder.o
+
+ ${OBJDIR}/coordsys.o : ${SRCDIR}/coordsys.c ${OBJDEPS}
+- ${CC} ${CFLAGS} -c ${SRCDIR}/coordsys.c -o ${OBJDIR}/coordsys.o
++ ${CC} ${CFLAGS} -fPIC -c ${SRCDIR}/coordsys.c -o ${OBJDIR}/coordsys.o
+
+ ${OBJDIR}/camera.o : ${SRCDIR}/camera.c ${OBJDEPS}
+- ${CC} ${CFLAGS} -c ${SRCDIR}/camera.c -o ${OBJDIR}/camera.o
++ ${CC} ${CFLAGS} -fPIC -c ${SRCDIR}/camera.c -o ${OBJDIR}/camera.o
+
+ ${OBJDIR}/box.o : ${SRCDIR}/box.c ${OBJDEPS}
+- ${CC} ${CFLAGS} -c ${SRCDIR}/box.c -o ${OBJDIR}/box.o
++ ${CC} ${CFLAGS} -fPIC -c ${SRCDIR}/box.c -o ${OBJDIR}/box.o
+
+ ${OBJDIR}/bndbox.o : ${SRCDIR}/bndbox.c ${OBJDEPS}
+- ${CC} ${CFLAGS} -c ${SRCDIR}/bndbox.c -o ${OBJDIR}/bndbox.o
++ ${CC} ${CFLAGS} -fPIC -c ${SRCDIR}/bndbox.c -o ${OBJDIR}/bndbox.o
+
+ ${OBJDIR}/apigeom.o : ${SRCDIR}/apigeom.c ${OBJDEPS}
+- ${CC} ${CFLAGS} -c ${SRCDIR}/apigeom.c -o ${OBJDIR}/apigeom.o
++ ${CC} ${CFLAGS} -fPIC -c ${SRCDIR}/apigeom.c -o ${OBJDIR}/apigeom.o
+
+ ${OBJDIR}/api.o : ${SRCDIR}/api.c ${OBJDEPS} ${SRCDIR}/sphere.h ${SRCDIR}/plane.h ${SRCDIR}/triangle.h ${SRCDIR}/cylinder.h
+- ${CC} ${CFLAGS} -c ${SRCDIR}/api.c -o ${OBJDIR}/api.o
++ ${CC} ${CFLAGS} -fPIC -c ${SRCDIR}/api.c -o ${OBJDIR}/api.o
+
+ clean :
+ @echo "Cleaning object files, binaries etc."
diff --git a/media-gfx/tachyon/metadata.xml b/media-gfx/tachyon/metadata.xml
new file mode 100644
index 000000000000..ab6b74b6c31b
--- /dev/null
+++ b/media-gfx/tachyon/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>alexxy@gentoo.org</email>
+ </maintainer>
+<maintainer type="project">
+ <email>sci@gentoo.org</email>
+ <name>Gentoo Science Project</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/media-gfx/tachyon/tachyon-0.99_beta6-r1.ebuild b/media-gfx/tachyon/tachyon-0.99_beta6-r1.ebuild
new file mode 100644
index 000000000000..3c7fc02b92b7
--- /dev/null
+++ b/media-gfx/tachyon/tachyon-0.99_beta6-r1.ebuild
@@ -0,0 +1,134 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit eutils toolchain-funcs
+
+MY_PV=${PV/_beta/b}
+MY_P="${PN}-${MY_PV}"
+
+DESCRIPTION="A portable, high performance parallel ray tracing system"
+HOMEPAGE="http://jedi.ks.uiuc.edu/~johns/raytracer/"
+SRC_URI="http://jedi.ks.uiuc.edu/~johns/raytracer/files/${MY_PV}/${MY_P}.tar.gz"
+
+SLOT="0"
+LICENSE="BSD"
+KEYWORDS="~amd64 ~ppc ~x86 ~x64-macos ~x86-macos"
+IUSE="doc examples jpeg mpi +opengl png threads"
+
+CDEPEND="
+ jpeg? ( virtual/jpeg:0= )
+ mpi? ( virtual/mpi )
+ opengl? (
+ virtual/glu
+ virtual/opengl
+ )
+ png? ( media-libs/libpng:0= )"
+DEPEND="${CDEPEND}
+ virtual/pkgconfig"
+RDEPEND="${CDEPEND}"
+
+REQUIRED_USE="^^ ( opengl mpi )"
+
+S="${WORKDIR}/${PN}/unix"
+
+pkg_setup() {
+ local ostarget
+
+ # TODO: Test on alpha, ia64
+ # TODO: add other architectures
+ # TODO: X, Motif, MBOX, Open Media Framework, Spaceball I/O, MGF ?
+ TACHYON_MAKE_TARGET=
+
+ case ${CHOST} in
+ powerpc*-darwin*) ostarget=macosx ;;
+ *86*-darwin*) ostarget=macosx-x86 ;;
+ *) ostarget=linux ;;
+ esac
+
+ if use threads ; then
+ if use opengl ; then
+ TACHYON_MAKE_TARGET=${ostarget}-thr-ogl
+ elif use mpi ; then
+ TACHYON_MAKE_TARGET=${ostarget}-mpi-thr
+ else
+ TACHYON_MAKE_TARGET=${ostarget}-thr
+ fi
+
+ # TODO: Support for linux-athlon-thr ?
+ else
+ if use mpi ; then
+ TACHYON_MAKE_TARGET=${ostarget}-mpi
+ else
+ TACHYON_MAKE_TARGET=${ostarget}
+ fi
+ fi
+
+ if [[ -z "${TACHYON_MAKE_TARGET}" ]]; then
+ die "No target found, check use flags"
+ else
+ einfo "Using target: ${TACHYON_MAKE_TARGET}"
+ fi
+}
+
+src_prepare() {
+ emakeconf=()
+ use jpeg && \
+ emakeconf+=(
+ USEJPEG=-DUSEJPEG
+ JPEGLIB=-ljpeg
+ )
+
+ use png && \
+ emakeconf+=(
+ USEPNG=-DUSEPNG
+ PNGINC="$($(tc-getPKG_CONFIG) --cflags libpng)"
+ PNGLIB="$($(tc-getPKG_CONFIG) --libs libpng)"
+ )
+
+ if use mpi ; then
+ sed \
+ -e "s:MPIDIR=:MPIDIR=/usr:g" \
+ -e "s:linux-lam:linux-mpi:g" \
+ -i Make-config || die "sed failed"
+ fi
+ sed -i \
+ -e "s:-O3::g;s:-g::g;s:-pg::g" \
+ -e "s:-m32:${CFLAGS}:g" \
+ -e "s:-m64:${CFLAGS}:g" \
+ -e "s:-ffast-math::g" \
+ -e "s:STRIP = strip:STRIP = touch:g" \
+ -e "s:CC = *cc:CC = $(tc-getCC):g" \
+ -e "s:-fomit-frame-pointer::g" Make-arch || die "sed failed"
+
+ epatch \
+ "${FILESDIR}"/${P}-ldflags.patch \
+ "${FILESDIR}"/${P}-shared.patch
+ eapply_user
+}
+
+src_compile() {
+ emake ${TACHYON_MAKE_TARGET} "${emakeconf[@]}" VERSION=${PV}
+}
+
+src_install() {
+ cd .. || die
+ dodoc Changes README
+
+ insinto /usr/include/${PN}
+ doins src/*.h
+
+ use doc && dohtml docs/tachyon/*
+
+ cd compile/${TACHYON_MAKE_TARGET} || die
+
+ dobin ${PN}
+ dolib.so lib${PN}.so*
+
+ if use examples; then
+ cd "${S}/../scenes" || die
+ insinto "/usr/share/${PN}/examples"
+ doins *
+ fi
+}
diff --git a/media-gfx/tgif/Manifest b/media-gfx/tgif/Manifest
new file mode 100644
index 000000000000..70467244ace5
--- /dev/null
+++ b/media-gfx/tgif/Manifest
@@ -0,0 +1,7 @@
+AUX tgif-4.2.5-wformat-security.patch 19741 SHA256 56e81c62bc1b69e32e20eb8c601fab58275c489cca7b2c226adb2d61ce7e531f SHA512 881ef034698a0e632c257a185346cb22218b93f8668fabf0169cb1a6c59ce0ad7a81ab5e4093610a3cbd360304a007067862d672622bed7a852db93f584d3d7f WHIRLPOOL 9ce338d644cec87acec338071a054fcc5a6702e14ff72ecf99e4d632f55e73062d0c5dc3f7fabe4c6668d4127f021716ea2792946f40e2e5312c26c3b54a51a0
+DIST tgif-QPL-4.2.5.tar.gz 3093619 SHA256 2f24e9fecafae6e671739bd80691a06c9d032bdd1973ca164823e72ab1c567ba SHA512 7b007620190883e30216407bf31c4142493bbd270b4babc282994dec37d221d79f0b1cadc9efda9bc337eb323254e69beee2d4c4873877e7321df41922f456ef WHIRLPOOL 26ddcd8c669335c8147acd57f478b5fb395acf4fcea0cdcb5180b8ee5869122be1a1098ad7ba8abff84af71d414e89acfb43a5c2acb1147d7da45e259675842e
+EBUILD tgif-4.2.5-r1.ebuild 945 SHA256 1216691e93891edcecfe02ac46712ceb4bbcb3a1a98b30ed97876fede61fa047 SHA512 9b94d68ced37a2da3feb29c8ab4ce3fe920f7e947bbc83c87c768c84a1b63645f8a25c700ce6c762b5ca803655095365d8cbcb212e83d148fadf53eeea0c9bc3 WHIRLPOOL fdfd2ae478b1db03c5fb54bdaa8adfbcf95df9b9d6d51d56821a8f890a58f4b971ffbcb489fea9f4c758781d366bd86a53964d7f0da9307a428c1d7f215d45e4
+EBUILD tgif-4.2.5.ebuild 1008 SHA256 3fe3f1bc9b0ca8d96943f634fe999a58dfb4ec9b814ff298c5025ac1effb3939 SHA512 7a140abaa7b0ce77f7e416ee8fcc67f796795112c04e2bd832a33f3cf4ce593c2ff09ad7b31b50f186b07f3a579629f03090c6b31ecf9d77db4426a894edb6d4 WHIRLPOOL 8b57ca18cfa73382485d0f1b6d15971ba0081272441ab7b7b138a64994b633f441e449726d8b82e38ffbe38da46b8fa6e0e2fa31c35d614dcb6f3f43495187dd
+MISC ChangeLog 2799 SHA256 4fe701546d367cd460934906fa4c5b5af2f0267c3396de228ed5b630d42bde19 SHA512 0cdd4d10d4b36c9190480fecdfb64668e90829450d4a7d7291f562e65878ced2b5af6eae552066e0361075932a495b1453ce49acad85b57611c8168bbe4ae80d WHIRLPOOL 1a116e7a608f1bc659259ddda127a33789af9125358bec73b868cc0a3fc0445ca0f429a6e490cf9228c9cff22d4a80c0b9be23fb33108e65e721d569a7499e8c
+MISC ChangeLog-2015 2782 SHA256 419f67f1f556817434d3aaec372dcc3f718064e0c35cd1497ddefb66415952bf SHA512 1c9b897212899d999215dd30a0aae10c97d765347022a94052b6b1c2caa47e5bc507b759fc24a2c43ea01b316f8537b8c75a81796df20157d760d87d578502b9 WHIRLPOOL 00bc56fb7048f733c9f2330aecb85394a75efb83f874e42452e6bfb5410ecafeb86f2f4383dc80e64a6eae1bcbdb182c8fbc09f2f48a7cc603030acb16bbf70d
+MISC metadata.xml 166 SHA256 2caff447f5bd2701d8456ada5cc633c41ef4373fa4bfeabeb73599d40bcc941b SHA512 a56648c974a1d14dd4c18237532773c72057a13ab90c58b5da04f185e3c12a8bd8d5c21fb06053507f31766291a82dc7d87b34cd65fd94cfe2af7295c813ef84 WHIRLPOOL 1ff70497eca6531f0e0614c72a19f4b8e5ff486a58d369f4f0b36308d1d6b01168f9da887740e3b9f536236be251d3fe05f904d27a9233a7cf613416ba882968
diff --git a/media-gfx/tgif/files/tgif-4.2.5-wformat-security.patch b/media-gfx/tgif/files/tgif-4.2.5-wformat-security.patch
new file mode 100644
index 000000000000..5e16cb1b8622
--- /dev/null
+++ b/media-gfx/tgif/files/tgif-4.2.5-wformat-security.patch
@@ -0,0 +1,500 @@
+Fix errors caused by -Wformat -Werror=format-security
+https://bugs.gentoo.org/show_bug.cgi?id=542132
+
+--- tgif-QPL-4.2.5/arc.c
++++ tgif-QPL-4.2.5/arc.c
+@@ -2041,7 +2041,7 @@
+ }
+
+ if (dir == ARC_CCW && angle2 < 0) {
+- sprintf(gszMsgBox, TgLoadString(STID_WARN_INCONSIST_ARC_DIR));
++ sprintf(gszMsgBox, "%s", TgLoadString(STID_WARN_INCONSIST_ARC_DIR));
+ if (PRTGIF) {
+ fprintf(stderr, "%s\n", gszMsgBox);
+ } else {
+@@ -2050,7 +2050,7 @@
+ SetFileModified(TRUE);
+ dir = ARC_CW;
+ } else if (dir == ARC_CW && angle2 > 0) {
+- sprintf(gszMsgBox, TgLoadString(STID_WARN_INCONSIST_ARC_DIR));
++ sprintf(gszMsgBox, "%s", TgLoadString(STID_WARN_INCONSIST_ARC_DIR));
+ if (PRTGIF) {
+ fprintf(stderr, "%s\n", gszMsgBox);
+ } else {
+--- tgif-QPL-4.2.5/auxtext.c
++++ tgif-QPL-4.2.5/auxtext.c
+@@ -113,7 +113,7 @@
+ if (canvasFontDoubleByte) {
+ sprintf(gszMsgBox, TgLoadString(STID_INPUT_OCTAL_STR), "\\244\\244");
+ } else {
+- sprintf(gszMsgBox, TgLoadString(STID_INPUT_STR));
++ sprintf(gszMsgBox, "%s", TgLoadString(STID_INPUT_STR));
+ }
+ Dialog(gszMsgBox, TgLoadCachedString(CSTID_DLG_ACCEPT_CANCEL), szSpec);
+ UtilTrimBlanks(szSpec);
+--- tgif-QPL-4.2.5/cutpaste.c
++++ tgif-QPL-4.2.5/cutpaste.c
+@@ -200,7 +200,7 @@
+ lastKeyOrBtnEvInfo.time);
+ if (XGetSelectionOwner(mainDisplay, XA_PRIMARY) != mainWindow) {
+ setselowner_failed = TRUE;
+- sprintf(gszMsgBox, TgLoadString(STID_CANT_ACQUIRE_X_SELECTION));
++ sprintf(gszMsgBox, "%s", TgLoadString(STID_CANT_ACQUIRE_X_SELECTION));
+ MsgBox(gszMsgBox, TOOL_NAME, INFO_MB);
+ } else {
+ startSelectionOwnershipTimeValid = TRUE;
+@@ -349,10 +349,10 @@
+ MsgBox(gszMsgBox, TOOL_NAME, INFO_MB);
+ } else {
+ if (!WriteBufToCutBuffer(cut_buffer, stat.st_size, FALSE, FALSE, NULL)) {
+- sprintf(gszMsgBox, TgLoadString(STID_COPY_FAILED_OBJ_MAYBE_TOO_BIG));
++ sprintf(gszMsgBox, "%s", TgLoadString(STID_COPY_FAILED_OBJ_MAYBE_TOO_BIG));
+ MsgBox(gszMsgBox, TOOL_NAME, INFO_MB);
+ } else {
+- sprintf(gszMsgBox, TgLoadString(STID_COPY_BUFFER_UPDATED));
++ sprintf(gszMsgBox, "%s", TgLoadString(STID_COPY_BUFFER_UPDATED));
+ Msg(gszMsgBox);
+ }
+ }
+--- tgif-QPL-4.2.5/drawing.c
++++ tgif-QPL-4.2.5/drawing.c
+@@ -3339,7 +3339,7 @@
+
+ SaveStatusStrings();
+ if (*attr_ptr->attr_name.s == '\0') {
+- sprintf(title, TgLoadString(STID_EDIT_UNNAME_ATTR_DOTS));
++ sprintf(title, "%s", TgLoadString(STID_EDIT_UNNAME_ATTR_DOTS));
+ sprintf(cmd, gszEditorCmd, title, tfi.tmp_fname);
+ sprintf(gszMsgBox, TgLoadString(STID_EDIT_UNNAME_ATTR_WITH_CMD), cmd);
+ } else {
+@@ -3460,7 +3460,7 @@
+ }
+ SaveStatusStrings();
+ if (*attr_ptr->attr_name.s == '\0') {
+- sprintf(title, TgLoadString(STID_EDIT_UNNAME_ATTR_DOTS));
++ sprintf(title, "%s", TgLoadString(STID_EDIT_UNNAME_ATTR_DOTS));
+ sprintf(cmd, gszEditorCmd, title, tfi.tmp_fname);
+ sprintf(gszMsgBox, TgLoadString(STID_EDIT_UNNAME_ATTR_WITH_CMD), cmd);
+ } else {
+--- tgif-QPL-4.2.5/edit.c
++++ tgif-QPL-4.2.5/edit.c
+@@ -1138,7 +1138,7 @@
+ INFO_MB);
+ return;
+ }
+- sprintf(gszMsgBox, TgLoadString(STID_VERTEX_AT_3_OCLOCK_YNC));
++ sprintf(gszMsgBox, "%s", TgLoadString(STID_VERTEX_AT_3_OCLOCK_YNC));
+ if ((vertex_at_right=MsgBox(gszMsgBox, TOOL_NAME, YNC_MB)) ==
+ MB_ID_CANCEL) {
+ return;
+@@ -6104,7 +6104,7 @@
+ return;
+ }
+ if (CountObjectWithShadow() == 0) {
+- sprintf(gszMsgBox, TgLoadString(STID_NO_OBJ_SHADOW_FOUND));
++ sprintf(gszMsgBox, "%s", TgLoadString(STID_NO_OBJ_SHADOW_FOUND));
+ MsgBox(gszMsgBox, TOOL_NAME, INFO_MB);
+ return;
+ }
+--- tgif-QPL-4.2.5/eps.c
++++ tgif-QPL-4.2.5/eps.c
+@@ -670,7 +670,7 @@
+ }
+ fclose(xbm_fp);
+ if (writeFileFailed) {
+- fprintf(stderr, TgLoadString(STID_FAIL_TO_WRITE_TO_STDOUT));
++ fprintf(stderr, "%s", TgLoadString(STID_FAIL_TO_WRITE_TO_STDOUT));
+ }
+ unlink(xbm_fname);
+ *xbm_fname = '\0';
+--- tgif-QPL-4.2.5/exec.c
++++ tgif-QPL-4.2.5/exec.c
+@@ -1753,7 +1753,7 @@
+ if (ESCPressed() || (check_any_button && XCheckMaskEvent(mainDisplay,
+ ButtonPressMask | KeyPressMask, &ev)) || CheckInterrupt(TRUE)) {
+ if (orig_cmd == NULL) {
+- sprintf(gszMsgBox, TgLoadString(STID_USER_INTR));
++ sprintf(gszMsgBox, "%s", TgLoadString(STID_USER_INTR));
+ } else {
+ sprintf(gszMsgBox, TgLoadString(STID_FUNC_USER_INTR), orig_cmd);
+ }
+--- tgif-QPL-4.2.5/file.c
++++ tgif-QPL-4.2.5/file.c
+@@ -4376,7 +4376,7 @@
+ sprintf(gszMsgBox, TgLoadString(STID_FILE_VER_ABORT_IMPORT),
+ fileVersion, TOOL_NAME, homePageURL);
+ } else {
+- sprintf(gszMsgBox, TgLoadString(STID_FILE_CORRUPTED_ABORT_IMPORT));
++ sprintf(gszMsgBox, "%s", TgLoadString(STID_FILE_CORRUPTED_ABORT_IMPORT));
+ }
+ MsgBox(gszMsgBox, TOOL_NAME, INFO_MB);
+ SetDefaultCursor(mainWindow);
+@@ -4862,7 +4862,7 @@
+ sprintf(gszMsgBox, TgLoadString(STID_FILE_VER_ABORT_OPEN),
+ fileVersion, TOOL_NAME, homePageURL);
+ } else {
+- sprintf(gszMsgBox, TgLoadString(STID_FILE_CORRUPTED_ABORT_OPEN));
++ sprintf(gszMsgBox, "%s", TgLoadString(STID_FILE_CORRUPTED_ABORT_OPEN));
+ }
+ MsgBox(gszMsgBox, TOOL_NAME, INFO_MB);
+ DrawPaperBoundary(drawWindow);
+@@ -6609,7 +6609,7 @@
+ whereToPrint == HTML_FILE || whereToPrint == PNG_FILE ||
+ whereToPrint == JPEG_FILE || whereToPrint == PPM_FILE) {
+ if (topObj == NULL) {
+- sprintf(gszMsgBox, TgLoadString(STID_NO_OBJ_TO_EXPORT));
++ sprintf(gszMsgBox, "%s", TgLoadString(STID_NO_OBJ_TO_EXPORT));
+ if (PRTGIF) {
+ fprintf(stderr, "%s\n", gszMsgBox);
+ } else {
+@@ -7646,7 +7646,7 @@
+ SetOutputFileName(ps_file, TEXT_FILE_EXT, NULL, &FileName);
+ } else {
+ if (!curFileDefined) {
+- sprintf(gszMsgBox, TgLoadString(STID_NO_CUR_FILE_CANNOT_GEN_TEXT));
++ sprintf(gszMsgBox, "%s", TgLoadString(STID_NO_CUR_FILE_CANNOT_GEN_TEXT));
+ MsgBox(gszMsgBox, TOOL_NAME, INFO_MB);
+ unlink(tmpFile);
+ return FALSE;
+@@ -8675,7 +8675,7 @@
+ }
+ sprintf(file_name, "%s%c%s", path, DIR_SEP, name);
+ } else {
+- sprintf(gszMsgBox, TgLoadString(STID_SELECT_FILE_AS_TEMPLATE));
++ sprintf(gszMsgBox, "%s", TgLoadString(STID_SELECT_FILE_AS_TEMPLATE));
+ if (SelectFileNameToImport(gszMsgBox, OBJ_FILE_EXT, file_name) ==
+ INVALID) {
+ return;
+--- tgif-QPL-4.2.5/grid.c
++++ tgif-QPL-4.2.5/grid.c
+@@ -358,7 +358,7 @@
+ sprintf(gszMsgBox, TgLoadString(STID_RIGHT_MARGIN_IS), buf);
+ Msg(gszMsgBox);
+ } else {
+- sprintf(gszMsgBox, TgLoadString(STID_RIGHT_MARGIN_DISABLED));
++ sprintf(gszMsgBox, "%s", TgLoadString(STID_RIGHT_MARGIN_DISABLED));
+ Msg(gszMsgBox);
+ }
+ }
+--- tgif-QPL-4.2.5/imgproc.c
++++ tgif-QPL-4.2.5/imgproc.c
+@@ -9102,7 +9102,7 @@
+ }
+ }
+ if (!found) {
+- snprintf(gszMsgBox, sizeof(gszMsgBox), TgLoadString(STID_CANNOT_FIND_GOOD_TRANSPIX));
++ snprintf(gszMsgBox, sizeof(gszMsgBox), "%s", TgLoadString(STID_CANNOT_FIND_GOOD_TRANSPIX));
+ MsgBox(gszMsgBox, TOOL_NAME, INFO_MB);
+ return FALSE;
+ }
+@@ -9753,7 +9753,7 @@
+ fillReplaceBlueThresh);
+ Msg(gszMsgBox);
+ } else {
+- sprintf(gszMsgBox, TgLoadString(STID_FLOOD_REPLACE_DISABLED));
++ sprintf(gszMsgBox, "%s", TgLoadString(STID_FLOOD_REPLACE_DISABLED));
+ Msg(gszMsgBox);
+ }
+ }
+--- tgif-QPL-4.2.5/import.c
++++ tgif-QPL-4.2.5/import.c
+@@ -2674,7 +2674,7 @@
+ memset(&ii, 0, sizeof(struct ImportInfoRec));
+
+ /* pick an animated GIF file */
+- sprintf(szTop, TgLoadString(STID_SEL_ANIM_GIF_FILE_TO_IMPORT));
++ sprintf(szTop, "%s", TgLoadString(STID_SEL_ANIM_GIF_FILE_TO_IMPORT));
+ importingFile = TRUE;
+ *gif_fname = *tmp_fname = '\0';
+ if (importFromLibrary) {
+--- tgif-QPL-4.2.5/page.c
++++ tgif-QPL-4.2.5/page.c
+@@ -1583,7 +1583,7 @@
+ if (spi.num_pages_specified == lastPageNum) {
+ MsgBox(TgLoadString(STID_CANT_DEL_ALL_PAGES), TOOL_NAME, INFO_MB);
+ } else if (spi.num_pages_specified > 0) {
+- sprintf(gszMsgBox, TgLoadString(spi.num_pages_specified > 1 ?
++ sprintf(gszMsgBox, "%s", TgLoadString(spi.num_pages_specified > 1 ?
+ STID_DELETE_A_PAGE_CAUSE_FLUSH :
+ STID_DELETE_PAGES_PAGE_CAUSE_FLUSH));
+ if (firstCmd == NULL || OkToFlushUndoBuffer(gszMsgBox)) {
+--- tgif-QPL-4.2.5/pattern.c
++++ tgif-QPL-4.2.5/pattern.c
+@@ -1738,16 +1738,16 @@
+ *gszMsgBox = '\0';
+ switch (curSpline) {
+ case LT_STRAIGHT:
+- sprintf(gszMsgBox, TgLoadString(STID_LINE_TYPE_IS_STRAIGHT));
++ sprintf(gszMsgBox, "%s", TgLoadString(STID_LINE_TYPE_IS_STRAIGHT));
+ break;
+ case LT_SPLINE:
+- sprintf(gszMsgBox, TgLoadString(STID_LINE_TYPE_IS_SPLINE));
++ sprintf(gszMsgBox, "%s", TgLoadString(STID_LINE_TYPE_IS_SPLINE));
+ break;
+ case LT_INTSPLINE:
+- sprintf(gszMsgBox, TgLoadString(STID_LINE_TYPE_IS_INTSPLINE));
++ sprintf(gszMsgBox, "%s", TgLoadString(STID_LINE_TYPE_IS_INTSPLINE));
+ break;
+ case LT_STRUCT_SPLINE:
+- sprintf(gszMsgBox, TgLoadString(STID_LINE_TYPE_IS_STRUCT_SPLINE));
++ sprintf(gszMsgBox, "%s", TgLoadString(STID_LINE_TYPE_IS_STRUCT_SPLINE));
+ break;
+ }
+ Msg(gszMsgBox);
+@@ -2290,7 +2290,7 @@
+ item_info->menu_str = (char*)(Pixmap*)(&lineDashPixmap[i]);
+ item_info->shortcut_str = NULL;
+ if (i == 0) {
+- sprintf(gszMsgBox, TgLoadCachedString(CSTID_SET_PEN_DASH_PAT_NO_DASH));
++ sprintf(gszMsgBox, "%s", TgLoadCachedString(CSTID_SET_PEN_DASH_PAT_NO_DASH));
+ } else {
+ sprintf(gszMsgBox, TgLoadCachedString(CSTID_SET_PEN_DASH_PAT_PAT_NUM),
+ i);
+@@ -2507,13 +2507,13 @@
+ item_info->shortcut_str = NULL;
+ switch (i) {
+ case NONEPAT:
+- sprintf(gszMsgBox, TgLoadCachedString(CSTID_SET_PEN_TO_NONE));
++ sprintf(gszMsgBox, "%s", TgLoadCachedString(CSTID_SET_PEN_TO_NONE));
+ break;
+ case SOLIDPAT:
+- sprintf(gszMsgBox, TgLoadCachedString(CSTID_SET_PEN_TO_SOLID));
++ sprintf(gszMsgBox, "%s", TgLoadCachedString(CSTID_SET_PEN_TO_SOLID));
+ break;
+ case BACKPAT:
+- sprintf(gszMsgBox, TgLoadCachedString(CSTID_SET_PEN_TO_BACKGROUND));
++ sprintf(gszMsgBox, "%s", TgLoadCachedString(CSTID_SET_PEN_TO_BACKGROUND));
+ break;
+ default:
+ sprintf(gszMsgBox, TgLoadCachedString(CSTID_SET_PEN_TO_PAT_NUM), i);
+--- tgif-QPL-4.2.5/poly.c
++++ tgif-QPL-4.2.5/poly.c
+@@ -5506,7 +5506,7 @@
+ smooth[0] = smooth[num_pts-1] = FALSE;
+ SetFileModified(TRUE);
+
+- sprintf(gszMsgBox, TgLoadCachedString(CSTID_BAD_SMOOTHHINGE_POLY_FIXED));
++ sprintf(gszMsgBox, "%s", TgLoadCachedString(CSTID_BAD_SMOOTHHINGE_POLY_FIXED));
+ if (PRTGIF) {
+ fprintf(stderr, "%s\n", gszMsgBox);
+ } else {
+--- tgif-QPL-4.2.5/scroll.c
++++ tgif-QPL-4.2.5/scroll.c
+@@ -1559,13 +1559,13 @@
+
+ switch (smoothScrollingCanvas) {
+ case SMOOTH_SCROLLING:
+- sprintf(gszMsgBox, TgLoadString(STID_WILL_UPD_WIN_SMOOTH_SCROLL));
++ sprintf(gszMsgBox, "%s", TgLoadString(STID_WILL_UPD_WIN_SMOOTH_SCROLL));
+ break;
+ case JUMP_SCROLLING:
+- sprintf(gszMsgBox, TgLoadString(STID_WILL_UPD_WIN_JUMP_SCROLL));
++ sprintf(gszMsgBox, "%s", TgLoadString(STID_WILL_UPD_WIN_JUMP_SCROLL));
+ break;
+ case NO_UPDATE_SCROLLING:
+- sprintf(gszMsgBox, TgLoadString(STID_WILL_NOT_UPD_WIN_SCROLL));
++ sprintf(gszMsgBox, "%s", TgLoadString(STID_WILL_NOT_UPD_WIN_SCROLL));
+ break;
+ }
+ Msg(gszMsgBox);
+--- tgif-QPL-4.2.5/shape.c
++++ tgif-QPL-4.2.5/shape.c
+@@ -1111,7 +1111,7 @@
+
+ if ((objFill == NONEPAT || (objFill == BACKPAT && transPat)) &&
+ (shapeShadowDx != 0 || shapeShadowDy != 0)) {
+- sprintf(gszMsgBox, TgLoadString(objFill==NONEPAT ?
++ sprintf(gszMsgBox, "%s", TgLoadString(objFill==NONEPAT ?
+ STID_CREATE_SHADOW_SHAPE_NO_FILL :
+ STID_CREATE_SHADOW_SHAPE_TRAN_FILL));
+ switch (MsgBox(gszMsgBox, TOOL_NAME, YNC_MB)) {
+--- tgif-QPL-4.2.5/special.c
++++ tgif-QPL-4.2.5/special.c
+@@ -1292,15 +1292,15 @@
+ if (*existing_signal_name == '\0') {
+ if (signal_name_diff) {
+ /* conflicting signal names */
+- sprintf(gszMsgBox, TgLoadString(STID_CONFLICT_SIG_NAME_ENT_NEW));
++ sprintf(gszMsgBox, "%s", TgLoadString(STID_CONFLICT_SIG_NAME_ENT_NEW));
+ } else {
+ /* all ports have no signal names */
+- sprintf(gszMsgBox, TgLoadString(STID_PLS_ENT_SIG_NAME));
++ sprintf(gszMsgBox, "%s", TgLoadString(STID_PLS_ENT_SIG_NAME));
+ }
+ } else {
+ UtilStrCpyN(new_signal_name, sizeof(new_signal_name),
+ existing_signal_name);
+- sprintf(gszMsgBox, TgLoadString(STID_PLS_ENT_SIG_NAME));
++ sprintf(gszMsgBox, "%s", TgLoadString(STID_PLS_ENT_SIG_NAME));
+ }
+ if (!(*new_signal_name != '\0' && already_has_broadcast_signal_name)) {
+ UtilTrimBlanks(new_signal_name);
+@@ -3090,7 +3090,7 @@
+ }
+ }
+ if (ok) {
+- sprintf(&buf[cur_len], gszMsgBox);
++ sprintf(&buf[cur_len], "%s", gszMsgBox);
+ cur_len += len;
+ }
+ }
+@@ -3127,7 +3127,7 @@
+ void ToggleShowWireSignalName()
+ {
+ showWireSignalName = !showWireSignalName;
+- sprintf(gszMsgBox, TgLoadString(showWireSignalName ?
++ sprintf(gszMsgBox, "%s", TgLoadString(showWireSignalName ?
+ STID_WILL_SHOW_WIRE_SIGNAL_NAME : STID_WILL_HIDE_WIRE_SIGNAL_NAME));
+ Msg(gszMsgBox);
+ }
+--- tgif-QPL-4.2.5/stream.c
++++ tgif-QPL-4.2.5/stream.c
+@@ -669,7 +669,7 @@
+ *prev_agent = '\0';
+ GetUserAgent(prev_agent, sizeof(prev_agent));
+ if (*prev_agent == '\0') {
+- sprintf(gszMsgBox, TgLoadString(STID_ENTER_USERAGENT_FOR_HTTP));
++ sprintf(gszMsgBox, "%s", TgLoadString(STID_ENTER_USERAGENT_FOR_HTTP));
+ } else {
+ sprintf(gszMsgBox, TgLoadString(STID_ENTER_USERAGENT_FOR_HTTP_CUR),
+ prev_agent);
+@@ -685,7 +685,7 @@
+ *prev_agent = '\0';
+ GetUserAgent(prev_agent, sizeof(prev_agent));
+ if (*prev_agent == '\0') {
+- sprintf(gszMsgBox, TgLoadString(STID_WILL_USE_DEF_USERAGENT_HTTP));
++ sprintf(gszMsgBox, "%s", TgLoadString(STID_WILL_USE_DEF_USERAGENT_HTTP));
+ } else {
+ sprintf(gszMsgBox, TgLoadString(STID_WILL_USE_NAMED_USERAGENT_HTTP),
+ prev_agent);
+@@ -708,7 +708,7 @@
+ if (len > 0 && spec[len-1] == ')') spec[len-1] = '\0';
+ } else {
+ if (gpszFakedReferer == NULL) {
+- sprintf(gszMsgBox, TgLoadString(STID_ENTER_REFERRER_FOR_HTTP));
++ sprintf(gszMsgBox, "%s", TgLoadString(STID_ENTER_REFERRER_FOR_HTTP));
+ } else {
+ sprintf(gszMsgBox, TgLoadString(STID_ENTER_REFERRER_FOR_HTTP_CUR),
+ gpszFakedReferer);
+@@ -727,7 +727,7 @@
+ UtilTrimBlanks(spec);
+ HttpFakeReferer(spec);
+ if (gpszFakedReferer == NULL) {
+- sprintf(gszMsgBox, TgLoadString(STID_WILL_NOT_USE_REFERRER_HTTP));
++ sprintf(gszMsgBox, "%s", TgLoadString(STID_WILL_NOT_USE_REFERRER_HTTP));
+ } else {
+ sprintf(gszMsgBox, TgLoadString(STID_WILL_USE_NAMED_REFERRER_HTTP),
+ gpszFakedReferer);
+@@ -738,7 +738,7 @@
+ void ToggleKeepAlive()
+ {
+ gnHttpKeepAlive = (!gnHttpKeepAlive);
+- sprintf(gszMsgBox, TgLoadString(gnHttpKeepAlive ?
++ sprintf(gszMsgBox, "%s", TgLoadString(gnHttpKeepAlive ?
+ STID_WILL_USE_KEEP_ALIVE_HTTP : STID_NOT_WILL_USE_KEEP_ALIVE_HTTP));
+ Msg(gszMsgBox);
+ }
+--- tgif-QPL-4.2.5/text.c
++++ tgif-QPL-4.2.5/text.c
+@@ -3749,9 +3749,9 @@
+ copy_db_utf8_str && (double_byte_font_index != INVALID), NULL);
+
+ if (copy_failed) {
+- sprintf(gszMsgBox, TgLoadString(STID_COPY_FAIL_SEL_STR_MAY_TOO_LNG));
++ sprintf(gszMsgBox, "%s", TgLoadString(STID_COPY_FAIL_SEL_STR_MAY_TOO_LNG));
+ } else {
+- sprintf(gszMsgBox, TgLoadString(STID_COPY_BUFFER_UPDATED));
++ sprintf(gszMsgBox, "%s", TgLoadString(STID_COPY_BUFFER_UPDATED));
+ }
+ Msg(gszMsgBox);
+ free(cut_buffer);
+--- tgif-QPL-4.2.5/tgcwdl.c
++++ tgif-QPL-4.2.5/tgcwdl.c
+@@ -1727,7 +1727,7 @@
+
+ TidgetSetFocusWindow(None);
+ if (!colorDisplay || mainVisual->class != TrueColor) {
+- sprintf(gszMsgBox, TgLoadString(STID_COLOR_WHEEL_NOT_AVAIL));
++ sprintf(gszMsgBox, "%s", TgLoadString(STID_COLOR_WHEEL_NOT_AVAIL));
+ MsgBox(gszMsgBox, TOOL_NAME, INFO_MB);
+ free(pcwdi);
+ return NULL;
+--- tgif-QPL-4.2.5/tgisdl.c
++++ tgif-QPL-4.2.5/tgisdl.c
+@@ -808,7 +808,7 @@
+
+ TidgetSetFocusWindow(None);
+ if (!colorDisplay || mainVisual->class != TrueColor) {
+- sprintf(gszMsgBox, TgLoadString(STID_COLOR_WHEEL_NOT_AVAIL));
++ sprintf(gszMsgBox, "%s", TgLoadString(STID_COLOR_WHEEL_NOT_AVAIL));
+ MsgBox(gszMsgBox, TOOL_NAME, INFO_MB);
+ free(pisdi);
+ return NULL;
+--- tgif-QPL-4.2.5/wb.c
++++ tgif-QPL-4.2.5/wb.c
+@@ -20,9 +20,7 @@
+
+ #define _INCLUDE_FROM_WB_C_
+
+-#if (defined(PTHREAD) || defined(HAVE_LIBPTHREAD))
+ #include <pthread.h>
+-#endif /* (defined(PTHREAD) || defined(HAVE_LIBPTHREAD)) */
+
+ #include "tgifdefs.h"
+ #include "cmdids.h"
+@@ -2283,7 +2281,7 @@
+ *content_type = '\0';
+ if (!GetContentInfoFromBuf(buf, content_type, sizeof(content_type),
+ &content_length, &buf_data_start)) {
+- sprintf(gszMsgBox, TgLoadString(STID_JOIN_WB_IN_FAILED_NO_CONTTYPE));
++ sprintf(gszMsgBox, "%s", TgLoadString(STID_JOIN_WB_IN_FAILED_NO_CONTTYPE));
+ MsgBox(gszMsgBox, TOOL_NAME, INFO_MB);
+ return;
+ }
+@@ -2512,7 +2510,7 @@
+ gstWBInfo.join_session_in_progress = TRUE;
+ } else {
+ CleanUpWBCmds();
+- sprintf(gszMsgBox, TgLoadString(STID_JOIN_WB_IN_PROGRESS_FAILED));
++ sprintf(gszMsgBox, "%s", TgLoadString(STID_JOIN_WB_IN_PROGRESS_FAILED));
+ MsgBox(gszMsgBox, TOOL_NAME, INFO_MB);
+ }
+ if (need_to_free_buf) UtilFree(buf);
+--- tgif-QPL-4.2.5/xbitmap.c
++++ tgif-QPL-4.2.5/xbitmap.c
+@@ -147,7 +147,7 @@
+ char spec[MAXSTRING<<1];
+
+ if (*gszHhtmlExportTemplate == '\0') {
+- sprintf(gszMsgBox, TgLoadString(STID_ENTER_HTML_TEMPLATE));
++ sprintf(gszMsgBox, "%s", TgLoadString(STID_ENTER_HTML_TEMPLATE));
+ } else {
+ sprintf(gszMsgBox, TgLoadString(STID_ENTER_HTML_TEMPLATE_CUR_IS),
+ gszHhtmlExportTemplate);
+@@ -172,7 +172,7 @@
+ }
+ UtilStrCpyN(gszHhtmlExportTemplate, sizeof(gszHhtmlExportTemplate), spec);
+ if (*gszHhtmlExportTemplate == '\0') {
+- sprintf(gszMsgBox, TgLoadString(STID_NO_HTML_TEMPLATE_FILE));
++ sprintf(gszMsgBox, "%s", TgLoadString(STID_NO_HTML_TEMPLATE_FILE));
+ } else {
+ sprintf(gszMsgBox, TgLoadString(STID_HTML_TEMPLATE_SET_TO_GIVEN),
+ gszHhtmlExportTemplate);
+@@ -421,7 +421,7 @@
+ sprintf(gszMsgBox, TgLoadString(STID_WILL_USE_GIVE_SMPLE_THRESHOLD),
+ bitmapThresholdStr);
+ } else {
+- sprintf(gszMsgBox, TgLoadString(STID_WILL_NOT_USE_SIMPLE_THRESHOLD));
++ sprintf(gszMsgBox, "%s", TgLoadString(STID_WILL_NOT_USE_SIMPLE_THRESHOLD));
+ }
+ Msg(gszMsgBox);
+ }
+@@ -3153,7 +3153,7 @@
+ } else if ((attr_ptr=FindFileAttrWithName("title=")) != NULL) {
+ fprintf(map_fp, "%s", attr_ptr->attr_value.s);
+ } else {
+- fprintf(map_fp, TgLoadCachedString(CSTID_PARANED_UNKNOWN));
++ fprintf(map_fp, "%s", TgLoadCachedString(CSTID_PARANED_UNKNOWN));
+ }
+ break;
+ case TGV_MAP_WIDTH: fprintf(map_fp, "%1d", RbX-LtX); break;
diff --git a/media-gfx/tgif/metadata.xml b/media-gfx/tgif/metadata.xml
new file mode 100644
index 000000000000..6f49eba8f496
--- /dev/null
+++ b/media-gfx/tgif/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<!-- maintainer-needed -->
+</pkgmetadata>
diff --git a/media-gfx/tgif/tgif-4.2.5-r1.ebuild b/media-gfx/tgif/tgif-4.2.5-r1.ebuild
new file mode 100644
index 000000000000..f73da72be336
--- /dev/null
+++ b/media-gfx/tgif/tgif-4.2.5-r1.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit autotools flag-o-matic
+
+MY_P="${PN}-QPL-${PV}"
+
+DESCRIPTION="Xlib base 2-D drawing facility under X11"
+HOMEPAGE="http://bourbon.usc.edu/tgif/index.html"
+SRC_URI="ftp://bourbon.usc.edu/pub/${PN}/${MY_P}.tar.gz"
+
+LICENSE="QPL-1.0"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
+IUSE=""
+
+DEPEND="sys-libs/zlib
+ x11-libs/libICE
+ x11-libs/libSM
+ x11-libs/libX11
+ x11-libs/libXext
+ x11-libs/libXmu
+ x11-libs/libXt
+ x11-proto/xproto"
+RDEPEND="${DEPEND}
+ media-libs/netpbm"
+
+PATCHES=(
+ "${FILESDIR}/${P}-wformat-security.patch"
+)
+
+S="${WORKDIR}/${MY_P}"
+
+src_prepare() {
+ sed -i \
+ -e 's/^CFLAGS=/CFLAGS+=/' \
+ -e 's:^TGIFDIR.*:TGIFDIR = $(datadir)/tgif:' \
+ Makefile.am || die 'sed on Makefile.am failed'
+
+ append-cppflags -D_DONT_USE_MKTEMP -DHAS_STREAMS_SUPPORT
+
+ default
+ eautoreconf
+}
diff --git a/media-gfx/tgif/tgif-4.2.5.ebuild b/media-gfx/tgif/tgif-4.2.5.ebuild
new file mode 100644
index 000000000000..db08aabc841c
--- /dev/null
+++ b/media-gfx/tgif/tgif-4.2.5.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+AUTOTOOLS_AUTORECONF=1
+AUTOTOOLS_IN_SOURCE_BUILD=1
+inherit autotools-utils eutils flag-o-matic
+
+MY_P="${PN}-QPL-${PV}"
+
+DESCRIPTION="Xlib base 2-D drawing facility under X11"
+HOMEPAGE="http://bourbon.usc.edu/tgif/index.html"
+SRC_URI="ftp://bourbon.usc.edu/pub/${PN}/${MY_P}.tar.gz"
+
+LICENSE="QPL-1.0"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
+IUSE=""
+
+DEPEND="sys-libs/zlib
+ x11-libs/libICE
+ x11-libs/libSM
+ x11-libs/libX11
+ x11-libs/libXext
+ x11-libs/libXmu
+ x11-libs/libXt
+ x11-proto/xproto"
+RDEPEND="${DEPEND}
+ media-libs/netpbm"
+
+S="${WORKDIR}/${MY_P}"
+
+DOCS=( AUTHORS ChangeLog HISTORY NEWS README )
+
+src_prepare() {
+ sed -i \
+ -e 's/^CFLAGS=/CFLAGS+=/' \
+ -e 's:^TGIFDIR.*:TGIFDIR = $(datadir)/tgif:' \
+ Makefile.am || die 'sed on Makefile.am failed'
+
+ append-cppflags -D_DONT_USE_MKTEMP -DHAS_STREAMS_SUPPORT
+
+ autotools-utils_src_prepare
+}
diff --git a/media-gfx/tic98/Manifest b/media-gfx/tic98/Manifest
new file mode 100644
index 000000000000..0f8a9cc38358
--- /dev/null
+++ b/media-gfx/tic98/Manifest
@@ -0,0 +1,8 @@
+AUX tic98-1.01-gentoo.diff 5452 SHA256 b526d8dc6f4539074a40c5f24dbbc72d4974b6d8d7dae650dca1bae86f38c933 SHA512 89636f8dade2e9cf6a250b51e1b5a6ca11571e6e7216cfe36306e0004528493fc16c32d7de96f10aed1ae584e23ed2dcbca62e752c46ef2e554224b23e0fb91f WHIRLPOOL 2be9ccba3ff42526b448ade4a4609f32bfddd3279f71da3e3c2e3e6f3b389c9e214352a0dbe3a2c67bef27601926febd5617f3295193f717da1e3b0079fa0fe9
+AUX tic98-1.01-glibc-2.10.patch 624 SHA256 c5945652b7d44e7ba503e339263cb6b06b109e67537bb2b259399314907385db SHA512 282714f6f51e52a44440493acc510fa3c00274c42ef544526dd5ce35488022e18767bf53e6a5cce385d2d30c4b3caf53f9c61a65a64342456463c5a90a7da843 WHIRLPOOL 3093d316b9d57dc4425304adbd9365f0dae6be20ab34b8cf409f3a258be6c8887e95a255e4b05a6021e962ecab0a7b03ebf28f4e045355d518cde9446fda055d
+AUX tic98-1.01-macos.patch 643 SHA256 2c2a9970f1429fc04631a758ebd61b34e56d8770ff1de423b021dda453e6a1b2 SHA512 0ddc4616e4f4dfe16825199c4414d326ca8016a2df0052cbbc396a56e1f898cac5fa072bb4b400f800254e359d9fbdb87b86477f006c4d6a38bf0d71def2bc93 WHIRLPOOL 1656afe953638dc9ab2de07c3efe2418b07f51d766fc8cab4dc8e5580dd4877c5e8beb010d2d593207a832086b382225748e906ceecf0bdec82a6f0f1359e318
+DIST tic98-1.01.tar.bz2 99145 SHA256 0e65a851ccc6fb45652ed03760e5973bac494ac2f07a9a7cccc0e7ccafe06fa2 SHA512 3bb6c72f0a9ed199f2eb1ceb53a5552b384510a9f6ecdfabf7f79e815cb0511cf880a00bddf5b88b49ea416fbcf7fed5e84af1ee2fbed7c313b39ee042efa797 WHIRLPOOL 047dd5e382fef34c67c80cc91f968f6ce34c31ae2d308e7a0f9d6ebd8e1c486c2221052bc33e18111df91277451c0602d0ee6630c5005d40cbbc5b5ee589c887
+EBUILD tic98-1.01-r3.ebuild 1083 SHA256 246bf3d9bce0f2a35ff8d7e54162ec4bd775bbda7edfe03b8849db070ed21e4f SHA512 8b0408a2821b48dddb2e13fe1e9967062dab21a79ba7899fd79e28021a3cc07618b494c9c83c3662103ccea5b9280d2829877711a969271ed230cedb58da0dff WHIRLPOOL 7c5c5ec85152facdae73da02139da573a3d32d1eeb74a1992aeee297d4c619233db8fb1bd4fbdcd9c6aa78c0f79b06204dde31ed830b0d29ecad9c9b0311955c
+MISC ChangeLog 2526 SHA256 676060ed6422000f0a020100381638ce7f6d2135dcb287be1a0051fab68df536 SHA512 d796782711ae1f46092372c3a14073712d480a1a0d898746b185e68fdc570a91ecba5e63444925cd5635d03d778166b9da02fd68120026caeca912bf01faaeea WHIRLPOOL 2d3f7728f9f7d1d9c48b1ec62dd65e9a325ecf909a17ac490399b1272369722f5b0c09143809a77f84a829f2718bd20ac2e2843a40cde057c00f34620d149fd9
+MISC ChangeLog-2015 2537 SHA256 249b24b093409ade17c300c2f235b8a92cae315714bad5c59dc5963820e6f517 SHA512 640a05d38185001d3f44db9c2beab370c16255af0f876a443e8f980a637362d9c1111d9a76d66aed6841e3c37fa1ef699b08d13164a4d1750fef28adf379daa0 WHIRLPOOL eeaab894fac8b89b7640a0b92625e626d83d4909951dc95f56ab57a9e7ac95b9a07e615354a00ebf3189bd61641b0e472525d5bbf08be51524f511afa1862b60
+MISC metadata.xml 255 SHA256 3e7137870fc49956d79719e3dfe029775cbaaa097e85748c139713c46fcd1798 SHA512 b7bc93530a1726c2d4dfbc71ae29cfbb57712fd9fdd2e76fd52f35ab4368cba0497b50145d1527a3b79e465d459a380821bb1371a01c2e915dc9adc6c7fafd5f WHIRLPOOL 392188d7e069f1720be9329edfb31b11b176bf0c411023b2ceeaeabef1cacf842d70657a2a14ac2ddabbdad70a304275f3b587e9bcdfe77be63a0092e370252c
diff --git a/media-gfx/tic98/files/tic98-1.01-gentoo.diff b/media-gfx/tic98/files/tic98-1.01-gentoo.diff
new file mode 100644
index 000000000000..880dfa059545
--- /dev/null
+++ b/media-gfx/tic98/files/tic98-1.01-gentoo.diff
@@ -0,0 +1,205 @@
+diff -Nru tic98/Makefile tic98.gentoo/Makefile
+--- tic98/Makefile 1999-06-22 05:00:58.000000000 -0400
++++ tic98.gentoo/Makefile 2002-10-19 18:20:55.000000000 -0400
+@@ -1,4 +1,4 @@
+-BIN=/home/singlis/linux/bin
++BIN=/usr/bin
+ IMAGES=/home/ml/singlis
+ LIBTIC=
+ LIBS= -lm #-L/home/singlis/linux/lib -lccmalloc -ldl
+@@ -180,4 +180,4 @@
+ boundary.o getopt.o windowing.o
+ $(CC) -o $@ $^ $(LIBS)
+
+-
+\ No newline at end of file
++
+diff -Nru tic98/arithcode.c tic98.gentoo/arithcode.c
+--- tic98/arithcode.c 1999-06-21 21:48:40.000000000 -0400
++++ tic98.gentoo/arithcode.c 2002-10-19 18:19:20.000000000 -0400
+@@ -610,7 +610,7 @@
+ bits_to_go = 0;
+ }
+
+-#ifdef 0
++#ifdef none
+ void
+ arith_encode( unsigned int lbnd, unsigned int hbnd, unsigned int totl )
+ /* Arithmetically encode the range. */
+@@ -645,7 +645,7 @@
+ }
+
+
+-#ifdef 0
++#ifdef none
+ void arith_decode( unsigned int lbnd, unsigned int hbnd, unsigned int totl )
+ /* Arithmetically decode the range. */
+ {
+@@ -726,7 +726,7 @@
+
+
+
+-#ifdef 0
++#ifdef none
+
+ void
+ EncodeGammaSigned (int snum, int *pos, int *neg)
+diff -Nru tic98/b_gamma.c tic98.gentoo/b_gamma.c
+--- tic98/b_gamma.c 1999-06-21 21:48:41.000000000 -0400
++++ tic98.gentoo/b_gamma.c 2002-10-19 18:18:43.000000000 -0400
+@@ -187,7 +187,7 @@
+ }
+ }
+
+-#ifdef 0
++#ifdef none
+ void
+ b_gamma_encode_64(unsigned long num)
+ {
+diff -Nru tic98/docstrum.c tic98.gentoo/docstrum.c
+--- tic98/docstrum.c 1999-07-01 15:58:37.000000000 -0400
++++ tic98.gentoo/docstrum.c 2002-10-19 18:19:39.000000000 -0400
+@@ -672,7 +672,7 @@
+ calc_docstrum_spacing(list,neighs,0,&within,&between);
+
+ prune_neighbours_distance(neighs,len, 3*between);
+-#ifdef 0
++#ifdef none
+ prune_neighbours_angle_distance(neighs,len, 0,30, 6*within/*MIN(6*within,sqrt(2.0)*between)*/);
+ #endif
+
+diff -Nru tic98/ppmd_model.c tic98.gentoo/ppmd_model.c
+--- tic98/ppmd_model.c 1999-06-21 21:48:42.000000000 -0400
++++ tic98.gentoo/ppmd_model.c 2002-10-19 18:20:33.000000000 -0400
+@@ -496,7 +496,7 @@
+ arithmetic_encode( lbnd, hbnd, totl );
+ }
+
+-#ifdef 0
++#ifdef none
+ unsigned int
+ arith_decode_target (unsigned int totl)
+ /* Arithmetically decodes the target. */
+diff -Nru tic98.orig/page_features.c tic98/page_features.c
+--- tic98.orig/page_features.c 1999-06-22 03:48:42.000000000 +0200
++++ tic98/page_features.c 2005-08-02 19:47:09.485681960 +0200
+@@ -37,18 +37,17 @@
+ void
+ dump_header()
+ {
+- fprintf(stdout,"@arff 3
+-@relation features
+-@attribute 'Number' real
+-@attribute 'Area' real
+-@attribute 'Avg_area' real
+-@attribute 'Density' real
+-@attribute 'Aspect' real
+-@attribute 'Holes' real
+-@attribute 'Edges' real
+-@attribute 'class' string range ( {?} )
+-@data
+-");
++ fprintf(stdout,"@arff 3"
++"@relation features"
++"@attribute 'Number' real"
++"@attribute 'Area' real"
++"@attribute 'Avg_area' real"
++"@attribute 'Density' real"
++"@attribute 'Aspect' real"
++"@attribute 'Holes' real"
++"@attribute 'Edges' real"
++"@attribute 'class' string range ( {?} )"
++"@data");
+
+
+ }
+diff -ru tic98/main_tic.c tic98-new/main_tic.c
+--- tic98/main_tic.c Thu Jul 1 21:02:56 1999
++++ tic98-new/main_tic.c Fri Mar 16 11:43:56 2001
+@@ -11,6 +11,7 @@
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <string.h>
++#include <errno.h>
+
+ #include "arithcode.h"
+ #include "globals.h"
+@@ -96,8 +97,10 @@
+ marklistptr list=NULL,list2=NULL;
+ marktype copy;
+
+- if(marktype_readnamed(fn, image)!=0)
++ if(marktype_readnamed(fn, image)!=0) {
++ fprintf(stderr, "imagefn_to_list(): bad input file %s\n", fn);
+ return NULL;
++ }
+
+ *w=image->w;
+ *h=image->h;
+@@ -495,7 +498,10 @@
+
+ TimerStart(1);
+
+- freopen(outfilename[0],"wb",stdout);
++ if (! freopen(outfilename[0],"wb",stdout)) {
++ fprintf(stderr, "failed to open %s for writing: %s\n",
++ outfilename[0], strerror(errno));
++ }
+
+ tic98_init(&t);
+ tic98_start_encoding();
+@@ -503,8 +509,11 @@
+ for(i=0;i<num_in;i++){
+ int w,h,xx,yy,ok=0;
+ marktype image;
+- list=imagefn_to_list(&image,infilename[i], &w, &h);
+-
++ if (! (list=imagefn_to_list(&image,infilename[i], &w, &h))) {
++ fprintf(stderr, "cannot read file %s\n", infilename[i]);
++ exit(1);
++ }
++
+ tic98_num_encode(&t,NEW_PAGE);
+
+ for(xx=0;xx<image.w;xx++)
+@@ -560,7 +569,10 @@
+ newoutname=(char*)malloc(sizeof(char)*(strlen(outfilename[0])+10));
+ assert(newoutname);
+
+- freopen(infilename[0],"rb",stdin);
++ if (! freopen(infilename[0],"rb",stdin)) {
++ fprintf(stderr, "failed to open %s for reading: %s\n",
++ infilename[0], strerror(errno));
++ }
+
+ tic98_init(&t);
+ tic98_start_decoding();
+diff -ru tic98/marklist.c tic98-new/marklist.c
+--- tic98/marklist.c Thu Jul 1 21:56:19 1999
++++ tic98-new/marklist.c Fri Mar 16 11:44:20 2001
+@@ -94,11 +94,11 @@
+ magic = magic_popnamed (fn, &err) >> 16; /* only interested in first 2 bytes */
+
+ if (err != 0) {
+- return 1; /* failure */
+ fprintf (stderr, "error - can't open file '%s'\n", fn);
+- return 1;
++ return 1; /* failure */
+ }
+ if (!((magic == MAGIC_P1) || (magic == MAGIC_P4))) {
++ fprintf (stderr, "bad magic in file '%s'\n", fn);
+ return 1;
+ }
+ if (fn2) {
+diff -ru tic98/utils.c tic98-new/utils.c
+--- tic98/utils.c Tue Jun 22 02:48:43 1999
++++ tic98-new/utils.c Fri Mar 16 11:23:57 2001
+@@ -117,7 +117,7 @@
+ }
+ else{
+ *err=1;
+-/* error("magic_popnamed","can't open file",fn);*/
++ error("magic_popnamed","can't open file",fn);
+ return 0;
+ }
+ }
diff --git a/media-gfx/tic98/files/tic98-1.01-glibc-2.10.patch b/media-gfx/tic98/files/tic98-1.01-glibc-2.10.patch
new file mode 100644
index 000000000000..32caf5e43477
--- /dev/null
+++ b/media-gfx/tic98/files/tic98-1.01-glibc-2.10.patch
@@ -0,0 +1,20 @@
+--- tic98.orig/ppmd_enc.c 2009-07-05 14:15:53.000000000 +0200
++++ tic98/ppmd_enc.c 2009-07-05 14:18:47.000000000 +0200
+@@ -63,7 +63,7 @@
+ }
+
+ int
+-getline (FILE *fp, char *s, int max)
++tic98_getline (FILE *fp, char *s, int max)
+ /* Read line from FP into S; return its length (maximum length = MAX). */
+ {
+ int i;
+@@ -111,7 +111,7 @@
+ ppm_start_encoding (max_order, max_symbol);
+
+ /* Read in the integers */
+- while ((len = getline (fp, line, MAX_LINE)) != EOF)
++ while ((len = tic98_getline (fp, line, MAX_LINE)) != EOF)
+ {
+ count++;
+ if ((debugProgress) && ((count % debugProgress) == 0))
diff --git a/media-gfx/tic98/files/tic98-1.01-macos.patch b/media-gfx/tic98/files/tic98-1.01-macos.patch
new file mode 100644
index 000000000000..607e76f9416a
--- /dev/null
+++ b/media-gfx/tic98/files/tic98-1.01-macos.patch
@@ -0,0 +1,26 @@
+--- tic98/ppmd_hash.c.orig 2005-11-03 11:09:22.000000000 +0100
++++ tic98/ppmd_hash.c 2005-11-03 11:09:49.000000000 +0100
+@@ -2,7 +2,9 @@
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <assert.h>
++#ifndef __APPLE__
+ #include <malloc.h>
++#endif
+ #include "ppmd_hash.h"
+
+ #define HASH_NULL 0
+--- tic98/ppmd_model.c.orig 2005-11-03 11:07:09.000000000 +0100
++++ tic98/ppmd_model.c 2005-11-03 11:09:04.000000000 +0100
+@@ -1,7 +1,11 @@
+ /* PPM* model for arithmetic encoder. */
+ #include <stdio.h>
+ #include <assert.h>
++#ifndef __APPLE__
+ #include <malloc.h>
++#else
++#include <stdlib.h>
++#endif
+ #include "arithcode.h"
+ #include "ppmd_hash.h"
+
diff --git a/media-gfx/tic98/metadata.xml b/media-gfx/tic98/metadata.xml
new file mode 100644
index 000000000000..19bf1be2581e
--- /dev/null
+++ b/media-gfx/tic98/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 type="project">
+ <email>graphics@gentoo.org</email>
+ <name>Gentoo Graphics Project</name>
+</maintainer>
+</pkgmetadata>
diff --git a/media-gfx/tic98/tic98-1.01-r3.ebuild b/media-gfx/tic98/tic98-1.01-r3.ebuild
new file mode 100644
index 000000000000..f02741df8cff
--- /dev/null
+++ b/media-gfx/tic98/tic98-1.01-r3.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+
+inherit eutils
+
+DESCRIPTION="compressor for black-and-white images, in particular scanned documents"
+HOMEPAGE="http://membled.com/work/mirror/tic98/"
+SRC_URI="http://membled.com/work/mirror/tic98/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86 ~amd64-linux ~x86-linux ~ppc-macos"
+IUSE=""
+
+RESTRICT="test"
+
+S="${WORKDIR}/${PN}"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-macos.patch
+ epatch "${FILESDIR}"/${P}-gentoo.diff
+ epatch "${FILESDIR}"/${P}-glibc-2.10.patch
+
+ # respect CFLAGS and LDFLAGS
+ sed -i -e "s:CFLAGS= -O -Wall -Wno-unused:CFLAGS=${CFLAGS}:" \
+ -e "s:LIBS= -lm #-L/home/singlis/linux/lib -lccmalloc -ldl:LIBS= -lm ${LDFLAGS}:" \
+ -e "s:CC= gcc -pipe :CC=$(tc-getCC):" \
+ -e "s:CPP= gcc -pipe:CPP=$(tc-getCPP):" \
+ Makefile || die
+}
+
+src_compile() {
+ emake all
+ emake all2
+}
+
+src_install() {
+ dodir /usr/bin
+ emake BIN="${ED}"usr/bin install
+
+ # collision with media-gfx/netpbm, see bug #207534
+ rm "${ED}"/usr/bin/pbmclean || die
+}
diff --git a/media-gfx/tif22pnm/Manifest b/media-gfx/tif22pnm/Manifest
new file mode 100644
index 000000000000..d5f276c1523b
--- /dev/null
+++ b/media-gfx/tif22pnm/Manifest
@@ -0,0 +1,7 @@
+AUX tif22pnm-0.14-gentoo.patch 982 SHA256 cac51e31cdbe7e96520d0f196b5105210f74bc448c195df83565d240f6a4fe12 SHA512 05a6dfb601689422aba875d0fac29f36e0bc2d4f27f30491810290e7f6113a1f73cdd5c2f36f171a12e4549944c9a4bdbf82a572988e2a5599cc471d4a8d55e5 WHIRLPOOL 61a49253be5ab6278c7cd8f503aa3c81418ca0cb903ba2d0b8b4b044559d10e4710278de71c38c9c4be676e94d78e00e991df4becc72c0247ea5cac52153cf13
+AUX tif22pnm-0.14-math.patch 760 SHA256 f865d629eb8dcddc31e51f9d6cbcc7a566f8483ebec0fcc650714f0b3a8cc844 SHA512 616217de0ebb1ef790096d82582508e5b0df1224e2aecd35638205aa9f088683acf7e8d51db060fabcece21976b0f048ac816b361d2240656f3edb262612d6ea WHIRLPOOL 5083b1813471cc6b72e097de696929295f840dc0c2355709f55088bf4c65c2aef0c6ad3fe8eacab6a2c235d32988f4d45148d8d9bd853f42a7ca084d9a75ce66
+DIST tif22pnm-0.14.tar.gz 108047 SHA256 d59ea3f1fdd6802e66a44fbfa8979d4e61c9fd021de36675249a877392378e01 SHA512 0cc09cfca3dcf0de8d3ee50a3d9a061e80a5298f40e7bdc3483f0ec5dfcca419af797fb30c2d97ae7a1d16e3e58d627ae5a3596043eea7ad35a504abab4885f9 WHIRLPOOL fc5ceaaa451c76084d0fec0b54e8715c5a6de5b0f8d2e55430cc0ca4daa929f17b78c07ae44d490d0d471fd63199367475aed548e528d59a1203c0dab6a5cdb4
+EBUILD tif22pnm-0.14.ebuild 640 SHA256 a9d86182c3cde5aa982e777ba9f1e1afc7f970df2d43518c0024878c129d4b84 SHA512 d5cdf646084172bb6262cebee1cdbab82e7215b61189712f3a031ad21a53f2bb1323d8222c1baf283528dfab0326814707b1dbf343003c959a25b0ea3633edc0 WHIRLPOOL 781c44b0da7bc762632f44b76847c793f03013ed2a01a6585bf7d33d990ce838ab17d0f2c03674fa1105f83b779a0cbcf721ed029b19fea0dc779da73900d391
+MISC ChangeLog 3028 SHA256 a6402eec0cf3839ef5701464324f114752c4b460721b67a702653bb3a535ba33 SHA512 a666d98538cd9a872e3bae65ae5d1d3e5016fff13dd594f4aa72d5d1071ea84211bafc7f4e5ab7c04e0de9155f1be2fa35dd6cdf78cf251d0fb9e7713f9663e0 WHIRLPOOL 1f190d1dfd311a83fd1efc17dbbd3298575b056a60e353e82771ad61ae6fea640aecd4a67f927c16af7cba8e1c7048188d6a0b081012cb9d47e8e5bbd4d958ea
+MISC ChangeLog-2015 408 SHA256 7c4a9c93067785d12709be9ee5092dcaa6c1297e82d219b2aa5f2b2dbba63497 SHA512 722eea8ce3bb1d31ce377b1329668ef98da2189a52ead53f616dc726f802bed39b2185d96ccdbb960cc2117db21f66df7547d46099b1f9d12fdbdd0755cf29f5 WHIRLPOOL b6c971791fbccba88ac525ca8d8fd971b813a637bef755f3990056319662c68ff7e3ec90a15448ec2a950440905bb53d9f1fc7aab9537f9f419c78c19fc4453e
+MISC metadata.xml 324 SHA256 d01ebcaa2115dd39909d7746210fba689c888d3a1e30551974643a42e8ff2adf SHA512 6d220ad280dc8def147f95477f3b8f23b406d1ad6ec4431329b331f374ca784ad50542e55e02f4afabe60c5785b47a2a0f0fb8e515bb8e8683d30b2a53895e59 WHIRLPOOL a997682462797e3245adef4725328d3eb6552dfbc784c02a704e8dc8e6242eb8037cfc02ab0cbb13de17457a911eaa1a687624c38460a05c179e3474d3b1483b
diff --git a/media-gfx/tif22pnm/files/tif22pnm-0.14-gentoo.patch b/media-gfx/tif22pnm/files/tif22pnm-0.14-gentoo.patch
new file mode 100644
index 000000000000..f71c751bd1a5
--- /dev/null
+++ b/media-gfx/tif22pnm/files/tif22pnm-0.14-gentoo.patch
@@ -0,0 +1,44 @@
+--- configure.in
++++ configure.in
+@@ -21,7 +21,6 @@
+ dnl Checks for programs.
+ AC_PROG_CC
+ AC_LANG_C
+-CFLAGS=" "
+ dnl ^^^ set it to non-empty, so AC_PROG_CXX won't include `-g'
+ dnl AC_PROG_CXX
+ dnl AC_PTS_PROG_CFLAGS(fs, -fsigned-char)
+--- do.sh
++++ do.sh
+@@ -35,8 +35,8 @@
+ if [ x"$CMD" != x ]; then echo "Executing: $CMD"; fi
+
+ if [ "$CMD" = fast ]; then
+- L_CC="$CC -s -O3 -DNDEBUG"
+- L_LD="$LD -s"
++ L_CC="$CC -DNDEBUG"
++ L_LD="$LD"
+ elif [ "$CMD" = debug ]; then
+ L_CC="$CC $GFLAG"
+ L_LD="$LD"
+@@ -47,14 +47,14 @@
+ L_CC="checkergcc $GFLAG"
+ L_LD="checkergcc"
+ elif [ "$CMD" = small ]; then
+- L_CC="$CC -Os -DNDEBUG"
+- L_LD="$LD -s"
++ L_CC="$CC -DNDEBUG"
++ L_LD="$LD"
+ elif [ "$CMD" = final ]; then
+- L_CC="$CC -O2 -DNDEBUG"
+- L_LD="$LD -s"
++ L_CC="$CC -DNDEBUG"
++ L_LD="$LD"
+ elif [ "$CMD" = asserted ]; then
+- L_CC="$CC -O2"
+- L_LD="$LD -s"
++ L_CC="$CC"
++ L_LD="$LD"
+ elif [ "$CMD" = clean ]; then
+ rm -f *.o core DEADJOE tif22pnm png22pnm
+ exit
diff --git a/media-gfx/tif22pnm/files/tif22pnm-0.14-math.patch b/media-gfx/tif22pnm/files/tif22pnm-0.14-math.patch
new file mode 100644
index 000000000000..99c6dba3aac6
--- /dev/null
+++ b/media-gfx/tif22pnm/files/tif22pnm-0.14-math.patch
@@ -0,0 +1,31 @@
+https://bugs.gentoo.org/516274
+diff --git a/cc_help.sh.in b/cc_help.sh.in
+index b20feb6..1820304 100644
+--- a/cc_help.sh.in
++++ b/cc_help.sh.in
+@@ -7,2 +7,3 @@ LIBS_PNG='@LIBS_PNG@'
+ LIBS_TIFF='@LIBS_TIFF@'
++LIBS_MATH='@LIBS_MATH@'
+ ENABLE_DEBUG='@ENABLE_DEBUG@'
+diff --git a/configure.in b/configure.in
+index d11f42c..459ad8f 100644
+--- a/configure.in
++++ b/configure.in
+@@ -125,2 +125,8 @@ fi
+
++LIBS=""
++AC_SEARCH_LIBS([pow], [m], [LIBS_MATH="$LIBS"], [
++ AC_MSG_ERROR([unable to find the pow() function])
++])
++AC_SUBST(LIBS_MATH)
++
+ dnl Checks for header files.
+diff --git a/do.sh b/do.sh
+index fa15db8..0e9f449 100755
+--- a/do.sh
++++ b/do.sh
+@@ -117,3 +117,3 @@ SOURCES='png22pnm.c'
+ TARGET=png22pnm
+-LIBS="$LIBS_PNG"
++LIBS="$LIBS_PNG $LIBS_MATH"
+ build
diff --git a/media-gfx/tif22pnm/metadata.xml b/media-gfx/tif22pnm/metadata.xml
new file mode 100644
index 000000000000..d788f91ed14d
--- /dev/null
+++ b/media-gfx/tif22pnm/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>tex@gentoo.org</email>
+ <name>Gentoo TeX Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="google-code">sam2p</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/media-gfx/tif22pnm/tif22pnm-0.14.ebuild b/media-gfx/tif22pnm/tif22pnm-0.14.ebuild
new file mode 100644
index 000000000000..fd8bd8740a00
--- /dev/null
+++ b/media-gfx/tif22pnm/tif22pnm-0.14.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+inherit autotools eutils flag-o-matic
+
+DESCRIPTION="tif22pnm and png22pnm command-line converters"
+HOMEPAGE="http://pts.szit.bme.hu/ https://code.google.com/p/sam2p/"
+SRC_URI="https://sam2p.googlecode.com/files/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND=">=media-libs/libpng-1.2:0
+ media-libs/tiff:0"
+DEPEND="${RDEPEND}"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-gentoo.patch
+ epatch "${FILESDIR}"/${P}-math.patch
+ eautoreconf
+}
+
+src_install() {
+ dobin png22pnm tif22pnm
+ dodoc README
+}
diff --git a/media-gfx/tintii/Manifest b/media-gfx/tintii/Manifest
new file mode 100644
index 000000000000..e6a10ac26fca
--- /dev/null
+++ b/media-gfx/tintii/Manifest
@@ -0,0 +1,5 @@
+DIST tintii-2.10.0.tar.gz 620863 SHA256 2bbd9e4ff3ac85b5cf85e64f062f4cacd409afcadd155f1cd2378390dfc8268b SHA512 884a9a3393080ee064069288afc13b2f72272571efaabf013ea2029627fc2ed922dcb791b8316c1d2117faf553d6bf333cf35f0486ba82aa2dc0987f9ce5f9a3 WHIRLPOOL f700eed80ad300226fb7a0fa695aa2886cd5353dc0a5e3d9fb9cff1cc67dd2190a412ec12bc697e9cccb8fb0426f031cfaa0292e56a0dc860a4f4c096fdac922
+EBUILD tintii-2.10.0.ebuild 524 SHA256 ec781a635c2a4bc0947724effb98a2d2f3a8f1db8264094bbd9799c1353f2e4b SHA512 67ce051b5825f24fca1105cbde82cfb87329a1a9ff4a30856dd75ad86c8572c5c537d96a0c075b5465d624d6e71dc3d233e69830d80999204f5a5bef2de698d3 WHIRLPOOL 12432c5e6769a5bff77b22d95133098e9e987a31249df8f7130a35f353c5a9124cb820537a5ffd7a45a303976b85b7276e724ab5be7e839da54457144d7d9213
+MISC ChangeLog 2847 SHA256 895cb9821cb6deae92b4b6202c0ddabeec6a750e7f05b5fe084ae12122438b1b SHA512 9322466015ae64c373e952e540b80f875fea4549447f3c901434eddab987261f04975dcaf891b1c6421ad45dc822ffff06d6164d69732d872621e55bf0382c93 WHIRLPOOL b338a14b6be93851ab63edec3acd91969f0c9af978410d627319c39590cdc242ccd9b19bd5b8bc905cf509c8dd37530388a3984f04ca7c33e77623630c36f1cf
+MISC ChangeLog-2015 1138 SHA256 46636b8dec1c3bd440a344a789546f8ecd6139e56f0a1ec46324638fea39bbd1 SHA512 50d4156b8fe30862528eb198fb658fd967def29d48a5e02741d1d0ec63a824e31112e8681a7c5b2ddb77ae134f4fd91065154515108ef292c66ab63fae7561a7 WHIRLPOOL 209d025ff3bbb3012a7254951afdc8d2c3b4e7e2f5e39ff7ead2f3adf9d01e94ef909541f65bb430068fd2ab71c4854e7783f1cd7c62b5dfcdddffe2a38c4cf4
+MISC metadata.xml 255 SHA256 3e7137870fc49956d79719e3dfe029775cbaaa097e85748c139713c46fcd1798 SHA512 b7bc93530a1726c2d4dfbc71ae29cfbb57712fd9fdd2e76fd52f35ab4368cba0497b50145d1527a3b79e465d459a380821bb1371a01c2e915dc9adc6c7fafd5f WHIRLPOOL 392188d7e069f1720be9329edfb31b11b176bf0c411023b2ceeaeabef1cacf842d70657a2a14ac2ddabbdad70a304275f3b587e9bcdfe77be63a0092e370252c
diff --git a/media-gfx/tintii/metadata.xml b/media-gfx/tintii/metadata.xml
new file mode 100644
index 000000000000..19bf1be2581e
--- /dev/null
+++ b/media-gfx/tintii/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 type="project">
+ <email>graphics@gentoo.org</email>
+ <name>Gentoo Graphics Project</name>
+</maintainer>
+</pkgmetadata>
diff --git a/media-gfx/tintii/tintii-2.10.0.ebuild b/media-gfx/tintii/tintii-2.10.0.ebuild
new file mode 100644
index 000000000000..2ba2f2da7a26
--- /dev/null
+++ b/media-gfx/tintii/tintii-2.10.0.ebuild
@@ -0,0 +1,24 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+WX_GTK_VER="3.0"
+
+inherit wxwidgets
+
+DESCRIPTION="A photo editor for selective color, saturation, and hue shift adjustments"
+HOMEPAGE="http://www.indii.org/software/tintii"
+SRC_URI="http://www.indii.org/files/tint/releases/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND="x11-libs/wxGTK:${WX_GTK_VER}[X]"
+DEPEND="${RDEPEND}
+ dev-libs/boost"
+
+src_prepare() {
+ default
+ setup-wxwidgets
+}
diff --git a/media-gfx/transfig/Manifest b/media-gfx/transfig/Manifest
new file mode 100644
index 000000000000..d34481bb2cd1
--- /dev/null
+++ b/media-gfx/transfig/Manifest
@@ -0,0 +1,21 @@
+AUX transfig-3.2.5-solaris.patch 263 SHA256 ef80b926734637eea2cf55c35746d5c1f405ddcbcce989136d223d79668fa995 SHA512 ea76ae31b050a80bf8321a554d0d5c0f1a300cc27b063b5cda6194c465757f7fd00916fee08d69369740a59850fa978a700e7c780911db5fcf04a1c23818f8f2 WHIRLPOOL 69b897dda43c1d56c35b1c0476c93b953bdf3dbcc61717d991f415c6d8ffd93a3e4bb94c086635ad706a5d1d33a4902fca62e015819c4012f19d670ca4c6cabc
+AUX transfig-3.2.5c-maxfontsize.patch 1956 SHA256 b3f1ff76e940a7912f7617a62355d1cc0aec6cc793da1d2472fb3dcb4c2744c6 SHA512 f135d99d69988d5d4f0ab803ece9d2d88e1ef2e0605887328a92d3cbca561dc20869dbd8f6aa3eee9e59d74786eafcd3552e2076bff46b1c8002724c94a6247a WHIRLPOOL 0e6fe8b9164e771f447b454dda148f54234571a977fadee1b4c733e45c6d9d430e03b88ae6ff55b76fd3e1028cf4530f6ab5d85b42569bf95ee62a51923aa371
+AUX transfig-3.2.5d-MAXWIDTH.patch 637 SHA256 0a9ea3f1aabf2110e348e8cd789bd9863b3f9ec5ce729041b491d13beca71df4 SHA512 fe5d4afca4b57e6cde61f91d6ddf4be4ed83fee2ecb07c796ad95c8a5a96a19592abec0b520505030e0d00bd1bb1192bb90a9f0f0c95eb3f6c70266e598492a6 WHIRLPOOL eab17b7e3a03421a1b7f191e5ea01bec7e0804c47a1318089250922c8a5b6e0d0be562c503c622ed05d61f0b1f8aa22883e9f6c9fa0c31ab607a7c290ea49541
+AUX transfig-3.2.5d-fig2mpdf-r1.patch 41613 SHA256 13360b2bd5916b459b3b1debf18f66fbe8abead874b2eea1c77e09ffa404a85a SHA512 cac4ce672f1c9ba0f97243d8e550e9191676006f8ad6a3584a48e3f557af1e2ade1584f652fe812bf07250ad0e56fffd8f2d63b4827921e98a120ef635c62fc2 WHIRLPOOL 7467996c4b2ef5a1730d7595df6227b133c561793e327bf3bbf14b295c8cd2167cb94a002ba3711973adab38fa4d54dc380d8774ed15aa81e4b2a21deb6f94ae
+AUX transfig-3.2.5d-leadspace.patch 725 SHA256 dbb22b727835186d5c9422decf130cf2b292b7fde288aa212b9e52144de4f79f SHA512 70b3f171f028febee8689bcbca66d67de524c734bd09a978eae40b9c15ade06d884380e77dccd69518a2af286e4f3033b1aedd188871b4a5c701e020fc2607d5 WHIRLPOOL a14b46505dc2f2ccb6ce15dca16f3b0ff9f10b3c544302d691341dc83529d3736769b56a5b8d42e95e7a084dc2ad3b934f3b393cbc4430f7870daae3c27b6357
+AUX transfig-3.2.5d-libpng-1.5.patch 1449 SHA256 8621fc408f700225ff9498f0743afabb135c729b244a2bcafd3418692d2a4230 SHA512 66c0018a62a22cec02df59ac80326e0d77399190b66a7df125886bb76d1e682655ef1a498e940b7ab0a5e12e2156dc98b3d88a5d81513a47154ebf4c62ba02dc WHIRLPOOL cccf802ab472fb76ed4f1e306a60560927bdcca647f339da3038790664092e41a61f1a6fdc17aee00833f474c66e43ea8d83ef4d0a9f8afc1fdca53f42a7d955
+AUX transfig-3.2.5d-precision.patch 1633 SHA256 e2d4c992e438df5271d462cae48c5472a485517fb4093577c4461b6f97e45bb0 SHA512 8ed38b2f295da48a56049368f0643b8e1c26d06c3a340c81999e67608ec70854d72703ae81be89006efb54a0a9a4145b71100c4dc48d9602dd1cb86545cf2763 WHIRLPOOL dc27333136aeeb83082d2e857dba2086ddd0f80ebfda24447bd8e6290ce069daa8db0ad9d6ff6ec1e07ecd021526a457d7fdd68038512bdb3103136677396bad
+AUX transfig-3.2.5e-fprintf_format_warnings.patch 1463 SHA256 359845d2da3b7273d8e85d7a4fe8b9ec39b0cdfea02fb2da3276b353c937d6d1 SHA512 28d85316b96d371fb1c8459ebcccf5f482f66c94edc7b11830007c10d7fb0d444430af36f951bde1c49f4b313fce4585454913bce179814de20154bf755647cf WHIRLPOOL d0a58d5664123c22e4b325d6ccd32985a6bc52cdee2deb97e25c221dbe9e38835474899990e3badd7de426a840d15963138a0728f2a5a90b635c120eebc6a902
+AUX transfig-3.2.5e-man-hyphen.patch 16349 SHA256 85d64fcc42bf0e1c14ac4a621535e1a778e9164f840f2c2d077c5d42fadc0266 SHA512 61a0ee8b5e91929806d1255cf18e4431142c59855285c381fb983241ebda8b6c4c9186a152f1cd448190cb144ffb8a5c7d8b8d7d17c789909edebdb0bd71ab32 WHIRLPOOL b8ddbf572c6d317d9fcc549f7cf725740ede1887e0de32e14c3cdd284d3188fffcb8ff62c1f401681a2ac26221a6e8e264d5aca2e8a7e4b0f0e96760a37624e8
+AUX transfig-3.2.5e-typos.patch 801 SHA256 755994323cff774c7f6e48834a98048998fdabd44de9ce152cf2035fd0cc5e86 SHA512 2cdc36f2361a2606164688d18ae8a2e23debb6d16b656bf0f3762d52a2a6175c7b279bb6ee3226f3f884ca043b03ce39aec9870800890eff017f6734486c3707 WHIRLPOOL 0f7dff1b45a789e03f83027ae49ffc1fdb14619c2b396d5f0c537de58f17dd90036697e81c654da4638cba4bafd94bf96b74c132c2cb5ab2932b330959ef9c02
+AUX transfig-ru_RU.CP1251.ps 6079 SHA256 8b3ce8f098776fb8ed1623903fe4af70e439d708e6b58444c72023c2b4d45a3c SHA512 aba314ed3ec3ff2f2b07c97195d1059c0c64f6c5dbfeb41b93bc0d3bb77becffffbaae8aecf552d27f3fc337d23e150601c0dd703997bba9fc18b154c89ddda1 WHIRLPOOL 4c4cc3c24d8b6f84533262abc795fc47ea7e848447b6ea72c8fcb98d3673523d90baaf04731f3ff40f78143a0492763bd7258247690d1cd560d2736290e3165e
+AUX transfig-ru_RU.KOI8-R.ps 6015 SHA256 af71380057217460eb476e9a6800e3c7bbe22db44420d0d5d6939bd3321a4c86 SHA512 1222403ca7fa7e1a796e46e9693237d9a7afa8889e66af17b5c705f0383ab32382a21a499059f0fef5b6a3640385f74da77e5d1a8e4406ef1c635e48a551885d WHIRLPOOL 6c661b755be14a959d62f2f7fbe9e6fad8d335bc8fa32686b5b1042dd5057b45025303f1f8fe493b7783e888f6d3b0a78249d381846a6903c9f55dba79f33f94
+AUX transfig-uk_UA.KOI8-U.ps 6023 SHA256 b71427fb5e938ee285aea7290af41bcfc1f6820520f5ca7a2746dd51c00b5eee SHA512 e7dd914414594e27e38905c114e9ce86a29a551facadf08ba8beb7087e5e30e400a3e3cc4472d31dce3b2f0cf1b864806915c71efd76b518d3a815a98bb2d020 WHIRLPOOL eb1f5579de8c4845db836a4cb418bf9205a47d2c938626ff6b4a4bf59241c833d6967d5b40c32fdaf6965fabb62090a596586be0b272dc6636aec2d13e46eaec
+DIST fig2mpdf-1.1.2.tar.bz2 191438 SHA256 35f02293592244d5ff4a7a60e00023696c05dec855495871226c67669ba4daf3 SHA512 36dea40008371386b47a4451e2f311cc2540ab063e3b61e628a535775d62a8840c5cc20c37b80465184bf041c6e583aaf3e5156079e72211d0a87ff3346d2980 WHIRLPOOL 73f98e0c8f26a0a9f5a06ba38169a107587dd09ecce69c69d251d46274697db7a1923479030693bf9079705820ce67b3df62d0de54492039acd0ac71f4f22fa7
+DIST transfig.3.2.5d.tar.gz 497451 SHA256 ae81214177fb05f91f6e43b0b42633b6e0024570cbc6591a3858e12100ce8aaa SHA512 6e9b9551bf3bff7a94d6a0d8bac336c36b2721f9babc4cf38472737ac737afd27f93dcb012e510d6c439c6aaeed95ba03b19508b4229386915c0dc0751daac10 WHIRLPOOL ca503a9ba228f54d20a6771dfca9dd0e6bb127618db8bc94bf1a62149e007627786fe2eee8f15a47723781d8381950cfac97264b5846550f7c669a8d8c82a1f2
+DIST transfig.3.2.5e.tar.gz 531256 SHA256 8ec5a8f13254dd155622ed3ee0fda1382b1e2b5882d83b9aca1871f12a3e7744 SHA512 ed1379f1112514d90a4b3eecd3222baad311d804b5090e8e66867ec299e4f9a5f8d83ef8939aa6ecaa85a18143b8fb9b97f78e078ac5eeb934a158c55de6bb1e WHIRLPOOL a781dd6fd85ff7ff12219444a8fbc91fc8c7f6fe1b4628cc1fd6bb3feae29392edc62a8f3a4db0945bdf2e67a67af7046864826024acdbaa8a8581a873cdb82f
+EBUILD transfig-3.2.5d-r1.ebuild 2701 SHA256 9be7d58284c642cdc319296cc520e19aac33392e5dfb20b141d67ccdd94a27fe SHA512 fc31324d34c7fad3f117018162abc8d945efceb819ad7572df9368d00d6d4c77cd47114a4a915c0dcb41cf70f18db7e21ef4126b298fae05c31fdf422c718cc7 WHIRLPOOL d7de72d5d97e449401c70ad8ca5e17fc71e7035441065dd0605c0e5850d09ac76d7e33407d7734bfad0d309c50e85758f986902075b386d523edca51c4f2b206
+EBUILD transfig-3.2.5e.ebuild 2702 SHA256 80b07c142896fbf0b47a36520786a0dedf9a8d98851206c1701a500feb776014 SHA512 1ce1d7e1473553ccf7bee8a5e8b2e677da6c2347b6a272528e6596cabea100ab2d9565d8954473e812d561fd2da24779d8bc7fd8c64584a3369386c09661043b WHIRLPOOL 3de68fc233d35f2607fdc1735992b8540ba92e64c164bf655e9c634648397b93b0b5997bc83939a58cfa4ee12f03b6cf93c1d5c84d9a7570e0f738817d1ae536
+MISC ChangeLog 2938 SHA256 6403e9d91d7ce6cafd604d5397bf606d26d279ab2fb0fa52dccb13827ea4d90d SHA512 7dca29c5c4796e1780441376b73373f0a6881b6829dc2198c038de23c4480cc815d62eb0cfe912c9c856282b13c89d793e36c69d414f5cb9305d532262f50ce6 WHIRLPOOL 61a5715ce41e7aaec78b9ad8d0a10679d0ec3e6c21315240b70cdf81997bbac4da495e0761516e29dd11bb75935b67d69ea8647043745e1451d12c80448fc486
+MISC ChangeLog-2015 12854 SHA256 df42b41e6259d566fa4f7ba91f8d09f88881f39d3b05740a2046e927ac12bb05 SHA512 9474319e26af282a9d52befb8dc569b6464efd8bb704cf986d8d85a7f3cdcbbd64569c9e8ded50510d9868438b6ca26547818581da08993d3b378f39bfc15419 WHIRLPOOL 1ee16d1fcd5f8199e1a96988d7b9bdb980e3ee23a592ceedcc20f069ec36409a579198af1ab4aecdd107846ba7f7caa7f15180fc0d708bbaca4c388f86996d81
+MISC metadata.xml 212 SHA256 00d100e8d1bbfee4c0e3dcd7695c183150d06133fddd672e246c21bc02c4c8d7 SHA512 05c3af7b4c872998a64d3d6dce356ad1bfeb67f4ec845e82e022a89c96945ba5fe8848df48b8736feb39bd4d9a7d6714f0895a9c824e3c67d903ea3da1ca0f22 WHIRLPOOL 1fd2058c94f0e8891205ed1e106759e99c8bd0f765618fc2fc801e566241b062a1219f5044b8b7ed1299b28a189846c2d125ea86b71f72e9fa403ad3f0dea4b3
diff --git a/media-gfx/transfig/files/transfig-3.2.5-solaris.patch b/media-gfx/transfig/files/transfig-3.2.5-solaris.patch
new file mode 100644
index 000000000000..680a0591f1cf
--- /dev/null
+++ b/media-gfx/transfig/files/transfig-3.2.5-solaris.patch
@@ -0,0 +1,12 @@
+Fixes complation error on both Darwin and Solaris
+
+--- fig2dev/fig2dev.h
++++ fig2dev/fig2dev.h
+@@ -20,6 +20,7 @@
+ #include "patchlevel.h"
+ #include <math.h>
+ #include <sys/file.h>
++#include <sys/stat.h>
+ #include <signal.h>
+ #include <string.h>
+ #include <pwd.h>
diff --git a/media-gfx/transfig/files/transfig-3.2.5c-maxfontsize.patch b/media-gfx/transfig/files/transfig-3.2.5c-maxfontsize.patch
new file mode 100644
index 000000000000..9ce105fe9355
--- /dev/null
+++ b/media-gfx/transfig/files/transfig-3.2.5c-maxfontsize.patch
@@ -0,0 +1,44 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 09_maxfontsize.dpatch by Roland Rosenfeld <roland@debian.org>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: For fonts >=42pt use the given font size in TeX instead of
+## DP: restricting this to 42pt. This allows to create posters using
+## DP: \usepackage{type1cm}. See
+## DP: http://linuxgazette.vlsm.org/issue96/artime.html and Bug#343139
+
+@DPATCH@
+diff -urNad transfig~/LATEX.AND.XFIG transfig/LATEX.AND.XFIG
+--- transfig~/LATEX.AND.XFIG
++++ transfig/LATEX.AND.XFIG
+@@ -55,7 +55,7 @@
+ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% LaTeX Preamble %%%%%%%%%%%%%%%%%%%%%%%%%
+ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+-\documentstyle[12pt,bezier,amstex]{article} % include bezier curves
++\documentclass[12pt,bezier,amstex]{article} % include bezier curves
+ \renewcommand\baselinestretch{1.0} % single space
+ \pagestyle{empty} % no headers and page numbers
+ \oddsidemargin -10 true pt % Left margin on odd-numbered pages.
+@@ -72,7 +72,9 @@
+ \usepackage{epsfig}
+
+ \usepackage{graphicx} % Graphics package
+-
++
++\usepackage{type1cm} % Necessary for fonts bigger than 42pt
++
+ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Document Beginning %%%%%%%%%%%%%%%%%%%%%
+ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+diff -urNad transfig~/fig2dev/dev/texfonts.h transfig/fig2dev/dev/texfonts.h
+--- transfig~/fig2dev/dev/texfonts.h
++++ transfig/fig2dev/dev/texfonts.h
+@@ -86,6 +86,7 @@
+
+ #define TEXFONTSIZE(S) (texfontsizes[((S) <= MAXFONTSIZE) ? (int)(round(S))\
+ : (MAXFONTSIZE-1)])
++#define TEXFONTSIZE(S) (((S) <= MAXFONTSIZE) ? texfontsizes[(int)(round(S))] : (S))
+ #define TEXFONTMAG(T) TEXFONTSIZE(T->size*(rigid_text(T) ? 1.0 : fontmag))
+
+ void setfigfont( F_text *text ); /* genepic.c */
diff --git a/media-gfx/transfig/files/transfig-3.2.5d-MAXWIDTH.patch b/media-gfx/transfig/files/transfig-3.2.5d-MAXWIDTH.patch
new file mode 100644
index 000000000000..3ac14818655a
--- /dev/null
+++ b/media-gfx/transfig/files/transfig-3.2.5d-MAXWIDTH.patch
@@ -0,0 +1,19 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 23_MAXWIDTH.dpatch by Roland Rosenfeld <roland@debian.org>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Increasese MAXWIDTH of embedded images from 8K to 16K (Closes: #610466)
+
+@DPATCH@
+diff -urNad '--exclude=CVS' '--exclude=.svn' transfig~/fig2dev/dev/psencode.c transfig/fig2dev/dev/psencode.c
+--- transfig~/fig2dev/dev/psencode.c
++++ transfig/fig2dev/dev/psencode.c
+@@ -18,7 +18,7 @@
+
+ #include "fig2dev.h"
+
+-#define MAXWIDTH 8192
++#define MAXWIDTH 16384
+
+ #define put_string nc=strlen(s); for(i=0;i<nc;i++) (putc((s[i]),tfp)); Nbyte += nc
+
diff --git a/media-gfx/transfig/files/transfig-3.2.5d-fig2mpdf-r1.patch b/media-gfx/transfig/files/transfig-3.2.5d-fig2mpdf-r1.patch
new file mode 100644
index 000000000000..879b4471254c
--- /dev/null
+++ b/media-gfx/transfig/files/transfig-3.2.5d-fig2mpdf-r1.patch
@@ -0,0 +1,1425 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 14_fig2mpdf.dpatch by Michael Pfeiffer <p3fff@web.de>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+
+## DP: creating multilayered or singlelayer PDF or EPS figures for
+## DP: including into LaTeX documents.
+## DP: http://p3f.gmxhome.de/fig2mpdf/fig2mpdf.html
+
+@DPATCH@
+diff -urNad '--exclude=CVS' '--exclude=.svn' transfig~/doc/fig2dev.1 transfig/doc/fig2dev.1
+--- transfig~/doc/fig2dev.1
++++ transfig/doc/fig2dev.1
+@@ -53,8 +53,8 @@
+ \fBbox, cgm, epic, eepic, eepicemu, emf, eps, gbx (Gerber beta driver), gif, ibmgl, jpeg,
+ latex, map (HTML image map), mf (MetaFont),
+ mp (MetaPost), mmp (Multi-MetaPost),
+-pcx, pdf, pdftex, pdftex_t, pic, pictex, png, ppm, ps,
+-pstex, pstex_t, pstricks, ptk (Perl/tk),
++pcx, pdf, pdftex, pdftex_t, pdftex_p, pic, pictex, png, ppm, ps,
++pstex, pstex_t, pstex_p, pstricks, ptk (Perl/tk),
+ shape (LaTeX shaped paragraphs), sld (AutoCad slide format),
+ svg (beta driver), textyl,
+ tiff, tk (tcl/tk), tpic, xbm and
+@@ -1062,6 +1062,62 @@
+ font. Option 1 sets LaTeX font size only. Option 2 issues no font
+ commands at all.
+
++.SH PSTEX_P and PDFTEX_P OPTIONS
++The \fBpstex_p\fR language has the same intention as
++the combination of \fBpstex\fR and \fBpstex_t\fR.
++The only reason to use \fBpstex_p\fR is that you have partially overlayed texts.
++\fBpstex_p\fR splits the Fig file concerning the depths of existing texts. Because
++of it's necessary to get the resulting size of the figure for the pdf document
++you have to specify the target document format
++(i.e. using \fBpstex_p\fR rsp. \fBpdftex_p\fR).
++.br
++Two files results by using this language:
++.br
++.HP +.3i
++1) A bash script for creating and removing the necessary graphics files.
++Extension: \fB.create\fR
++.HP +.3i
++.HP +.3i
++2) The latex code which includes all graphics files and special texts. Content is
++put to stdout.
++
++.TP
++The \fBpstex_p\fR driver has the following special options:
++
++.TP
++.B \-p basename
++specifies the basename of the files to be created (see (1) above). This option
++is mandatory.
++.TP
++.B "\-d dmag"
++Set a separate magnification for the length of line dashes to
++.I dmag.
++.TP
++.B \-E num
++Set encoding for latex text translation (0 no translation, 1 ISO-8859-1, 2 ISO-8859-2)
++.TP
++.B "\-l lwidth"
++Sets the threshold between LaTeX thin and thick lines to
++.I lwidth
++pixels.
++LaTeX supports only two different line width: \\thinlines and \\thicklines.
++Lines of width greater than
++.I lwidth
++pixels are drawn as \\thicklines.
++Also affects the size of dots in dotted line style.
++The default is 1.
++.TP
++.B \-v
++Verbose mode.
++.TP
++.B \-F
++Don't set the font face, series, and style; only set it's size and the
++baselineskip. By default, fig2dev sets all 5 font parameters when it
++puts some text. The disadvantage is that you can't set the font from your
++LaTeX document. With this option on, you can set the font from your LaTeX
++document (like "\fB\\sfshape \\input picture.eepic\fR").
++
++
+ .SH TK and PTK OPTIONS (tcl/tk and Perl/tk)
+ .TP
+ .B \-l dummy_arg
+@@ -1107,6 +1163,13 @@
+ .PP
+ Rotated text is only supported in the IBM-GL (HP/GL) and PostScript (including eps)
+ languages.
++.PP
++In \fBpdftex_p\fR language \fIfig2dev\fR can not determine the exact sizes of
++the special texts set by pdflatex afterwards. If these texts are bigger than
++expected the calculated bounding box might be too small so that some texts passes
++over the figure boundaries. If this happen you have to put an invisible
++rectangle (line width 0) around the text or the entire figure.
++
+ .SH COPYRIGHT
+ Copyright (c) 1991 Micah Beck
+ .br
+@@ -1187,3 +1250,7 @@
+ The GBX (Gerber) driver was written by
+ .br
+ Edward Grace (ej.grace@imperial.ac.uk).
++.sp
++The PSTEX_P and PDFTEX_P drivers (overlayed LaTeX texts) was written by
++.br
++Michael Pfeiffer (p3f@gmx.de)
+diff -urNad '--exclude=CVS' '--exclude=.svn' transfig~/fig2dev/dev/genpstex.c transfig/fig2dev/dev/genpstex.c
+--- transfig~/fig2dev/dev/genpstex.c
++++ transfig/fig2dev/dev/genpstex.c
+@@ -70,7 +70,307 @@
+ genps_end ();
+
+ static char pstex_file[1000] = "";
++static int iObjectsRead = 0;
++static int iTextRead = 0;
++static int iObjectsFileNumber = 0;
++static int iStartDepth;
++static int iLastDepth;
++static FILE * ptCreateFile;
++static char szFileName[1000];
++static int iLength;
++static int iPdfOutputs = 0;
++
++#ifdef never
++static double unitlength;
++static double dash_mag = 1.0;
++
++static int (*translate_coordinates)() = NULL;
++static int (*translate_coordinates_d)() = NULL;
++#else
++extern double unitlength;
++extern double dash_mag;
++
++extern int (*translate_coordinates)();
++extern int (*translate_coordinates_d)();
++#endif
++
++#define TOP 840
++#define SWAP(x,y) {tmp=x; x=y; y=tmp;}
++#define TRANS(x,y) (*translate_coordinates)(&x,&y)
++#define TRANS2(x1,y1,x2,y2) (*translate_coordinates)(&x1,&y1); \
++ (*translate_coordinates)(&x2,&y2)
++#define TRANSD(x,y) (*translate_coordinates_d)(&x,&y)
++
++static void genpstex_p_finalize_objects(int depth);
++
++/*************************************************************************
++ *************************************************************************/
++static
++translate2(xp, yp)
++ int *xp, *yp;
++{
++ *xp = *xp + 1;
++ *yp = (double)(TOP - *yp -1);
++ }
++
++static
++translate1_d(xp, yp)
++ double *xp, *yp;
++{
++ *xp = *xp + 1.0;
++ *yp = *yp + 1.0;
++ }
++
++static
++translate2_d(xp, yp)
++ double *xp, *yp;
++{
++ *xp = *xp + 1.0;
++ *yp = (double)TOP - *yp -1.0;
++ }
++
++/*************************************************************************
++ *************************************************************************/
++void genpstex_p_option(opt, optarg)
++char opt, *optarg;
++{
++ if (opt == 'p')
++ {
++ strcpy(pstex_file, optarg);
++ }
++ else
++ genlatex_option(opt, optarg);
++}
++
++
++/*************************************************************************
++ *************************************************************************/
++void genpstex_p_start(objects)
++ F_compound *objects;
++{
++ int tmp;
++ struct stat tStat;
++ long lUnitLength;
++
++ if (*pstex_file == '\0')
++ {
++ put_msg("Argument -p is mandatory to pstex_p.");
++ exit(1);
++ }
++
++ strncpy(szFileName, pstex_file, 900);
++ iLength = strlen(szFileName);
++
++ sprintf(szFileName + iLength, ".create");
++ ptCreateFile = fopen (szFileName, "wb");
++
++ if ( ! ptCreateFile)
++ {
++ put_msg("Couldn't open %s for writing", szFileName);
++ exit(1);
++ }
++ fstat(fileno(ptCreateFile), & tStat);
++ fchmod (fileno(ptCreateFile), tStat.st_mode | ((tStat.st_mode & (S_IRUSR | S_IRGRP | S_IROTH)) >> 2));
++ fprintf(ptCreateFile, "#!/bin/bash\n\n", szFileName);
++
++ fprintf(ptCreateFile, "while getopts \"r\" Option\n");
++ fprintf(ptCreateFile, "do\n");
++ fprintf(ptCreateFile, " case $Option in\n");
++ fprintf(ptCreateFile, " r) iOptRemove=1;;\n");
++ fprintf(ptCreateFile, " *) echo \"illegal option -$Option\"\n");
++ fprintf(ptCreateFile, " esac\n");
++ fprintf(ptCreateFile, "done\n");
++ fprintf(ptCreateFile, "shift $(($OPTIND - 1))\n");
++
++ texfontsizes[0] = texfontsizes[1] =
++ TEXFONTSIZE(font_size != 0.0? font_size : DEFAULT_FONT_SIZE);
++
++ unitlength = mag/ppi;
++ dash_mag /= unitlength*80.0;
++
++ translate_coordinates = translate2;
++ translate_coordinates_d = translate2_d;
++
++ TRANS2(llx, lly, urx, ury);
++ if (llx > urx) SWAP(llx, urx)
++ if (lly > ury) SWAP(lly, ury)
++
++ /* LaTeX start */
++
++ /* print any whole-figure comments prefixed with "%" */
++ if (objects->comments) {
++ fprintf(tfp,"%%\n");
++ print_comments("% ",objects->comments, "");
++ fprintf(tfp,"%%\n");
++ }
++
++ lUnitLength = (long) (round(4736286.72*unitlength));
++ fprintf(tfp, "\\setlength{\\unitlength}{%lisp}%%\n",
++ lUnitLength);
++ /* define the SetFigFont macro */
++ define_setfigfont(tfp);
++
++ sprintf(szFileName + iLength, ".size");
++ fprintf(ptCreateFile, "if [ \"$iOptRemove\" == \"\" ]; then\n");
++ if (iPdfOutputs)
++ fprintf(ptCreateFile, " echo \"\\setlength\\pdfpagewidth{%3.2fpt}\\setlength\\pdfpageheight{%3.2fpt}\" > %s\n",
++ (float) lUnitLength / 65536 * (urx - llx), (float) lUnitLength / 65536 * (ury - lly), szFileName);
++ else
++ fprintf(ptCreateFile, "echo -n\"\" > %s\n", szFileName);
++ fprintf(ptCreateFile, "else\n rm -f %s\nfi\n", szFileName);
++}
++
++/*************************************************************************
++ *************************************************************************/
++void genpdftex_p_start(objects)
++ F_compound *objects;
++{
++ iPdfOutputs = 1;
++ genpstex_p_start(objects);
++}
++
++
++/*************************************************************************
++ *************************************************************************/
++int genpstex_p_end()
++{
++ if (iTextRead)
++ {
++ fprintf(tfp, "\\end{picture}%%\n");
++ iTextRead = 0;
++ }
++ if (iObjectsRead)
++ {
++ genpstex_p_finalize_objects(iLastDepth);
++ iObjectsRead = 0;
++ }
++
++ /* LaTeX ending */
++ fprintf(tfp, "\\begin{picture}(%d,%d)\n", urx-llx, ury-lly);
++ fprintf(tfp, "\\end{picture}%%\n");
++
++ fclose(ptCreateFile);
++
++ /* all ok */
++ return 0;
++}
++
++
++/*************************************************************************
++ *************************************************************************/
++void genpstex_p_finalize_objects(depth)
++int depth;
++{
++ char szFileName[1000];
++ int iLength;
++
++ strncpy(szFileName, pstex_file, 900);
++ iLength = strlen(szFileName);
++
++
++ sprintf(szFileName + iLength, "%03d", iObjectsFileNumber++);
++ fprintf(ptCreateFile, "if [ \"$iOptRemove\" == \"\" ]; then\n");
++ if (iPdfOutputs)
++ {
++ fprintf(ptCreateFile, " %s -L pstex -D +%d,%d %s", prog, depth, iStartDepth, from, szFileName);
++ fprintf(ptCreateFile, " | epstopdf -f > %s.pdf\n", szFileName, szFileName);
++ }
++ else
++ fprintf(ptCreateFile, "%s -L pstex -D +%d,%d %s %s.eps\n", prog, depth, iStartDepth, from, szFileName);
++ fprintf(ptCreateFile, "else\n rm -f %s.", szFileName);
++ if (iPdfOutputs)
++ fprintf(ptCreateFile, "pdf");
++ else
++ fprintf(ptCreateFile, "eps");
++ fprintf(ptCreateFile, "\nfi\n");
++
++ fprintf(tfp, "\\begin{picture}(0,0)%%\n");
++/* newer includegraphics directive suggested by Stephen Harker 1/13/99 */
++#if defined(LATEX2E_GRAPHICS)
++# if defined(EPSFIG)
++ fprintf(tfp, "\\epsfig{file=%s.eps}%%\n",szFileName);
++# else
++ fprintf(tfp, "\\includegraphics{%s}%%\n",szFileName);
++# endif
++#else
++ fprintf(tfp, "\\special{psfile=%s.eps}%%\n",szFileName);
++#endif
++ fprintf(tfp, "\\end{picture}%%\n");
++}
++
++/*************************************************************************
++ *************************************************************************/
++void genpstex_p_object(depth)
++int depth;
++{
++ if (iTextRead)
++ {
++ fprintf(tfp, "\\end{picture}%%\n");
++ iTextRead = 0;
++ }
++ if (iObjectsRead == 0)
++ {
++ iStartDepth = depth;
++ iObjectsRead = 1;
++ }
++ iLastDepth = depth;
++
++}
+
++void genpstex_p_arc(obj)
++F_arc *obj;
++{
++ genpstex_p_object(obj->depth);
++}
++
++
++void genpstex_p_ellipse(obj)
++F_ellipse *obj;
++{
++ genpstex_p_object(obj->depth);
++}
++
++void genpstex_p_line(obj)
++F_line *obj;
++{
++ genpstex_p_object(obj->depth);
++}
++
++void genpstex_p_spline(obj)
++F_spline *obj;
++{
++ genpstex_p_object(obj->depth);
++}
++
++
++
++/*************************************************************************
++ *************************************************************************/
++void genpstex_p_text(t)
++F_text *t;
++{
++
++ if (!special_text(t))
++ genpstex_p_object(t->depth);
++ else
++ {
++ if (iObjectsRead)
++ {
++ genpstex_p_finalize_objects(iLastDepth);
++ iObjectsRead = 0;
++ }
++ if (iTextRead == 0)
++ {
++ fprintf(tfp, "\\begin{picture}(0,0)(%d,%d)\n", llx, lly);
++ iTextRead = 1;
++ }
++ genlatex_text(t);
++ }
++
++}
++
++/*************************************************************************
++ *************************************************************************/
+ void genpstex_t_option(opt, optarg)
+ char opt, *optarg;
+ {
+@@ -112,6 +412,8 @@
+ else genlatex_text(t);
+ }
+
++/*************************************************************************
++ *************************************************************************/
+ void genpstex_text(t)
+ F_text *t;
+ {
+@@ -128,6 +430,32 @@
+ genlatex_option(opt, optarg);
+ }
+
++struct driver dev_pstex_p = {
++ genpstex_p_option,
++ genpstex_p_start,
++ gendev_null,
++ genpstex_p_arc,
++ genpstex_p_ellipse,
++ genpstex_p_line,
++ genpstex_p_spline,
++ genpstex_p_text,
++ genpstex_p_end,
++ INCLUDE_TEXT
++};
++
++struct driver dev_pdftex_p = {
++ genpstex_p_option,
++ genpdftex_p_start,
++ gendev_null,
++ genpstex_p_arc,
++ genpstex_p_ellipse,
++ genpstex_p_line,
++ genpstex_p_spline,
++ genpstex_p_text,
++ genpstex_p_end,
++ INCLUDE_TEXT
++};
++
+ struct driver dev_pstex_t = {
+ genpstex_t_option,
+ genpstex_t_start,
+diff -urNad '--exclude=CVS' '--exclude=.svn' transfig~/fig2dev/drivers.h transfig/fig2dev/drivers.h
+--- transfig~/fig2dev/drivers.h
++++ transfig/fig2dev/drivers.h
+@@ -30,8 +30,10 @@
+ extern struct driver dev_pdf;
+ extern struct driver dev_pdftex;
+ extern struct driver dev_pdftex_t;
++extern struct driver dev_pdftex_p;
+ extern struct driver dev_pstex;
+ extern struct driver dev_pstex_t;
++extern struct driver dev_pstex_p;
+ extern struct driver dev_pstricks;
+ extern struct driver dev_textyl;
+ extern struct driver dev_tk;
+@@ -75,6 +77,7 @@
+ {"pdf", &dev_pdf},
+ {"pdftex", &dev_pdftex},
+ {"pdftex_t", &dev_pdftex_t},
++ {"pdftex_p", &dev_pdftex_p},
+ {"pic", &dev_pic},
+ {"pictex", &dev_pictex},
+ {"png", &dev_bitmaps},
+@@ -82,6 +85,7 @@
+ {"ps", &dev_ps},
+ {"pstex", &dev_pstex},
+ {"pstex_t", &dev_pstex_t},
++ {"pstex_p", &dev_pstex_p},
+ {"pstricks", &dev_pstricks},
+ {"ptk", &dev_ptk},
+ {"shape", &dev_shape},
+diff -urNad '--exclude=CVS' '--exclude=.svn' transfig~/fig2dev/fig2dev.c transfig/fig2dev/fig2dev.c
+--- transfig~/fig2dev/fig2dev.c
++++ transfig/fig2dev/fig2dev.c
+@@ -651,6 +651,18 @@
+ #endif /* NFSS */
+ printf(" -p name name of the PostScript file to be overlaid\n");
+
++ printf("PSTEX_P and PDFTEX_P Options:\n");
++ printf(" -p name basename of the files to be created\n");
++#ifdef NFSS
++ printf(" -F don't set font family/series/shape, so you can\n");
++ printf(" set it from latex\n");
++#endif /* NFSS */
++ printf(" -d dmag set separate magnification for length of line dashes to dmag\n");
++ printf(" -E num set encoding for text translation (0 no translation,\n");
++ printf(" 1 ISO-8859-1, 2 ISO-8859-2)\n");
++ printf(" -l lwidth set threshold between thin and thick lines to lwidth\n");
++ printf(" -v verbose mode\n");
++
+ printf("SHAPE (ShapePar driver) Options:\n");
+ printf(" -n name Set basename of the macro (e.g. \"face\" gives faceshape and facepar)\n");
+ printf("Tcl/Tk (tk) and Perl/Tk (ptk) Options:\n");
+@@ -778,6 +790,12 @@
+ int rec_comp(r1, r2)
+ struct obj_rec *r1, *r2;
+ {
++ if (r2->depth == r1->depth)
++ {
++ if ((r1->gendev == dev->text) ^ (r2->gendev == dev->text))
++ return ((r1->gendev == dev->text) * 2 - 1);
++ return (0);
++ }
+ return (r2->depth - r1->depth);
+ }
+
+diff -urNad '--exclude=CVS' '--exclude=.svn' transfig~/fig2mpdf/copyright.txt transfig/fig2mpdf/copyright.txt
+--- transfig~/fig2mpdf/copyright.txt
++++ transfig/fig2mpdf/copyright.txt
+@@ -0,0 +1,25 @@
++The following files contain copyright and license info for
++the code they contain:
++fig2mpdf, fig2mpdf.1, transfig.3.2.4.patch, transfig-3.2.5-alpha7.patch
++
++-- fig2mpdf copyright begins here --
++
++ fig2mpdf/pdftex_p and pstex_p driver of fig2dev
++ Copyright (C) 2006 Michael Pfeiffer -- p3fff@web.de
++
++ This program is free software; you can redistribute it and/or modify
++ it under the terms of the GNU General Public License as published by
++ the Free Software Foundation; either version 2 of the License, or
++ (at your option) any later version.
++
++ This program is distributed in the hope that it will be useful,
++ but WITHOUT ANY WARRANTY; without even the implied warranty of
++ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
++ GNU General Public License for more details.
++
++ You should have received a copy of the GNU General Public License
++ along with this program; if not, write to the Free Software
++ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
++
++ (Author's note: the license is in the file gpl.txt, which is included
++ in the archive.)
+diff -urNad '--exclude=CVS' '--exclude=.svn' transfig~/fig2mpdf/fig2mpdf transfig/fig2mpdf/fig2mpdf
+--- transfig~/fig2mpdf/fig2mpdf
++++ transfig/fig2mpdf/fig2mpdf
+@@ -0,0 +1,653 @@
++#!/bin/sh
++
++unset POSIXLY_CORRECT
++
++gawk '
++#########################################################################
++#########################################################################
++BEGIN {
++
++ cmdGawk = "gawk";
++ cmdCat = "cat";
++ cmdLess = "less";
++ cmdRm = "rm"
++ cmdMv = "mv"
++ cmdLatex = "latex";
++ cmdPdftex = "pdflatex";
++ cmdEpsToPdf = "epstopdf";
++ cmdDvips = "dvips";
++ cmdFig2dev = "fig2dev";
++ cmdTouch = "touch";
++
++ szVersion = "1.1.2";
++ iError = 0;
++ iGapWidth = 1;
++
++
++ # get the options
++ szOptString = "&l%e&m$p%i%I$s$H$g%G%v%V%d";
++ getopt(szOptString);
++
++ if (aOptions["d"])
++ {
++ aOptions["v"] = "-";
++ for (iI = 0; iI < ARGC; iI++)
++ printf("ARGV[%d]=%s\n", iI, ARGV[iI]);
++
++ iDim = split(szOptString, aOpts, "[$%&]");
++ for (iI = 2; iI <= iDim; iI++)
++ debug("aOptions[%s] = >%s<\n", aOpts[iI], aOptions[aOpts[iI]]);
++ }
++
++
++
++ if (aOptions["V"] != "")
++ {
++ printf("fig2mpdf: version %s\n", szVersion);
++ iError = 1;
++ exit(0);
++ }
++
++ szTmpPrefix = "_fig2mpdf"
++
++ iLine = -1;
++ iInString = 0;
++ iDepths = 1;
++
++ iInvalidDepth = -2
++ iAdminDepth = 2000
++
++ szBase = ARGV[1];
++ szOrigFile = ARGV[1];
++ szOrigPath = ARGV[1];
++
++ # set default switch state
++ iDoMultiLayer = 0;
++ iDoLatex = 0;
++ iDoPdftex = 1;
++ iIncludeLowestRange = 1;
++
++ # set iDoLatex and iDoMultiLayer concerning the given suffix
++ match(szBase, /\.[^\.\/]+$/);
++ if (RLENGTH != -1)
++ {
++ szSuffix = substr(szBase, RSTART);
++ if (szSuffix == ".lfig")
++ iDoLatex = 1;
++ else if (szSuffix == ".mfig")
++ iDoMultiLayer = 1;
++ else if ((szSuffix == ".mlfig") || (szSuffix == ".lmfig"))
++ {
++ iDoLatex = 1;
++ iDoMultiLayer = 1;
++ }
++ }
++
++ ################################
++ # evalutate options
++
++ # set toggle latex
++ if (aOptions["l"] == "-")
++ iDoLatex = 1;
++ if (aOptions["l"] == "+")
++ iDoLatex = 0;
++
++ # set multilayer flag
++ if (aOptions["m"] == "-")
++ iDoMultiLayer = 1;
++ if (aOptions["m"] == "+")
++ iDoMultiLayer = 0;
++
++ # set toggle pdftex
++ if (aOptions["e"] == "-")
++ iDoPdftex = 0;
++
++ # evaluate do not include lowest layer in all figs
++ iIncludeLowestRange = (aOptions["i"] == "-");
++
++ # evaluate include all lower ranges in the sub figs
++ iIncludeAllLowerRanges = (aOptions["I"] != "-");
++
++ # check consistencies
++ # if there are ranges given -> do multilayer
++ if (aOptions["p"] != "")
++ iDoMultiLayer = 1;
++
++
++ if (aOptions["g"] != "")
++ {
++ if ( ! match (aOptions["g"], /^[0-9]+$/))
++ usage();
++
++ iGapWidth = aOptions["g"] + 1;
++ }
++
++ # get the basename of the source
++ gsub(/\.[^\/]+$/, "", szBase);
++ gsub(/^.*\//, "", szBase);
++
++ # get the path to the original
++ gsub(/[^\/]+$/, "", szOrigPath);
++}
++#########################################################################
++#########################################################################
++
++( iInString != 0) {
++ aszLine[iLine] = sprintf("%s\n%s", aszLine[iLine], $0);
++ iInString = (match($0, "\\\\001$") == 0);
++ iSubLine++;
++ next;
++}
++
++/^[135][ ]/ {
++ iCmd = $1;
++ iSubCmd = -1;
++ iSubLine = 0;
++ aiDepth[++iLine] = fnGetDepth($1);
++ aszLine[iLine] = $0;
++ next;
++}
++
++/^[2][ ]/ {
++ iCmd = $1;
++ iSubCmd = $2;
++ iSubLine = 0;
++ aiDepth[++iLine] = fnGetDepth($1);
++ aszLine[iLine] = $0;
++ next;
++}
++
++
++/^[4][ ]/ {
++ iCmd = $1;
++ iSubCmd = $2;
++ iSubLine = 0;
++ aiDepth[++iLine] = fnGetDepth($1);
++ aszLine[iLine] = $0;
++ iInString = (match($0, "\\\\001$") == 0);
++ next;
++}
++
++/^(6[ ])|(-6)/ {
++ iCmd = $1;
++ iSubCmd = -1;
++ iSubLine = 0;
++ next;
++}
++
++/^[^ ]/ {
++ iCmd = -1;
++ aiDepth[++iLine] = fnGetDepth("A");
++ iSubLine = 0;
++ aszLine[iLine] = $0;
++ next;
++}
++
++/^[ ]/ {
++ iSubLine++;
++ if ((iCmd == 2) && (iSubCmd == 5) && (iSubLine == 1))
++ {
++ if (match($0, "^\t[01] "))
++ {
++ szFileName = substr($0, RSTART + RLENGTH);
++ if ( ! match(szFileName, /^\//))
++ szFileName = sprintf("%s%s", szOrigPath, szFileName);
++ aszLine[iLine] = sprintf("%s\n\t%s %s", aszLine[iLine], $1, szFileName);
++ }
++ else
++ aszLine[iLine] = sprintf("%s\n%s", aszLine[iLine], $0);
++ }
++ else
++ aszLine[iLine] = sprintf("%s\n%s", aszLine[iLine], $0);
++}
++
++
++END {
++ iLine++;
++ iLowestLayer = 0;
++ iFirstRange = 0;
++
++ if (iError == 0)
++ {
++
++
++ if (iDoMultiLayer)
++ {
++ asort(aiDepths, aiSortedDepth);
++
++ # check for ranges as options
++ if (aOptions["p"] != "")
++ {
++ # we have explicit ranges
++ gsub(/-/, ":", aOptions["p"]);
++ iRanges = split(aOptions["p"], aszRanges, ",");
++ }
++ else
++ {
++ if (iDepths < 4)
++ {
++ iRanges = 1;
++ aszRanges[1] = "1:999";
++ }
++ else
++ {
++ iRanges = 0;
++ iLastRange = aiSortedDepth[iDepths - 2] + 0;
++ iRangeStart = iLastRange;
++ for (iI = iDepths - 3; iI > 0; iI--)
++ {
++ aiSortedDepth[iI] += 0;
++ if ((aiSortedDepth[iI] < iLastRange - iGapWidth) || (iI == 1))
++ {
++ if (aiSortedDepth[iI] >= iLastRange - iGapWidth)
++ iLastRange = aiSortedDepth[iI];
++
++ if (iLastRange != iRangeStart)
++ aszRanges[++iRanges] = sprintf("%d:%d", iLastRange, iRangeStart);
++ else
++ aszRanges[++iRanges] = sprintf("%d", iRangeStart);
++ iRangeStart = aiSortedDepth[iI];
++
++ if ((iI == 1) && (aiSortedDepth[iI] < iLastRange - iGapWidth))
++ aszRanges[++iRanges] = sprintf("%d", aiSortedDepth[iI]);
++ }
++ iLastRange = aiSortedDepth[iI];
++ }
++ }
++ }
++
++
++ # check for a multilayer file with only one range
++ if ((iRanges == 1) && iIncludeLowestRange)
++ {
++ iIncludeLowestRange = 0;
++ }
++
++ szInitRangeList = " -D ";
++ szSep = "";
++
++ if (iIncludeLowestRange)
++ {
++ szInitRangeList = sprintf("%s+%s", szInitRangeList, aszRanges[1]);
++ szSep = ",";
++ }
++ szRangeList = szInitRangeList;
++
++ # step through the ranges
++ for (iI = iIncludeLowestRange; iI < iRanges; iI++)
++ {
++ szFileBase = sprintf("%s-%d", szBase, iI - iIncludeLowestRange);
++
++ if (aOptions["I"])
++ {
++ szRangeList = sprintf("%s%s+%s", szRangeList, szSep, aszRanges[iI + 1]);
++ szSep = ",";
++ }
++ else
++ szRangeList = sprintf("%s%s+%s", szInitRangeList, szSep, aszRanges[iI + 1]);
++
++
++ if (iDoLatex)
++ szTargetFile = fnDoTexFig(szFileBase, szOrigFile, szRangeList, (iDoPdftex != 0));
++ else
++ szTargetFile = fnDoNormalFig(szFileBase, szOrigFile, szRangeList, (iDoPdftex != 0));
++
++
++ if (aOptions["G"])
++ {
++ match(szTargetFile, /\.[^.]*$/);
++ szCommand = sprintf("%s %s %s.page%d%s", cmdMv, szTargetFile, szBase, iI - iIncludeLowestRange, substr(szTargetFile, RSTART, RLENGTH));
++ debug("%s\n", szCommand);
++ system(szCommand);
++ }
++ }
++ }
++ else
++ {
++ szRangeList = "";
++
++ if (iDoLatex)
++ szTargetFile = fnDoTexFig(szBase, szOrigFile, szRangeList, (iDoPdftex != 0));
++ else
++ szTargetFile = fnDoNormalFig(szBase, szOrigFile, szRangeList, (iDoPdftex != 0));
++ }
++ }
++}
++
++
++
++#########################################################################
++#########################################################################
++function debug(str, arg0, arg1, arg2, arg3, arg4)
++{
++ if (aOptions["v"])
++ printf (str, arg0, arg1, arg2, arg3, arg4);
++}
++
++#########################################################################
++#########################################################################
++function fnGetDepth (iControl)
++{
++
++ if (iControl == 1)
++ {
++ iReturn = sprintf("%04d", $7);
++ }
++ else if (iControl == 2)
++ {
++ iReturn = sprintf("%04d", $7);
++ }
++ else if (iControl == 3)
++ {
++ iReturn = sprintf("%04d", $7);
++ }
++ else if (iControl == 4)
++ {
++ iReturn = sprintf("%04d", $4);
++ }
++ else if (iControl == 5)
++ {
++ iReturn = sprintf("%04d", $7);
++ }
++ else if ((iControl == 6) || (iControl == -6))
++ {
++ iReturn = sprintf("%04d", iInvalidDepth);
++ }
++ else
++ {
++ iReturn = sprintf("%04d", iAdminDepth);
++ }
++
++ if (iReturn >= 0)
++ {
++ if (ahDepths[iReturn] == 0)
++ {
++ ahDepths[iReturn] = 1;
++ aiDepths[iDepths++] = iReturn;
++ }
++ }
++
++ return (iReturn);
++
++}
++
++#########################################################################
++#########################################################################
++function fnDoNormalFig(szFileNameBase, szFigFile, szRangeList, iPdf,
++ szEpsFile, szPdfFile, szTargetFile, szCommand)
++{
++
++ debug("FileNameBase >%s< FigFile >%s< Pdf:%d\n", szFileNameBase, szFigFile, iPdf);
++
++ if (iPdf)
++ szEpsFile = sprintf("%s%s.eps", szTmpPrefix, szFileNameBase);
++ else
++ {
++ szEpsFile = sprintf("%s.eps", szFileNameBase);
++ szTargetFile = szEpsFile;
++ }
++
++ szCommand = sprintf("%s -L eps %s %s %s 2> /dev/null", cmdFig2dev, szRangeList, szFigFile, szEpsFile);
++ debug("%s\n", szCommand);
++ system(szCommand);
++
++ if (iPdf)
++ {
++ szPdfFile = sprintf("%s.pdf", szFileNameBase);
++ szTargetFile = szPdfFile;
++ szCommand = sprintf("%s --outfile=%s %s", cmdEpsToPdf, szPdfFile, szEpsFile);
++ debug("%s\n", szCommand);
++ system(szCommand);
++
++
++ if ( ! aOptions["d"])
++ {
++ szCommand = sprintf("%s -f %s", cmdRm, szEpsFile);
++ debug("%s\n", szCommand);
++ system(szCommand);
++ }
++ }
++
++
++ return (szTargetFile);
++}
++
++
++#########################################################################
++#########################################################################
++function fnDoTexFig(szFileNameBase, szFigFile, szRangeList, iPdf,
++ szEpsFile, szPdfFile, szTexDoc, szTexPdf, szTexLog, szTexAux, szTexInp, szTmpPs, szTmpPdf, szTexSiz, szTmpEps, szCommand, szHeader)
++{
++
++ debug("FileNameBase >%s< FigFile >%s< Pdf:%d\n", szFileNameBase, szFigFile, iPdf);
++
++ szEpsFile = sprintf("%s.eps", szFileNameBase);
++ szPdfFile = sprintf("%s.pdf", szFileNameBase);
++ szTexDoc = sprintf("%s%s_doc.tex", szTmpPrefix, szFileNameBase);
++ szTexPdf = sprintf("%s%s_doc.pdf", szTmpPrefix, szFileNameBase);
++ szTexDvi = sprintf("%s%s_doc.dvi", szTmpPrefix, szFileNameBase);
++ szTexLog = sprintf("%s%s_doc.log", szTmpPrefix, szFileNameBase);
++ szTexAux = sprintf("%s%s_doc.aux", szTmpPrefix, szFileNameBase);
++ szTexInpPref = sprintf("%s%s_inp", szTmpPrefix, szFileNameBase);
++ szTexInp = sprintf("%s.tex", szTexInpPref);
++ szTexCreator = sprintf("%s.create", szTexInpPref);
++ szTexSiz = sprintf("%s.size", szTexInpPref);
++
++ if (iPdf)
++ szCommand = sprintf("%s -L pdftex_p %s -p %s %s %s", cmdFig2dev, szRangeList, szTexInpPref, szFigFile, szTexInp);
++ else
++ szCommand = sprintf("%s -L pstex_p %s -p %s %s %s", cmdFig2dev, szRangeList, szTexInpPref, szFigFile, szTexInp);
++ debug("%s\n", szCommand);
++ system(szCommand);
++
++ szCommand = sprintf("./%s", szTexCreator);
++ debug("%s\n", szCommand);
++ system(szCommand);
++
++ # check if there is an own hederfile to include
++ if (aOptions["s"] == "")
++ aOptions["s"] = "times";
++
++ if (aOptions["H"] == "")
++ {
++ szHeader = sprintf("\\documentclass{article}\n\
++\\usepackage{german,amssymb,amsmath}\n\
++\\usepackage{%s}", aOptions["s"]);
++ }
++ else
++ szHeader = sprintf("\\input{%s}\n", aOptions["H"]);
++
++ szHeader = sprintf("%s\n\
++\\usepackage{color}\n\
++\\usepackage{ifpdf}\n\
++\\setlength{\\textwidth}{100cm}\n\
++\\setlength{\\textheight}{100cm}\n\
++\\setlength{\\topmargin}{-1in}\n\
++\\setlength{\\headsep}{0pt}\n\
++\\setlength{\\headheight}{0pt}\n\
++\\setlength{\\oddsidemargin}{-1in}\n\
++\\parindent=0cm\n\
++\\ifpdf\n\
++\\usepackage[pdftex]{graphicx}\n\
++\\DeclareGraphicsExtensions{.pdf,.png,.jpg}\n\
++\\usepackage{epsfig}\n\
++\\input{%s}\n\
++\\else\n\
++\\usepackage{graphicx}\n\
++\\usepackage{epsfig}\n\
++\\fi\n\
++", szHeader, szTexSiz);
++
++ szCommand = sprintf("%s > %s << EOF\n\
++%s\\begin{document}\n\
++\\pagestyle{empty}\n\
++\\input{%s}\n\
++\\end{document}\n\
++EOF", cmdCat, szTexDoc, szHeader, szTexInp);
++ if (aOptions["d"] != "")
++ debug("%s\n", szCommand);
++ system(szCommand);
++
++ if (iPdf)
++ {
++
++ szCommand = sprintf("%s -interaction batchmode %s", cmdPdftex, szTexDoc);
++ debug("%s\n", szCommand);
++ iReturn = system(szCommand);
++
++ if (iReturn)
++ {
++ szCommand = sprintf("%s %s | %s +G", cmdCat, szTexLog, cmdLess);
++ system (szCommand);
++ }
++ else
++ {
++ szCommand = sprintf("%s %s %s", cmdMv, szTexPdf, szPdfFile);
++ debug("%s\n", szCommand);
++ system(szCommand);
++ }
++
++ }
++ else
++ {
++ szCommand = sprintf("%s -interaction batchmode %s", cmdLatex, szTexDoc);
++ debug("%s\n", szCommand);
++ iReturn = system(szCommand);
++ if (iReturn)
++ {
++ szCommand = sprintf("%s %s | %s +G", cmdCat, szTexLog, cmdLess);
++ system (szCommand);
++ }
++ else
++ {
++ szCommand = sprintf("%s -q -E %s -o %s 2>&1 > /dev/null", cmdDvips, szTexDvi, szEpsFile);
++ debug("%s\n", szCommand);
++ system(szCommand);
++ }
++ }
++
++ if ( ! aOptions["d"])
++ {
++ szCommand = sprintf("./%s -r", szTexCreator);
++ debug("%s\n", szCommand);
++ system(szCommand);
++ }
++
++ if ( ! aOptions["d"])
++ {
++ szCommand = sprintf("%s -f %s %s %s %s %s %s %s", cmdRm, szTexDoc, szTexLog, szTexAux, szTexDvi, szTexInp, szTexCreator, szTexPdf);
++ debug("%s\n", szCommand);
++ system(szCommand);
++ }
++
++ if (iPdf)
++ return (szPdfFile);
++ else
++ return (szEpsFile);
++}
++
++
++#########################################################################
++#########################################################################
++function getopt(sOptions, n, m, fHuntParam, iSearchMinus, iSPos, iCLen, iHuntSwitches, szSwChar, szOptChar) {
++# Options: Flagoptions: %f
++# Parameter: $p
++
++ n = 1; # index in argv
++ m = 1; # processed entries in argv finally it points to the firs$
++ iSearchMinus = 1; # indicate that a switch leading sign minus is expected
++
++ # check for initial -- to separate the gawk switches from the script switches
++ if (ARGV[n] == "--")
++ n++;
++
++
++ while (n < ARGC)
++ {
++ iHuntSwitches = 0;
++ iCLen = length(ARGV[n]);
++
++ szSwChar = substr(ARGV[n], 1, 1);
++ if ((szSwChar == "-") || (szSwChar == "+"))
++ {
++ if ((iSearchMinus == 0) || fHuntParam)
++ usage();
++ iHuntSwitches = 1;
++ iSPos = 2;
++ fHuntParam = 0;
++ }
++ else
++ {
++ iSPos = 1;
++
++ if (fHuntParam == 0)
++ iSearchMinus = 0;
++ }
++
++ while (iSPos <= iCLen)
++ {
++ if (iHuntSwitches)
++ {
++ szOptChar = substr(ARGV[n], iSPos, 1);
++ iOPos = index(sOptions, szOptChar);
++ if (iOPos == 0)
++ {
++ printf("unknown option \"%s\"\n", szOptChar);
++ usage();
++ }
++ if ((substr(sOptions, iOPos - 1, 1) == "&") || ((substr(sOptions, iOPos - 1, 1) == "%") && (szSwChar == "-")))
++ {
++ aOptions[szOptChar] = szSwChar;
++ iSPos = iSPos + 1;
++ }
++ else if ((substr(sOptions, iOPos - 1, 1) == "$") && (szSwChar == "-"))
++ {
++ fHuntParam = 1;
++ iHuntSwitches = 0;
++ iSPos = iSPos + 1;
++ }
++ else
++ usage();
++
++ }
++ else if (fHuntParam)
++ {
++ fHuntParam = 0;
++ aOptions[szOptChar] = substr(ARGV[n], iSPos, iCLen + 1 - iSPos);
++ iSPos = iCLen + 1;
++ }
++ else
++ {
++ ARGV[m++] = ARGV[n];
++ iSPos = iCLen + 1;
++ }
++ }
++ n = n + 1;
++ }
++ ARGC = m;
++}
++
++
++#########################################################################
++#########################################################################
++function usage() {
++ print "usage: fig2mpdf [-|+lm] [-eiIGvV] [-p <ranges>] [-g <gapwidth>] [-s <style>] [-H <headerfile>] file\n\
++\n\
++ -|+l set|reset latex call\n\
++ -e create an eps file instead of a pdf\n\
++ -|+m set|reset multilayer creation\n\
++ -p <ranges> colon separated list of layer ranges a-b,c,d-e,...\n\
++ -i do include the deepest range in all figures\n\
++ (the one with the higest level number)\n\
++ -I include all lower ranges (pyramide mode)\n\
++ -g <gap> set layer gapwidth for automatically detecting ranges (default:0)\n\
++ -s <style> replace \\usepackage{times} by \\usepackage{<style>} in the latex commands\n\
++ -H <header> use file <header> for creating tex documents (only\n\
++ \\begin{document}...\\end{document} is set by fig2mpdf)\n\
++ -G name multilayer files in PGF file name format <name>.page<no>.<ext>\n\
++ -v be verbose\n\
++ -V print out the version of fig2mpdf\n";
++ exit 1;
++}
++' -- $*
++
+diff -urNad '--exclude=CVS' '--exclude=.svn' transfig~/fig2mpdf/fig2mpdf.1 transfig/fig2mpdf/fig2mpdf.1
+--- transfig~/fig2mpdf/fig2mpdf.1
++++ transfig/fig2mpdf/fig2mpdf.1
+@@ -0,0 +1,208 @@
++.TH fig2mpdf 1 "Jun 2006" "" "Including xfig figures into LaTeX documents"
++.SH NAME
++fig2mpdf \- creation of multilayer pdf or eps figures from fig files using latex for typesetting
++.SH SYNOPSIS
++.B fig2mpdf
++[\fIOPTION\fR]... \fIFILE\fR
++.SH DESCRIPTION
++.PP
++This tool can create pdf or eps figures using fig files as source. For beamer
++presentations, for example, you can use the multilayer mode to create
++multiple figures that can be overlayed to get a dynamic figure. For
++proper appearance you can use latex to typeset some or all texts,
++possibly containing formulas.
++
++The default interpretation of the given fig \fIFILE\fR depends on its suffix.
++.TP
++\fIfig\fR
++Normal conversion of a fig file. All texts are interpreted as postscript
++texts and all elements of the figure are included in the resulting figure.
++.TP
++\fIlfig\fR
++LaTeX interpretation of the file. All texts of the input file that have the
++special bit set are typeset by pdflatex resp. latex (see: Option \fB\-|+l\fR).
++.TP
++\fImfig\fR
++Multilayer file interpretation. Depending on the used depths of the
++figure it is split into multiple parts. For each part an output file is
++created (see: section \fBMultiLayerOutput\fR).
++.TP
++\fImlfig\fR or \fIlmfig\fR
++Combination of multilayer and LaTeX interpretation of the input (see: Suffix
++\fIlfig\fR and \fImfig\fR).
++.PP
++The default interpretation of the input can be changed by using the options below.
++.SH OPTIONS
++.PP
++.TP
++\fB\-e\fR
++produce an eps output file. Instead of creating a pdf file (the default)
++an eps figure is produced.
++.TP
++\fB\-|+l\fR
++force calling (pdf)latex (-) or do not use (pdf)latex (+) for
++typesetting the text marked with the special flag. With this option you
++can change the default behavior given by the input file suffix.
++.TP
++\fB\-|+m\fR
++force set (-) or unset (+) the multilayer interpretation (see:
++\fBMultiLayerOutput\fR below) which was previously set by the input
++file suffix.
++.TP
++\fB\-p\fR \fIranges\fR
++explicitly set the ranges of depths for splitting the input figure in
++multilayer mode. \fIranges\fR is a colon separated list of ranges of
++the form \fIupper-lower\fR or \fIdepth\fR where \fIupper\fR is the
++top and \fIlower\fR the bottom depth in the range. If you use the
++\fIdepth\fR form the range consist of just that depth.
++.TP
++\fB\-i\fR
++include the the bottommost range (that is, the one with the highest depth) into
++all output figures. This is for compatibility to older versions of this
++tool.
++.TP
++\fB\-I\fR
++turn on pyramid mode. The figure of a corresponding range in multilayer
++mode includes all lower ranges too.
++.TP
++\fB\-g\fR \fIgapwidth\fR
++set the allowed gapwidth between two used depths to decide if these
++depths should be grouped together in one range. With this option you get
++more flexibility to insert objects with new depths. The default width is
++zero (no gap = consecutively numbered depths are grouped together).
++.TP
++\fB\-s\fR \fIstyle\fR
++replace the default style for selecting a font family in LaTeX mode.
++If this option is omitted the style `times' is set by default.
++.TP
++\fB\-H\fR \fIheader\fR
++replace the default header sequence for creating temporary
++LaTeX documents in LaTeX mode. To get maximum flexibility you can
++set the entire document header in the file \fIheader\fR (see:
++\fBCustomized Headers\fR below).
++.TP
++\fB\-G\fR
++in multilayer mode change the default output file pattern to the PDF
++format which is <name>.page<no>.<ext>
++.TP
++\fB\-v\fR
++be verbose and print out all executed commands
++.TP
++\fB\-V\fR
++print out the version of \fBfig2mpdf\fR
++.PP
++.SH "MultiLayerOutput"
++In xfig you can assign an individual depth to all objects of the
++figure. These depths are normally used to determine the order of
++printing the objects. \fBfig2mpdf\fR uses these depths to group the
++objects into ranges in automatic mode (if the ranges option is
++omitted). In the list of used depths, consecutively numbered depths are
++grouped into one range. That is, all gaps between used depths are used
++to logically split the figure. With \fB\-g\fR you can set the
++gapwidth which doesn't split the figure (default: zero).
++.PP
++The resulting list of ranges determines the number of output files. In
++default mode all objects with depths assigned to one range are
++collected and put into the corresponding output file. The contents of
++the output files can be changed with the two Options \fB\-i\fR and
++\fB\-I\fR.
++.PP
++The \fB\-i\fR option reduces the number of output files by one. The
++bottommost range, that is the range which consist of the highest depths
++of the figure, is included into all output files.
++.PP
++In pyramid mode, activated by the option \fB\-I\fR, the output files
++contain additionally all lower ranges. With this mode you can
++get stand alone figures that don't have to be overlayed to have
++meaningful content.
++.PP
++\fBExample 1\fR
++.PD 0
++.PP
++Assume that you have a fig file \fIfoo.fig\fR which contains the three ranges
++.IR "230-233",
++.IR "455-460"
++and
++.IR "499-500".
++.PD
++.PP
++With no options set you get three output files, one per range. But if you
++set the \fB\-i\fR option you get the following two files where the
++bottommost range is included in both of the files:
++.PD 0
++.PP
++ \fIfoo-0.pdf\fR with ranges \fI455-460\fR and \fI499-500\fR
++.PP
++ \fIfoo-1.pdf\fR with ranges \fI230-233\fR and \fI499-500\fR.
++.PD
++.PP
++\fBExample 2\fR
++.PD 0
++.PP
++The pyramid mode, activated by the option \fB\-I\fR, will produce the
++following files from the source file of \fBExample 1\fR:
++.PP
++ \fIfoo-0.pdf\fR with ranges \fI499-500\fR
++.PP
++ \fIfoo-1.pdf\fR with ranges \fI455-460\fR and \fI499-500\fR
++.PP
++ \fIfoo-2.pdf\fR with ranges \fI230-233\fR, \fI455-460\fR and \fI499-500\fR.
++.PD
++.PP
++\fBExample 3\fR
++.PD 0
++.PP
++If both options are set you will get just two files with the following
++contents:
++.PP
++ \fIfoo-0.pdf\fR with ranges \fI455-460\fR and \fI499-500\fR
++.PP
++ \fIfoo-1.pdf\fR with ranges \fI230-233\fR, \fI455-460\fR and \fI499-500\fR.
++.PD
++.PP
++.SH "Customized Headers"
++For various reasons you might want to change the standard latex generation,
++e.g., if you want to change the default font family. The following
++example represents a valid header file.
++
++The usage of this example file changes the font family to sans serif
++and adds an additional search path for includegraphics to the `figures'
++subdirectory.
++
++.PD 0
++ \\documentclass{article}
++.PP
++ \\usepackage{german,amssymb,amsmath}
++.PP
++ \\renewcommand{\\familydefault}{\\sfdefault}
++.PP
++ \\AtBeginDocument{\\graphicspath{{figures/}}}
++.PD
++
++The following packages are generally used: \fBcolor\fR, \fBgraphicx\fR and \fBepsfig\fR.
++.SH "Tex errors"
++Sometimes it might happen that latex generates an error while processing
++your special texts. To keep you informed about the occurrence of that
++error and about what has happened, in this case the log file is shown
++by invoking a less command.
++.SH "Files"
++In single layer mode for the resulting files the suffix fig is replaced
++by pdf (resp. eps) (i.e. foo.fig -> foo.pdf).
++.PP
++.PD 0
++In multilayer mode the base name of the source fig files is extended
++by '-<range>' and the suffix is set to pdf (resp. eps).
++.PP
++(i.e., foo.fig -> foo-0.pdf, foo-1.pdf, foo-2.pdf, ...
++.PP
++ or foo.fig -> foo.page0.pdf, foo.page1.pdf, foo.page2.pdf, ...
++.PP
++ if the option \fB\-G\fR is set).
++.PD
++.SH "SEE ALSO"
++.IR xfig(1)
++.IR fig2dev(1)
++.IR gawk(1)
++.IR pdflatex(1)
++.IR latex(1)
++.IR dvips(1)
diff --git a/media-gfx/transfig/files/transfig-3.2.5d-leadspace.patch b/media-gfx/transfig/files/transfig-3.2.5d-leadspace.patch
new file mode 100644
index 000000000000..d222cf6590e6
--- /dev/null
+++ b/media-gfx/transfig/files/transfig-3.2.5d-leadspace.patch
@@ -0,0 +1,19 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 25_PIC_leadspace.dpatch by Roger Leigh <rleigh@debian.org>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Avoid wrong leading spaces in PIC text (Closes: #611977).
+
+@DPATCH@
+diff -urNad '--exclude=CVS' '--exclude=.svn' transfig~/fig2dev/dev/genpic.c transfig/fig2dev/dev/genpic.c
+--- transfig~/fig2dev/dev/genpic.c
++++ transfig/fig2dev/dev/genpic.c
+@@ -443,7 +443,7 @@
+ size = PICFONTMAG(t);
+ if (!OptNoUnps) {
+ unpsfont(t);
+- fprintf(tfp, "\"\\s%d\\f%s ", size, PICFONT(t->font));
++ fprintf(tfp, "\"\\s%d\\f%s", size, PICFONT(t->font));
+ } else {
+ fprintf(tfp, ".ps\n.ps %d\n", size );
+ fprintf(tfp, ".ft\n.ft %s\n", PICPSFONT(t) );
diff --git a/media-gfx/transfig/files/transfig-3.2.5d-libpng-1.5.patch b/media-gfx/transfig/files/transfig-3.2.5d-libpng-1.5.patch
new file mode 100644
index 000000000000..e6f15e43e93c
--- /dev/null
+++ b/media-gfx/transfig/files/transfig-3.2.5d-libpng-1.5.patch
@@ -0,0 +1,39 @@
+http://bugs.gentoo.org/show_bug.cgi?id=356751
+
+Index: transfig.3.2.5d/fig2dev/dev/readpng.c
+===================================================================
+--- transfig.3.2.5d.orig/fig2dev/dev/readpng.c
++++ transfig.3.2.5d/fig2dev/dev/readpng.c
+@@ -62,7 +62,7 @@ read_png(file,filetype,pic,llx,lly)
+ }
+
+ /* set long jump here */
+- if (setjmp(png_ptr->jmpbuf)) {
++ if (setjmp(png_jmpbuf(png_ptr))) {
+ /* if we get here there was a problem reading the file */
+ png_destroy_read_struct(&png_ptr, &info_ptr, &end_info);
+ return 0;
+@@ -78,15 +78,17 @@ read_png(file,filetype,pic,llx,lly)
+ png_get_IHDR(png_ptr, info_ptr, &w, &h, &bit_depth, &color_type,
+ &interlace_type, &compression_type, &filter_type);
+
+- if (info_ptr->valid & PNG_INFO_gAMA)
+- png_set_gamma(png_ptr, 2.2, info_ptr->gamma);
+- else
+- png_set_gamma(png_ptr, 2.2, 0.45);
++ png_fixed_point gamma = 0.45;
++ png_get_gAMA_fixed(png_ptr,info_ptr,&gamma);
++ png_set_gamma(png_ptr, 2.2, gamma);
+
+- if (info_ptr->valid & PNG_INFO_bKGD)
++ if (png_get_valid(png_ptr,info_ptr,PNG_INFO_bKGD)) {
+ /* set the background to the one supplied */
+- png_set_background(png_ptr, &info_ptr->background,
++ png_color_16p background;
++ png_get_bKGD(png_ptr,info_ptr,&background);
++ png_set_background(png_ptr, background,
+ PNG_BACKGROUND_GAMMA_FILE, 1, 1.0);
++ }
+ else {
+ /* blend the canvas background using the alpha channel */
+ if (bgspec) {
diff --git a/media-gfx/transfig/files/transfig-3.2.5d-precision.patch b/media-gfx/transfig/files/transfig-3.2.5d-precision.patch
new file mode 100644
index 000000000000..227f19cfe71b
--- /dev/null
+++ b/media-gfx/transfig/files/transfig-3.2.5d-precision.patch
@@ -0,0 +1,45 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 24_PIC_precision.dpatch by Roger Leigh <rleigh@debian.org>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Change the precision of PIC floating point output from %.2f to %.3f.
+## DP: (Closes: #611948)
+
+@DPATCH@
+diff -urNad '--exclude=CVS' '--exclude=.svn' transfig~/fig2dev/dev/genpic.c transfig/fig2dev/dev/genpic.c
+--- transfig~/fig2dev/dev/genpic.c
++++ transfig/fig2dev/dev/genpic.c
+@@ -229,9 +229,9 @@
+
+ /* Should have a #define somewhere for the # of fill patterns */
+ if (l->fill_style != UNFILLED)
+- fprintf(tfp, " fill %.2f", ((double) l->fill_style ) / (double) BLACK_FILL);
++ fprintf(tfp, " fill %.3f", ((double) l->fill_style ) / (double) BLACK_FILL);
+
+- fprintf(tfp, " with .sw at (%.2f,%.2f) ",
++ fprintf(tfp, " with .sw at (%.3f,%.3f) ",
+ minx / ppi, convy(maxy / ppi));
+
+ width = (maxx - minx) / ppi;
+@@ -239,10 +239,10 @@
+ height = convy(maxy / ppi) - convy(miny / ppi);
+ if (height < 0.0) height = -height;
+
+- fprintf(tfp, "width %.2f height %.2f", width, height);
++ fprintf(tfp, "width %.3f height %.3f", width, height);
+
+ if (OptArcBox && l->type == T_ARC_BOX)
+- fprintf(tfp, " rad %.2f", l->radius/ppi);
++ fprintf(tfp, " rad %.3f", l->radius/ppi);
+
+ AddThickness();
+
+@@ -411,7 +411,7 @@
+ 2 * e->radiuses.x/ppi, 2 * e->radiuses.y/ppi);
+
+ if ( OptEllipseFill && e->fill_style != UNFILLED)
+- fprintf(tfp, " fill %.2f", (double)e->fill_style / (double) BLACK_FILL);
++ fprintf(tfp, " fill %.3f", (double)e->fill_style / (double) BLACK_FILL);
+
+ AddThickness();
+
diff --git a/media-gfx/transfig/files/transfig-3.2.5e-fprintf_format_warnings.patch b/media-gfx/transfig/files/transfig-3.2.5e-fprintf_format_warnings.patch
new file mode 100644
index 000000000000..6b3f8a7d870d
--- /dev/null
+++ b/media-gfx/transfig/files/transfig-3.2.5e-fprintf_format_warnings.patch
@@ -0,0 +1,55 @@
+Author: Roland Rosenfeld <roland@debian.org>
+Description: Add a format string to fprintf()/sprintf() call instead
+ of directly printing out Err_Mem. This is needed by harding options.
+
+--- a/fig2dev/trans_spline.c
++++ b/fig2dev/trans_spline.c
+@@ -648,7 +648,7 @@
+ F_control *cp;
+
+ if ((cp = (F_control *) malloc(CONTROL_SIZE)) == NULL)
+- fprintf(stderr,Err_mem);
++ fprintf(stderr, "%s", Err_mem);
+ return cp;
+ }
+
+@@ -659,7 +659,7 @@
+ F_line *l;
+
+ if ((l = (F_line *) malloc(LINOBJ_SIZE)) == NULL)
+- fprintf(stderr,Err_mem);
++ fprintf(stderr, "%s", Err_mem);
+ l->pic = NULL;
+ l->next = NULL;
+ l->for_arrow = NULL;
+--- a/fig2dev/dev/gencgm.c
++++ b/fig2dev/dev/gencgm.c
+@@ -139,7 +139,7 @@
+
+ if (from) {
+ figname = malloc(strlen(from)+1);
+- sprintf(figname, from);
++ sprintf(figname, "%s", from);
+ p = strrchr(figname, '/');
+ if (p)
+ figname = p+1; /* remove path from name for comment in file */
+--- a/fig2dev/dev/genmp.c
++++ b/fig2dev/dev/genmp.c
+@@ -1150,7 +1150,7 @@
+ }
+ } else {
+ /* special text in latex mode: just write the text. */
+- fprintf(tfp, t->cstring);
++ fprintf(tfp, "%s", t->cstring);
+ }
+ fprintf(tfp," etex;\n");
+
+@@ -1164,7 +1164,7 @@
+
+ fprintf(tfp," picture q;\n");
+ fprintf(tfp," q=thelabel.urt(\"");
+- fprintf(tfp, t->cstring);
++ fprintf(tfp, "%s", t->cstring);
+ fprintf(tfp, "\" infont ");
+ if (t->font<0) {
+ fprintf(tfp, "defaultfont");
diff --git a/media-gfx/transfig/files/transfig-3.2.5e-man-hyphen.patch b/media-gfx/transfig/files/transfig-3.2.5e-man-hyphen.patch
new file mode 100644
index 000000000000..bb79ec82c92c
--- /dev/null
+++ b/media-gfx/transfig/files/transfig-3.2.5e-man-hyphen.patch
@@ -0,0 +1,530 @@
+Author: Roland Rosenfeld <roland@debian.org>
+Description: Escape hyphen '-' in man pages
+
+--- a/doc/fig2dev.1
++++ b/doc/fig2dev.1
+@@ -63,9 +63,9 @@
+ Notes:
+ .br
+ .I dvips
+-and
++ and
+ .I xdvi
+-must be compiled with the tpic support (-DTPIC) for epic, eepic and tpic to work.
++must be compiled with the tpic support (\-DTPIC) for epic, eepic and tpic to work.
+ .br
+ You must have ghostscript and ps2pdf, which comes with the ghostscript distribution
+ to get the pdf output and the bitmap formats (png, jpeg, etc.), and the netpbm (pbmplus)
+@@ -81,16 +81,16 @@
+
+ .TP
+ .B "\-D +/-rangelist"
+-With +rangelist, keep only those depths in the list. With -rangelist, keep all
++With +rangelist, keep only those depths in the list. With \-rangelist, keep all
+ depths except those in the list. The rangelist may be a list of comma-separated
+-numbers or ranges separated by colon (:). For example, -D +10,40,55:70,80
++numbers or ranges separated by colon (:). For example, \-D +10,40,55:70,80
+ means keep only layers 10, 40, 55 \fBthrough\fR 70, and 80.
+
+ .TP
+-.B -K
+-The selection of the depths with the '-D +/-rangelist' option does normally not
++.B \-K
++The selection of the depths with the '\-D +/\-rangelist' option does normally not
+ affect the calcualtion of the bounding box. Thus the generated document might
+-have a much larger bounding box than necessary. If -K is given then the
++have a much larger bounding box than necessary. If \-K is given then the
+ bounding box is adjusted to include only those objects in the selected depths.
+
+ .TP
+@@ -107,10 +107,10 @@
+ .TP
+ .B "\-G minor[:major][:unit]"
+ Draws a grid on the page. Specify thin, or thin and thick line
+-spacing in one of several units. For example, "-G .25:1cm" draws a thin,
++spacing in one of several units. For example, "\-G .25:1cm" draws a thin,
+ gray line every .25 cm and a thicker gray line every 1 cm. Specifying
+-"-G 1in" draws a thin line every 1 inch.
+-Fractions may be used, e.g. "-G 1/16:1/2in" will draw a thin line every
++"\-G 1in" draws a thin line every 1 inch.
++Fractions may be used, e.g. "\-G 1/16:1/2in" will draw a thin line every
+ 1/16 inch (0.0625 inch) and a thick line every 1/2 inch.
+ .br
+ Allowable units are: i, in, inch, f, ft, feet, c, cm, mm, and m.
+@@ -126,7 +126,7 @@
+ Set the magnification at which the figure is rendered to
+ .I mag.
+ The default is 1.0.
+-This may not be used with the maxdimension option (-Z).
++This may not be used with the maxdimension option (\-Z).
+
+ .TP
+ .B "\-s size"
+@@ -141,7 +141,7 @@
+ .I maxdimension
+ inches or cm, depending on whether the figure was saved with
+ imperial or metric units.
+-This may not be used with the magnification option (-m).
++This may not be used with the magnification option (\-m).
+
+ .TP
+ .I other options
+@@ -157,7 +157,7 @@
+ something that they won't do with EPS files that have an ASCII preview.
+ .TP
+ .B "\-b dummyarg"
+-Generate binary output (dummy argument required after the "-b").
++Generate binary output (dummy argument required after the "\-b").
+
+ .TP
+ .B \-r
+@@ -335,7 +335,7 @@
+ file.
+ The table must have 21 entries - one for each of the area fill patterns.
+ Each entry consists of 5 numbers which specify the
+-1.) pattern number (-1 - 6),
++1.) pattern number (\-1 - 6),
+ 2.) pattern length (inches),
+ 3.) fill type (1 - 5),
+ 4.) fill spacing (inches) and
+@@ -390,7 +390,7 @@
+ .TP
+ .B \-F
+ Use correct font sizes (points, 1/72 inch) instead of the traditional size that xfig/fig2dev uses,
+-which is (1/80 inch). The corresponding xfig command-line option is -correct_font_size.
++which is (1/80 inch). The corresponding xfig command-line option is \-correct_font_size.
+
+ .TP
+ .B \-g color
+@@ -403,13 +403,13 @@
+ Convert all colors to grayscale.
+
+ .TP
+-.B -S smoothfactor
++.B \-S smoothfactor
+ This will smooth the output by passing
+ .I smoothfactor
+ to ghostscript in the
+-.I -dTextAlphaBits
++.I \-dTextAlphaBits
+ and
+-.I -dGraphicsAlphaBits
++.I \-dGraphicsAlphaBits
+ options to improve font rendering and graphic smoothing.
+ A value of 2 for
+ .I smoothfactor
+@@ -418,7 +418,7 @@
+ .SH GIF OPTIONS
+
+ .TP
+-.B -t color
++.B \-t color
+ Use
+ .I color
+ for the transparent color in the GIF file. This must be specified
+@@ -428,7 +428,7 @@
+
+ .SH JPEG OPTIONS
+ .TP
+-.B -q image_quality
++.B \-q image_quality
+ use the integer value
+ .I image_quality
+ for the JPEG "Quality" factor. Valid values are 0-100, with the default being 75.
+@@ -495,7 +495,7 @@
+ .I fig2dev
+ scales the figure by 1/8 before generating METAFONT code.
+ The magnification can be further changed with the
+-.B -m
++.B \-m
+ option or by giving magnification options to
+ .B mf.
+ .LP
+@@ -506,33 +506,33 @@
+ under the subdirectory: graphics/mfpic
+
+ .TP
+-.B -C code
++.B \-C code
+ specifies the starting METAFONT font code. The default is 32.
+ .TP
+-.B -n name
++.B \-n name
+ specifies the name to use in the output file.
+ .TP
+-.B -p pen_magnification
++.B \-p pen_magnification
+ specifies how much the line width should be magnified compared to the
+ original figure. The default is 1.
+ .TP
+-.B -t top
++.B \-t top
+ specifies the top of the whole coordinate system. The default is
+ .B ypos.
+ .TP
+-.B -x xmin
++.B \-x xmin
+ specifies the minimum x coordinate value of the figure (inches). The
+ default is 0.
+ .TP
+-.B -y ymin
++.B \-y ymin
+ specifies the minumum y coordinate value of the figure (inches). The
+ default is 0.
+ .TP
+-.B -X xmax
++.B \-X xmax
+ specifies the maximum x coordinate value of the figure (inches). The
+ default is 8.
+ .TP
+-.B -Y ymax
++.B \-Y ymax
+ specifies the maximum y coordinate value of the figure (inches). The
+ default is 8.
+
+@@ -546,7 +546,7 @@
+ Include file content as additional header.
+
+ .TP
+-.B -o
++.B \-o
+ Old mode (no latex).
+
+ .TP
+@@ -597,15 +597,15 @@
+ Set encoding for latex text translation (0 no translation, 1 ISO-8859-1, 2 ISO-8859-2)
+
+ .SH GBX OPTIONS (Gerber, RS-247-X)
+-Typically you will wish to set the y scale to -1. See
+-.B -g
++Typically you will wish to set the y scale to \-1. See
++.B \-g
+ for more information.
+ .TP
+-.B -d [mm|in]
++.B \-d [mm|in]
+ Output dimensions should be assumed to be millimeters (mm) or inches
+ (in). The default is millimeters.
+ .TP
+-.B -p [pos|neg]
++.B \-p [pos|neg]
+ Select the image polarity. For positive images lines drawn in the fig
+ file will generate lines of material. For negative images lines drawn
+ in the fig file will result in removed material. Consider etching a
+@@ -613,29 +613,29 @@
+ choosing 'neg' will result in these lines being etched through the
+ chrome, leaving transparent lines.
+ .TP
+-.B -g <x scale>x<y scale>+<x offset>+<y offset>
++.B \-g <x scale>x<y scale>+<x offset>+<y offset>
+ This controls the geometry of the output, scaling the dimensions as
+ shown and applying the given offset. Typically you will wish to set
+-the y scale to -1, mirroring about the x axis. This is because Gerber
++the y scale to \-1, mirroring about the x axis. This is because Gerber
+ assumes the origin to be bottom left, while xfig selects top left.
+ .TP
+-.B -f <n digits>.<n digits>
++.B \-f <n digits>.<n digits>
+ This controls the number of digits of precision before and after the
+-implied decimal point. With -f 5.3 the following number 12345678
+-corresponds to 12345.678. Whereas with -f 3.5 it corresponds to
++implied decimal point. With \-f 5.3 the following number 12345678
++corresponds to 12345.678. Whereas with \-f 3.5 it corresponds to
+ 123.45678. The default is for 3 places before the decimal point and 5
+ after. This corresponds, to a range of 0 to 1m in 10 micron
+ increments.
+ .TP
+-.B -i [on|off]
++.B \-i [on|off]
+ Controls the output of comments describing the type of objects being
+ output. The text appears as comments starting with ## on each line in
+ the output file. By default this is on.
+
+ .SH POSTSCRIPT, ENCAPSULATED POSTSCRIPT (EPS), and PDF OPTIONS
+ With PostScript, xfig can be used to create multiple page figures
+-Specify the -M option to produce a multi-page output.
+-For posters, add -O to overlap the pages slightly to get around the problem of
++Specify the \-M option to produce a multi-page output.
++For posters, add \-O to overlap the pages slightly to get around the problem of
+ the unprintable area in most printers, then cut and paste the pages together.
+ Due to memory limitations of most laser printers, the figure should not
+ have large imported images (bitmaps). Great for text with very big letters.
+@@ -658,7 +658,7 @@
+ .LP
+ The EPS driver has the following two special options:
+ .TP
+-.B -B 'Wx [Wy X0 Y0]'
++.B \-B 'Wx [Wy X0 Y0]'
+ This specifies that the bounding box of the EPS file should have the
+ width Wx and the height Wy.
+ Note that it doesn't scale the figure to this size, it merely sets the bounding box.
+@@ -667,13 +667,13 @@
+ screen (0,0) (upper-left).
+ Wx, Wy, X0 and Y0 are interpreted in centimeters or inches depending on the measure
+ given in the fig-file.
+-Remember to put either quotes (") or apostrophes (') to group the arguments to -B.
++Remember to put either quotes (") or apostrophes (') to group the arguments to \-B.
+ .TP
+-.B -R 'Wx [Wy X0 Y0]'
+-Same as the -B option except that X0 and Y0 is relative to the lower
++.B \-R 'Wx [Wy X0 Y0]'
++Same as the \-B option except that X0 and Y0 is relative to the lower
+ left corner of the
+ .B figure.
+-Remember to put either quotes (") or apostrophes (') to group the arguments to -R.
++Remember to put either quotes (") or apostrophes (') to group the arguments to \-R.
+ .LP
+ The PDF driver uses all the PostScript options.
+ .LP
+@@ -697,106 +697,106 @@
+ In addition, there are 16 patterns such as bricks, diagonal lines,
+ crosshatch, etc.
+ .TP
+-.B -A
++.B \-A
+ Add an ASCII (EPSI) preview.
+ .TP
+-.B -b borderwidth
++.B \-b borderwidth
+ Make blank border around figure of width
+ .I borderwidth.
+ .br
+-Not availble in EPS.
++Not available in EPS.
+
+ .TP
+-.B -C dummy_arg
++.B \-C dummy_arg
+ Add a color *binary* TIFF preview for Microsoft products that need a binary preview.
+-See also -T (monochrome preview). A dummy argument must be supplied for historical reasons.
++See also \-T (monochrome preview). A dummy argument must be supplied for historical reasons.
+ .TP
+-.B -c
++.B \-c
+ option centers the figure on the page.
+ The centering may not be accurate if there are texts in the
+ .I fig_file
+ that extends too far to the right of other objects.
+ .TP
+-.B -e
++.B \-e
+ option puts the figure against the edge (not centered) of the page.
+-Not availble in EPS.
++Not available in EPS.
+
+ .TP
+-.B -F
++.B \-F
+ Use correct font sizes (points) instead of the traditional size that xfig/fig2dev uses,
+-which is 1/80 inch. The corresponding xfig command-line option is -correct_font_size.
++which is 1/80 inch. The corresponding xfig command-line option is \-correct_font_size.
+
+ .TP
+-.B -g color
++.B \-g color
+ Use
+ .I color
+ for the background.
+ .TP
+-.B -l dummy_arg
++.B \-l dummy_arg
+ Generate figure in landscape mode. The dummy argument is ignored,
+ but must appear on the command line for reasons of compatibility.
+ This option will override the orientation specification in the
+ file (for file versions 3.0 and higher).
+ .br
+-Not availble in EPS.
++Not available in EPS.
+ .TP
+-.B -M
++.B \-M
+ Generate multiple pages if figure exceeds paper size.
+ .br
+-Not availble in EPS.
++Not available in EPS.
+ .TP
+ .B \-N
+ Convert all colors to grayscale.
+
+ .TP
+-.B -n name
++.B \-n name
+ Set the Title part of the PostScript output to
+ .I name.
+ This is useful when the input to
+ .I fig2dev
+ comes from standard input.
+ .TP
+-.B -O
++.B \-O
+ When used with \fB-M\fR,
+ overlaps the pages slightly to get around the problem of
+ the unprintable area in most printers.
+ .br
+-Not availble in EPS.
++Not available in EPS.
+ .TP
+-.B -p dummy_arg
++.B \-p dummy_arg
+ Generate figure in portrait mode. The dummy argument is ignored,
+ but must appear on the command line for reasons of compatibility.
+ This option will override the orientation specification in the
+ file (for file versions 3.0 and higher).
+ This is the default for Fig files of version 2.1 or lower.
+ .br
+-Not availble in EPS.
++Not available in EPS.
+
+ .TP
+-.B -T
++.B \-T
+ Add a monochrome *binary* TIFF preview for Microsoft products that need a binary preview.
+-See also -C (color preview).
++See also \-C (color preview).
+ .TP
+ .TP
+-.B -x offset
++.B \-x offset
+ shift the figure in the X direction by
+ .I offset
+ units (1/72 inch).
+ A negative value shifts the figure to the left and a positive value to the right.
+ .br
+-Not availble in EPS.
++Not available in EPS.
+ .TP
+-.B -y offset
++.B \-y offset
+ shift the figure in the Y direction by
+ .I offset
+ units (1/72 inch).
+ A negative value shifts the figure up and a positive value down.
+ .br
+-Not availble in EPS.
++Not available in EPS.
+ .TP
+-.B -z papersize
++.B \-z papersize
+ Sets the papersize.
+-Not availble in EPS.
++Not available in EPS.
+ .br
+ Available paper sizes are:
+ .nf
+@@ -839,17 +839,17 @@
+ special text.
+
+ .TP
+-.B -F
++.B \-F
+ Use correct font sizes (points) instead of the traditional size that xfig/fig2dev uses,
+-which is 1/80 inch. The corresponding xfig command-line option is -correct_font_size.
++which is 1/80 inch. The corresponding xfig command-line option is \-correct_font_size.
+
+ .TP
+-.B -g color
++.B \-g color
+ Use
+ .I color
+ for the background.
+ .TP
+-.B -n name
++.B \-n name
+ sets the Title part of the PostScript output to
+ .I name.
+ This is useful when the input to
+@@ -876,7 +876,7 @@
+ LaTeX document. With this option on, you can set the font from your LaTeX
+ document (like "\fB\\sfshape \\input picture.eepic\fR").
+ .TP
+-.B -p file
++.B \-p file
+ specifies the name of the PostScript file to be overlaid.
+ If not set or its value is null then no PS file will be inserted.
+
+@@ -977,7 +977,7 @@
+ .TP
+ .B \-P
+ Shorthand for
+-.B -n 3
++.B \-n 3
+ .
+
+ .TP
+@@ -992,7 +992,7 @@
+ directory! Don't put your stuff here. The
+ .B includegraphics
+ commands in the output file refer to this directory. Even
+-if the -p option is not used,
++if the \-p option is not used,
+ .B includegrpahics
+ commands follow this convention with the default directory
+ .I "\./eps".
+@@ -1064,26 +1064,26 @@
+
+ .SH TK and PTK OPTIONS (tcl/tk and Perl/tk)
+ .TP
+-.B -l dummy_arg
++.B \-l dummy_arg
+ Generate figure in landscape mode. The dummy argument is ignored,
+ but must appear on the command line for reasons of compatibility.
+ This option will override the orientation specification in the
+ file (for file versions 3.0 and higher).
+ .TP
+-.B -p dummy_arg
++.B \-p dummy_arg
+ Generate figure in portrait mode. The dummy argument is ignored,
+ but must appear on the command line for reasons of compatibility.
+ This option will override the orientation specification in the
+ file (for file versions 3.0 and higher).
+ This is the default for Fig files of version 2.1 or lower.
+ .TP
+-.B -P
++.B \-P
+ Generate canvas of full page size instead of using the bounding box
+ of the figure's objects. The default is to use only the bounding box.
+ .TP
+-.B -z papersize
++.B \-z papersize
+ Sets the papersize. See the POSTSCRIPT OPTIONS for available paper sizes.
+-This is only used when the -P option (use full page) is used.
++This is only used when the \-P option (use full page) is used.
+
+ .SH "SEE ALSO"
+ [x]fig(1),
+--- a/doc/transfig.1
++++ b/doc/transfig.1
+@@ -3,11 +3,11 @@
+ transfig \- creates a makefile for portable LaTeX figures
+ .SH SYNOPSIS
+ .B transfig
+-[ -L \fIlanguage\fR ]
+-[ -M \fImakefile\fR ]
+-[ -T \fItexfile\fR ]
+-[ -I \fImacrofile\fR ]
+-[ -V ]
++[ \-L \fIlanguage\fR ]
++[ \-M \fImakefile\fR ]
++[ \-T \fItexfile\fR ]
++[ \-I \fImacrofile\fR ]
++[ \-V ]
+ [ \fIcontrol_specs\fR figfile ... ]
+ .SH DESCRIPTION
+ .I Transfig
+@@ -76,13 +76,13 @@
+ is the default.
+ .PP
+ The names of the makefile and TeX macro file can be set with the
+--M and -T options.
++\-M and \-T options.
+ The default names are "Makefile" and "transfig.tex", respectively.
+ If there is already an existing \fImakefile\fR in the directory, transfig
+ first renames it to \fImakefile~\fR. The same holds for any existing TeX macro file.
+-If the -I option is specified, then a command to read in \fImacrofile\fR is
++If the \-I option is specified, then a command to read in \fImacrofile\fR is
+ inserted into the TeX macro file.
+-If the -V option is specified, the program version number is printed only.
++If the \-V option is specified, the program version number is printed only.
+ .PP
+ Control specifiers are
+ .TP
diff --git a/media-gfx/transfig/files/transfig-3.2.5e-typos.patch b/media-gfx/transfig/files/transfig-3.2.5e-typos.patch
new file mode 100644
index 000000000000..0a0e5cd60b1e
--- /dev/null
+++ b/media-gfx/transfig/files/transfig-3.2.5e-typos.patch
@@ -0,0 +1,25 @@
+Author: Roland Rosenfeld <roland@debian.org>
+Description: Fix some spelling errors in the binaries
+
+--- a/fig2dev/dev/readgif.c
++++ b/fig2dev/dev/readgif.c
+@@ -151,7 +151,7 @@
+
+ if (c == '!') { /* Extension */
+ if (! ReadOK(file,&c,1))
+- fprintf(stderr,"GIF read error on extention function code\n");
++ fprintf(stderr,"GIF read error on extension function code\n");
+ (void) DoGIFextension(file, c);
+ continue;
+ }
+--- a/fig2dev/read.c
++++ b/fig2dev/read.c
+@@ -109,7 +109,7 @@
+ /* Format error; relevant error message is already delivered */
+ }
+ else
+- put_msg("File \"%s\" is not accessable; %s", file, strerror(err));
++ put_msg("File \"%s\" is not accessible; %s", file, strerror(err));
+ }
+
+ /**********************************************************
diff --git a/media-gfx/transfig/files/transfig-ru_RU.CP1251.ps b/media-gfx/transfig/files/transfig-ru_RU.CP1251.ps
new file mode 100644
index 000000000000..f8c142a642b2
--- /dev/null
+++ b/media-gfx/transfig/files/transfig-ru_RU.CP1251.ps
@@ -0,0 +1,298 @@
+%% Begining of ru_RU.CP1251.ps
+%%
+%% Author: Yura Zotov <yz@altlinux.ru>
+%% based on cs_CZ.ps made by Radim Gelner <radim.gelner@suse.cz>
+%%
+%%BeginResource: encoding ISOLatin2Encoding
+
+/isol2vec [
+10#0 /.notdef
+10#1 /.notdef
+10#2 /.notdef
+10#3 /.notdef
+10#4 /.notdef
+10#5 /.notdef
+10#6 /.notdef
+10#7 /.notdef
+10#8 /.notdef
+10#9 /.notdef
+10#10 /.notdef
+10#11 /.notdef
+10#12 /.notdef
+10#13 /.notdef
+10#14 /.notdef
+10#15 /.notdef
+10#16 /.notdef
+10#17 /.notdef
+10#18 /.notdef
+10#19 /.notdef
+10#20 /.notdef
+10#21 /.notdef
+10#22 /.notdef
+10#23 /.notdef
+10#24 /.notdef
+10#25 /.notdef
+10#26 /.notdef
+10#27 /.notdef
+10#28 /.notdef
+10#29 /.notdef
+10#30 /.notdef
+10#31 /.notdef
+10#32 /space
+10#33 /exclam
+10#34 /quotedbl
+10#35 /numbersign
+10#36 /dollar
+10#37 /percent
+10#38 /ampersand
+10#39 /quoteright
+10#40 /parenleft
+10#41 /parenright
+10#42 /asterisk
+10#43 /plus
+10#44 /comma
+10#45 /hyphen
+10#46 /period
+10#47 /slash
+10#48 /zero
+10#49 /one
+10#50 /two
+10#51 /three
+10#52 /four
+10#53 /five
+10#54 /six
+10#55 /seven
+10#56 /eight
+10#57 /nine
+10#58 /colon
+10#59 /semicolon
+10#60 /less
+10#61 /equal
+10#62 /greater
+10#63 /question
+10#64 /at
+10#65 /A
+10#66 /B
+10#67 /C
+10#68 /D
+10#69 /E
+10#70 /F
+10#71 /G
+10#72 /H
+10#73 /I
+10#74 /J
+10#75 /K
+10#76 /L
+10#77 /M
+10#78 /N
+10#79 /O
+10#80 /P
+10#81 /Q
+10#82 /R
+10#83 /S
+10#84 /T
+10#85 /U
+10#86 /V
+10#87 /W
+10#88 /X
+10#89 /Y
+10#90 /Z
+10#91 /bracketleft
+10#92 /backslash
+10#93 /bracketright
+10#94 /asciicircum
+10#95 /underscore
+10#96 /quoteleft
+10#97 /a
+10#98 /b
+10#99 /c
+10#100 /d
+10#101 /e
+10#102 /f
+10#103 /g
+10#104 /h
+10#105 /i
+10#106 /j
+10#107 /k
+10#108 /l
+10#109 /m
+10#110 /n
+10#111 /o
+10#112 /p
+10#113 /q
+10#114 /r
+10#115 /s
+10#116 /t
+10#117 /u
+10#118 /v
+10#119 /w
+10#120 /x
+10#121 /y
+10#122 /z
+10#123 /braceleft
+10#124 /bar
+10#125 /braceright
+10#126 /asciitilde
+10#127 /.notdef
+10#128 /afii10051
+10#129 /afii10052
+10#130 /quotesinglbase
+10#131 /afii10100
+10#132 /quotedblbase
+10#133 /ellipsis
+10#134 /dagger
+10#135 /daggerdbl
+10#136 /Euro
+10#137 /perthousand
+10#138 /afii10058
+10#139 /guilsinglleft
+10#140 /afii10059
+10#141 /afii10061
+10#142 /afii10060
+10#143 /afii10145
+10#144 /afii10099
+10#145 /quoteleft
+10#146 /quoteright
+10#147 /quotedblleft
+10#148 /quotedblright
+10#149 /bullet
+10#150 /endash
+10#151 /emdash
+10#152 /tilde
+10#153 /trademark
+10#154 /afii10106
+10#155 /guilsinglright
+10#156 /afii10107
+10#157 /afii10109
+10#158 /afii10108
+10#159 /afii10193
+10#160 /.notdef
+10#161 /afii10062
+10#162 /afii10110
+10#163 /afii10057
+10#164 /currency
+10#165 /afii10050
+10#166 /brokenbar
+10#167 /section
+10#168 /afii10023
+10#169 /copyright
+10#170 /afii10053
+10#171 /guillemotleft
+10#172 /logicalnot
+10#173 /hyphen
+10#174 /registered
+10#175 /afii10056
+10#176 /degree
+10#177 /plusminus
+10#178 /afii10055
+10#179 /afii10103
+10#180 /afii10098
+10#181 /mu
+10#182 /paragraph
+10#183 /periodcentered
+10#184 /afii10071
+10#185 /afii61352
+10#186 /afii10101
+10#187 /guillemotright
+10#188 /afii10105
+10#189 /afii10054
+10#190 /afii10102
+10#191 /afii10104
+10#192 /afii10017
+10#193 /afii10018
+10#194 /afii10019
+10#195 /afii10020
+10#196 /afii10021
+10#197 /afii10022
+10#198 /afii10024
+10#199 /afii10025
+10#200 /afii10026
+10#201 /afii10027
+10#202 /afii10028
+10#203 /afii10029
+10#204 /afii10030
+10#205 /afii10031
+10#206 /afii10032
+10#207 /afii10033
+10#208 /afii10034
+10#209 /afii10035
+10#210 /afii10036
+10#211 /afii10037
+10#212 /afii10038
+10#213 /afii10039
+10#214 /afii10040
+10#215 /afii10041
+10#216 /afii10042
+10#217 /afii10043
+10#218 /afii10044
+10#219 /afii10045
+10#220 /afii10046
+10#221 /afii10047
+10#222 /afii10048
+10#223 /afii10049
+10#224 /afii10065
+10#225 /afii10066
+10#226 /afii10067
+10#227 /afii10068
+10#228 /afii10069
+10#229 /afii10070
+10#230 /afii10072
+10#231 /afii10073
+10#232 /afii10074
+10#233 /afii10075
+10#234 /afii10076
+10#235 /afii10077
+10#236 /afii10078
+10#237 /afii10079
+10#238 /afii10080
+10#239 /afii10081
+10#240 /afii10082
+10#241 /afii10083
+10#242 /afii10084
+10#243 /afii10085
+10#244 /afii10086
+10#245 /afii10087
+10#246 /afii10088
+10#247 /afii10089
+10#248 /afii10090
+10#249 /afii10091
+10#250 /afii10092
+10#251 /afii10093
+10#252 /afii10094
+10#253 /afii10095
+10#254 /afii10096
+10#255 /afii10097] def
+%%EndResource
+/Times-Roman /Times-Roman-iso isol2vec ReEncode
+/Times-Italic /Times-Italic-iso isol2vec ReEncode
+/Times-Bold /Times-Bold-iso isol2vec ReEncode
+/Times-BoldItalic /Times-BoldItalic-iso isol2vec ReEncode
+/AvantGarde-Book /AvantGarde-Book-iso isol2vec ReEncode
+/AvantGarde-BookOblique /AvantGarde-BookOblique-iso isol2vec ReEncode
+/AvantGarde-Demi /AvantGarde-Demi-iso isol2vec ReEncode
+/AvantGarde-DemiOblique /AvantGarde-DemiOblique-iso isol2vec ReEncode
+/Bookman-Light /Bookman-Light-iso isol2vec ReEncode
+/Bookman-LightItalic /Bookman-LightItalic-iso isol2vec ReEncode
+/Bookman-Demi /Bookman-Demi-iso isol2vec ReEncode
+/Bookman-DemiItalic /Bookman-DemiItalic-iso isol2vec ReEncode
+/Courier /Courier-iso isol2vec ReEncode
+/Courier-Oblique /Courier-Oblique-iso isol2vec ReEncode
+/Courier-Bold /Courier-Bold-iso isol2vec ReEncode
+/Courier-BoldOblique /Courier-BoldOblique-iso isol2vec ReEncode
+/Helvetica /Helvetica-iso isol2vec ReEncode
+/Helvetica-Oblique /Helvetica-Oblique-iso isol2vec ReEncode
+/Helvetica-Bold /Helvetica-Bold-iso isol2vec ReEncode
+/Helvetica-BoldOblique /Helvetica-BoldOblique-iso isol2vec ReEncode
+/Helvetica-Narrow /Helvetica-Narrow-iso isol2vec ReEncode
+/Helvetica-Narrow-Oblique /Helvetica-Narrow-Oblique-iso isol2vec ReEncode
+/Helvetica-Narrow-Bold /Helvetica-Narrow-Bold-iso isol2vec ReEncode
+/Helvetica-Narrow-BoldOblique /Helvetica-Narrow-BoldOblique-iso isol2vec ReEncode
+/NewCenturySchlbk-Roman /NewCenturySchlbk-Roman-iso isol2vec ReEncode
+/NewCenturySchlbk-Italic /NewCenturySchlbk-Italic-iso isol2vec ReEncode
+/NewCenturySchlbk-Bold /NewCenturySchlbk-Bold-iso isol2vec ReEncode
+/NewCenturySchlbk-BoldItalic /NewCenturySchlbk-BoldItalic-iso isol2vec ReEncode
+/Palatino-Roman /Palatino-Roman-iso isol2vec ReEncode
+/Palatino-Italic /Palatino-Italic-iso isol2vec ReEncode
+/Palatino-Bold /Palatino-Bold-iso isol2vec ReEncode
+/Palatino-BoldItalic /Palatino-BoldItalic-iso isol2vec ReEncode
+%% End of ru_RU.CP1251.ps
diff --git a/media-gfx/transfig/files/transfig-ru_RU.KOI8-R.ps b/media-gfx/transfig/files/transfig-ru_RU.KOI8-R.ps
new file mode 100644
index 000000000000..1bda0b26a602
--- /dev/null
+++ b/media-gfx/transfig/files/transfig-ru_RU.KOI8-R.ps
@@ -0,0 +1,298 @@
+%% Begining of ru_RU.KOI8-R.ps
+%%
+%% Author: Yura Zotov <yz@altlinux.ru>
+%% based on cs_CZ.ps made by Radim Gelner <radim.gelner@suse.cz>
+%%
+%%BeginResource: encoding ISOLatin2Encoding
+
+/isol2vec [
+10#0 /.notdef
+10#1 /.notdef
+10#2 /.notdef
+10#3 /.notdef
+10#4 /.notdef
+10#5 /.notdef
+10#6 /.notdef
+10#7 /.notdef
+10#8 /.notdef
+10#9 /.notdef
+10#10 /.notdef
+10#11 /.notdef
+10#12 /.notdef
+10#13 /.notdef
+10#14 /.notdef
+10#15 /.notdef
+10#16 /.notdef
+10#17 /.notdef
+10#18 /.notdef
+10#19 /.notdef
+10#20 /.notdef
+10#21 /.notdef
+10#22 /.notdef
+10#23 /.notdef
+10#24 /.notdef
+10#25 /.notdef
+10#26 /.notdef
+10#27 /.notdef
+10#28 /.notdef
+10#29 /.notdef
+10#30 /.notdef
+10#31 /.notdef
+10#32 /space
+10#33 /exclam
+10#34 /quotedbl
+10#35 /numbersign
+10#36 /dollar
+10#37 /percent
+10#38 /ampersand
+10#39 /quotesingle
+10#40 /parenleft
+10#41 /parenright
+10#42 /asterisk
+10#43 /plus
+10#44 /comma
+10#45 /hyphen
+10#46 /period
+10#47 /slash
+10#48 /zero
+10#49 /one
+10#50 /two
+10#51 /three
+10#52 /four
+10#53 /five
+10#54 /six
+10#55 /seven
+10#56 /eight
+10#57 /nine
+10#58 /colon
+10#59 /semicolon
+10#60 /less
+10#61 /equal
+10#62 /greater
+10#63 /question
+10#64 /at
+10#65 /A
+10#66 /B
+10#67 /C
+10#68 /D
+10#69 /E
+10#70 /F
+10#71 /G
+10#72 /H
+10#73 /I
+10#74 /J
+10#75 /K
+10#76 /L
+10#77 /M
+10#78 /N
+10#79 /O
+10#80 /P
+10#81 /Q
+10#82 /R
+10#83 /S
+10#84 /T
+10#85 /U
+10#86 /V
+10#87 /W
+10#88 /X
+10#89 /Y
+10#90 /Z
+10#91 /bracketleft
+10#92 /backslash
+10#93 /bracketright
+10#94 /asciicircum
+10#95 /underscore
+10#96 /grave
+10#97 /a
+10#98 /b
+10#99 /c
+10#100 /d
+10#101 /e
+10#102 /f
+10#103 /g
+10#104 /h
+10#105 /i
+10#106 /j
+10#107 /k
+10#108 /l
+10#109 /m
+10#110 /n
+10#111 /o
+10#112 /p
+10#113 /q
+10#114 /r
+10#115 /s
+10#116 /t
+10#117 /u
+10#118 /v
+10#119 /w
+10#120 /x
+10#121 /y
+10#122 /z
+10#123 /braceleft
+10#124 /bar
+10#125 /braceright
+10#126 /asciitilde
+10#127 /.notdef
+10#128 /SF100000
+10#129 /SF110000
+10#130 /SF010000
+10#131 /SF030000
+10#132 /SF020000
+10#133 /SF040000
+10#134 /SF080000
+10#135 /SF090000
+10#136 /SF060000
+10#137 /SF070000
+10#138 /SF050000
+10#139 /upblock
+10#140 /dnblock
+10#141 /block
+10#142 /lfblock
+10#143 /rtblock
+10#144 /ltshade
+10#145 /shade
+10#146 /dkshade
+10#147 /integraltp
+10#148 /filledbox
+10#149 /uni2219
+10#150 /radical
+10#151 /approxequal
+10#152 /lessequal
+10#153 /greaterequal
+10#154 /uni00A0
+10#155 /integralbt
+10#156 /degree
+10#157 /twosuperior
+10#158 /periodcentered
+10#159 /divide
+10#160 /SF430000
+10#161 /SF240000
+10#162 /SF510000
+10#163 /afii10071
+10#164 /SF520000
+10#165 /SF390000
+10#166 /SF220000
+10#167 /SF210000
+10#168 /SF250000
+10#169 /SF500000
+10#170 /SF490000
+10#171 /SF380000
+10#172 /SF280000
+10#173 /SF270000
+10#174 /SF260000
+10#175 /SF360000
+10#176 /SF370000
+10#177 /SF420000
+10#178 /SF190000
+10#179 /afii10023
+10#180 /SF200000
+10#181 /SF230000
+10#182 /SF470000
+10#183 /SF480000
+10#184 /SF410000
+10#185 /SF450000
+10#186 /SF460000
+10#187 /SF400000
+10#188 /SF540000
+10#189 /SF530000
+10#190 /SF440000
+10#191 /copyright
+10#192 /afii10096
+10#193 /afii10065
+10#194 /afii10066
+10#195 /afii10088
+10#196 /afii10069
+10#197 /afii10070
+10#198 /afii10086
+10#199 /afii10068
+10#200 /afii10087
+10#201 /afii10074
+10#202 /afii10075
+10#203 /afii10076
+10#204 /afii10077
+10#205 /afii10078
+10#206 /afii10079
+10#207 /afii10080
+10#208 /afii10081
+10#209 /afii10097
+10#210 /afii10082
+10#211 /afii10083
+10#212 /afii10084
+10#213 /afii10085
+10#214 /afii10072
+10#215 /afii10067
+10#216 /afii10094
+10#217 /afii10093
+10#218 /afii10073
+10#219 /afii10090
+10#220 /afii10095
+10#221 /afii10091
+10#222 /afii10089
+10#223 /afii10092
+10#224 /afii10048
+10#225 /afii10017
+10#226 /afii10018
+10#227 /afii10040
+10#228 /afii10021
+10#229 /afii10022
+10#230 /afii10038
+10#231 /afii10020
+10#232 /afii10039
+10#233 /afii10026
+10#234 /afii10027
+10#235 /afii10028
+10#236 /afii10029
+10#237 /afii10030
+10#238 /afii10031
+10#239 /afii10032
+10#240 /afii10033
+10#241 /afii10049
+10#242 /afii10034
+10#243 /afii10035
+10#244 /afii10036
+10#245 /afii10037
+10#246 /afii10024
+10#247 /afii10019
+10#248 /afii10046
+10#249 /afii10045
+10#250 /afii10025
+10#251 /afii10042
+10#252 /afii10047
+10#253 /afii10043
+10#254 /afii10041
+10#255 /afii10044] def
+%%EndResource
+/Times-Roman /Times-Roman-iso isol2vec ReEncode
+/Times-Italic /Times-Italic-iso isol2vec ReEncode
+/Times-Bold /Times-Bold-iso isol2vec ReEncode
+/Times-BoldItalic /Times-BoldItalic-iso isol2vec ReEncode
+/AvantGarde-Book /AvantGarde-Book-iso isol2vec ReEncode
+/AvantGarde-BookOblique /AvantGarde-BookOblique-iso isol2vec ReEncode
+/AvantGarde-Demi /AvantGarde-Demi-iso isol2vec ReEncode
+/AvantGarde-DemiOblique /AvantGarde-DemiOblique-iso isol2vec ReEncode
+/Bookman-Light /Bookman-Light-iso isol2vec ReEncode
+/Bookman-LightItalic /Bookman-LightItalic-iso isol2vec ReEncode
+/Bookman-Demi /Bookman-Demi-iso isol2vec ReEncode
+/Bookman-DemiItalic /Bookman-DemiItalic-iso isol2vec ReEncode
+/Courier /Courier-iso isol2vec ReEncode
+/Courier-Oblique /Courier-Oblique-iso isol2vec ReEncode
+/Courier-Bold /Courier-Bold-iso isol2vec ReEncode
+/Courier-BoldOblique /Courier-BoldOblique-iso isol2vec ReEncode
+/Helvetica /Helvetica-iso isol2vec ReEncode
+/Helvetica-Oblique /Helvetica-Oblique-iso isol2vec ReEncode
+/Helvetica-Bold /Helvetica-Bold-iso isol2vec ReEncode
+/Helvetica-BoldOblique /Helvetica-BoldOblique-iso isol2vec ReEncode
+/Helvetica-Narrow /Helvetica-Narrow-iso isol2vec ReEncode
+/Helvetica-Narrow-Oblique /Helvetica-Narrow-Oblique-iso isol2vec ReEncode
+/Helvetica-Narrow-Bold /Helvetica-Narrow-Bold-iso isol2vec ReEncode
+/Helvetica-Narrow-BoldOblique /Helvetica-Narrow-BoldOblique-iso isol2vec ReEncode
+/NewCenturySchlbk-Roman /NewCenturySchlbk-Roman-iso isol2vec ReEncode
+/NewCenturySchlbk-Italic /NewCenturySchlbk-Italic-iso isol2vec ReEncode
+/NewCenturySchlbk-Bold /NewCenturySchlbk-Bold-iso isol2vec ReEncode
+/NewCenturySchlbk-BoldItalic /NewCenturySchlbk-BoldItalic-iso isol2vec ReEncode
+/Palatino-Roman /Palatino-Roman-iso isol2vec ReEncode
+/Palatino-Italic /Palatino-Italic-iso isol2vec ReEncode
+/Palatino-Bold /Palatino-Bold-iso isol2vec ReEncode
+/Palatino-BoldItalic /Palatino-BoldItalic-iso isol2vec ReEncode
+%% End of ru_RU.KOI8-R.ps
diff --git a/media-gfx/transfig/files/transfig-uk_UA.KOI8-U.ps b/media-gfx/transfig/files/transfig-uk_UA.KOI8-U.ps
new file mode 100644
index 000000000000..8803c72e4697
--- /dev/null
+++ b/media-gfx/transfig/files/transfig-uk_UA.KOI8-U.ps
@@ -0,0 +1,298 @@
+%% Begining of uk_UA.KOI8-U.ps
+%%
+%% Author: Yura Zotov <yz@altlinux.ru>
+%% based on cs_CZ.ps made by Radim Gelner <radim.gelner@suse.cz>
+%%
+%%BeginResource: encoding ISOLatin2Encoding
+
+/isol2vec [
+10#0 /.notdef
+10#1 /.notdef
+10#2 /.notdef
+10#3 /.notdef
+10#4 /.notdef
+10#5 /.notdef
+10#6 /.notdef
+10#7 /.notdef
+10#8 /.notdef
+10#9 /.notdef
+10#10 /.notdef
+10#11 /.notdef
+10#12 /.notdef
+10#13 /.notdef
+10#14 /.notdef
+10#15 /.notdef
+10#16 /.notdef
+10#17 /.notdef
+10#18 /.notdef
+10#19 /.notdef
+10#20 /.notdef
+10#21 /.notdef
+10#22 /.notdef
+10#23 /.notdef
+10#24 /.notdef
+10#25 /.notdef
+10#26 /.notdef
+10#27 /.notdef
+10#28 /.notdef
+10#29 /.notdef
+10#30 /.notdef
+10#31 /.notdef
+10#32 /space
+10#33 /exclam
+10#34 /quotedbl
+10#35 /numbersign
+10#36 /dollar
+10#37 /percent
+10#38 /ampersand
+10#39 /quotesingle
+10#40 /parenleft
+10#41 /parenright
+10#42 /asterisk
+10#43 /plus
+10#44 /comma
+10#45 /hyphen
+10#46 /period
+10#47 /slash
+10#48 /zero
+10#49 /one
+10#50 /two
+10#51 /three
+10#52 /four
+10#53 /five
+10#54 /six
+10#55 /seven
+10#56 /eight
+10#57 /nine
+10#58 /colon
+10#59 /semicolon
+10#60 /less
+10#61 /equal
+10#62 /greater
+10#63 /question
+10#64 /at
+10#65 /A
+10#66 /B
+10#67 /C
+10#68 /D
+10#69 /E
+10#70 /F
+10#71 /G
+10#72 /H
+10#73 /I
+10#74 /J
+10#75 /K
+10#76 /L
+10#77 /M
+10#78 /N
+10#79 /O
+10#80 /P
+10#81 /Q
+10#82 /R
+10#83 /S
+10#84 /T
+10#85 /U
+10#86 /V
+10#87 /W
+10#88 /X
+10#89 /Y
+10#90 /Z
+10#91 /bracketleft
+10#92 /backslash
+10#93 /bracketright
+10#94 /asciicircum
+10#95 /underscore
+10#96 /grave
+10#97 /a
+10#98 /b
+10#99 /c
+10#100 /d
+10#101 /e
+10#102 /f
+10#103 /g
+10#104 /h
+10#105 /i
+10#106 /j
+10#107 /k
+10#108 /l
+10#109 /m
+10#110 /n
+10#111 /o
+10#112 /p
+10#113 /q
+10#114 /r
+10#115 /s
+10#116 /t
+10#117 /u
+10#118 /v
+10#119 /w
+10#120 /x
+10#121 /y
+10#122 /z
+10#123 /braceleft
+10#124 /bar
+10#125 /braceright
+10#126 /asciitilde
+10#127 /.notdef
+10#128 /SF100000
+10#129 /SF110000
+10#130 /SF010000
+10#131 /SF030000
+10#132 /SF020000
+10#133 /SF040000
+10#134 /SF080000
+10#135 /SF090000
+10#136 /SF060000
+10#137 /SF070000
+10#138 /SF050000
+10#139 /upblock
+10#140 /dnblock
+10#141 /block
+10#142 /lfblock
+10#143 /rtblock
+10#144 /ltshade
+10#145 /shade
+10#146 /dkshade
+10#147 /integraltp
+10#148 /filledbox
+10#149 /uni2219
+10#150 /radical
+10#151 /approxequal
+10#152 /lessequal
+10#153 /greaterequal
+10#154 /uni00A0
+10#155 /integralbt
+10#156 /degree
+10#157 /twosuperior
+10#158 /periodcentered
+10#159 /divide
+10#160 /SF430000
+10#161 /SF240000
+10#162 /SF510000
+10#163 /afii10071
+10#164 /afii10101
+10#165 /SF390000
+10#166 /afii10103
+10#167 /afii10104
+10#168 /SF250000
+10#169 /SF500000
+10#170 /SF490000
+10#171 /SF380000
+10#172 /SF280000
+10#173 /afii10098
+10#174 /SF260000
+10#175 /SF360000
+10#176 /SF370000
+10#177 /SF420000
+10#178 /SF190000
+10#179 /afii10023
+10#180 /afii10053
+10#181 /SF230000
+10#182 /afii10055
+10#183 /afii10056
+10#184 /SF410000
+10#185 /SF450000
+10#186 /SF460000
+10#187 /SF400000
+10#188 /SF540000
+10#189 /afii10050
+10#190 /SF440000
+10#191 /copyright
+10#192 /afii10096
+10#193 /afii10065
+10#194 /afii10066
+10#195 /afii10088
+10#196 /afii10069
+10#197 /afii10070
+10#198 /afii10086
+10#199 /afii10068
+10#200 /afii10087
+10#201 /afii10074
+10#202 /afii10075
+10#203 /afii10076
+10#204 /afii10077
+10#205 /afii10078
+10#206 /afii10079
+10#207 /afii10080
+10#208 /afii10081
+10#209 /afii10097
+10#210 /afii10082
+10#211 /afii10083
+10#212 /afii10084
+10#213 /afii10085
+10#214 /afii10072
+10#215 /afii10067
+10#216 /afii10094
+10#217 /afii10093
+10#218 /afii10073
+10#219 /afii10090
+10#220 /afii10095
+10#221 /afii10091
+10#222 /afii10089
+10#223 /afii10092
+10#224 /afii10048
+10#225 /afii10017
+10#226 /afii10018
+10#227 /afii10040
+10#228 /afii10021
+10#229 /afii10022
+10#230 /afii10038
+10#231 /afii10020
+10#232 /afii10039
+10#233 /afii10026
+10#234 /afii10027
+10#235 /afii10028
+10#236 /afii10029
+10#237 /afii10030
+10#238 /afii10031
+10#239 /afii10032
+10#240 /afii10033
+10#241 /afii10049
+10#242 /afii10034
+10#243 /afii10035
+10#244 /afii10036
+10#245 /afii10037
+10#246 /afii10024
+10#247 /afii10019
+10#248 /afii10046
+10#249 /afii10045
+10#250 /afii10025
+10#251 /afii10042
+10#252 /afii10047
+10#253 /afii10043
+10#254 /afii10041
+10#255 /afii10044] def
+%%EndResource
+/Times-Roman /Times-Roman-iso isol2vec ReEncode
+/Times-Italic /Times-Italic-iso isol2vec ReEncode
+/Times-Bold /Times-Bold-iso isol2vec ReEncode
+/Times-BoldItalic /Times-BoldItalic-iso isol2vec ReEncode
+/AvantGarde-Book /AvantGarde-Book-iso isol2vec ReEncode
+/AvantGarde-BookOblique /AvantGarde-BookOblique-iso isol2vec ReEncode
+/AvantGarde-Demi /AvantGarde-Demi-iso isol2vec ReEncode
+/AvantGarde-DemiOblique /AvantGarde-DemiOblique-iso isol2vec ReEncode
+/Bookman-Light /Bookman-Light-iso isol2vec ReEncode
+/Bookman-LightItalic /Bookman-LightItalic-iso isol2vec ReEncode
+/Bookman-Demi /Bookman-Demi-iso isol2vec ReEncode
+/Bookman-DemiItalic /Bookman-DemiItalic-iso isol2vec ReEncode
+/Courier /Courier-iso isol2vec ReEncode
+/Courier-Oblique /Courier-Oblique-iso isol2vec ReEncode
+/Courier-Bold /Courier-Bold-iso isol2vec ReEncode
+/Courier-BoldOblique /Courier-BoldOblique-iso isol2vec ReEncode
+/Helvetica /Helvetica-iso isol2vec ReEncode
+/Helvetica-Oblique /Helvetica-Oblique-iso isol2vec ReEncode
+/Helvetica-Bold /Helvetica-Bold-iso isol2vec ReEncode
+/Helvetica-BoldOblique /Helvetica-BoldOblique-iso isol2vec ReEncode
+/Helvetica-Narrow /Helvetica-Narrow-iso isol2vec ReEncode
+/Helvetica-Narrow-Oblique /Helvetica-Narrow-Oblique-iso isol2vec ReEncode
+/Helvetica-Narrow-Bold /Helvetica-Narrow-Bold-iso isol2vec ReEncode
+/Helvetica-Narrow-BoldOblique /Helvetica-Narrow-BoldOblique-iso isol2vec ReEncode
+/NewCenturySchlbk-Roman /NewCenturySchlbk-Roman-iso isol2vec ReEncode
+/NewCenturySchlbk-Italic /NewCenturySchlbk-Italic-iso isol2vec ReEncode
+/NewCenturySchlbk-Bold /NewCenturySchlbk-Bold-iso isol2vec ReEncode
+/NewCenturySchlbk-BoldItalic /NewCenturySchlbk-BoldItalic-iso isol2vec ReEncode
+/Palatino-Roman /Palatino-Roman-iso isol2vec ReEncode
+/Palatino-Italic /Palatino-Italic-iso isol2vec ReEncode
+/Palatino-Bold /Palatino-Bold-iso isol2vec ReEncode
+/Palatino-BoldItalic /Palatino-BoldItalic-iso isol2vec ReEncode
+%% End of uk_UA.KOI8-U.ps
diff --git a/media-gfx/transfig/metadata.xml b/media-gfx/transfig/metadata.xml
new file mode 100644
index 000000000000..327363b300a4
--- /dev/null
+++ b/media-gfx/transfig/metadata.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <upstream>
+ <remote-id type="sourceforge">mcj</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/media-gfx/transfig/transfig-3.2.5d-r1.ebuild b/media-gfx/transfig/transfig-3.2.5d-r1.ebuild
new file mode 100644
index 000000000000..aee8e3b95999
--- /dev/null
+++ b/media-gfx/transfig/transfig-3.2.5d-r1.ebuild
@@ -0,0 +1,94 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="4"
+inherit toolchain-funcs eutils flag-o-matic multilib
+
+MY_P=${PN}.${PV}
+
+DESCRIPTION="A set of tools for creating TeX documents with graphics"
+HOMEPAGE="http://www.xfig.org/"
+SRC_URI="mirror://sourceforge/mcj/${MY_P}.tar.gz
+ mirror://gentoo/fig2mpdf-1.1.2.tar.bz2"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="alpha amd64 ~arm hppa ia64 ppc ppc64 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris ~x86-solaris"
+IUSE=""
+
+RDEPEND="x11-libs/libXpm
+ virtual/jpeg
+ media-libs/libpng
+ x11-apps/rgb"
+DEPEND="${RDEPEND}
+ x11-misc/imake
+ app-text/rman"
+
+S=${WORKDIR}/${MY_P}
+
+sed_Imakefile() {
+ # see fig2dev/Imakefile for details
+ vars2subs="BINDIR=${EPREFIX}/usr/bin
+ MANDIR=${EPREFIX}/usr/share/man/man\$\(MANSUFFIX\)
+ XFIGLIBDIR=${EPREFIX}/usr/share/xfig
+ PNGINC=-I${EPREFIX}/usr/include/X11
+ XPMINC=-I${EPREFIX}/usr/include/X11
+ USEINLINE=-DUSE_INLINE
+ RGB=${EPREFIX}/usr/share/X11/rgb.txt
+ FIG2DEV_LIBDIR=${EPREFIX}/usr/share/fig2dev"
+
+ for variable in ${vars2subs} ; do
+ varname=${variable%%=*}
+ varval=${variable##*=}
+ sed -i "s:^\(XCOMM\)*[[:space:]]*${varname}[[:space:]]*=.*$:${varname} = ${varval}:" "$@"
+ done
+}
+
+src_prepare() {
+ find . -type f -exec chmod a-x '{}' \;
+ find . -name Makefile -delete
+ epatch "${FILESDIR}"/${P}-fig2mpdf-r1.patch
+ epatch "${FILESDIR}"/${PN}-3.2.5c-maxfontsize.patch
+ epatch "${FILESDIR}"/${P}-leadspace.patch
+ epatch "${FILESDIR}"/${P}-precision.patch
+ epatch "${FILESDIR}"/${P}-MAXWIDTH.patch
+ epatch "${FILESDIR}"/${P}-libpng-1.5.patch #356751
+ epatch "${FILESDIR}"/${PN}-3.2.5-solaris.patch
+
+ sed -e 's:-L$(ZLIBDIR) -lz::' \
+ -e 's: -lX11::' \
+ -i fig2dev/Imakefile || die
+ sed_Imakefile fig2dev/Imakefile fig2dev/dev/Imakefile
+}
+
+src_compile() {
+ xmkmf || die "xmkmf failed"
+ emake Makefiles
+
+ emake CC="$(tc-getCC)" LOCAL_LDFLAGS="${LDFLAGS}" CDEBUGFLAGS="${CFLAGS}" \
+ USRLIBDIR="${EPREFIX}/usr/$(get_libdir)"
+}
+
+src_install() {
+ emake DESTDIR="${D}" \
+ ${transfig_conf} install install.man
+
+ dobin "${WORKDIR}/fig2mpdf/fig2mpdf"
+ doman "${WORKDIR}/fig2mpdf/fig2mpdf.1"
+
+ insinto /usr/share/fig2dev/
+ newins "${FILESDIR}/transfig-ru_RU.CP1251.ps" ru_RU.CP1251.ps
+ newins "${FILESDIR}/transfig-ru_RU.KOI8-R.ps" ru_RU.KOI8-R.ps
+ newins "${FILESDIR}/transfig-uk_UA.KOI8-U.ps" uk_UA.KOI8-U.ps
+
+ dohtml "${WORKDIR}/fig2mpdf/doc/"* || die
+
+ mv "${ED}"/usr/bin/fig2ps2tex{.sh,} || die #338295
+
+ dodoc README CHANGES LATEX.AND.XFIG NOTES
+}
+
+pkg_postinst() {
+ elog "Note, that defaults are changed and now if you don't want to ship"
+ elog "personal information into output files, use fig2dev with -a option."
+}
diff --git a/media-gfx/transfig/transfig-3.2.5e.ebuild b/media-gfx/transfig/transfig-3.2.5e.ebuild
new file mode 100644
index 000000000000..f82b26b8a09e
--- /dev/null
+++ b/media-gfx/transfig/transfig-3.2.5e.ebuild
@@ -0,0 +1,93 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="4"
+inherit toolchain-funcs eutils flag-o-matic multilib
+
+MY_P=${PN}.${PV}
+
+DESCRIPTION="A set of tools for creating TeX documents with graphics"
+HOMEPAGE="http://www.xfig.org/"
+SRC_URI="mirror://sourceforge/mcj/${MY_P}.tar.gz
+ mirror://gentoo/fig2mpdf-1.1.2.tar.bz2"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="alpha amd64 ~arm ~arm64 ~hppa ~ia64 ppc ppc64 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris ~x86-solaris"
+IUSE=""
+
+RDEPEND="x11-libs/libXpm
+ virtual/jpeg
+ media-libs/libpng
+ x11-apps/rgb"
+DEPEND="${RDEPEND}
+ x11-misc/imake
+ app-text/rman"
+
+S=${WORKDIR}/${MY_P}
+
+sed_Imakefile() {
+ # see fig2dev/Imakefile for details
+ vars2subs="BINDIR=${EPREFIX}/usr/bin
+ MANDIR=${EPREFIX}/usr/share/man/man\$\(MANSUFFIX\)
+ XFIGLIBDIR=${EPREFIX}/usr/share/xfig
+ PNGINC=-I${EPREFIX}/usr/include/X11
+ XPMINC=-I${EPREFIX}/usr/include/X11
+ USEINLINE=-DUSE_INLINE
+ RGB=${EPREFIX}/usr/share/X11/rgb.txt
+ FIG2DEV_LIBDIR=${EPREFIX}/usr/share/fig2dev"
+
+ for variable in ${vars2subs} ; do
+ varname=${variable%%=*}
+ varval=${variable##*=}
+ sed -i "s:^\(XCOMM\)*[[:space:]]*${varname}[[:space:]]*=.*$:${varname} = ${varval}:" "$@"
+ done
+}
+
+src_prepare() {
+ find . -type f -exec chmod a-x '{}' \;
+ find . -name Makefile -delete
+ epatch "${FILESDIR}"/${PN}-3.2.5d-fig2mpdf-r1.patch
+ epatch "${FILESDIR}"/${PN}-3.2.5c-maxfontsize.patch
+ epatch "${FILESDIR}"/${PN}-3.2.5-solaris.patch
+ epatch "${FILESDIR}"/${PN}-3.2.5e-typos.patch
+ epatch "${FILESDIR}"/${PN}-3.2.5e-man-hyphen.patch
+ epatch "${FILESDIR}"/${PN}-3.2.5e-fprintf_format_warnings.patch
+
+ sed -e 's:-L$(ZLIBDIR) -lz::' \
+ -e 's: -lX11::' \
+ -i fig2dev/Imakefile || die
+ sed_Imakefile fig2dev/Imakefile fig2dev/dev/Imakefile
+}
+
+src_compile() {
+ xmkmf || die "xmkmf failed"
+ emake Makefiles
+
+ emake CC="$(tc-getCC)" LOCAL_LDFLAGS="${LDFLAGS}" CDEBUGFLAGS="${CFLAGS}" \
+ USRLIBDIR="${EPREFIX}/usr/$(get_libdir)"
+}
+
+src_install() {
+ emake DESTDIR="${D}" \
+ ${transfig_conf} install install.man
+
+ dobin "${WORKDIR}/fig2mpdf/fig2mpdf"
+ doman "${WORKDIR}/fig2mpdf/fig2mpdf.1"
+
+ insinto /usr/share/fig2dev/
+ newins "${FILESDIR}/transfig-ru_RU.CP1251.ps" ru_RU.CP1251.ps
+ newins "${FILESDIR}/transfig-ru_RU.KOI8-R.ps" ru_RU.KOI8-R.ps
+ newins "${FILESDIR}/transfig-uk_UA.KOI8-U.ps" uk_UA.KOI8-U.ps
+
+ dohtml "${WORKDIR}/fig2mpdf/doc/"* || die
+
+ mv "${ED}"/usr/bin/fig2ps2tex{.sh,} || die #338295
+
+ dodoc README CHANGES LATEX.AND.XFIG NOTES
+}
+
+pkg_postinst() {
+ elog "Note, that defaults are changed and now if you don't want to ship"
+ elog "personal information into output files, use fig2dev with -a option."
+}
diff --git a/media-gfx/tuxpaint-stamps/Manifest b/media-gfx/tuxpaint-stamps/Manifest
new file mode 100644
index 000000000000..bebe255552a2
--- /dev/null
+++ b/media-gfx/tuxpaint-stamps/Manifest
@@ -0,0 +1,6 @@
+AUX tuxpaint-stamps-20090628-make-382.patch 361 SHA256 d238714745432445f6ccbf928d9ee5d6dbe63f64c47fbc402232c5b31bb6bc59 SHA512 b8fb88307e6962a1a26c5223ac342441bf390dfee64a90a9f69330917daf4fc3174fd61c326c6445041edb9b2b88c05356f3753c1008844cf695099353b52d55 WHIRLPOOL 1b6e0a2b61774e770625c458b3f86629706224a7485eaf2cd05099bf390f59b20f76cb02a81d2346ee63ce79e4f597f530600a44df5b4ccadd405c6e7bdbd51d
+DIST tuxpaint-stamps-2009.06.28.tar.gz 48273629 SHA256 271d9a5739d24b6dcee751bf8c889eecb3beb3ff67f5a870dba5d7732dca3e68 SHA512 ca059275484bec045c4f2bad414ea5359d2a8812cc1c8d1e11ad8f3b7e63e107c1fccc347291ffe95d81a5192b39198c56d319ef6a0f475fb128d9a2d0e5e027 WHIRLPOOL e53088ddb6e516f201523147a43e8212bbc5fb69edbf022ef9ba322e3d9505280220a111562d218e9b9dc5b1457e4eaeff2d35a26f1d48ef7d4ba328d83ce050
+EBUILD tuxpaint-stamps-20090628.ebuild 640 SHA256 44298aab4f8add0e0b94546130347df039068cb50fbd3174d3651ef2af705163 SHA512 9ad14944f599eef7a4652af68a90a1e6811b47eda9aa18024b7ac917cfd2142cc35f0fc2de4c30bfa7188ff933ab4f3495e625bade86fa06909969662f39d23a WHIRLPOOL 5b89ff5320455c39b1f14a457a9e0acbad60eb8daf6977cc40ceeb81ef593919adc3cd904822a4c49257fcb1125daa6669ede88d0b5e013d267443c435ae1e3f
+MISC ChangeLog 2508 SHA256 d27aa480e4af8a9906f136db532d8632ebf470d407ed49ad0a20214d7b0d427b SHA512 fa912c6f4523a6af296d30d769d9ded0a23b75afbfecef47d62fc0ae831178127572f9d02e6320821ed1c2a19924cc4c443b05c50c33f1c2cc64d38762bdd980 WHIRLPOOL 431ed50d3808766225ab4c2b36f980de403edd1b3f57b6239380d9b8c71546d75e2e6b0500d7559b5afbe2013a942e0997bf8a4f9457e5a2652142d81f8a4dd4
+MISC ChangeLog-2015 4319 SHA256 e7ad692f77a60ebf1162b02bd276edef08b1a92d62e968d37d2a69ede359b1b2 SHA512 65805c20f0ec4a73c80a712e437f688a9ee1d453a9cad3810733b6e5cace6f4afd04b990fd0a8f40091bda0e8bc759531469568e7587ed4ba4df71b20fc0243d WHIRLPOOL 7e46dcac7446e0a15f919eb3b2f678cf1e2c83c038652f179b7f8a522e5ace1c46429184682c8222689163f4577a78619db7589127e983b5bb5931ba0d34c22b
+MISC metadata.xml 451 SHA256 8cfe81eed5d6033230034ab914d3ba347d1d3c702956d3e6254a0d6e89ca4ddb SHA512 5236357c1909fd5a6ce60a110ee8d81297e4f98d69f93c06e4fdda27d34df91693cd5b9f71746f84337a4005c56d95479e7de9684f4fc564a421d3f83af86461 WHIRLPOOL 6b5eb8dc9ec1a6cc67bfb2e2a6105eaa8bf16b7c305e0c03994e3360447925eac5d3cc9472c6127928ef4985dcfd66af016295952fb5ee411f6f06adccd46b8d
diff --git a/media-gfx/tuxpaint-stamps/files/tuxpaint-stamps-20090628-make-382.patch b/media-gfx/tuxpaint-stamps/files/tuxpaint-stamps-20090628-make-382.patch
new file mode 100644
index 000000000000..9a92ae112457
--- /dev/null
+++ b/media-gfx/tuxpaint-stamps/files/tuxpaint-stamps-20090628-make-382.patch
@@ -0,0 +1,15 @@
+http://bugs.gentoo.org/334569
+
+--- Makefile
++++ Makefile
+@@ -79,9 +79,7 @@
+ @rm -rf "build/tuxpaint-stamps-$(VER_DATE)" "build/tuxpaint-stamps-$(VER_DATE).tar.gz"
+ @-if [ -d build ] ; then rmdir build ; fi
+
+-releasedir: build/tuxpaint-stamps-$(VER_DATE)
+-
+-build/tuxpaint-stamps-$(VER_DATE):
++releasedir:
+ @echo
+ @echo "Creating release directory"
+ @echo
diff --git a/media-gfx/tuxpaint-stamps/metadata.xml b/media-gfx/tuxpaint-stamps/metadata.xml
new file mode 100644
index 000000000000..5527db74016c
--- /dev/null
+++ b/media-gfx/tuxpaint-stamps/metadata.xml
@@ -0,0 +1,14 @@
+<?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>
+ <longdescription>
+ These are additional stamps for the Tux Paint drawing program.
+</longdescription>
+ <upstream>
+ <remote-id type="sourceforge">tuxpaint</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/media-gfx/tuxpaint-stamps/tuxpaint-stamps-20090628.ebuild b/media-gfx/tuxpaint-stamps/tuxpaint-stamps-20090628.ebuild
new file mode 100644
index 000000000000..9860d5ab8f37
--- /dev/null
+++ b/media-gfx/tuxpaint-stamps/tuxpaint-stamps-20090628.ebuild
@@ -0,0 +1,32 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=2
+inherit eutils
+
+MY_P=${PN}-${PV:0:4}.${PV:4:2}.${PV:6:2}
+
+DESCRIPTION="Set of 'Rubber Stamp' images which can be used within Tux Paint"
+HOMEPAGE="http://www.tuxpaint.org/"
+SRC_URI="mirror://sourceforge/tuxpaint/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc x86"
+IUSE=""
+
+RDEPEND="media-gfx/tuxpaint"
+DEPEND="${RDEPEND}"
+
+S=${WORKDIR}/${MY_P}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-make-382.patch
+}
+
+src_install() {
+ emake PREFIX="${D}/usr" install-all || die
+
+ rm -f docs/COPYING.txt
+ dodoc docs/*.txt
+}
diff --git a/media-gfx/tuxpaint/Manifest b/media-gfx/tuxpaint/Manifest
new file mode 100644
index 000000000000..782d2dc3a8aa
--- /dev/null
+++ b/media-gfx/tuxpaint/Manifest
@@ -0,0 +1,9 @@
+AUX tuxpaint-0.9.20-gentoo.patch 6029 SHA256 c17748627036785a00cb2a0058653736b5c0754981311e2ba6a15231ee57f527 SHA512 c9a0c58aba35d93016b1ad63607df132ceb4ed597c398dced8394a536ac668adb2ef0758d4620cf8ba9b22ca874e491615eb9386fff19d7291eb006e62397c42 WHIRLPOOL 7fb8ccde5a74b827c49a39a6becd83387312bd2c23725776ac8f251e2b5bf19fdd7892c9aa24cdb190cc183ebaee83ba31047f7de1a46b91fe642473a5d8bae7
+AUX tuxpaint-0.9.21-LDFLAGS.patch 853 SHA256 02dcd7e70c9dc70c243d586bb180775b83213cda079f34f47d9ab5ae8fd85872 SHA512 d2012c76d2d666d58a89a18f110f6cb136f4ed6819a3d169e4ccdb95ca1cb55469d80aa965f2c1bf222e1957218e4bd64bad47c67b0e6994a47c6ff0e690c812 WHIRLPOOL 9623d443eebe7c19b15d5d1bf84ca88e60b00394c5568d62b1eb5407a7881a7b9b6e0c58d61ce002f09ff9110ba189362c83be83509fdb9dde7b647e0ac2530b
+AUX tuxpaint-0.9.21-libpng1.5.patch 838 SHA256 44891b0d4589f765527ebb2b23e8515ae13d6d8cfe067bd1d556526467b1f72b SHA512 c860141816023bf0d36d7aac33134e213d0dfb111d9e123c4e1470753eb2a34c6e93046def09ee2a566de1f7b6a9aeb1638f408f935ddbf9c62285129bee7d0a WHIRLPOOL 1d4bde280573f98230f7db7466dcdd23d5b7bbb59d4af62b9f4126ac91e7704c071045838d18685f5353c49d2256fa178f89ccfde560f66bb1fc400ca3ed3e1d
+AUX tuxpaint-0.9.21-underlinking.patch 592 SHA256 57e4d91ce0a4592b1e0dff1113eaa8c8de73c656003555d0d6b11c04a22ab3c2 SHA512 66f0cea73c2e89353bd0085ae9de280ccf197dd3e253e00b05f4c0aeac2e2489ec94e21ad26a41ca09cce717533bd0010c655498cf9267bba6019bf78e2a836f WHIRLPOOL c909186480a4f4babfd76aa445d6d9d5bc0ac3db7e55d34ff7798568cff0d667005b32c2999934b7c803e8101740d89850e4d259a296dcff5b9d77286c307ea6
+DIST tuxpaint-0.9.21.tar.gz 9543034 SHA256 6d4f2b981643b5c937708e5e6cdaf318ae7b5562375327b4b1cb84611e65ede9 SHA512 fafd80fe7a5a4d65236c8b5a4f15c644c76180e0e4ed7e774795572b70cc38ddb3273be2a93f041d74a1e536a5a9386c18e51987425ea1a3ff910661e4b0afb3 WHIRLPOOL e9b8dc45ed8f5ffd099d0d8308a13cd0b8658cf08e4c35ba21fe1a2edf18178936809c2e95a2a560c3f3e5b3e875fd078412067830bef69becd8f25fb74ad2fd
+EBUILD tuxpaint-0.9.21-r2.ebuild 1691 SHA256 503c163a3373af00f5f75b1c038d09f25bb1b4eef36d6419d2571de24dc69023 SHA512 7c315b28434ebf2e015097d038902f0217477ad63dc1ee7c36ef9291206c59d832e655dcc5fec1c94d7a639f103c1090eb38055f9759dbab9ca2b8ce23dd927d WHIRLPOOL 24a0080c40327e1d088d7781d2e80bda43db3ab57b125cbf8aa5951d00f7f3f7eabbef358bce5af8335ee180f48abc48579d98390a0379952fa4450bf5a6b811
+MISC ChangeLog 3706 SHA256 efb4421d66ea42316d3b14dc61abec5bb4b9f478851cd781b7b5e7dba291b59e SHA512 e5e2bbbe545e86b4727e5bfd84bbb9931e07040a1d2ca766f014bbd9ce40b73955d4f470bfe96243e686e634286ac17c6780451bd3f312a9ee30be7defe96f85 WHIRLPOOL 696d99b97ce0649b026ce27f46c8e8f825afa454e456e8432bdcd9ddd6198bd57f4c473a20b9ab2fbd2643a6ef21521b0653828802d975c9d208e42d04d8e48c
+MISC ChangeLog-2015 10555 SHA256 6d8c3d587268d90a70d257b0763a4427ed3b5a56d56710119cc5c9723e749b07 SHA512 b67b6f683555bd4e3083dabd5e3c10b0226f25bd5b0bf2e697d73c573888076dbaf8a13758c8f3596fad12a1818fe65364772025c139dbe51377e1de2a78ed52 WHIRLPOOL 4839755ad0ae7aba7bd7c710f320b8e95b4a1e373baf88c4d5c10762af31b4b8ce48429c03f9611db3f77ba26eff64032a3ba685deb2797c6829f7dc1c9120c6
+MISC metadata.xml 715 SHA256 27e90068eaa3434e3793606f67f69def15656027c0adb6a66f409c1d7e4a59ab SHA512 1230a0b47a1e315e22dfb367454200018aad9936cee1e9c54a3dbe24ae4cc5c01fe5e76beeed02329a056396f0a28bbd54982064708c044f7bdc0884b1f62f04 WHIRLPOOL 1b002a82ed84fa78d1cc26781575b15a03f99a9a075c2a60085992df1e28955bbf7a2fea438d4c1de32d2333fed7e91ba7a7264ee9c92ed749952050e6a83073
diff --git a/media-gfx/tuxpaint/files/tuxpaint-0.9.20-gentoo.patch b/media-gfx/tuxpaint/files/tuxpaint-0.9.20-gentoo.patch
new file mode 100644
index 000000000000..00af3cb2a867
--- /dev/null
+++ b/media-gfx/tuxpaint/files/tuxpaint-0.9.20-gentoo.patch
@@ -0,0 +1,136 @@
+diff -ru tuxpaint-0.9.20.orig/Makefile tuxpaint-0.9.20/Makefile
+--- tuxpaint-0.9.20.orig/Makefile 2008-12-21 15:04:36.000000000 +0100
++++ tuxpaint-0.9.20/Makefile 2008-12-21 15:42:24.000000000 +0100
+@@ -137,9 +137,12 @@
+ # Icons and launchers:
+ ICON_PREFIX:=$(DESTDIR)$(PREFIX)/share/pixmaps
+ X11_ICON_PREFIX:=$(DESTDIR)$(PREFIX)/X11R6/include/X11/pixmaps
+-GNOME_PREFIX:=$(shell gnome-config --prefix 2> /dev/null)
+-KDE_PREFIX:=$(shell kde-config --install apps --expandvars 2> /dev/null)
+-KDE_ICON_PREFIX:=$(shell kde-config --install icon --expandvars 2> /dev/null)
++GNOME_PREFIX:=
++KDE_PREFIX:=
++KDE_ICON_PREFIX:=
++DESKTOP_ICON_PREFIX:=$(PREFIX)/share/icons
++
++ENABLE_GETTEXT:=0
+
+ # Maemo flag
+ MAEMOFLAG:=
+@@ -200,7 +203,7 @@
+
+ #-ffast-math
+ OPTFLAGS:=-O2
+-CFLAGS:=$(CPPFLAGS) $(OPTFLAGS) -W -Wall -fno-common -ffloat-store \
++CFLAGS:=$(CPPFLAGS) -W -Wall -fno-common -ffloat-store \
+ $(call comptest,-fvisibility=hidden,) \
+ -Wcast-align -Wredundant-decls \
+ -Wbad-function-cast -Wwrite-strings \
+@@ -232,7 +235,10 @@
+ # "make" with no arguments builds the program and man page from sources:
+ #
+ .PHONY: all
+-all: tuxpaint translations magic-plugins tp-magic-config
++all: tuxpaint magic-plugins tp-magic-config
++ @if [ -n "$(ENABLE_GETTEXT)" ] && [ $(ENABLE_GETTEXT) -eq 1 ]; then \
++ make translations; \
++ fi
+ @echo
+ @echo "--------------------------------------------------------------"
+ @echo
+@@ -390,7 +396,7 @@
+ windows_ARCH_INSTALL:=
+ osx_ARCH_INSTALL:=
+ beos_ARCH_INSTALL:=
+-linux_ARCH_INSTALL:=install-gnome install-kde install-kde-icons
++linux_ARCH_INSTALL:=install-desktop-data
+ ARCH_INSTALL:=$($(OS)_ARCH_INSTALL)
+
+ # "make install" installs all of the various parts
+@@ -400,10 +406,13 @@
+ install: install-bin install-data install-man install-doc \
+ install-magic-plugins \
+ install-magic-plugin-dev \
+- install-icon install-gettext install-im install-importscript \
++ install-icon install-im install-importscript \
+ install-default-config install-example-stamps \
+ install-example-starters \
+ $(ARCH_INSTALL)
++ @if [ -n "$(ENABLE_GETTEXT)" ] && [ $(ENABLE_GETTEXT) -eq 1 ]; then \
++ make install-gettext ; \
++ fi
+ @echo
+ @echo "--------------------------------------------------------------"
+ @echo
+@@ -581,17 +590,50 @@
+
+ # Install a launcher icon in the Gnome menu
+ .PHONY: install-gnome
+-install-gnome:
++install-desktop-data:
+ @echo
+- @echo "...Installing launcher icon into GNOME..."
+- @if [ "x$(GNOME_PREFIX)" != "x" ]; then \
+- install -d $(DESTDIR)$(GNOME_PREFIX)/share/pixmaps; \
+- cp data/images/icon.png $(DESTDIR)/$(GNOME_PREFIX)/share/pixmaps/tuxpaint.png; \
+- chmod 644 $(DESTDIR)$(GNOME_PREFIX)/share/pixmaps/tuxpaint.png; \
+- install -d $(DESTDIR)$(GNOME_PREFIX)/share/applications; \
+- cp src/tuxpaint.desktop $(DESTDIR)$(GNOME_PREFIX)/share/applications/; \
+- chmod 644 $(DESTDIR)$(GNOME_PREFIX)/share/applications/tuxpaint.desktop; \
+- fi
++ @echo "...Installing launcher entry..."
++ @if [ "x$(PREFIX)" != "x" ]; then \
++ install -d $(PKG_ROOT)$(PREFIX)/share/applications; \
++ cp src/tuxpaint.desktop $(PKG_ROOT)$(PREFIX)/share/applications/; \
++ chmod 644 $(PKG_ROOT)$(PREFIX)/share/applications/tuxpaint.desktop; \
++ install -d $(PKG_ROOT)$(DESKTOP_ICON_PREFIX)/hicolor/scalable/apps/; \
++ install -d $(PKG_ROOT)$(DESKTOP_ICON_PREFIX)/hicolor/192x192/apps/; \
++ install -d $(PKG_ROOT)$(DESKTOP_ICON_PREFIX)/hicolor/128x128/apps/; \
++ install -d $(PKG_ROOT)$(DESKTOP_ICON_PREFIX)/hicolor/96x96/apps/; \
++ install -d $(PKG_ROOT)$(DESKTOP_ICON_PREFIX)/hicolor/64x64/apps/; \
++ install -d $(PKG_ROOT)$(DESKTOP_ICON_PREFIX)/hicolor/48x48/apps/; \
++ install -d $(PKG_ROOT)$(DESKTOP_ICON_PREFIX)/hicolor/32x32/apps/; \
++ install -d $(PKG_ROOT)$(DESKTOP_ICON_PREFIX)/hicolor/22x22/apps/; \
++ install -d $(PKG_ROOT)$(DESKTOP_ICON_PREFIX)/hicolor/16x16/apps/; \
++ cp data/images/tuxpaint-icon.svg \
++ $(PKG_ROOT)$(DESKTOP_ICON_PREFIX)/hicolor/scalable/apps/tuxpaint.svg; \
++ chmod 644 $(PKG_ROOT)$(DESKTOP_ICON_PREFIX)/hicolor/scalable/apps/tuxpaint.svg; \
++ cp data/images/icon192x192.png \
++ $(PKG_ROOT)$(DESKTOP_ICON_PREFIX)/hicolor/192x192/apps/tuxpaint.png; \
++ chmod 644 $(PKG_ROOT)$(DESKTOP_ICON_PREFIX)/hicolor/192x192/apps/tuxpaint.png; \
++ cp data/images/icon128x128.png \
++ $(PKG_ROOT)$(DESKTOP_ICON_PREFIX)/hicolor/128x128/apps/tuxpaint.png; \
++ chmod 644 $(PKG_ROOT)$(DESKTOP_ICON_PREFIX)/hicolor/128x128/apps/tuxpaint.png; \
++ cp data/images/icon96x96.png \
++ $(PKG_ROOT)$(DESKTOP_ICON_PREFIX)/hicolor/96x96/apps/tuxpaint.png; \
++ chmod 644 $(PKG_ROOT)$(DESKTOP_ICON_PREFIX)/hicolor/96x96/apps/tuxpaint.png; \
++ cp data/images/icon64x64.png \
++ $(PKG_ROOT)$(DESKTOP_ICON_PREFIX)/hicolor/64x64/apps/tuxpaint.png; \
++ chmod 644 $(PKG_ROOT)$(DESKTOP_ICON_PREFIX)/hicolor/64x64/apps/tuxpaint.png; \
++ cp data/images/icon48x48.png \
++ $(PKG_ROOT)$(DESKTOP_ICON_PREFIX)/hicolor/48x48/apps/tuxpaint.png; \
++ chmod 644 $(PKG_ROOT)$(DESKTOP_ICON_PREFIX)/hicolor/48x48/apps/tuxpaint.png; \
++ cp data/images/icon32x32.png \
++ $(PKG_ROOT)$(DESKTOP_ICON_PREFIX)/hicolor/32x32/apps/tuxpaint.png; \
++ chmod 644 $(PKG_ROOT)$(DESKTOP_ICON_PREFIX)/hicolor/32x32/apps/tuxpaint.png; \
++ cp data/images/icon22x22.png \
++ $(PKG_ROOT)$(DESKTOP_ICON_PREFIX)/hicolor/22x22/apps/tuxpaint.png; \
++ chmod 644 $(PKG_ROOT)$(DESKTOP_ICON_PREFIX)/hicolor/22x22/apps/tuxpaint.png; \
++ cp data/images/icon16x16.png \
++ $(PKG_ROOT)$(DESKTOP_ICON_PREFIX)/hicolor/16x16/apps/tuxpaint.png; \
++ chmod 644 $(PKG_ROOT)$(DESKTOP_ICON_PREFIX)/hicolor/16x16/apps/tuxpaint.png; \
++ fi
+
+
+ # Install a launcher icon for the Nokia 770.
+@@ -684,9 +726,6 @@
+ @install -d $(ICON_PREFIX)
+ @cp data/images/icon.png $(ICON_PREFIX)/tuxpaint.png
+ @chmod 644 $(ICON_PREFIX)/tuxpaint.png
+- @install -d $(X11_ICON_PREFIX)
+- @cp data/images/icon32x32.xpm $(X11_ICON_PREFIX)/tuxpaint.xpm
+- @chmod 644 $(X11_ICON_PREFIX)/tuxpaint.xpm
+
+
+ # Install the program:
+Only in tuxpaint-0.9.20: Makefile.bak
diff --git a/media-gfx/tuxpaint/files/tuxpaint-0.9.21-LDFLAGS.patch b/media-gfx/tuxpaint/files/tuxpaint-0.9.21-LDFLAGS.patch
new file mode 100644
index 000000000000..f864a8382f09
--- /dev/null
+++ b/media-gfx/tuxpaint/files/tuxpaint-0.9.21-LDFLAGS.patch
@@ -0,0 +1,22 @@
+=== modified file 'Makefile'
+--- a/Makefile 2011-08-09 15:19:01 +0000
++++ b/Makefile 2011-08-09 15:19:43 +0000
+@@ -871,7 +871,7 @@
+ $(ARCH_LIBS)
+ @echo
+ @echo "...Linking Tux Paint..."
+- $(CC) $(CFLAGS) $(DEBUG_FLAGS) $(SDL_CFLAGS) $(FRIBIDI_CFLAGS) $(DEFS) \
++ $(CC) $(CFLAGS) $(LDFLAGS) $(DEBUG_FLAGS) $(SDL_CFLAGS) $(FRIBIDI_CFLAGS) $(DEFS) \
+ -o tuxpaint $^ \
+ $(SDL_LIBS) $(SVG_LIB) $(ARCH_LINKS)
+ @$(RSRC_CMD)
+@@ -1043,7 +1043,7 @@
+ MAGIC_SO:=$(patsubst magic/src/%.c,magic/%.$(SO_TYPE),$(MAGIC_C))
+
+ $(MAGIC_SO): magic/%.$(SO_TYPE): magic/src/%.c
+- $(CC) $(MAGIC_CFLAGS) $(SHARED_FLAGS) -o $@ $< $(PLUGIN_LIBS)
++ $(CC) $(MAGIC_CFLAGS) $(LDFLAGS) $(SHARED_FLAGS) -o $@ $< $(PLUGIN_LIBS)
+ # Probably should separate the various flags like the following:
+ # $(CC) $(PLUG_CPPFLAGS) $(PLUG_CFLAGS) $(PLUG_LDFLAGS) -o $@ $< $(PLUG_LIBS)
+
+
diff --git a/media-gfx/tuxpaint/files/tuxpaint-0.9.21-libpng1.5.patch b/media-gfx/tuxpaint/files/tuxpaint-0.9.21-libpng1.5.patch
new file mode 100644
index 000000000000..2970eac15516
--- /dev/null
+++ b/media-gfx/tuxpaint/files/tuxpaint-0.9.21-libpng1.5.patch
@@ -0,0 +1,19 @@
+http://tuxpaint.cvs.sourceforge.net/viewvc/tuxpaint/tuxpaint/src/tuxpaint.c?r1=1.828&r2=1.829
+No longer directly accessing PNG structure members directly, now using png_set_IHDR(). (Patch from SF.net Bug #3386433)
+
+--- a/src/tuxpaint.c 2011/07/29 21:27:39 1.828
++++ b/src/tuxpaint.c 2011/08/08 17:59:12 1.829
+@@ -13425,12 +13425,7 @@
+ {
+ png_init_io(png_ptr, fi);
+
+- info_ptr->width = surf->w;
+- info_ptr->height = surf->h;
+- info_ptr->bit_depth = 8;
+- info_ptr->color_type = PNG_COLOR_TYPE_RGB;
+- info_ptr->interlace_type = 1;
+- info_ptr->valid = 0; /* will be updated by various png_set_FOO() functions */
++ png_set_IHDR(png_ptr, info_ptr, surf->w, surf->h, 8, PNG_COLOR_TYPE_RGB, 1, PNG_COMPRESSION_TYPE_BASE, PNG_FILTER_TYPE_BASE);
+
+ png_set_sRGB_gAMA_and_cHRM(png_ptr, info_ptr,
+ PNG_sRGB_INTENT_PERCEPTUAL);
diff --git a/media-gfx/tuxpaint/files/tuxpaint-0.9.21-underlinking.patch b/media-gfx/tuxpaint/files/tuxpaint-0.9.21-underlinking.patch
new file mode 100644
index 000000000000..295684918f50
--- /dev/null
+++ b/media-gfx/tuxpaint/files/tuxpaint-0.9.21-underlinking.patch
@@ -0,0 +1,17 @@
+From: Julian Ospald <hasufell@gentoo.org>
+Date: Sat Oct 26 19:16:54 UTC 2013
+Subject: fix underlinking
+
+https://bugs.gentoo.org/show_bug.cgi?id=484434
+
+--- tuxpaint-0.9.21/Makefile
++++ tuxpaint-0.9.21/Makefile
+@@ -80,7 +80,7 @@
+ windows_ARCH_LINKS:=-lintl $(PNG) -lwinspool -lshlwapi $(FRIBIDI_LIB)
+ osx_ARCH_LINKS:=$(PAPER_LIB) $(FRIBIDI_LIB)
+ beos_ARCH_LINKS:="-lintl $(PNG) -lz -lbe -liconv $(FRIBIDI_LIB)"
+-linux_ARCH_LINKS:=$(PAPER_LIB) $(FRIBIDI_LIB)
++linux_ARCH_LINKS:=$(PAPER_LIB) $(PNG) $(FRIBIDI_LIB)
+ ARCH_LINKS:=$($(OS)_ARCH_LINKS)
+
+ # Install a launcher icon for the Nokia 770.
diff --git a/media-gfx/tuxpaint/metadata.xml b/media-gfx/tuxpaint/metadata.xml
new file mode 100644
index 000000000000..74f07e4640c0
--- /dev/null
+++ b/media-gfx/tuxpaint/metadata.xml
@@ -0,0 +1,18 @@
+<?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>
+ <longdescription>
+ Tux Paint is a free drawing program designed for young children
+ (kids ages 3 and up). It has a simple, easy-to-use interface, fun
+ sound effects, and an encouraging cartoon mascot who helps guide
+ children as they use the program. It provides a blank canvas and a
+ variety of drawing tools to help your child be creative.
+</longdescription>
+ <upstream>
+ <remote-id type="sourceforge">tuxpaint</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/media-gfx/tuxpaint/tuxpaint-0.9.21-r2.ebuild b/media-gfx/tuxpaint/tuxpaint-0.9.21-r2.ebuild
new file mode 100644
index 000000000000..dec024b26b23
--- /dev/null
+++ b/media-gfx/tuxpaint/tuxpaint-0.9.21-r2.ebuild
@@ -0,0 +1,82 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit gnome2-utils multilib toolchain-funcs
+
+DESCRIPTION="Drawing program designed for young children"
+HOMEPAGE="http://www.tuxpaint.org/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc x86"
+
+IUSE="nls"
+
+RDEPEND="
+ app-text/libpaper
+ dev-libs/fribidi
+ gnome-base/librsvg:2
+ >=media-libs/libpng-1.2:0=
+ >=media-libs/freetype-2:2
+ media-libs/libsdl
+ media-libs/sdl-image[png]
+ media-libs/sdl-mixer
+ media-libs/sdl-pango
+ media-libs/sdl-ttf
+ x11-libs/cairo
+"
+DEPEND="${RDEPEND}
+ nls? ( sys-devel/gettext )
+"
+
+PATCHES=(
+ # Sanitize the Makefile and correct a few other issues
+ "${FILESDIR}/${PN}-0.9.20-gentoo.patch"
+ "${FILESDIR}/${P}-libpng1.5.patch" #378199
+ "${FILESDIR}/${P}-LDFLAGS.patch" #334571
+ "${FILESDIR}/${P}-underlinking.patch" #484434
+)
+
+src_prepare() {
+ default
+ sed -i \
+ -e "s|linux_PREFIX:=/usr/local|linux_PREFIX:=/usr|" \
+ -e "s:/lib/:/$(get_libdir)/:" \
+ -e "s:/share/doc/tuxpaint.*:/share/doc/${PF}:g" \
+ Makefile || die
+}
+
+src_compile() {
+ # parallel build may break things
+ emake -j1 CC="$(tc-getCC)" \
+ $(use nls && echo ENABLE_GETTEXT=1)
+}
+
+src_install () {
+ emake -j1 PKG_ROOT="${D}" \
+ $(use nls && echo ENABLE_GETTEXT=1) install
+
+ rm -f docs/COPYING.txt docs/INSTALL.txt
+ dodoc docs/*.txt
+}
+
+pkg_preinst() {
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ gnome2_icon_cache_update
+
+ if ! has_version "${CATEGORY}/${PN}"; then
+ elog ""
+ elog "For additional graphic stamps, you can emerge the"
+ elog "media-gfx/tuxpaint-stamps package."
+ elog ""
+ fi
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+}
diff --git a/media-gfx/ufraw/Manifest b/media-gfx/ufraw/Manifest
new file mode 100644
index 000000000000..10c9be7ddafa
--- /dev/null
+++ b/media-gfx/ufraw/Manifest
@@ -0,0 +1,11 @@
+AUX ufraw-0.17-cfitsio-automagic.patch 933 SHA256 d489abaa6da90a46f4b3b23e2e5400c1eeb7d2e5532835df4d5ad244167e7d18 SHA512 84aadb7dc41927a26ac37a801e136628380e79f032f87a925e737ec76c349c96c410750234f4870fe2fa61680085472a028e47c13cf01b2bd7fc7a55dad6de1b WHIRLPOOL 7815f44171243408468347a6acdadbda239931b2f2a810e4f0a8e98023506d9761e73f3db137aad7930dd5814f7ffcc2c670cf572d50caf394e88d85cafef03b
+AUX ufraw-0.22-crashfix.patch 563 SHA256 6beb9bd151924e38f7908d26019c72e66d06bf71a84cde8d7c80ccf8104e3bdb SHA512 e02e71ef5660e83f49f7787c1819b6f86ed0de939db1bcd0e988f1c432ead9bd7f9e180e6974964305ab0ea65ba679b3363994213f8ffa04715176cfe45173cf WHIRLPOOL e041e6a95d25dd6c7b74e9d92fac79f31a10ab7a8f195d9ffb380e55344a91bc19039dd694df6e5bdaddd60536001c29ee504e817aef4913360287fd29d738d5
+AUX ufraw-0.22-drop_superfluous_abs.patch 448 SHA256 8818808f8fd75fc6860783ffddbae42b5a2b7da937711cc6c2d482dee8f50702 SHA512 847c5081225236d3728400d2d4f19f25fc971d9ee7b8a87395400f04d4ca82403d6fc10876f4884a3dcee7d1b2ac9a418132fa839d35f370484cc47fb6381a60 WHIRLPOOL fda4ec0c6f4e429b1c275231fce480505c80b92e0810a92e7ff212cf5bc69dbd624ac7ad4f3e70ff6bdaa21c3db969f79370326954dbfb1f760bb47e16b0f869
+AUX ufraw-0.22-fix-unsigned-char.patch 748 SHA256 03cdad9eba1f7ff5bad5e94cda44cc37ba9e7532a144f79715d4d4f19996f177 SHA512 0ea99fe69adeeae1e6c07bcf9d583f6b8247ad0f01ddf3435edb605618b0c24d80c5662442250020b92352ebba12757bb69ad7b107ab8a8f464d5cf2b642664b WHIRLPOOL fcf7e164db8ed511cee3add659e190a11ee16612b3b670d9f1e82fbd61133e44bd1d8294e4408c76d7df4e93a894b6af9bccdc6ff4cb1a53e3407b2645788371
+AUX ufraw-0.22-jasper-automagic.patch 613 SHA256 d8245cb9c45cc02686885aed1886243a06b028fc284cb5830e5b1f1f1e4d7db2 SHA512 855337bf109ebc0ea7b9bd429bcc429bd9caa561e2a815352c51e860a6e405d500913b70414ded7f47e053332c89b964d1817c8f22627504cf157f1565f3c7a4 WHIRLPOOL e3b83b3b48987f8cd18ef931daaa9624975d55ab03dc1aa4aefcfe922b3deb0171367b554346ebe58280f122f1332b965c1814c4d621976024298d32861e98a8
+DIST ufraw-0.22.tar.gz 1103554 SHA256 f7abd28ce587db2a74b4c54149bd8a2523a7ddc09bedf4f923246ff0ae09a25e SHA512 a42eff5052c18afec90245cf97ceeade78e3f288186cf697ac4abf2e8290d4081db8ac4de3ae47b3774f30a6cb4cbda392099e6fd2125fe751abb40d9b065ad2 WHIRLPOOL 5cb53f83d2f2baccd0752a0898eb894b8e15ad234962f3e3cc4ae2166309cd68893dceef28d32018aa486da1a09c64df378a2569f764a42f8251f5a568c14e5f
+EBUILD ufraw-0.22-r1.ebuild 1948 SHA256 7f16938b4f319b164b4379d48fd4bff64c4d1d0dfce4aabf7e12c4e94dbf861c SHA512 6639481729e3e4cf820a0764598ab79cd64fddb4d1c692329717b9b40af0016bfb93da3351b5ddff9ff0e92a6b61aa6df17bc28d09a815193b2318ca976a6317 WHIRLPOOL f8ecf6f00a70f1c9d7c2ca39bde4722a125811d525c9efc6caca340505c3c21487367c2c5f9ca595a32edaba65675fdd8c3780d45485255268a42f3cc3ebf0fc
+EBUILD ufraw-0.22.ebuild 1684 SHA256 e4d2828b5fbf6bd2211f1fb4214419eb0ed637b21a9e26cef5a7f896e923144d SHA512 5c9374c8eaf5ac4cbd5aeedcc72de973b9160fbe0b7022ad86a690407b013c613dba97b2116dd1a54830ecec92b5793d6f21525fb75e62c060ae6be0729ef414 WHIRLPOOL 64b3944d972a621d12195fcf215af7ea9e05bd4d7e52db25315326d3d050ca4b876ed195dd29c82422988d142954160eeb7941ac0c1f5bc467e736a792f4c60e
+MISC ChangeLog 3098 SHA256 66ce55eb3f366f94445b493446023c42c1fc3d7c9ad5ab44c03eb8c8523a8e26 SHA512 4d280df300496da294ca786f6c61e35df6dca727be33d62eadb311badb3dbb22c8cdd81e15fc9e0a29849905befd5f5161a507c6d61644d5810167c9ecc4bff2 WHIRLPOOL 1e87d8d885ad44e9866d67a97239726c3ce70a63199dc618fbe814ac8858275866ac6d4736225261de4139f702fd4808d102305ae47709b5eaba58632b235db9
+MISC ChangeLog-2015 17250 SHA256 84d004590708783ef0c0342f6e1fcc6be87042d52ccd35396d5bd2bd8970afcf SHA512 a356e4b3f467f250883eedb0790a63d777a00c74f520a651b8dc9336dec30317926b9f02831fadf87ff7a47858aedcfa6920e814d9dd4f7289ec06e621bc73c2 WHIRLPOOL 9a9599dfd4e3a28e09dd18591a16095d3ff0d081f8ee85f7baf52988458f1eec9f405c949f2ce7a59088004ddc4161944e08fa35be9174656346b56b6f1150ec
+MISC metadata.xml 588 SHA256 b5655f3d2201471aaa13297f86f15b019d8813d7b810b869813caad895fd9ba3 SHA512 3d161ddfe0da5620312603d66acbc24244317da4dcb905558eddda9d54bf96024881ffbdcaa49f9daf73d779d5e7dbb47a523e05cc6c614756b468f14ef66ab9 WHIRLPOOL 5666c636c9d558e8cd8e411b885c6bc87dfb9ed057cfe830d380bbd3702320b4ebf0e54c428df0e164e068989e7a4a30344495df93835ff6174ec5143ab10dc0
diff --git a/media-gfx/ufraw/files/ufraw-0.17-cfitsio-automagic.patch b/media-gfx/ufraw/files/ufraw-0.17-cfitsio-automagic.patch
new file mode 100644
index 000000000000..aff7c5a25930
--- /dev/null
+++ b/media-gfx/ufraw/files/ufraw-0.17-cfitsio-automagic.patch
@@ -0,0 +1,28 @@
+diff -ru ufraw-0.17.orig/configure.ac ufraw-0.17/configure.ac
+--- ufraw-0.17.orig/configure.ac 2010-04-02 16:16:08.000000000 +0200
++++ ufraw-0.17/configure.ac 2010-04-02 16:19:33.000000000 +0200
+@@ -246,11 +246,19 @@
+ [ have_png=no
+ AC_MSG_RESULT($LIBPNG_PKG_ERRORS) ] )
+
+-PKG_CHECK_MODULES(CFITSIO, cfitsio,
+- [ have_cfitsio=yes
+- AC_DEFINE(HAVE_LIBCFITSIO, 1, have the cfitsio library) ],
+- [ have_cfitsio=no
+- AC_MSG_RESULT($CFITSIO_PKG_ERRORS) ] )
++AC_ARG_WITH([cfitsio],
++ [AS_HELP_STRING([--with-cfitsio],
++ [build fits support @<:@default=check@:>@])],
++ [],
++ [with_cfitsio=check])
++
++have_cfitsio=no
++AS_IF([test "x$with_cfitsio" != xno],
++ [PKG_CHECK_MODULES(CFITSIO, cfitsio,
++ [ have_cfitsio=yes
++ AC_DEFINE(HAVE_LIBCFITSIO, 1, have the cfitsio library) ],
++ [ have_cfitsio=no
++ AC_MSG_RESULT($CFITSIO_PKG_ERRORS) ] ) ] )
+
+ PKG_CHECK_MODULES(EXIV2, exiv2 >= 0.16,
+ [ have_exiv2=yes
diff --git a/media-gfx/ufraw/files/ufraw-0.22-crashfix.patch b/media-gfx/ufraw/files/ufraw-0.22-crashfix.patch
new file mode 100644
index 000000000000..76fe83fa8f2e
--- /dev/null
+++ b/media-gfx/ufraw/files/ufraw-0.22-crashfix.patch
@@ -0,0 +1,15 @@
+--- a/ufraw_ufraw.c 2015-06-16 04:58:38.000000000 +0100
++++ b/ufraw_ufraw.c 2016-12-18 00:55:45.794466747 +0000
+@@ -767,8 +767,10 @@ void ufraw_close(ufraw_data *uf)
+ g_free(uf->displayProfile);
+ g_free(uf->RawHistogram);
+ #ifdef HAVE_LENSFUN
+- lf_modifier_destroy(uf->TCAmodifier);
+- lf_modifier_destroy(uf->modifier);
++ if (uf->TCAmodifier != NULL)
++ lf_modifier_destroy(uf->TCAmodifier);
++ if (uf->modifier != NULL)
++ lf_modifier_destroy(uf->modifier);
+ #endif
+ ufobject_delete(uf->conf->ufobject);
+ g_free(uf->conf);
diff --git a/media-gfx/ufraw/files/ufraw-0.22-drop_superfluous_abs.patch b/media-gfx/ufraw/files/ufraw-0.22-drop_superfluous_abs.patch
new file mode 100644
index 000000000000..8c11f6649781
--- /dev/null
+++ b/media-gfx/ufraw/files/ufraw-0.22-drop_superfluous_abs.patch
@@ -0,0 +1,16 @@
+Fixes build with gcc 7, by Johannes Hirte.
+https://bugs.gentoo.org/show_bug.cgi?id=618068
+
+diff --git a/../old/dcraw.cc b/dcraw.cc
+index 88c8068..cedf86b 100644
+--- a/../old/dcraw.cc
++++ b/dcraw.cc
+@@ -9242,7 +9242,7 @@ canon_a5:
+ if (make[0] == 'O') {
+ i = find_green (12, 32, 1188864, 3576832);
+ c = find_green (12, 32, 2383920, 2387016);
+- if (abs(i) < abs(c)) {
++ if (i < c) {
+ SWAP(i,c);
+ load_flags = 24;
+ }
diff --git a/media-gfx/ufraw/files/ufraw-0.22-fix-unsigned-char.patch b/media-gfx/ufraw/files/ufraw-0.22-fix-unsigned-char.patch
new file mode 100644
index 000000000000..a5397260ffb5
--- /dev/null
+++ b/media-gfx/ufraw/files/ufraw-0.22-fix-unsigned-char.patch
@@ -0,0 +1,20 @@
+Description: Fix unsigned char declaration of src[]
+Author: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
+Last-Update: 2017-02-27
+
+https://bugs.gentoo.org/show_bug.cgi?id=622484
+https://sourceforge.net/p/ufraw/bugs/417/
+https://src.fedoraproject.org/cgit/rpms/ufraw.git/tree/05_fix_build_due_to_unsigned_char.patch
+https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=856227
+
+--- ufraw-0.22.orig/dcraw.cc
++++ ufraw-0.22/dcraw.cc
+@@ -2285,7 +2285,7 @@ void CLASS quicktake_100_load_raw()
+
+ void CLASS kodak_radc_load_raw()
+ {
+- static const char src[] = {
++ static const signed char src[] = {
+ 1,1, 2,3, 3,4, 4,2, 5,7, 6,5, 7,6, 7,8,
+ 1,0, 2,1, 3,3, 4,4, 5,2, 6,7, 7,6, 8,5, 8,8,
+ 2,1, 2,3, 3,0, 3,2, 3,4, 4,6, 5,5, 6,7, 6,8,
diff --git a/media-gfx/ufraw/files/ufraw-0.22-jasper-automagic.patch b/media-gfx/ufraw/files/ufraw-0.22-jasper-automagic.patch
new file mode 100644
index 000000000000..93e1d691af1d
--- /dev/null
+++ b/media-gfx/ufraw/files/ufraw-0.22-jasper-automagic.patch
@@ -0,0 +1,21 @@
+--- a/configure.ac
++++ b/configure.ac
+@@ -159,8 +159,16 @@
+ have_jpeg=${ac_cv_lib_jpeg_jpeg_CreateCompress:-no}
+
+ # Check for libjasper.
+-AC_CHECK_LIB(jasper, jas_image_decode)
+-have_jasper=${ac_cv_lib_jasper_jas_image_decode:-no}
++AC_ARG_ENABLE([jasper],
++ AS_HELP_STRING([--enable-jasper], [enable JPEG2000 support]))
++
++have_jasper=no
++AS_IF([test "x$enable_jasper" = "xyes"], [
++ AC_SEARCH_LIBS([jas_image_decode], [jasper], [have_jasper=yes], [
++ AC_MSG_ERROR([unable to find the jas_image_decode() function])
++ ])
++])
++
+
+ # Check for tiff headers and library.
+ PKG_CHECK_MODULES(LIBTIFF, libtiff-4,
diff --git a/media-gfx/ufraw/metadata.xml b/media-gfx/ufraw/metadata.xml
new file mode 100644
index 000000000000..284cb404dd5c
--- /dev/null
+++ b/media-gfx/ufraw/metadata.xml
@@ -0,0 +1,16 @@
+<?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>
+ <use>
+ <flag name="contrast">enable contrast setting option</flag>
+ <flag name="fits">Enable support for the FITS image format through <pkg>sci-libs/cfitsio</pkg></flag>
+ <flag name="timezone">enable DST correction for file timestamps</flag>
+ </use>
+ <upstream>
+ <remote-id type="sourceforge">ufraw</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/media-gfx/ufraw/ufraw-0.22-r1.ebuild b/media-gfx/ufraw/ufraw-0.22-r1.ebuild
new file mode 100644
index 000000000000..c0ccf38a72d4
--- /dev/null
+++ b/media-gfx/ufraw/ufraw-0.22-r1.ebuild
@@ -0,0 +1,92 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit autotools fdo-mime gnome2-utils toolchain-funcs
+
+DESCRIPTION="RAW Image format viewer and GIMP plugin"
+HOMEPAGE="http://ufraw.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~amd64-linux ~x86-linux ~x64-solaris ~x86-solaris"
+IUSE="contrast fits gimp gnome gtk jpeg2k openmp timezone"
+
+REQUIRED_USE="gimp? ( gtk )"
+
+RDEPEND="
+ dev-libs/glib:2=
+ >=media-gfx/exiv2-0.11:0=
+ media-libs/lcms:2=
+ >=media-libs/lensfun-0.2.5:=
+ media-libs/libpng:0=
+ media-libs/tiff:0=
+ virtual/jpeg:0=
+ fits? ( sci-libs/cfitsio:0= )
+ gimp? ( >=media-gfx/gimp-2 )
+ gnome? ( >=gnome-base/gconf-2 )
+ gtk? (
+ >=media-gfx/gtkimageview-1.5
+ >=x11-libs/gtk+-2.6:2
+ )
+ jpeg2k? ( media-libs/jasper:= )
+"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-0.17-cfitsio-automagic.patch
+ "${FILESDIR}"/${P}-jasper-automagic.patch
+ "${FILESDIR}"/${P}-crashfix.patch
+ "${FILESDIR}"/${P}-drop_superfluous_abs.patch
+ "${FILESDIR}"/${P}-fix-unsigned-char.patch
+)
+
+src_prepare() {
+ default
+ eautoreconf
+}
+
+src_configure() {
+ econf \
+ $(use_enable contrast) \
+ $(use_with fits cfitsio) \
+ $(use_with gimp) \
+ $(use_enable gnome mime) \
+ $(use_with gtk) \
+ $(use_enable jpeg2k jasper) \
+ $(use_enable openmp) \
+ $(use_enable timezone dst-correction)
+}
+
+src_compile() {
+ emake AR="$(tc-getAR)"
+}
+
+src_install() {
+ emake DESTDIR="${D}" schemasdir=/etc/gconf/schemas install
+ einstalldocs
+}
+
+pkg_preinst() {
+ if use gnome; then
+ gnome2_gconf_savelist
+ fi
+}
+
+pkg_postinst() {
+ if use gnome; then
+ fdo-mime_mime_database_update
+ fdo-mime_desktop_database_update
+ gnome2_gconf_install
+ fi
+}
+
+pkg_postrm() {
+ if use gnome; then
+ fdo-mime_desktop_database_update
+ fdo-mime_mime_database_update
+ fi
+}
diff --git a/media-gfx/ufraw/ufraw-0.22.ebuild b/media-gfx/ufraw/ufraw-0.22.ebuild
new file mode 100644
index 000000000000..a33821caf159
--- /dev/null
+++ b/media-gfx/ufraw/ufraw-0.22.ebuild
@@ -0,0 +1,79 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit autotools eutils fdo-mime gnome2-utils toolchain-funcs
+
+DESCRIPTION="RAW Image format viewer and GIMP plugin"
+HOMEPAGE="http://ufraw.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 ~s390 ~sh sparc x86 ~amd64-fbsd ~amd64-linux ~x86-linux ~x64-solaris ~x86-solaris"
+IUSE="contrast fits gimp gnome gtk openmp timezone"
+
+REQUIRED_USE="gimp? ( gtk )"
+
+RDEPEND="
+ dev-libs/glib:2=
+ >=media-gfx/exiv2-0.11:0=
+ media-libs/lcms:2=
+ >=media-libs/lensfun-0.2.5:=
+ media-libs/libpng:0=
+ media-libs/tiff:0=
+ virtual/jpeg:0=
+ fits? ( sci-libs/cfitsio:0= )
+ gnome? ( >=gnome-base/gconf-2 )
+ gtk? ( >=x11-libs/gtk+-2.6:2
+ >=media-gfx/gtkimageview-1.5 )
+ gimp? ( >=media-gfx/gimp-2 )
+"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-0.17-cfitsio-automagic.patch
+ eautoreconf
+}
+
+src_configure() {
+ econf \
+ $(use_enable contrast) \
+ $(use_with fits cfitsio) \
+ $(use_with gimp) \
+ $(use_enable gnome mime) \
+ $(use_with gtk) \
+ $(use_enable openmp) \
+ $(use_enable timezone dst-correction)
+}
+
+src_compile() {
+ emake AR="$(tc-getAR)"
+}
+
+src_install() {
+ emake DESTDIR="${D}" schemasdir=/etc/gconf/schemas install
+ dodoc README TODO
+}
+
+pkg_preinst() {
+ if use gnome; then
+ gnome2_gconf_savelist
+ fi
+}
+
+pkg_postinst() {
+ if use gnome; then
+ fdo-mime_mime_database_update
+ fdo-mime_desktop_database_update
+ gnome2_gconf_install
+ fi
+}
+
+pkg_postrm() {
+ if use gnome; then
+ fdo-mime_desktop_database_update
+ fdo-mime_mime_database_update
+ fi
+}
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
+}
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
+}
diff --git a/media-gfx/videorbits/Manifest b/media-gfx/videorbits/Manifest
new file mode 100644
index 000000000000..ca845527ca9f
--- /dev/null
+++ b/media-gfx/videorbits/Manifest
@@ -0,0 +1,10 @@
+AUX videorbits-2.201-libpng15.patch 826 SHA256 d94bbcd05b41f062acb1fa41d0c1063b9ab6e5db136f8b1145edc139ee8b9e8c SHA512 6fd83e3524afb791f7c68755741651052fcb2b531efc0f4d7dc223ba1206999fd1ebcb6374eca9c5938246a0c077de309cd1450e9385b231fd73d12a9ed2cc3a WHIRLPOOL 60d8f258b157c9c62e3fb2cd48a7c300bcd22c35843551c65d19023afb495cff2861f6f3a4af0fa2a36915646f91d218240f4ad9a44dbc7e9e32dd833f9b8d95
+AUX videorbits-2.205-fix-buildsystem.patch 635 SHA256 fae23b15cea5ca7a8beae6f0856bc79d90159ba55a679fc20f27dfbc6b4c9f6b SHA512 46462bdf437424f3af86526c1f2dfef68884f504646357ff3e5779f4629fdf22742a26e2dcf9df9b03a20da8125e87cb3b4772600d7590428d6d0a31f711ae9a WHIRLPOOL 7073c91f5a3a494b16d5f7006d110082f66da028bbea5c8159ad7d47fe2718d4728c56b8f85084cd9cd77ff405696241d7021f7c4f591e905e80f100bb17af65
+AUX videorbits-2.205-qa-implicit-declarations.patch 712 SHA256 175ed11a3fc444e97fd6444f24b8a44470856db6eadcf43dad3bfefb97131d63 SHA512 cfcab0079719ca2595b83e65ded05b8154a139304c23184823f0c957bb06af09465d486f8763a83baf8cc298b16f9e3b0b53f6218977972555bf2142ab3e43f8 WHIRLPOOL 1c4543dd60e8b9f31644c3721c2915f32e1fb4604653312dc175169a1358da910022a641c9a27db05c7e5c7c481f07da23d388cf1086aa7479b5eb953cd68341
+DIST videorbits-2.201.tgz 648187 SHA256 2d3b7dd906e2e20e2082b5106b92d279d662a8877ec780cac0913c877642d1bb SHA512 eeb233487ac33702ff58f9434ff1850aac5ede9ecfebe4b1d313f07451c1cbb911ba6adca013136639bc0d01480acd71e5cffddcbf48af5aef58d40f48d6655a WHIRLPOOL f15367d62b123162231c6de69847f286f40d6806809083ea8040cc5f7ce0499afcd0c7174e79915b9eb87e297f0ca9904e392fa840ff5ebad4685d4f754b258b
+DIST videorbits-2.205.tgz 672377 SHA256 cdd5e54cbc888f93f7f75729f301fa7552f6023a0dc641b2845ad09f5307c48d SHA512 faad5a7ab98167d67b7748b4b9aca1ced0e802ed85cba55ba9966d08c48045daa8fef8d387c576dcfa50ace8c4962bb0043bb83e3ba741844ede67d331e4fbf8 WHIRLPOOL b13e95b2e7cc2e56017ea8eafdc45359476f0753b551ec73ad50ee0ead38450b3eb3f987630f1d1193afaad6a157ed99e67bc029619aed8e72985b6d6eab3035
+EBUILD videorbits-2.201.ebuild 839 SHA256 be12258a44dd7460990d5f6559bf08e975b8e093d37288a5dbc2ef29f9d511ac SHA512 03e5513d9354c81464e54f3718653bd5e726d507b0eed2089e4ee7f8f57e239a6804f48167fb756ad11a606370b83d0cfb552e2b4caaa18ef740a230004443a5 WHIRLPOOL b85b004a85335e9f1bbf5e2e9c19183374fb9633a63cbb564928c604fcee6f217af9325592fd68f2a9e2c16d74a7c4a362d4772e53a7ab8d14d61fbb4644eff2
+EBUILD videorbits-2.205.ebuild 770 SHA256 8cc00f7c162a0ae41ffad95b046465c7dcfe390e9d7142124ef394221a4aac04 SHA512 b7dfe3e15555495d7bda7736ec606f4efa6d8f19d6247cbf1378a2e9027440b7d14e76124783b3e13c7f39dafef076825e1a6f5b1318065878620ef4c3cad2cd WHIRLPOOL d00c495293fdf462cbf516d559f912dd0a5610716ab3697b113149ab66374e5e73959085d0eec4164ce95194eae9f3330b2117f6f071627491dc977c8da7766f
+MISC ChangeLog 3115 SHA256 33c0a143f008ce794bb070eae5de437e12e3a5a41807c8601e089553abf7864c SHA512 7678074e051ba769d50bc9a3f76c83b4185e71b3f1280cca50c2a0b2f52f5f3134c36faa689a97ca06f2326ad915f88a20a0330eaa2da2d7d03b9b744a04fa9f WHIRLPOOL 9ae982b15a8b11a5028791b040f24884b33535c3a75f84431678312fc1704b72f737ed1e840ac85546d7d6adcbfb1f94f6ea4a545dc8ad68018431825a220f5e
+MISC ChangeLog-2015 2131 SHA256 9dc38773555f86c1bc715f9bd3668b4844ec0b8ac3e3d5c88e6bb8fd715e8a6d SHA512 e8fe7ee2b29dc25915913563fa9d11bc886dad1f5031016302fad80f6a3232f481f8ac34249200e2d774ffd2d6f72396e799fcdbb5f489cd875ad075de94047d WHIRLPOOL 114e8239f7d240d74c771e3a765684dfd3355845c1797653dbe442d2ddf9162d0f51d8d02d8165d03bd90a7e15ea8e2043d1b5757c42adc1b89c40d63d037aa6
+MISC metadata.xml 250 SHA256 335106e09ba64aad9f91f294fb6f7cf400b480da9d2369c464b8ebbdf3bc6860 SHA512 c18112cc613181bf7e1d339de4f2283d8d4f1c8a6492025a9c0e4c54dedeeed696713e844edd437eb1bd3e9659e4eb33cc49132450ff3ec7efa109a0238b3596 WHIRLPOOL d18369f3ea88e1211d77192646c130ece2b4d54e2612af366d97662a0cbe6a8b3a51b6a95e569fa9d7d0a8c94c95162079b77f78109fa39c8133c31c30314b48
diff --git a/media-gfx/videorbits/files/videorbits-2.201-libpng15.patch b/media-gfx/videorbits/files/videorbits-2.201-libpng15.patch
new file mode 100644
index 000000000000..f87132b0be44
--- /dev/null
+++ b/media-gfx/videorbits/files/videorbits-2.201-libpng15.patch
@@ -0,0 +1,30 @@
+--- videorbits-2.205/src/simple_png_read.c
++++ videorbits-2.205/src/simple_png_read.c
+@@ -92,7 +92,7 @@
+ return -1;
+ }
+
+- if (setjmp(png_ptr->jmpbuf)) {
++ if (setjmp(png_jmpbuf(png_ptr))) {
+ fprintf(stderr, "simple_png_read: error (internal)\n");
+ png_destroy_read_struct(&png_ptr, &info_ptr, &end_info);
+ fclose(fp);
+@@ -226,7 +226,7 @@
+ return -1;
+ }
+
+- if (setjmp(png_ptr->jmpbuf)) {
++ if (setjmp(png_jmpbuf(png_ptr))) {
+ fprintf(stderr, "simple_png_read_header: error\n");
+ png_destroy_read_struct(&png_ptr, &info_ptr, &end_info);
+ fclose(fp);
+--- videorbits-2.205/src/simple_png_write.c
++++ videorbits-2.205/src/simple_png_write.c
+@@ -18,6 +18,7 @@
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <png.h>
++#include <zlib.h>
+
+ int simple_png_write_rgba(
+ char *filename,
diff --git a/media-gfx/videorbits/files/videorbits-2.205-fix-buildsystem.patch b/media-gfx/videorbits/files/videorbits-2.205-fix-buildsystem.patch
new file mode 100644
index 000000000000..8d2359232bc2
--- /dev/null
+++ b/media-gfx/videorbits/files/videorbits-2.205-fix-buildsystem.patch
@@ -0,0 +1,19 @@
+Fix installation paths.
+
+--- videorbits-2.205/images/Makefile.am
++++ videorbits-2.205/images/Makefile.am
+@@ -1,4 +1,4 @@
+-imagesdir = $(prefix)/images
+-images_DATA= v04.pgm v06.pgm
++images_dir = $(datadir)/videorbits/images
++images__DATA= v04.pgm v06.pgm
+
+
+--- videorbits-2.205/lookuptables/Makefile.am
++++ videorbits-2.205/lookuptables/Makefile.am
+@@ -1,3 +1,3 @@
+-lookuptablesdir = $(prefix)/lookuptables
+-lookuptables_DATA=powLookup22.txt powLookup47.txt Kodak_DCS260_response_function
++lookuptables_dir = $(datadir)/videorbits/lookuptables
++lookuptables__DATA=powLookup22.txt powLookup47.txt Kodak_DCS260_response_function
+
diff --git a/media-gfx/videorbits/files/videorbits-2.205-qa-implicit-declarations.patch b/media-gfx/videorbits/files/videorbits-2.205-qa-implicit-declarations.patch
new file mode 100644
index 000000000000..1e46ccf5651e
--- /dev/null
+++ b/media-gfx/videorbits/files/videorbits-2.205-qa-implicit-declarations.patch
@@ -0,0 +1,23 @@
+Fix implicit declarations caused by missing headers and
+failures caused by -Werror=format-security checks
+
+--- videorbits-2.205/src/pchirp2nocrop.c
++++ videorbits-2.205/src/pchirp2nocrop.c
+@@ -1,5 +1,6 @@
+ #include <stdlib.h>
+ #include <math.h>
++#include <string.h>
+ #include "PNMImageOffsetable.h"
+ #include "mat_util.h"
+ #include "boundingbox.h"
+--- videorbits-2.205/src/par.c
++++ videorbits-2.205/src/par.c
+@@ -111,7 +111,7 @@
+
+ /* - - Write file-type number - - */
+ sprintf(magic_number, "P%d\n", data_type);
+- fprintf(file_ptr, magic_number);
++ fprintf(file_ptr, "%s", magic_number);
+
+ /* - - put comments - - */ /* !!!!!! break up long comments */
+ fprintf(file_ptr, "# %s\n", comments);
diff --git a/media-gfx/videorbits/metadata.xml b/media-gfx/videorbits/metadata.xml
new file mode 100644
index 000000000000..e416281791b7
--- /dev/null
+++ b/media-gfx/videorbits/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-needed -->
+ <upstream>
+ <remote-id type="sourceforge">comparametric</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/media-gfx/videorbits/videorbits-2.201.ebuild b/media-gfx/videorbits/videorbits-2.201.ebuild
new file mode 100644
index 000000000000..db5db4dd3924
--- /dev/null
+++ b/media-gfx/videorbits/videorbits-2.201.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+inherit eutils toolchain-funcs
+
+DESCRIPTION="a collection of programs for creating high dynamic range images"
+HOMEPAGE="http://comparametric.sourceforge.net/"
+SRC_URI="mirror://sourceforge/comparametric/${P}.tgz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ppc x86"
+IUSE=""
+
+RDEPEND="x11-libs/libX11
+ sys-libs/zlib
+ media-libs/libpng
+ virtual/jpeg"
+DEPEND="${RDEPEND}"
+
+DOCS=( AUTHORS README README.MORE )
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-libpng15.patch
+
+ sed -i \
+ -e "s:\$(prefix)/images:\$(prefix)/share/${PN}/images:" \
+ images/Makefile.in || die
+
+ sed -i \
+ -e "s:\$(prefix)/lookuptables:\$(prefix)/share/${PN}/lookuptables:" \
+ lookuptables/Makefile.in || die
+}
+
+src_configure() {
+ tc-export CC
+ econf
+}
diff --git a/media-gfx/videorbits/videorbits-2.205.ebuild b/media-gfx/videorbits/videorbits-2.205.ebuild
new file mode 100644
index 000000000000..030eb3b53d0e
--- /dev/null
+++ b/media-gfx/videorbits/videorbits-2.205.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit autotools
+
+DESCRIPTION="a collection of programs for creating high dynamic range images"
+HOMEPAGE="http://comparametric.sourceforge.net/"
+SRC_URI="mirror://sourceforge/comparametric/${P}.tgz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE=""
+
+RDEPEND="x11-libs/libX11
+ sys-libs/zlib
+ media-libs/libpng:0=
+ virtual/jpeg:0
+ sci-libs/fftw:2.1
+ media-libs/netpbm"
+DEPEND="${RDEPEND}"
+
+PATCHES=(
+ "${FILESDIR}/${PN}-2.201-libpng15.patch"
+ "${FILESDIR}/${P}-qa-implicit-declarations.patch"
+ "${FILESDIR}/${P}-fix-buildsystem.patch"
+)
+DOCS=( AUTHORS README README.MORE )
+
+src_prepare() {
+ default
+ mv configure.{in,ac} || die
+ eautoreconf
+}
diff --git a/media-gfx/viewer/Manifest b/media-gfx/viewer/Manifest
new file mode 100644
index 000000000000..9edaf55bef88
--- /dev/null
+++ b/media-gfx/viewer/Manifest
@@ -0,0 +1,5 @@
+DIST viewer-0.8.0.tar.gz 117329 SHA256 c8f553b26b0ce0f875339dbddba7b36d23f47468d121780e7eb18e1bcbbff2ce SHA512 079ce7bfc2a4c83965bd1625ba4cd2cfae920ab3e274c9c49140d827f1b59d94195bc87b36decc57003465f859f515ea7f004619a421df6bfd4e786607732dd5 WHIRLPOOL 76697f502c0f709c9cf726706d9a1991dce96dbfd58592f08ed1e47af93b5c583f2bba29deb7aee41c63b35760f56f5acd28ed1f07d1e1e702176cd81baa3041
+EBUILD viewer-0.8.0-r1.ebuild 914 SHA256 9bca0f8a5787768a54413ba148a68989009ba96440b2c6e76b188cb8b22f51e4 SHA512 cf50cf05f1037a3bd6f5c58a7b87f3a18f6b429447ecbcdcc0cb303fe6fe075ac7dc8c753919de052b2534d808f0ed57a8ecc51f577d6642586ba9c4accc1a4c WHIRLPOOL 739f47af773a29174f5535604a5ac612a1f6194247d2d436c319449fa840d096915b1dabb4cbac9c4bdfba5b3febafd3abccfafdcae7c2ce793fee4ade4f4c10
+MISC ChangeLog 2520 SHA256 6f4bd469fdd65b8d9e9acb94cf07ffba65dbc7d5c47fd2dc4aaebce70de642d6 SHA512 85de4a6f87fed8971c27c7d77fb05318475fb7489e42d7c1e32e1c1d58f2c7b25bd28b35ce4f5ba45c170b6b4040f9e24e3a20a1fcec29f514fc7e454e78d24b WHIRLPOOL 14f7440a4855a4e81300a541a374f0c4ffc7f30578920d502e8b13f8869105f96434cc5fc8dae16109ea29ecd7c849e3715d52588cd6899965d7a5ac766ceb86
+MISC ChangeLog-2015 1466 SHA256 9a579855459faf9a69fa48ffdd1f5834f7da1567cfe3856d103edcc65eb9981f SHA512 b6f7db14f5153fa1a83e13e4b74e3314308904fadff60ae4b1f65164b08ff59c84a23755525d80b1e98c42d0378b626d8ab364e612655952b32c8fe081f46a1e WHIRLPOOL 1ac03067ea3f3b830b4045a22cd29213a9816e01e5a6edccbbee463c4b06a33b0341e829be92d76ad48e5a3f439f4b97a31c40e916c39cdebe8fe1710bac20aa
+MISC metadata.xml 166 SHA256 2caff447f5bd2701d8456ada5cc633c41ef4373fa4bfeabeb73599d40bcc941b SHA512 a56648c974a1d14dd4c18237532773c72057a13ab90c58b5da04f185e3c12a8bd8d5c21fb06053507f31766291a82dc7d87b34cd65fd94cfe2af7295c813ef84 WHIRLPOOL 1ff70497eca6531f0e0614c72a19f4b8e5ff486a58d369f4f0b36308d1d6b01168f9da887740e3b9f536236be251d3fe05f904d27a9233a7cf613416ba882968
diff --git a/media-gfx/viewer/metadata.xml b/media-gfx/viewer/metadata.xml
new file mode 100644
index 000000000000..6f49eba8f496
--- /dev/null
+++ b/media-gfx/viewer/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<!-- maintainer-needed -->
+</pkgmetadata>
diff --git a/media-gfx/viewer/viewer-0.8.0-r1.ebuild b/media-gfx/viewer/viewer-0.8.0-r1.ebuild
new file mode 100644
index 000000000000..a55a58452c8b
--- /dev/null
+++ b/media-gfx/viewer/viewer-0.8.0-r1.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit autotools
+
+DESCRIPTION="A stereo pair image viewer (supports ppm's only)"
+HOMEPAGE="http://www-users.cs.umn.edu/~wburdick/geowall/viewer.html"
+SRC_URI="ftp://ftp.cs.umn.edu/dept/users/wburdick/geowall/${P}.tar.gz"
+SRC_URI="http://www-users.cs.umn.edu/~wburdick/ftp/geowall/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE=""
+DEPEND="virtual/opengl
+ media-libs/freeglut
+ x11-libs/libXmu
+ x11-libs/libXt
+ x11-libs/libICE
+ x11-libs/libSM"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ default
+ sed -i configure.in \
+ -e "s|/usr/X11R6/lib|/usr/$(get_libdir)/X11|g" \
+ -e 's|/usr/X11R6/include|/usr/include/X11|g'
+ eautoreconf
+}
+
+src_compile() {
+ emake LDFLAGS="${LDFLAGS}" CFLAGS="${CFLAGS}"
+}
+
+src_install() {
+ dobin viewer
+ doman viewer.1
+
+ dodoc AUTHORS ChangeLog README
+}
diff --git a/media-gfx/viewnior/Manifest b/media-gfx/viewnior/Manifest
new file mode 100644
index 000000000000..f80b6bcb204b
--- /dev/null
+++ b/media-gfx/viewnior/Manifest
@@ -0,0 +1,5 @@
+DIST viewnior-1.6.tar.gz 168966 SHA256 89013f6d30c1c121d8cb6327d3ffc35a757fba1d777c24849d632afe244e60a0 SHA512 4b150078573bfd3b8c5863d73087a51cd3b7ed5781e26c842fab44eec3e67ea9aea3feba064538578878df1ccb386525a6a84362dae7f92315fb7de735ace617 WHIRLPOOL cc65f782617318902a90ee8e1b0fc7f3b8de7918f3f81375f08c98c5ce0149fbd01b5521f080ea38aefa0feae5c493fef16baaec5b2a543df05a9d57a5c6de5d
+EBUILD viewnior-1.6.ebuild 910 SHA256 a1d349e569f8b76eddb50163540fcf10369240898379a1e4eb9fc1bbe7e1f277 SHA512 7a258895436c2345bf779e7ec159e18bca3304ca0b02691b579774e5901dda76bd68220d2ece1a9cee0ded34531148fbc4f409728df5920ac5acda6c092f15f3 WHIRLPOOL f4369c511493da272a92392c90101a682ae0a6db8a2f9ba756c5c1b7fe9239b537eb3ee859c5025b1b6ed6c56203d4fd18604f0c36946f90ed3f6960112f1816
+MISC ChangeLog 3369 SHA256 f937f5cf4586b3cb4b6279b9b41ce106d45b3df43b0a38fd23c6e7b54c592704 SHA512 097a6b6b397a444df36770d3ba344173d69150e96636191dffbf2377c60e81ce8649d4a87aff528fc3b91fa002b6d4307d17a4eac4bc6fd42ce69f96c6dd3a1c WHIRLPOOL 6b0569ae33b5399f363851c07d0adff0a163cbd556cec6df836a53ce1c569ebdae00f1a77e02eb745905c111bb32a40f04e1379a3ac1aa5ed35aa5174b49685b
+MISC ChangeLog-2015 2662 SHA256 084c35312268c4678f6c428fb519d93c2321603b247bb7183a8c73a35385c272 SHA512 5d4e518d9309402495a9ea86a924310659725f2d967552b4fdc0f8549aa92f34e210ec9509fe5d850a903c57e2e25314b85dd21b121e24ece231a1bce1fea209 WHIRLPOOL 24efab062fb1229b711fa370971bbc48995d4f09fad6dc776ba6c3b728f27f68fcc27badbccc53344b565a61189978859d0178f2a586091e6deb3e52b7e3966e
+MISC metadata.xml 223 SHA256 86521aa2f406b56a0ea0407a92e7932c9e77fdece2631f36b59c4f53d92c1c5e SHA512 1cdd15a0170f1ef8245c80abb67291759667b5ff4631b7a172b4797169198cec8fbd10e7226313e99f86ceb01f87d3a5faf010471aadf6c4d1559c63676c84a9 WHIRLPOOL 235bec6f7c6fadf776a4110ed9263f76128be4f9397e3a930aa21c57ad9419ebd7e5b6393c23a1fa7744e1104f8bcb91ecb7bfc7df53cd30c621e3350c334422
diff --git a/media-gfx/viewnior/metadata.xml b/media-gfx/viewnior/metadata.xml
new file mode 100644
index 000000000000..ad6627d4c88e
--- /dev/null
+++ b/media-gfx/viewnior/metadata.xml
@@ -0,0 +1,7 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <upstream>
+ <remote-id type="github">hellosiyan/Viewnior</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/media-gfx/viewnior/viewnior-1.6.ebuild b/media-gfx/viewnior/viewnior-1.6.ebuild
new file mode 100644
index 000000000000..1efc547aee7e
--- /dev/null
+++ b/media-gfx/viewnior/viewnior-1.6.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit xdg-utils gnome2-utils autotools
+
+MY_PN=Viewnior
+DESCRIPTION="Fast and simple image viewer"
+HOMEPAGE="https://siyanpanayotov.com/project/viewnior/ https://github.com/hellosiyan/Viewnior"
+SRC_URI="https://github.com/hellosiyan/${MY_PN}/archive/${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+DEPEND="dev-libs/glib:2
+ media-gfx/exiv2
+ >=x11-libs/gtk+-2.20:2
+ x11-misc/shared-mime-info"
+RDEPEND="${DEPEND}"
+
+S=${WORKDIR}/${MY_PN}-${P}
+
+src_prepare() {
+ default
+
+ # fix for bug #454230
+ sed -r -i "s:(PKG_CHECK_MODULES):AC_CHECK_LIB([m],[cos])\n\n\1:" configure.ac
+
+ eautoreconf
+}
+
+pkg_preinst() {
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ xdg_desktop_database_update
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ xdg_desktop_database_update
+ gnome2_icon_cache_update
+}
diff --git a/media-gfx/w3mimgfb/Manifest b/media-gfx/w3mimgfb/Manifest
new file mode 100644
index 000000000000..2694103ac646
--- /dev/null
+++ b/media-gfx/w3mimgfb/Manifest
@@ -0,0 +1,5 @@
+DIST w3mimgfb-0.9.1.tar.gz 10070 SHA256 c16802c48871dba05b0dfe86f886f30dd8fd50baa34deaf1b292e80b2bf76f12 SHA512 6717f922c37b9bbdf539efa95e9fefdd3a14aa0651fea613d6f24a5588537b300c1106ae1fc0435a0b08214682697e1fad59c491908775e08920469439dee628 WHIRLPOOL 2f65ca2069c99cd12ed0190f5d0910485e7e2871d6cd108821883f1d74211256ccd5106cb27a83e599474a036a1a0a65df9871187917dfeaf4fd39b8ae004280
+EBUILD w3mimgfb-0.9.1.ebuild 653 SHA256 4dd246854564cd08f91266ff5a3c43f378c15233b6f1064eaab53a311d81be44 SHA512 e07f65b4b7b94611df4b694e8370c284670b84d14049199528b1d3c50d8e8c8f659b036aaafdc629fa87221cb5dbd1a542df3bf2eaac81bad486e220278e4c73 WHIRLPOOL 5a7d68baafe6d4782ab8f36b6fd548f470c6396cb4eee007a7f55824b12017f626befb7669fa81c2756ab9f8e703d1d9e220402f1b0d4bc185d18df70be7f711
+MISC ChangeLog 2526 SHA256 b8e8caa0ca6303d29456b44341d1404954739a8387a049f5d68ca17c9807dc8c SHA512 7a89ecad236436ef1843238ff766b572bdadb2734ee30ebee86668127a842636e22e4360a7724b7fbf8db02fb7ac83a951ea8468dc8b13f711e6735212c617f4 WHIRLPOOL 38059e1fe44c0187798987096256416f1739797f95f5c17bae3a56d5c53bc114360c0d0175330077e2f39972fe5e4c422606b32d4bdef97cef30c68df15a8e24
+MISC ChangeLog-2015 1719 SHA256 89d0b7a9bb9e9d75a6eca5dbaa0ec952844ceec38fbc320512fec18d573ff8b6 SHA512 b3dc8d8e9a9e8bdcbcbf24396fdb433a9b37c0e91c5aef30f2b06537154597a6a8120df03ec864c3b33b5e564b6ad7bf895c97de827a7fffdae8436535aab513 WHIRLPOOL a7b23d4aecbd69ae1e23d919498c2792f9632e0cba4d18bf207debe76c7229a9c25c4c80ef0dafbfe05cec78dd1bee85d287c6e490a1db3a7cf5120273828af0
+MISC metadata.xml 166 SHA256 2caff447f5bd2701d8456ada5cc633c41ef4373fa4bfeabeb73599d40bcc941b SHA512 a56648c974a1d14dd4c18237532773c72057a13ab90c58b5da04f185e3c12a8bd8d5c21fb06053507f31766291a82dc7d87b34cd65fd94cfe2af7295c813ef84 WHIRLPOOL 1ff70497eca6531f0e0614c72a19f4b8e5ff486a58d369f4f0b36308d1d6b01168f9da887740e3b9f536236be251d3fe05f904d27a9233a7cf613416ba882968
diff --git a/media-gfx/w3mimgfb/metadata.xml b/media-gfx/w3mimgfb/metadata.xml
new file mode 100644
index 000000000000..6f49eba8f496
--- /dev/null
+++ b/media-gfx/w3mimgfb/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<!-- maintainer-needed -->
+</pkgmetadata>
diff --git a/media-gfx/w3mimgfb/w3mimgfb-0.9.1.ebuild b/media-gfx/w3mimgfb/w3mimgfb-0.9.1.ebuild
new file mode 100644
index 000000000000..aa180059c55b
--- /dev/null
+++ b/media-gfx/w3mimgfb/w3mimgfb-0.9.1.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+
+inherit toolchain-funcs
+
+DESCRIPTION="Image viewer for w3m under frame buffer environment"
+HOMEPAGE="http://homepage3.nifty.com/slokar/fb/w3mimg.html"
+SRC_URI="http://homepage3.nifty.com/slokar/fb/${P}.tar.gz"
+
+LICENSE="w3m BSD"
+SLOT="0"
+KEYWORDS="~amd64 x86 ppc"
+IUSE=""
+
+DEPEND="media-libs/stimg"
+RDEPEND="${DEPEND}
+ virtual/w3m"
+
+src_prepare() {
+ sed \
+ -e '/^CC/d' \
+ -e '/^CFLAGS/d' \
+ -e '/^LDFLAGS/d' \
+ -i Makefile || die
+ tc-export CC
+}
+
+src_install() {
+ exeinto /usr/libexec/w3m
+ doexe w3mimgdisplayfb
+
+ dodoc readme.txt
+}
diff --git a/media-gfx/wally/Manifest b/media-gfx/wally/Manifest
new file mode 100644
index 000000000000..bb548e99ec75
--- /dev/null
+++ b/media-gfx/wally/Manifest
@@ -0,0 +1,6 @@
+AUX wally-2.2.0-disable_popup.patch 562 SHA256 aaf9f837c316915d953d215472cb08292d7a62cbfc09471ba651008e0c2b3e92 SHA512 34ea327b685386596010b66292e5f77cbe0ea07d7c961f9c1518231d47c41b0cff70c0f195e47384f95396127f9e50326ddf0c41a53174cdaab51dcbf64ef220 WHIRLPOOL 9baef2ed50548028403bcafffcc1611336f294a1f454fd2e7d7a12de69e8cc511a38da67b7badc3e10de0f3e531ca6749fbd27bcb81774633b7e82addb005ebf
+DIST wally-2.4.5.tar.gz 1601018 SHA256 deb8aecf3742a93b5051fdc9ca2144a4f88892a465cd4723e04ec2a07f2cca5e SHA512 d0b81478fa2e7690136aa811b761ebf2f8a5daf4e2b736d67b72e1b874d0ec5e3020bb97d52b30c79411b8c4a50c6e05a44051cc87157b012f5a7f60b085faa5 WHIRLPOOL 8f5e2e560f333674c97a2f47762487a653a1cc34d93ce8fc015f4680c775a3e10179ed92f46ba21206419188a43d0bb20e2a2d84460634e6abdeaf4a188ac177
+EBUILD wally-2.4.5.ebuild 1073 SHA256 eb88955a1c7a79e4468816dd5db7463e45d21fce0d05d9e268a5743bcf7c1974 SHA512 60acfea305b6012f7ec97849c9102248fffa4c0874066dc33acb990043dfdeaef45aa16af995520b69d5aeb5cb998366c3671218cd9fdceb83eff081000e791b WHIRLPOOL 573657361658face2920a043fd197b8005bbd70b3b799dc98e95058d7eb064e490f09119d8343e7e1f25e28bbbf7f156bbeb69034113d421a790b7c9d5b14a28
+MISC ChangeLog 2536 SHA256 49a41bf6ea41895143957e7134ca6c1d84f6fd1e4bb8e61292b8de96836d266b SHA512 899f622a944bb4bfe3728aaeb0734b3a921a4de5cb5a13acde6c5261514ee3763a763835e43d4801b1304a2a2231499a7afedea4ddeaff8b1a0871d05748344d WHIRLPOOL 59af24557764906aed57e872efe301f7300265fd31e97235945703408b9be47053a14108858843bd4e3ce776cab10ec89b00feb5af50997ec35f302d0a61033b
+MISC ChangeLog-2015 6695 SHA256 33e79d99a86a08964ec41007bb3e58f3ef3d6e4edabe08d46dbe24576b695060 SHA512 b7144f39f947007e5dd8cdb315ad35ea6ef1f7acf283785c5f1ba7a40b44cd4d415f032e6edcc4e74d414869836b9b5b6e318b0a10c926fca0ff674072e82985 WHIRLPOOL af738f232b0255c8c0a8345d97979f99ae28c8d171000baf398fe7c8daf9cd4598699aad984fed00be1ca0e15f9d7e57e3bf913c7d0571f42107b0dfd25a2c1e
+MISC metadata.xml 478 SHA256 c8dba985ce212e8a47f92fa2ad77c09a46604440185a7184ac08fb5aadfbf811 SHA512 862f7867057a348189daf73d08656dbe9c915d823a5ed8669ddf533eeb1f2fe32d1ae22507e05786905e8af58cdf53f449ee70bfdcf206824b43efc3bc5fa2c6 WHIRLPOOL a9cabfcc83d95e802631b3144d0d46638a51148503fc4f949fd4db1dd2d4111496ad85a9177112e63c6b6c4f5d6965e4f1b78983b969293b1ff1d8631d238410
diff --git a/media-gfx/wally/files/wally-2.2.0-disable_popup.patch b/media-gfx/wally/files/wally-2.2.0-disable_popup.patch
new file mode 100644
index 000000000000..9d482eb231c0
--- /dev/null
+++ b/media-gfx/wally/files/wally-2.2.0-disable_popup.patch
@@ -0,0 +1,9 @@
+--- a/wallyplugin/CMakeLists.txt
++++ b/wallyplugin/CMakeLists.txt
+@@ -26,6 +26,3 @@ install(TARGETS plasma_wallpaper_wallypl
+
+ install(FILES plasma-wallpaper-wallyplugin.desktop DESTINATION ${SERVICES_INSTALL_DIR})
+ install(FILES wallyplugin.png DESTINATION ${ICON_INSTALL_DIR}/oxygen/16x16/apps)
+-
+-install(CODE "execute_process(COMMAND kbuildsycoca4 OUTPUT_QUIET ERROR_QUIET)")
+-install(CODE "execute_process(COMMAND kdialog --title \"WallyPlugin\" --msgbox \"WallyPlugin will be loaded next time KDE is started. Please select it in Appearance Settings.\")")
diff --git a/media-gfx/wally/metadata.xml b/media-gfx/wally/metadata.xml
new file mode 100644
index 000000000000..39c300404c08
--- /dev/null
+++ b/media-gfx/wally/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>hwoarang@gentoo.org</email>
+ <name>Markos Chandras</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>desktop-misc@gentoo.org</email>
+ <name>Gentoo Desktop Miscellaneous Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">wally</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/media-gfx/wally/wally-2.4.5.ebuild b/media-gfx/wally/wally-2.4.5.ebuild
new file mode 100644
index 000000000000..e22dcfe2f182
--- /dev/null
+++ b/media-gfx/wally/wally-2.4.5.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit cmake-utils eutils xdg-utils
+
+DESCRIPTION="Qt4 wallpaper changer"
+HOMEPAGE="http://www.becrux.com/index.php?page=projects&name=wally"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="4"
+KEYWORDS="amd64 x86"
+IUSE="debug"
+
+DEPEND="
+ dev-qt/qtcore:4
+ dev-qt/qtdbus:4
+ dev-qt/qtgui:4
+ dev-qt/qtsql:4
+ dev-qt/qtsvg:4
+ media-libs/libexif
+ x11-libs/libX11
+"
+RDEPEND="${DEPEND}"
+
+DOCS=( AUTHORS ChangeLog README README.XFCE4 README.shortcuts TODO )
+
+PATCHES=( "${FILESDIR}"/${PN}-2.2.0-disable_popup.patch )
+
+src_configure() {
+ local mycmakeargs=(
+ -DSTATIC=FALSE
+ -DCMAKE_DISABLE_FIND_PACKAGE_KDE4=ON
+ )
+ cmake-utils_src_configure
+}
+
+src_install() {
+ cmake-utils_src_install
+ newicon "${S}"/res/images/idle.png wally.png
+ make_desktop_entry wally Wally wally "Graphics;Qt"
+}
+
+pkg_postinst() {
+ xdg_mimeinfo_database_update
+ xdg_desktop_database_update
+}
+
+pkg_postrm() {
+ xdg_mimeinfo_database_update
+ xdg_desktop_database_update
+}
diff --git a/media-gfx/wings/Manifest b/media-gfx/wings/Manifest
new file mode 100644
index 000000000000..6062e40b1d89
--- /dev/null
+++ b/media-gfx/wings/Manifest
@@ -0,0 +1,9 @@
+AUX wings.sh 182 SHA256 c3a1e725b04b5f93fcbb1482b269417b8720197124342d5e9427a7a7651c54f2 SHA512 3b0d606638eb8a2875a90716f18f1584925d56ef43956bde3344e494311a39181171b4ad358a8c9bc20e826c7de727b4aca9d70763a3fe6ee0806747ea32c791 WHIRLPOOL 0370e90b5aaf923e9ec78081b1c2fbe5501dede615770d7061c9497108ef1c69686ba2212717629ff925179ea13f4083adc9abb5cfd8080a239c8a4102725ec3
+AUX wings.sh-r1 181 SHA256 c5d1cebeba69189985c4ce2e98d35c20336e9f67e8b0981becb1e7a16bca136a SHA512 739b8e68a1b47a3f4adbff8a1f34b713d7b0ac2d8103d85d3fdd6020bf08e81c231d210239c140d23e1dd135ff7122bfd43327a27585a333eafab473ea1480df WHIRLPOOL 0d5943216d1054e73804803462f39e7a6d4cccce7633027c194ddc42c29831dc7869722cfd823738488dc955307592ad1140dd0fd4526f6ee67520aeb33e8c6b
+DIST wings-1.1.1.tar.bz2 1932572 SHA256 1a75a39a1a4586b242558a879d611adf1566b86785750f48ba60d851c2e40d08 SHA512 e60727328c9431738736466444655f54694973e59ad73e60874450845b080bf65c6b784ee0cb06cdff98f3717841dfbeceb5e36a1c55d98f31f280b972b7a2e3 WHIRLPOOL 9868a2ef5571291fa98db5239d767026d3cb0962c417bea77d7555ed2ff3d7fcded2200cad9347f5c0bb39591037fac9096cb7518f8285d2a3597a607c557d5e
+DIST wings-2.1.5.tar.bz2 2653117 SHA256 f0f03cfe9f0ee0ee6c734a2b7e50410d5f21238441cb1f34422b0ecde25b582c SHA512 37f363f39d0618550d7814733a4e52c18b52c7d8ee357c76dcf97ae1b530f5b941bddecfba18d63538792dda3ca3013055759595157832e11e017bfe18b34df0 WHIRLPOOL 3fd9c2008de69a6534d95c4e54d0b27d53e91efbfcabee5090abba03e23a25f8dea4a9ce5d9ec543e59dd2e773bb3ed2ad13c2824027bbe78296dad37a8db768
+EBUILD wings-1.1.1.ebuild 1046 SHA256 ba640aabbd693f3f3362776f706c06faaa91a30a09d957bc7d9f7fffdbdfc99c SHA512 8c2595e176d6f4bcc87b538c8738d5f6f10a0ce6d0d9c52401b958d41a8b04db6b31d7b41bd248517b4a9016efdf00d4dd8e694f10863516f34bdb38f198cb6e WHIRLPOOL 12c330e05773b52781c9499eb8ec27cb25072f5526497bc90d477f8096a093e7070d544f4b1dada7a748cc6b955707a5cccb513482c710758bb11dbacf250000
+EBUILD wings-2.1.5.ebuild 1035 SHA256 e33c2975238c514053fcd73e49afa74bd259db7258f722a04498be7e179516fd SHA512 beafe5ec27693942af4d2e398fd153dbc5d43a7ad6e0b7111e46e7160aee74405818b064b8d20ccc11299f1118e2857392dce7ce633c5dbaf792a274d1517366 WHIRLPOOL ae928c4a758744abf0579688d71b6e1b0a89c4ca9354522171ac88bf6f5a8cdabd2fcb578250344955215f64f2b36ce5964a46a92087286dd17d7dc6cf97ea68
+MISC ChangeLog 7681 SHA256 0d7f20b9d497cf10b14e27315ca6ff906f51f25b2b7b2b554cdfa192c0758b3c SHA512 27d89dea063105905002898f193a36c181e38e033e0a996cf030b1b02cadeeef3d0aa69e2022dd269c9c00374ac6d2b5e8efabae9e05f156110a4a95468d87ae WHIRLPOOL 35cd6409de1eeb192358038ab49968f84f2efcc2c0ce9ea1aed54199ab86d72a35a150f54920567576cd73bbe2ca1d47ba9097d35ddbc71b9ed97960ad3f7f5f
+MISC ChangeLog-2015 3731 SHA256 d4eff20d6c0d5e32e9066de7aa5544633e9964435f8b86c463aefaac13677bb8 SHA512 b7f7bb2ca7f20120f6bfc311e0d07e11e208b49c6c08f9987aea58a1f21b20067a98c1b29e75191e9cbf54e3dd621e6eef063e469adfd454c6320caec0d74aec WHIRLPOOL 9a873611ca5c01a684b64a78c04c96f0e350b2ca9ded9c818ef2011c78af96a20542116e14da8b786e995c5e3c7f38bf29ef8f1471dd1b375e52fc463db3d03a
+MISC metadata.xml 730 SHA256 2222ffd522fe8c26a81da496d19fa5941a02e7e4171634735acaa2dd0871d86f SHA512 7672ac58e0f7ba153b0a5939cf8e426e8c3f8c97366436340e1bbb65e85a785add4c6394e81e1aade634f58d8751a85ba75cbb1bb57fa822773a632736d96086 WHIRLPOOL 5f1a885377987d2d28481b98ca29bf989a8c8f80af3b3052591bc4d6b08941bf9f026d8148f31f89e73b850161240faa044d36cdd056ab86ba145c3e60a6e8f7
diff --git a/media-gfx/wings/files/wings.sh b/media-gfx/wings/files/wings.sh
new file mode 100644
index 000000000000..3fcebe4b1252
--- /dev/null
+++ b/media-gfx/wings/files/wings.sh
@@ -0,0 +1,4 @@
+#!/bin/sh
+ESDL_ROOT="/usr/lib/erlang/lib/esdl"
+WINGS_ROOT="/usr/lib/erlang/lib/wings"
+exec erl -smp disable -noshell -pa $ESDL_ROOT/ebin $WINGS_ROOT/ebin -run wings_start start_halt
diff --git a/media-gfx/wings/files/wings.sh-r1 b/media-gfx/wings/files/wings.sh-r1
new file mode 100644
index 000000000000..9cf1f26a16a4
--- /dev/null
+++ b/media-gfx/wings/files/wings.sh-r1
@@ -0,0 +1,4 @@
+#!/bin/sh
+ESDL_ROOT="/usr/lib/erlang/lib/esdl"
+WINGS_ROOT="/usr/lib/erlang/lib/wings"
+exec erl -smp enable -noshell -pa $ESDL_ROOT/ebin $WINGS_ROOT/ebin -run wings_start start_halt
diff --git a/media-gfx/wings/metadata.xml b/media-gfx/wings/metadata.xml
new file mode 100644
index 000000000000..5c5921bc8ade
--- /dev/null
+++ b/media-gfx/wings/metadata.xml
@@ -0,0 +1,24 @@
+<?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>
+ <maintainer type="person">
+ <email>jer@gentoo.org</email>
+ </maintainer>
+ <longdescription>
+Wings 3D is a polygon mesh modeler inspired by Nendo and
+Mirai from Izware.
+
+It is possible to assign materials, vertex color, UV
+coordinates and textures, but there will be improvements
+in those features before Wings goes 1.0.
+
+There is no support in Wings for doing animations.
+</longdescription>
+ <upstream>
+ <remote-id type="sourceforge">wings</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/media-gfx/wings/wings-1.1.1.ebuild b/media-gfx/wings/wings-1.1.1.ebuild
new file mode 100644
index 000000000000..7e6492f3af44
--- /dev/null
+++ b/media-gfx/wings/wings-1.1.1.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="2"
+
+inherit multilib eutils
+
+DESCRIPTION="excellent 3D polygon mesh modeler"
+HOMEPAGE="http://www.wings3d.com/"
+SRC_URI="mirror://sourceforge/wings/${P}.tar.bz2"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="amd64 ppc ppc64 x86"
+IUSE=""
+
+RDEPEND=">=dev-lang/erlang-13.0
+ >=media-libs/esdl-1.0.1
+ media-libs/libsdl[opengl]"
+DEPEND="${RDEPEND}"
+
+pkg_setup() {
+ ERL_PATH="/usr/$(get_libdir)/erlang/lib/"
+ ESDL_PATH="${ERL_PATH}/$(best_version media-libs/esdl | cut -d/ -f2)"
+}
+
+src_compile() {
+ make ESDL_PATH="${ERL_PATH}/$(best_version media-libs/esdl | cut -d/ -f2)" || die
+}
+
+src_install() {
+ WINGS_PATH=${ERL_PATH}/${P}
+ dodir ${WINGS_PATH}
+
+ find -name 'Makefile*' -exec rm -f '{}' \;
+ for subdir in e3d ebin icons plugins plugins_src src fonts ; do
+ cp -r ${subdir} "${D}"/${WINGS_PATH}/ || die
+ done
+
+ dosym ${WINGS_PATH} ${ERL_PATH}/${PN}
+ dosym ${ESDL_PATH} ${ERL_PATH}/esdl
+ newbin "${FILESDIR}"/wings.sh wings
+ dodoc AUTHORS README
+}
diff --git a/media-gfx/wings/wings-2.1.5.ebuild b/media-gfx/wings/wings-2.1.5.ebuild
new file mode 100644
index 000000000000..212860eb8a20
--- /dev/null
+++ b/media-gfx/wings/wings-2.1.5.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit multilib
+
+DESCRIPTION="Wings 3D is an advanced subdivision modeler"
+HOMEPAGE="http://www.wings3d.com/"
+SRC_URI="mirror://sourceforge/wings/${P}.tar.bz2"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="amd64 x86"
+
+RDEPEND="
+ >=dev-lang/erlang-18.1[smp,wxwidgets]
+ dev-libs/cl
+ media-libs/libsdl[opengl]
+"
+DEPEND="${RDEPEND}"
+
+src_prepare() {
+ default
+
+ sed -i \
+ -e '/include_lib/s|"wings/|"../|' \
+ $(find . -name '*'.erl) \
+ || die
+}
+
+src_configure() {
+ export ERL_PATH="/usr/$(get_libdir)/erlang/lib/"
+}
+
+src_compile() {
+ # Work around parallel make issues
+ emake vsn.mk
+ for subdir in intl_tools src e3d icons plugins_src; do
+ emake -C ${subdir}
+ done
+}
+
+src_install() {
+ WINGS_PATH=${ERL_PATH}/${P}
+ dodir ${WINGS_PATH}
+
+ find -name 'Makefile*' -exec rm -f '{}' \;
+
+ insinto ${WINGS_PATH}
+ doins -r e3d ebin icons plugins psd shaders src textures tools
+
+ newbin "${FILESDIR}"/wings.sh-r1 wings
+ dodoc AUTHORS README
+}
diff --git a/media-gfx/wkhtmltopdf/Manifest b/media-gfx/wkhtmltopdf/Manifest
new file mode 100644
index 000000000000..fbb1294b9c12
--- /dev/null
+++ b/media-gfx/wkhtmltopdf/Manifest
@@ -0,0 +1,7 @@
+AUX wkhtmltopdf-0.12.4-build.patch 883 SHA256 f72bac4ec155a7cfe9d4481488930c08075837630346ade677079655f7dc59f8 SHA512 679196b89343bade3b8846bc7913c5ebf9d9badb63ffb3de6797a9bdb14e83806cdc0771354bfa9e633bda9c6934d65cbcc7b4f585a31499565a8c6777e1370e WHIRLPOOL b1d7407ae87c8d86839dfb522e95390ed7626b935c18bc85ca6c7409f66542fa383e5c2abc7a5210d96eda16bddaf08755ddc56fa3833ba4543f92b092376441
+AUX wkhtmltopdf-0.12.4-gcc6-warn.patch 1271 SHA256 155e380c56ec2a3ed4ed6aaf6fed64870181008e7ee360aee1c4bd9bfb8605ec SHA512 af4282d023e2da3ab5ba2e7475b3bfa476fc1c9507e2af2db407ff99312cbae60b41846e13564c3b55b670caecd072f6c996348dbbc68528e6a798b3068f6058 WHIRLPOOL b62c627dc557a06c319c54f0230871922f550e49dc1f714a1ec2d08c451c65505c5dab96b37c52c5ce1d91231116125c6ab38a6880aa8c4492fdf0bd53c1e6e6
+DIST wkhtmltopdf-0.12.4.tar.gz 128695 SHA256 dd466f5c2504670459f3b8265de5697b9054f077e2f3e392e5172b5133080edf SHA512 6ec27453efdf32b97f6434a3eb5dd3d3470bbdccdbb4f997ff4234441c79960932e51d963e5d0d2d98bbf8b4f7ab2ed8835dbc1a35407a63815691b59217caa2 WHIRLPOOL 382c930e21e7136fe540b26afe86d53c74e6d97a70f87cd2138cc654ad65958f60cb11e76bf3e0a1aeb4f8bbc7671deae2e109058e9343d773684ec916d4aa8d
+EBUILD wkhtmltopdf-0.12.4-r1.ebuild 1011 SHA256 d5e7889406c33ed0b24d2135dbed96fd6b58857aec98471ed97b91ca90185094 SHA512 ac76c9b09621fb465a8d6caa05c4406259dd81373541bf9b80a4b8b90d72ef95dc61fb58af5953918923b055bdccee398fa878e95e1511c0d11d5111f33e3bcb WHIRLPOOL 44e3a63d01bd3ea2c721af6e1afc56ece2149f536e42a5c218cc852c22ecec3309505060d8f3d5a03b4e7ab9d9b95904ec119406e34695cddcfb5b2307097205
+MISC ChangeLog 2558 SHA256 8dd0d153f4a2617126996d0f40a23870e7f447b7a243e56dd99762716cda065d SHA512 b419d40a66209362ba2970a8c5e343c84de473e63a94ef6dbe221d0bb97abe19afb6095a1f41c74da96d9d8197db3f170404cbe96f370e024c58160a87bf5469 WHIRLPOOL 396d0e329057469be31cdcfbdb44bf28866c65cc003eea9a65780202017c0a99a60918c5f4c93212a9ef0a4cdc7b07a500acb9604f0f22ba52c8dddb833eedf3
+MISC ChangeLog-2015 1349 SHA256 5dab0bee97824a230977232e5b2dc4bb4a5ee94c0f6fbff03f2b2430361b7be2 SHA512 c97dfd5cef30ea62c301b81766a285ee40611b5cf823dcb8e20a068e472bbe1e188031ef08a6ab4491d71129f33c1823f0e70b3131c4c402c43b27a543b8c6b5 WHIRLPOOL b13ae45be9da8cbc9c23e08d4974a7fa9b6a3145818d0c733e3dbcdf2901e4f7e0fd72f8ce9af03f22bc7452d617024e06fabea2fa9a7ac8c2ec4185c0879318
+MISC metadata.xml 347 SHA256 a2e7eb7796d0dd6962867ca206666fba6641491258e6a5380d66ffc9b93466d2 SHA512 b642c6b896856dca084c706f397b6fed8537b126105356365ec0eb14fc6bd51229fece832800f2ab18d8d64a1f22c4015d2fa6467d067ffc58c001af6e216828 WHIRLPOOL a120b69cbd37ec16cf066ad5a97d8c961341f7c94667820a4f1ad5432938c33a6b32e52580c1680b436baa5c45701b13ba89540f7fcb95950f4b74342d453ec6
diff --git a/media-gfx/wkhtmltopdf/files/wkhtmltopdf-0.12.4-build.patch b/media-gfx/wkhtmltopdf/files/wkhtmltopdf-0.12.4-build.patch
new file mode 100644
index 000000000000..0148f3b42948
--- /dev/null
+++ b/media-gfx/wkhtmltopdf/files/wkhtmltopdf-0.12.4-build.patch
@@ -0,0 +1,21 @@
+Fix build without patched Qt
+
+This was broken since 96b03ae.
+
+diff --git a/src/lib/multipageloader.cc b/src/lib/multipageloader.cc
+index 93dece8..456a857 100644
+--- a/src/lib/multipageloader.cc
++++ b/src/lib/multipageloader.cc
+@@ -213,10 +213,11 @@ ResourceObject::ResourceObject(MultiPageLoaderPrivate & mpl, const QUrl & u, con
+ }
+
+ webPage.setNetworkAccessManager(&networkAccessManager);
+-
++#ifdef __EXTENSIVE_WKHTMLTOPDF_QT_HACK__
+ double devicePixelRatio = multiPageLoader.dpi / 96.; // The used version of WebKit always renders at 96 DPI when no zoom is applied. It does not fully support a device pixel ratio != 1 natively.
+ webPage.mainFrame()->setZoomFactor(devicePixelRatio * settings.zoomFactor); // Zoom in the page to achieve a higher DPI.
+ webPage.setDevicePixelRatio(devicePixelRatio); // Fix CSS media queries (does not affect anything else).
++#endif
+ }
+
+ /*!
diff --git a/media-gfx/wkhtmltopdf/files/wkhtmltopdf-0.12.4-gcc6-warn.patch b/media-gfx/wkhtmltopdf/files/wkhtmltopdf-0.12.4-gcc6-warn.patch
new file mode 100644
index 000000000000..83f862677a67
--- /dev/null
+++ b/media-gfx/wkhtmltopdf/files/wkhtmltopdf-0.12.4-gcc6-warn.patch
@@ -0,0 +1,33 @@
+From c7a709f3d9b7628d5416e45c365901381beef7cc Mon Sep 17 00:00:00 2001
+From: Ashish Kulkarni <kulkarni.ashish@gmail.com>
+Date: Tue, 20 Dec 2016 17:57:26 +0530
+Subject: [PATCH] fix compilation warning with GCC 6.2
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+../lib/pdfsettings.cc: In function ‘QString wkhtmltopdf::settings::unitRealToStr(const UnitReal&, bool*)’:
+../lib/pdfsettings.cc:308:3: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
+ if (ok) *ok=false; break;
+ ^~
+../lib/pdfsettings.cc:308:22: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘if’
+ if (ok) *ok=false; break;
+ ^~~~~
+---
+ src/lib/pdfsettings.cc | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/src/lib/pdfsettings.cc b/src/lib/pdfsettings.cc
+index e3c62526..b339ec10 100644
+--- a/src/lib/pdfsettings.cc
++++ b/src/lib/pdfsettings.cc
+@@ -305,7 +305,8 @@ QString unitRealToStr(const UnitReal & ur, bool * ok) {
+ case QPrinter::Point: c = "pt"; break;
+ case QPrinter::Millimeter: c = "mm"; break;
+ default:
+- if (ok) *ok=false; break;
++ if (ok) *ok=false;
++ return "";
+ }
+ return QString("%1%2").arg(ur.first).arg(c);
+ }
diff --git a/media-gfx/wkhtmltopdf/metadata.xml b/media-gfx/wkhtmltopdf/metadata.xml
new file mode 100644
index 000000000000..8fb57a5f0bfa
--- /dev/null
+++ b/media-gfx/wkhtmltopdf/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="github">wkhtmltopdf/wkhtmltopdf</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/media-gfx/wkhtmltopdf/wkhtmltopdf-0.12.4-r1.ebuild b/media-gfx/wkhtmltopdf/wkhtmltopdf-0.12.4-r1.ebuild
new file mode 100644
index 000000000000..26b0e472f391
--- /dev/null
+++ b/media-gfx/wkhtmltopdf/wkhtmltopdf-0.12.4-r1.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit qmake-utils
+
+DESCRIPTION="Convert html to pdf (and various image formats) using webkit"
+HOMEPAGE="https://wkhtmltopdf.org/ https://github.com/wkhtmltopdf/wkhtmltopdf/"
+SRC_URI="https://github.com/${PN}/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="examples"
+
+RDEPEND="
+ dev-qt/qtcore:5
+ dev-qt/qtgui:5
+ dev-qt/qtnetwork:5
+ dev-qt/qtprintsupport:5
+ dev-qt/qtsvg:5
+ dev-qt/qtwebkit:5[printsupport]
+ dev-qt/qtwidgets:5
+"
+DEPEND="${RDEPEND}
+ dev-qt/qtxmlpatterns:5
+"
+
+DOCS=( AUTHORS CHANGELOG.md README.md )
+
+PATCHES=(
+ "${FILESDIR}"/${P}-build.patch
+ "${FILESDIR}"/${P}-gcc6-warn.patch
+)
+
+src_prepare() {
+ default
+ sed -i "s:\(INSTALLBASE/\)lib:\1$(get_libdir):" src/lib/lib.pro || die
+}
+
+src_configure() {
+ eqmake5 INSTALLBASE=/usr
+}
+
+src_install() {
+ emake INSTALL_ROOT="${D}" install
+ use examples && dodoc -r examples
+ einstalldocs
+}
diff --git a/media-gfx/xdot/Manifest b/media-gfx/xdot/Manifest
new file mode 100644
index 000000000000..cc6e370f3131
--- /dev/null
+++ b/media-gfx/xdot/Manifest
@@ -0,0 +1,9 @@
+DIST xdot-0.5.tar.gz 24555 SHA256 ecc40a7371a6f9590cb10b1a7d3cef67843cb18e7a9e4648dcb458229a7bf3c7 SHA512 f466ee0af2270c66218b67bf371c972d0ffefe977059eeeeb3c4a2ca29807c3ca419020286ed9c031853f79afb55222884c942bd14d8365b64ce2a0ed5f6d1d0 WHIRLPOOL 10e21752cfb8afd3a34b64708f410290b70e37026a8723320693f612ea1de5e13296db88b951ce860c260434dba5b113919b12e10f461e97b8a6a68d5f7e9125
+DIST xdot-0.6.tar.gz 27710 SHA256 0932bb72abaa77e6a5c4f2acd13569763c23d2761f4e9e5e49993bc69da9cce2 SHA512 25dcb35aacdd58fb13519346d1d8cf500eeeeb3cc40dee85e967d23c52c0c37ba092a023aec6cd72a35b74e3ea6a2168e1691ad218e4a6af17ea6d56d824f05b WHIRLPOOL f98c33b4d9e0d08a61630f351063a6756b40c01aa065ec8a7b9e620aa5650b97de1ea73bb384a41bc48ab4a99e6498499e4f5df3191449c56947bb9101f29f41
+DIST xdot-0.7.tar.gz 126406 SHA256 908eeaaae2af12744e25e8cffe704d7a9fd221c23c60f550263de81157ef50f7 SHA512 793be28fbd0ee6c2b9dd97532ef8742d598f84055ef67e688593d7c1f689f04593dd89a490f4f48866b18ac595252d03b9cc6d8d8e2d6c0ac1ef1ad28789c512 WHIRLPOOL 80976649a0d2cb0c7dc4d27783b9e23d3fc5e7c6e9d003816ca85d644384e0ef81d672b3d5261b38b22a3a80ab80ac51a892318ba15a2f26af5198dbd4612b3e
+EBUILD xdot-0.5.ebuild 660 SHA256 e9a778a0f71e4e07ac54c392380ac4b616a2ccb80774426022ddcd65292fd435 SHA512 2752cc87cd87c1c4f5b7e5d4be3859cf3e8f2121aaa4310036eadce9c0cf428d9ada1180b784ccfcba302a4c6ab6a58d70f36db5d2db9190696be51c45d0cc6f WHIRLPOOL f74adef6427cd380d0505472e45b869182260aec7e088ea1db4485e0d51c2e95b5e6befa9f9c304ff50b6404dc6559a1db55a0c80cd550401bf8603594c57a02
+EBUILD xdot-0.6.ebuild 660 SHA256 e9a778a0f71e4e07ac54c392380ac4b616a2ccb80774426022ddcd65292fd435 SHA512 2752cc87cd87c1c4f5b7e5d4be3859cf3e8f2121aaa4310036eadce9c0cf428d9ada1180b784ccfcba302a4c6ab6a58d70f36db5d2db9190696be51c45d0cc6f WHIRLPOOL f74adef6427cd380d0505472e45b869182260aec7e088ea1db4485e0d51c2e95b5e6befa9f9c304ff50b6404dc6559a1db55a0c80cd550401bf8603594c57a02
+EBUILD xdot-0.7.ebuild 660 SHA256 e9a778a0f71e4e07ac54c392380ac4b616a2ccb80774426022ddcd65292fd435 SHA512 2752cc87cd87c1c4f5b7e5d4be3859cf3e8f2121aaa4310036eadce9c0cf428d9ada1180b784ccfcba302a4c6ab6a58d70f36db5d2db9190696be51c45d0cc6f WHIRLPOOL f74adef6427cd380d0505472e45b869182260aec7e088ea1db4485e0d51c2e95b5e6befa9f9c304ff50b6404dc6559a1db55a0c80cd550401bf8603594c57a02
+EBUILD xdot-9999.ebuild 568 SHA256 d4c4cacfc5838d339c3e02c23476ba9b62a7a70bf55748b22b07824d0540c3ce SHA512 5b82f55937820a526ae13e93be38aff2f631e912efa6cf860724ac963b7c62412ade25f732db4d20dd5512804c9e49e18323fa0bc8f5310c090bd72cbc0b431e WHIRLPOOL 292152f52742a138f9b8cbad31281b24a7c6770030a5a3ee75699bec093578e3739b3de08b586f980477256a9bee7dd4317efa1e6efc2fc2c99d4d8d748d7b85
+MISC ChangeLog 762 SHA256 713ed45592c55f273e2309115aaa6b69a4fd396ce97a29e7ae07d6f27ef203a1 SHA512 95361608977140dc43737d85c7741497ac0056e134b493c015de88ae9c448158462b80db70229cf69e6a14a99e45b31733e970467436665be0254394e25d3bb7 WHIRLPOOL 34dfda576460d1d8263aab90a0d601ec3dcf4722db4ad748079431f20e75860d3de001c2657e97787e27265bcc1bdb6eac43c908ab4baea164e035d5e1c30d26
+MISC metadata.xml 428 SHA256 674cbb582df37225a7fd28b4ba726995a5b1fa40118342ad558152b6fda41c5b SHA512 5a6cf462a35470509a7b38baea1b95220527d20652e185cc280f3e85be2043c502089c012abdcd841c4cd9114b8058d7afd2874ff5b9e3f17eb218c914d09501 WHIRLPOOL f4233dcaf6babf31a132255c3889c15ea5c0a7bfb8416551c8c345c06af1ce1e4807f4a67154b5d94ef3d8f7ff19974c3a4460deb8626d8f3f3f26db054466a0
diff --git a/media-gfx/xdot/metadata.xml b/media-gfx/xdot/metadata.xml
new file mode 100644
index 000000000000..947bc75e20be
--- /dev/null
+++ b/media-gfx/xdot/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>wizardedit@gentoo.org</email>
+ <name>Austin English</name>
+ </maintainer>
+ <longdescription>
+ Interactive viewer for Graphviz dot files
+ </longdescription>
+ <upstream>
+ <remote-id type="github">jrfonseca/xdot.py</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/media-gfx/xdot/xdot-0.5.ebuild b/media-gfx/xdot/xdot-0.5.ebuild
new file mode 100644
index 000000000000..e67ac5185ee1
--- /dev/null
+++ b/media-gfx/xdot/xdot-0.5.ebuild
@@ -0,0 +1,28 @@
+# 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
+
+MY_PN=xdot.py
+MY_P="${MY_PN}-${PV}"
+
+DESCRIPTION="Interactive viewer for Graphviz dot files"
+HOMEPAGE="https://github.com/jrfonseca/xdot.py"
+SRC_URI="https://github.com/jrfonseca/${MY_PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="LGPL-2+"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+DEPEND="
+ dev-python/pycairo[${PYTHON_USEDEP}]
+ >=dev-python/pygtk-2.10:2[${PYTHON_USEDEP}]
+ dev-python/setuptools[${PYTHON_USEDEP}]
+ media-gfx/graphviz[${PYTHON_USEDEP}]
+"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/${MY_P}"
diff --git a/media-gfx/xdot/xdot-0.6.ebuild b/media-gfx/xdot/xdot-0.6.ebuild
new file mode 100644
index 000000000000..e67ac5185ee1
--- /dev/null
+++ b/media-gfx/xdot/xdot-0.6.ebuild
@@ -0,0 +1,28 @@
+# 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
+
+MY_PN=xdot.py
+MY_P="${MY_PN}-${PV}"
+
+DESCRIPTION="Interactive viewer for Graphviz dot files"
+HOMEPAGE="https://github.com/jrfonseca/xdot.py"
+SRC_URI="https://github.com/jrfonseca/${MY_PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="LGPL-2+"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+DEPEND="
+ dev-python/pycairo[${PYTHON_USEDEP}]
+ >=dev-python/pygtk-2.10:2[${PYTHON_USEDEP}]
+ dev-python/setuptools[${PYTHON_USEDEP}]
+ media-gfx/graphviz[${PYTHON_USEDEP}]
+"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/${MY_P}"
diff --git a/media-gfx/xdot/xdot-0.7.ebuild b/media-gfx/xdot/xdot-0.7.ebuild
new file mode 100644
index 000000000000..e67ac5185ee1
--- /dev/null
+++ b/media-gfx/xdot/xdot-0.7.ebuild
@@ -0,0 +1,28 @@
+# 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
+
+MY_PN=xdot.py
+MY_P="${MY_PN}-${PV}"
+
+DESCRIPTION="Interactive viewer for Graphviz dot files"
+HOMEPAGE="https://github.com/jrfonseca/xdot.py"
+SRC_URI="https://github.com/jrfonseca/${MY_PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="LGPL-2+"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+DEPEND="
+ dev-python/pycairo[${PYTHON_USEDEP}]
+ >=dev-python/pygtk-2.10:2[${PYTHON_USEDEP}]
+ dev-python/setuptools[${PYTHON_USEDEP}]
+ media-gfx/graphviz[${PYTHON_USEDEP}]
+"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/${MY_P}"
diff --git a/media-gfx/xdot/xdot-9999.ebuild b/media-gfx/xdot/xdot-9999.ebuild
new file mode 100644
index 000000000000..6b682956a737
--- /dev/null
+++ b/media-gfx/xdot/xdot-9999.ebuild
@@ -0,0 +1,23 @@
+# 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 git-r3
+
+DESCRIPTION="Interactive viewer for Graphviz dot files"
+HOMEPAGE="https://github.com/jrfonseca/xdot.py"
+EGIT_REPO_URI="https://github.com/jrfonseca/xdot.py.git"
+
+LICENSE="LGPL-2+"
+SLOT="0"
+KEYWORDS=""
+
+DEPEND="
+ dev-python/pycairo[${PYTHON_USEDEP}]
+ >=dev-python/pygtk-2.10:2[${PYTHON_USEDEP}]
+ dev-python/setuptools[${PYTHON_USEDEP}]
+ media-gfx/graphviz[${PYTHON_USEDEP}]
+"
+RDEPEND="${DEPEND}"
diff --git a/media-gfx/xfig/Manifest b/media-gfx/xfig/Manifest
new file mode 100644
index 000000000000..1287b6add03f
--- /dev/null
+++ b/media-gfx/xfig/Manifest
@@ -0,0 +1,23 @@
+AUX xfig-3.2.5b-app-defaults.patch 605 SHA256 a8dbc3c88d7f8c9c7810b360ebb60c8af8f54c56dd39164635e98ca9c6ad834b SHA512 5ff467feffc307200812d7d0d9b165178953e9dcf540f6a87d5baa00308a96ea69d2073a64bcde231e6bb43ebd2e811e8e0d0ec8bcc8efa4180037828cc9dc0d WHIRLPOOL a58682c3a0c567071f7d6b56350ee5bfb05db486b6ad4ae7ca8928e061cde6309fce283c93d1b691263fd525b90d17ff1070522d46fbf223d85ec238f4299329
+AUX xfig-3.2.5b-mkstemp.patch 983 SHA256 3c1264ae5957df3eb3893a32564294265ab84589578ce448530ed6636188bd7c SHA512 e31590f180b44799d7f11707efa80a765fe5f2caf827f3c1070d4c1da7b4baa774e60249f92e4d1d62d47fe220bf69c1ab96f019211b9dfaec8b6372cfaaf02e WHIRLPOOL adbd65baa60b99ac881258a03de892f7cdc1c1eebd7c33af7caa7dba445711f7b7bcd2eee1509af26f882df8428a917f5c814d4977280ad43852b05e0749cf2a
+AUX xfig-3.2.5b-network_images.patch 11918 SHA256 08d983eea753008d3a2a9c7bebf0f9035e795ad3038dbbb05c2a512d86163695 SHA512 17bf8519146b5085743d29959ad6416ed2a19da477d2aaa8d4cc82e0b53c060ee1ada036de1c79e4db91e5cc832978c80194b31b0444f0dcbb5edc1136c8afd3 WHIRLPOOL ebd9a6216533c0afa40c35ea0898932cee17388474df59e1eef78b69d7dc75e183af2e97798c080b7b5967f17242ecd2358a50a7ed48e344510d8cf9e6e8d10f
+AUX xfig-3.2.5b-papersize_b1.patch 1127 SHA256 36bed2e9bfe46868d5b750a12b892a7e20dbf7189d9fbbe4b0066411946d6f01 SHA512 6f302560bb359d1ea8ddb902aec1536d757ccb4655124ba00a6cbcc951eb607475b5abe1ae208c91a034a652d29b85c753af91f936bf4bab8bf0b0b259de2404 WHIRLPOOL c0d5f16c0032ea7c8c4f81951a276a703a7031b162f46c1a00e7764d65563113c583a9bed7d6bfb3f75597503447988a7be67f30ce58d1df2d499e0dc6501d8e
+AUX xfig-3.2.5b-pdfimport_mediabox.patch 1245 SHA256 40ecce3a59500c66879d4b5738ce80d6a6d105b1827b97a14c4e841cf596a5a9 SHA512 88d1cd6fc81e975209b86c0aa656760bcd1d1bc2bc393f3af16c905b5991a469dcd35660300d7c0c84de42c98018922125d6ff757e4dcd707b09931ff49abd39 WHIRLPOOL 41ccfe4cf345190a86164cc77438709c0603893416ee72e62a720574d4f4bc402352a95c6b8639cd3b4d5b875215165c808d3c6be7cd48c4253109df7623bd5c
+AUX xfig-3.2.5b-solaris.patch 507 SHA256 4962a510a0acac1ecb195743473a64f7e3fdd9327afca2a08d74efc574c1b35a SHA512 23cca988a45132e9a28657f3c03aa4c79d32cf4ed1875c210055e88ad07bf887843c13a7d02472af566493fd8a5f4acc533bcdc8e90ff907736b6a08073ca754 WHIRLPOOL 2ff09afd5649f7cdacd4fb0f5294936fbf1fea1148abb8696434194a963f1e4b9d1a3dfc4dacdc333034910cd52ddba369bd99d11c148e1b2eba83ab929bb1ba
+AUX xfig-3.2.5b-urwfonts.patch 4925 SHA256 2e588eed599d6a06342dd6be91fc9ce9999afbc010f98b974b2d05048bd6e232 SHA512 4b720e7f61b78ff10abbbfc78fc7749517555a6c6447667d629717bb843bc34a1c345640ba85b3f1aca0a35c189184d20148ed8baaf95f54b7172602d1e1c8f1 WHIRLPOOL 5d4da8806d1d9af0432aeaa7130fbcc988f0bcba94f1a965a4766f0c6e9635610f17d72c0de6ad1229130710107d9130fa7fcd4a54eb72dc9278028335bf1bf6
+AUX xfig-3.2.5c-XAW3D1_5E_notlocal.patch 1590 SHA256 bb4260c6b08cac2e8a8ec6042054ae026561f1bf5b66ecdaef54b57eb2e7ab25 SHA512 493b34b167ed0807c6f417f6d468d73170d3246576320582e9e9c8a7bbb55a7a14820eb756f7f05a3d53d942b8b4ef63689744d77c4c554d6e35f9e2be64a482 WHIRLPOOL 751fd604219f6508089fa02fe06d592103a84f9564ae9d36c29396c30d3ccc39675b27861268577caebbf370bc4fc72218703005a60694878d593f6932ed2244
+AUX xfig-3.2.5c-crash-on-exit.patch 526 SHA256 1594528e06a2f9f6767ce0e3343800a5fc0191462db8c960c30b96adcedc0e43 SHA512 e3e7baebab9b8efcb621971a873185ccf7202a98ba26ca505aeae1831e0f78ce87fb17f5c62ee646e5b21668922555f47817cf179796a02a53534e4648f0650e WHIRLPOOL 9190790b6955c23aa7df9a528024bf4a4e5cda055f7986c2c9adce0915bff10ce8325006d373716733293f956f54e375ff291a1ad673cf097d0715601f9f8b66
+AUX xfig-3.2.5c-darwin.patch 812 SHA256 cca6ae8af34c16d608038918d385197cd346576c1d88e35c48bba51958c045f2 SHA512 2aa3d845e8fa646cd8a4c0a6892d505c64c6750268b238e7327fb4fd4677401c1dbe976ae4abc5ebb1bb7b8f38e5b8f875b7051dd557eb33ea221489639d40de WHIRLPOOL 80e6fe98a2b3ce9c303ed2fca8fc655c36879a155e58a73da3de6b16dfbb20d937d6134d0eb08aaa5654222e5de09469c57f6eb664de23b6834a896bc07edc86
+AUX xfig-3.2.5c-png16.patch 635 SHA256 0e639c10bf07efd578751859f2be9fc4f0a4c3e47ea56726e59a7535bfb675aa SHA512 fab4b4ae381500221f2f1f4cf9eb486eb94f3d9bc8ff93b9bca8758430233b2031ed8917cfe67ead1f741612935640f31135c38ea7b19e3b215fd2bf4fa50892 WHIRLPOOL cf4e5fd87738c14d636ec69561646660790e7b753f8d3ed4f0729d185800c36130e94ede9e9b2ed9c75e41d30924182b931ea286f26b8e48b75c0594aebdf0bb
+AUX xfig-3.2.5c-spelling.patch 545 SHA256 9b145ae39611a221f2bb005adde99b0df7f30acdf5ed689adea9ee4ce77cfc84 SHA512 3e33470459b249acd65dec1f467e2527f05a625d5ec8d539d943144aedf784d231ed8750441b073e752dfaedda2aedb60bc64cb97b8ddafff72fca0f3f0325ab WHIRLPOOL 47abb2f709aa9830b2b3309d4726991202247720007635708a2951789aefe1add855015e92f806e699388684d09595c62959e54fc693bc21de0a3c1387d27102
+AUX xfig-3.2.6a-app-defaults.patch 502 SHA256 013079d058b8418f18fbdcab5d148a80f807631fe49915499736182d3911a971 SHA512 4c5b523f17cacc85839eeb287a82192c9c3d8c704cca34c8de87d38aa05fb502afdadb9169a396573fb977e650ca7a1fabbdab067fb128be024dea724cb791be WHIRLPOOL 6f794a7c70cc03c3a53b31aea8ab686fde4051a72c5b58f9e51297ca4ec5069566ba0b637b87b0714cfc2af8d792e76dc88eff843cc54a105e3eb497e65b2986
+AUX xfig-3.2.6a-solaris.patch 523 SHA256 22ee2d208466777a5a5b1946e2a6e42c041c2b8fdfb2a7af12be03036dae84bf SHA512 b2eb546b8fdd0d18bab3d9a2c183149fdb4fb278d5e2d8234f040c4fef727bec7461f861391027dea32028b822aa2e540824cb18af09769f32c7a1fb7bf48319 WHIRLPOOL e78062465c39c96aca3c8430b860c29af809bc6b422055b6236e9bf374a9371a89347ae3903070988b444e0d43bb005a19dc47f141ce2251720e97c141d6b018
+AUX xfig-3.2.6a-urwfonts.patch 4933 SHA256 1048fd2fc170e1ce7fd4743577b0d463c717c7cbc4f26a8687e0dce9a2c917f6 SHA512 29fea111b6c07f6ea28bc46259c0dc8d20b1bbf86e33d550037744b93d4f4de7ec9c4ea7fa14c5f91a4278848216d183ac841970c798140359e1fc317baac468 WHIRLPOOL 5310954b9add656a4eb27bfd7650ca93687980f60b22f48dcd9cb61e35571e1119f77bb3f69ae8057b85da473f81bb010ee781a3491277d3c20cd408d6570c45
+DIST xfig-full-3.2.6a.tar.xz 5502944 SHA256 51fa4f5006ebea0657a3b92c62dfbc0116ca63f581370f102af5970de45abd67 SHA512 82e292e050213b6d22be5e174224308b446505e25208f29d4f4c5e760a87ff4104b9dcea0a332241c9bca358e1d44336bb38c316eb3f28130d7c8828c10a805f WHIRLPOOL 56d94e6b3bbd6b419f9c0d10ee548ec52fe79bb70e14bca8b88e047090d33e06b63deab9d0bd87b3280883c04c0af5043bc143f738af9765e6d133adf64a5ff5
+DIST xfig.3.2.5c.full.tar.gz 6078933 SHA256 ea628f975b79ab175ab29220cc118274466497f6217f2989928317be2993a1f9 SHA512 763bd6fd43bff9b44f934dd6e16b0aa5142041f895e74564d28e7252e012f1c7728bbee40e3970357c7d3fd15aa109dbfcbc1d0a2203fa1a2ed770aabacd9525 WHIRLPOOL f2234fc9c1f011bdec301b447816f7bfd090bc2ca3471823afd0617ae15ceafb195dd81ddbb0b255f23e0256b35e12cdd30f44fb65d3fff23f444e4d26028726
+EBUILD xfig-3.2.5c-r1.ebuild 3203 SHA256 1343a0a73069534064c7139395e0568582348cd44fcb4c806a03f81ad0d5b3cc SHA512 45971e1e43c8f54d0c1a4a57596edae08e52239dd06dd066ff6186c6da759a823b78becd86d3249e17b98f1ef0aafe8aec552669120ebae634391a8d5d3d7b35 WHIRLPOOL 18194e74071058f597bc78ff0d91be6149df252122dc6a6aad043ec2205b81403b114f7e58550bd96f95d18446625f0b81eed032c5199970ce46464d89131e9b
+EBUILD xfig-3.2.5c.ebuild 3303 SHA256 e686fd8d619d4a6559aa321a8e7e0539437254d08ba8be3f5783ec0151fd095b SHA512 538cee1a1626c417a967f4c4810a0b8924169f61c153b67e8479243dab39041d05cda40e98e5bbc8c2fe5e571fb85acbe0425072c56906d08c53e4bce8be8c1b WHIRLPOOL 968d375d41b0745a148030f6ee74077b381a23e8b995f7f17f164ac0323344eeab513a6c63109616750ccf3abc2eca6dabc224ea45191db595883855ea346b53
+EBUILD xfig-3.2.6a.ebuild 1211 SHA256 00c787bd497ed85e87e3e0b5da35b8f036329bb4660cf07b65220a8032d653e5 SHA512 262069c86ed2cecf02e6f49720683a1811133a00ad0b1e7d3b22764bcea9e0f02087dce3675368d78ca336cd235e54fea9ed7b78e4207f60029000adb313b383 WHIRLPOOL 619b32833aa7f8725a90b8ab117be723e693def237da4046a1b198bd21e4ffc4269cd1d01b83db7dd412b690f0074b89b0245ad9fd5e6af9c1f454f22b27cc84
+MISC ChangeLog 3043 SHA256 41c7be17aa896b2e29f3aefb1527ea93cd4bbb13a90a422aa3c031e783943259 SHA512 5d9307a0ca663d7ac3855762d89f7e2c08c579f8e68bb6aa67468c6db548d5cf52085d1dac3dfe3c854d44fe854e7c053f484ab991c403ee83bc789a799f05af WHIRLPOOL 9124c62e7a271e5089eaa69d347f5a9e8410057339a7f9d31dd0822b5e6cce0717b7aa3b52660c85d772d9822669cd22ff5be0e1b83cd45ecd70a701ee0e2d60
+MISC ChangeLog-2015 14381 SHA256 0d3dd58a20fc1a029ba9dc4591fb7898814ebaefe55c55967e2f3a2fe6fb44b8 SHA512 3563a80240b8461d3a54a5382af46952ccd232dc2a9b1d2c301fbe484e10c6a1b3f8fc017651749b199a399d7812823f3c44390bca5cf4ec64421c6d961cc39c WHIRLPOOL e7ac55f1b255d64f29e5963f34d2624d86530e8e3530ea649c1ffdd14c9810abca89c6b87159a73b36d6a08ef186e9235e89be6963138cae40415f1525808531
+MISC metadata.xml 212 SHA256 00d100e8d1bbfee4c0e3dcd7695c183150d06133fddd672e246c21bc02c4c8d7 SHA512 05c3af7b4c872998a64d3d6dce356ad1bfeb67f4ec845e82e022a89c96945ba5fe8848df48b8736feb39bd4d9a7d6714f0895a9c824e3c67d903ea3da1ca0f22 WHIRLPOOL 1fd2058c94f0e8891205ed1e106759e99c8bd0f765618fc2fc801e566241b062a1219f5044b8b7ed1299b28a189846c2d125ea86b71f72e9fa403ad3f0dea4b3
diff --git a/media-gfx/xfig/files/xfig-3.2.5b-app-defaults.patch b/media-gfx/xfig/files/xfig-3.2.5b-app-defaults.patch
new file mode 100644
index 000000000000..560ddef94ebb
--- /dev/null
+++ b/media-gfx/xfig/files/xfig-3.2.5b-app-defaults.patch
@@ -0,0 +1,24 @@
+Defaults for xfig. Idea from Roland Rosenfeld <roland@debian.org>
+
+diff -urNad xfig~/Fig.ad xfig/Fig.ad
+--- a/Fig.ad
++++ b/Fig.ad
+@@ -10,13 +10,17 @@
+
+ ! some sample settings you may want to change
+
++! If the following resource is set to false, xfig will use metric units
++! by default.
++Fig.inches: false
++
+ ! The following fixes a problem that some window managers have
+ ! with xfig continually resizing itself
+
+ Fig*AllowShellResize: false
+
+ ! Image editor - can edit imported image
+-Fig.image_editor: xv
++Fig.image_editor: gimp
+
+ ! name of ghostscript (not ghostview)
+ Fig.ghostscript: gs
diff --git a/media-gfx/xfig/files/xfig-3.2.5b-mkstemp.patch b/media-gfx/xfig/files/xfig-3.2.5b-mkstemp.patch
new file mode 100644
index 000000000000..931ac94e58a4
--- /dev/null
+++ b/media-gfx/xfig/files/xfig-3.2.5b-mkstemp.patch
@@ -0,0 +1,32 @@
+Missed hunk noticed https://bugzilla.redhat.com/show_bug.cgi?id=505257#c1 is recreated.
+
+http://bugs.gentoo.org/show_bug.cgi?id=264575
+
+=== modified file 'u_print.c'
+--- a/u_print.c 2010-01-14 19:50:08 +0000
++++ b/u_print.c 2010-01-14 19:54:14 +0000
+@@ -202,14 +202,22 @@
+ char tmp_fig_file[PATH_MAX];
+ char *outfile, *name, *real_lang;
+ char *suf;
++ int fd;
+
+ /* if file exists, ask if ok */
+ if (!ok_to_write(file, "EXPORT"))
+ return (1);
+
+- sprintf(tmp_fig_file, "%s/%s%06d", TMPDIR, "xfig-fig", getpid());
++ snprintf(tmp_fig_file, sizeof(tmp_fig_file), "%s/xfig-fig.XXXXXX", TMPDIR);
+ /* write the fig objects to a temporary file */
+ warnexist = False;
++
++ if ((fd = mkstemp(tmp_fig_file)) == -1) {
++ file_msg("Can't open temp file %s: %s\n", tmp_fig_file, strerror(errno));
++ return;
++ }
++ close(fd);
++
+ init_write_tmpfile();
+ if (write_file(tmp_fig_file, False)) {
+ end_write_tmpfile();
+
diff --git a/media-gfx/xfig/files/xfig-3.2.5b-network_images.patch b/media-gfx/xfig/files/xfig-3.2.5b-network_images.patch
new file mode 100644
index 000000000000..1f7be5ff99a9
--- /dev/null
+++ b/media-gfx/xfig/files/xfig-3.2.5b-network_images.patch
@@ -0,0 +1,371 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 12_network_images.dpatch by Roland Rosenfeld <roland@debian.org>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Some network icons colored and/or combined by Roland Rosenfeld.
+
+@DPATCH@
+diff -urNad xfig~/Libraries/Networks/Devices/firewall-pair.fig xfig/Libraries/Networks/Devices/firewall-pair.fig
+--- Libraries/Networks/Devices/firewall-pair.fig
++++ Libraries/Networks/Devices/firewall-pair.fig
+@@ -0,0 +1,75 @@
++#FIG 3.2 Produced by xfig version 3.2.5-alpha5
++Portrait
++Center
++Inches
++A4
++100.00
++Single
++-2
++# A pair of firewalls
++# Combined by Roland Rosenfeld
++1200 2
++0 32 #aeaaae
++# A pair of firewalls
++6 3375 2175 4050 3075
++6 3600 2250 4050 3075
++# Firewall
++# (from TomiOllila <Tomi.Ollila@tfi.net> )
++6 3600 2250 4050 3075
++2 1 0 1 0 7 0 0 -1 0.000 0 0 -1 0 0 2
++ 3825 3075 3825 2475
++2 1 0 1 0 20 2 0 20 0.000 0 0 -1 0 0 5
++ 3675 2475 3675 3075 3825 3075 3975 2925 3975 2400
++2 1 0 1 0 32 1 0 20 0.000 0 0 -1 0 0 7
++ 3600 2400 3600 2475 3900 2475 4050 2325 4050 2250 3750 2250
++ 3600 2400
++2 1 0 1 0 7 0 0 -1 0.000 0 0 -1 0 0 3
++ 3900 2475 3900 2400 3600 2400
++2 1 0 1 0 7 0 0 -1 0.000 0 0 -1 0 0 2
++ 3900 2400 4050 2250
++2 1 0 1 0 7 0 0 -1 0.000 0 0 -1 0 0 3
++ 3675 2625 3825 2625 3975 2475
++2 1 0 1 0 7 0 0 -1 0.000 0 0 -1 0 0 3
++ 3675 2775 3825 2775 3975 2625
++2 1 0 1 0 7 0 0 -1 0.000 0 0 -1 0 0 3
++ 3675 2925 3825 2925 3975 2775
++2 1 0 1 0 7 0 0 -1 0.000 0 0 -1 0 0 2
++ 3900 3000 3900 2850
++2 1 0 1 0 7 0 0 -1 0.000 0 0 -1 0 0 2
++ 3900 2700 3900 2550
++2 1 0 1 0 7 0 0 -1 0.000 0 0 -1 0 0 2
++ 3750 2475 3750 2625
++2 1 0 1 0 7 0 0 -1 0.000 0 0 -1 0 0 2
++ 3750 2775 3750 2925
++-6
++-6
++6 3375 2175 3825 3000
++6 3450 2175 3825 3000
++2 1 0 1 0 7 20 0 -1 0.000 0 0 7 0 0 2
++ 3600 3000 3600 2400
++2 1 0 1 0 7 20 0 -1 0.000 0 0 7 0 0 2
++ 3675 2325 3825 2175
++2 1 0 1 0 7 20 0 -1 0.000 0 0 7 0 0 3
++ 3450 2550 3600 2550 3750 2400
++2 1 0 1 0 7 20 0 -1 0.000 0 0 7 0 0 3
++ 3450 2700 3600 2700 3750 2550
++2 1 0 1 0 7 20 0 -1 0.000 0 0 7 0 0 3
++ 3450 2850 3600 2850 3750 2700
++2 1 0 1 0 7 20 0 -1 0.000 0 0 7 0 0 2
++ 3675 2925 3675 2775
++2 1 0 1 0 7 20 0 -1 0.000 0 0 7 0 0 2
++ 3675 2625 3675 2475
++2 1 0 1 0 7 20 0 -1 0.000 0 0 7 0 0 2
++ 3525 2400 3525 2550
++2 1 0 1 0 7 20 0 -1 0.000 0 0 7 0 0 2
++ 3525 2700 3525 2850
++-6
++2 1 0 1 0 20 22 0 20 0.000 0 0 -1 0 0 5
++ 3450 2400 3450 3000 3600 3000 3750 2850 3750 2325
++2 1 0 1 0 32 21 0 20 0.000 0 0 -1 0 0 7
++ 3375 2325 3375 2400 3675 2400 3825 2250 3825 2175 3525 2175
++ 3375 2325
++2 1 0 1 0 7 20 0 -1 0.000 0 0 -1 0 0 3
++ 3675 2400 3675 2325 3375 2325
++-6
++-6
+diff -urNad xfig~/Libraries/Networks/Devices/internet.fig xfig/Libraries/Networks/Devices/internet.fig
+--- Libraries/Networks/Devices/internet.fig
++++ Libraries/Networks/Devices/internet.fig
+@@ -0,0 +1,39 @@
++#FIG 3.2 Produced by xfig version 3.2.5-alpha5
++Portrait
++Center
++Inches
++A4
++100.00
++Single
++-2
++# Internet cloud
++# By Roland Rosenfeld
++1200 2
++# An Internet cloud
++6 4275 5700 7200 7650
++2 1 0 0 7 7 970 0 20 4.000 0 0 0 0 0 65
++ 4719 7111 4633 7121 4548 7105 4469 7057 4394 6983 4346 6888
++ 4309 6776 4298 6654 4309 6526 4346 6415 4394 6325 4469 6244
++ 4548 6197 4633 6181 4719 6197 4798 6048 4893 5915 4994 5825
++ 5122 5746 5244 5719 5377 5719 5505 5746 5627 5825 5733 5915
++ 5850 5825 5961 5746 6094 5719 6222 5719 6355 5746 6472 5825
++ 6583 5915 6668 6048 6748 6197 6833 6181 6918 6197 7003 6244
++ 7072 6325 7130 6415 7157 6526 7168 6654 7157 6776 7130 6888
++ 7072 6983 7003 7057 6918 7105 6833 7121 6748 7111 6668 7265
++ 6583 7387 6472 7488 6355 7557 6222 7594 6094 7594 5961 7557
++ 5850 7488 5733 7387 5627 7488 5505 7557 5377 7594 5244 7594
++ 5122 7557 4994 7488 4893 7387 4798 7265 4719 7111
++2 1 0 2 1 0 969 0 -1 0.000 0 0 0 0 0 65
++ 4719 7111 4633 7121 4548 7105 4469 7057 4394 6983 4346 6888
++ 4309 6776 4298 6654 4309 6526 4346 6415 4394 6325 4469 6244
++ 4548 6197 4633 6181 4719 6197 4798 6048 4893 5915 4994 5825
++ 5122 5746 5244 5719 5377 5719 5505 5746 5627 5825 5733 5915
++ 5850 5825 5961 5746 6094 5719 6222 5719 6355 5746 6472 5825
++ 6583 5915 6668 6048 6748 6197 6833 6181 6918 6197 7003 6244
++ 7072 6325 7130 6415 7157 6526 7168 6654 7157 6776 7130 6888
++ 7072 6983 7003 7057 6918 7105 6833 7121 6748 7111 6668 7265
++ 6583 7387 6472 7488 6355 7557 6222 7594 6094 7594 5961 7557
++ 5850 7488 5733 7387 5627 7488 5505 7557 5377 7594 5244 7594
++ 5122 7557 4994 7488 4893 7387 4798 7265 4719 7111
++4 0 0 100 0 18 33 0.0000 4 405 2040 4744 6853 Internet\001
++-6
+diff -urNad xfig~/Libraries/Networks/Routers/router-pair.fig xfig/Libraries/Networks/Routers/router-pair.fig
+--- Libraries/Networks/Routers/router-pair.fig
++++ Libraries/Networks/Routers/router-pair.fig
+@@ -0,0 +1,78 @@
++#FIG 3.2 Produced by xfig version 3.2.5-alpha5
++Portrait
++Center
++Inches
++A4
++100.00
++Single
++-2
++# A pair of routers
++# Colored and combined by Roland Rosenfeld
++1200 2
++# A pair of routers
++6 3150 3300 4275 3975
++6 3346 3450 4269 3975
++6 3844 3615 4173 3718
++# polyline
++2 1 0 1 0 7 50 0 20 0.000 0 0 0 0 0 8
++ 3879 3701 3854 3647 3976 3624 3955 3642 4159 3676 4111 3713
++ 3908 3676 3879 3701
++-6
++6 3617 3636 3803 3759
++# polyline
++2 1 0 1 0 7 50 0 20 0.000 0 0 0 0 0 8
++ 3764 3731 3638 3754 3634 3694 3671 3703 3738 3646 3800 3657
++ 3727 3719 3764 3731
++-6
++6 3803 3470 3988 3594
++# polyline
++2 1 0 1 0 7 50 0 20 0.000 0 0 7 0 0 8
++ 3837 3518 3982 3481 3983 3541 3947 3535 3876 3591 3809 3581
++ 3882 3526 3837 3518
++-6
++1 2 0 1 0 15 51 0 20 0.000 1 0.0000 3807 3619 457 169 3349 3619 4264 3619
++1 2 0 1 0 15 53 0 20 0.000 1 0.0000 3803 3806 457 169 3346 3806 4261 3806
++# polyline
++2 1 0 1 0 7 50 0 20 0.000 0 0 0 0 0 8
++ 3705 3557 3738 3608 3609 3637 3638 3615 3439 3581 3488 3545
++ 3681 3576 3705 3557
++2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 0 2
++ 3350 3613 3347 3812
++2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 0 2
++ 4263 3626 4263 3815
++2 2 0 0 0 15 52 -1 20 0.000 0 0 -1 0 0 5
++ 3349 3626 4269 3626 4269 3800 3349 3800 3349 3626
++-6
++6 3150 3300 4125 3825
++6 3600 3450 3975 3600
++# polyline
++2 1 0 1 0 7 60 0 20 0.000 0 0 0 0 0 8
++ 3683 3551 3658 3497 3780 3474 3759 3492 3963 3526 3915 3563
++ 3712 3526 3683 3551
++-6
++6 3600 3300 3825 3450
++# polyline
++2 1 0 1 0 7 60 0 20 0.000 0 0 7 0 0 8
++ 3641 3368 3786 3331 3787 3391 3751 3385 3680 3441 3613 3431
++ 3686 3376 3641 3368
++-6
++6 3375 3450 3675 3675
++# polyline
++2 1 0 1 0 7 60 0 20 0.000 0 0 0 0 0 8
++ 3568 3581 3442 3604 3438 3544 3475 3553 3542 3496 3604 3507
++ 3531 3569 3568 3581
++-6
++1 2 0 1 0 15 61 0 20 0.000 1 0.0000 3611 3469 457 169 3153 3469 4068 3469
++1 2 0 1 0 15 63 0 20 0.000 1 0.0000 3607 3656 457 169 3150 3656 4065 3656
++2 1 0 1 0 7 60 -1 -1 0.000 0 0 -1 0 0 2
++ 4067 3476 4067 3665
++# polyline
++2 1 0 1 0 7 60 0 20 0.000 0 0 0 0 0 8
++ 3509 3407 3542 3458 3413 3487 3442 3465 3243 3431 3292 3395
++ 3485 3426 3509 3407
++2 1 0 1 0 7 60 -1 -1 0.000 0 0 -1 0 0 2
++ 3154 3463 3151 3662
++2 2 0 0 0 15 62 -1 20 0.000 0 0 -1 0 0 5
++ 3153 3476 4073 3476 4073 3650 3153 3650 3153 3476
++-6
++-6
+diff -urNad xfig~/Libraries/Networks/Routers/router4.fig xfig/Libraries/Networks/Routers/router4.fig
+--- Libraries/Networks/Routers/router4.fig
++++ Libraries/Networks/Routers/router4.fig
+@@ -0,0 +1,44 @@
++#FIG 3.2 Produced by xfig version 3.2.5-alpha5
++Portrait
++Center
++Metric
++A4
++100.00
++Single
++-2
++# Router
++# Colored by Roland Rosenfeld
++1200 2
++# Router
++6 3870 4455 5940 5625
++6 4995 4815 5715 5040
++# polyline
++2 1 0 1 0 7 50 0 20 0.000 0 0 0 0 0 8
++ 5072 5002 5018 4886 5284 4834 5238 4873 5683 4948 5578 5030
++ 5136 4948 5072 5002
++-6
++6 4500 4860 4905 5130
++# polyline
++2 1 0 1 0 7 50 0 20 0.000 0 0 0 0 0 8
++ 4822 5067 4545 5117 4537 4989 4618 5007 4766 4883 4900 4905
++ 4741 5041 4822 5067
++-6
++6 4905 4500 5310 4770
++# polyline
++2 1 0 1 0 7 50 0 20 0.000 0 0 7 0 0 8
++ 4981 4603 5296 4523 5300 4653 5222 4640 5066 4762 4919 4741
++ 5079 4622 4981 4603
++-6
++1 2 0 1 0 15 51 0 20 0.000 1 0.0000 4914 4824 999 369 3915 4824 5913 4824
++1 2 0 1 0 15 53 0 20 0.000 1 0.0000 4908 5231 999 369 3909 5231 5907 5231
++# polyline
++2 1 0 1 0 7 50 0 20 0.000 0 0 0 0 0 8
++ 4693 4690 4766 4800 4483 4863 4545 4814 4111 4740 4219 4661
++ 4640 4731 4693 4690
++2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 0 2
++ 3917 4811 3910 5244
++2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 0 2
++ 5910 4838 5910 5251
++2 2 0 0 0 15 52 -1 20 0.000 0 0 -1 0 0 5
++ 3915 4838 5924 4838 5924 5218 3915 5218 3915 4838
++-6
+diff -urNad xfig~/Libraries/Networks/Switches/switch-pair.fig xfig/Libraries/Networks/Switches/switch-pair.fig
+--- Libraries/Networks/Switches/switch-pair.fig
++++ Libraries/Networks/Switches/switch-pair.fig
+@@ -0,0 +1,66 @@
++#FIG 3.2 Produced by xfig version 3.2.5-alpha5
++Portrait
++Center
++Inches
++A4
++100.00
++Single
++-2
++# A pair of switches
++# Colored and combined by Roland Rosenfeld
++1200 2
++# A pair of switches
++6 2550 2625 4725 3750
++6 2625 2850 4725 3750
++6 3000 2850 4425 3300
++# polyline
++2 1 0 1 0 7 50 0 20 0.000 0 0 0 0 0 8
++ 3603 3180 3581 3210 3194 3210 3161 3240 3028 3195 3268 3126
++ 3214 3184 3608 3184
++# polyline
++2 1 0 1 0 7 50 0 20 0.000 0 0 0 0 0 8
++ 3651 3128 3673 3098 4060 3098 4093 3068 4226 3113 3986 3182
++ 4040 3124 3646 3124
++# polyline
++2 1 0 1 0 7 50 0 20 0.000 0 0 0 0 0 8
++ 3760 3008 3738 3038 3351 3038 3318 3068 3185 3023 3425 2954
++ 3371 3012 3765 3012
++# polyline
++2 1 0 1 0 7 50 0 20 0.000 0 0 0 0 0 8
++ 3827 2963 3849 2933 4236 2933 4269 2903 4402 2948 4162 3017
++ 4216 2959 3822 2959
++-6
++2 1 0 1 0 15 51 0 20 0.000 0 0 -1 0 0 4
++ 4125 3300 4725 2850 4725 3300 4125 3750
++2 2 0 1 0 15 51 0 20 0.000 0 0 -1 0 0 5
++ 2625 3300 4125 3300 4125 3750 2625 3750 2625 3300
++2 3 0 1 0 15 51 -1 20 0.000 0 0 -1 0 0 5
++ 2625 3300 3225 2850 4725 2850 4125 3300 2625 3300
++-6
++6 2550 2625 4650 3525
++6 2925 2625 4350 3075
++# polyline
++2 1 0 1 0 7 61 0 20 0.000 0 0 0 0 0 8
++ 3528 2955 3506 2985 3119 2985 3086 3015 2953 2970 3193 2901
++ 3139 2959 3533 2959
++# polyline
++2 1 0 1 0 7 61 0 20 0.000 0 0 0 0 0 8
++ 3576 2903 3598 2873 3985 2873 4018 2843 4151 2888 3911 2957
++ 3965 2899 3571 2899
++# polyline
++2 1 0 1 0 7 61 0 20 0.000 0 0 0 0 0 8
++ 3685 2783 3663 2813 3276 2813 3243 2843 3110 2798 3350 2729
++ 3296 2787 3690 2787
++# polyline
++2 1 0 1 0 7 61 0 20 0.000 0 0 0 0 0 8
++ 3752 2738 3774 2708 4161 2708 4194 2678 4327 2723 4087 2792
++ 4141 2734 3747 2734
++-6
++2 1 0 1 0 15 62 0 20 0.000 0 0 -1 0 0 4
++ 4050 3075 4650 2625 4650 3075 4050 3525
++2 2 0 1 0 15 62 0 20 0.000 0 0 -1 0 0 5
++ 2550 3075 4050 3075 4050 3525 2550 3525 2550 3075
++2 3 0 1 0 15 62 -1 20 0.000 0 0 -1 0 0 5
++ 2550 3075 3150 2625 4650 2625 4050 3075 2550 3075
++-6
++-6
+diff -urNad xfig~/Libraries/Networks/Switches/switch2.fig xfig/Libraries/Networks/Switches/switch2.fig
+--- Libraries/Networks/Switches/switch2.fig
++++ Libraries/Networks/Switches/switch2.fig
+@@ -0,0 +1,38 @@
++#FIG 3.2 Produced by xfig version 3.2.5-alpha5
++Portrait
++Center
++Inches
++A4
++100.00
++Single
++-2
++# Switch
++# colored by Roland Rosenfeld
++1200 2
++# Switch
++6 2625 2850 4725 3750
++6 3000 2850 4425 3300
++# polyline
++2 1 0 1 0 7 50 0 20 0.000 0 0 0 0 0 8
++ 3603 3180 3581 3210 3194 3210 3161 3240 3028 3195 3268 3126
++ 3214 3184 3608 3184
++# polyline
++2 1 0 1 0 7 50 0 20 0.000 0 0 0 0 0 8
++ 3651 3128 3673 3098 4060 3098 4093 3068 4226 3113 3986 3182
++ 4040 3124 3646 3124
++# polyline
++2 1 0 1 0 7 50 0 20 0.000 0 0 0 0 0 8
++ 3760 3008 3738 3038 3351 3038 3318 3068 3185 3023 3425 2954
++ 3371 3012 3765 3012
++# polyline
++2 1 0 1 0 7 50 0 20 0.000 0 0 0 0 0 8
++ 3827 2963 3849 2933 4236 2933 4269 2903 4402 2948 4162 3017
++ 4216 2959 3822 2959
++-6
++2 1 0 1 0 15 51 0 20 0.000 0 0 -1 0 0 4
++ 4125 3300 4725 2850 4725 3300 4125 3750
++2 2 0 1 0 15 51 0 20 0.000 0 0 -1 0 0 5
++ 2625 3300 4125 3300 4125 3750 2625 3750 2625 3300
++2 3 0 1 0 15 51 -1 20 0.000 0 0 -1 0 0 5
++ 2625 3300 3225 2850 4725 2850 4125 3300 2625 3300
++-6
diff --git a/media-gfx/xfig/files/xfig-3.2.5b-papersize_b1.patch b/media-gfx/xfig/files/xfig-3.2.5b-papersize_b1.patch
new file mode 100644
index 000000000000..fa0bdf0a3c0e
--- /dev/null
+++ b/media-gfx/xfig/files/xfig-3.2.5b-papersize_b1.patch
@@ -0,0 +1,27 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 32_papersize_b1.dpatch by Roland Rosenfeld <roland@debian.org>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: xfig -papersize b1 now really uses B1 instead of B10
+## DP: Closes: #535181
+
+@DPATCH@
+diff -urNad xfig~/resources.c xfig/resources.c
+--- xfig~/resources.c
++++ xfig/resources.c
+@@ -228,7 +228,6 @@
+ {"A2 ", "ISO A2 ( 420mm x 594mm)", 19843, 28063},
+ {"A1 ", "ISO A1 ( 594mm x 841mm)", 28063, 39732},
+ {"A0 ", "ISO A0 ( 841mm x 1189mm)", 39732, 56173},
+- {"B10 ", "JIS B10 ( 32mm x 45mm)", 1516, 2117},
+ {"B9 ", "JIS B9 ( 45mm x 64mm)", 2117, 3017},
+ {"B8 ", "JIS B8 ( 64mm x 91mm)", 3017, 4300},
+ {"B7 ", "JIS B7 ( 91mm x 128mm)", 4300, 6050},
+@@ -239,6 +238,7 @@
+ {"B2 ", "JIS B2 ( 515mm x 728mm)", 24333, 34400},
+ {"B1 ", "JIS B1 ( 728mm x 1030mm)", 34400, 48666},
+ {"B0 ", "JIS B0 (1030mm x 1456mm)", 48666, 68783},
++ {"B10 ", "JIS B10 ( 32mm x 45mm)", 1516, 2117},
+ };
+
+ char *multiple_pages[] = {
diff --git a/media-gfx/xfig/files/xfig-3.2.5b-pdfimport_mediabox.patch b/media-gfx/xfig/files/xfig-3.2.5b-pdfimport_mediabox.patch
new file mode 100644
index 000000000000..23de740f157d
--- /dev/null
+++ b/media-gfx/xfig/files/xfig-3.2.5b-pdfimport_mediabox.patch
@@ -0,0 +1,37 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 33_pdfimport_mediabox.dpatch by jsoula@univ-lille2.fr
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Fix reading "/MediaBox" when importing PDF (Closes: #530898).
+
+@DPATCH@
+diff -urNad xfig~/f_readeps.c xfig/f_readeps.c
+--- xfig~/f_readeps.c
++++ xfig/f_readeps.c
+@@ -77,11 +77,13 @@
+
+ /* look for /MediaBox for pdf file */
+ if (pdf_flag) {
+- if (!strncmp(buf, "/MediaBox", 8)) { /* look for the MediaBox spec */
++ char *s;
++ for(s=buf; (s=strchr(s,'/')); s++) {
++ if (!strncmp(s, "/MediaBox", 8)) { /* look for the MediaBox spec */
+ char *c;
+
+- c = strchr(buf, '[') + 1;
+- if (c && sscanf(c, "%d %d %d %d", &llx, &lly, &urx, &ury) < 4) {
++ c = strchr(s, '[');
++ if (c && sscanf(c+1, "%d %d %d %d", &llx, &lly, &urx, &ury) < 4) {
+ llx = lly = 0;
+ urx = paper_sizes[0].width * 72 / PIX_PER_INCH;
+ ury = paper_sizes[0].height * 72 / PIX_PER_INCH;
+@@ -89,7 +91,9 @@
+ appres.INCHES ? "Letter" : "A4");
+ app_flush();
+ }
++ break;
+ }
++ }
+ /* look for bounding box */
+ } else if (!nested && !strncmp(buf, "%%BoundingBox:", 14)) {
+ if (!strstr(buf, "(atend)")) { /* make sure doesn't say (atend) */
diff --git a/media-gfx/xfig/files/xfig-3.2.5b-solaris.patch b/media-gfx/xfig/files/xfig-3.2.5b-solaris.patch
new file mode 100644
index 000000000000..2e93a7faac26
--- /dev/null
+++ b/media-gfx/xfig/files/xfig-3.2.5b-solaris.patch
@@ -0,0 +1,26 @@
+* workaround some missing things on Solaris
+
+--- a/u_quartic.c
++++ b/u_quartic.c
+@@ -21,4 +21,7 @@
+ #include <math.h>
+
++ #ifndef M_PI
++ # define M_PI 3.14159265358979323846
++ #endif
+
+ static int
+--- a/w_intersect.c
++++ b/w_intersect.c
+@@ -31,6 +31,11 @@
+ #define ISET_P1 (1 << 0)
+ #define ISET_P2 (1 << 1)
+
++#if defined (__SVR4) && defined (__sun)
++#undef _Complex_I
++#define _Complex_I (__extension__ 1.0fi)
++#endif
++
+ intersect_state_e intersect_state = INTERSECT_INITIAL;
+
+ static INLINE Boolean
diff --git a/media-gfx/xfig/files/xfig-3.2.5b-urwfonts.patch b/media-gfx/xfig/files/xfig-3.2.5b-urwfonts.patch
new file mode 100644
index 000000000000..87ac63f838f8
--- /dev/null
+++ b/media-gfx/xfig/files/xfig-3.2.5b-urwfonts.patch
@@ -0,0 +1,79 @@
+--- a/u_fonts.c 2002-09-09 13:36:58.000000000 -0400
++++ b/u_fonts.c 2006-10-11 00:29:07.000000000 -0400
+@@ -22,41 +22,41 @@
+ /* X11 font names */
+
+ struct _xfstruct x_fontinfo[NUM_FONTS] = {
+- {"-*-times-medium-r-normal--", (struct xfont*) NULL},
+- {"-*-times-medium-i-normal--", (struct xfont*) NULL},
+- {"-*-times-bold-r-normal--", (struct xfont*) NULL},
+- {"-*-times-bold-i-normal--", (struct xfont*) NULL},
+- {"-*-avantgarde-book-r-normal--", (struct xfont*) NULL},
+- {"-*-avantgarde-book-o-normal--", (struct xfont*) NULL},
+- {"-*-avantgarde-demi-r-normal--", (struct xfont*) NULL},
+- {"-*-avantgarde-demi-o-normal--", (struct xfont*) NULL},
+- {"-*-bookman-light-r-normal--", (struct xfont*) NULL},
+- {"-*-bookman-light-i-normal--", (struct xfont*) NULL},
+- {"-*-bookman-demi-r-normal--", (struct xfont*) NULL},
+- {"-*-bookman-demi-i-normal--", (struct xfont*) NULL},
+- {"-*-courier-medium-r-normal--", (struct xfont*) NULL},
+- {"-*-courier-medium-o-normal--", (struct xfont*) NULL},
+- {"-*-courier-bold-r-normal--", (struct xfont*) NULL},
+- {"-*-courier-bold-o-normal--", (struct xfont*) NULL},
+- {"-*-helvetica-medium-r-normal--", (struct xfont*) NULL},
+- {"-*-helvetica-medium-o-normal--", (struct xfont*) NULL},
+- {"-*-helvetica-bold-r-normal--", (struct xfont*) NULL},
+- {"-*-helvetica-bold-o-normal--", (struct xfont*) NULL},
+- {"-*-helvetica-medium-r-narrow--", (struct xfont*) NULL},
+- {"-*-helvetica-medium-o-narrow--", (struct xfont*) NULL},
+- {"-*-helvetica-bold-r-narrow--", (struct xfont*) NULL},
+- {"-*-helvetica-bold-o-narrow--", (struct xfont*) NULL},
+- {"-*-new century schoolbook-medium-r-normal--", (struct xfont*) NULL},
+- {"-*-new century schoolbook-medium-i-normal--", (struct xfont*) NULL},
+- {"-*-new century schoolbook-bold-r-normal--", (struct xfont*) NULL},
+- {"-*-new century schoolbook-bold-i-normal--", (struct xfont*) NULL},
+- {"-*-palatino-medium-r-normal--", (struct xfont*) NULL},
+- {"-*-palatino-medium-i-normal--", (struct xfont*) NULL},
+- {"-*-palatino-bold-r-normal--", (struct xfont*) NULL},
+- {"-*-palatino-bold-i-normal--", (struct xfont*) NULL},
+- {"-*-symbol-medium-r-normal--", (struct xfont*) NULL},
+- {"-*-itc zapf chancery-medium-i-normal--", (struct xfont*) NULL},
+- {"-*-itc zapf dingbats-*-*-*--", (struct xfont*) NULL},
++ {"-urw-nimbus roman no9 l-medium-r-normal--", (struct xfont*) NULL},
++ {"-urw-nimbus roman no9 l-medium-i-normal--", (struct xfont*) NULL},
++ {"-urw-nimbus roman no9 l-bold-r-normal--", (struct xfont*) NULL},
++ {"-urw-nimbus roman no9 l-bold-i-normal--", (struct xfont*) NULL},
++ {"-urw-urw gothic l-medium-r-normal--", (struct xfont*) NULL},
++ {"-urw-urw gothic l-medium-o-normal--", (struct xfont*) NULL},
++ {"-urw-urw gothic l-semibold-r-normal--", (struct xfont*) NULL},
++ {"-urw-urw gothic l-semibold-o-normal--", (struct xfont*) NULL},
++ {"-urw-urw bookman l-medium-r-normal--", (struct xfont*) NULL},
++ {"-urw-urw bookman l-medium-i-normal--", (struct xfont*) NULL},
++ {"-urw-urw bookman l-bold-r-normal--", (struct xfont*) NULL},
++ {"-urw-urw bookman l-bold-i-normal--", (struct xfont*) NULL},
++ {"-urw-nimbus mono l-medium-r-normal--", (struct xfont*) NULL},
++ {"-urw-nimbus mono l-medium-o-normal--", (struct xfont*) NULL},
++ {"-urw-nimbus mono l-bold-r-normal--", (struct xfont*) NULL},
++ {"-urw-nimbus mono l-bold-o-normal--", (struct xfont*) NULL},
++ {"-urw-nimbus sans l-medium-r-normal--", (struct xfont*) NULL},
++ {"-urw-nimbus sans l-medium-i-normal--", (struct xfont*) NULL},
++ {"-urw-nimbus sans l-bold-r-normal--", (struct xfont*) NULL},
++ {"-urw-nimbus sans l-bold-i-normal--", (struct xfont*) NULL},
++ {"-urw-nimbus sans l-medium-r-condensed--", (struct xfont*) NULL},
++ {"-urw-nimbus sans l-medium-i-condensed--", (struct xfont*) NULL},
++ {"-urw-nimbus sans l-bold-r-condensed--", (struct xfont*) NULL},
++ {"-urw-nimbus sans l-bold-i-condensed--", (struct xfont*) NULL},
++ {"-urw-century schoolbook l-medium-r-normal--", (struct xfont*) NULL},
++ {"-urw-century schoolbook l-medium-i-normal--", (struct xfont*) NULL},
++ {"-urw-century schoolbook l-bold-r-normal--", (struct xfont*) NULL},
++ {"-urw-century schoolbook l-bold-i-normal--", (struct xfont*) NULL},
++ {"-urw-urw palladio l-medium-r-normal--", (struct xfont*) NULL},
++ {"-urw-urw palladio l-medium-i-normal--", (struct xfont*) NULL},
++ {"-urw-urw palladio l-bold-r-normal--", (struct xfont*) NULL},
++ {"-urw-urw palladio l-bold-i-normal--", (struct xfont*) NULL},
++ {"-urw-standard symbols l-medium-r-normal--", (struct xfont*) NULL},
++ {"-urw-urw chancery l-medium-i-normal--", (struct xfont*) NULL},
++ {"-urw-dingbats-medium-r-normal--", (struct xfont*) NULL},
+ };
+
+ /* Use the following font names for any font that doesn't exist in the table above.
diff --git a/media-gfx/xfig/files/xfig-3.2.5c-XAW3D1_5E_notlocal.patch b/media-gfx/xfig/files/xfig-3.2.5c-XAW3D1_5E_notlocal.patch
new file mode 100644
index 000000000000..8998b406467a
--- /dev/null
+++ b/media-gfx/xfig/files/xfig-3.2.5c-XAW3D1_5E_notlocal.patch
@@ -0,0 +1,70 @@
+From be8cf541743060921f629d5bfe990d985ecf1813 Mon Sep 17 00:00:00 2001
+From: Vladislav Zavjalov <slazav@altlinux.org>
+Origin: http://git.altlinux.org/people/slazav/packages/?p=xfig.git;a=patch;h=be8cf541743060921f629d5bfe990d985ecf1813
+Date: Wed, 29 May 2013 02:18:13 +0400
+Subject: [PATCH] Don't use local SimpleMenu.c with XAW3D1_5E
+Bug-Debian: http://bugs.debian.org/296703
+
+---
+ xfig/SmeCascade.h | 5 +++++
+ xfig/SmeCascadeP.h | 5 +++++
+ xfig/w_menuentry.h | 4 ++++
+ xfig/w_util.c | 2 ++
+ 4 files changed, 16 insertions(+), 0 deletions(-)
+
+--- a/SmeCascade.h
++++ b/SmeCascade.h
+@@ -27,7 +27,12 @@
+ #else
+ #include <X11/Xaw/Sme.h>
+ #endif
++
++#ifdef XAW3D1_5E
++#include <X11/Xaw3d/SmeBSB.h>
++#else
+ #include "SmeBSB.h"
++#endif
+
+ /****************************************************************
+ *
+--- a/SmeCascadeP.h
++++ b/SmeCascadeP.h
+@@ -32,8 +32,12 @@
+ #include <X11/Xaw/SmeP.h>
+ #endif
+
++#ifdef XAW3D1_5E
++#include <X11/Xaw3d/SmeBSBP.h>
++#else
+ #include "SmeBSBP.h"
+ #include "SmeCascade.h"
++#endif
+
+ /************************************************************
+ *
+--- a/w_menuentry.h
++++ b/w_menuentry.h
+@@ -30,7 +30,11 @@
+ #include <X11/Xaw/Sme.h>
+ #endif
+
++#ifdef XAW3D1_5E
++#include <X11/Xaw3d/SmeBSB.h>
++#else
+ #include "SmeBSB.h"
++#endif
+
+ /****************************************************************
+ *
+--- a/w_util.c
++++ b/w_util.c
+@@ -351,7 +351,9 @@
+ * (use -1 if no line desired)
+ */
+
++#ifndef XAW3D1_5E
+ #include "SmeCascade.h"
++#endif /* XAW3D1_5E */
+
+ #include "d_text.h"
+ #include "e_placelib.h"
diff --git a/media-gfx/xfig/files/xfig-3.2.5c-crash-on-exit.patch b/media-gfx/xfig/files/xfig-3.2.5c-crash-on-exit.patch
new file mode 100644
index 000000000000..80d20281ae93
--- /dev/null
+++ b/media-gfx/xfig/files/xfig-3.2.5c-crash-on-exit.patch
@@ -0,0 +1,19 @@
+commit 56f0caaae3cc3fdbf6eaa21fc419c951c53a156d
+Author: Peter Volkov <peter.volkov@gmail.com>
+Date: Mon Jun 9 12:36:12 2014 +0400
+
+ Fix crash on exit (regression of xfig.3.2.5c)
+
+diff --git a/u_free.c b/u_free.c
+index 18d517a..4a5080f 100755
+--- a/u_free.c
++++ b/u_free.c
+@@ -270,8 +270,6 @@ void free_Fonts(void)
+ XUnloadFont(tool_d, nf->fid);
+ if (nf->fstruct != NULL)
+ XFreeFont(tool_d, nf->fstruct);
+- if (nf->fset != NULL)
+- XFreeFontSet(tool_d, nf->fset);
+ nf = nf->next;
+ }
+ }
diff --git a/media-gfx/xfig/files/xfig-3.2.5c-darwin.patch b/media-gfx/xfig/files/xfig-3.2.5c-darwin.patch
new file mode 100644
index 000000000000..5d64c2a4deb5
--- /dev/null
+++ b/media-gfx/xfig/files/xfig-3.2.5c-darwin.patch
@@ -0,0 +1,26 @@
+diff --git a/fig.h b/fig.h
+index ca00aef..a3605b0 100644
+--- a/fig.h
++++ b/fig.h
+@@ -375,7 +375,7 @@ extern double drand48();
+ extern long random();
+ extern void srandom(unsigned int);
+
+-#elif !defined(__osf__) && !defined(__CYGWIN__) && !defined(linux) && !defined(__FreeBSD__) && !defined(__GLIBC__)
++#elif !defined(__osf__) && !defined(__CYGWIN__) && !defined(linux) && !defined(__FreeBSD__) && !defined(__DARWIN__) && !defined(__GLIBC__)
+ extern void srandom(int);
+
+ #endif
+diff --git a/w_keyboard.c b/w_keyboard.c
+index 427d60c..03a3f76 100644
+--- a/w_keyboard.c
++++ b/w_keyboard.c
+@@ -41,7 +41,7 @@
+ #define REG_NOERROR 0
+ #endif
+
+-#if defined(__FreeBSD__) && !defined(REG_NOERROR)
++#if (defined(__FreeBSD__) || defined(__DARWIN__)) && !defined(REG_NOERROR)
+ #define REG_NOERROR 0
+ #endif
+
diff --git a/media-gfx/xfig/files/xfig-3.2.5c-png16.patch b/media-gfx/xfig/files/xfig-3.2.5c-png16.patch
new file mode 100644
index 000000000000..f7a426295d3c
--- /dev/null
+++ b/media-gfx/xfig/files/xfig-3.2.5c-png16.patch
@@ -0,0 +1,18 @@
+Source: https://bugzilla.redhat.com/show_bug.cgi?id=1150330
+
+From: David Kaufmann <astra@ionic.at>
+Subject: Fix PNG reading
+
+--- a/f_readpng.c 2014-09-15 13:25:26.290813563 +0200
++++ a/f_readpng.c 2014-09-15 14:04:10.241297027 +0200
+@@ -90,8 +90,8 @@
+ png_get_IHDR(png_ptr, info_ptr, &w, &h, &bit_depth, &color_type,
+ &interlace_type, &compression_type, &filter_type);
+
+- png_fixed_point gamma = 0.45;
+- png_get_gAMA_fixed(png_ptr,info_ptr,&gamma);
++ double gamma = 0.45455;
++ png_get_gAMA(png_ptr,info_ptr,&gamma);
+ png_set_gamma(png_ptr, 2.2, gamma);
+
+ if (png_get_valid(png_ptr,info_ptr,PNG_INFO_bKGD)) {
diff --git a/media-gfx/xfig/files/xfig-3.2.5c-spelling.patch b/media-gfx/xfig/files/xfig-3.2.5c-spelling.patch
new file mode 100644
index 000000000000..4af77e0e9b06
--- /dev/null
+++ b/media-gfx/xfig/files/xfig-3.2.5c-spelling.patch
@@ -0,0 +1,17 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 31_spelling.dpatch by Roland Rosenfeld <roland@debian.org>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Fix spelling errors in binary.
+
+@DPATCH@
+diff -urNad xfig~/f_load.c xfig/f_load.c
+--- xfig~/f_load.c
++++ xfig/f_load.c
+@@ -373,5 +373,5 @@
+ /* Format error; relevant error message is already delivered */
+ ;
+ else
+- file_msg("File \"%s\" is not accessable; %s.", file, strerror(err));
++ file_msg("File \"%s\" is not accessible; %s.", file, strerror(err));
+ }
diff --git a/media-gfx/xfig/files/xfig-3.2.6a-app-defaults.patch b/media-gfx/xfig/files/xfig-3.2.6a-app-defaults.patch
new file mode 100644
index 000000000000..7d11b571df39
--- /dev/null
+++ b/media-gfx/xfig/files/xfig-3.2.6a-app-defaults.patch
@@ -0,0 +1,14 @@
+diff -ruN xfig-3.2.6a.orig/app-defaults/Fig xfig-3.2.6a/app-defaults/Fig
+--- xfig-3.2.6a.orig/app-defaults/Fig 2017-01-10 00:27:39.000000000 +0100
++++ xfig-3.2.6a/app-defaults/Fig 2017-03-24 16:22:14.702253419 +0100
+@@ -10,6 +10,10 @@
+
+ ! some sample settings you may want to change
+
++! If the following resource is set to false, xfig will use metric units
++! by default.
++Fig.inches: false
++
+ ! The following fixes a problem that some window managers have
+ ! with xfig continually resizing itself
+
diff --git a/media-gfx/xfig/files/xfig-3.2.6a-solaris.patch b/media-gfx/xfig/files/xfig-3.2.6a-solaris.patch
new file mode 100644
index 000000000000..5c6cd023fe6f
--- /dev/null
+++ b/media-gfx/xfig/files/xfig-3.2.6a-solaris.patch
@@ -0,0 +1,26 @@
+* workaround some missing things on Solaris
+
+--- a/src/u_quartic.c
++++ b/src/u_quartic.c
+@@ -21,4 +21,7 @@
+ #include <math.h>
+
++ #ifndef M_PI
++ # define M_PI 3.14159265358979323846
++ #endif
+
+ static int
+--- a/src/w_intersect.c
++++ b/src/w_intersect.c
+@@ -31,6 +31,11 @@
+ #define ISET_P1 (1 << 0)
+ #define ISET_P2 (1 << 1)
+
++#if defined (__SVR4) && defined (__sun)
++#undef _Complex_I
++#define _Complex_I (__extension__ 1.0fi)
++#endif
++
+ intersect_state_e intersect_state = INTERSECT_INITIAL;
+
+ static INLINE Boolean
diff --git a/media-gfx/xfig/files/xfig-3.2.6a-urwfonts.patch b/media-gfx/xfig/files/xfig-3.2.6a-urwfonts.patch
new file mode 100644
index 000000000000..89957590af6d
--- /dev/null
+++ b/media-gfx/xfig/files/xfig-3.2.6a-urwfonts.patch
@@ -0,0 +1,79 @@
+--- a/src/u_fonts.c 2002-09-09 13:36:58.000000000 -0400
++++ b/src/u_fonts.c 2006-10-11 00:29:07.000000000 -0400
+@@ -22,41 +22,41 @@
+ /* X11 font names */
+
+ struct _xfstruct x_fontinfo[NUM_FONTS] = {
+- {"-*-times-medium-r-normal--", (struct xfont*) NULL},
+- {"-*-times-medium-i-normal--", (struct xfont*) NULL},
+- {"-*-times-bold-r-normal--", (struct xfont*) NULL},
+- {"-*-times-bold-i-normal--", (struct xfont*) NULL},
+- {"-*-avantgarde-book-r-normal--", (struct xfont*) NULL},
+- {"-*-avantgarde-book-o-normal--", (struct xfont*) NULL},
+- {"-*-avantgarde-demi-r-normal--", (struct xfont*) NULL},
+- {"-*-avantgarde-demi-o-normal--", (struct xfont*) NULL},
+- {"-*-bookman-light-r-normal--", (struct xfont*) NULL},
+- {"-*-bookman-light-i-normal--", (struct xfont*) NULL},
+- {"-*-bookman-demi-r-normal--", (struct xfont*) NULL},
+- {"-*-bookman-demi-i-normal--", (struct xfont*) NULL},
+- {"-*-courier-medium-r-normal--", (struct xfont*) NULL},
+- {"-*-courier-medium-o-normal--", (struct xfont*) NULL},
+- {"-*-courier-bold-r-normal--", (struct xfont*) NULL},
+- {"-*-courier-bold-o-normal--", (struct xfont*) NULL},
+- {"-*-helvetica-medium-r-normal--", (struct xfont*) NULL},
+- {"-*-helvetica-medium-o-normal--", (struct xfont*) NULL},
+- {"-*-helvetica-bold-r-normal--", (struct xfont*) NULL},
+- {"-*-helvetica-bold-o-normal--", (struct xfont*) NULL},
+- {"-*-helvetica-medium-r-narrow--", (struct xfont*) NULL},
+- {"-*-helvetica-medium-o-narrow--", (struct xfont*) NULL},
+- {"-*-helvetica-bold-r-narrow--", (struct xfont*) NULL},
+- {"-*-helvetica-bold-o-narrow--", (struct xfont*) NULL},
+- {"-*-new century schoolbook-medium-r-normal--", (struct xfont*) NULL},
+- {"-*-new century schoolbook-medium-i-normal--", (struct xfont*) NULL},
+- {"-*-new century schoolbook-bold-r-normal--", (struct xfont*) NULL},
+- {"-*-new century schoolbook-bold-i-normal--", (struct xfont*) NULL},
+- {"-*-palatino-medium-r-normal--", (struct xfont*) NULL},
+- {"-*-palatino-medium-i-normal--", (struct xfont*) NULL},
+- {"-*-palatino-bold-r-normal--", (struct xfont*) NULL},
+- {"-*-palatino-bold-i-normal--", (struct xfont*) NULL},
+- {"-*-symbol-medium-r-normal--", (struct xfont*) NULL},
+- {"-*-itc zapf chancery-medium-i-normal--", (struct xfont*) NULL},
+- {"-*-itc zapf dingbats-*-*-*--", (struct xfont*) NULL},
++ {"-urw-nimbus roman no9 l-medium-r-normal--", (struct xfont*) NULL},
++ {"-urw-nimbus roman no9 l-medium-i-normal--", (struct xfont*) NULL},
++ {"-urw-nimbus roman no9 l-bold-r-normal--", (struct xfont*) NULL},
++ {"-urw-nimbus roman no9 l-bold-i-normal--", (struct xfont*) NULL},
++ {"-urw-urw gothic l-medium-r-normal--", (struct xfont*) NULL},
++ {"-urw-urw gothic l-medium-o-normal--", (struct xfont*) NULL},
++ {"-urw-urw gothic l-semibold-r-normal--", (struct xfont*) NULL},
++ {"-urw-urw gothic l-semibold-o-normal--", (struct xfont*) NULL},
++ {"-urw-urw bookman l-medium-r-normal--", (struct xfont*) NULL},
++ {"-urw-urw bookman l-medium-i-normal--", (struct xfont*) NULL},
++ {"-urw-urw bookman l-bold-r-normal--", (struct xfont*) NULL},
++ {"-urw-urw bookman l-bold-i-normal--", (struct xfont*) NULL},
++ {"-urw-nimbus mono l-medium-r-normal--", (struct xfont*) NULL},
++ {"-urw-nimbus mono l-medium-o-normal--", (struct xfont*) NULL},
++ {"-urw-nimbus mono l-bold-r-normal--", (struct xfont*) NULL},
++ {"-urw-nimbus mono l-bold-o-normal--", (struct xfont*) NULL},
++ {"-urw-nimbus sans l-medium-r-normal--", (struct xfont*) NULL},
++ {"-urw-nimbus sans l-medium-i-normal--", (struct xfont*) NULL},
++ {"-urw-nimbus sans l-bold-r-normal--", (struct xfont*) NULL},
++ {"-urw-nimbus sans l-bold-i-normal--", (struct xfont*) NULL},
++ {"-urw-nimbus sans l-medium-r-condensed--", (struct xfont*) NULL},
++ {"-urw-nimbus sans l-medium-i-condensed--", (struct xfont*) NULL},
++ {"-urw-nimbus sans l-bold-r-condensed--", (struct xfont*) NULL},
++ {"-urw-nimbus sans l-bold-i-condensed--", (struct xfont*) NULL},
++ {"-urw-century schoolbook l-medium-r-normal--", (struct xfont*) NULL},
++ {"-urw-century schoolbook l-medium-i-normal--", (struct xfont*) NULL},
++ {"-urw-century schoolbook l-bold-r-normal--", (struct xfont*) NULL},
++ {"-urw-century schoolbook l-bold-i-normal--", (struct xfont*) NULL},
++ {"-urw-urw palladio l-medium-r-normal--", (struct xfont*) NULL},
++ {"-urw-urw palladio l-medium-i-normal--", (struct xfont*) NULL},
++ {"-urw-urw palladio l-bold-r-normal--", (struct xfont*) NULL},
++ {"-urw-urw palladio l-bold-i-normal--", (struct xfont*) NULL},
++ {"-urw-standard symbols l-medium-r-normal--", (struct xfont*) NULL},
++ {"-urw-urw chancery l-medium-i-normal--", (struct xfont*) NULL},
++ {"-urw-dingbats-medium-r-normal--", (struct xfont*) NULL},
+ };
+
+ /* Use the following font names for any font that doesn't exist in the table above.
diff --git a/media-gfx/xfig/metadata.xml b/media-gfx/xfig/metadata.xml
new file mode 100644
index 000000000000..327363b300a4
--- /dev/null
+++ b/media-gfx/xfig/metadata.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <upstream>
+ <remote-id type="sourceforge">mcj</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/media-gfx/xfig/xfig-3.2.5c-r1.ebuild b/media-gfx/xfig/xfig-3.2.5c-r1.ebuild
new file mode 100644
index 000000000000..bbe838eccc23
--- /dev/null
+++ b/media-gfx/xfig/xfig-3.2.5c-r1.ebuild
@@ -0,0 +1,111 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit eutils multilib
+
+MY_P=${PN}.${PV}
+
+DESCRIPTION="A menu-driven tool to draw and manipulate objects interactively in an X window"
+HOMEPAGE="http://www.xfig.org"
+SRC_URI="mirror://sourceforge/mcj/${MY_P}.full.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris ~x86-solaris"
+IUSE="nls"
+
+RDEPEND="x11-libs/libXaw
+ x11-libs/libXp
+ x11-libs/libXaw3d
+ nls? ( x11-libs/libXaw3d[unicode] )
+ x11-libs/libXi
+ x11-libs/libXt
+ virtual/jpeg:0=
+ media-libs/libpng:0=
+ media-fonts/font-misc-misc
+ media-fonts/urw-fonts
+ >=media-gfx/transfig-3.2.5-r1
+ media-libs/netpbm"
+DEPEND="${RDEPEND}
+ x11-misc/imake
+ x11-proto/xproto
+ x11-proto/inputproto"
+
+S=${WORKDIR}/${MY_P}
+
+PATCHES=(
+ "${FILESDIR}/${PN}-3.2.5c-spelling.patch"
+ "${FILESDIR}/${PN}-3.2.5b-papersize_b1.patch"
+ "${FILESDIR}/${PN}-3.2.5b-pdfimport_mediabox.patch"
+ "${FILESDIR}/${PN}-3.2.5b-network_images.patch"
+ "${FILESDIR}/${PN}-3.2.5b-app-defaults.patch"
+ "${FILESDIR}/${PN}-3.2.5b-urwfonts.patch"
+ "${FILESDIR}/${PN}-3.2.5b-mkstemp.patch" #264575
+ "${FILESDIR}/${PN}-3.2.5c-darwin.patch"
+ "${FILESDIR}/${PN}-3.2.5b-solaris.patch"
+ "${FILESDIR}/${PN}-3.2.5c-XAW3D1_5E_notlocal.patch"
+ "${FILESDIR}/${PN}-3.2.5c-crash-on-exit.patch"
+ "${FILESDIR}/${PN}-3.2.5c-png16.patch"
+)
+
+sed_Imakefile() {
+ # see Imakefile for details
+ vars2subs=( BINDIR="${EPREFIX}"/usr/bin
+ PNGINC=-I"${EPREFIX}"/usr/include
+ JPEGLIBDIR="${EPREFIX}"/usr/$(get_libdir)
+ JPEGINC=-I"${EPREFIX}"/usr/include
+ XPMLIBDIR="${EPREFIX}"/usr/$(get_libdir)
+ XPMINC=-I"${EPREFIX}"/usr/include/X11
+ USEINLINE=-DUSE_INLINE
+ XFIGLIBDIR="${EPREFIX}"/usr/share/xfig
+ XFIGDOCDIR="${EPREFIX}/usr/share/doc/${PF}"
+ MANDIR="${EPREFIX}/usr/share/man/man\$\(MANSUFFIX\)"
+ "CC=$(tc-getCC)" )
+
+ for variable in "${vars2subs[@]}" ; do
+ varname=${variable%%=*}
+ varval=${variable##*=}
+ sed -i \
+ -e "s:^\(XCOMM\)*[[:space:]]*${varname}[[:space:]]*=.*$:${varname} = ${varval}:" \
+ "$@" || die
+ done
+ if use nls; then
+ # XAW_INTERNATIONALIZATION fixes #405475 (comment 17) and #426780 by Markus Peloquin
+ sed -i \
+ -e "s:^\(XCOMM\)*[[:space:]]*\(#define I18N\).*$:\2:" \
+ -e "s:^\(XCOMM\)*[[:space:]]*\(XAW_INTERN = -DXAW_INTERNATIONALIZATION\).*$:\2:" \
+ "$@" || die
+ fi
+ sed -i -e "s:^\(XCOMM\)*[[:space:]]*\(#define XAW3D1_5E\).*$:\2:" "$@" || die
+}
+
+src_prepare() {
+ # Permissions are really crazy here
+ chmod -R go+rX . || die
+ find . -type f -exec chmod a-x '{}' \; || die
+
+ default
+
+ sed_Imakefile Imakefile
+ sed -e "s:/usr/lib/X11/xfig:${EPREFIX}/usr/share/doc/${PF}:" \
+ -i Doc/xfig.man || die
+}
+
+src_compile() {
+ local EXTCFLAGS=${CFLAGS}
+ xmkmf || die
+ [[ ${CHOST} == *-solaris* ]] && EXTCFLAGS="${EXTCFLAGS} -D_POSIX_SOURCE"
+ emake CC="$(tc-getCC)" LOCAL_LDFLAGS="${LDFLAGS}" CDEBUGFLAGS="${EXTCFLAGS}" \
+ USRLIBDIR="${EPREFIX}"/usr/$(get_libdir)
+}
+
+src_install() {
+ emake -j1 DESTDIR="${D}" install install.libs install.man
+
+ dodoc README FIGAPPS CHANGES LATEX.AND.XFIG
+
+ doicon xfig.png
+ make_desktop_entry xfig Xfig xfig
+}
diff --git a/media-gfx/xfig/xfig-3.2.5c.ebuild b/media-gfx/xfig/xfig-3.2.5c.ebuild
new file mode 100644
index 000000000000..98f535d1daf8
--- /dev/null
+++ b/media-gfx/xfig/xfig-3.2.5c.ebuild
@@ -0,0 +1,109 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit eutils multilib
+
+MY_P=${PN}.${PV}
+
+DESCRIPTION="A menu-driven tool to draw and manipulate objects interactively in an X window"
+HOMEPAGE="http://www.xfig.org"
+SRC_URI="mirror://sourceforge/mcj/${MY_P}.full.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="alpha amd64 ~arm hppa ppc ppc64 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris ~x86-solaris"
+IUSE="nls"
+
+RDEPEND="x11-libs/libXaw
+ x11-libs/libXp
+ x11-libs/libXaw3d
+ nls? ( x11-libs/libXaw3d[unicode] )
+ x11-libs/libXi
+ x11-libs/libXt
+ virtual/jpeg
+ media-libs/libpng
+ media-fonts/font-misc-misc
+ media-fonts/urw-fonts
+ >=media-gfx/transfig-3.2.5-r1
+ media-libs/netpbm"
+DEPEND="${RDEPEND}
+ x11-misc/imake
+ x11-proto/xproto
+ x11-proto/inputproto"
+
+S=${WORKDIR}/${MY_P}
+
+sed_Imakefile() {
+ # see Imakefile for details
+ vars2subs=( BINDIR="${EPREFIX}"/usr/bin
+ PNGINC=-I"${EPREFIX}"/usr/include
+ JPEGLIBDIR="${EPREFIX}"/usr/$(get_libdir)
+ JPEGINC=-I"${EPREFIX}"/usr/include
+ XPMLIBDIR="${EPREFIX}"/usr/$(get_libdir)
+ XPMINC=-I"${EPREFIX}"/usr/include/X11
+ USEINLINE=-DUSE_INLINE
+ XFIGLIBDIR="${EPREFIX}"/usr/share/xfig
+ XFIGDOCDIR="${EPREFIX}/usr/share/doc/${PF}"
+ MANDIR="${EPREFIX}/usr/share/man/man\$\(MANSUFFIX\)"
+ "CC=$(tc-getCC)" )
+
+ for variable in "${vars2subs[@]}" ; do
+ varname=${variable%%=*}
+ varval=${variable##*=}
+ sed -i \
+ -e "s:^\(XCOMM\)*[[:space:]]*${varname}[[:space:]]*=.*$:${varname} = ${varval}:" \
+ "$@" || die
+ done
+ if use nls; then
+ # XAW_INTERNATIONALIZATION fixes #405475 (comment 17) and #426780 by Markus Peloquin
+ sed -i \
+ -e "s:^\(XCOMM\)*[[:space:]]*\(#define I18N\).*$:\2:" \
+ -e "s:^\(XCOMM\)*[[:space:]]*\(XAW_INTERN = -DXAW_INTERNATIONALIZATION\).*$:\2:" \
+ "$@" || die
+ fi
+ sed -i -e "s:^\(XCOMM\)*[[:space:]]*\(#define XAW3D1_5E\).*$:\2:" "$@" || die
+}
+
+src_prepare() {
+ # Permissions are really crazy here
+ chmod -R go+rX . || die
+ find . -type f -exec chmod a-x '{}' \; || die
+ epatch "${FILESDIR}/${PN}-3.2.5c-spelling.patch"
+ epatch "${FILESDIR}/${PN}-3.2.5b-papersize_b1.patch"
+ epatch "${FILESDIR}/${PN}-3.2.5b-pdfimport_mediabox.patch"
+ epatch "${FILESDIR}/${PN}-3.2.5b-network_images.patch"
+ epatch "${FILESDIR}/${PN}-3.2.5b-app-defaults.patch"
+ epatch "${FILESDIR}/${PN}-3.2.5b-urwfonts.patch"
+ epatch "${FILESDIR}/${PN}-3.2.5b-mkstemp.patch" #264575
+ epatch "${FILESDIR}/${PN}-3.2.5c-darwin.patch"
+ epatch "${FILESDIR}/${PN}-3.2.5b-solaris.patch"
+ epatch "${FILESDIR}/${PN}-3.2.5c-XAW3D1_5E_notlocal.patch"
+ epatch "${FILESDIR}/${PN}-3.2.5c-crash-on-exit.patch"
+
+ sed_Imakefile Imakefile
+ sed -e "s:/usr/lib/X11/xfig:${EPREFIX}/usr/share/doc/${PF}:" \
+ -i Doc/xfig.man || die
+}
+
+src_compile() {
+ local EXTCFLAGS=${CFLAGS}
+ xmkmf || die
+ [[ ${CHOST} == *-solaris* ]] && EXTCFLAGS="${EXTCFLAGS} -D_POSIX_SOURCE"
+ emake CC="$(tc-getCC)" LOCAL_LDFLAGS="${LDFLAGS}" CDEBUGFLAGS="${EXTCFLAGS}" \
+ USRLIBDIR="${EPREFIX}"/usr/$(get_libdir)
+}
+
+src_install() {
+ emake -j1 DESTDIR="${D}" install install.libs install.man
+
+ dodoc README FIGAPPS CHANGES LATEX.AND.XFIG
+
+ doicon xfig.png
+ make_desktop_entry xfig Xfig xfig
+}
+
+pkg_postinst() {
+ einfo "Don't forget to update xserver's font path for media-fonts/urw-fonts."
+}
diff --git a/media-gfx/xfig/xfig-3.2.6a.ebuild b/media-gfx/xfig/xfig-3.2.6a.ebuild
new file mode 100644
index 000000000000..3ae5e4b55305
--- /dev/null
+++ b/media-gfx/xfig/xfig-3.2.6a.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DESCRIPTION="A menu-driven tool to draw and manipulate objects interactively in an X window"
+HOMEPAGE="http://mcj.sourceforge.net/"
+SRC_URI="mirror://sourceforge/mcj/${PN}-full-${PV}.tar.xz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris ~x86-solaris"
+IUSE="jpeg nls postscript"
+
+RDEPEND="
+ x11-libs/libXaw
+ x11-libs/libXp
+ x11-libs/libXaw3d
+ x11-libs/libXi
+ x11-libs/libXt
+ media-libs/libpng:0=
+ media-fonts/font-misc-misc
+ media-fonts/urw-fonts
+ >=media-gfx/transfig-3.2.5-r1
+ media-libs/netpbm
+ jpeg? ( virtual/jpeg:0= )
+ nls? ( x11-libs/libXaw3d[unicode] )
+ postscript? ( app-text/ghostscript-gpl )
+"
+DEPEND="${RDEPEND}
+ x11-proto/xproto
+ x11-proto/inputproto
+"
+
+PATCHES=(
+ "${FILESDIR}/${PN}-3.2.6a-urwfonts.patch"
+ "${FILESDIR}/${PN}-3.2.6a-solaris.patch"
+ "${FILESDIR}/${PN}-3.2.6a-app-defaults.patch"
+)
+
+src_configure() {
+ econf \
+ $(use_enable nls i18n) \
+ $(use_enable jpeg) \
+ $(use_with postscript gs) \
+ --htmldir="${EPREFIX}/usr/share/doc/${PF}" # it expects docdir...
+}
diff --git a/media-gfx/xli/Manifest b/media-gfx/xli/Manifest
new file mode 100644
index 000000000000..6f71776c47d7
--- /dev/null
+++ b/media-gfx/xli/Manifest
@@ -0,0 +1,9 @@
+AUX Xli.ad 123 SHA256 a26e3c36c81d124a08d143e9ebfabfbd2507ffb9e48f077ea3e837eacd3f3bd9 SHA512 a37a8054e1533bc46f0e24b88137bf2ea8a7294f16e37edd6c323f42d28bfa0dc93b74d41fb1cb3df3488754db42fb5a269c42ae08dade61f22b8c42c8cd9c8b WHIRLPOOL 65f694ef730ce32287ce42f2606c174f5c2cccf2c703072f87024f0fcab93d85fa7fdd8be89fd82fd4c03dc60bf678beb8dfdbb6d5fe3536680486caeea0047b
+AUX xli-1.17.0-fix-scale-zoom.patch 1942 SHA256 109af5c20d234650b99411fcd94c329cb7162e60e0349e46ee4fc5148bb1a67f SHA512 b77348b83e26b0684cf7292100bbdbbd2c3f7b025f14588f7b52935d997b7ca51c3aad70479ce74cd9193a045436b39233b7ebb1fea6abcdf3d3a9dc21c8b84f WHIRLPOOL 4b8e6dc4dbc4329b67a8af43312f95790048ea58dc1084ee642e4ae75695f5a8b4669773d5d7834055ba4af50ac94483ca9e17865ec6a85eb9c0046f42634f75
+AUX xli-1.17.0-libpng14.patch 241 SHA256 03b74b2bc1063a087bdec93f6f9b85eb4b4c7236ddd3bfe7d7742d19df6dc9d9 SHA512 e5a2de3525198d323ae6c89ab9b0455559761cd4f6b86b719934bc77e31582cd557090766875d97512cb60a42e88653f5dc204dffa9ae1370695c73bfc2231b1 WHIRLPOOL 5c00a998d71ffe022b701a9d398b1e6e2f43b3c2b673c879428cb42d70717cc11cabc60d279b3117ba2a70278a4c57f95072e1285e19ef11e46098308b1e9752
+AUX xli-security-gentoo.diff 6940 SHA256 d2d427f4eb0659786e18fb70aebb312e980e638a0034a24073e21c2e7b58e90a SHA512 b992219eb4b89bfee57429afbf67be6d6a04051b50de6e814c84c1adb209494d2faff15a228b43a992530fbeac83f15a94e9c1988982f98eabf287c26716671e WHIRLPOOL 6f836cdc5d8119c4550bcaecd677a959e1f67a64ccf92100d442bea4852822af9ed0be85ab802c8002f297029719849cd55069a73bfc7d84ca357034a30573f4
+DIST xli-2005-02-27.tar.gz 201011 SHA256 442dcf5ac75841e648c3bffed795d9301a6a485dc55f7998d0acfc2b8daad2bc SHA512 132b28396ebf3832dc35ff5fa7c102539ef30a194512fe6577ce1432bb84ecd7b4368e75eaf59f26a806900f63e1bfb9a93487ce1ebe3cfef2199256a783ccf7 WHIRLPOOL 1d3b45be838d397fdbc2521c9c5a466e4141248591ae00016fa316f67a4ab44bc712896a59581e3f9a2e10cabb56f041ef7a3e21cc2a4f59733dc44d446e541b
+EBUILD xli-1.17.0-r5.ebuild 1940 SHA256 faa31765c9cca53df2cff03919666955ff02e0bbc9eb710137c4195d26a168f1 SHA512 e95f5c4f013af5d4d42acab2647e4a82c9cb3d679e6c19471d2130da721f9d14942a9c9f1b6643fe6867e41143e91f61edc5ae71028d2e0e361a3883bcc5fb4d WHIRLPOOL 15f00e5cef542a16fe365e4d874a12da8d6fb9edf956e3c020f1b6500f539ba1f0c2d8d1a911d727eaa52f05b30c762ec30c6daa389ac0dbc8e607100ec7a3b0
+MISC ChangeLog 2548 SHA256 347da4730a3eaebaa064682a6dd49db93488bb1bd058a9e334df81a77963025f SHA512 c8bad98c8bce836fde96c592756f7b7472fc38c7966dee16ac54d46d4c9fa73933f583fbcd37c70569e41757893054ac837e6e57b74a0e7d5b2db1a7b471f8d9 WHIRLPOOL 60bf6c3d61337669815b976d316d07ff26e339a6165311b681407839f7c59bdedd8e270355e0a83960cd2911095b268212762546e8563a7a7a139dd23eecff40
+MISC ChangeLog-2015 8152 SHA256 844f2186bcd4c815479e7ed8f68ddb0761f0b89626dd80cf11c9a4e4605a91ea SHA512 b553b6e5b9de0865a5c6f5ab1d1a2f6f58b48a92f244a5898ed1d20c5b2ab4aade0650507d9320bb1e567ec1bf0971708ac3aff33f8688759b16ffa7f64c3728 WHIRLPOOL 301608f246599efe51d40a89ca615c0a69eda65d09381b3d99828bf1273c3923552658100a8e383376c2908c246b40aab8f3996606237087e95a68898336b72e
+MISC metadata.xml 265 SHA256 db1cfbffc28a5904257a8fbd4f99c081aa42b08239ff8d97aa299983b32d58fd SHA512 65fd64249e8dde8eb2ddcb67c58c05b36b10e51956e2237f60dd3ae50872492f3d5872b64106acb13e453a41960f4f817161be3c8b89e6b9a2367b8f1403ffaf WHIRLPOOL ea60bca9e9cd33aa65e8800ca0bc1c3e84a3f4cad168d7d3d8a8b73d335b866442271f1b027f7f1a6d69dbd1408555c495a581a9280c0b217036a6b736276906
diff --git a/media-gfx/xli/files/Xli.ad b/media-gfx/xli/files/Xli.ad
new file mode 100644
index 000000000000..6c9a022e40b6
--- /dev/null
+++ b/media-gfx/xli/files/Xli.ad
@@ -0,0 +1,2 @@
+path=/usr/X11R6/include/X11/bitmaps /usr/X11R6/include/X11/images
+extension=.gif .jpg .rle .csun .msun .sun .face .xbm .bm
diff --git a/media-gfx/xli/files/xli-1.17.0-fix-scale-zoom.patch b/media-gfx/xli/files/xli-1.17.0-fix-scale-zoom.patch
new file mode 100644
index 000000000000..44ee262aee25
--- /dev/null
+++ b/media-gfx/xli/files/xli-1.17.0-fix-scale-zoom.patch
@@ -0,0 +1,61 @@
+As of jpeg-7, the scale coefficents may be set to non-unitary values by the
+initial DCT transform. This caused the original already-scale detection
+algorithm in xli to break.
+
+To avoid this, set the already-scaled marker when we adjust the scale fraction
+(that gets passed into the DCT).
+
+Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
+
+diff -Nuar -X x xli-2005-02-27.orig/jpeg.c xli-2005-02-27/jpeg.c
+--- xli-2005-02-27.orig/jpeg.c 2005-02-27 16:42:39.000000000 -0800
++++ xli-2005-02-27/jpeg.c 2009-09-05 15:02:12.462635389 -0700
+@@ -211,7 +211,7 @@
+ xli_jpg_err jerr;
+ Image *image = 0;
+ byte **rows = 0;
+- int i, rowbytes;
++ int i, rowbytes, flags;
+
+ CURRFUNC("jpegLoad");
+ zfp = zopen(fullname);
+@@ -248,9 +248,13 @@
+ if (verbose)
+ describe_jpeg(&cinfo, fullname);
+
++ flags = 0;
+ if (image_ops->iscale > 0 && image_ops->iscale < 4) {
+- cinfo.scale_num = 1;
+- cinfo.scale_denom = 1 << image_ops->iscale;
++ flags |= FLAG_ISCALE;
++ //cinfo.scale_num = 1;
++ cinfo.scale_denom *= 1 << image_ops->iscale;
++ if (verbose)
++ printf("scaling to %d/%d\n", cinfo.scale_num, cinfo.scale_denom);
+ } else if (image_ops->iscale_auto) {
+ image_ops->iscale = 0;
+ while (image_ops->iscale < 3 && (cinfo.image_width >>
+@@ -258,9 +262,11 @@
+ cinfo.image_height >> image_ops->iscale >
+ globals.dinfo.height * .9))
+ image_ops->iscale += 1;
+- cinfo.scale_denom = 1 << image_ops->iscale;
++ cinfo.scale_denom *= 1 << image_ops->iscale;
++ if(image_ops->iscale > 0)
++ flags |= FLAG_ISCALE;
+ if (verbose)
+- printf("auto-scaling to 1/%d\n", cinfo.scale_denom);
++ printf("auto-scaling to %d/%d\n", cinfo.scale_num, cinfo.scale_denom);
+ }
+ znocache(zfp);
+
+@@ -288,8 +294,7 @@
+ }
+
+ image->gamma = RETURN_GAMMA;
+- if (cinfo.scale_denom > 1)
+- image->flags |= FLAG_ISCALE;
++ image->flags |= flags;
+
+ rowbytes = cinfo.output_width * cinfo.output_components;
+ assert(image->pixlen * image->width == rowbytes);
diff --git a/media-gfx/xli/files/xli-1.17.0-libpng14.patch b/media-gfx/xli/files/xli-1.17.0-libpng14.patch
new file mode 100644
index 000000000000..afb4b24208d7
--- /dev/null
+++ b/media-gfx/xli/files/xli-1.17.0-libpng14.patch
@@ -0,0 +1,14 @@
+http://aur.archlinux.org/packages.php?ID=1676
+http://archwyrm.net/~me/xli-libpng.diff
+
+--- png.c
++++ png.c
+@@ -27,7 +27,7 @@
+ if (ret != 8)
+ return 0;
+
+- ret = png_check_sig(buf, 8);
++ ret = !png_sig_cmp(buf, 0, 8);
+
+ return (ret);
+ }
diff --git a/media-gfx/xli/files/xli-security-gentoo.diff b/media-gfx/xli/files/xli-security-gentoo.diff
new file mode 100644
index 000000000000..7425e67c7c74
--- /dev/null
+++ b/media-gfx/xli/files/xli-security-gentoo.diff
@@ -0,0 +1,199 @@
+diff -Nrup xli-2005-02-27/imagetypes.c xli-2005-02-27/imagetypes.c
+--- xli-2005-02-27/imagetypes.c 1999-10-24 22:14:57.000000000 -0400
++++ xli-2005-02-27/imagetypes.c 2005-10-18 07:53:46.000000000 -0400
+@@ -53,7 +53,7 @@ Image *loadImage(ImageOptions * image_op
+ Image *image;
+ int a;
+
+- if (findImage(image_ops->name, fullname) < 0) {
++ if (findImage(image_ops->name, fullname, BUFSIZ) < 0) {
+ if (errno == ENOENT)
+ printf("%s: image not found\n", image_ops->name);
+ else if (errno == EISDIR)
+@@ -95,7 +95,7 @@ void identifyImage(char *name)
+ char fullname[BUFSIZ];
+ int a;
+
+- if (findImage(name, fullname) < 0) {
++ if (findImage(name, fullname, BUFSIZ) < 0) {
+ if (errno == ENOENT)
+ printf("%s: image not found\n", name);
+ else if (errno == EISDIR)
+diff -Nrup xli-2005-02-27/path.c xli-2005-02-27/path.c
+--- xli-2005-02-27/path.c 2005-02-27 19:42:39.000000000 -0500
++++ xli-2005-02-27/path.c 2005-10-18 07:56:45.000000000 -0400
+@@ -172,12 +172,12 @@ static int fileIsOk(char *fullname, stru
+ /* find an image with paths and extensions from defaults files. returns
+ * -1 if access denied or not found, 0 if ok.
+ */
+-int findImage(char *name, char *fullname)
++int findImage(char *name, char *fullname, size_t size)
+ {
+ unsigned int p, e;
+ struct stat sbuf;
+
+- strcpy(fullname, name);
++ strncpy(fullname, name, size);
+ if (!strcmp(name, "stdin")) /* stdin is special name */
+ return (0);
+
+@@ -185,26 +185,26 @@ int findImage(char *name, char *fullname
+ if (!stat(fullname, &sbuf))
+ return (fileIsOk(fullname, &sbuf));
+ #ifndef NO_COMPRESS
+- strcat(fullname, ".Z");
++ strncat(fullname, ".Z", size);
+ if (!stat(fullname, &sbuf))
+ return (fileIsOk(fullname, &sbuf));
+ #endif
+
+ for (p = 0; p < NumPaths; p++) {
+- sprintf(fullname, "%s/%s", Paths[p], name);
++ snprintf(fullname, size, "%s/%s", Paths[p], name);
+ if (!stat(fullname, &sbuf))
+ return (fileIsOk(fullname, &sbuf));
+ #ifndef NO_COMPRESS
+- strcat(fullname, ".Z");
++ strncat(fullname, ".Z", size);
+ if (!stat(fullname, &sbuf))
+ #endif
+ return (fileIsOk(fullname, &sbuf));
+ for (e = 0; e < NumExts; e++) {
+- sprintf(fullname, "%s/%s%s", Paths[p], name, Exts[e]);
++ snprintf(fullname, size, "%s/%s%s", Paths[p], name, Exts[e]);
+ if (!stat(fullname, &sbuf))
+ return (fileIsOk(fullname, &sbuf));
+ #ifndef NO_COMPRESS
+- strcat(fullname, ".Z");
++ strncat(fullname, ".Z", size);
+ if (!stat(fullname, &sbuf))
+ return (fileIsOk(fullname, &sbuf));
+ #endif
+@@ -212,11 +212,11 @@ int findImage(char *name, char *fullname
+ }
+
+ for (e = 0; e < NumExts; e++) {
+- sprintf(fullname, "%s%s", name, Exts[e]);
++ snprintf(fullname, size, "%s%s", name, Exts[e]);
+ if (!stat(fullname, &sbuf))
+ return (fileIsOk(fullname, &sbuf));
+ #ifndef NO_COMPRESS
+- strcat(fullname, ".Z");
++ strncat(fullname, ".Z", size);
+ if (!stat(fullname, &sbuf))
+ return (fileIsOk(fullname, &sbuf));
+ #endif
+@@ -241,7 +241,7 @@ void listImages(void)
+ for (a = 0; a < NumPaths; a++) {
+ printf("%s:\n", Paths[a]);
+ fflush(stdout);
+- sprintf(buf, "ls %s", Paths[a]);
++ snprintf(buf, sizeof(buf)-1, "ls %s", Paths[a]);
+ if (system(buf) < 0) {
+ perror("ls");
+ return;
+@@ -296,14 +296,14 @@ char *expandPath(char *p)
+ var++;
+ else if (*p == '~') {
+ buf1[b1] = '\0';
+- strcat(buf1, getenv("HOME"));
++ strncat(buf1, getenv("HOME"), sizeof(buf1)-1);
+ b1 = strlen(buf1);
+ var = 0;
+ } else if (*p == '/' || *p == '}') {
+ if (var) {
+ buf1[b1] = '\0';
+ buf2[b2] = '\0';
+- strcat(buf1, getenv(buf2));
++ strncat(buf1, getenv(buf2), sizeof(buf1));
+ b1 = strlen(buf1);
+ buf2[0] = '\0';
+ b2 = 0;
+diff -Nrup xli-2005-02-27/reduce.c xli-2005-02-27/reduce.c
+--- xli-2005-02-27/reduce.c 1999-10-24 22:15:02.000000000 -0400
++++ xli-2005-02-27/reduce.c 2005-10-18 07:33:34.000000000 -0400
+@@ -178,7 +178,7 @@ Image *reduce(Image *image, unsigned col
+ /* get destination image */
+ depth = colorsToDepth(OutColors);
+ new_image = newRGBImage(image->width, image->height, depth);
+- sprintf(buf, "%s (%d colors)", image->title, OutColors);
++ snprintf(buf, sizeof(buf)-1, "%s (%d colors)", image->title, OutColors);
+ new_image->title = dupString(buf);
+ new_image->gamma = image->gamma;
+
+diff -Nrup xli-2005-02-27/rlelib.c xli-2005-02-27/rlelib.c
+--- xli-2005-02-27/rlelib.c 2005-10-18 07:40:51.000000000 -0400
++++ xli-2005-02-27/rlelib.c 2005-10-18 07:48:12.000000000 -0400
+@@ -18,7 +18,7 @@
+ #undef DEBUG
+
+ #ifdef DEBUG
+-# define debug(xx) fprintf(stderr,xx)
++# define debug(xx) fprintf(stderr, "%s", xx)
+ #else
+ # define debug(xx)
+ #endif
+Files xli-2005-02-27/xli and xli-2005-02-27/xli differ
+diff -Nrup xli-2005-02-27/xli.h xli-2005-02-27/xli.h
+--- xli-2005-02-27/xli.h 1999-10-24 22:15:07.000000000 -0400
++++ xli-2005-02-27/xli.h 2005-10-19 07:49:21.000000000 -0400
+@@ -229,7 +229,7 @@ char *xlistrstr(char *s1, char *s2);
+
+ /* path.c */
+ char *expandPath(char *p);
+-int findImage(char *name, char *fullname);
++int findImage(char *name, char *fullname, size_t size);
+ void listImages(void);
+ void loadPathsAndExts(void);
+ void showPath(void);
+diff -Nrup xli-2005-02-27/xlito.c xli-2005-02-27/xlito.c
+--- xli-2005-02-27/xlito.c 2005-02-27 19:42:39.000000000 -0500
++++ xli-2005-02-27/xlito.c 2005-10-18 07:48:54.000000000 -0400
+@@ -31,7 +31,7 @@ char *pname, *fname;
+ #undef DEBUG
+
+ #ifdef DEBUG
+-# define debug(xx) fprintf(stderr,xx)
++# define debug(xx) fprintf(stderr, "%s", xx)
+ #else
+ # define debug(xx)
+ #endif
+diff -Nrup xli-2005-02-27/zoom.c xli-2005-02-27/zoom.c
+--- xli-2005-02-27/zoom.c 2005-02-27 19:42:39.000000000 -0500
++++ xli-2005-02-27/zoom.c 2005-10-18 07:35:42.000000000 -0400
+@@ -52,30 +52,30 @@ Image *zoom(Image *oimage, unsigned int
+ if (verbose)
+ printf(" Zooming image Y axis by %d%%...", yzoom);
+ if (changetitle)
+- sprintf(buf, "%s (Y zoom %d%%)", oimage->title, yzoom);
++ snprintf(buf, sizeof(buf)-1, "%s (Y zoom %d%%)", oimage->title, yzoom);
+ }
+ else if (!yzoom) {
+ if (verbose)
+ printf(" Zooming image X axis by %d%%...", xzoom);
+ if (changetitle)
+- sprintf(buf, "%s (X zoom %d%%)", oimage->title, xzoom);
++ snprintf(buf, sizeof(buf)-1, "%s (X zoom %d%%)", oimage->title, xzoom);
+ }
+ else if (xzoom == yzoom) {
+ if (verbose)
+ printf(" Zooming image by %d%%...", xzoom);
+ if (changetitle)
+- sprintf(buf, "%s (%d%% zoom)", oimage->title, xzoom);
++ snprintf(buf, sizeof(buf)-1, "%s (%d%% zoom)", oimage->title, xzoom);
+ }
+ else {
+ if (verbose)
+ printf(" Zooming image X axis by %d%% and Y axis by %d%%...",
+ xzoom, yzoom);
+ if (changetitle)
+- sprintf(buf, "%s (X zoom %d%% Y zoom %d%%)", oimage->title,
++ snprintf(buf, sizeof(buf)-1, "%s (X zoom %d%% Y zoom %d%%)", oimage->title,
+ xzoom, yzoom);
+ }
+ if (!changetitle)
+- strcpy(buf,oimage->title);
++ strncpy(buf,oimage->title, sizeof(buf)-1);
+
+ if (verbose)
+ fflush(stdout);
diff --git a/media-gfx/xli/metadata.xml b/media-gfx/xli/metadata.xml
new file mode 100644
index 000000000000..6ade85e1c642
--- /dev/null
+++ b/media-gfx/xli/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 type="project">
+ <email>graphics@gentoo.org</email>
+ <name>Gentoo Graphics Project</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/media-gfx/xli/xli-1.17.0-r5.ebuild b/media-gfx/xli/xli-1.17.0-r5.ebuild
new file mode 100644
index 000000000000..64185ccfaefb
--- /dev/null
+++ b/media-gfx/xli/xli-1.17.0-r5.ebuild
@@ -0,0 +1,75 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+inherit eutils
+
+SNAPSHOT="2005-02-27"
+DESCRIPTION="X Load Image: view images or load them to root window"
+HOMEPAGE="ftp://ftp.ibiblio.org/pub/Linux/apps/graphics/viewers/X/xli-1.16.README"
+SRC_URI="http://pantransit.reptiles.org/prog/xli/xli-${SNAPSHOT}.tar.gz"
+
+LICENSE="HPND"
+SLOT="0"
+KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
+
+RDEPEND="app-arch/bzip2
+ >=media-libs/libpng-1.0.5
+ >=sys-libs/zlib-1.1.4
+ virtual/jpeg:0
+ x11-libs/libXext"
+
+DEPEND="${RDEPEND}
+ app-text/rman
+ x11-proto/xextproto
+ x11-misc/imake
+ !media-gfx/xloadimage"
+
+S=${WORKDIR}/${PN}-${SNAPSHOT}
+
+src_prepare() {
+ # avoid conflicts on systems that have zopen in system headers
+ sed -i -e "s:zopen:xli_zopen:g" *
+
+ sed -i Imakefile \
+ -e '/^DEFINES =/s/$/ -DHAVE_GUNZIP -DHAVE_BUNZIP2 /' \
+ -e '/CCOPTIONS =/s/=.*/=/'
+
+ # This is a hack to avoid a parse error on /usr/include/string.h
+ # when _BSD_SOURCE is defined. This may be a bug in that header.
+ sed -i png.c \
+ -e '/^#include "xli.h"/i#undef _BSD_SOURCE'
+
+ # This hack will allow xli to compile using gcc-3.3
+ sed -i rlelib.c \
+ -e 's/#include <varargs.h>//'
+
+ # fix potential security issues.
+ EPATCH_OPTS="-F3 -l" epatch "${FILESDIR}"/xli-security-gentoo.diff
+
+ # Fix scale per bug 282979
+ epatch "${FILESDIR}"/${P}-fix-scale-zoom.patch \
+ "${FILESDIR}"/${P}-libpng14.patch
+}
+
+src_compile() {
+ xmkmf || die
+ emake CDEBUGFLAGS="${CFLAGS}" CC="$(tc-getCC)" EXTRA_LDOPTIONS="${LDFLAGS}"
+}
+
+src_install() {
+ dobin xli xlito
+
+ dosym xli /usr/bin/xsetbg
+ dosym xli /usr/bin/xview
+
+ dodoc README README.xloadimage ABOUTGAMMA TODO chkgamma.jpg
+ newman xli.man xli.1
+ newman xliguide.man xliguide.1
+ newman xlito.man xlito.1
+
+ insinto /etc/X11/app-defaults
+ newins "${FILESDIR}"/Xli.ad Xli
+ fperms a+r /etc/X11/app-defaults/Xli
+}
diff --git a/media-gfx/xloadimage/Manifest b/media-gfx/xloadimage/Manifest
new file mode 100644
index 000000000000..5998596c8b94
--- /dev/null
+++ b/media-gfx/xloadimage/Manifest
@@ -0,0 +1,14 @@
+AUX xloadimage-4.1-bracket.patch 518 SHA256 cc5289450dceb1794dcf99a230c7011d99fcd45e26dcc276a7de25dbd6f5867e SHA512 f73b8077c7fe03ca688646f63df24c6dcecf21b1ebccf9983c7c6fb0332b371b17f835985ffccbe39fcb7bfd553a78df70c94d734930e35310a1b8ba0e30bf34 WHIRLPOOL 0351a6425f3f6f7981221811a7a244b23b0930bc59343321c6309ee7b3ea9eb2f8a51ab8194c55ee52eb4f166cb0c358334f98df456b547b47b68e3baf4d044e
+AUX xloadimage-4.1-endif.patch 321 SHA256 a621ead90d893fd5d07d3034adf674d39235484f205198d47092e8e51bd71204 SHA512 503fd3672ae22a468ae6ec71a62b3113dc3df2e5bed4b90b641320d954c563118eb53b8681ad38edaff5a87a385fb063592ac422c24c2150084e0171f4f17d25 WHIRLPOOL c9647a95daf02350877d0d8024fb2cbaa9ca3b07b01c09866d4816bb0651b12f0f5bcf8840eceff45e7982e218809c744c1d806e45993b05e01daeaf49ff3912
+AUX xloadimage-4.1-include-errno_h.patch 303 SHA256 705ea25d75585bd763b4330757266ac412ee30562e65b937722dad3e3141c56a SHA512 208261855d1677a755e34b421bbb4f95cbbe1d9d494cb3c895e9f799a376f2162a3f8e08134b06029da5acd318c873c798bd2c64eaf0aaf1d0e2970a56f4ef2f WHIRLPOOL 842fb9b785ec6e748c1f14eb7e8893a511505170a26a17ee59f57cca6178a75d14e538b8bc556c354d29af02903de7e632d3bafaa398ced484bc28563946ef25
+AUX xloadimage-4.1-ldflags_and_exit.patch 775 SHA256 f2b80e39246e495a5118f27e815cb8100b9619184580d35696c512a0d81b55fb SHA512 724484e06868c818c6c66cfdca9b07972da6c6b7977da9dad4e05109506751641e211dd34a9afbf925fed712ed046764362856079dda11b628b32fe3f6813f59 WHIRLPOOL 184250574f7c521f2fc657ee39e3978b4fec9c7aa65686f8b2c157ad5008e01cc630c5f16e5d4005a70b3bae0a337b7f32979e18d4dad9a34dfb16f3cfa97b5a
+AUX xloadimage-4.1-libpng15.patch 747 SHA256 c0d30c64354d4261c3218b23498ae41f43215b875688a4c0d1efc3c6c12736fa SHA512 3a96676237388d9da6c05c654db33c862c02858d8e0b352461d25c5dd21128306ec7e492fbd6a20f6af6adb20070c9e9cfdd366803a747697f334955e11f5bb6 WHIRLPOOL 94a1cf48992629a362e81c9fcd2000ba3c6e835d0ab941a04f4832df2ce482079498692b69f2f10ff558e302c679bcc33845ba8095c22a66d389cf557813f424
+AUX xloadimage-4.1-unaligned-access.patch 1730 SHA256 35548e5242d32f66e7175c090af4b2df5ee6f20f51d7e7f83a9f430af568f6c9 SHA512 4861c805a4bca2cec81fa2e7de44838e8451f08a2e1d189cf9a27e1c078d1ae0403fda3ab9c8ad44187db4fd5078d088f755eef16fbe00d55c02e0c54a5be139 WHIRLPOOL 3eb1ece5e5b22bea1f1773d8a3223eb4cb6f8d99d007e193c7c4f10c57392199d0b786449d940c6c9274ac3cce3ab3a8384af6e9ff7b507039cbfce783fff24d
+AUX xloadimage-4.1-zio-shell-meta-char.diff 1372 SHA256 253064f5eebcd6c1c318b9637f1010657927b5f65be59581ef37523a50f3601e SHA512 38e449e005d84a5e93c1a1ef71929a4002b9dfb94d1ad785714f572e4adb0313722620947c091dc5ea2a73fe5d01d321f21259be9ff0770052f5f5ad13c727d6 WHIRLPOOL df48e877ca3d58b3607ad803f519a8b40a872d17f08a2c14dbeeeb7a0db43a353b40a6a6af721219eaf18afd65d051dcbb9aa7ee91e5df3fc0c55325e1442060
+AUX xloadimage-gentoo.patch 8956 SHA256 e03f0584b32a0be68f7baeb13df2ad29277ecdbb54baed0b5f878301122e0c30 SHA512 8eba3107d81f0dc6caf749e9a9889f1662e5d1004e480a9a170533f3ee00c6f9f11d3c2008655322242ab61f31b676406fd44b97d83e4ce93b8f68a12397830b WHIRLPOOL 14265bae04c592f0ee5d497ac70c0e0e52ae0757bb203c5614d7e699c43a2985879a990023d3ba088106632822cc77e8c3f646f03844edeede7fa881aedbd096
+DIST xloadimage-4.1-gentoo-r1.diff.bz2 41535 SHA256 addfd04c0a5667bb9c3f4ae6a9da35a443776086e30b84b2c3afa5eac161144a SHA512 a1a52d576eb68c44e5ff3b68a6bd87cd9b8f21f6fa8edee2d7df2329002d40f6513df6c04ecd57f66018583d0251019bd02e15756dac705b8c9cb8470cb386e3 WHIRLPOOL 6141e5f38c1b8435375021181321658b86140f28189d2d31d93ea7d23b6f6c4cd62a428b946ca35428c00cb4fcc10015a0948cda1238926a530ee9f00744f0b9
+DIST xloadimage.4.1.tar.gz 596021 SHA256 400bc7d84dcfb3265a7a1ce51819679dc3adaeda231514bd89b0f932b78ff5c4 SHA512 2c91699c8ef07c101ff9b458708ace01cab2979a5e88cf8a4e47ec971f7b4cb5571108afa3e53271ade4e8ccfdcf72ef9e2e09edfc0be6b8afaba50847aa0586 WHIRLPOOL 65ca85500a8171d95a56b5550951f6b64ad6176a48370ed41b6919cd92dde366235cf2df86fc093847102eccf6659aef1f747e32f02af97e90389cfbdc683a14
+EBUILD xloadimage-4.1-r11.ebuild 2552 SHA256 792f0baba433d3aebd72e440afdbb30184e435cfeb8263c5cfb04a0f4428c4e6 SHA512 03b9f7de5b6d51bde25176cbac7f82b37a13d73545916588b41469b1b158003663db5c534ad9fa0afde16773799634fe6f8527ab1335786d58d9daa604e7e2b9 WHIRLPOOL 572a00eb2b6aadd3eaa6391409106a4c5dd3354303f8e1ecc8a6d1046355ecad80b5c0f7248ca29a60843ef48ba45906f663915c960287af2d55f76d6740fb1a
+MISC ChangeLog 2780 SHA256 50d740147586083ad7d5bbb32a74dc0dc9d52055604b1ce5824bd7e9ea01535c SHA512 fa3bac70e59bc983dedfbe1e1dd8b25f1594eefb12f0660282077b3038e332594b19fd4435d5105576bc15cc4496890df6b5a4a343aa03fa915994fa2bab4ac2 WHIRLPOOL 2ee21b47a5c1bb7e21cea05d464c4a6ffdc7ae310fd4dcb25aef2fc9cabc1248253f8375ac8c0b9acb5e794094a01446a84d4fe1a95b7c33ccc954979df0195d
+MISC ChangeLog-2015 10181 SHA256 85217566a49975fa6f7799f1367a244b645fadbfb033225b8a21dce183a1482b SHA512 d0a5402497a501e63a91562a8d36e4aeb62874f1a5da7199e5cc85c638e5c29482bc40a0d6ee28649ab253e49327217184405c00a32cfe1ad5b0905f644baedc WHIRLPOOL 60b2eaf230dfbd702c1b9fbade06246e869e663c46b35645c56fe527c9e6a535ff674304b3d1dbad077f054035526fb543387d08de78d4409026da088e622e61
+MISC metadata.xml 265 SHA256 db1cfbffc28a5904257a8fbd4f99c081aa42b08239ff8d97aa299983b32d58fd SHA512 65fd64249e8dde8eb2ddcb67c58c05b36b10e51956e2237f60dd3ae50872492f3d5872b64106acb13e453a41960f4f817161be3c8b89e6b9a2367b8f1403ffaf WHIRLPOOL ea60bca9e9cd33aa65e8800ca0bc1c3e84a3f4cad168d7d3d8a8b73d335b866442271f1b027f7f1a6d69dbd1408555c495a581a9280c0b217036a6b736276906
diff --git a/media-gfx/xloadimage/files/xloadimage-4.1-bracket.patch b/media-gfx/xloadimage/files/xloadimage-4.1-bracket.patch
new file mode 100644
index 000000000000..5d71028652da
--- /dev/null
+++ b/media-gfx/xloadimage/files/xloadimage-4.1-bracket.patch
@@ -0,0 +1,13 @@
+diff -ruN xloadimage.4.1.patched/jpeg.c xloadimage.4.1/jpeg.c
+--- xloadimage.4.1.patched/jpeg.c 2011-08-25 22:44:04.835308001 +0200
++++ xloadimage.4.1/jpeg.c 2011-08-25 22:45:57.391307973 +0200
+@@ -321,8 +321,8 @@
+ cinfo->arith_code = TRUE;
+ #else
+ fprintf(stderr, "jpegDump: sorry, arithmetic coding not supported\n");
+- }
+ #endif
++ }
+ else if (!strncmp("grayscale", name, strlen(name)) ||
+ !strncmp("greyscale", name, strlen(name)) ||
+ !strncmp("monochrome", name, strlen(name))) {
diff --git a/media-gfx/xloadimage/files/xloadimage-4.1-endif.patch b/media-gfx/xloadimage/files/xloadimage-4.1-endif.patch
new file mode 100644
index 000000000000..df6f3e492190
--- /dev/null
+++ b/media-gfx/xloadimage/files/xloadimage-4.1-endif.patch
@@ -0,0 +1,11 @@
+--- xloadimage.4.1/copyright.orig 2005-03-04 12:58:27.347474256 +0100
++++ xloadimage.4.1/copyright.h 2005-03-04 12:58:42.913107920 +0100
+@@ -22,7 +22,7 @@
+ #ifndef __SABER__
+ #ifndef LINT
+ static char *Copyright= "Copyright 1989, 1993 Jim Frost";
+-#endif LINT
++#endif /* LINT */
+ #endif
+ #define _JIM_COPYRIGHT_
+ #endif
diff --git a/media-gfx/xloadimage/files/xloadimage-4.1-include-errno_h.patch b/media-gfx/xloadimage/files/xloadimage-4.1-include-errno_h.patch
new file mode 100644
index 000000000000..f071d761617a
--- /dev/null
+++ b/media-gfx/xloadimage/files/xloadimage-4.1-include-errno_h.patch
@@ -0,0 +1,13 @@
+--- xloadimage.4.1/img.c.orig 2003-01-01 15:14:47.000000000 +0200
++++ xloadimage.4.1/img.c 2003-01-01 15:15:05.000000000 +0200
+@@ -14,9 +14,9 @@
+ #include <stdlib.h>
+ #include <string.h>
+ #include <math.h>
++#include <errno.h>
+ #include "image.h"
+
+-extern int errno;
+
+ #define TRUE 1
+ #define FALSE 0
diff --git a/media-gfx/xloadimage/files/xloadimage-4.1-ldflags_and_exit.patch b/media-gfx/xloadimage/files/xloadimage-4.1-ldflags_and_exit.patch
new file mode 100644
index 000000000000..afdea768aa47
--- /dev/null
+++ b/media-gfx/xloadimage/files/xloadimage-4.1-ldflags_and_exit.patch
@@ -0,0 +1,23 @@
+diff -ur xloadimage.4.1.orig/Makefile.in xloadimage.4.1/Makefile.in
+--- xloadimage.4.1.orig/Makefile.in 2009-09-04 15:37:09.000000000 +0300
++++ xloadimage.4.1/Makefile.in 2009-09-04 15:38:50.000000000 +0300
+@@ -27,7 +27,7 @@
+ $(CC) -o $@ $(OBJS) build.o $(LDFLAGS) $(XLIB) $(LIBS)
+
+ uufilter: uufilter.c
+- $(CC) $(CFLAGS) $(DEFS) uufilter.c -o $@
++ $(CC) $(LDFLAGS) $(CFLAGS) $(DEFS) uufilter.c -o $@
+
+ .c.o: config.h image.h
+ $(CC) $(CFLAGS) -c $(DEFS) $<
+diff -ur xloadimage.4.1.orig/uufilter.c xloadimage.4.1/uufilter.c
+--- xloadimage.4.1.orig/uufilter.c 2009-09-04 15:37:09.000000000 +0300
++++ xloadimage.4.1/uufilter.c 2009-09-04 15:37:59.000000000 +0300
+@@ -11,6 +11,7 @@
+ */
+
+ #include <stdio.h>
++#include <stdlib.h>
+ #include <string.h>
+
+ int main(argc, argv)
diff --git a/media-gfx/xloadimage/files/xloadimage-4.1-libpng15.patch b/media-gfx/xloadimage/files/xloadimage-4.1-libpng15.patch
new file mode 100644
index 000000000000..ffd05f62b332
--- /dev/null
+++ b/media-gfx/xloadimage/files/xloadimage-4.1-libpng15.patch
@@ -0,0 +1,29 @@
+--- png.c
++++ png.c
+@@ -75,7 +75,7 @@
+ {
+ debug(" #error ");
+ output_warn( png_ptr, str);
+- longjmp(png_ptr->jmpbuf, 1); /* return control to outer routine */
++ longjmp(png_jmpbuf(png_ptr), 1); /* return control to outer routine */
+ }
+
+
+@@ -164,7 +164,7 @@
+ png_destroy_read_struct(png_pp, info_pp, end_pp);
+ return 0;
+ }
+- if (setjmp((*png_pp)->jmpbuf)) {
++ if (setjmp(png_jmpbuf(*png_pp))) {
+ /* On error */
+ png_destroy_read_struct(png_pp, info_pp, end_pp);
+ return 0;
+@@ -220,7 +220,7 @@
+ zclose(zinput_file);
+ return 0;
+ }
+- if (setjmp(png_ptr->jmpbuf)) {
++ if (setjmp(png_jmpbuf(png_ptr))) {
+ /* On error */
+ freeImage(image);
+ png_destroy_read_struct(&png_ptr, &info_ptr, &end_info);
diff --git a/media-gfx/xloadimage/files/xloadimage-4.1-unaligned-access.patch b/media-gfx/xloadimage/files/xloadimage-4.1-unaligned-access.patch
new file mode 100644
index 000000000000..874ad8a4f329
--- /dev/null
+++ b/media-gfx/xloadimage/files/xloadimage-4.1-unaligned-access.patch
@@ -0,0 +1,51 @@
+diff -ruN ./cmuwmraster.c /tmp/xloadimage.4.1/cmuwmraster.c
+--- a/cmuwmraster.c 2005-07-23 13:15:50 -0700
++++ b/cmuwmraster.c 2005-07-23 13:08:36 -0700
+@@ -20,7 +20,7 @@
+ char *name;
+ struct cmuwm_header *headerp;
+ {
+- printf("%s is a %ldx%ld %ld plane CMU WM raster\n",
++ printf("%s is a %lux%lu %lu plane CMU WM raster\n",
+ name,
+ memToVal(headerp->width, sizeof(long)),
+ memToVal(headerp->height, sizeof(long)),
+diff -ruN ./niff.c /tmp/xloadimage.4.1/niff.c
+--- a/niff.c 2005-07-23 13:15:50 -0700
++++ b/niff.c 2005-07-23 13:07:55 -0700
+@@ -24,18 +24,18 @@
+ memToVal(header->width, 4),
+ memToVal(header->height, 4));
+ if (memToVal(header->version, 4) != NIFF_VERSION)
+- printf("version %ld ", memToVal(header->version, 4));
++ printf("version %lu ", memToVal(header->version, 4));
+ printf("NIFF ");
+ switch (header->type) {
+ case NIFF_BITMAP:
+ printf("bitmap image");
+ break;
+ case NIFF_RGB:
+- printf("%ld-bit RGB image with %ld colors",
++ printf("%lu-bit RGB image with %lu colors",
+ memToVal(header->depth, 4), memToVal(header->cmap_size, 4));
+ break;
+ case NIFF_TRUE:
+- printf("%ld-bit true color image", memToVal(header->depth, 4));
++ printf("%lu-bit true color image", memToVal(header->depth, 4));
+ break;
+ default:
+ printf("image with an unknown type");
+diff -ruN ./root.c /tmp/xloadimage.4.1/root.c
+--- a/root.c 2005-07-23 13:15:51 -0700
++++ b/root.c 2005-07-23 13:05:48 -0700
+@@ -68,8 +68,8 @@
+ Pixmap *pm;
+ Atom actual_type; /* NOTUSED */
+ int format;
+- int nitems;
+- int bytes_after;
++ unsigned long nitems;
++ unsigned long bytes_after;
+
+ /* intern the property name */
+ Atom atom = XInternAtom(dpy, RETAIN_PROP_NAME, 0);
diff --git a/media-gfx/xloadimage/files/xloadimage-4.1-zio-shell-meta-char.diff b/media-gfx/xloadimage/files/xloadimage-4.1-zio-shell-meta-char.diff
new file mode 100644
index 000000000000..730504fb43f6
--- /dev/null
+++ b/media-gfx/xloadimage/files/xloadimage-4.1-zio-shell-meta-char.diff
@@ -0,0 +1,36 @@
+--- xloadimage.4.1/zio.c 1993-10-28 17:10:02.000000000 +0000
++++ xloadimage.4.1/zio.c 2005-02-28 15:32:05.895470680 +0000
+@@ -210,9 +211,30 @@
+ if ((strlen(name) > strlen(filter->extension)) &&
+ !strcmp(filter->extension,
+ name + (strlen(name) - strlen(filter->extension)))) {
+- debug(("Filtering image through '%s'\n", filter->filter));
+- zf->type= ZPIPE;
+- sprintf(buf, "%s %s", filter->filter, name);
++ char *fname, *t, *s;
++
++ /* meta-char protection from xli.
++ *
++ * protect in single quotes, replacing single quotes
++ * with '"'"', so worst-case expansion is 5x
++ */
++
++ s = fname = (char *) lmalloc(1 + (5 * strlen(name)) + 1 + 1);
++ *s++ = '\'';
++ for (t = name; *t; ++t) {
++ if ('\'' == *t) {
++ /* 'foo'bar' -> 'foo'"'"'bar' */
++ strcpy(s, "'\"'\"'");
++ s += strlen(s);
++ } else {
++ *s++ = *t;
++ }
++ }
++ strcpy (s, "'");
++ debug(("Filtering image through '%s'\n", filter->filter));
++ zf->type= ZPIPE;
++ sprintf(buf, "%s %s", filter->filter, fname);
++ lfree (fname);
+ if (! (zf->stream= popen(buf, "r"))) {
+ lfree((byte *)zf->filename);
+ zf->filename= NULL;
diff --git a/media-gfx/xloadimage/files/xloadimage-gentoo.patch b/media-gfx/xloadimage/files/xloadimage-gentoo.patch
new file mode 100644
index 000000000000..896786680e30
--- /dev/null
+++ b/media-gfx/xloadimage/files/xloadimage-gentoo.patch
@@ -0,0 +1,258 @@
+diff -ru xloadimage.4.1.orig/config.c xloadimage.4.1/config.c
+--- xloadimage.4.1.orig/config.c 2005-10-22 15:47:17.000000000 +0200
++++ xloadimage.4.1/config.c 2005-10-22 15:58:16.000000000 +0200
+@@ -313,12 +313,13 @@
+ * -1 if access denied or not found, 0 if ok.
+ */
+
+-int findImage(name, fullname)
++int findImage(name, fullname, size)
+ char *name, *fullname;
++ size_t size;
+ { unsigned int p, e;
+ struct stat sbuf;
+
+- strcpy(fullname, name);
++ strncpy(fullname, name, size);
+ if (!strcmp(name, "stdin")) /* stdin is special name */
+ return(0);
+
+@@ -327,7 +328,7 @@
+ if (! stat(fullname, &sbuf))
+ return(fileIsOk(fullname, &sbuf));
+ #ifndef NO_COMPRESS
+- strcat(fullname, ".Z");
++ strncat(fullname, ".Z", size);
+ if (! stat(fullname, &sbuf))
+ return(fileIsOk(fullname, &sbuf));
+ #endif
+@@ -336,12 +337,12 @@
+ #ifdef VMS
+ sprintf(fullname, "%s%s", Paths[p], name);
+ #else
+- sprintf(fullname, "%s/%s", Paths[p], name);
++ snprintf(fullname, size, "%s/%s", Paths[p], name);
+ #endif
+ if (! stat(fullname, &sbuf))
+ return(fileIsOk(fullname, &sbuf));
+ #ifndef NO_COMPRESS
+- strcat(fullname, ".Z");
++ strncat(fullname, ".Z", size);
+ if (! stat(fullname, &sbuf))
+ #endif
+ return(fileIsOk(fullname, &sbuf));
+@@ -349,12 +350,12 @@
+ #ifdef VMS
+ sprintf(fullname, "%s%s%s", Paths[p], name, Exts[e]);
+ #else
+- sprintf(fullname, "%s/%s%s", Paths[p], name, Exts[e]);
++ snprintf(fullname, size, "%s/%s%s", Paths[p], name, Exts[e]);
+ #endif
+ if (! stat(fullname, &sbuf))
+ return(fileIsOk(fullname, &sbuf));
+ #ifndef NO_COMPRESS
+- strcat(fullname, ".Z");
++ strncat(fullname, ".Z", size);
+ if (! stat(fullname, &sbuf))
+ return(fileIsOk(fullname, &sbuf));
+ #endif
+@@ -362,11 +363,11 @@
+ }
+
+ for (e= 0; e < NumExts; e++) {
+- sprintf(fullname, "%s%s", name, Exts[e]);
++ snprintf(fullname, size, "%s%s", name, Exts[e]);
+ if (! stat(fullname, &sbuf))
+ return(fileIsOk(fullname, &sbuf));
+ #ifndef NO_COMPRESS
+- strcat(fullname, ".Z");
++ strncat(fullname, ".Z", size);
+ if (! stat(fullname, &sbuf))
+ return(fileIsOk(fullname, &sbuf));
+ #endif
+@@ -392,7 +393,7 @@
+ #ifdef VMS
+ sprintf(buf, "directory %s", Paths[a]);
+ #else
+- sprintf(buf, "ls %s", Paths[a]);
++ snprintf(buf, sizeof(buf)-1, "ls %s", Paths[a]);
+ #endif
+ if (system(buf) < 0) {
+ #ifdef VMS
+diff -ru xloadimage.4.1.orig/imagetypes.c xloadimage.4.1/imagetypes.c
+--- xloadimage.4.1.orig/imagetypes.c 2005-10-22 15:47:17.000000000 +0200
++++ xloadimage.4.1/imagetypes.c 2005-10-22 15:51:31.000000000 +0200
+@@ -17,7 +17,7 @@
+ /* SUPPRESS 560 */
+
+ extern int errno;
+-extern int findImage(char *name, char *fullname);
++extern int findImage(char *name, char *fullname, size_t size);
+
+ /* load a named image
+ */
+@@ -32,7 +32,7 @@
+ Image *image;
+ int a;
+
+- if (findImage(name, fullname) < 0) {
++ if (findImage(name, fullname, BUFSIZ) < 0) {
+ if (errno == ENOENT)
+ fprintf(stderr, "%s: image not found\n", name);
+ else
+@@ -109,7 +109,7 @@
+ { char fullname[BUFSIZ];
+ int a;
+
+- if (findImage(name, fullname) < 0) {
++ if (findImage(name, fullname, BUFSIZ) < 0) {
+ if (errno == ENOENT)
+ fprintf(stderr, "%s: image not found\n", name);
+ else
+diff -ru xloadimage.4.1.orig/jpeg.c xloadimage.4.1/jpeg.c
+--- xloadimage.4.1.orig/jpeg.c 2005-10-22 15:47:17.000000000 +0200
++++ xloadimage.4.1/jpeg.c 2005-10-22 16:02:03.000000000 +0200
+@@ -19,7 +19,7 @@
+ #undef debug
+
+ #ifdef DEBUG
+-# define debug(xx) fprintf(stderr,xx)
++# define debug(xx) fprintf(stderr, "%s", xx)
+ #else
+ # define debug(xx)
+ #endif
+diff -ru xloadimage.4.1.orig/mcidas.c xloadimage.4.1/mcidas.c
+--- xloadimage.4.1.orig/mcidas.c 2005-10-22 15:47:17.000000000 +0200
++++ xloadimage.4.1/mcidas.c 2005-10-22 15:48:49.000000000 +0200
+@@ -63,7 +63,7 @@
+ minute = (time % 10000) / 100;
+ second = (time % 100);
+
+- sprintf(buf, "%d:%2.2d:%2.2d %s %d, %d (day %d)",
++ snprintf(buf, 29, "%d:%2.2d:%2.2d %s %d, %d (day %d)",
+ hour, minute, second, month_info[month].name, day, year,
+ (date % 1000));
+ return(buf);
+diff -ru xloadimage.4.1.orig/png.c xloadimage.4.1/png.c
+--- xloadimage.4.1.orig/png.c 2005-10-22 15:47:17.000000000 +0200
++++ xloadimage.4.1/png.c 2005-10-22 16:02:20.000000000 +0200
+@@ -30,7 +30,7 @@
+ #undef debug
+
+ #ifdef DEBUG
+-# define debug(xx) fprintf(stderr,xx)
++# define debug(xx) fprintf(stderr, "%s", xx)
+ #else
+ # define debug(xx)
+ #endif
+diff -ru xloadimage.4.1.orig/reduce.c xloadimage.4.1/reduce.c
+--- xloadimage.4.1.orig/reduce.c 2005-10-22 15:47:17.000000000 +0200
++++ xloadimage.4.1/reduce.c 2005-10-22 15:48:49.000000000 +0200
+@@ -502,7 +502,7 @@
+
+ depth= colorsToDepth(n);
+ new_image= newRGBImage(image->width, image->height, depth);
+- sprintf(buf, "%s (%d colors)", image->title, n);
++ snprintf(buf, BUFSIZ - 1, "%s (%d colors)", image->title, n);
+ new_image->title= dupString(buf);
+
+ /* calculate RGB table from each color area. this should really calculate
+diff -ru xloadimage.4.1.orig/rle.c xloadimage.4.1/rle.c
+--- xloadimage.4.1.orig/rle.c 2005-10-22 15:47:17.000000000 +0200
++++ xloadimage.4.1/rle.c 2005-10-22 16:00:06.000000000 +0200
+@@ -21,7 +21,7 @@
+ #undef debug
+
+ #ifdef DEBUG
+-# define debug(xx) fprintf(stderr,xx)
++# define debug(xx) fprintf(stderr, "%s", xx)
+ #else
+ # define debug(xx)
+ #endif
+diff -ru xloadimage.4.1.orig/rotate.c xloadimage.4.1/rotate.c
+--- xloadimage.4.1.orig/rotate.c 2005-10-22 15:47:17.000000000 +0200
++++ xloadimage.4.1/rotate.c 2005-10-22 15:48:49.000000000 +0200
+@@ -70,7 +70,7 @@
+ { printf(" Rotating image by %d degrees...", degrees);
+ fflush(stdout);
+ }
+- sprintf(buf, "%s (rotated by %d degrees)", simage->title, degrees);
++ snprintf(buf, BUFSIZ - 1, "%s (rotated by %d degrees)", simage->title, degrees);
+
+ image1 = simage;
+ image2 = NULL;
+diff -ru xloadimage.4.1.orig/tiff.c xloadimage.4.1/tiff.c
+--- xloadimage.4.1.orig/tiff.c 2005-10-22 15:47:17.000000000 +0200
++++ xloadimage.4.1/tiff.c 2005-10-22 15:48:49.000000000 +0200
+@@ -133,14 +133,14 @@
+ switch (info->photometric) {
+ case PHOTOMETRIC_MINISBLACK:
+ if (info->bitspersample > 1) {
+- sprintf(buf, "%d-bit greyscale ", info->bitspersample);
++ snprintf(buf, 31, "%d-bit greyscale ", info->bitspersample);
+ return(buf);
+ }
+ else
+ return "white-on-black ";
+ case PHOTOMETRIC_MINISWHITE:
+ if (info->bitspersample > 1) {
+- sprintf(buf, "%d-bit greyscale ", info->bitspersample);
++ snprintf(buf, 31, "%d-bit greyscale ", info->bitspersample);
+ return(buf);
+ }
+ else
+diff -ru xloadimage.4.1.orig/window.c xloadimage.4.1/window.c
+--- xloadimage.4.1.orig/window.c 2005-10-22 15:47:17.000000000 +0200
++++ xloadimage.4.1/window.c 2005-10-22 15:48:50.000000000 +0200
+@@ -606,7 +606,7 @@
+ else {
+ char def_geom[30];
+
+- sprintf(def_geom, "%ux%u+0+0", image->width, image->height);
++ snprintf(def_geom, 29, "%ux%u+0+0", image->width, image->height);
+ XGeometry(disp, scrn, opt->info.geometry.string, def_geom, 0, 1, 1, 0, 0,
+ (int *)&winx, (int *)&winy, (int *)&winwidth, (int *)&winheight);
+ }
+diff -ru xloadimage.4.1.orig/zio.c xloadimage.4.1/zio.c
+--- xloadimage.4.1.orig/zio.c 2005-10-22 15:47:17.000000000 +0200
++++ xloadimage.4.1/zio.c 2005-10-22 15:48:50.000000000 +0200
+@@ -233,7 +233,7 @@
+ strcpy (s, "'");
+ debug(("Filtering image through '%s'\n", filter->filter));
+ zf->type= ZPIPE;
+- sprintf(buf, "%s %s", filter->filter, fname);
++ snprintf(buf, BUFSIZ - 1, "%s %s", filter->filter, fname);
+ lfree (fname);
+ if (! (zf->stream= popen(buf, "r"))) {
+ lfree((byte *)zf->filename);
+diff -ru xloadimage.4.1.orig/zoom.c xloadimage.4.1/zoom.c
+--- xloadimage.4.1.orig/zoom.c 2005-10-22 15:47:17.000000000 +0200
++++ xloadimage.4.1/zoom.c 2005-10-22 15:48:50.000000000 +0200
+@@ -63,23 +63,23 @@
+ if (!xzoom) {
+ if (verbose)
+ printf(" Zooming image Y axis by %d%%...", yzoom);
+- sprintf(buf, "%s (Y zoom %d%%)", oimage->title, yzoom);
++ snprintf(buf, BUFSIZ - 1, "%s (Y zoom %d%%)", oimage->title, yzoom);
+ }
+ else if (!yzoom) {
+ if (verbose)
+ printf(" Zooming image X axis by %d%%...", xzoom);
+- sprintf(buf, "%s (X zoom %d%%)", oimage->title, xzoom);
++ snprintf(buf, BUFSIZ - 1, "%s (X zoom %d%%)", oimage->title, xzoom);
+ }
+ else if (xzoom == yzoom) {
+ if (verbose)
+ printf(" Zooming image by %d%%...", xzoom);
+- sprintf(buf, "%s (%d%% zoom)", oimage->title, xzoom);
++ snprintf(buf, BUFSIZ - 1, "%s (%d%% zoom)", oimage->title, xzoom);
+ }
+ else {
+ if (verbose)
+ printf(" Zooming image X axis by %d%% and Y axis by %d%%...",
+ xzoom, yzoom);
+- sprintf(buf, "%s (X zoom %d%% Y zoom %d%%)", oimage->title,
++ snprintf(buf, BUFSIZ - 1, "%s (X zoom %d%% Y zoom %d%%)", oimage->title,
+ xzoom, yzoom);
+ }
+ if (verbose)
diff --git a/media-gfx/xloadimage/metadata.xml b/media-gfx/xloadimage/metadata.xml
new file mode 100644
index 000000000000..6ade85e1c642
--- /dev/null
+++ b/media-gfx/xloadimage/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 type="project">
+ <email>graphics@gentoo.org</email>
+ <name>Gentoo Graphics Project</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/media-gfx/xloadimage/xloadimage-4.1-r11.ebuild b/media-gfx/xloadimage/xloadimage-4.1-r11.ebuild
new file mode 100644
index 000000000000..88c8bacd1277
--- /dev/null
+++ b/media-gfx/xloadimage/xloadimage-4.1-r11.ebuild
@@ -0,0 +1,94 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=2
+inherit autotools eutils flag-o-matic toolchain-funcs
+
+DESCRIPTION="utility to view many different types of images under X11"
+HOMEPAGE="http://world.std.com/~jimf/xloadimage.html"
+SRC_URI="ftp://ftp.x.org/R5contrib/${P/-/.}.tar.gz
+ mirror://gentoo/${P}-gentoo-r1.diff.bz2"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 sh sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
+IUSE="tiff jpeg png"
+
+RDEPEND="x11-libs/libX11
+ tiff? ( media-libs/tiff )
+ png? ( media-libs/libpng )
+ jpeg? ( virtual/jpeg:0 )"
+DEPEND="${RDEPEND}
+ !media-gfx/xli"
+
+S=${WORKDIR}/${P/-/.}
+
+src_prepare() {
+ epatch "${WORKDIR}"/${P}-gentoo-r1.diff
+ epatch "${FILESDIR}"/${P}-zio-shell-meta-char.diff
+ epatch "${FILESDIR}"/${P}-endif.patch
+
+ # Do not define errno extern, but rather include errno.h
+ # <azarah@gentoo.org> (1 Jan 2003)
+ epatch "${FILESDIR}"/${P}-include-errno_h.patch
+
+ epatch "${FILESDIR}"/xloadimage-gentoo.patch
+
+ sed -i -e "s:OPT_FLAGS=:OPT_FLAGS=$CFLAGS:" Make.conf || die
+ sed -i -e "s:^#include <varargs.h>:#include <stdarg.h>:" rlelib.c || die
+
+ # On FreeBSD systems malloc.h is a false header asking for fixes.
+ # On MacOSX it would require malloc/malloc.h
+ # On other systems it's simply unneeded
+ sed -i -e 's,<malloc.h>,<stdlib.h>,' vicar.c || die
+
+ epatch "${FILESDIR}"/${P}-unaligned-access.patch
+ epatch "${FILESDIR}"/${P}-ldflags_and_exit.patch
+
+ sed -i -e "/^DEFS = /s:/etc:${EPREFIX}/etc:" Makefile.in
+
+ epatch "${FILESDIR}"/${P}-libpng15.patch
+ sed -i \
+ -e 's:png_set_gray_1_2_4_to_8:png_set_expand_gray_1_2_4_to_8:' \
+ png.c || die
+
+ # One of the previous patches screws up a bracket...
+ epatch "${FILESDIR}"/${P}-bracket.patch
+
+ chmod +x configure
+ eautoreconf
+}
+
+src_configure() {
+ # Set TIFFHeader to TIFFHeaderCommon wrt #319383
+ has_version '>=media-libs/tiff-4.0.0_pre' && \
+ append-flags -DTIFFHeader=TIFFHeaderCommon
+
+ tc-export CC
+ econf $(use_with jpeg) \
+ $(use_with png) \
+ $(use_with tiff)
+}
+
+src_compile() {
+ emake SYSPATHFILE="${EPREFIX}"/etc/X11/Xloadimage || die
+}
+
+src_install() {
+ dobin xloadimage uufilter || die
+
+ dosym xloadimage /usr/bin/xsetbg || die
+ dosym xloadimage /usr/bin/xview || die
+
+ insinto /etc/X11
+ doins xloadimagerc || die
+
+ newman xloadimage.man xloadimage.1 || die
+ newman uufilter.man uufilter.1 || die
+
+ echo ".so man1/xloadimage.1" > "${T}"/xsetbg.1
+ doman "${T}"/xsetbg.1 || die
+ newman "${T}"/xsetbg.1 xview.1 || die
+
+ dodoc README
+}
diff --git a/media-gfx/xpaint/Manifest b/media-gfx/xpaint/Manifest
new file mode 100644
index 000000000000..de4919b7f975
--- /dev/null
+++ b/media-gfx/xpaint/Manifest
@@ -0,0 +1,13 @@
+AUX xpaint-2.9.10.2-QA2.patch 2235 SHA256 7bcb094de312522af55e6107a96cd9611da710d3b62dd681a7deef943dec1bc7 SHA512 5b8a34d8181f2b3b3b8459d4579b44e8a22807b25458401d3fe9243922ea1c7d565c25e938ff9506202ddd755e70ac103e70f9f258356ad0b240d8cbf2c53271 WHIRLPOOL 126983cf5b9ad0353fd931313526332473c7b50bec4b884554e63dcf846be708d11a41c94b94e37117c67c0d1bc1d1e5bbb45cd4271169e3ef8d448c9137a7ce
+AUX xpaint-2.9.10.2-tiff.patch 860 SHA256 d60e1c2cbd0f4ba89f262ff471ad40bf7c640b6f4138b444b57a51ef4cf63b28 SHA512 38a34e3f317a3ac9a0ea5b8a62f3c93566c70889315ffa652c1dbec796e1448efabdcd58c8a7e67e70a4fa185871dfd6ca163bf38f50e9592ac792a4ca827dac WHIRLPOOL d7e6a5693de9b8492f1abaaf327fbed979dd39888bf992589422eb00a338b7aae2a312cc7aa39b8db0384d981aea74160634b250baab313261bc76afcbc565ae
+AUX xpaint-2.9.10.3-Fix-build-with-clang.patch 669 SHA256 04213e1ce4ea8bbe5a4b9b9271d6fbf7e1da800971be53f67ba740c1ddeade41 SHA512 7a8138a82eb3d4824d138a21d03759986ad03d05d65d0ef24fb911b642e1906bc5b6aba7417836fa4756cb63ae09427b7ec2a05be1588fd86a1668b52418f9e7 WHIRLPOOL 3b98a7a88458314f38a1287098f9ee1d6f175ab3b3a2d7965071ac60f24b8d2e2075e4ecb12e613ad9e800d978b81fd1e7a7616b87952fcf4f34197ce5f0ebc6
+AUX xpaint-2.9.9.4-QA1.patch 3336 SHA256 ede53a3bde4eeaf267234fa918ad2ace481add0988eeab4818ef6a15353de522 SHA512 2760bd60bc1e6335c48ce4576e9176c5893e70568f99d535b48878e6917591258ff5d206851c312b3af6b1bcda93076a60bcb3452176a49f588d4ffa1ed69a79 WHIRLPOOL 498fea0ef4149181f9bbd057d3c5e75b161f7704531e7ba1b96ee2d44560fd07a2ef259d8c5dfe153b9b3d2a0fb366ad0bbe1f155537fd9cfc61408728089dc2
+AUX xpaint-2.9.9.4-parallel-make.patch 655 SHA256 1e416437a4c30d7bb6567baf6707a2dd32ad91e0ffc634cd4ac95a2a753568a1 SHA512 45161a7a76f05ebff009b8dda5c52baddcd936ee8c5984a3e0fa02d80a56947ba55df68c1241115dcce5a1f75d8993794b761ba0dbadb94b86b9c2ebfbe7c3d7 WHIRLPOOL 5ab4032ac7e81533dc2e51b235e8722f8ef491b0adccc40ea59c4c96d4157188d2f4b9c8c4202c2917e66e51ba33935f943a08bed05f4f39f7707907155102cf
+AUX xpaint-2.9.9.4-submake.patch 747 SHA256 483e844cc41a6899f114d317a2a283748ff509c1523d49bf790e32bfbb456a4b SHA512 72525c5cd892772210cba85b0f5ff193a6474657d6ffbead23c711de3346c87f8d306e252fdd8b98ae136f32311d88be6107bbe72932039bf17e4c0c64b70bae WHIRLPOOL 3324a1663897e968c5d962341ddc0c71ff8e67728ac5e18ed6e23bc772e64454ff33a1fb05aae491abad39f035bcdb2292f1a9ac38c34686b66a0b6f8b882578
+DIST xpaint-2.9.10.2.tar.bz2 1245813 SHA256 7f1554c8390bc68da2bcc0449407b8cc69616ce5d2170f97d1b30aee9fcbdcf6 SHA512 8aa388d4b82b5867817eca2188f50734140c395efe663c290a78b4f24314754fb29257165a64c9b8a03634dede03d919d9a3a54c1d32049cc34216a1f3d4e499 WHIRLPOOL 5ffe99ba979590c1ad675f7cbd57e4dba92aa7c24a9600784224c913069cad1fa88a676180d60fc2cc60c6f7185056385ccb59f2725c9799781335ed38d8934a
+DIST xpaint-2.9.10.3.tar.bz2 1283725 SHA256 9de0cb99557ea8329391b5d45ad59be080972924258aeb1b3c0c748bab9586c7 SHA512 d5d365e0308e50166e5ac70859e388436d8f0cb870b2dea0155fbc9a65a8377a861bea2217df2b5c016f8751c9ff1f74509eaff310acfaacd7b29c51cf726ac5 WHIRLPOOL 4d0ec766168fe329cba88506ff98f560f8fc4067245d1062ae9649db5bc3f380181e98eae0b443deb13f4f3de38c8239cc1d608499f61941cc18c18c70849d61
+EBUILD xpaint-2.9.10.2.ebuild 1635 SHA256 91a6219aca482b05a1551bd686b30dc864300fe0df9683ea52cc3db9b47b8e83 SHA512 63a3808cc6fba26a962f821d140aff7d756be1aa72211d29a2dc65e05dd841640b6a8b81fa6d3dedfff9a27d40936278d8d947052e82b30ef945eb41c62c066f WHIRLPOOL 0e53fc14548810012a05087e23188b0971fc8a48320ea45249a2aa337f9fd3b5fdb331e4d718cb5ec2e032815460aa61e40ae18d9e821d7f6da09fa64ec2a058
+EBUILD xpaint-2.9.10.3.ebuild 1700 SHA256 7dd71dea4c51b1309a3be8fdb69e4fd9787c7285ec3aeeb78555515ff617fff4 SHA512 767027b82623caaf63f312f534b6636dbe277b6ce9ce18ff119eabd6ebe0074ea59e4502afde67f69cbc76b3ff2972e96124537eaf5fddc0787b4d78e7897adc WHIRLPOOL 8cc17dfbe36a0941f7c77247a80edeee4dbf49ee3237dce80b287c86dca49970d9adc57f4b4861ac9345c0abcc8b1777b45021a1d13dfa8a934314342a21d501
+MISC ChangeLog 3111 SHA256 618ac1b48748ad326aa0a3e726bcc3125fc809f41541f77b8ace733038571f6e SHA512 97fd11ba29c3c5eefb5a5572ec2c7b7bff3e9fce578a76d6a044a6d7d8c88b777f23515bd7f548c2c98b81fd5cb872e0d483e39984da06ac63934e94833ff794 WHIRLPOOL 62100d1e0a89122cc79ed77fe9f36264fdbdcc303bfa46891fa9e43f2a0fb21801b17cabff6a6e392f1b17237f0a4c552e35907d0c764fb330fd61d08f24d6e3
+MISC ChangeLog-2015 1891 SHA256 b6da4668d1ba11a88fb90e9cdcd11151c7ca8de1f24a18f99c9af39bc217c6f8 SHA512 04ee75795ed83ec92708ff6cccdf06ccfaefb4aeb63f739935255d1d3f53626dda62b8cbb54902bdb10bbb82815bd47365671d2f971181185297dfae513a43c2 WHIRLPOOL ea229fe571955bed1ec87e3cf5313f412c74c9ce3d88308b7d166e4d6958d28ed1d1abd7da08ae49a48dfc7c17dba5c60f2c04c822a1c886a118a1dfd17063a4
+MISC metadata.xml 1204 SHA256 53840a7690c0e366ca740d38b7537f99868b21c9f00f54fd8ee076c6a207f93a SHA512 e2b37b1d3381dd97ecdd40f20535426539d7caff8032ffcb5e6b74d65968adb7319523a55e45d31a697a75b9aa384e0a5155059237730ea080cf46532da12c22 WHIRLPOOL ec87e13cfd7ad21b00a67fd2aec272c9ba03e98769b73c82e4d8df19da61519f2338906fa1f651606210e4edb4a61b91b395edc20b3f524005ad8bdf90308742
diff --git a/media-gfx/xpaint/files/xpaint-2.9.10.2-QA2.patch b/media-gfx/xpaint/files/xpaint-2.9.10.2-QA2.patch
new file mode 100644
index 000000000000..9179585974c2
--- /dev/null
+++ b/media-gfx/xpaint/files/xpaint-2.9.10.2-QA2.patch
@@ -0,0 +1,67 @@
+From 08bdf5f5d0c64384b2be16bd8ac68244675388d5 Mon Sep 17 00:00:00 2001
+From: hasufell <hasufell@gentoo.org>
+Date: Sun, 6 Oct 2013 21:13:51 +0200
+Subject: [PATCH] respect CFLAGS
+
+---
+ Makefile.am | 2 +-
+ configure.ac | 2 +-
+ rw/Makefile.am | 2 +-
+ rw/configure.ac | 2 +-
+ 4 files changed, 4 insertions(+), 4 deletions(-)
+
+diff --git a/Makefile.am b/Makefile.am
+index 4cf1753..414597f 100644
+--- a/Makefile.am
++++ b/Makefile.am
+@@ -26,7 +26,7 @@ EXTERN_VIEWER = display
+ ## -D_BSD_SOURCE -D_SVID_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 \
+ ## -DFUNCPROTO=15 -DNARROWPROTO
+
+-ARCH_DEFINES = -g -O2 -fno-strict-aliasing -fPIC
++ARCH_DEFINES = -fno-strict-aliasing -fPIC
+
+ ##
+ ## Specific xpaint options
+diff --git a/configure.ac b/configure.ac
+index e058529..3979075 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -29,7 +29,7 @@ AC_TYPE_UINT16_T
+ AC_TYPE_UINT32_T
+ AC_TYPE_UINT64_T
+
+-CFLAGS="-I/usr/include -I/usr/include/X11 -I/usr/include/X11/Xaw3dxft"
++CFLAGS="$CFLAGS -I/usr/include -I/usr/include/X11 -I/usr/include/X11/Xaw3dxft"
+ LIBS="$LIBS -lm"
+ echo "VERSION = $VERSION" > .version
+
+diff --git a/rw/Makefile.am b/rw/Makefile.am
+index d91d5d5..2f50253 100644
+--- a/rw/Makefile.am
++++ b/rw/Makefile.am
+@@ -10,7 +10,7 @@ SHAREDIR = $(prefix)/share/xpaint
+ ## -D_BSD_SOURCE -D_SVID_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 \
+ ## -DFUNCPROTO=15 -DNARROWPROTO
+
+-ARCH_DEFINES = -g -O2 -fno-strict-aliasing -fPIC
++ARCH_DEFINES = -fno-strict-aliasing -fPIC
+
+ ##
+ ## Specific xpaint options
+diff --git a/rw/configure.ac b/rw/configure.ac
+index fb4f3d4..d9c7601 100644
+--- a/rw/configure.ac
++++ b/rw/configure.ac
+@@ -29,7 +29,7 @@ AC_TYPE_UINT16_T
+ AC_TYPE_UINT32_T
+ AC_TYPE_UINT64_T
+
+-CFLAGS="-D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DFUNCPROTO=15 -DNARROWPROTO -I/usr/include -I/usr/include/X11 -I/usr/include/X11/Xaw3dxft"
++CFLAGS="$CFLAGS -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DFUNCPROTO=15 -DNARROWPROTO -I/usr/include -I/usr/include/X11 -I/usr/include/X11/Xaw3dxft"
+ LIBS="$LIBS -lm"
+
+ dnl check X11
+--
+1.8.3.2
+
diff --git a/media-gfx/xpaint/files/xpaint-2.9.10.2-tiff.patch b/media-gfx/xpaint/files/xpaint-2.9.10.2-tiff.patch
new file mode 100644
index 000000000000..20e59872b84d
--- /dev/null
+++ b/media-gfx/xpaint/files/xpaint-2.9.10.2-tiff.patch
@@ -0,0 +1,37 @@
+From: Julian Ospald <hasufell@gentoo.org>
+Date: Fri Jun 20 13:52:42 UTC 2014
+Subject: fix tiff build switch
+
+--- xpaint-2.9.10.2/configure.ac
++++ xpaint-2.9.10.2/configure.ac
+@@ -125,9 +125,11 @@
+ with_libtiff="yes"
+ tiff_header_found="no"
+ #
+-AC_ARG_ENABLE(tiff,
++AC_ARG_ENABLE([tiff],
+ [ --enable-tiff[=[yes|no]] Build with TIFF support [ [default=yes] ]],
+-test "$enable_tiff" = "no" && with_libtiff="no")
++ [with_libtiff=$enableval],
++ [with_libtiff=yes]
++)
+ #
+ if test "x$with_libtiff" = xyes ; then
+ #TIFF compiled with JPEG and JBIG support?
+--- xpaint-2.9.10.2/rw/readWriteTIFF.c
++++ xpaint-2.9.10.2/rw/readWriteTIFF.c
+@@ -14,6 +14,8 @@
+
+ /* $Id$ */
+
++#ifdef HAVE_TIFF
++
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include "tiffio.h"
+@@ -527,3 +529,5 @@ int WriteTIFF(char *file, Image * image)
+
+ return 0;
+ }
++
++#endif /* HAVE_TIFF */
diff --git a/media-gfx/xpaint/files/xpaint-2.9.10.3-Fix-build-with-clang.patch b/media-gfx/xpaint/files/xpaint-2.9.10.3-Fix-build-with-clang.patch
new file mode 100644
index 000000000000..a5a26214409e
--- /dev/null
+++ b/media-gfx/xpaint/files/xpaint-2.9.10.3-Fix-build-with-clang.patch
@@ -0,0 +1,25 @@
+From 69a76e5f4a72d83635cd413b7460df4776b2605f Mon Sep 17 00:00:00 2001
+From: hasufell <hasufell@gentoo.org>
+Date: Sun, 16 Aug 2015 16:51:26 +0200
+Subject: [PATCH] Fix build with clang
+
+---
+ rw/readWriteTGA.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/rw/readWriteTGA.c b/rw/readWriteTGA.c
+index 306a751..9046ee3 100644
+--- a/rw/readWriteTGA.c
++++ b/rw/readWriteTGA.c
+@@ -607,7 +607,7 @@ int WriteTGA(char *file_name, Image * image)
+ int tga_defdir = 1;
+ int transparency = -1;
+
+- if (!image) return;
++ if (!image) return -1;
+ w = image->width;
+ h = image->height;
+ bpp = image->scale;
+--
+2.5.0
+
diff --git a/media-gfx/xpaint/files/xpaint-2.9.9.4-QA1.patch b/media-gfx/xpaint/files/xpaint-2.9.9.4-QA1.patch
new file mode 100644
index 000000000000..31e3a38ba005
--- /dev/null
+++ b/media-gfx/xpaint/files/xpaint-2.9.9.4-QA1.patch
@@ -0,0 +1,91 @@
+From 2987bfa203a8467a697efffa211b90b12858b40b Mon Sep 17 00:00:00 2001
+From: hasufell <hasufell@gentoo.org>
+Date: Sun, 6 Oct 2013 20:37:28 +0200
+Subject: [PATCH] respect flags, add WITH_PGF option, fix echo
+
+---
+ util/Makefile | 56 +++++++++++++++++++++++++++++++++++---------------------
+ 1 file changed, 35 insertions(+), 21 deletions(-)
+
+diff --git a/util/Makefile b/util/Makefile
+index e6af415..21a0d17 100644
+--- a/util/Makefile
++++ b/util/Makefile
+@@ -1,39 +1,53 @@
+-GCC = gcc
+-CPP = g++ -fpermissive
++# set to anything but "no" to enable
++WITH_PGF=no
+
++ifneq ($(WITH_PGF),no)
+ all: pdfconcat ppmtops pgf2pnm
++else
++all: pdfconcat ppmtops
++endif
+
+ pdfconcat:
+- $(GCC) -O3 -s -DNDEBUG=1 -DNO_CONFIG=1 -ansi -pedantic -Wunused -Wall -W -Wstrict-prototypes -Wtraditional -Wnested-externs -Winline -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wmissing-prototypes -Wmissing-declarations pdfconcat.c -o pdfconcat
++ $(CC) $(CFLAGS) -DNDEBUG=1 -DNO_CONFIG=1 -ansi -pedantic -Wunused -Wall -W -Wstrict-prototypes -Wtraditional -Wnested-externs -Winline -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wmissing-prototypes -Wmissing-declarations pdfconcat.c -o pdfconcat $(LDFLAGS)
+
+ ppmtops:
+- $(GCC) ppmtops.c -o ppmtops
++ $(CC) $(CFLAGS) ppmtops.c -o ppmtops $(LDFLAGS)
+
++ifneq ($(WITH_PGF),no)
+ pgf2pnm: main.cpp pnm.cpp
+ @if [ -x /usr/include/libpgf ] ; then \
+- $(CPP) -c main.cpp -o main.o -I/usr/include/libpgf ; \
+- $(CPP) -c pnm.cpp -o pnm.o -I/usr/include/libpgf ; \
+- $(CPP) -o pgf2pnm main.o pnm.o -lpgf ; \
++ $(CXX) $(CXXFLAGS) -fpermissive -c main.cpp -o main.o -I/usr/include/libpgf ; \
++ $(CXX) $(CXXFLAGS) -fpermissive -c pnm.cpp -o pnm.o -I/usr/include/libpgf ; \
++ $(CXX) $(CXXFLAGS) -fpermissive -o pgf2pnm main.o pnm.o $(LDFLAGS) -lpgf ; \
+ else \
+- @echo "libpgf not installed !!" ; \
++ echo "libpgf not installed !!" ; \
+ fi
++endif
+
+-install:
++install-common:
+ @if [ -x pdfconcat ] ; then \
+- mkdir -p $(DESTDIR)/usr/bin ; \
+- install -c pdfconcat $(DESTDIR)/usr/bin ; \
+- echo "install -c pdfconcat $(DESTDIR)/usr/bin" ; \
+- mkdir -p $(DESTDIR)/usr/share/man/man1 ; \
+- install -c -m 644 pdfconcat.1 $(DESTDIR)/usr/share/man/man1 ; \
+- echo "install -c pdfconcat.1 $(DESTDIR)/usr/share/man/man1" ; fi
++ mkdir -p "$(DESTDIR)"/usr/bin ; \
++ install -c pdfconcat "$(DESTDIR)"/usr/bin ; \
++ echo "install -c pdfconcat "$(DESTDIR)"/usr/bin" ; \
++ mkdir -p "$(DESTDIR)"/usr/share/man/man1 ; \
++ install -c -m 644 pdfconcat.1 "$(DESTDIR)"/usr/share/man/man1 ; \
++ echo "install -c pdfconcat.1 "$(DESTDIR)"/usr/share/man/man1" ; fi
+ @if [ -x ppmtops ] ; then \
+- mkdir -p $(DESTDIR)/usr/bin ; \
+- install -c ppmtops $(DESTDIR)/usr/bin ; \
+- echo "install -c ppmtops $(DESTDIR)/usr/bin" ; fi
++ mkdir -p "$(DESTDIR)"/usr/bin ; \
++ install -c ppmtops "$(DESTDIR)"/usr/bin ; \
++ echo "install -c ppmtops "$(DESTDIR)"/usr/bin" ; fi
++
++install-pgf:
+ @if [ -x pgf2pnm ] ; then \
+- mkdir -p $(DESTDIR)/usr/bin ; \
+- install -c pgf2pnm $(DESTDIR)/usr/bin ; \
+- echo "install -c pgf2pnm $(DESTDIR)/usr/bin" ; fi
++ mkdir -p "$(DESTDIR)"/usr/bin ; \
++ install -c pgf2pnm "$(DESTDIR)"/usr/bin ; \
++ echo "install -c pgf2pnm "$(DESTDIR)"/usr/bin" ; fi
++
++ifneq ($(WITH_PGF),no)
++install: install-common install-pgf
++else
++install: install-common
++endif
+
+ clean:
+ rm -f core *~ *.o pdfconcat ppmtops pgf2pnm
+--
+1.8.3.2
+
diff --git a/media-gfx/xpaint/files/xpaint-2.9.9.4-parallel-make.patch b/media-gfx/xpaint/files/xpaint-2.9.9.4-parallel-make.patch
new file mode 100644
index 000000000000..250f634f9973
--- /dev/null
+++ b/media-gfx/xpaint/files/xpaint-2.9.9.4-parallel-make.patch
@@ -0,0 +1,25 @@
+From ae11f5cb975749bd8d6ffda48301eb4aadfee35d Mon Sep 17 00:00:00 2001
+From: hasufell <hasufell@gentoo.org>
+Date: Sun, 6 Oct 2013 21:02:12 +0200
+Subject: [PATCH] fix parallel make
+
+---
+ Makefile.am | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/Makefile.am b/Makefile.am
+index b2285a0..4cf1753 100644
+--- a/Makefile.am
++++ b/Makefile.am
+@@ -112,7 +112,7 @@ XPaint.ad: app-defaults
+ XPaint.ad.h: substads XPaint.ad
+ ./substads -ad2c XPaint.ad $@
+
+-xpaint.1: xpaint.1.in version.h
++xpaint.1: substads xpaint.1.in version.h
+ ./substads -single xpaint.1.in xpaint.1 XPAINT_VERSION $(PACKAGE_VERSION)
+
+ install-exec-hook:
+--
+1.8.3.2
+
diff --git a/media-gfx/xpaint/files/xpaint-2.9.9.4-submake.patch b/media-gfx/xpaint/files/xpaint-2.9.9.4-submake.patch
new file mode 100644
index 000000000000..e218eb4c75e9
--- /dev/null
+++ b/media-gfx/xpaint/files/xpaint-2.9.9.4-submake.patch
@@ -0,0 +1,29 @@
+From 11b369b69c4637431b139960391bded531a9f652 Mon Sep 17 00:00:00 2001
+From: hasufell <hasufell@gentoo.org>
+Date: Sun, 6 Oct 2013 20:25:14 +0200
+Subject: [PATCH] don't run submake
+
+---
+ Makefile.am | 5 -----
+ 1 file changed, 5 deletions(-)
+
+diff --git a/Makefile.am b/Makefile.am
+index 5b2caec..b2285a0 100644
+--- a/Makefile.am
++++ b/Makefile.am
+@@ -139,11 +139,6 @@ install-exec-hook:
+ mkdir -p $(DESTDIR)$(SHAREDIR)/messages
+ cd share/messages ; $(RM) -f *~ ; cp -f Messages* $(DESTDIR)$(SHAREDIR)/messages
+ chmod -R a+r $(DESTDIR)$(SHAREDIR)/
+- cd util ; make ; make install DESTDIR=$(DESTDIR)$
+
+ clean-local:
+ rm -f xaw_incdir
+- cd util ; make clean
+-
+-distclean-local:
+- cd util ; make distclean
+\ No newline at end of file
+--
+1.8.3.2
+
diff --git a/media-gfx/xpaint/metadata.xml b/media-gfx/xpaint/metadata.xml
new file mode 100644
index 000000000000..8165ff483f18
--- /dev/null
+++ b/media-gfx/xpaint/metadata.xml
@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <!-- maintainer-needed -->
+ <longdescription lang="en">
+ XPaint is an X Window System color image bitmap editing program.
+ It also supports advanced features, such as image processing
+ algorithms, scripting and batch jobs. XPaint allows the edition
+ of multiple images simultaneously and supports a wide variety of
+ image formats, including: GIF, JPG, PNG, PPM, TIFF, XBM, XPM,
+ etc.
+
+ xpaint is now fully UTF8 compliant, and is capable of using
+ antialiased truetype fonts in its operations and in the menus
+ (in particular, translating to oriental languages should now be
+ quite easy - also the X core font protocol is no longer used
+ anywhere.)
+
+ xpaint also offers optional editing features based on
+ programmable filters and user defined procedures written as
+ scripts in plain C. The package includes a substantial list of
+ examples and some support for batch processing.
+ </longdescription>
+ <use>
+ <flag name="pgf">Support for loading PGF images</flag>
+ </use>
+ <upstream>
+ <remote-id type="sourceforge">sf-xpaint</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/media-gfx/xpaint/xpaint-2.9.10.2.ebuild b/media-gfx/xpaint/xpaint-2.9.10.2.ebuild
new file mode 100644
index 000000000000..3e5f5b70aa0d
--- /dev/null
+++ b/media-gfx/xpaint/xpaint-2.9.10.2.ebuild
@@ -0,0 +1,84 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit autotools eutils
+
+DESCRIPTION="Image editor with tiff, jpeg and png support"
+HOMEPAGE="http://sf-xpaint.sourceforge.net/"
+SRC_URI="mirror://sourceforge/sf-xpaint/${P}.tar.bz2"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="jpeg2k pgf tiff"
+
+RDEPEND="
+ media-libs/fontconfig
+ media-libs/freetype
+ media-libs/libpng:0
+ x11-libs/libICE
+ x11-libs/libX11
+ >=x11-libs/libXaw3dXft-1.6.2c
+ x11-libs/libXext
+ x11-libs/libXft
+ x11-libs/libXmu
+ x11-libs/libXpm
+ x11-libs/libXt
+ sys-libs/zlib
+ virtual/jpeg
+ jpeg2k? ( media-libs/openjpeg:0 )
+ pgf? ( media-libs/libpgf )
+ tiff? (
+ media-libs/jbigkit:0
+ media-libs/tiff:0
+ )"
+DEPEND="${RDEPEND}
+ sys-devel/flex
+ sys-devel/bison
+ virtual/pkgconfig"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-2.9.9.4-{QA1,submake,parallel-make}.patch \
+ "${FILESDIR}"/${PN}-2.9.10.2-{QA2,tiff}.patch
+ eautoreconf
+}
+
+src_configure() {
+ econf \
+ $(use_enable tiff) \
+ $(use_enable jpeg2k libopenjpeg)
+}
+
+src_compile() {
+ # clean up
+ emake clean
+ emake -C util clean
+
+ # parallel make still fails sometimes
+ emake substads
+ emake xpaint.1
+
+ default
+ emake \
+ WITH_PGF="$(usex pgf "yes" "no")" \
+ CC="$(tc-getCC)" \
+ CXX="$(tc-getCXX)" \
+ -C util
+}
+
+src_install() {
+ default
+ emake \
+ WITH_PGF="$(usex pgf "yes" "no")" \
+ DESTDIR="${ED}" \
+ -C util install
+}
+
+pkg_postinst() {
+ elog "optional dependencies:"
+ elog " app-text/gv (external viewer for PostScript output)"
+ elog " media-gfx/imagemagick (external viewer for pixel graphics)"
+ elog " net-print/cups (printing)"
+}
diff --git a/media-gfx/xpaint/xpaint-2.9.10.3.ebuild b/media-gfx/xpaint/xpaint-2.9.10.3.ebuild
new file mode 100644
index 000000000000..f75912276e09
--- /dev/null
+++ b/media-gfx/xpaint/xpaint-2.9.10.3.ebuild
@@ -0,0 +1,85 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit autotools eutils
+
+DESCRIPTION="Image editor with tiff, jpeg and png support"
+HOMEPAGE="http://sf-xpaint.sourceforge.net/"
+SRC_URI="mirror://sourceforge/sf-xpaint/${P}.tar.bz2"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="jpeg2k pgf tiff"
+
+RDEPEND="
+ media-libs/fontconfig
+ media-libs/freetype
+ media-libs/libpng:0
+ x11-libs/libICE
+ x11-libs/libX11
+ >=x11-libs/libXaw3dXft-1.6.2c
+ x11-libs/libXext
+ x11-libs/libXft
+ x11-libs/libXmu
+ x11-libs/libXpm
+ x11-libs/libXt
+ sys-libs/zlib
+ virtual/jpeg:62
+ jpeg2k? ( media-libs/openjpeg:0 )
+ pgf? ( media-libs/libpgf )
+ tiff? (
+ media-libs/jbigkit:0
+ media-libs/tiff:0
+ )"
+DEPEND="${RDEPEND}
+ sys-devel/flex
+ sys-devel/bison
+ virtual/pkgconfig"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-2.9.9.4-{QA1,submake,parallel-make}.patch \
+ "${FILESDIR}"/${PN}-2.9.10.2-{QA2,tiff}.patch \
+ "${FILESDIR}"/${PN}-2.9.10.3-Fix-build-with-clang.patch
+ eautoreconf
+}
+
+src_configure() {
+ econf \
+ $(use_enable tiff) \
+ $(use_enable jpeg2k libopenjpeg)
+}
+
+src_compile() {
+ # clean up
+ emake clean
+ emake -C util clean
+
+ # parallel make still fails sometimes
+ emake substads
+ emake xpaint.1
+
+ default
+ emake \
+ WITH_PGF="$(usex pgf "yes" "no")" \
+ CC="$(tc-getCC)" \
+ CXX="$(tc-getCXX)" \
+ -C util
+}
+
+src_install() {
+ default
+ emake \
+ WITH_PGF="$(usex pgf "yes" "no")" \
+ DESTDIR="${ED}" \
+ -C util install
+}
+
+pkg_postinst() {
+ elog "optional dependencies:"
+ elog " app-text/gv (external viewer for PostScript output)"
+ elog " media-gfx/imagemagick (external viewer for pixel graphics)"
+ elog " net-print/cups (printing)"
+}
diff --git a/media-gfx/xsane/Manifest b/media-gfx/xsane/Manifest
new file mode 100644
index 000000000000..adce4264bc71
--- /dev/null
+++ b/media-gfx/xsane/Manifest
@@ -0,0 +1,8 @@
+AUX xsane-0.999-lcms2.patch 11790 SHA256 edfc133483fc3975d9409314a2834403865e891f7744e59c4431a0f0050ebd04 SHA512 4734fd4599e2fed7b86a94836a40725fafb70e9252885faf092495fabfbaa02a7c245b3cacea19e5e1c455a3a74b475ad8cb215fbba3fa64bc066068abddbb29 WHIRLPOOL babe07abbc784f2d35309ca9d805a5bfab0c9037ea9159c3f0051b466b9b40aa53a561a864b26b6c68e1d3821e0719b2156fdf144ad1169963879002d07a727c
+DIST xsane-0.998-patches-2.tar.xz 54804 SHA256 84af533cba6309cf44892da8952b6203daa4dcfaf64e2efd1dddc5144e4cab4c SHA512 973ccac2fe3b6089049c1c5ba3e4cb0db29fdc79de372f8a7b461ee108e5bfc3f4a84997552fc3d3b651bbe9f98d247a5974d90e8949089b2ea52118eab6ad1f WHIRLPOOL 2294601aa696c442e8d2b5173b8ee04d158439e0ae02dd22c7d5c8f9fce98c8238a42e0867a5e511d206dd4030f7a15df2a98676471abe1e91870883662add56
+DIST xsane-0.999.tar.gz 2950621 SHA256 5782d23e67dc961c81eef13a87b17eb0144cae3d1ffc5cf7e0322da751482b4b SHA512 73ec961fce1a86b5d6f5bac0995d222785eb4b077dc8e72492b092d2bf4500455426e80e4d27233721cd38ec84f77fb9f92190a6afe45bdaf7ffd1ee50b431ed WHIRLPOOL 7d50f6ecd8ad671d36a6b92eb365a6361da8d90bfea3136cf7add0890313294903f8cbc75684cbc24e42a028f83922a0308783fb20d89b0d6b14b1f949283ad5
+DIST xsane-256x256.png 18478 SHA256 cb3f91fda48033734f1ac233fd788313e19522446680113dbc6dc5f5d33e4b16 SHA512 7bd63a701a4776b395689799ad98b7619917a9b40367c980bebaa116e6c5c2bfeffb8b996a8295b07f3483aa689c9040d8a68bb21376af65b1c0e8f69294f2e5 WHIRLPOOL 138c3b657d0527241237540cbe23dc541dff31f691c5971984c5e710cfb658cab301fc9ea6be0dcc609382104dab67dbd4c1bd65d9f8aabf1d04d6974922cf39
+EBUILD xsane-0.999-r2.ebuild 2269 SHA256 9c92e64bc9804c33e95dd81e1e480dd8ce063e7f43b12aa03015fd800241d1d7 SHA512 b814129dc647509ab35c300d9794aec66589c6b9f986319d3fbc16812b70368f722b10a97f85b795db30eb41d4530ec847856936b88895ce906053d244500ad1 WHIRLPOOL a0e6414a3451595b5accd2f5dfb826be8f37d2e22926496ff10907833d3eb177c9ef14743b0ba2c6a646b65c736897b8ec74cdca02803c285f0857bf8f23f7bb
+MISC ChangeLog 3011 SHA256 058457e1fb8574c2ae25b791daa5d888c1a767f01f51b7282dbddf5d63babd17 SHA512 1c8750d03df074e6f61d0e5455bdba8a4c9fae04b3d4fb044272b473f83b67da8da1383923c0b84fa9566c42a21ff78c8a902ba7d49c2e9246763451b80a5931 WHIRLPOOL 5f46d9cc63f17f11a066d81daa05a018fcc1739810483bb06a7911651881fc616273fb67becc4e02d65577152ed4e2bb066783b06fdfe822317301e88c5659e2
+MISC ChangeLog-2015 15156 SHA256 5f2e2d2f1d1dda461f4b12d8cfa1920f15797a416efdddb0b222aabfe3ffda39 SHA512 4e313513cddd220829c8e8673931c92cb4c8e41c8b4808ce0327f377d736c3fa3ab70297329efe00f00c1470538ac32370ec1a65ea52182b9d48ca20a5621634 WHIRLPOOL 07c5ccf84add54bc2f80dcb019653624cb612cdc8c826a42353775fceb110699d8d9d72f7e2fb39ec1023b2164e954fd6ba701445bc904e3f0a802f620bc2775
+MISC metadata.xml 500 SHA256 2c4b5322388d0950b94c4380103811b3a934c0e00fbbe6d885606c26c916658e SHA512 1f304a2fd92fe512a70e104c02fb72c9518e4f9e6eed795aa6462eb06a26f314673b9964b8c576a07f11e64eea0031ad607070bc1c167d5058d5ef34f867e383 WHIRLPOOL 560a2908e017ffcadc476c1f1a237edc9363a0ce24b2a15a9afea460320561bf957889fe7388918c2c44a1552ef40a9470be73f316d90dc6589a5d69c6ec637a
diff --git a/media-gfx/xsane/files/xsane-0.999-lcms2.patch b/media-gfx/xsane/files/xsane-0.999-lcms2.patch
new file mode 100644
index 000000000000..c3d696c28ecf
--- /dev/null
+++ b/media-gfx/xsane/files/xsane-0.999-lcms2.patch
@@ -0,0 +1,372 @@
+From 30af0e2edbf061b71bed9536d826894449f0390d Mon Sep 17 00:00:00 2001
+From: Nils Philippsen <nils@redhat.com>
+Date: Mon, 23 Sep 2013 16:11:31 +0200
+Subject: [PATCH] patch: lcms2
+
+Squashed commit of the following:
+
+commit f975accf7e1a08438b63580ea848457d373200f5
+Author: Nils Philippsen <nils@redhat.com>
+Date: Mon Sep 23 14:53:45 2013 +0200
+
+ Add support for lcms 2.x.
+---
+ configure.in | 22 ++++++++++++++----
+ include/config.h.in | 8 ++++++-
+ src/xsane-preview.c | 6 +++--
+ src/xsane-save.c | 38 ++++++++++++++++++++++++++-----
+ src/xsane-viewer.c | 65 ++++++++++++++++++++++++++++++++++++++++++++++++++---
+ src/xsane.h | 8 ++++++-
+ 6 files changed, 130 insertions(+), 17 deletions(-)
+
+diff --git a/configure.in b/configure.in
+index df7b114..3659c97 100644
+--- a/configure.in
++++ b/configure.in
+@@ -130,7 +130,17 @@ if test "${USE_TIFF}" = "yes"; then
+ fi
+
+ if test "${USE_LCMS}" = "yes"; then
+- AC_CHECK_LIB(lcms, cmsOpenProfileFromFile)
++ AC_SEARCH_LIBS(cmsOpenProfileFromFile, [lcms2 lcms])
++ if test "${ac_cv_search_cmsOpenProfileFromFile}" != "no"; then
++ AC_DEFINE(HAVE_LIBLCMS, 1, [Define if LCMS is to be used.])
++ fi
++ if test "${ac_cv_search_cmsOpenProfileFromFile}" == "-llcms2"; then
++ AC_DEFINE(HAVE_LIBLCMS2, 1, [Define if you have liblcms2.])
++ else
++ if test "${ac_cv_search_cmsOpenProfileFromFile}" == "-llcms"; then
++ AC_DEFINE(HAVE_LIBLCMS1, 1, [Define if you have liblcms.])
++ fi
++ fi
+ fi
+
+ dnl Checks for library functions.
+@@ -294,10 +304,14 @@ else
+ echo "* - PNG support deactivated *"
+ fi
+
+-if test "${ac_cv_lib_lcms_cmsOpenProfileFromFile}" = "yes"; then
+- echo "* - LCMS (color management) support activated *"
++if test "${ac_cv_search_cmsOpenProfileFromFile}" = "-llcms2"; then
++ echo "* - LCMS (color management) support activated (lcms2) *"
+ else
+- echo "* - LCMS (color management) support deactivated *"
++ if test "${ac_cv_search_cmsOpenProfileFromFile}" = "-llcms"; then
++ echo "* - LCMS (color management) support activated (lcms) *"
++ else
++ echo "* - LCMS (color management) support deactivated *"
++ fi
+ fi
+
+ echo "* *"
+diff --git a/include/config.h.in b/include/config.h.in
+index ecc9637..f9a3e40 100755
+--- a/include/config.h.in
++++ b/include/config.h.in
+@@ -290,9 +290,15 @@
+ /* Define if you have libtiff. */
+ #undef HAVE_LIBTIFF
+
+-/* Define if you have liblcms. */
++/* Define if LCMS is to be used. */
+ #undef HAVE_LIBLCMS
+
++/* Define if you have liblcms. */
++#undef HAVE_LIBLCMS1
++
++/* Define if you have liblcms2. */
++#undef HAVE_LIBLCMS2
++
+ #ifndef HAVE_STRNCASECMP
+ /* OS/2 needs this */
+ # define strncasecmp(a, b, c) strnicmp(a, b, c)
+diff --git a/src/xsane-preview.c b/src/xsane-preview.c
+index 6327ca7..6eaf687 100644
+--- a/src/xsane-preview.c
++++ b/src/xsane-preview.c
+@@ -6346,8 +6346,8 @@ int preview_do_color_correction(Preview *p)
+ cmsHPROFILE hOutProfile = NULL;
+ cmsHPROFILE hProofProfile = NULL;
+ cmsHTRANSFORM hTransform = NULL;
+- DWORD input_format, output_format;
+- DWORD cms_flags = 0;
++ cmsUInt32Number input_format, output_format;
++ cmsUInt32Number cms_flags = 0;
+ int proof = 0;
+ char *cms_proof_icm_profile = NULL;
+ int linesize = 0;
+@@ -6355,7 +6355,9 @@ int preview_do_color_correction(Preview *p)
+
+ DBG(DBG_proc, "preview_do_color_correction\n");
+
++#ifdef HAVE_LIBLCMS1
+ cmsErrorAction(LCMS_ERROR_SHOW);
++#endif
+
+ if (preferences.cms_bpc)
+ {
+diff --git a/src/xsane-save.c b/src/xsane-save.c
+index 75e0a63..2d0e44b 100644
+--- a/src/xsane-save.c
++++ b/src/xsane-save.c
+@@ -832,9 +832,9 @@ cmsHTRANSFORM xsane_create_cms_transform(Image_info *image_info, int cms_functio
+ cmsHPROFILE hInProfile = NULL;
+ cmsHPROFILE hOutProfile = NULL;
+ cmsHTRANSFORM hTransform = NULL;
+- DWORD cms_input_format;
+- DWORD cms_output_format;
+- DWORD cms_flags = 0;
++ cmsUInt32Number cms_input_format;
++ cmsUInt32Number cms_output_format;
++ cmsUInt32Number cms_flags = 0;
+
+ if (cms_function == XSANE_CMS_FUNCTION_EMBED_SCANNER_ICM_PROFILE)
+ {
+@@ -843,7 +843,9 @@ cmsHTRANSFORM xsane_create_cms_transform(Image_info *image_info, int cms_functio
+
+ DBG(DBG_info, "Prepare CMS transform\n");
+
++#ifdef HAVE_LIBLCMS1
+ cmsErrorAction(LCMS_ERROR_SHOW);
++#endif
+
+ if (cms_bpc)
+ {
+@@ -890,10 +892,18 @@ cmsHTRANSFORM xsane_create_cms_transform(Image_info *image_info, int cms_functio
+ if (image_info->channels == 1) /* == 1 (grayscale) */
+ {
+ #if 1 /* xxx oli */
++# ifdef HAVE_LIBLCMS2
++ cmsToneCurve *Gamma = cmsBuildGamma(NULL, 2.2);
++# else
+ LPGAMMATABLE Gamma = cmsBuildGamma(256, 2.2);
++# endif
+
+ hOutProfile = cmsCreateGrayProfile(cmsD50_xyY(), Gamma);
++# ifdef HAVE_LIBLCMS2
++ cmsFreeToneCurve(Gamma);
++# else
+ cmsFreeGamma(Gamma);
++# endif
+ #endif
+ }
+ else
+@@ -2896,7 +2906,11 @@ static int xsane_write_CSA(FILE *outfile, char *input_profile, int intent)
+ return -1;
+ }
+
++#ifdef HAVE_LIBLCMS2
++ n = cmsGetPostScriptCSA(NULL, hProfile, intent, 0, NULL, 0);
++#else
+ n = cmsGetPostScriptCSA(hProfile, intent, NULL, 0);
++#endif
+ if (n == 0)
+ {
+ return -2;
+@@ -2908,7 +2922,11 @@ static int xsane_write_CSA(FILE *outfile, char *input_profile, int intent)
+ return -3;
+ }
+
++#ifdef HAVE_LIBLCMS2
++ cmsGetPostScriptCSA(NULL, hProfile, intent, 0, buffer, n);
++#else
+ cmsGetPostScriptCSA(hProfile, intent, buffer, n);
++#endif
+ buffer[n] = 0;
+
+ fprintf(outfile, "%s", buffer);
+@@ -2927,7 +2945,7 @@ static int xsane_write_CRD(FILE *outfile, char *output_profile, int intent, int
+ cmsHPROFILE hProfile;
+ size_t n;
+ char* buffer;
+- DWORD flags = cmsFLAGS_NODEFAULTRESOURCEDEF;
++ cmsUInt32Number flags = cmsFLAGS_NODEFAULTRESOURCEDEF;
+
+ hProfile = cmsOpenProfileFromFile(output_profile, "r");
+ if (!hProfile)
+@@ -2940,7 +2958,11 @@ static int xsane_write_CRD(FILE *outfile, char *output_profile, int intent, int
+ flags |= cmsFLAGS_BLACKPOINTCOMPENSATION;
+ }
+
++#ifdef HAVE_LIBLCMS2
++ n = cmsGetPostScriptCRD(NULL, hProfile, intent, flags, NULL, 0);
++#else
+ n = cmsGetPostScriptCRDEx(hProfile, intent, flags, NULL, 0);
++#endif
+ if (n == 0)
+ {
+ return -2;
+@@ -2952,7 +2974,11 @@ static int xsane_write_CRD(FILE *outfile, char *output_profile, int intent, int
+ return -3;
+ }
+
++#ifdef HAVE_LIBLCMS2
++ cmsGetPostScriptCRD(NULL, hProfile, intent, flags, buffer, n);
++#else
+ cmsGetPostScriptCRDEx(hProfile, intent, flags, buffer, n);
++#endif
+ buffer[n] = 0;
+
+ fprintf(outfile, "%s", buffer);
+@@ -4349,7 +4375,7 @@ static void xsane_jpeg_embed_scanner_icm_profile(j_compress_ptr cinfo_ptr, const
+ {
+ FILE *icm_profile;
+ size_t size, embed_len;
+- LPBYTE embed_buffer;
++ cmsUInt8Number *embed_buffer;
+
+ DBG(DBG_proc, "xsane_jpeg_embed_scanner_icm_profile(%s)\n", icm_filename);
+
+@@ -4363,7 +4389,7 @@ static void xsane_jpeg_embed_scanner_icm_profile(j_compress_ptr cinfo_ptr, const
+ size = ftell(icm_profile);
+ fseek(icm_profile, 0, SEEK_SET);
+
+- embed_buffer = (LPBYTE) malloc(size + 1);
++ embed_buffer = (cmsUInt8Number *) malloc(size + 1);
+ if (embed_buffer)
+ {
+ embed_len = fread(embed_buffer, 1, size, icm_profile);
+diff --git a/src/xsane-viewer.c b/src/xsane-viewer.c
+index 69a444d..844c077 100644
+--- a/src/xsane-viewer.c
++++ b/src/xsane-viewer.c
+@@ -1795,6 +1795,9 @@ static void xsane_viewer_set_cms_gamut_alarm_color_callback(GtkWidget *widget, g
+ {
+ Viewer *v = (Viewer *) data;
+ int val;
++#ifdef HAVE_LIBLCMS2
++ cmsUInt16Number alarm_codes[cmsMAXCHANNELS];
++#endif
+
+ g_signal_handlers_block_by_func(GTK_OBJECT(v->cms_gamut_alarm_color_widget[0]), (GtkSignalFunc) xsane_viewer_set_cms_gamut_alarm_color_callback, v);
+ g_signal_handlers_block_by_func(GTK_OBJECT(v->cms_gamut_alarm_color_widget[1]), (GtkSignalFunc) xsane_viewer_set_cms_gamut_alarm_color_callback, v);
+@@ -1811,6 +1814,49 @@ static void xsane_viewer_set_cms_gamut_alarm_color_callback(GtkWidget *widget, g
+ v->cms_gamut_alarm_color = val;
+ gtk_check_menu_item_set_active(GTK_CHECK_MENU_ITEM(v->cms_gamut_alarm_color_widget[v->cms_gamut_alarm_color]), TRUE);
+
++#ifdef HAVE_LIBLCMS2
++ switch(v->cms_gamut_alarm_color)
++ {
++ default:
++ case 0: /* black */
++ alarm_codes[0] = (cmsUInt16Number) 0;
++ alarm_codes[1] = (cmsUInt16Number) 0;
++ alarm_codes[2] = (cmsUInt16Number) 0;
++ break;
++
++ case 1: /* gray */
++ alarm_codes[0] = (cmsUInt16Number) 128;
++ alarm_codes[1] = (cmsUInt16Number) 128;
++ alarm_codes[2] = (cmsUInt16Number) 128;
++ break;
++
++ case 2: /* white */
++ alarm_codes[0] = (cmsUInt16Number) 255;
++ alarm_codes[1] = (cmsUInt16Number) 255;
++ alarm_codes[2] = (cmsUInt16Number) 255;
++ break;
++
++ case 3: /* red */
++ alarm_codes[0] = (cmsUInt16Number) 255;
++ alarm_codes[1] = (cmsUInt16Number) 0;
++ alarm_codes[2] = (cmsUInt16Number) 0;
++ break;
++
++ case 4: /* green */
++ alarm_codes[0] = (cmsUInt16Number) 0;
++ alarm_codes[1] = (cmsUInt16Number) 255;
++ alarm_codes[2] = (cmsUInt16Number) 0;
++ break;
++
++ case 5: /* blue */
++ alarm_codes[0] = (cmsUInt16Number) 0;
++ alarm_codes[1] = (cmsUInt16Number) 0;
++ alarm_codes[2] = (cmsUInt16Number) 255;
++ break;
++ }
++
++ cmsSetAlarmCodes(alarm_codes);
++#else
+ switch(v->cms_gamut_alarm_color)
+ {
+ default:
+@@ -1838,6 +1884,7 @@ static void xsane_viewer_set_cms_gamut_alarm_color_callback(GtkWidget *widget, g
+ cmsSetAlarmCodes(0, 0, 255);
+ break;
+ }
++#endif
+
+ g_signal_handlers_unblock_by_func(GTK_OBJECT(v->cms_gamut_alarm_color_widget[0]), (GtkSignalFunc) xsane_viewer_set_cms_gamut_alarm_color_callback, v);
+ g_signal_handlers_unblock_by_func(GTK_OBJECT(v->cms_gamut_alarm_color_widget[1]), (GtkSignalFunc) xsane_viewer_set_cms_gamut_alarm_color_callback, v);
+@@ -2172,9 +2219,9 @@ static int xsane_viewer_read_image(Viewer *v)
+ cmsHTRANSFORM hTransform = NULL;
+ int proof = 0;
+ char *cms_proof_icm_profile = NULL;
+- DWORD cms_input_format;
+- DWORD cms_output_format;
+- DWORD cms_flags = 0;
++ cmsUInt32Number cms_input_format;
++ cmsUInt32Number cms_output_format;
++ cmsUInt32Number cms_flags = 0;
+ #endif
+
+ /* open imagefile */
+@@ -2203,7 +2250,9 @@ static int xsane_viewer_read_image(Viewer *v)
+
+ if ((v->enable_color_management) && (v->cms_enable))
+ {
++#ifdef HAVE_LIBLCMS1
+ cmsErrorAction(LCMS_ERROR_SHOW);
++#endif
+
+ if (v->cms_bpc)
+ {
+@@ -2801,6 +2850,9 @@ Viewer *xsane_viewer_new(char *filename, char *selection_filetype, int allow_red
+ GtkWidget *scrolled_window;
+ GtkWidget *zoom_option_menu, *zoom_menu, *zoom_menu_item;
+ int i, selection;
++#ifdef HAVE_LIBLCMS2
++ cmsUInt16Number alarm_codes[cmsMAXCHANNELS];
++#endif
+
+ DBG(DBG_proc, "viewer_new(%s)\n", filename);
+
+@@ -2830,8 +2882,15 @@ Viewer *xsane_viewer_new(char *filename, char *selection_filetype, int allow_red
+ v->cms_proofing_intent = INTENT_ABSOLUTE_COLORIMETRIC;
+ v->cms_gamut_check = 0;
+ v->cms_gamut_alarm_color = 3; /* red */
++#ifdef HAVE_LIBLCMS2
++ alarm_codes[0] = (cmsUInt16Number) 255;
++ alarm_codes[1] = (cmsUInt16Number) 0;
++ alarm_codes[2] = (cmsUInt16Number) 0;
++ cmsSetAlarmCodes(alarm_codes);
++#else
+ cmsSetAlarmCodes(255, 0, 0);
+ #endif
++#endif
+ if (selection_filetype)
+ {
+ v->selection_filetype = strdup(selection_filetype);
+diff --git a/src/xsane.h b/src/xsane.h
+index 4067d61..adcc0ed 100644
+--- a/src/xsane.h
++++ b/src/xsane.h
+@@ -70,7 +70,13 @@
+ #include <gtk/gtk.h>
+
+ #ifdef HAVE_LIBLCMS
+-# include "lcms.h"
++# ifdef HAVE_LIBLCMS2
++# include "lcms2.h"
++# else
++# include "lcms.h"
++typedef BYTE cmsUInt8Number;
++typedef DWORD cmsUInt32Number;
++# endif
+ #else
+ # define cmsHTRANSFORM void *
+ #endif
+--
+1.8.3.1
+
diff --git a/media-gfx/xsane/metadata.xml b/media-gfx/xsane/metadata.xml
new file mode 100644
index 000000000000..83d97d0e07f2
--- /dev/null
+++ b/media-gfx/xsane/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>printing@gentoo.org</email>
+ <name>Gentoo Printing Project</name>
+</maintainer>
+<maintainer type="project">
+ <email>graphics@gentoo.org</email>
+ <name>Gentoo Graphics Project</name>
+</maintainer>
+<use>
+ <flag name="ocr">Enable support for Optical Character Recognition reader</flag>
+</use>
+</pkgmetadata>
diff --git a/media-gfx/xsane/xsane-0.999-r2.ebuild b/media-gfx/xsane/xsane-0.999-r2.ebuild
new file mode 100644
index 000000000000..65a365cff251
--- /dev/null
+++ b/media-gfx/xsane/xsane-0.999-r2.ebuild
@@ -0,0 +1,91 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit autotools eutils toolchain-funcs
+
+DESCRIPTION="graphical scanning frontend"
+HOMEPAGE="http://www.xsane.org/"
+SRC_URI="
+ http://www.xsane.org/download/${P}.tar.gz
+ https://dev.gentoo.org/~dilfridge/distfiles/${PN}-0.998-patches-2.tar.xz
+ https://dev.gentoo.org/~pacho/${PN}/${PN}-256x256.png
+"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 arm ppc ppc64 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
+IUSE="nls jpeg png tiff gimp lcms ocr"
+
+RDEPEND="
+ media-gfx/sane-backends
+ x11-libs/gtk+:2
+ x11-misc/xdg-utils
+ jpeg? ( virtual/jpeg:0 )
+ png? ( media-libs/libpng:0= )
+ tiff? ( media-libs/tiff:0 )
+ gimp? ( media-gfx/gimp )
+ lcms? ( media-libs/lcms:2 )
+"
+PDEPEND="ocr? ( app-text/gocr )"
+
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+"
+
+src_prepare() {
+ default
+
+ strip-linguas -i po/ #609672
+
+ # Apply multiple fixes from different distributions
+ # Drop included patch and reuse patchset from prior version
+ rm "${WORKDIR}/${PN}-0.998-patches-2"/005-update-param-crash.patch || die
+ epatch "${WORKDIR}/${PN}-0.998-patches-2"/*.patch
+
+ # Fix compability with libpng15 wrt #377363
+ sed -i -e 's:png_ptr->jmpbuf:png_jmpbuf(png_ptr):' src/xsane-save.c || die
+
+ # Fix AR calling directly (bug #442606)
+ sed -i -e 's:ar r:$(AR) r:' lib/Makefile.in || die
+ tc-export AR
+
+ # Add support for lcms-2 (from Fedora)
+ eapply "${FILESDIR}/${PN}-0.999-lcms2.patch"
+
+ mv configure.in configure.ac || die
+ AT_M4DIR="m4" eautoreconf
+}
+
+src_configure() {
+ econf \
+ --enable-gtk2 \
+ $(use_enable nls) \
+ $(use_enable jpeg) \
+ $(use_enable png) \
+ $(use_enable tiff) \
+ $(use_enable gimp) \
+ $(use_enable lcms)
+}
+
+src_install() {
+ default
+
+ dodoc xsane.*
+
+ # link xsane so it is seen as a plugin in gimp
+ if use gimp; then
+ local plugindir
+ if [ -x "${EPREFIX}"/usr/bin/gimptool ]; then
+ plugindir="$(gimptool --gimpplugindir)/plug-ins"
+ elif [ -x "${EPREFIX}"/usr/bin/gimptool-2.0 ]; then
+ plugindir="$(gimptool-2.0 --gimpplugindir)/plug-ins"
+ else
+ die "Can't find GIMP plugin directory."
+ fi
+ dodir "${plugindir#${EPREFIX}}"
+ dosym /usr/bin/xsane "${plugindir#${EPREFIX}}"/xsane
+ fi
+
+ newicon "${DISTDIR}/${PN}-256x256.png" "${PN}".png
+}
diff --git a/media-gfx/xv/Manifest b/media-gfx/xv/Manifest
new file mode 100644
index 000000000000..fad814f36fd5
--- /dev/null
+++ b/media-gfx/xv/Manifest
@@ -0,0 +1,15 @@
+AUX xv-3.10a-add-ldflags-20070520.patch 757 SHA256 c63c7461b2bdae9f42828871522ffe384bd1bf3f1dd982a7ed7346e267531762 SHA512 64d2d53dd301228aed398e6ec4813e6fcc37b7033f6a7e0dad49541d8ea7394ea18eb44f74a1ee08a33964bc6fcfc8000960bd3e2df7e363edc0365a71f1e8cc WHIRLPOOL 0391f9f8c58178b097790f01ff045ef2951c53188e6e3cbbd132c4e34427ff7c656e5db6fad3c316d12100f682b4a7f22b9e01adbfc2ab677978da404f540205
+AUX xv-3.10a-disable-jp2k-20070520.patch 607 SHA256 e6df5b9f70fbf121ffd7329b1360cb4a993a0cd39eab510322204d5c17e4e91d SHA512 e764150b153921bbb0a9dff6399efdf4ec5bec425e10529616fa0912a1bea819c5f1638b9f1ab7676ed0c51156c0e2e738c2641ff0899456cae394c67148702b WHIRLPOOL ddffce5f58560fbfd6b74523c16afd6e91824d8eab8426a23927aa74e81f5d6dded6eb7a16f87a8f7cfcb4e8683a1c6c2c903e05ec475b6b80056057c2646731
+AUX xv-3.10a-fix-wait-20070520.patch 1664 SHA256 840d8e0397367360004e23a26e27fa6074318bb20fc7ffcc575884369f66cece SHA512 da9ebfe21d9a9bf466b167215faed0548bd5711125ce84a8f886e9b6d6d298f48eba5385b77430cf07199f067b9e0fe23373d1951d6fe7456a927fc2aac77cc6 WHIRLPOOL 7bc3f2394e81ce5a415cf94481ad638d4c98abf0db5d7d013acd97e4bdcaa3251fe3d8bac92af7b629177da76fdd209f384f3d6d0c67ce2b723346079d95f2fa
+AUX xv-3.10a-libpng15-r1.patch 16530 SHA256 78dffcd6aef4a8d6de612bdfab2a1b0aa5f39eaceddb2ad356c8263d12e0cfca SHA512 f7ad73ddf83ac241565b99ea7c375b7ffe17f60ff7aa138521b887da14ec4b236a61a67068f3baf6048011a52d46b276940a3965cf34ad9dd46678ba100b6d08 WHIRLPOOL 218934f38a08925e577022f84c9a1829a6860a5e8513a4257cf93425944766a847712413a630890fb5bed3dda23162625402d68442fbe24d63c08b339f9fc7b0
+AUX xv-3.10a-osx-bsd-20070520.patch 1497 SHA256 481fe19b439d703f448142d7444dc72b66b84217e4d95042cd5594e227625048 SHA512 a6f1160c0658ae4f3394cf2bb0b324392593010539ac2dd52176a587c41844cd5bca61823af31633d765f3399a9cb52e0296f894a2f08060ef4c2b4d687d8b51 WHIRLPOOL 000950b0d32004c65b5d64f7a0407e96be56ab7e5ef69cee33024a2e3c0aeced21409cdc926f27beed48077b226575cf9a015474d33ab622cbb088e4b51310a2
+AUX xv-3.10a-vdcomp-osx-20070520.patch 455 SHA256 c4e29c992476598457ff53c6e1409c374d17e82385dd145922bb29967efd5cbc SHA512 8e389040ae3ac52dd086fbc1858699ea4bef417053952766a5569aab4ec70dbbd674a4e26adbc9434c0b411754d9643064d4254e72fbc79f99d3aefaf35f997b WHIRLPOOL d06958a14995f84e0b1459c53dd661dd90e600debdc70377878d867fd12bf71dfd2395482c93df81dd4292da322cd7e4283f342367c5bf401c9d34b87426554f
+AUX xv-3.10a-wformat-security.patch 519 SHA256 9aee4805bb3441ae3b925a39fbf2ddad4bda4bcb27dee6033dda752446d6fc26 SHA512 7e1150fdda9359e7b105729c92b8059bf5c762d468bcdaeadbb91ed75c2517b0ad627784a7a6f2bb8f7857884dc47f2d41c7c7247824fa4af8533dc023ceea52 WHIRLPOOL 8226b463a524050e077c461a753204a9f6b9bf0d08606620f2d026c6095da5a1936d9ca2a5bff0e3d4005d87cc35506cca336f26bd74b12ad5dd7626cbdc1718
+DIST xv-3.10a-jumbo-patches-20070520.tar.gz 1363802 SHA256 221ec89fdf0772bd09c845cbb337aecf411a1aee215140b676717f49e9e65c80 SHA512 e2ac5a3b4d743bf142c162b00815dd9d8dcaf345d0649016b2c6441fe2329879471b19453808e677c1a0b8eeb3468295dba160b1f30eacb2a7a9d8524ce03e75 WHIRLPOOL d4466b7a7fb2405dc9696e6d547e09746c7137e615ec3675c4c534bcd014ec4305b46731ff1f764fcbb309d8da67bc5c753f1af3fad0582ebcbeb16ae5ec5b9f
+DIST xv-3.10a.png.bz2 3082 SHA256 244cd9da79e86e0c0bc00bfaad09a18e229795eb0146925328ad147ec7adcfe9 SHA512 41e81c34e74a034292c2a8f525d1452614a2b42e980a1a2c93e3fcf990db528853d633496815e5fb2c897a780a2da171af590f436e2c7ef181eea00eb6922e9b WHIRLPOOL 9c98561933b3c69c795e88981a8d6719a3833b2b2680875bbd58baba4764dafacb19f426c23c00371ab11cf5eefe588b6ef460032599d6d33b55ce7a6c947211
+DIST xv-3.10a.tar.gz 2259124 SHA256 03eb26b1e8f315c3093f4ae794862ba46637d16c055e8efbe5e3beb5d40fc451 SHA512 5b8c5890503e2796638921cabae8967e458c73e332acea8561b1025ed13c771bc44c0e309b4592852e33726eeaa9784f933d1312073b0ba2e0b8c0cedabcaa3f WHIRLPOOL 1fd41559d0a3c02ba3f4da3b88925c982ddea5a14d16792a458e144e19c8cd1aef1759f232cdc20827892568a4cdee99df19562bbcad45039ee7f3ace7c13767
+EBUILD xv-3.10a-r17.ebuild 2598 SHA256 0e412adcd63e8601d615fc777b4cb1d3d7b7bb33188b4e1792b6aa6deed92c68 SHA512 6f56e5bc72b1912a8901355ed6847bbaea44bc4c11f05e5537e1921bb1b177537604116683e2f80d523675d778ca182fb474eb2070ee3c9d002ea621b467dd24 WHIRLPOOL 5320a866b2872608a1300daffb71882ccd1e5e83273f271562932ffa07d34cca9959f13399b9e04f9174c7c021a0d86e1215e23d942dc219e7e0beb85c995ae2
+EBUILD xv-3.10a-r19.ebuild 2455 SHA256 36fb5431f2c5f1ac598f85f081266ba001df95c85bc093ab6ebf401ff7750654 SHA512 580e634dc26b86c8b5ad6cc8076d9ef3d76777b1725a37dd46c0fa1ff8e5528ed5d5a81cf8474549263e77c657726330805cf963a98367af5c2cef7860df587c WHIRLPOOL e025d646056ef87190a5104fce32c970050953aa59f8fbf993f528598bf75cb77fed5ddb486a98920d5925d07500b84e11a6ebb79e769adb11825496d025c445
+MISC ChangeLog 5637 SHA256 7e3d79fb33706fe543f9f7895a5e8598f2b59ee000511cac38388a2a4cad2724 SHA512 c6f2385f0ac666de6677be4603cfc2a4c572243e0df1d7f1f531524cb63aaf40abf53cdbb6b033a497a8c272b024ab5164c1126c60f126c9ccdc43605fa126fe WHIRLPOOL 48ab56605a390c064bfdeb1177146601e20f7363bd1c5e45d5c5749e441d1e06214710e86488d04be31dd9dae0b49ed0a2d1b24307a922cb1e46faa080f7105d
+MISC ChangeLog-2015 16503 SHA256 badc1e0cc1514623cda4abf5fe67ffb84428a4d38f7dc93bccd6eac1b6b8e3b8 SHA512 0349730f96413c0292f6be74b44adfb7c1b097e42772e593eab1df825c691258a9d2411edc70494091940eb70e1f6df386b690951c2fa09642c1e5b62a04a069 WHIRLPOOL 45e6bd8e7f202765797010375a18f225ceed9f662c85cc5282363bf9dc9bdb6c8854947c10e50fc9f7f22712f5ef7425beec1ac682d162131e2620a841f2a8cd
+MISC metadata.xml 249 SHA256 7622b382eca17018140f7d12d366c6c452d7879d1c9006076e51f062ca3869e1 SHA512 2250a3bff9eebe0962c70d89aed4f7e95dd3d33b5c3171f02bcf99d972d5242ec04b25d73b3ffd99ce96a641cf8eb78befb41941a352f4ff754702712b4e937d WHIRLPOOL 3bff562cd95b4218b078a796ea324bf18ac8547fd2e5a78fa466a4c92a95af91530f7bc6b5211d84e5dc5a8cf83730dba5b4739abef50db99594f47154a5e3d4
diff --git a/media-gfx/xv/files/xv-3.10a-add-ldflags-20070520.patch b/media-gfx/xv/files/xv-3.10a-add-ldflags-20070520.patch
new file mode 100644
index 000000000000..da53ccb8bd6b
--- /dev/null
+++ b/media-gfx/xv/files/xv-3.10a-add-ldflags-20070520.patch
@@ -0,0 +1,27 @@
+--- xv-3.10a/Makefile.orig 2008-06-16 08:32:39.000000000 -0600
++++ xv-3.10a/Makefile 2008-06-16 08:49:19.000000000 -0600
+@@ -369,19 +369,19 @@
+
+ #xv: $(OBJS) $(JPEGLIB) $(TIFFLIB)
+ xv: $(OBJS)
+- $(CC) -o xv $(CFLAGS) $(OBJS) $(LIBS)
++ $(CC) $(CFLAGS) $(LDFLAGS) -o xv $(OBJS) $(LIBS)
+
+ bggen: bggen.c
+- $(CC) $(CFLAGS) -o bggen bggen.c $(LIBS)
++ $(CC) $(CFLAGS) $(LDFLAGS) -o bggen bggen.c $(LIBS)
+
+ vdcomp: vdcomp.c
+- $(CC) $(CFLAGS) -o vdcomp vdcomp.c
++ $(CC) $(CFLAGS) $(LDFLAGS) -o vdcomp vdcomp.c
+
+ xcmap: xcmap.c
+- $(CC) $(CFLAGS) -o xcmap xcmap.c $(LIBS)
++ $(CC) $(CFLAGS) $(LDFLAGS) -o xcmap xcmap.c $(LIBS)
+
+ xvpictoppm: xvpictoppm.c
+- $(CC) $(CFLAGS) -o xvpictoppm xvpictoppm.c
++ $(CC) $(CFLAGS) $(LDFLAGS) -o xvpictoppm xvpictoppm.c
+
+
+
diff --git a/media-gfx/xv/files/xv-3.10a-disable-jp2k-20070520.patch b/media-gfx/xv/files/xv-3.10a-disable-jp2k-20070520.patch
new file mode 100644
index 000000000000..7e42484abf48
--- /dev/null
+++ b/media-gfx/xv/files/xv-3.10a-disable-jp2k-20070520.patch
@@ -0,0 +1,23 @@
+--- xv-3.10a/Makefile~ 2007-06-24 15:41:58 -0600
++++ xv-3.10a/Makefile 2007-06-24 15:42:43 -0600
+@@ -176,16 +176,16 @@
+ ### if, for whatever reason, you're unable to get the JasPer JPEG-2000 library
+ ### to compile on your machine, *COMMENT OUT* the following lines
+ ###
+-JP2K = -DDOJP2K
++#JP2K = -DDOJP2K
+ ###
+ #JP2KDIR = ../../jasper
+-JP2KDIR = /usr/local/lib
++#JP2KDIR = /usr/local/lib
+ ###
+ #JP2KINC = -I$(JP2KDIR)
+-JP2KINC = -I/usr/local/include
++#JP2KINC = -I/usr/local/include
+ ###
+ #JP2KLIB = -L$(JP2KDIR) -ljasper
+-JP2KLIB = $(JP2KDIR)/libjasper.a
++#JP2KLIB = $(JP2KDIR)/libjasper.a
+
+
+ ###
diff --git a/media-gfx/xv/files/xv-3.10a-fix-wait-20070520.patch b/media-gfx/xv/files/xv-3.10a-fix-wait-20070520.patch
new file mode 100644
index 000000000000..ec093ab309c9
--- /dev/null
+++ b/media-gfx/xv/files/xv-3.10a-fix-wait-20070520.patch
@@ -0,0 +1,40 @@
+diff -Nur xv-3.10a_old/xvevent.c xv-3.10a/xvevent.c
+--- xv-3.10a_old/xvevent.c 2008-05-06 12:44:41.000000000 -0600
++++ xv-3.10a/xvevent.c 2008-05-06 15:55:59.000000000 -0600
+@@ -82,7 +82,7 @@
+ int retval,done,waiting;
+ #ifdef USE_TICKS
+ clock_t waitsec_ticks=0L, orgtime_ticks=0L, curtime_ticks;
+- clock_t elapsed_ticks=0L, remaining_interval;
++ clock_t elapsed_ticks=0L, remaining_interval, clock_ticks_per_sec;
+ #else
+ time_t orgtime=0L, curtime;
+ #endif
+@@ -126,7 +126,8 @@
+ all pending events (ie, drawing the image the first time)
+ have been dealt with: START WAITING */
+ #ifdef USE_TICKS
+- waitsec_ticks = (clock_t)(waitsec * CLK_TCK);
++ clock_ticks_per_sec = sysconf(_SC_CLK_TCK);
++ waitsec_ticks = (clock_t)(waitsec * clock_ticks_per_sec);
+ orgtime_ticks = times(NULL); /* unclear if NULL valid, but OK on Linux */
+ #else
+ orgtime = time(NULL);
+@@ -168,11 +169,14 @@
+ } else
+ elapsed_ticks = curtime_ticks - orgtime_ticks;
+ remaining_interval = waitsec_ticks - elapsed_ticks;
+- if (remaining_interval >= (clock_t)(1 * CLK_TCK))
++ if (remaining_interval > clock_ticks_per_sec)
+ sleep(1);
+ else {
+- /* less than one second remaining: do delay in msec, then return */
+- Timer((remaining_interval * 1000L) / CLK_TCK); /* can't overflow */
++ if (remaining_interval > 0) {
++ /* less than one second remaining: do delay in msec, then return */
++ Timer((remaining_interval * 1000L) / clock_ticks_per_sec); /* can't overflow */
++ }
++
+ return waitloop? NEXTLOOP : NEXTQUIT;
+ }
+ #else
diff --git a/media-gfx/xv/files/xv-3.10a-libpng15-r1.patch b/media-gfx/xv/files/xv-3.10a-libpng15-r1.patch
new file mode 100644
index 000000000000..9905c4b8ae7e
--- /dev/null
+++ b/media-gfx/xv/files/xv-3.10a-libpng15-r1.patch
@@ -0,0 +1,520 @@
+--- xv-3.10a/xvinfo.c
++++ xv-3.10a/xvinfo.c
+@@ -26,7 +26,7 @@
+ #define INFOHIGH 270
+
+ /* max length of an Info String */
+-#define ISTRLEN 80
++#define ISTRLEN 256
+
+ /* baseline of top line of text */
+ #define TOPBASE (36 + penn_height/2 + 4 + 8 + ASCENT)
+--- xv-3.10a/xvpng.c
++++ xv-3.10a/xvpng.c
+@@ -31,6 +31,7 @@
+
+ #ifdef HAVE_PNG
+
++#include "zlib.h"
+ #include "png.h"
+
+ /*** Stuff for PNG Dialog box ***/
+@@ -41,7 +42,9 @@
+ #define COMPRESSION 6 /* default zlib compression level, not max
+ (Z_BEST_COMPRESSION) */
+
+-#define HAVE_tRNS (info_ptr->valid & PNG_INFO_tRNS)
++/* old
++#define HAVE_tRNS (info_ptr->valid & PNG_INFO_tRNS) */
++#define HAVE_tRNS png_get_valid(png_ptr,info_ptr,PNG_INFO_tRNS)
+
+ #define DWIDE 86
+ #define DHIGH 104
+@@ -444,6 +447,10 @@
+ byte *p, *png_line;
+ char software[256];
+ char *savecmnt;
++ /* for storing values until all are accumulated, so that the image header can be set in full */
++ int _bit_depth,_color_type,_interlace_type,_compression_type,_filter_type;
++ png_uint_32 _width,_height;
++ png_time _mod_time;
+
+ if ((png_ptr = png_create_write_struct(PNG_LIBPNG_VER_STRING, NULL,
+ png_xv_error, png_xv_warning)) == NULL) {
+@@ -458,7 +465,7 @@
+ FatalError(software);
+ }
+
+- if (setjmp(png_ptr->jmpbuf)) {
++ if (setjmp(png_jmpbuf(png_ptr))) {
+ png_destroy_write_struct(&png_ptr, &info_ptr);
+ return -1;
+ }
+@@ -489,8 +496,8 @@
+ png_set_filter(png_ptr, 0, filter);
+ }
+
+- info_ptr->width = w;
+- info_ptr->height = h;
++ _width = w;
++ _height = h;
+ if (w <= 0 || h <= 0) {
+ SetISTR(ISTR_WARNING, "%s: image dimensions out of range (%dx%d)",
+ fbasename, w, h);
+@@ -498,7 +505,7 @@
+ return -1;
+ }
+
+- info_ptr->interlace_type = interCB.val ? 1 : 0;
++ _interlace_type = interCB.val ? PNG_INTERLACE_ADAM7 : PNG_INTERLACE_NONE;
+
+ linesize = 0; /* quiet a compiler warning */
+
+@@ -542,40 +549,44 @@
+ png_destroy_write_struct(&png_ptr, &info_ptr);
+ return -1;
+ }
+- info_ptr->color_type = PNG_COLOR_TYPE_RGB;
+- info_ptr->bit_depth = 8;
++ _color_type = PNG_COLOR_TYPE_RGB;
++ _bit_depth = 8;
+ } else /* ptype == PIC8 */ {
+ linesize = w;
+- info_ptr->color_type = PNG_COLOR_TYPE_PALETTE;
++ _color_type = PNG_COLOR_TYPE_PALETTE;
+ if (numuniqcols <= 2)
+- info_ptr->bit_depth = 1;
++ _bit_depth = 1;
+ else
+ if (numuniqcols <= 4)
+- info_ptr->bit_depth = 2;
++ _bit_depth = 2;
+ else
+ if (numuniqcols <= 16)
+- info_ptr->bit_depth = 4;
++ _bit_depth = 4;
+ else
+- info_ptr->bit_depth = 8;
++ _bit_depth = 8;
+
+ for (i = 0; i < numuniqcols; i++) {
+ palette[i].red = r1[i];
+ palette[i].green = g1[i];
+ palette[i].blue = b1[i];
+ }
+- info_ptr->num_palette = numuniqcols;
+- info_ptr->palette = palette;
++/* cannot find a setter for this, unsure if it is necessary anymore...
+ info_ptr->valid |= PNG_INFO_PLTE;
++*/
++ /* set the header just in case it's needed */
++ png_set_IHDR(png_ptr,info_ptr,_width,_height,_bit_depth,_color_type,
++ _interlace_type,PNG_COMPRESSION_TYPE_DEFAULT,PNG_FILTER_TYPE_DEFAULT);
++ png_set_PLTE(png_ptr,info_ptr,palette,numuniqcols);
+ }
+ }
+
+ else if (colorType == F_GREYSCALE || colorType == F_BWDITHER) {
+- info_ptr->color_type = PNG_COLOR_TYPE_GRAY;
++ _color_type = PNG_COLOR_TYPE_GRAY;
+ if (colorType == F_BWDITHER) {
+ /* shouldn't happen */
+ if (ptype == PIC24) FatalError("PIC24 and B/W Stipple in WritePNG()");
+
+- info_ptr->bit_depth = 1;
++ _bit_depth = 1;
+ if (MONO(r1[0], g1[0], b1[0]) > MONO(r1[1], g1[1], b1[1])) {
+ remap[0] = 1;
+ remap[1] = 0;
+@@ -595,7 +606,7 @@
+ png_destroy_write_struct(&png_ptr, &info_ptr);
+ return -1;
+ }
+- info_ptr->bit_depth = 8;
++ _bit_depth = 8;
+ }
+ else /* ptype == PIC8 */ {
+ int low_precision;
+@@ -617,7 +628,7 @@
+ for (; i < 256; i++)
+ remap[i]=0; /* shouldn't be necessary, but... */
+
+- info_ptr->bit_depth = 8;
++ _bit_depth = 8;
+
+ /* Note that this fails most of the time because of gamma */
+ /* (and that would be a bug: GRR FIXME) */
+@@ -636,7 +647,7 @@
+ for (i = 0; i < numuniqcols; i++) {
+ remap[i] &= 0xf;
+ }
+- info_ptr->bit_depth = 4;
++ _bit_depth = 4;
+
+ /* try to adjust to 2-bit precision grayscale */
+
+@@ -652,7 +663,7 @@
+ for (i = 0; i < numuniqcols; i++) {
+ remap[i] &= 3;
+ }
+- info_ptr->bit_depth = 2;
++ _bit_depth = 2;
+
+ /* try to adjust to 1-bit precision grayscale */
+
+@@ -668,7 +679,7 @@
+ for (i = 0; i < numuniqcols; i++) {
+ remap[i] &= 1;
+ }
+- info_ptr->bit_depth = 1;
++ _bit_depth = 1;
+ }
+ }
+ }
+@@ -677,6 +688,9 @@
+ else
+ png_error(png_ptr, "Unknown colorstyle in WritePNG");
+
++ png_set_IHDR(png_ptr,info_ptr,_width,_height,_bit_depth,_color_type,
++ _interlace_type,PNG_COMPRESSION_TYPE_DEFAULT,PNG_FILTER_TYPE_DEFAULT);
++
+ if ((text = (png_textp)malloc(sizeof(png_text)))) {
+ sprintf(software, "XV %s", REVDATE);
+
+@@ -685,20 +699,22 @@
+ text->text = software;
+ text->text_length = strlen(text->text);
+
+- info_ptr->max_text = 1;
+- info_ptr->num_text = 1;
+- info_ptr->text = text;
++/* max_text seems to be internal only now, do not set
++ info_ptr->max_text = 1; */
++ png_set_text(png_ptr,info_ptr,text,1);
+ }
+
+ Display_Gamma = gDial.val; /* Save the current gamma for loading */
+
+ // GRR FIXME: add .Xdefaults option to omit writing gamma (size, cumulative errors when editing)--alternatively, modify save box to include "omit" checkbox
+- info_ptr->gamma = 1.0/gDial.val;
+- info_ptr->valid |= PNG_INFO_gAMA;
++ png_set_gAMA(png_ptr,info_ptr,1.0/gDial.val);
++/* doesn't seem to be a way to set valid directly anymore, unnecessary maybe..
++ info_ptr->valid |= PNG_INFO_gAMA; */
+
++/* might need to be png_write_info_before_PLTE() ... */
+ png_write_info(png_ptr, info_ptr);
+
+- if (info_ptr->bit_depth < 8)
++ if (_bit_depth < 8)
+ png_set_packing(png_ptr);
+
+ pass=png_set_interlace_handling(png_ptr);
+@@ -711,13 +727,13 @@
+ int j;
+ p = pic;
+ for (j = 0; j < h; ++j) {
+- if (info_ptr->color_type == PNG_COLOR_TYPE_GRAY) {
++ if (_color_type == PNG_COLOR_TYPE_GRAY) {
+ int k;
+ for (k = 0; k < w; ++k)
+ png_line[k] = ptype==PIC24 ? MONO(p[k*3], p[k*3+1], p[k*3+2]) :
+ remap[pc2nc[p[k]]];
+ png_write_row(png_ptr, png_line);
+- } else if (info_ptr->color_type == PNG_COLOR_TYPE_PALETTE) {
++ } else if (_color_type == PNG_COLOR_TYPE_PALETTE) {
+ int k;
+ for (k = 0; k < w; ++k)
+ png_line[k] = pc2nc[p[k]];
+@@ -739,28 +755,31 @@
+ (savecmnt = (char *)malloc((strlen(picComments) + 1)*sizeof(char)))) {
+ png_textp tp;
+ char *comment, *key;
++ int nt;
++ int mt;
+
+ strcpy(savecmnt, picComments);
+ key = savecmnt;
++ png_get_text(png_ptr,info_ptr,&tp,&mt); /* to get 'max_text' */
+ tp = text;
+- info_ptr->num_text = 0;
++ nt = 0;
+
+ comment = strchr(key, ':');
+
+ do {
+ /* Allocate a larger structure for comments if necessary */
+- if (info_ptr->num_text >= info_ptr->max_text)
++ if (nt >= mt)
+ {
+ if ((tp =
+- realloc(text, (info_ptr->num_text + 2)*sizeof(png_text))) == NULL)
++ realloc(text, (nt + 2)*sizeof(png_text))) == NULL)
+ {
+ break;
+ }
+ else
+ {
+ text = tp;
+- tp = &text[info_ptr->num_text];
+- info_ptr->max_text += 2;
++ tp = &text[nt];
++ mt += 2;
+ }
+ }
+
+@@ -810,7 +829,7 @@
+ }
+
+ tp->compression = tp->text_length > 640 ? 0 : -1;
+- info_ptr->num_text++;
++ nt++;
+ tp++;
+ }
+ }
+@@ -834,27 +853,29 @@
+ tp->text = key;
+ tp->text_length = q - key;
+ tp->compression = tp->text_length > 750 ? 0 : -1;
+- info_ptr->num_text++;
++ nt++;
+ key = NULL;
+ }
+ } while (key && *key);
++ png_set_text(png_ptr,info_ptr,text,nt);
+ }
+ else {
+- info_ptr->num_text = 0;
++ png_set_text(png_ptr,info_ptr,text,0);
+ }
+ }
+- info_ptr->text = text;
+
+- png_convert_from_time_t(&(info_ptr->mod_time), time(NULL));
+- info_ptr->valid |= PNG_INFO_tIME;
++ png_convert_from_time_t(&_mod_time, time(NULL));
++ png_set_tIME(png_ptr,info_ptr,&_mod_time);
++/* dunno how to set validity
++ info_ptr->valid |= PNG_INFO_tIME; */
+
+ png_write_end(png_ptr, info_ptr);
+ fflush(fp); /* just in case we core-dump before finishing... */
+
+ if (text) {
+ free(text);
+- /* must do this or png_destroy_write_struct() 0.97+ will free text again: */
+- info_ptr->text = (png_textp)NULL;
++ /* must do this or png_destroy_write_struct() 0.97+ will free text again:
++ info_ptr->text = (png_textp)NULL; */
+ if (savecmnt)
+ {
+ free(savecmnt);
+@@ -886,6 +907,14 @@
+ int pass;
+ int gray_to_rgb;
+ size_t commentsize;
++ /* temp storage vars for libpng15 migration */
++ int _bit_depth,_color_type,_interlace_type,_compression_type,_filter_type,_num_text,_num_palette;
++ png_uint_32 _width,_height;
++ png_timep _mod_time;
++ double _gamma;
++ png_textp _text;
++ png_colorp _palette;
++ png_color_16p _background;
+
+ fbasename = BaseName(fname);
+
+@@ -921,7 +950,7 @@
+ FatalError("malloc failure in LoadPNG");
+ }
+
+- if (setjmp(png_ptr->jmpbuf)) {
++ if (setjmp(png_jmpbuf(png_ptr))) {
+ fclose(fp);
+ png_destroy_read_struct(&png_ptr, &info_ptr, (png_infopp)NULL);
+ if (!read_anything) {
+@@ -945,8 +974,10 @@
+ #endif
+ png_read_info(png_ptr, info_ptr);
+
+- pinfo->w = pinfo->normw = info_ptr->width;
+- pinfo->h = pinfo->normh = info_ptr->height;
++ png_get_IHDR(png_ptr,info_ptr,&_width,&_height,&_bit_depth,&_color_type,&_interlace_type,NULL,NULL);
++
++ pinfo->w = pinfo->normw = _width;
++ pinfo->h = pinfo->normh = _height;
+ if (pinfo->w <= 0 || pinfo->h <= 0) {
+ SetISTR(ISTR_WARNING, "%s: image dimensions out of range (%dx%d)",
+ fbasename, pinfo->w, pinfo->h);
+@@ -957,9 +988,9 @@
+ pinfo->frmType = F_PNG;
+
+ sprintf(pinfo->fullInfo, "PNG, %d bit ",
+- info_ptr->bit_depth * info_ptr->channels);
++ _bit_depth * png_get_channels(png_ptr,info_ptr));
+
+- switch(info_ptr->color_type) {
++ switch(_color_type) {
+ case PNG_COLOR_TYPE_PALETTE:
+ strcat(pinfo->fullInfo, "palette color");
+ break;
+@@ -983,15 +1014,17 @@
+
+ sprintf(pinfo->fullInfo + strlen(pinfo->fullInfo),
+ ", %sinterlaced. (%d bytes)",
+- info_ptr->interlace_type ? "" : "non-", filesize);
++ _interlace_type ? "" : "non-", filesize);
+
+- sprintf(pinfo->shrtInfo, "%lux%lu PNG", info_ptr->width, info_ptr->height);
++ sprintf(pinfo->shrtInfo, "%lux%lu PNG", _width, _height);
+
+- if (info_ptr->bit_depth < 8)
++ if (_bit_depth < 8)
+ png_set_packing(png_ptr);
+
+- if (info_ptr->valid & PNG_INFO_gAMA)
+- png_set_gamma(png_ptr, Display_Gamma, info_ptr->gamma);
++ if (png_get_valid(png_ptr,info_ptr,PNG_INFO_gAMA)) {
++ png_get_gAMA(png_ptr,info_ptr,&_gamma);
++ png_set_gamma(png_ptr, Display_Gamma, _gamma);
++ }
+ /*
+ *else
+ * png_set_gamma(png_ptr, Display_Gamma, 0.45);
+@@ -1000,7 +1033,7 @@
+ gray_to_rgb = 0; /* quiet a compiler warning */
+
+ if (have_imagebg) {
+- if (info_ptr->bit_depth == 16) {
++ if (_bit_depth == 16) {
+ my_background.red = imagebgR;
+ my_background.green = imagebgG;
+ my_background.blue = imagebgB;
+@@ -1013,8 +1046,8 @@
+ }
+ png_set_background(png_ptr, &my_background, PNG_BACKGROUND_GAMMA_SCREEN,
+ 0, Display_Gamma);
+- if ((info_ptr->color_type == PNG_COLOR_TYPE_GRAY_ALPHA ||
+- (info_ptr->color_type == PNG_COLOR_TYPE_GRAY && HAVE_tRNS)) &&
++ if ((_color_type == PNG_COLOR_TYPE_GRAY_ALPHA ||
++ (_color_type == PNG_COLOR_TYPE_GRAY && HAVE_tRNS)) &&
+ (imagebgR != imagebgG || imagebgR != imagebgB)) /* i.e., colored bg */
+ {
+ png_set_gray_to_rgb(png_ptr);
+@@ -1022,8 +1055,9 @@
+ gray_to_rgb = 1;
+ }
+ } else {
+- if (info_ptr->valid & PNG_INFO_bKGD) {
+- png_set_background(png_ptr, &info_ptr->background,
++ if (png_get_valid(png_ptr,info_ptr,PNG_INFO_bKGD)) {
++ png_get_bKGD(png_ptr,info_ptr,&_background);
++ png_set_background(png_ptr, _background,
+ PNG_BACKGROUND_GAMMA_FILE, 1, 1.0);
+ } else {
+ my_background.red = my_background.green = my_background.blue =
+@@ -1033,13 +1067,13 @@
+ }
+ }
+
+- if (info_ptr->bit_depth == 16)
++ if (_bit_depth == 16)
+ png_set_strip_16(png_ptr);
+
+- if (info_ptr->color_type == PNG_COLOR_TYPE_GRAY ||
+- info_ptr->color_type == PNG_COLOR_TYPE_GRAY_ALPHA)
++ if (_color_type == PNG_COLOR_TYPE_GRAY ||
++ _color_type == PNG_COLOR_TYPE_GRAY_ALPHA)
+ {
+- if (info_ptr->bit_depth == 1)
++ if (_bit_depth == 1)
+ pinfo->colType = F_BWDITHER;
+ else
+ pinfo->colType = F_GREYSCALE;
+@@ -1049,9 +1083,11 @@
+ pass=png_set_interlace_handling(png_ptr);
+
+ png_read_update_info(png_ptr, info_ptr);
++ /* get HIDR again just in case the info_ptr changed */
++ png_get_IHDR(png_ptr,info_ptr,&_width,&_height,&_bit_depth,&_color_type,&_interlace_type,NULL,NULL);
+
+- if (info_ptr->color_type == PNG_COLOR_TYPE_RGB ||
+- info_ptr->color_type == PNG_COLOR_TYPE_RGB_ALPHA || gray_to_rgb)
++ if (_color_type == PNG_COLOR_TYPE_RGB ||
++ _color_type == PNG_COLOR_TYPE_RGB_ALPHA || gray_to_rgb)
+ {
+ linesize = 3 * pinfo->w;
+ if (linesize/3 < pinfo->w) { /* know pinfo->w > 0 (see above) */
+@@ -1065,16 +1101,17 @@
+ } else {
+ linesize = pinfo->w;
+ pinfo->type = PIC8;
+- if (info_ptr->color_type == PNG_COLOR_TYPE_GRAY ||
+- info_ptr->color_type == PNG_COLOR_TYPE_GRAY_ALPHA) {
++ if (_color_type == PNG_COLOR_TYPE_GRAY ||
++ _color_type == PNG_COLOR_TYPE_GRAY_ALPHA) {
+ for (i = 0; i < 256; i++)
+ pinfo->r[i] = pinfo->g[i] = pinfo->b[i] = i;
+ } else {
+ pinfo->colType = F_FULLCOLOR;
+- for (i = 0; i < info_ptr->num_palette; i++) {
+- pinfo->r[i] = info_ptr->palette[i].red;
+- pinfo->g[i] = info_ptr->palette[i].green;
+- pinfo->b[i] = info_ptr->palette[i].blue;
++ png_get_PLTE(png_ptr,info_ptr,&_palette,&_num_palette);
++ for (i = 0; i < _num_palette; i++) {
++ pinfo->r[i] = _palette[i].red;
++ pinfo->g[i] = _palette[i].green;
++ pinfo->b[i] = _palette[i].blue;
+ }
+ }
+ }
+@@ -1092,7 +1129,7 @@
+ png_error(png_ptr, "can't allocate space for PNG image");
+ }
+
+- png_start_read_image(png_ptr);
++ /*png_start_read_image(png_ptr); -- causes a warning and seems to be unnecessary */
+
+ for (i = 0; i < pass; i++) {
+ byte *p = pinfo->pic;
+@@ -1106,22 +1143,23 @@
+
+ png_read_end(png_ptr, info_ptr);
+
+- if (info_ptr->num_text > 0) {
++ png_get_text(png_ptr,info_ptr,&_text,&_num_text);
++ if (_num_text > 0) {
+ commentsize = 1;
+
+- for (i = 0; i < info_ptr->num_text; i++)
+- commentsize += strlen(info_ptr->text[i].key) + 1 +
+- info_ptr->text[i].text_length + 2;
++ for (i = 0; i < _num_text; i++)
++ commentsize += strlen(_text[i].key) + 1 +
++ _text[i].text_length + 2;
+
+ if ((pinfo->comment = malloc(commentsize)) == NULL) {
+ png_warning(png_ptr,"can't allocate comment string");
+ }
+ else {
+ pinfo->comment[0] = '\0';
+- for (i = 0; i < info_ptr->num_text; i++) {
+- strcat(pinfo->comment, info_ptr->text[i].key);
++ for (i = 0; i < _num_text; i++) {
++ strcat(pinfo->comment, _text[i].key);
+ strcat(pinfo->comment, "::");
+- strcat(pinfo->comment, info_ptr->text[i].text);
++ strncat(pinfo->comment, _text[i].text, _text[i].text_length);
+ strcat(pinfo->comment, "\n");
+ }
+ }
+@@ -1143,7 +1181,7 @@
+ {
+ SetISTR(ISTR_WARNING,"%s: libpng error: %s", fbasename, message);
+
+- longjmp(png_ptr->jmpbuf, 1);
++ longjmp(png_jmpbuf(png_ptr), 1);
+ }
+
+
diff --git a/media-gfx/xv/files/xv-3.10a-osx-bsd-20070520.patch b/media-gfx/xv/files/xv-3.10a-osx-bsd-20070520.patch
new file mode 100644
index 000000000000..ecafd1ddf56e
--- /dev/null
+++ b/media-gfx/xv/files/xv-3.10a-osx-bsd-20070520.patch
@@ -0,0 +1,38 @@
+--- xv-3.10a/xv.h~ 2007-06-24 14:30:42 -0600
++++ xv-3.10a/xv.h 2007-06-24 14:42:04 -0600
+@@ -158,7 +158,7 @@
+
+ #ifndef VMS
+ # include <errno.h>
+-# ifndef __NetBSD__
++# if !defined(__NetBSD__) && !defined(__FreeBSD__) && !defined(__APPLE__)
+ # if !(defined __GLIBC__ && __GLIBC__ >= 2)
+ extern int errno; /* SHOULD be in errno.h, but often isn't */
+ extern char *sys_errlist[]; /* this too... */
+@@ -171,7 +171,7 @@
+ #ifdef VMS
+ # define ERRSTR(x) strerror(x, vaxc$errno)
+ #else
+-# if defined(__BEOS__) || defined(__linux__) /* or all modern/glibc systems? */
++# if defined(__BEOS__) || defined(__linux__) || defined(__APPLE__) /* or all modern/glibc systems? */
+ # define ERRSTR(x) strerror(x)
+ # else
+ # define ERRSTR(x) sys_errlist[x]
+@@ -206,6 +206,8 @@
+ #ifdef NEED_MALLOC_H
+ # if defined(hp300) || defined(hp800) || defined(NeXT)
+ # include <sys/malloc.h> /* it's in "sys" on HPs and NeXT */
++# elif defined(__APPLE__)
++# include <malloc/malloc.h>
+ # else
+ # include <malloc.h>
+ # endif
+@@ -369,7 +371,7 @@
+ * them later. */
+ #ifndef VMS /* VMS hates multi-line definitions */
+ # if defined(__linux__) || defined(__OpenBSD__) || defined(__NetBSD__) || \
+- defined(__bsdi__)
++ defined(__FreeBSD__) || defined(__bsdi__) || defined(__APPLE__)
+ # ifndef USE_MKSTEMP
+ # define USE_MKSTEMP /* use 'mkstemp()' instead of 'mktemp()' */
+ # endif /* >> SECURITY ISSUE << */
diff --git a/media-gfx/xv/files/xv-3.10a-vdcomp-osx-20070520.patch b/media-gfx/xv/files/xv-3.10a-vdcomp-osx-20070520.patch
new file mode 100644
index 000000000000..2c82b1ae43e6
--- /dev/null
+++ b/media-gfx/xv/files/xv-3.10a-vdcomp-osx-20070520.patch
@@ -0,0 +1,11 @@
+--- xv-3.10a/vdcomp.c~ 2007-06-24 14:30:42 -0600
++++ xv-3.10a/vdcomp.c 2007-06-24 14:48:12 -0600
+@@ -123,6 +123,8 @@
+
+ # if defined(hp300) || defined(hp800) || defined(NeXT)
+ # include <sys/malloc.h> /* it's in "sys" on HPs and NeXT */
++# elif defined(__APPLE__)
++# include <malloc/malloc.h>
+ # else
+ # include <malloc.h> /* FIXME: should explicitly list systems that NEED this, not everyone that doesn't */
+ # endif
diff --git a/media-gfx/xv/files/xv-3.10a-wformat-security.patch b/media-gfx/xv/files/xv-3.10a-wformat-security.patch
new file mode 100644
index 000000000000..34d2c19ebae3
--- /dev/null
+++ b/media-gfx/xv/files/xv-3.10a-wformat-security.patch
@@ -0,0 +1,19 @@
+Fix errors caused by -Wformat -Werror=format-security
+https://bugs.gentoo.org/show_bug.cgi?id=542134
+
+* xvpbm.c:888:4: error: format not a string literal and no format arguments [-Werror=format-security]
+* if (*pix) fprintf(fp,str1);
+
+--- xv-3.10a/xvpbm.c
++++ xv-3.10a/xvpbm.c
+@@ -885,8 +885,8 @@
+ }
+ }
+ else {
+- if (*pix) fprintf(fp,str1);
+- else fprintf(fp,str0);
++ if (*pix) fprintf(fp,"%s",str1);
++ else fprintf(fp,"%s",str0);
+ len+=2;
+ if (len>68) { fprintf(fp,"\n"); len=0; }
+ }
diff --git a/media-gfx/xv/metadata.xml b/media-gfx/xv/metadata.xml
new file mode 100644
index 000000000000..8235e845464e
--- /dev/null
+++ b/media-gfx/xv/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-needed -->
+ <upstream>
+ <remote-id type="sourceforge">png-mng</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/media-gfx/xv/xv-3.10a-r17.ebuild b/media-gfx/xv/xv-3.10a-r17.ebuild
new file mode 100644
index 000000000000..84423f73c816
--- /dev/null
+++ b/media-gfx/xv/xv-3.10a-r17.ebuild
@@ -0,0 +1,91 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils flag-o-matic
+
+JUMBOV=20070520
+DESCRIPTION="Interactive image manipulation program supporting a wide variety of formats"
+HOMEPAGE="http://www.trilon.com/xv/index.html http://www.sonic.net/~roelofs/greg_xv.html"
+SRC_URI="mirror://sourceforge/png-mng/${P}-jumbo-patches-${JUMBOV}.tar.gz
+ ftp://ftp.cis.upenn.edu/pub/xv/${P}.tar.gz
+ mirror://gentoo/${P}.png.bz2"
+
+LICENSE="xv"
+SLOT="0"
+KEYWORDS="alpha amd64 hppa ia64 ~mips ppc ppc64 sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos"
+IUSE="jpeg tiff png"
+
+DEPEND="x11-libs/libXt
+ jpeg? ( virtual/jpeg:0 )
+ tiff? ( media-libs/tiff:0 )
+ png? ( >=media-libs/libpng-1.2:0= sys-libs/zlib )"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ # Apply the jumbo patch
+ epatch "${WORKDIR}"/${P}-jumbo-fix-enh-patch-${JUMBOV}.txt
+
+ # OSX and BSD xv.h define patches
+ epatch "${FILESDIR}"/${P}-osx-bsd-${JUMBOV}.patch
+
+ # OSX malloc patch
+ epatch "${FILESDIR}"/${P}-vdcomp-osx-${JUMBOV}.patch
+
+ # Disable JP2K (i.e. use system JPEG libs)
+ epatch "${FILESDIR}"/${P}-disable-jp2k-${JUMBOV}.patch
+
+ # Fix -wait option (do not rely on obsolete CLK_TCK)
+ epatch "${FILESDIR}"/${P}-fix-wait-${JUMBOV}.patch
+
+ # Use LDFLAGS on link lines
+ epatch "${FILESDIR}"/${P}-add-ldflags-${JUMBOV}.patch
+
+ epatch "${FILESDIR}"/${P}-libpng15-r1.patch
+
+ # Link with various image libraries depending on use flags
+ IMAGE_LIBS=""
+ use jpeg && IMAGE_LIBS="${IMAGE_LIBS} -ljpeg"
+ use png && IMAGE_LIBS="${IMAGE_LIBS} -lz -lpng"
+ use tiff && IMAGE_LIBS="${IMAGE_LIBS} -ltiff"
+
+ sed -i \
+ -e 's/\(^JPEG.*\)/#\1/g' \
+ -e 's/\(^PNG.*\)/#\1/g' \
+ -e 's/\(^TIFF.*\)/#\1/g' \
+ -e "s/\(^LIBS = .*\)/\1${IMAGE_LIBS}/g" Makefile
+
+ # /usr/bin/gzip => /bin/gzip
+ sed -i -e 's#/usr\(/bin/gzip\)#'"${EPREFIX}"'\1#g' config.h
+
+ # Fix installation of ps docs
+ sed -i -e 's#$(DESTDIR)$(LIBDIR)#$(LIBDIR)#g' Makefile
+}
+
+src_compile() {
+ append-flags -DUSE_GETCWD -DLINUX -DUSLEEP
+ use jpeg && append-flags -DDOJPEG
+ use png && append-flags -DDOPNG
+ use tiff && append-flags -DDOTIFF -DUSE_TILED_TIFF_BOTLEFT_FIX
+
+ emake \
+ CC="$(tc-getCC)" CCOPTS="${CFLAGS}" LDFLAGS="${LDFLAGS}" \
+ PREFIX="${EPREFIX}"/usr \
+ DOCDIR="${EPREFIX}/usr/share/doc/${PF}" \
+ LIBDIR="${T}"
+}
+
+src_install() {
+ dodir /usr/bin
+ dodir /usr/share/man/man1
+
+ emake \
+ DESTDIR="${D}" \
+ PREFIX="${EPREFIX}"/usr \
+ DOCDIR="${EPREFIX}/usr/share/doc/${PF}" \
+ LIBDIR="${T}" install
+
+ dodoc CHANGELOG BUGS IDEAS
+ newicon "${WORKDIR}"/${P}.png ${PN}.png
+ make_desktop_entry xv "" "" "Graphics;Viewer"
+}
diff --git a/media-gfx/xv/xv-3.10a-r19.ebuild b/media-gfx/xv/xv-3.10a-r19.ebuild
new file mode 100644
index 000000000000..1b021ad5df62
--- /dev/null
+++ b/media-gfx/xv/xv-3.10a-r19.ebuild
@@ -0,0 +1,85 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit eutils flag-o-matic
+
+JUMBOV=20070520
+DESCRIPTION="Interactive image manipulation program supporting a wide variety of formats"
+HOMEPAGE="http://www.trilon.com/xv/index.html http://www.sonic.net/~roelofs/greg_xv.html"
+SRC_URI="mirror://sourceforge/png-mng/${P}-jumbo-patches-${JUMBOV}.tar.gz
+ ftp://ftp.cis.upenn.edu/pub/xv/${P}.tar.gz
+ mirror://gentoo/${P}.png.bz2"
+
+LICENSE="xv"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos"
+IUSE="jpeg tiff png"
+
+DEPEND="x11-libs/libXt
+ jpeg? ( virtual/jpeg:0 )
+ tiff? ( media-libs/tiff:0 )
+ png? ( >=media-libs/libpng-1.2:0= sys-libs/zlib )"
+RDEPEND="${DEPEND}"
+
+PATCHES=(
+ "${WORKDIR}/${P}-jumbo-fix-enh-patch-${JUMBOV}.txt"
+ "${FILESDIR}/${P}-osx-bsd-${JUMBOV}.patch"
+ "${FILESDIR}/${P}-vdcomp-osx-${JUMBOV}.patch"
+ "${FILESDIR}/${P}-disable-jp2k-${JUMBOV}.patch"
+ "${FILESDIR}/${P}-fix-wait-${JUMBOV}.patch"
+ "${FILESDIR}/${P}-add-ldflags-${JUMBOV}.patch"
+ "${FILESDIR}/${P}-libpng15-r1.patch"
+ "${FILESDIR}/${P}-wformat-security.patch"
+)
+
+src_prepare() {
+ default
+
+ append-cppflags -DUSE_GETCWD -DLINUX -DUSLEEP
+ use jpeg && append-cppflags -DDOJPEG
+ use png && append-cppflags -DDOPNG
+ use tiff && append-cppflags -DDOTIFF -DUSE_TILED_TIFF_BOTLEFT_FIX
+
+ # Link with various image libraries depending on use flags
+ IMAGE_LIBS=""
+ use jpeg && IMAGE_LIBS="${IMAGE_LIBS} -ljpeg"
+ use png && IMAGE_LIBS="${IMAGE_LIBS} -lz -lpng"
+ use tiff && IMAGE_LIBS="${IMAGE_LIBS} -ltiff"
+
+ sed -i \
+ -e 's/\(^JPEG.*\)/#\1/g' \
+ -e 's/\(^PNG.*\)/#\1/g' \
+ -e 's/\(^TIFF.*\)/#\1/g' \
+ -e "s/\(^LIBS = .*\)/\1${IMAGE_LIBS}/g" Makefile || die
+
+ # /usr/bin/gzip => /bin/gzip
+ sed -i -e 's#/usr\(/bin/gzip\)#'"${EPREFIX}"'\1#g' config.h || die
+
+ # Fix installation of ps docs
+ sed -i -e 's#$(DESTDIR)$(LIBDIR)#$(LIBDIR)#g' Makefile || die
+}
+
+src_compile() {
+ emake \
+ CC="$(tc-getCC)" CCOPTS="${CPPFLAGS} ${CFLAGS}" LDFLAGS="${LDFLAGS}" \
+ PREFIX="${EPREFIX}"/usr \
+ DOCDIR="${EPREFIX}/usr/share/doc/${PF}" \
+ LIBDIR="${T}"
+}
+
+src_install() {
+ dodir /usr/bin
+ dodir /usr/share/man/man1
+
+ emake \
+ DESTDIR="${D}" \
+ PREFIX="${EPREFIX}"/usr \
+ DOCDIR="${EPREFIX}/usr/share/doc/${PF}" \
+ LIBDIR="${T}" install
+
+ dodoc CHANGELOG BUGS IDEAS
+ newicon "${WORKDIR}"/${P}.png ${PN}.png
+ make_desktop_entry xv "" "" "Graphics;Viewer"
+}
diff --git a/media-gfx/xzgv/Manifest b/media-gfx/xzgv/Manifest
new file mode 100644
index 000000000000..889055c0f8f3
--- /dev/null
+++ b/media-gfx/xzgv/Manifest
@@ -0,0 +1,6 @@
+AUX xzgv-0.9-asneeded-and-cflags.patch 976 SHA256 8021010c76d56d5e1ee26285dd9e483ae9b50bcf02b4043aff8ada75bc27003e SHA512 05fa8d01d86e5a3e4be7c7226ce21e041f80e9ea8beeaf57f9e4624237b87e39447c07019e8b6530681ed8583c370737f50583941ed939195553ce81110742af WHIRLPOOL 9bbc8727231747d9147c62e339645421d98335aceb0fc4ac2648f5f8d51b817e9e59899fd4abeeb316d772fe86dcaecb5dff1aa8cf4ed4ec41bff229040bb9ce
+DIST xzgv-0.9.1.tar.gz 163419 SHA256 f0b25ecb138d3f53ddc436679f9f7da03b48b503aaad6f271944ff6db91804e6 SHA512 e57d0eb3f34bc63cb9f2d033856eefdeb6363ce55589b8bc52a8c253e211a4e36d3c0691b4559581d4052810fde445c6ec1832b964c40c5365c3869ce72f7361 WHIRLPOOL 19d0cb71cb4313ee5d3e90c5ce4377a5e6a4b7471c30eb511926e06a6fe8410594ce3587bc499204000095731ff2d5aaa7295f91d9123e77a0beb5a02a0c34e4
+EBUILD xzgv-0.9.1.ebuild 672 SHA256 273e33d3bcaeb14d1e13570217a84787fb8a3c03075630fbe9bb44eea26b2b8f SHA512 991be7ef2638495e84110c449fa7d0bcba7703e6f3fbb25e64f6935454bd24782ffe22513657550f2fc7db0332488abbda23e790be0010eafe9dca6a721cd748 WHIRLPOOL c327e6ea08fd8f34cf73f39b7948bc701de108b1836592dc8931f8f962d78354c8783ba8a4ddc80366f1261034fab9723672383b1435d297b227f11e4732a071
+MISC ChangeLog 2573 SHA256 1ec87e9ba92d8378f42efa0e3d41d7fa1cebb4ddee18962cc2455d62f39bc192 SHA512 afa9b1f703f90300b6a91c00f8b87fd8fa26e3af940513ab1ffe295727a6a96305ead39343eab1822154db15a59dc9be4dd20cbd4bf0fbd9cb672035ac0986d9 WHIRLPOOL 52f07ae53cf57c0d62565e474304a2a0849246a50d33860fcb3022b57cf74542009c2e8791b7c3a761473129de3525051f96fa7798476d8d81b64961b3bb6b94
+MISC ChangeLog-2015 1645 SHA256 4eb6bdf9e6a7f802b4822f35eda365d6608f6b7cde414a21ba26554c40eda739 SHA512 62494df2885b76b59c8b0a67f39c5bd93f000c7fc095027e46cede6c7a4ef02d6e25b2582708f9eaccde6f74631274eb68138d9fec2ce2330f30c60414f4f1dd WHIRLPOOL 8fe84e6df86b4172ea7fd52581735982660a7b1a790e8024749509525db9e88d34fc20983a4dcddbbe62d9c65513b2dc515eef3054f6997a72e6d70a4b94c430
+MISC metadata.xml 333 SHA256 2bd7ffac7ac807c251a7c589488ec1eaf05d7c6ebad800c3a875fd801fe2ecfd SHA512 06f260fee9abc0645a167fe1e3b7ff17bd6d1d4dfdecc94d98a4a3341434b51cc037a837554c0377c137a45e62315853b93f6b81249938005a7272f496351b43 WHIRLPOOL 04c49c02ede877de346c51bf3eb225485bd34b9341c2739f2c337fb17f1f97ad3648f2663c3b9b3b42fb2c9a594e28116166fb8af5899ee20be9b988c4a34d9f
diff --git a/media-gfx/xzgv/files/xzgv-0.9-asneeded-and-cflags.patch b/media-gfx/xzgv/files/xzgv-0.9-asneeded-and-cflags.patch
new file mode 100644
index 000000000000..8b3c671dbf8a
--- /dev/null
+++ b/media-gfx/xzgv/files/xzgv-0.9-asneeded-and-cflags.patch
@@ -0,0 +1,35 @@
+http://bugs.gentoo.org/500692
+
+--- config.mk
++++ config.mk
+@@ -7,7 +7,7 @@
+ # This is likely to be what you'll want for most systems:
+ #
+ CC=gcc
+-CFLAGS=-O2 -Wall
++CFLAGS+=-Wall
+
+ # Set the awk interpreter to use for a script used while compiling.
+ # (This should be a `new' awk, such as gawk or mawk.)
+--- src/Makefile
++++ src/Makefile
+@@ -9,8 +9,8 @@
+ # This gets definitions for CC, CFLAGS, BINDIR etc.
+ include ../config.mk
+
+-CFLAGS+=`pkg-config --cflags gtk+-2.0` `pkg-config --cflags gdk-pixbuf-2.0`
+-LDFLAGS+=`pkg-config --libs gtk+-2.0` `pkg-config --libs gdk-pixbuf-2.0`
++CFLAGS+=`pkg-config --cflags gtk+-2.0` `pkg-config --cflags gdk-pixbuf-2.0` `pkg-config --cflags x11`
++LIBS=`pkg-config --libs gtk+-2.0` `pkg-config --libs gdk-pixbuf-2.0` `pkg-config --libs x11` -lm
+
+ all: xzgv
+
+@@ -23,7 +23,7 @@
+ backend.o
+
+ xzgv: $(OBJS)
+- $(CC) $(LDFLAGS) -o xzgv $(OBJS)
++ $(CC) $(LDFLAGS) $(OBJS) $(LIBS) -o xzgv
+
+ installdirs:
+ /bin/sh ../mkinstalldirs $(BINDIR)
diff --git a/media-gfx/xzgv/metadata.xml b/media-gfx/xzgv/metadata.xml
new file mode 100644
index 000000000000..6016eec00608
--- /dev/null
+++ b/media-gfx/xzgv/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="sourceforge">xzgv</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/media-gfx/xzgv/xzgv-0.9.1.ebuild b/media-gfx/xzgv/xzgv-0.9.1.ebuild
new file mode 100644
index 000000000000..283f5de88d59
--- /dev/null
+++ b/media-gfx/xzgv/xzgv-0.9.1.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils toolchain-funcs
+
+DESCRIPTION="Fast and simple GTK+ image viewer"
+HOMEPAGE="https://sourceforge.net/projects/xzgv"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ~ppc64 x86"
+IUSE=""
+
+RDEPEND="x11-libs/gtk+:2"
+DEPEND="${RDEPEND}
+ sys-apps/texinfo
+ virtual/pkgconfig"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P/.1}-asneeded-and-cflags.patch
+}
+
+src_compile() {
+ emake CC="$(tc-getCC)"
+ emake -C doc CC="$(tc-getCC)"
+}
+
+src_install() {
+ emake PREFIX="${D}/usr" install
+ dodoc AUTHORS NEWS README TODO
+}
diff --git a/media-gfx/yafaray/Manifest b/media-gfx/yafaray/Manifest
new file mode 100644
index 000000000000..7d1cd0f3cda6
--- /dev/null
+++ b/media-gfx/yafaray/Manifest
@@ -0,0 +1,6 @@
+DIST YafaRay-blender.0.1.1.zip 37965 SHA256 68041b4c13793c0ef3491dc5ccb3e39ae3f845b9c6f9edadddd3cd71a83abdad SHA512 0c424ec43fdd172a4e4729983807cff57ec9db335d5a4b48721c9790dbda2306e5d156a7b150b8565fe7ecebb840beb77bf6b29d8a836a8faef97c0ba5077b86 WHIRLPOOL c89c74e2f5cba9becd30ad0a4c771b50aafd8c3c52d9fb1ae4faa03e60718809714b7589917a44f3820a4b046849437e0f8125871a025459bdc48ae648ada88f
+DIST YafaRay.0.1.1.zip 542063 SHA256 9588f1ee85fae286fcfc0bd6d05fb2c60bfadea0c6f4254fb6dac00a36f7f3a1 SHA512 ba4deb56c20a67fe408b1797c518e12cccdb8f3d12fbfc6734bec40dc4d9d2ebfd2551762ed9064ed562d04d212b2154a9cd0011962fac28381b0d2ab2433ba0 WHIRLPOOL 69e015ea795d4b3a6d217eeebd26939c9a5e09a89b31ab7e8e161712e77ef287a41f87482ebe13a67e25969b3c42c2efc8a856ceb3dd654cf09b147ae16f8214
+EBUILD yafaray-0.1.1.ebuild 2072 SHA256 346313cfefb56e4ee12bbfae40e8d686954c4903a1f67c338e98b71b75ea99bb SHA512 4a2c2382ed4161b9081710191f3fba7cb707a8a932fa1667288e1c9940d9f057b76b886ba9e2df14ee0aa9fc22b3c5975ab4f1db133ba1764ea590556fbc3a2c WHIRLPOOL 242754b80f967a60b2ec6c6fa518668ed34ad89bf0874d8eb405a7daabf270c2de22e6ab1c267b25b6f0afc0dfc21d95f5d1be4d4fca07ec8aafde528f66c4b2
+MISC ChangeLog 2821 SHA256 5381d939c86ccb251801fee7af04e5d2cb005d2e39236e234b809860574ed1c5 SHA512 8d1248389a8b5a1b1d9b6e915ced652d91b9459e44ae46b7241b5a2c9fe3d612d7fb9153084c2a64d5e714cf077329ed5d065f6df86f7bab49a8cfce7ae2fa6d WHIRLPOOL 4be160f0f0ac23b67d6dd39e80723a51e04e9c199af1da0708d71e22a6af79973303b9917a6a72a029959bb58a06c270dbb9a876c33731c6172939da0fc89570
+MISC ChangeLog-2015 936 SHA256 ad64c21f1d25ea43f9a4d5e6e74904dca2d0dc7d0cb5ee98125687af2226e515 SHA512 9097db0b2da1c5b21d9115fcc75dc9a54b243f0569bdbb13f149c610077291ac69627084d014538ef371a2d4e5f20087e3b74b8e444206b9fff64ac543352f8c WHIRLPOOL d257545132ecbaa6db0c70a27ab90b2fe976520f5c555b6e200ea094b22b4bb806c2995983136960352e8c681fe8e6187383588a5da02b6008baeca32c65a7dd
+MISC metadata.xml 766 SHA256 19220d1fb6fd137f16b1a5952b8299ac7366722ced76039a9ef624919cba9aa4 SHA512 814a598323a07ec0797842e0ca1d400cd66af9dd55f3e8a2383ddff9f266886d71e3420467301cc0205e4d37cd7e800c5861f6538a9e81a27205db4031f946e7 WHIRLPOOL 6a95e3a89b353faedaf68f5bd9b071eafe12f7f8e83171b9ec6549eae36f7a9942511ef59c2ceb2b055ad0355176ee42df889e3f8e042ded3b13827b0ddf2c4c
diff --git a/media-gfx/yafaray/metadata.xml b/media-gfx/yafaray/metadata.xml
new file mode 100644
index 000000000000..f9d6744b6b54
--- /dev/null
+++ b/media-gfx/yafaray/metadata.xml
@@ -0,0 +1,15 @@
+<?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>
+<longdescription lang="en">
+YafaRay is a raytracing open source render engine. Raytracing is a rendering technique for generating realistic images by tracing the path of light through a 3D scene.
+An render engine consists of a "faceless" computer program that interacts with a host 3D application to provide very specific raytracing capabilties "on demand". Blender 3D is the host application of YafaRay.
+</longdescription>
+<use>
+ <flag name="blender">install <pkg>media-gfx/blender</pkg> scripts</flag>
+</use>
+</pkgmetadata>
diff --git a/media-gfx/yafaray/yafaray-0.1.1.ebuild b/media-gfx/yafaray/yafaray-0.1.1.ebuild
new file mode 100644
index 000000000000..a3f95827e71d
--- /dev/null
+++ b/media-gfx/yafaray/yafaray-0.1.1.ebuild
@@ -0,0 +1,84 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=2
+MY_PN="YafaRay"
+
+inherit multilib
+
+DESCRIPTION="YafaRay is a raytracing open source render engine"
+HOMEPAGE="http://www.yafaray.org/"
+SRC_URI="http://static.yafaray.org/sources/${MY_PN}.${PV}.zip
+ blender? (
+ http://static.yafaray.org/sources/${MY_PN}-blender.${PV}.zip
+ )"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="+blender debug qt4"
+
+RDEPEND="
+ dev-libs/libxml2
+ media-libs/freetype
+ media-libs/libpng
+ media-libs/openexr
+ sys-libs/zlib
+ virtual/jpeg
+ blender? ( >=media-gfx/blender-2.49 )
+ qt4? ( dev-qt/qtcore:4
+ dev-qt/qtgui:4 )"
+DEPEND="${RDEPEND}
+ app-arch/unzip
+ dev-lang/swig
+ >=dev-util/scons-1.0"
+
+S="${WORKDIR}/${PN}"
+
+src_prepare() {
+ sed -i \
+ -e 's:-Wall::g' \
+ -e 's:-O3 -ffast-math::g' \
+ "${S}"/config/linux2-config.py || die "sed failed"
+ sed -i \
+ -e "s:env.subst('\$YF_PLUGINPATH'):\"/usr/$(get_libdir)/yafaray\":"\
+ "${S}"/tools/writeconfig.py || die "sed failed"
+ # add correct paths for qt-libs
+ echo 'gui_env.Append(CPPPATH = ["/usr/include/qt4"])' >> "${S}"/src/gui/SConscript
+ echo "gui_env.Append(LIBPATH = [\"/usr/$(get_libdir)/qt4\"])" >> "${S}"/src/gui/SConscript
+}
+
+user_config() {
+ echo $@ >> "${S}"/user-config.py
+}
+
+src_configure() {
+ user_config "CCFLAGS=\"${CXXFLAGS}\""
+ user_config "PREFIX=\"${D}/usr\""
+ user_config "BASE_LPATH=\"/usr/$(get_libdir)/\""
+ user_config "YF_LIBOUT=\"\${PREFIX}/$(get_libdir)/\""
+ user_config "YF_PLUGINPATH=\"\${PREFIX}/$(get_libdir)/yafaray/\""
+ if use qt4; then
+ user_config "WITH_YF_QT='true'"
+ user_config "YF_QTDIR='/usr'"
+ fi
+ use debug && user_config "YF_DEBUG='true'"
+}
+
+src_compile() {
+ scons ${MAKEOPTS} || die "scons failed"
+ scons swig || die "scons swig failed"
+}
+
+src_install() {
+ scons install || die "scons install failed"
+ scons swig_install || die "scons swig_install failed"
+
+ if use blender; then
+ cd ../yafaray-blender
+ insinto /usr/share/blender/scripts
+ doins yafaray_ui.py
+ insinto /usr/share/yafaray/blender
+ doins yaf_*.py
+ fi
+}
diff --git a/media-gfx/zbar/Manifest b/media-gfx/zbar/Manifest
new file mode 100644
index 000000000000..6a408dbb1059
--- /dev/null
+++ b/media-gfx/zbar/Manifest
@@ -0,0 +1,13 @@
+AUX zbar-0.10-errors.patch 178 SHA256 664434317c666147927fa23af138122c7248b06f37f8ae10a005713c1cb804ce SHA512 0978f9d52bed844448c5a92349806134e4b03bf069307fad2f3944b92b6f1c8dda094574ae4829860263d735ba7d20e71d435308185503634f9e46897479c7f1 WHIRLPOOL 1f9095a53d9320a4526fa773a0171a1176bda0b383982347b138175bed2aa0623cdacd23c48e35afd07f7a4dcd13f58d50dfa6dfd8ac1bd78152525bca41260a
+AUX zbar-0.10-no-v4l1-check.patch 2270 SHA256 fe41b3855be44d0f61e6e21dfd3fd90fc56b6f01b1e6633e3d2ab9ed9617f5c8 SHA512 f2f66476769469d701206bf1efae16d384cfbaa138c877a0ea32bedcd39b5abfd6dae630e7d729b009ab50052db0166198949f49ddfb66d708792000808da74d WHIRLPOOL 3e2c65812ada05197085a6823b0c063f6264d72c55a91383d25c8b8576a4cb50ff707ad655993723fcae87f42f366f6ea637640db21ba6d15544443e07269db6
+AUX zbar-0.10-python-crash.patch 604 SHA256 a8f27e03a58be705ea9f7a4b139f5c831171a44bd15d775fb5477c406f3e321c SHA512 56e1848466b2178fb25a1f88f1a35113c01d370927b5778af96f1b96bcdaa8349308ac7ef14fb247bc5ec4165b2f7daa717159f3f7786ced9c043428afd641ba WHIRLPOOL f135563cbe4742412e6c2c41fabec6725d034bacbc9ee6d71aa315ce708a17e19807d06798c452089237b8a214c06f7d340c22f6985575b17d7118a448b394bd
+AUX zbar-0.10-v4l2-uvcvideo.patch 1487 SHA256 cd732193667746ff51e48c1a7dde4db7716c420298dfc92ee31fb3dc2229aef5 SHA512 6a53eb54ed3ad83cacb9a09d0b119550d364e586990725f0a423a180fab790e18c2c6d8201d185a51bd26ea3955018416b2993fbdb5e5a555e13183b3bce7b1a WHIRLPOOL 31c69ae5de1701801457163fafff5d05daae0e387f785318c1bd3a2508fd2d1263f4873aacd52a862be301d5b882b9f283045ff4db6f9fb0d8d52b47b4b2798c
+AUX zbar-0.10_p20121015-ImageMagick-7.diff 1064 SHA256 0f50dad0e82743ccb79cf3a2762ffcdd32936c511895e9ab49aea12ce003050a SHA512 90e09dabfaec0f1e68e8bdb040a2903377c658a39f9d0beb1a92546c26acf7e68115a6f6a745f930edc7c55353f51c7f58888fea564c259d1f5155ff1f35d6f9 WHIRLPOOL fcf1e17acae8d6a73626709d2c3817c42fdee430dc6308492d1bcaff7ec4a76dcca9baf5dfc40b11c800118e29207ed1aa84a16d0e596401395ae168db3f4b87
+DIST zbar-0.10.tar.bz2 592602 SHA256 234efb39dbbe5cef4189cc76f37afbe3cfcfb45ae52493bfe8e191318bdbadc6 SHA512 76cb8a469e3ac9ea7932a95c500cf933501249cdb8dce4df558bf5681bd44c62111327b494e6e887079a5fd30b32154887dcc12962e6d27b1453f55457483db4 WHIRLPOOL b4d8f6b2f6deb52fc7a60721888c3bbec2f4a94d5e29488167908e8a448ca698d64db7f78fb22408d4e3360eda44fd82195a0d762b71d203ca87d549461cde7f
+DIST zbar-0.10_p20121015.zip 991578 SHA256 1e2ba2a6f27bcc93b74e57ff46cc69c0f5c8d22ae277aa3d6c9da6892b892abe SHA512 7bb74ea5b096093b283c44787547ad0b886281628d012aa7b03ddb477732feb1e12d4d5a661191d34b53b7b272a237f67840e219b0ac5e2803da478a1ddba7a1 WHIRLPOOL be6307740b7e15c344c05c60a842d2ad01c6954ada71677cb8dbcbd0720a35f7f86d673a0f92a98d5968dc8394e9917c2a80880cb17a8d54bdc16827aa5d1eeb
+EBUILD zbar-0.10-r6.ebuild 1742 SHA256 b5a764e2a37849eceb52a09c3769b1e635d4374f4a302fdd27e6f0fc76ce31d1 SHA512 6a03ed2a6ed2b3a1c28cd58703600869148428030151f779324fc06d32d6fd1eae74584c40c53aba3f38b999229a01e2ce275fbb8e31885d951efa5ad42f9897 WHIRLPOOL be21915cb03f59d9525802726bbf452a1c12626db4821a475557ffd822b8fc5c5c515a4402a3d6105a946ab3ffcc2c00db1cafce9635701ec34f2b9de09fb3a2
+EBUILD zbar-0.10_p20121015-r1.ebuild 2397 SHA256 57b71678a2f386b5ca195f83b8668753494ff6bdfccae56ead367484886da215 SHA512 b5f6232d3fce9cb1842d5630537ff52056b185036506bae78f605dc5d2f0ec54f5d41edb2d58b6caa379e1f7dfdd266fcc9bd0d454eada9c73507924ae9dad55 WHIRLPOOL 54fa118770689e135ad134216229556a478c47c6ea576f7c144c489237fd9c7aa963b05dcdb70e215617d84916c52076d72bba5750c1ea57dc4c77b94de6bd2c
+EBUILD zbar-0.10_p20121015-r2.ebuild 2850 SHA256 049447d10d637b6ab49b2a6aa7e6337dba05cc428fd3e543995790e44a32581f SHA512 dc4efb0cbbc4fb467731d5cccbd0e52d12b37c9f14a97e3b105b353fd65bfcf461f0c0bf2f6613af153941e86698f6f2ed9645ae6ed9d2fb39ad27e25375dde3 WHIRLPOOL 2e0c9ab84fc788231225ef9ea2f199c0f537c7f029db31d5013dc90cbbf30c9184b183770a90e84ae5ae745784f30d112bb22ee075474050874b9ceb35ae1254
+MISC ChangeLog 3070 SHA256 625772eb4b7eacc0abf227bdaeb19afdf7a9f93ea1171bac9a802fa538a75a46 SHA512 3fe54fee97f173d63ab22895c3c75028cde6898c79a879094c21b71b6fa7343c7e419da7394761bd2c02e3047bfa6bf5edfc7ea63735ab2cca9465c2f84d7f32 WHIRLPOOL a6927b2dc2cff20fdc2ac483c2ab8071e102094fcbfe3f10aceaf455272579c2acfbdf1551a645ea421c53492500a0de2b878d92d7a18842e23ca55e26f3cbd4
+MISC ChangeLog-2015 3339 SHA256 5638091cdf6e8f85673dc0eb4b54d7200ff1427bfdb2760da32f9aeae1c5b7c1 SHA512 e88fcfab7d6ad3b2ccc06ff0811cab2be33d050d635e98a5c6886b051b7a3e827368a8b4a0088c5e715513bbe37e10c06414c7e6c7700f975b2035f08f9006b9 WHIRLPOOL bed7336eb41796157f1d4aab2cb1676297067968ccf414210cd76269acc89319ca81df207132cddcd26fabdfab5dec987e322540496aaf307af5a0f6be74e44d
+MISC metadata.xml 317 SHA256 270542feeac9397b6c57c4b6a43dbeaf1ccabd6814d0241567a011806dedee58 SHA512 911dee4073890017c8816d892b3e77e460328fc8e25e59c3ba74eafc909de73d743ac8c1c3015385bcbba1e7f175796704f6b1be6b1f37e0ce652da1749ee830 WHIRLPOOL 9413dad92be61e09c3bd6482d4ef8a55e4b01784dc85559ff7cdb79974ba2d7f174482b5549f5d00d7db88552e5e0ea5bcee544f9c85c0297173ca4f708f2f48
diff --git a/media-gfx/zbar/files/zbar-0.10-errors.patch b/media-gfx/zbar/files/zbar-0.10-errors.patch
new file mode 100644
index 000000000000..63328ce664bb
--- /dev/null
+++ b/media-gfx/zbar/files/zbar-0.10-errors.patch
@@ -0,0 +1,10 @@
+--- zbar-0.10/include/zbar/Exception.h
++++ zbar-0.10/include/zbar/Exception.h
+@@ -32,6 +32,7 @@
+
+ #include <exception>
+ #include <new>
++#include <cstddef>
+
+ namespace zbar {
+
diff --git a/media-gfx/zbar/files/zbar-0.10-no-v4l1-check.patch b/media-gfx/zbar/files/zbar-0.10-no-v4l1-check.patch
new file mode 100644
index 000000000000..b25827a0b998
--- /dev/null
+++ b/media-gfx/zbar/files/zbar-0.10-no-v4l1-check.patch
@@ -0,0 +1,74 @@
+--- zbar-0.10/configure.ac
++++ zbar-0.10/configure.ac
+@@ -147,19 +147,13 @@
+ with_video="no"
+ AS_IF([test "x$enable_video" != "xno"],
+ [AS_IF([test "x$win32" = "xno"],
+- [AC_CHECK_HEADERS([linux/videodev.h], [with_video="v4l1"],
+- [AC_MSG_FAILURE([test for video support failed!
+-rebuild your kernel to include video4linux support or
+-configure --disable-video to skip building video support.])])
+- AC_CHECK_HEADERS([linux/videodev2.h], [with_video="v4l2"],
++ [AC_CHECK_HEADERS([linux/videodev2.h], [with_video="v4l2"],
+ [AC_MSG_WARN([v4l2 API not detected, upgrade your kernel!])])],
+ [AC_CHECK_HEADERS([vfw.h], [with_video="vfw"],
+ [AC_MSG_FAILURE([test for VfW video support failed!
+ configure --disable-video to skip building vidoe support.])])])
+ ])
+ AM_CONDITIONAL([HAVE_VIDEO], [test "x$enable_video" != "xno"])
+-AM_CONDITIONAL([HAVE_V4L1],
+- [test "x$with_video" = "xv4l1" || test "x$with_video" = "xv4l2"])
+ AM_CONDITIONAL([HAVE_V4L2], [test "x$with_video" = "xv4l2"])
+
+ dnl X
+--- zbar-0.10/zbar/Makefile.am.inc
++++ zbar-0.10/zbar/Makefile.am.inc
+@@ -53,12 +53,9 @@
+ zbar_libzbar_la_SOURCES += zbar/processor/posix.h zbar/processor/posix.c
+ endif
+
+-if HAVE_V4L1
+-zbar_libzbar_la_SOURCES += zbar/video/v4l1.c
+ if HAVE_V4L2
+ zbar_libzbar_la_SOURCES += zbar/video/v4l2.c
+ endif
+-endif
+ if WIN32
+ if HAVE_VIDEO
+ zbar_libzbar_la_SOURCES += zbar/video/vfw.c
+--- zbar-0.10/zbar/video/v4l2.c
++++ zbar-0.10/zbar/video/v4l2.c
+@@ -39,6 +39,9 @@
+ # include <sys/mman.h>
+ #endif
+ #include <linux/videodev2.h>
++#include <sys/stat.h>
++#include <unistd.h>
++#include <fcntl.h>
+
+ #include "video.h"
+ #include "image.h"
+@@ -507,3 +507,23 @@
+ vdo->dq = v4l2_dq;
+ return(0);
+ }
++
++int _zbar_video_open (zbar_video_t *vdo,
++ const char *dev)
++{
++ vdo->fd = open(dev, O_RDWR);
++ if(vdo->fd < 0)
++ return(err_capture_str(vdo, SEV_ERROR, ZBAR_ERR_SYSTEM, __func__,
++ "opening video device '%s'", dev));
++ zprintf(1, "opened camera device %s (fd=%d)\n", dev, vdo->fd);
++
++ int rc = -1;
++ if(vdo->intf != VIDEO_V4L1)
++ rc = _zbar_v4l2_probe(vdo);
++
++ if(rc && vdo->fd >= 0) {
++ close(vdo->fd);
++ vdo->fd = -1;
++ }
++ return(rc);
++}
diff --git a/media-gfx/zbar/files/zbar-0.10-python-crash.patch b/media-gfx/zbar/files/zbar-0.10-python-crash.patch
new file mode 100644
index 000000000000..a6f7a96e34db
--- /dev/null
+++ b/media-gfx/zbar/files/zbar-0.10-python-crash.patch
@@ -0,0 +1,19 @@
+https://sourceforge.net/p/zbar/patches/37/
+
+fix from Debian for crashes when importing the python module.
+http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=702499
+
+this doesn't happen on some arches as the data naturally ends up with zero
+data after the structure, but on some (like arm), it isn't so we crash when
+python walks the list.
+
+--- a/python/imagescanner.c
++++ b/python/imagescanner.c
+@@ -68,6 +68,7 @@ imagescanner_get_results (zbarImageScanner *self,
+
+ static PyGetSetDef imagescanner_getset[] = {
+ { "results", (getter)imagescanner_get_results, },
++ { NULL },
+ };
+
+ static PyObject*
diff --git a/media-gfx/zbar/files/zbar-0.10-v4l2-uvcvideo.patch b/media-gfx/zbar/files/zbar-0.10-v4l2-uvcvideo.patch
new file mode 100644
index 000000000000..4fde95e2b563
--- /dev/null
+++ b/media-gfx/zbar/files/zbar-0.10-v4l2-uvcvideo.patch
@@ -0,0 +1,49 @@
+--- zbar-0.10/zbar/video/v4l2.c 2009-10-23 18:16:44.000000000 +0000
++++ zbar-0.10/zbar/video/v4l2.c 2015-03-07 05:46:36.000000000 +0000
+@@ -241,6 +241,21 @@
+ return(0);
+ }
+
++static int v4l2_request_buffers (zbar_video_t *vdo)
++{
++ struct v4l2_requestbuffers rb;
++ memset(&rb, 0, sizeof(rb));
++ rb.count = vdo->num_images;
++ rb.type = V4L2_BUF_TYPE_VIDEO_CAPTURE;
++ rb.memory = V4L2_MEMORY_USERPTR;
++ if(ioctl(vdo->fd, VIDIOC_REQBUFS, &rb) < 0)
++ return(err_capture(vdo, SEV_ERROR, ZBAR_ERR_SYSTEM, __func__,
++ "requesting video frame buffers (VIDIOC_REQBUFS)"));
++ if(rb.count)
++ vdo->num_images = rb.count;
++ return(0);
++}
++
+ static int v4l2_set_format (zbar_video_t *vdo,
+ uint32_t fmt)
+ {
+@@ -308,6 +323,8 @@
+ return(-1);
+ if(vdo->iomode == VIDEO_MMAP)
+ return(v4l2_mmap_buffers(vdo));
++ if(vdo->iomode == VIDEO_USERPTR)
++ return(v4l2_request_buffers(vdo));
+ return(0);
+ }
+
+@@ -337,8 +354,13 @@
+ else {
+ if(!vdo->iomode)
+ vdo->iomode = VIDEO_USERPTR;
+- if(rb.count)
+- vdo->num_images = rb.count;
++ /* releasing buffers
++ * lest the driver may later refuse to change format
++ */
++ rb.count = 0;
++ if (ioctl(vdo->fd, VIDIOC_REQBUFS, &rb) < 0)
++ zprintf(0, "WARNING: releasing video buffers failed: error %d\n",
++ errno);
+ }
+ return(0);
+ }
diff --git a/media-gfx/zbar/files/zbar-0.10_p20121015-ImageMagick-7.diff b/media-gfx/zbar/files/zbar-0.10_p20121015-ImageMagick-7.diff
new file mode 100644
index 000000000000..a56ab7d913b0
--- /dev/null
+++ b/media-gfx/zbar/files/zbar-0.10_p20121015-ImageMagick-7.diff
@@ -0,0 +1,24 @@
+diff -r -U3 zbar-0.10_p20121015_orig/configure.ac zbar-0.10_p20121015/configure.ac
+--- zbar-0.10_p20121015_orig/configure.ac 2016-08-28 16:59:23.969753652 +0200
++++ zbar-0.10_p20121015/configure.ac 2016-08-28 17:17:15.384494517 +0200
+@@ -324,7 +324,7 @@
+ dnl double check ImageMagick install (bug #2582232)
+ CPPFLAGS_save="$CPPFLAGS"
+ CPPFLAGS="$CPPFLAGS $MAGICK_CFLAGS"
+- AC_CHECK_HEADER([wand/MagickWand.h],
++ AC_CHECK_HEADER([MagickWand/MagickWand.h],
+ [have_IM="yes"],
+ [have_IM="broken"])
+ CPPFLAGS="$CPPFLAGS_save"])])
+diff -r -U3 zbar-0.10_p20121015_orig/zbarimg/zbarimg.c zbar-0.10_p20121015/zbarimg/zbarimg.c
+--- zbar-0.10_p20121015_orig/zbarimg/zbarimg.c 2015-08-05 11:10:32.000000000 +0200
++++ zbar-0.10_p20121015/zbarimg/zbarimg.c 2016-08-28 17:10:39.532787196 +0200
+@@ -44,7 +44,7 @@
+ #endif
+
+ #ifdef HAVE_IMAGEMAGICK
+-# include <wand/MagickWand.h>
++# include <MagickWand/MagickWand.h>
+
+ /* ImageMagick frequently changes API names - just use the original
+ * (more stable?) names to match GraphicsMagick
diff --git a/media-gfx/zbar/metadata.xml b/media-gfx/zbar/metadata.xml
new file mode 100644
index 000000000000..4c17cb6e9bf7
--- /dev/null
+++ b/media-gfx/zbar/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>xmw@gentoo.org</email>
+ <name>Michael Weber</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">zbar</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/media-gfx/zbar/zbar-0.10-r6.ebuild b/media-gfx/zbar/zbar-0.10-r6.ebuild
new file mode 100644
index 000000000000..618e4f0f1ffe
--- /dev/null
+++ b/media-gfx/zbar/zbar-0.10-r6.ebuild
@@ -0,0 +1,72 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+PYTHON_COMPAT=( python2_7 )
+
+inherit autotools eutils flag-o-matic python-single-r1
+
+DESCRIPTION="Library and tools for reading barcodes from images or video"
+HOMEPAGE="http://zbar.sourceforge.net/"
+SRC_URI="mirror://sourceforge/zbar/${P}.tar.bz2"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="amd64 ~arm x86"
+IUSE="gtk imagemagick jpeg python qt4 static-libs +threads v4l X xv"
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
+
+RDEPEND="gtk? ( dev-libs/glib:2 x11-libs/gtk+:2 )
+ imagemagick? ( virtual/imagemagick-tools )
+ jpeg? ( virtual/jpeg:0 )
+ python? (
+ ${PYTHON_DEPS}
+ gtk? ( >=dev-python/pygtk-2[${PYTHON_USEDEP}] )
+ )
+ qt4? ( dev-qt/qtcore:4 dev-qt/qtgui:4 )
+ X? (
+ x11-libs/libXext
+ xv? ( x11-libs/libXv )
+ )"
+DEPEND="${RDEPEND}
+ sys-devel/gettext
+ virtual/pkgconfig"
+
+pkg_setup() {
+ use python && python-single-r1_pkg_setup
+}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-no-v4l1-check.patch \
+ "${FILESDIR}"/${P}-errors.patch \
+ "${FILESDIR}"/${P}-python-crash.patch \
+ "${FILESDIR}"/${P}-v4l2-uvcvideo.patch
+
+ use python && python_fix_shebang examples/upcrpc.py test/*.py
+
+ sed -i -e '/AM_INIT_AUTOMAKE/s:-Werror ::' configure.ac || die #423581
+ eautoreconf
+}
+
+src_configure() {
+ append-cppflags -DNDEBUG
+ econf \
+ $(use_with jpeg) \
+ $(use_with gtk) \
+ $(use_with imagemagick) \
+ $(use_with python) \
+ $(use_with qt4 qt) \
+ $(use_enable static-libs static) \
+ $(use_enable threads pthread) \
+ $(use_with X x) \
+ $(use_with xv xv) \
+ $(use_enable v4l video)
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+ dodoc HACKING NEWS README TODO
+ rm -r "${ED}"/usr/share/doc/${PN}
+ prune_libtool_files --all
+}
diff --git a/media-gfx/zbar/zbar-0.10_p20121015-r1.ebuild b/media-gfx/zbar/zbar-0.10_p20121015-r1.ebuild
new file mode 100644
index 000000000000..d07b29d89057
--- /dev/null
+++ b/media-gfx/zbar/zbar-0.10_p20121015-r1.ebuild
@@ -0,0 +1,100 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+PYTHON_COMPAT=( python2_7 )
+
+inherit autotools eutils flag-o-matic java-pkg-opt-2 multilib python-single-r1
+
+DESCRIPTION="Library and tools for reading barcodes from images or video"
+HOMEPAGE="http://zbar.sourceforge.net/"
+SRC_URI="https://dev.gentoo.org/~xmw/zbar-0.10_p20121015.zip"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~x86"
+IUSE="gtk imagemagick java jpeg python qt4 static-libs +threads v4l X xv"
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
+
+CDEPEND="gtk? ( dev-libs/glib:2 x11-libs/gtk+:2 )
+ imagemagick? ( virtual/imagemagick-tools )
+ jpeg? ( virtual/jpeg:0 )
+ python? (
+ ${PYTHON_DEPS}
+ gtk? ( >=dev-python/pygtk-2[${PYTHON_USEDEP}] )
+ )
+ qt4? ( dev-qt/qtcore:4 dev-qt/qtgui:4 )
+ X? (
+ x11-libs/libXext
+ xv? ( x11-libs/libXv )
+ )"
+RDEPEND="${CDEPEND}
+ java? ( >=virtual/jre-1.4 )"
+DEPEND="${CDEPEND}
+ java? ( >=virtual/jdk-1.4 )
+ sys-devel/gettext
+ virtual/pkgconfig"
+
+pkg_setup() {
+ use python && python-single-r1_pkg_setup
+ java-pkg-opt-2_pkg_setup
+}
+
+src_unpack() {
+ #vcs-snapshot doesn't work on .zip
+ default
+ mv * ${P} || die
+}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-0.10-errors.patch \
+ "${FILESDIR}"/${PN}-0.10-python-crash.patch \
+ "${FILESDIR}"/${PN}-0.10-v4l2-uvcvideo.patch
+
+ if has_version '>=media-gfx/imagemagick-7.0.1.0' ; then
+ epatch "${FILESDIR}/${P}-ImageMagick-7.diff"
+ fi
+
+ use python && python_fix_shebang examples/upcrpc.py test/*.py
+ java-pkg-opt-2_src_prepare
+
+ sed -e '/AM_INIT_AUTOMAKE/s: -Werror : :' \
+ -e '/^AM_CFLAGS=/s: -Werror::' \
+ -i configure.ac || die
+ sed "s|javadir = \$(pkgdatadir)|javadir = /usr/$(get_libdir)/zbar|" \
+ -i java/Makefile.am
+ eautoreconf
+}
+
+src_configure() {
+ if use java; then
+ export JAVACFLAGS="$(java-pkg_javac-args)"
+ export JAVA_CFLAGS="$(java-pkg_get-jni-cflags)"
+ fi
+
+ append-cppflags -DNDEBUG
+ econf \
+ $(use_with java) \
+ $(use_with jpeg) \
+ $(use_with gtk) \
+ $(use_with imagemagick) \
+ $(use_with python) \
+ $(use_with qt4 qt) \
+ $(use_enable static-libs static) \
+ $(use_enable threads pthread) \
+ $(use_with X x) \
+ $(use_with xv xv) \
+ $(use_enable v4l video)
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+ dodoc HACKING NEWS README TODO
+ rm -r "${ED}"/usr/share/doc/${PN}
+ prune_libtool_files --all
+}
+
+pkg_preinst() {
+ java-pkg-opt-2_pkg_preinst
+}
diff --git a/media-gfx/zbar/zbar-0.10_p20121015-r2.ebuild b/media-gfx/zbar/zbar-0.10_p20121015-r2.ebuild
new file mode 100644
index 000000000000..3a552305df63
--- /dev/null
+++ b/media-gfx/zbar/zbar-0.10_p20121015-r2.ebuild
@@ -0,0 +1,114 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python2_7 )
+
+inherit autotools flag-o-matic java-pkg-opt-2 multilib-minimal \
+ python-single-r1 virtualx
+
+DESCRIPTION="Library and tools for reading barcodes from images or video"
+HOMEPAGE="http://zbar.sourceforge.net/"
+SRC_URI="https://dev.gentoo.org/~xmw/zbar-0.10_p20121015.zip"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~x86"
+IUSE="gtk imagemagick java jpeg python qt4 static-libs test +threads v4l X xv"
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )
+ test? ( X ${PYTHON_REQUIRED_USE} )"
+
+CDEPEND="gtk? ( dev-libs/glib:2[${MULTILIB_USEDEP}]
+ x11-libs/gtk+:2[${MULTILIB_USEDEP}] )
+ imagemagick? ( virtual/imagemagick-tools )
+ jpeg? ( virtual/jpeg:0[${MULTILIB_USEDEP}] )
+ python? (
+ ${PYTHON_DEPS}
+ gtk? ( >=dev-python/pygtk-2[${PYTHON_USEDEP}] )
+ )
+ qt4? ( dev-qt/qtcore:4[${MULTILIB_USEDEP}]
+ dev-qt/qtgui:4[${MULTILIB_USEDEP}] )
+ X? (
+ x11-libs/libXext[${MULTILIB_USEDEP}]
+ xv? ( x11-libs/libXv[${MULTILIB_USEDEP}] )
+ )"
+RDEPEND="${CDEPEND}
+ java? ( >=virtual/jre-1.4 )"
+DEPEND="${CDEPEND}
+ java? ( >=virtual/jdk-1.4 )
+ test? ( ${PYTHON_DEPS} )
+ app-arch/unzip
+ sys-devel/gettext
+ virtual/pkgconfig"
+
+pkg_setup() {
+ if use python || use test; then
+ python-single-r1_pkg_setup
+ fi
+ java-pkg-opt-2_pkg_setup
+}
+
+src_unpack() {
+ #vcs-snapshot doesn't work on .zip
+ default
+ mv * ${P} || die
+}
+
+src_prepare() {
+ eapply "${FILESDIR}"/${PN}-0.10-errors.patch \
+ "${FILESDIR}"/${PN}-0.10-python-crash.patch \
+ "${FILESDIR}"/${PN}-0.10-v4l2-uvcvideo.patch
+
+ if has_version '>=media-gfx/imagemagick-7.0.1.0' ; then
+ eapply "${FILESDIR}/${P}-ImageMagick-7.diff"
+ fi
+
+ use python && python_fix_shebang examples/upcrpc.py test/*.py
+ java-pkg-opt-2_src_prepare
+
+ sed -e '/AM_INIT_AUTOMAKE/s: -Werror : :' \
+ -e '/^AM_CFLAGS=/s: -Werror::' \
+ -i configure.ac || die
+ sed "s|javadir = \$(pkgdatadir)|javadir = /usr/$(get_libdir)/zbar|" \
+ -i java/Makefile.am
+ eautoreconf
+}
+
+multilib_src_configure() {
+ if multilib_is_native_abi && use java; then
+ export JAVACFLAGS="$(java-pkg_javac-args)"
+ export JAVA_CFLAGS="$(java-pkg_get-jni-cflags)"
+ fi
+
+ append-cppflags -DNDEBUG
+ ECONF_SOURCE=${S} \
+ econf \
+ $(multilib_native_use_with java) \
+ $(use_with jpeg) \
+ $(use_with gtk) \
+ $(multilib_native_use_with imagemagick) \
+ $(multilib_native_use_with python) \
+ $(use_with qt4 qt) \
+ $(use_enable static-libs static) \
+ $(use_enable threads pthread) \
+ $(use_with X x) \
+ $(use_with xv xv) \
+ $(use_enable v4l video)
+
+ # work-around out-of-source build issue
+ mkdir gtk pygtk qt test || die
+}
+
+src_test() {
+ virtx multilib-minimal_src_test
+}
+
+multilib_src_install_all() {
+ dodoc HACKING NEWS README TODO
+ find "${D}" -name '*.la' -delete || die
+}
+
+pkg_preinst() {
+ java-pkg-opt-2_pkg_preinst
+}
diff --git a/media-gfx/zgv/Manifest b/media-gfx/zgv/Manifest
new file mode 100644
index 000000000000..60c221e89a99
--- /dev/null
+++ b/media-gfx/zgv/Manifest
@@ -0,0 +1,8 @@
+AUX zgv-5.9-Makefile-QA.patch 1906 SHA256 5979a006a7a54f999afc3cfeb7f2a3c6b4bc4ed7c28a7854055df58abe72e492 SHA512 a266ccb673475c2a520c4a28f1859522a3fe9be626080c45fb5f2bdd200d3eeb9f22dab74456910f60369e48d4ed1d5a5a8c9faa3e3a5bda7d9ca82807dba9f0 WHIRLPOOL f7690a2569dbe8c88ee2db4add1717387070eba0c563a6229cde5ee96105cb578846db7d67916328474756ba4f719b3e3d34c3597ced6ea75af921f2d294444c
+AUX zgv-5.9-cmyk-yccl-fix.diff 1554 SHA256 17291c05c6d67c32b5bfc1c4afd0756bc8e168567c7a8e965a2befb20b18689c SHA512 b2ed44029d87038139137deb068ea55503ca4bb10cb6bf61880115dd913427cdded4e7808eec9947a1b35760efa7547420ea5fa2f0416266d0d307ce6b10cfd3 WHIRLPOOL 340871e54bde2363779ba7f2fc53ebbbc9ecf726c53e5c2949296cc3ba9a7e261cc490caf83327731af5c53dc72d9412fd914b8718bb63f3f5400d4348da9a6f
+AUX zgv-5.9-libpng15.patch 468 SHA256 7e38c92999be1dafa6234b9d2869b9359ea02941da2dbd29d500faf2f3f871dc SHA512 ff7ec6258960381d9cb9c061af67bfb9984a1bae70c0c902a0837787c82bd60ed699e8aa9d76f35a993a76aaf8ea5a9740cffa88fdb0bb654f9b3b09ba3cac00 WHIRLPOOL edd89e70183b4767d4267b3ca02270d6bf6164c0ffba03655c48dbb1caee7070f79aa48e7761947ffed0d04f94702393bb03dcffb09fffb4da5c4f3cc3cbb896
+DIST zgv-5.9.tar.gz 395525 SHA256 92e5d848fb51a77dc0ebb0ab383c1499c23aaff01f5445e9b0d75e067a8a64ba SHA512 f78d43c1703559f28961d8ce9ed6fc21cbb28b33885f824cc682591bf659d234b6c641f1677d42c592bcb22843854cbbac32ce0911bd1092f76a7ef5bfe31ddf WHIRLPOOL fc0d89cdf7686624736994e4c83bb12691095cb6815bab4461abbe1280bf9e0c4550125ab1665142648c2069e442f5e29fbbcad1fe7a6625b3646bf52ac07f0e
+EBUILD zgv-5.9.ebuild 1157 SHA256 fc538e8f6f5bf34cf4cce95ebfda451ebc9849f791253cc2f2ad17661aaa666f SHA512 9471aca8f6be313a79c9b27fc148ce35db5d2b1c1dea99904bbad2f054a5848fc7322874518ae9ac15305a359a00f7831c7f78c5bcdfbb7316e4da1cb015fb48 WHIRLPOOL 6a0ea208e31f85eb2f58dbeecaedc9a4546b5f4d0d2d70f0799e335bfa7b3bded2224fe26339e47d0d4c800f55eb4f3093115d77ac05bfdf0170408316e6cadc
+MISC ChangeLog 2609 SHA256 49b24757c337c127c1577ed68b370260e7398f3ea3b694f5594281b6ab75c47a SHA512 a828f4be136cdac4ac305b59e1acc6b60c7720aecf4693316ca3f312a9e4952940b702c5b591a2bddc4fc4320be9ec07c26fbb14f04b48cc92ca6c8d14ff0c68 WHIRLPOOL 80788bad0dbf37f7652ab84c8ba9962ddd8617d6c49ab6dabe9701fd055ce4cf763295bbdfc6577234e493d9c258dee43cccc7f9d0b6ef082f29c7bfac8c6af5
+MISC ChangeLog-2015 2739 SHA256 13d7e7163f2477aced8f85eb07c8edb46dc76985891c1cb97b3a1bdd23db45f7 SHA512 0e1022125a7d2e5408fb78260c5b547f7daccd46493284faa8ccae26352ba30fcf11d91a5de41a350aa4a078859a61520fbb2ca702aa7430fdce9d0f9a64e2cf WHIRLPOOL 682957ee7a549c83b4539caedd12583bb5ad204d14ba79ca1d5fcb595e8e1b3bd9cecb5f10d5ba3cc9a901ea4a13af526216d3b80b065d41901009bd50a76b74
+MISC metadata.xml 166 SHA256 2caff447f5bd2701d8456ada5cc633c41ef4373fa4bfeabeb73599d40bcc941b SHA512 a56648c974a1d14dd4c18237532773c72057a13ab90c58b5da04f185e3c12a8bd8d5c21fb06053507f31766291a82dc7d87b34cd65fd94cfe2af7295c813ef84 WHIRLPOOL 1ff70497eca6531f0e0614c72a19f4b8e5ff486a58d369f4f0b36308d1d6b01168f9da887740e3b9f536236be251d3fe05f904d27a9233a7cf613416ba882968
diff --git a/media-gfx/zgv/files/zgv-5.9-Makefile-QA.patch b/media-gfx/zgv/files/zgv-5.9-Makefile-QA.patch
new file mode 100644
index 000000000000..e4569547d175
--- /dev/null
+++ b/media-gfx/zgv/files/zgv-5.9-Makefile-QA.patch
@@ -0,0 +1,56 @@
+diff -NrU5 zgv-5.9.original/src/Makefile zgv-5.9/src/Makefile
+--- zgv-5.9.original/src/Makefile 2009-09-28 15:31:29.000000000 -0600
++++ zgv-5.9/src/Makefile 2009-09-28 15:56:26.000000000 -0600
+@@ -45,11 +45,11 @@
+ readbmp.o readtga.o readpng.o readpcx.o \
+ readxvpic.o readmrf.o readxbm.o readxpm.o \
+ modesel.o readpcd.o readtiff.o readprf.o zgv_io.o
+
+ zgv: $(ZGV_OBJS)
+- $(CC) $(CFLAGS) -o zgv $(ZGV_OBJS) $(ZGV_LIBS)
++ $(CC) $(CFLAGS) $(LDFLAGS) -o zgv $(ZGV_OBJS) $(ZGV_LIBS)
+
+ bdf2h: bdf2h.o
+ $(CC) $(CFLAGS) -o bdf2h bdf2h.o
+
+ install-info: install-info.c
+@@ -59,28 +59,28 @@
+ # installation. Not nice to put this in the install target,
+ # but it's likely to cause problems if I don't.
+ #
+ install: all
+ @if [ "$(BACKEND)" = SVGALIB ]; then \
+- echo $(RM) /usr/bin/zgv; \
+- $(RM) /usr/bin/zgv; \
+- echo install -m 4755 -o root -g root -s zgv $(BINDIR); \
+- install -m 4755 -o root -g root -s zgv $(BINDIR); \
++ echo echo /usr/bin/zgv; \
++ echo /usr/bin/zgv; \
++ echo install -m 0755 -o root -g root zgv $(BINDIR); \
++ install -m 0755 -o root -g root zgv $(BINDIR); \
+ fi
+ @if [ "$(BACKEND)" = SDL ]; then \
+- echo $(RM) /usr/bin/zgv-sdl; \
+- $(RM) /usr/bin/zgv-sdl; \
+- echo install -m 755 -s zgv $(BINDIR)/zgv-sdl; \
+- install -m 755 -s zgv $(BINDIR)/zgv-sdl; \
++ echo echo /usr/bin/zgv-sdl; \
++ echo /usr/bin/zgv-sdl; \
++ echo install -m 755 zgv $(BINDIR)/zgv-sdl; \
++ install -m 755 zgv $(BINDIR)/zgv-sdl; \
+ fi
+
+ uninstall:
+- $(RM) $(BINDIR)/zgv $(BINDIR)/zgv-sdl
++ echo $(BINDIR)/zgv $(BINDIR)/zgv-sdl
+
+ clean:
+- $(RM) *.o *~ zgv bdf2h fontbmps.h install-info
+- $(RM) rcfile_opt.h rcfile_var.h rcfile_short.h
++ echo *.o *~ zgv bdf2h fontbmps.h install-info
++ echo rcfile_opt.h rcfile_var.h rcfile_short.h
+
+ # Dependancies
+ 3deffects.o: 3deffects.c 3deffects.h font.h readnbkey.h zgv.h \
+ rc_config.h rcfile.h mousecur.h rbmenu.h
+ bdf2h.o: bdf2h.c
diff --git a/media-gfx/zgv/files/zgv-5.9-cmyk-yccl-fix.diff b/media-gfx/zgv/files/zgv-5.9-cmyk-yccl-fix.diff
new file mode 100644
index 000000000000..e510a4ba9ec2
--- /dev/null
+++ b/media-gfx/zgv/files/zgv-5.9-cmyk-yccl-fix.diff
@@ -0,0 +1,64 @@
+--- zgv-5.9/src/readjpeg.c Sun Oct 31 14:54:26 2004
++++ zgv/src/readjpeg.c Wed Sep 21 21:03:22 2005
+@@ -92,11 +92,13 @@
+ int *real_width,int *real_height)
+ {
+ static FILE *in;
++static int cmyk;
+ struct my_error_mgr jerr;
+ int row_stride; /* physical row width in output buffer */
+ int tmp,f;
+-unsigned char *ptr;
++unsigned char *ptr,*ptr2;
+
++cmyk=0;
+ use_errmsg=0;
+ theimage=NULL;
+ howfar=howfarfunc;
+@@ -161,6 +163,15 @@
+ pal[f]=pal[256+f]=pal[512+f]=f;
+ }
+
++if(cinfo.jpeg_color_space==JCS_CMYK)
++ cmyk=1;
++
++if(cinfo.jpeg_color_space==JCS_YCCK)
++ {
++ cmyk=1;
++ cinfo.out_color_space=JCS_CMYK;
++ }
++
+ width=cinfo.image_width;
+ height=cinfo.image_height;
+
+@@ -191,7 +202,7 @@
+ }
+
+ if(WH_BAD(width,height) ||
+- (theimage=(byte *)malloc(pixelsize*width*height))==NULL)
++ (theimage=(byte *)malloc(pixelsize*width*(height+cmyk)))==NULL)
+ {
+ jpegerr("Out of memory"); /* XXX misleading if width/height are bad */
+ longjmp(jerr.setjmp_buffer,1);
+@@ -222,7 +233,20 @@
+ while(cinfo.output_scanline<height)
+ {
+ jpeg_read_scanlines(&cinfo,&ptr,1);
+- for(f=0;f<width;f++) { tmp=*ptr; *ptr=ptr[2]; ptr[2]=tmp; ptr+=3; }
++ if(!cmyk)
++ for(f=0;f<width;f++) { tmp=*ptr; *ptr=ptr[2]; ptr[2]=tmp; ptr+=3; }
++ else
++ {
++ ptr2=ptr;
++ for(f=0;f<width;f++,ptr+=3,ptr2+=4)
++ {
++ tmp=ptr2[3];
++ ptr[0]=(tmp*ptr2[2])/255;
++ ptr[1]=(tmp*ptr2[1])/255;
++ ptr[2]=(tmp*ptr2[0])/255;
++ }
++ }
++
+ if(howfar!=NULL) howfar(cinfo.output_scanline,height);
+ }
+
diff --git a/media-gfx/zgv/files/zgv-5.9-libpng15.patch b/media-gfx/zgv/files/zgv-5.9-libpng15.patch
new file mode 100644
index 000000000000..2f12532831de
--- /dev/null
+++ b/media-gfx/zgv/files/zgv-5.9-libpng15.patch
@@ -0,0 +1,22 @@
+http://bugs.gentoo.org/389591
+
+--- src/readpng.c
++++ src/readpng.c
+@@ -63,7 +63,7 @@
+ use_errmsg=1;
+
+ /* cleanup is done after jump back, so just do that now... */
+-longjmp(png_ptr->jmpbuf,1);
++longjmp(png_jmpbuf(png_ptr), 1);
+ }
+
+
+@@ -132,7 +132,7 @@
+ return(_PICERR_NOMEM);
+ }
+
+-if(setjmp(png_ptr->jmpbuf))
++if(setjmp(png_jmpbuf(png_ptr)))
+ {
+ /* if we get here, there was an error. */
+ /* don't use local variables here, they may have been blasted */
diff --git a/media-gfx/zgv/metadata.xml b/media-gfx/zgv/metadata.xml
new file mode 100644
index 000000000000..6f49eba8f496
--- /dev/null
+++ b/media-gfx/zgv/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<!-- maintainer-needed -->
+</pkgmetadata>
diff --git a/media-gfx/zgv/zgv-5.9.ebuild b/media-gfx/zgv/zgv-5.9.ebuild
new file mode 100644
index 000000000000..c5761d43e5fa
--- /dev/null
+++ b/media-gfx/zgv/zgv-5.9.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+inherit eutils toolchain-funcs
+
+DESCRIPTION="A svgalib console image viewer"
+HOMEPAGE="http://www.svgalib.org/rus/zgv/"
+SRC_URI="http://www.svgalib.org/rus/zgv/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="x86"
+IUSE=""
+
+RDEPEND=">=media-libs/svgalib-1.4.2
+ virtual/jpeg
+ media-libs/libpng
+ >=media-libs/tiff-3.5.5
+ >=sys-libs/zlib-1.1.4
+ sys-apps/gawk"
+DEPEND="${RDEPEND}"
+
+src_prepare() {
+ sed -i -e "/^CFLAGS=/s:=.*:=${CFLAGS}:" config.mk || die
+ sed -i -e 's:$(RM):echo:' doc/Makefile || die
+
+ epatch \
+ "${FILESDIR}"/${P}-Makefile-QA.patch \
+ "${FILESDIR}"/${P}-cmyk-yccl-fix.diff \
+ "${FILESDIR}"/${P}-libpng15.patch
+}
+
+src_compile() {
+ emake CC="$(tc-getCC)"
+}
+
+src_install() {
+ dodir /usr/bin /usr/share/info /usr/share/man/man1
+
+ emake \
+ PREFIX="${D}"/usr \
+ INFODIR="${D}"/usr/share/info \
+ MANDIR="${D}"/usr/share/man/man1 \
+ install
+
+ dodoc AUTHORS ChangeLog INSTALL NEWS README* SECURITY TODO
+
+ # Fix info files
+ cd "${D}"/usr/share/info
+ rm dir*
+ mv zgv zgv.info
+ for i in 1 2 3 4 ; do
+ mv zgv-$i zgv.info-$i
+ done
+}