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

view media-plugins/gimp-dds/gimp-dds-3.0.1.ebuild @ 230:8d97d03c9bc1

[sync] imported 60c6dd2..aa68919 from upstream commit aa6891982ff4a085c0a76df3fc820108ac139c0b Author: layman <layman@localhost> Date: Sun May 17 13:52:53 2020 +0200 media-gfx/trimage: bump to 1.0.6, Python 3 and Qt 5 compatible commit 3f8f7faae955f4c1b22c419bc2dffb69d7823cec Author: layman <layman@localhost> Date: Sun May 17 13:23:48 2020 +0200 dev-vcs/kallithea: masking before removal due to security issues
author Migration Sync <gentoo-overlay@megacoffee.net>
date Sun, 17 May 2020 12:00:02 +0000
parents f3fa1d6be0b5
children
line wrap: on
line source

# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI=5

inherit toolchain-funcs

DESCRIPTION="DirectDraw Surface (DDS) format plugin for Gimp 2"
HOMEPAGE="http://code.google.com/p/gimp-dds/"
SRC_URI="http://gimp-dds.googlecode.com/files/${P}.tar.bz2"

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

RDEPEND=">=media-gfx/gimp-2.8
	 <media-gfx/gimp-2.9"
DEPEND="${RDEPEND}
	virtual/pkgconfig"

src_prepare() {
	sed -e 's:CFLAGS=.*\$(:CFLAGS+=\$(:' \
	    -e 's:LDFLAGS=:LDFLAGS+=:' \
		-i Makefile || die

	# Fixing incorrect $(LD) usage
	# http://code.google.com/p/gimp-normalmap/issues/detail?id=1
	sed -e 's:\t$(LD) :\t$(CC) :' \
		-i Makefile || die
}

src_compile() {
	emake CC="$(tc-getCC)" || die "emake failed"
}

src_install() {
	exeinto "$(pkg-config --variable=gimplibdir gimp-2.0)/plug-ins"
	doexe dds || die "Installation failed"

	# No need to install the gimp-dds.odt or the images, as they have the same
	# content as the gimp-dds.pdf
	dodoc README TODO doc/gimp-dds.pdf || die
}