We have moved to Git. This repository is only provided for compatibility with old installations. Learn how to migrate your installation here.

comparison media-plugins/gimp-dds/gimp-dds-3.0.1.ebuild @ 83:f3fa1d6be0b5

adding media-plugins/gimp-dds-3.0.1, slightly modified 2.0.9 ebuild from sunrise overlay
author Daniel Neugebauer <dneuge@energiequant.de>
date Sun, 01 Feb 2015 15:21:17 +0100
parents
children
comparison
equal deleted inserted replaced
82:0062a8ff5313 83:f3fa1d6be0b5
1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: $
4
5 EAPI=5
6
7 inherit toolchain-funcs
8
9 DESCRIPTION="DirectDraw Surface (DDS) format plugin for Gimp 2"
10 HOMEPAGE="http://code.google.com/p/gimp-dds/"
11 SRC_URI="http://gimp-dds.googlecode.com/files/${P}.tar.bz2"
12
13 LICENSE="GPL-2"
14 SLOT="0"
15 KEYWORDS="~amd64 ~x86"
16 IUSE=""
17
18 RDEPEND=">=media-gfx/gimp-2.8
19 <media-gfx/gimp-2.9"
20 DEPEND="${RDEPEND}
21 virtual/pkgconfig"
22
23 src_prepare() {
24 sed -e 's:CFLAGS=.*\$(:CFLAGS+=\$(:' \
25 -e 's:LDFLAGS=:LDFLAGS+=:' \
26 -i Makefile || die
27
28 # Fixing incorrect $(LD) usage
29 # http://code.google.com/p/gimp-normalmap/issues/detail?id=1
30 sed -e 's:\t$(LD) :\t$(CC) :' \
31 -i Makefile || die
32 }
33
34 src_compile() {
35 emake CC="$(tc-getCC)" || die "emake failed"
36 }
37
38 src_install() {
39 exeinto "$(pkg-config --variable=gimplibdir gimp-2.0)/plug-ins"
40 doexe dds || die "Installation failed"
41
42 # No need to install the gimp-dds.odt or the images, as they have the same
43 # content as the gimp-dds.pdf
44 dodoc README TODO doc/gimp-dds.pdf || die
45 }