radhermit    14/12/08 03:23:48

  Modified:             ChangeLog
  Added:                gimp-gmic-1.6.0.2-r1.ebuild
  Removed:              gimp-gmic-1.6.0.2.ebuild
  Log:
  Add openmp use flag.
  
  (Portage version: 2.2.14/cvs/Linux x86_64, signed Manifest commit with key 
4AB3E85B4F064CA3)

Revision  Changes    Path
1.48                 media-plugins/gimp-gmic/ChangeLog

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-plugins/gimp-gmic/ChangeLog?rev=1.48&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-plugins/gimp-gmic/ChangeLog?rev=1.48&content-type=text/plain
diff : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-plugins/gimp-gmic/ChangeLog?r1=1.47&r2=1.48

Index: ChangeLog
===================================================================
RCS file: /var/cvsroot/gentoo-x86/media-plugins/gimp-gmic/ChangeLog,v
retrieving revision 1.47
retrieving revision 1.48
diff -u -r1.47 -r1.48
--- ChangeLog   3 Dec 2014 08:06:17 -0000       1.47
+++ ChangeLog   8 Dec 2014 03:23:48 -0000       1.48
@@ -1,6 +1,12 @@
 # ChangeLog for media-plugins/gimp-gmic
 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-plugins/gimp-gmic/ChangeLog,v 1.47 
2014/12/03 08:06:17 radhermit Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-plugins/gimp-gmic/ChangeLog,v 1.48 
2014/12/08 03:23:48 radhermit Exp $
+
+*gimp-gmic-1.6.0.2-r1 (08 Dec 2014)
+
+  08 Dec 2014; Tim Harder <[email protected]> -gimp-gmic-1.6.0.2.ebuild,
+  +gimp-gmic-1.6.0.2-r1.ebuild:
+  Add openmp use flag.
 
 *gimp-gmic-1.6.0.2 (03 Dec 2014)
 



1.1                  media-plugins/gimp-gmic/gimp-gmic-1.6.0.2-r1.ebuild

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-plugins/gimp-gmic/gimp-gmic-1.6.0.2-r1.ebuild?rev=1.1&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-plugins/gimp-gmic/gimp-gmic-1.6.0.2-r1.ebuild?rev=1.1&content-type=text/plain

Index: gimp-gmic-1.6.0.2-r1.ebuild
===================================================================
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: 
/var/cvsroot/gentoo-x86/media-plugins/gimp-gmic/gimp-gmic-1.6.0.2-r1.ebuild,v 
1.1 2014/12/08 03:23:48 radhermit Exp $

EAPI=5

inherit eutils toolchain-funcs flag-o-matic

DESCRIPTION="G'MIC GIMP plugin"
HOMEPAGE="http://gmic.sourceforge.net/gimp.shtml";
SRC_URI="mirror://sourceforge/gmic/gmic_${PV}.tar.gz"

LICENSE="CeCILL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="openmp"

RDEPEND="
        >=media-gfx/gimp-2.4.0
        media-libs/libpng:0=
        sci-libs/fftw:3.0[threads]
        sys-libs/zlib
"
DEPEND="${RDEPEND}"

S=${WORKDIR}/gmic-${PV}/src

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() {
        epatch "${FILESDIR}"/gmic-${PV}-makefile.patch

        if ! use openmp ; then
                sed -i -r "s/^(OPENMP_(CFLAGS|LIBS) =).*/\1/" Makefile || die
        fi
}

src_compile() {
        emake CC="$(tc-getCXX)" CFLAGS="${CXXFLAGS}" OPT_CFLAGS= DEBUG_CFLAGS= 
gimp
}

src_install() {
        emake DESTDIR="${D}" install-gimp
        dodoc ../README
}

pkg_postinst() {
        elog "The G'MIC plugin is accessible from the menu:"
        elog "Filters -> G'MIC"
}




Reply via email to