diff options
author | Denis Dupeyron <calchan@gentoo.org> | 2008-03-30 17:45:48 +0000 |
---|---|---|
committer | Denis Dupeyron <calchan@gentoo.org> | 2008-03-30 17:45:48 +0000 |
commit | 2896bdb6f7c2a4c609f0a1a9f90c3574cc037e16 (patch) | |
tree | 0b270e73775c6d8997391ee45ead6ebad5da00de /media-plugins/gimp-greycstoration | |
parent | Move patches here so we get them in releases. (diff) | |
download | gentoo-2-2896bdb6f7c2a4c609f0a1a9f90c3574cc037e16.tar.gz gentoo-2-2896bdb6f7c2a4c609f0a1a9f90c3574cc037e16.tar.bz2 gentoo-2-2896bdb6f7c2a4c609f0a1a9f90c3574cc037e16.zip |
Version bump. Added smp support.
(Portage version: 2.1.4.4)
Diffstat (limited to 'media-plugins/gimp-greycstoration')
-rw-r--r-- | media-plugins/gimp-greycstoration/ChangeLog | 8 | ||||
-rw-r--r-- | media-plugins/gimp-greycstoration/gimp-greycstoration-2.8.ebuild | 40 |
2 files changed, 47 insertions, 1 deletions
diff --git a/media-plugins/gimp-greycstoration/ChangeLog b/media-plugins/gimp-greycstoration/ChangeLog index a85696611d1a..f4554459041a 100644 --- a/media-plugins/gimp-greycstoration/ChangeLog +++ b/media-plugins/gimp-greycstoration/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for media-plugins/gimp-greycstoration # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-plugins/gimp-greycstoration/ChangeLog,v 1.1 2008/02/25 10:08:46 calchan Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-plugins/gimp-greycstoration/ChangeLog,v 1.2 2008/03/30 17:45:48 calchan Exp $ + +*gimp-greycstoration-2.8 (30 Mar 2008) + + 30 Mar 2008; Denis Dupeyron <calchan@gentoo.org> + +gimp-greycstoration-2.8.ebuild: + Version bump. Added smp support. *gimp-greycstoration-1.2.7 (25 Feb 2008) diff --git a/media-plugins/gimp-greycstoration/gimp-greycstoration-2.8.ebuild b/media-plugins/gimp-greycstoration/gimp-greycstoration-2.8.ebuild new file mode 100644 index 000000000000..4da9f348a8df --- /dev/null +++ b/media-plugins/gimp-greycstoration/gimp-greycstoration-2.8.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-plugins/gimp-greycstoration/gimp-greycstoration-2.8.ebuild,v 1.1 2008/03/30 17:45:48 calchan Exp $ + +inherit toolchain-funcs + +DESCRIPTION="GIMP plug-in for denoising through image regularization" +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="smp" +DEPEND=">=media-gfx/gimp-2.2" +S="${WORKDIR}/GREYCstoration-${PV}/src" + +src_unpack() { + unpack ${A} + sed -i -e "s:plugins/../CImg.h:CImg.h:" "${S}"/greycstoration4gimp.cpp || die "sed failed" + if use smp ; then + sed -i -e "s:^#define NTHREADS 1:#define NTHREADS 4:" "${S}"/greycstoration4gimp.cpp || die "sed failed" + fi +} + +src_compile() { + $(tc-getCXX) -o greycstoration greycstoration4gimp.cpp \ + $(gimptool-2.0 --cflags) $(gimptool-2.0 --libs) \ + -lpthread ${CXXFLAGS} ${LDFLAGS} \ + || die "Compilation failed" +} + +src_install() { + exeinto $(gimptool-2.0 --gimpplugindir)/plug-ins + doexe greycstoration || die "Installation failed" +} + +pkg_postinst() { + elog "The GREYCstoration plugin is accessible from the menu :" + elog "Filters -> Enhance -> GREYCstoration" +} |