commit:     2701cb64ee7cd76093474d7b9868341afc7ee0f6
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat Feb 18 18:51:48 2017 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Feb 18 18:52:21 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2701cb64

media-gfx/exact-image: python-single-r1, EAPI=6

 ...-0.8.1-r1.ebuild => exact-image-0.8.1-r2.ebuild} | 21 ++++++++++-----------
 .../files/exact-image-0.7.5-libpng14.patch          |  4 ++--
 .../files/exact-image-0.8.1-libpng15.patch          |  4 ++--
 3 files changed, 14 insertions(+), 15 deletions(-)

diff --git a/media-gfx/exact-image/exact-image-0.8.1-r1.ebuild 
b/media-gfx/exact-image/exact-image-0.8.1-r2.ebuild
similarity index 88%
rename from media-gfx/exact-image/exact-image-0.8.1-r1.ebuild
rename to media-gfx/exact-image/exact-image-0.8.1-r2.ebuild
index c12812e5a8..3b83d0e650 100644
--- a/media-gfx/exact-image/exact-image-0.8.1-r1.ebuild
+++ b/media-gfx/exact-image/exact-image-0.8.1-r2.ebuild
@@ -1,11 +1,11 @@
-# Copyright 1999-2014 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
-EAPI=4
-PYTHON_DEPEND="python? 2:2.5"
+EAPI=6
+PYTHON_COMPAT=( python2_7 )
 
-inherit eutils multilib python toolchain-funcs
+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/";
@@ -26,6 +26,7 @@ RDEPEND="x11-libs/agg[truetype]
        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 )
@@ -40,21 +41,19 @@ DEPEND="${RDEPEND}
        swig? ( dev-lang/swig )"
 
 pkg_setup() {
-       if use python; then
-               python_set_active_version 2
-       fi
-       python_pkg_setup
+       use python && python-single-r1_pkg_setup
 }
 
 src_prepare() {
-       epatch \
+       eapply \
                "${FILESDIR}"/${PN}-0.7.5-libpng14.patch \
                "${FILESDIR}"/${P}-libpng15.patch
+       eapply_user
 
        # fix python hardcoded path wrt bug #327171
-       sed -i -e "s:python2.5:python$(python_get_version):" \
+       sed -i -e "s:python2.5:${EPYTHON}:" \
                -e "s:\$(libdir):usr/$(get_libdir):" \
-               "${S}"/api/python/Makefile
+               "${S}"/api/python/Makefile || die
 
        # Respect user CFLAGS/CXXFLAGS.
        sed -i \

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
index f25b9af02d..7c62a6cbd7 100644
--- 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
@@ -1,5 +1,5 @@
---- codecs/png.cc
-+++ codecs/png.cc
+--- 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);

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
index 44c94726e3..94c8906a87 100644
--- 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
@@ -1,5 +1,5 @@
---- codecs/png.cc
-+++ codecs/png.cc
+--- a/codecs/png.cc
++++ b/codecs/png.cc
 @@ -16,6 +16,7 @@
   */
  

Reply via email to