pacho       14/08/02 08:45:45

  Modified:             ChangeLog
  Added:                xsane-0.999-r1.ebuild
  Removed:              xsane-0.998-r1.ebuild
  Log:
  Support lcms2 (#517642 by Nikoli)
  
  (Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key 
A188FBD4)

Revision  Changes    Path
1.113                media-gfx/xsane/ChangeLog

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/xsane/ChangeLog?rev=1.113&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/xsane/ChangeLog?rev=1.113&content-type=text/plain
diff : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/xsane/ChangeLog?r1=1.112&r2=1.113

Index: ChangeLog
===================================================================
RCS file: /var/cvsroot/gentoo-x86/media-gfx/xsane/ChangeLog,v
retrieving revision 1.112
retrieving revision 1.113
diff -u -r1.112 -r1.113
--- ChangeLog   18 Jan 2014 19:55:52 -0000      1.112
+++ ChangeLog   2 Aug 2014 08:45:45 -0000       1.113
@@ -1,6 +1,12 @@
 # ChangeLog for media-gfx/xsane
 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-gfx/xsane/ChangeLog,v 1.112 
2014/01/18 19:55:52 ago Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-gfx/xsane/ChangeLog,v 1.113 
2014/08/02 08:45:45 pacho Exp $
+
+*xsane-0.999-r1 (02 Aug 2014)
+
+  02 Aug 2014; Pacho Ramos <[email protected]> +files/xsane-0.999-lcms2.patch,
+  +xsane-0.999-r1.ebuild, -xsane-0.998-r1.ebuild:
+  Support lcms2 (#517642 by Nikoli)
 
   18 Jan 2014; Agostino Sarubbo <[email protected]> xsane-0.999.ebuild:
   Stable for alpha, wrt bug #491476



1.1                  media-gfx/xsane/xsane-0.999-r1.ebuild

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/xsane/xsane-0.999-r1.ebuild?rev=1.1&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/xsane/xsane-0.999-r1.ebuild?rev=1.1&content-type=text/plain

Index: xsane-0.999-r1.ebuild
===================================================================
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-gfx/xsane/xsane-0.999-r1.ebuild,v 1.1 
2014/08/02 08:45:44 pacho Exp $

EAPI=5
inherit autotools eutils toolchain-funcs

DESCRIPTION="graphical scanning frontend"
HOMEPAGE="http://www.xsane.org/";
SRC_URI="
        http://www.xsane.org/download/${P}.tar.gz
        http://dev.gentoo.org/~dilfridge/distfiles/${PN}-0.998-patches-2.tar.xz
"

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 )
        png? ( media-libs/libpng )
        tiff? ( media-libs/tiff )
        gimp? ( media-gfx/gimp )
        lcms? ( media-libs/lcms:2 )
"

PDEPEND="ocr? ( app-text/gocr )"

DEPEND="${RDEPEND}
        app-arch/xz-utils
        virtual/pkgconfig
"

src_prepare() {
        # 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)
        epatch "${FILESDIR}/${PN}-0.999-lcms2.patch"
        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 src/xsane-48x48.png ${PN}.png
}




Reply via email to