summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'media-plugins/gimp-dds/gimp-dds-2.0.9.ebuild')
-rw-r--r--media-plugins/gimp-dds/gimp-dds-2.0.9.ebuild44
1 files changed, 44 insertions, 0 deletions
diff --git a/media-plugins/gimp-dds/gimp-dds-2.0.9.ebuild b/media-plugins/gimp-dds/gimp-dds-2.0.9.ebuild
new file mode 100644
index 000000000..98fc5a9dd
--- /dev/null
+++ b/media-plugins/gimp-dds/gimp-dds-2.0.9.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=2
+
+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.6"
+DEPEND="${RDEPEND}
+ dev-util/pkgconfig"
+
+src_prepare() {
+ sed -e 's:CFLAGS=.*\$(:CFLAGS+=\$(:' \
+ -e 's:LDFLAGS=:LDFLAGS+=:' \
+ -i Makefile.linux || 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.linux || 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
+}