Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 283784 - ebuild for the G'MIC gimp plugin (media-plugins/gimp-gmic)
Summary: ebuild for the G'MIC gimp plugin (media-plugins/gimp-gmic)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement with 1 vote (vote)
Assignee: Default Assignee for New Packages
URL:
Whiteboard:
Keywords:
Depends on: 328295
Blocks:
  Show dependency tree
 
Reported: 2009-09-05 21:19 UTC by Dominique Michel
Modified: 2011-10-25 07:09 UTC (History)
11 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
ebuild for media-plugins/gmic-1.3.2.5 (gimp-gmic-1.3.2.5.ebuild,1.82 KB, text/plain)
2009-09-05 21:21 UTC, Dominique Michel
Details
Version bump and simplified ebuild. (gimp-gmic-1.3.3.1.ebuild,812 bytes, text/plain)
2009-11-27 08:18 UTC, Róbert Čerňanský
Details
gimp-gmic-1.3.4.0.ebuild (gimp-gmic-1.3.4.0.ebuild,934 bytes, text/plain)
2010-03-10 16:57 UTC, Denilson Sá Maia
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dominique Michel 2009-09-05 21:19:13 UTC
G'MIC is a script language for image processing, which comes with its open-source interpreter. See http://gmic.sourceforge.net/index.shtml

The G'MIC interpreter has been embedded in a plug-in for GIMP, with a large number of pre-defined filters. One can use it to apply various effects on images, directly from the GIMP interface. This plug-in is highly customizable and it is possible to add your own G'MIC-based entries into it. See http://gmic.sourceforge.net/gimp.shtml

The sources are the same for both G'MIC and the G'MIC gimp plugin. This ebuild will install only the gimp plugin.

From http://cimg.sourceforge.net/greycstoration/ GREYCstoration is about to die and they have developed a new plugin: gmic.

Both media-plugins/gimp-gmic and media-plugins/gimp-greycstoration can be installed at the same time.

Reproducible: Always
Comment 1 Dominique Michel 2009-09-05 21:21:54 UTC
Created attachment 203238 [details]
ebuild for media-plugins/gmic-1.3.2.5

Tested on ~amd64.
Comment 2 Róbert Čerňanský 2009-11-27 08:18:18 UTC
Created attachment 211297 [details]
Version bump and simplified ebuild.

This is an ebuild for the new 1.3.3.1 version of the G'MIC GIMP plugin.
Moved to EAPI=2 so now it depends on '>=media-gfx/gimp-2.4.0[tiff,png,jpeg]' rather then doing "run time" checks for tiff, png and jpeg use for gimp.
Removed commented code.
Removed unneeded src_unpack().
Comment 3 Martin 'Douglas' Schuster 2010-03-09 09:16:48 UTC
The 1.3.3.1.ebuild also works fine for 1.3.4.0 (at least on amd64)

Only thing that might need fixing: gcc is called with -O3, even if my CFLAGS don't contain it. This leads to biig memory usage and compile time:

USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
root      2870 96.2 49.9 1007136 974288 pts/3  RN+  10:00   5:50 /usr/libexec/gcc/x86_64-pc-linux-gnu/4.3.4/cc1plus -quiet -D_GNU_SOURCE -Dgmic_gimp -Dgmic_minimal -Dgmic_float -Dgmic_build -Dcimg_display=0 -Dcimg_use_fftw3 -Dcimg_use_png gmic.cpp -D_FORTIFY_SOURCE=2 -march=core2 -mcx16 -msahf --param l1-cache-size=32 --param l1-cache-line-size=64 -mtune=core2 -quiet -dumpbase gmic.cpp -auxbase-strip gmic_gimp.o -O3 -fomit-frame-pointer -o /var/tmp/portage/media-plugins/gimp-gmic-1.3.4.0/temp/cc1CzM9W.s
Comment 4 Denilson Sá Maia 2010-03-10 16:57:09 UTC
Created attachment 223019 [details]
gimp-gmic-1.3.4.0.ebuild

(In reply to comment #3)
> Only thing that might need fixing: gcc is called with -O3, even if my CFLAGS
> don't contain it. This leads to biig memory usage and compile time:

There is OPT_CFLAGS in src/Makefile. I've cleared it, but even with -O2 it takes a lot of time to compile here (around 6~8 minutes).

I've updated the ebuild, these are the changes:

* Cleared OPT_CFLAGS in Makefile using sed.
* Removed the 'strip' command from the Makefile, also using sed.
* Updated the DEPEND/RDEPEND (see explanation below).
* Replaced gimptool by pkg-config. See bug 240648 comment 25.

Looking at the Makefile, I see this:
STD_GIMP_LDFLAGS = -lpthread $(FFTW_LDFLAGS) $(PNG_LDFLAGS)
PNG_LDFLAGS = -lpng -lz
FFTW_LDFLAGS = -lfftw3

Thus, I removed imagemagick dependency, added slot number for fftw, and added zlib dependency.

I think it only requires *magick for the command-line/stand-alone version, and not for the gimp plugin. Furthermore, it requires graphicsmagick instead of imagemagick.

Future improvements for this ebuild:
* Add a 'doc' useflag and install 14MB of documentation (available at 'html' directory).
* It seems the "-j2" MAKEOPTS is not respected when the makefile calls make recursively. That's not much of an issue, because it builds only one file (but I'm still curious about why it works on other recursive Makefiles).
* Write another ebuild for stand-alone gmic. The dependencies are very different from the gimp plugin, so I think it deserves to be another package.
Comment 5 Alec Meyers 2010-03-27 21:01:23 UTC
Thanks, works great on ~amd64
Comment 6 Trinine 2010-05-17 15:48:59 UTC
(In reply to comment #5)
> Thanks, works great on ~amd64
>

And it seems to work too with the new 1.3.5.0 version, by simply renaming the ebuild.

T.
Comment 7 Guillaume Née 2010-07-14 19:57:41 UTC
I've created an ebuild for the entire gmic project including the gimp plugin, see Bug 328301 for it.
Sincerely,
Guillaume
Comment 8 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2010-11-03 21:03:37 UTC
*** Bug 328301 has been marked as a duplicate of this bug. ***
Comment 9 Vasilis Lourdas 2011-02-19 22:46:27 UTC
Any news on this package? version 1.4.8.1 seems to be the current stable...
Comment 10 Dominique Michel 2011-04-23 12:04:39 UTC
Thanks for the updates.

For the current version (1.4.9.1 at that time), it is just to rename the ebuild.

Be also aware than the doc (in fact a tutorial) was removed from the tarball and is available online at the website.
Comment 11 Tim Harder gentoo-dev 2011-10-25 07:09:54 UTC
1.5.0.4 added to CVS.