summaryrefslogtreecommitdiff
blob: ef9e63f2e6ab17f4ff0c755311fc15b8b23b11bf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Author Achim Gottinger <achim@gentoo.org>
# $Header: /var/cvsroot/gentoo-x86/media-gfx/gimp-print/gimp-print-4.1.99_beta4-r1.ebuild,v 1.1 2002/04/02 08:17:58 seemant Exp $

MY_P="${PN}-`echo ${PV} |sed -e 's:_:-:' -e 's:eta::'`"
S=${WORKDIR}/${MY_P}
DESCRIPTION="Gimp Plugin and Ghostscript driver for Gimp"
SRC_URI="http://prdownloads.sourceforge.net/gimp-print/${MY_P}.tar.gz"
HOMEPAGE="http://gimp-print.sourceforge.net/"

DEPEND=">=media-gfx/gimp-1.2.1
	perl? ( app-text/texi2html )
	gtk? ( ~x11-libs/gtk+-1.2.10 )
	cups? ( net-print/cups )"

RDEPEND="virtual/glibc"


src_compile() {
	
	local myconf

	use cups	\
		&& myconf="${myconf} --with-cups"	\
		|| myconf="${myconf} --without-cups"
	
	use nls || myconf="${myconf} --disable-nls"
	
	libtoolize --copy --force
	aclocal
	
	./configure 	\
		--host=${CHOST}					\
		--prefix=/usr					\
		--mandir=/usr/share/man				\
		--infodir=/usr/share/info				\
		--sysconfdir=/etc/gimp/1.2/				\
		--with-gimp-exec-prefix=/usr			\
		${myconf} || die

	cp src/gimp/Makefile src/gimp/Makefile.orig
	sed -e 's:--install-admin-bin:--install-bin:g'			\
		src/gimp/Makefile.orig >src/gimp/Makefile
	
	emake || die
}

src_install() {
	
	dodir /usr/lib/gimp/1.2/.gimp-1.2/plug-ins
	
	make 	\
		prefix=${D}/usr	\
		bindir=${D}/usr/bin	\
		mandir=${D}/usr/share/man	\
		infodir=${D}/usr/share/info	\
		sysconfdir=${D}/etc/gimp/1.2	\
		libdir=${D}/usr/lib	\
		datadir=${D}/usr/share	\
		HOME=${D}/usr/lib/gimp/1.2	\
		install || die

	# NOTE: this build use gimptool to install the plugin, so
	# if we dont do it this way, it will install to / no
	# matter what.
	#mv ${D}/usr/lib/gimp/1.2/.gimp-1.2/plug-ins/			\
	#	${D}/usr/lib/gimp/1.2/
	#rm -rf ${D}/usr/lib/gimp/1.2/.gimp-1.2/
	     
	dodoc AUTHORS ChangeLog COPYING NEWS README*
	dohtml -r doc
}