diff options
author | Tim Harder <radhermit@gentoo.org> | 2015-06-27 03:21:36 +0000 |
---|---|---|
committer | Tim Harder <radhermit@gentoo.org> | 2015-06-27 03:21:36 +0000 |
commit | c0c7e45c953e74563ad8cf7c39ccdbf918a52793 (patch) | |
tree | 6a2c42188b959b5e32be947b3d937a15d46a0a3a /media-plugins | |
parent | Specify jpeg, libpng, and tiff slot deps. (diff) | |
download | historical-c0c7e45c953e74563ad8cf7c39ccdbf918a52793.tar.gz historical-c0c7e45c953e74563ad8cf7c39ccdbf918a52793.tar.bz2 historical-c0c7e45c953e74563ad8cf7c39ccdbf918a52793.zip |
Version bump.
Package-Manager: portage-2.2.20/cvs/Linux x86_64
Manifest-Sign-Key: 0x4AB3E85B4F064CA3
Diffstat (limited to 'media-plugins')
-rw-r--r-- | media-plugins/gimp-gmic/ChangeLog | 8 | ||||
-rw-r--r-- | media-plugins/gimp-gmic/Manifest | 31 | ||||
-rw-r--r-- | media-plugins/gimp-gmic/files/gmic-1.6.5.0-makefile.patch | 154 | ||||
-rw-r--r-- | media-plugins/gimp-gmic/gimp-gmic-1.6.5.0.ebuild | 58 |
4 files changed, 232 insertions, 19 deletions
diff --git a/media-plugins/gimp-gmic/ChangeLog b/media-plugins/gimp-gmic/ChangeLog index 685726c7321c..f1ca0a5d1e54 100644 --- a/media-plugins/gimp-gmic/ChangeLog +++ b/media-plugins/gimp-gmic/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for media-plugins/gimp-gmic # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-plugins/gimp-gmic/ChangeLog,v 1.53 2015/02/21 23:29:47 radhermit Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-plugins/gimp-gmic/ChangeLog,v 1.54 2015/06/27 03:21:34 radhermit Exp $ + +*gimp-gmic-1.6.5.0 (27 Jun 2015) + + 27 Jun 2015; Tim Harder <radhermit@gentoo.org> +gimp-gmic-1.6.5.0.ebuild, + +files/gmic-1.6.5.0-makefile.patch: + Version bump. 21 Feb 2015; Tim Harder <radhermit@gentoo.org> gimp-gmic-1.6.0.4.ebuild: Update HOMEPAGE. diff --git a/media-plugins/gimp-gmic/Manifest b/media-plugins/gimp-gmic/Manifest index a6fe65eb5c66..9a0027ab1688 100644 --- a/media-plugins/gimp-gmic/Manifest +++ b/media-plugins/gimp-gmic/Manifest @@ -1,31 +1,26 @@ -----BEGIN PGP SIGNED MESSAGE----- -Hash: SHA512 +Hash: SHA256 AUX gmic-1.6.0.2-makefile.patch 6480 SHA256 b4b0b8834d784f8464bf0e836d10cd3f1c86fb6bf5d73f129222e3c824c05bc4 SHA512 7f69f20a8fa73e4b9bdfc9c4e222d80d8a87a0d18acded10af254806464c4b45280a596722859926d7b64b560f484501335f950c6dac7eb76b7b3f7d1a3a8a8c WHIRLPOOL 5f600fe95c3b1d2a61bc7b1f4b2c65f25f0648b44ee3fe40735c6f20ecbda2e57a2f88c19577841983499d19685b3902adb5b2d4ae1006ecdc50474b172660a2 +AUX gmic-1.6.5.0-makefile.patch 5967 SHA256 77bb1e8e55cbf079f329460585899eb1f6fd1e29baf70d4be08f10bd1857260e SHA512 d3963f8d624f15b1edf20a90639c8da48ce2e5aed7b4825d5b9b140d6cb0c2a1875b49278e42a5def8407c2af54e82cda435c2efeba725c6d7c39390061649ae WHIRLPOOL f48a5d3486547c235141ce5799bcb6200f2819c4001d2d7a00f52cb7d27b7963a730a293b0ea206d179aa818133e5f525e6aaa3db5bf7fb1a40babf4e924fa2f DIST gmic_1.6.0.2.tar.gz 3013936 SHA256 ec9fa41bb8c27f883b9f845258d41f8024936c80bdec723a1c67cfe05ef9b900 SHA512 9d754cc2c72835bd139a39f72863f5315bebc25716efadb023f54661a4bb3fbf29066ddcd258ab8f084164edc9bd02f77a5a801b5c0753322f959205ce0adaf1 WHIRLPOOL 1d8e7126901b7a269f0aae9bdc1bd05a859efa3269de892e712892aa0c06eeb856c27cf05564bac30abcacf27f3e11d2bcc8f179fc29a675960d6640567cdc0c DIST gmic_1.6.0.3.tar.gz 3019692 SHA256 91ce6cfe58e29a6819bf849346bf049d2d73f826bbd7b8b8de42dae7d54c7752 SHA512 377b361fc178ab73a7542a39243d32de970ad6ec5928c295d86acf1bd67efc2ebaf72ce818b55c6a7aeda17eb657fbf4176f4f4c90bc48179419842343e3619b WHIRLPOOL fb78366cd72467b2c1ac2e3f704061be173ba28cb888dabee56f7c4c7c2a4b870293c2e1ae88c87edad8f4e511944bb99218e9fae2d30226c1a4b07b001927f6 DIST gmic_1.6.0.4.tar.gz 3073596 SHA256 ef83e4efc31280e819d02315b1ebbaec6c0b8ebb960da3e785651572853b8f58 SHA512 75c0adc8a0460c140ec656403053e4533fc6434a0b23c2ac842045aeb788a8ce5da5338832574e76e06fd710bebf5ec627a5bc894f00081ffd1b37a5c6aa852e WHIRLPOOL 1eb3afc6c9fb9c07999e5e497e6d6c5075fda46293417e889511c28c9e0ce26b0070e1356dcf0db9bb49e76b83d75941ed917c01b61c98ab537430ea938c831d +DIST gmic_1.6.5.0.tar.gz 3005945 SHA256 ebc98c4f5848b8343d581104e072299529ac3edbcea7b565ffd6e1fb4bfd66ed SHA512 3feb5589dcc341106ce1305ce2d3f90776f074607bec3b8413519aa5f2c9dc9554a9ee7a5ba1d52d1a9e7676e6bff135d444276c989511f973cd456136d0e4e1 WHIRLPOOL 02f3f711fa9c876fba39e56a42c30f62a6c2d0848ae836f9635d7df0ef57f48f2a8f09ca361232c2239e473046fe7d085260ac365d2e7b6d49e65c3c0aa2e9bc EBUILD gimp-gmic-1.6.0.2-r1.ebuild 1315 SHA256 8b45f6744aeb8fe54a568beecc441568143a0ccaa9f130624937f640b48bd4ad SHA512 b188d0268b261dd511e00cad9616ae16458f6c97d6ec402b2e1c7b3c09f04c41d275541332e96b9ff32476c474dfd83d061596772e4a038f331abdf38853e0e2 WHIRLPOOL 06e933bae7823c65b956d79f7e59aee7b9968c0402cfd2821dafa30d04532ae3dcd0c6d608d025b168d299c12d52fd2e2b5f5faef082b9eabf6d7737ba8251ac EBUILD gimp-gmic-1.6.0.3.ebuild 1431 SHA256 ef46080d84b667c544ecaf6e56968aa2269623c857e031de664d9d65eef6f5d2 SHA512 a11356282525f917ef0cca508005cdf4f79ff70f426c32c4600bb71447d89a9cb26d2168960dda6eed25160cc146d16ccfae5f09a6de01e35824b62dab302ebf WHIRLPOOL 90d96301c41891de5e41da053e9c4c9c62f67336797b075ad2da23e6bd8c728aea00514ee114c95035fe58c21910763df54ebadef0774e37f65430799ded6a66 EBUILD gimp-gmic-1.6.0.4.ebuild 1408 SHA256 123b1a5c33306a56ea14c45f8b676a1334382a97a6a271a27f9aeb11d8021223 SHA512 7cf8860d22abeb52f21982e0dc8769aa1e2961c785138b90185499ca21266b53bbc8b936fc0e0a21c3ac982a8f31da099b2bb04789e268331ae4ebe9fc921864 WHIRLPOOL 1a0cc40289723df81a241c70bcc02ca07a1354b5dad73634494f3db6a90c4c03820ae24445e695fd09252b45d43843b0108fe223d19c4a7895c3a129cec85e29 -MISC ChangeLog 8343 SHA256 f3d7c931e291e7c423300c718c74a6938373eb9f56042c141353b5bf0f753caf SHA512 d5bb55254911300179153ff4b3a96c3e957ce94738937b16888af2e6bfe18e97b8fe426311ee757c64cc635684865fd1b570d3bfe516a6a8b94badaf723b3631 WHIRLPOOL 229ad2eb2cd3cd1f604731874f4971579b2d25b6133a93ed99cd7cf6c2fd596481aed9df86c7739a96e0b7049b0bb853e06cc521e0b6131bbc9573616858f739 +EBUILD gimp-gmic-1.6.5.0.ebuild 1291 SHA256 e2341ec29c0aa446e5f5905d46152f8bb61ea67722fec67247841479c53295be SHA512 55f82ab9d3d7ba9007133929c7c2f5d9bcecc910c5dc9848c752b3f3134c2711fa56fd6ad071cf753a840ee6c027abbcb6c8024f81a369fed3181e0d0b5a1e09 WHIRLPOOL 6000cec6e75cdba7278419b2862949ad87dbee73a4dc5407b2ea707a550836141ab9408e2270f8e1476da82d441e09e430169b89d8ba57b974c137d22f006c64 +MISC ChangeLog 8508 SHA256 0c1e481f4cb32411293e3bd769d25d62b4b655086ec3633337769acfad17b0ab SHA512 8c4b73a7bafc85478d6aae325ff021b67b758f353b3cbba2b3ee116e7b4691fd12a1e5b9f86d2baf5a47d8f65a20c9157b175424eaaf086ae0c5918b3e1a9ba2 WHIRLPOOL 53c5f4f05b1918b556c2496925b10e5935ea7b3165716e3b042c83594123917e6a4c33cef511d9b167600ce5df5afa257991d8f204523b8154d8ceabac57a644 MISC metadata.xml 236 SHA256 4eba737709f56d0b13adb9049c1acb281328e99cb9126488536f466e4457ef3d SHA512 717fe0f1d8b33feca50fc6b6d4af9be07fcfa4a8cd776563c0e3feffb8873359a897b30ac5807e5ca2511eb84444349b13f16251129b6051824a2a8400010e69 WHIRLPOOL e9b6b3607086a03d4b496cc14946691a2782420510a84dc30b84f66cde1339e0a256ecfc108fd8fe482502db030488db66735096cd45cd5f0009a81a94603ffc -----BEGIN PGP SIGNATURE----- -Version: GnuPG v2.0 +Version: GnuPG v2 -iQJ8BAEBCgBmBQJVfutmXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w -ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ0QUU0N0I4NzFERUI0MTJFN0EyODE0NUFF -OTQwMkE3OUIwMzUyOUEyAAoJEOlAKnmwNSmi0ncP/0g2P7PeJCCWsYIP95+9HGbk -6cTGCUOMGPH4sPdoQQxVsCgptKmycO9zzuC3TDAIH5FE6iJfrplPDnAm8uCPBiVh -OT4bmA+Psug20Gw1xC2uu8xYKNgPeKmu669eTkqD9x02NghgYSGKfyNShy8NOwfq -kgIGiwlrza+iVu4n8EMINWRqlUaOpB79aPSJdnwoukVmj8QIr85GPKLzTGHp4ZPF -uHK0ElqJeD5bYP7u3D60X6H5DhAMA2a35o5iLz7PIyt10WuopbsIFf/LVKUNZNR3 -O3WTcmFOLiqSIZdgc6tUN12vuNAWPUyVgOiHSX5D5nuIudsBSejbjWKAS2Iwkytn -A8kviB29m0c9iCFO3ZEH1p95IWEbAwKC3khTjXm1FHO2aGDQNbhUR1B2yfig6gXA -cHWC9+i1FnN1bx3fOjAyIKTOwcIV2lyDJ/+ElK2pKP2oaWfKfvVgMutYxL8425kT -2RCO0q5PHuAfhmgoYr/73WFyZtVVntK75xmRYU7wHMcz8DKV23xD2XVyk7jPoI/2 -So9AqmBndGxLyj6hPHN84p6fAd3b64NsgGJGGUA1ASN4lM2zX2Az6FnFV6h1Ccb6 -0vqqs264g18CMc+DNksmGlcbi4HOh7tG9LU75AJWRhs9D94UIJUmS2Tw4R2h7sNY -vEWuHxU3Ai/in2Pfsrq1 -=49ux +iQEcBAEBCAAGBQJVjha/AAoJEEqz6FtPBkyjesgH/jVRTAeJwjuvLlU48Ue7tV+I +KGoo8JybGIF5rBUnna34ITrDP/hpQrIP2sRsNzw8Hk/Z3JAatbWGcGyeXslIHCn+ +yV+A9w9IZ0hLMWApqYF2PVdn0exxOQOnXFZB1aq+jjlV4zk62Q9McglX5lYjnwUU +Rs5juilEoh/fXYtRITpZ4jKFJn4n1sU2NJjHc4As39D3nMXWlF0np7A88m3LVBgF +chcpCkXAFnECAC9CwCk/0fFgjtg9hOnTpoEDbdOUL5/bLH1KP+J/sNA9hh3yzXm4 +ujdVBoKDFzhbu/M7bZNBJgjsAq3PSGxQZu1X/l/H1xMsyy6xrQegKEgV34WyS/w= +=n4PW -----END PGP SIGNATURE----- diff --git a/media-plugins/gimp-gmic/files/gmic-1.6.5.0-makefile.patch b/media-plugins/gimp-gmic/files/gmic-1.6.5.0-makefile.patch new file mode 100644 index 000000000000..91e7528ae850 --- /dev/null +++ b/media-plugins/gimp-gmic/files/gmic-1.6.5.0-makefile.patch @@ -0,0 +1,154 @@ +--- gmic-1.6.5.0/src/Makefile ++++ gmic-1.6.5.0/src/Makefile +@@ -85,7 +85,6 @@ + ifndef NO_STDLIB + MANDATORY_CFLAGS += -std=c++11 + endif +-MANDATORY_LIBS += -L$(USR)/$(LIB) + ifeq ($(notdir $(CC)),g++) + MANDATORY_CFLAGS += -Wall -W + MANDATORY_LIBS += -lm +@@ -139,14 +138,14 @@ + # (keep /usr/ dirname here since X11 is located in /usr/ on Mac too). + # This requires the presence of the X11 include and library files. + # (package 'libx11-dev' on Debian). +-X11_CFLAGS = -Dcimg_display=1 -Dcimg_appname=\\\"gmic\\\" -I/usr/X11R6/include #-Dcimg_use_xrandr +-X11_LIBS = -L/usr/X11R6/lib -lX11 -lpthread #-lXrandr ++X11_CFLAGS = -Dcimg_display=1 -Dcimg_appname=\\\"gmic\\\" #-Dcimg_use_xrandr ++X11_LIBS = -lX11 -lpthread #-lXrandr + + # Flags to enable fast display, using XShm. + # This requires the presence of the X11 extension include and library files. + # (package 'libx11-dev' on Debian). + XSHM_CFLAGS = -Dcimg_use_xshm +-XSHM_LIBS = -L$(USR)/X11R6/lib -lXext ++XSHM_LIBS = -lXext + + # Flags to enable image display, using GDI32. + # This requires the presence of the GDI32 include and library files. +@@ -174,8 +173,8 @@ + # Flags to enable native support for MINC2 image files, using the MINC2 library. + # ( http://en.wikibooks.org/wiki/MINC/Reference/MINC2.0_Users_Guide ) + # (package 'libminc-dev' on Debian). +-MINC2_CFLAGS = -Dcimg_use_minc2 -I${HOME}/local/include +-MINC2_LIBS = -lminc_io -lvolume_io2 -lminc2 -lnetcdf -lhdf5 -lz -L${HOME}/local/lib ++MINC2_CFLAGS = -Dcimg_use_minc2 ++MINC2_LIBS = -lminc_io -lvolume_io2 -lminc2 -lnetcdf -lhdf5 -lz + + # Flags to enable native support for downloading files from the network. + # ( http://curl.haxx.se/libcurl/ ) +@@ -325,7 +324,6 @@ + + cli: + $(MAKE) "CFLAGS+=$(STD_CLI_CFLAGS) $(OPT_CFLAGS)" "LIBS+=$(STD_CLI_LIBS)" gmic +- strip gmic$(EXE) + + gimp: + $(MAKE) "CFLAGS+=$(STD_GIMP_CFLAGS) $(OPT_CFLAGS)" "LIBS+=$(STD_GIMP_LIBS)" gmic_gimp +@@ -335,11 +333,9 @@ + + gmicol: + $(MAKE) "CFLAGS+=$(STD_GMICOL_CFLAGS) $(OPT_CFLAGS)" "LIBS+=$(STD_GMICOL_LIBS)" gmic +- strip gmic$(EXE) + + static: + $(MAKE) "CFLAGS+=$(STATIC_CLI_CFLAGS) $(OPT_CFLAGS)" "LIBS+=$(STATIC_CLI_LIBS)" gmic +- strip gmic$(EXE) + + debug: + $(MAKE) "CFLAGS+=$(STD_CLI_CFLAGS) $(DEBUG_CFLAGS)" "LIBS+=$(STD_CLI_LIBS)" gmic +@@ -355,24 +351,22 @@ + libgmic.o: gmic.cpp gmic.h gmic_def.h CImg.h + $(CC) -o libgmic.o -c gmic.cpp -fPIC $(CFLAGS) + +-libgmic: libgmic.o gmic_use_lib.cpp +- ar rcs libgmic.a libgmic.o ++libgmic: libgmic.o ++ $(AR) rcs libgmic.a libgmic.o + ifeq ($(OS),Darwin) +- $(CC) -shared -o libgmic.so libgmic.o $(LIBS) ++ $(CC) $(LDFLAGS) -shared -o libgmic.so libgmic.o $(LIBS) + else +- $(CC) -shared -Wl,-soname,libgmic.so.1 -o libgmic.so libgmic.o $(LIBS) +- $(CC) -o gmic_use_lib gmic_use_lib.cpp -L. -lgmic ++ $(CC) $(LDFLAGS) -shared -Wl,-soname,libgmic.so.1 -o libgmic.so libgmic.o $(LIBS) + endif + + gmic_gimp.o: gmic.cpp gmic.h gmic_def.h CImg.h + $(CC) -o gmic_gimp.o -c gmic.cpp -Dgmic_gimp $(CFLAGS) + + gmic_gimp : gmic_gimp.o gmic_gimp.cpp +- $(CC) -o gmic_gimp gmic_gimp.cpp gmic_gimp.o -Dgmic_gimp `gimptool-2.0$(EXE) --cflags` $(CFLAGS) `gimptool-2.0$(EXE) --libs` $(LIBS) +- strip gmic_gimp$(EXE) ++ $(CC) -o gmic_gimp gmic_gimp.cpp gmic_gimp.o -Dgmic_gimp `gimptool-2.0$(EXE) --cflags` $(CFLAGS) $(LDFLAGS) `gimptool-2.0$(EXE) --libs` $(LIBS) + + gmic: gmic.cpp gmic.h gmic_def.h CImg.h +- $(CC) -o gmic gmic.cpp -Dgmic_main $(CFLAGS) $(LIBS) ++ $(CC) -o gmic gmic.cpp -Dgmic_main $(CFLAGS) $(LDFLAGS) $(LIBS) + + gmic_def.h: + @wget --quiet -O gmic_def.h http://gmic.eu/gmic_def.h +@@ -397,38 +391,43 @@ + # Generate bash completion script (requires 'gmic' to be installed first). + bashcompletion: + @mkdir -p ../resources +- @\gmic -v - gmic_def.gmic raw:gmic_def.gmic,uchar -document_gmic bash 2> ../resources/gmic_bashcompletion.sh ++ @./gmic -v - gmic_def.gmic raw:gmic_def.gmic,uchar -document_gmic bash 2> ../resources/gmic_bashcompletion.sh + + # Generate man page (requires 'gmic' to be installed first). + man: + @mkdir -p ../man +- @\gmic -v - gmic_def.gmic raw:gmic_def.gmic,uchar -__help man 2> ../man/gmic.1 +- @gzip -f ../man/gmic.1 ++ @./gmic -v - gmic_def.gmic raw:gmic_def.gmic,uchar -__help man 2> ../man/gmic.1 + + # Install/uninstall/clean procedures. +-install: ++install-gimp: + mkdir -p $(DESTDIR)$(PLUGINDIR)/ + cp -f gmic_gimp $(DESTDIR)$(PLUGINDIR)/ ++ ++install-bin: + mkdir -p $(DESTDIR)$(USR)/$(BIN)/ + cp -f gmic $(DESTDIR)$(USR)/$(BIN)/ ++ ++install-lib: + mkdir -p $(DESTDIR)$(USR)/$(INCLUDE)/ + cp -f gmic.h $(DESTDIR)$(USR)/$(INCLUDE)/ +- + ifneq ($(OS),Darwin) + mkdir -p $(DESTDIR)$(USR)/share + mkdir -p $(DESTDIR)$(USR)/$(LIB) + cp -f libgmic.so $(DESTDIR)$(USR)/$(LIB)/libgmic.so.1.6.5 + ln -fs libgmic.so.1.6.5 $(DESTDIR)$(USR)/$(LIB)/libgmic.so.1 + ln -fs libgmic.so.1 $(DESTDIR)$(USR)/$(LIB)/libgmic.so +- cp -f ../zart/zart $(DESTDIR)$(USR)/$(BIN)/ + endif ++ ++install-zart: ++ cp -f ../zart/zart $(DESTDIR)$(USR)/$(BIN)/ ++ ++install-man: + mkdir -p $(DESTDIR)$(USR)/share/man/ + mkdir -p $(DESTDIR)$(USR)/share/man/man1/ +- mkdir -p $(DESTDIR)$(USR)/share/man/fr/man1/ +- cp -f ../man/gmic.1.gz $(DESTDIR)$(USR)/share/man/man1/gmic.1.gz +- cp -f ../man/gmic.1.gz $(DESTDIR)$(USR)/share/man/fr/man1/gmic.1.gz ++ cp -f ../man/gmic.1 $(DESTDIR)$(USR)/share/man/man1/gmic.1 ++ ++install-bash: + if [ -d /etc/bash_completion.d/ ]; then mkdir -p $(DESTDIR)/etc/bash_completion.d/; cp -f ../resources/gmic_bashcompletion.sh $(DESTDIR)/etc/bash_completion.d/gmic; fi +- if [ -d /opt/local/etc/bash_completion.d/ ]; then mkdir -p $(DESTDIR)/opt/local/etc/bash_completion.d/; cp -f ../resources/gmic_bashcompletion.sh $(DESTDIR)/opt/local/etc/bash_completion.d/gmic; fi + + uninstall: + rm -f $(DESTDIR)$(USR)/$(BIN)/gmic +@@ -438,8 +437,7 @@ + rm -f $(DESTDIR)$(USR)/$(LIB)/libgmic.so.1 + rm -f $(DESTDIR)$(USR)/$(LIB)/libgmic.so + rm -rf $(DESTDIR)$(USR)/share/doc/gmic/ +- rm -f $(DESTDIR)$(USR)/share/man/man1/gmic.1.gz +- rm -f $(DESTDIR)$(USR)/share/man/fr/man1/gmic.1.gz ++ rm -f $(DESTDIR)$(USR)/share/man/man1/gmic.1 + + distclean: clean + diff --git a/media-plugins/gimp-gmic/gimp-gmic-1.6.5.0.ebuild b/media-plugins/gimp-gmic/gimp-gmic-1.6.5.0.ebuild new file mode 100644 index 000000000000..650b25737a78 --- /dev/null +++ b/media-plugins/gimp-gmic/gimp-gmic-1.6.5.0.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2015 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.5.0.ebuild,v 1.1 2015/06/27 03:21:34 radhermit Exp $ + +EAPI=5 + +inherit eutils toolchain-funcs flag-o-matic + +DESCRIPTION="G'MIC GIMP plugin" +HOMEPAGE="http://gmic.eu/" +SRC_URI="http://gmic.eu/files/source/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" +} |