summaryrefslogtreecommitdiff
blob: 0bd085251afdcde7912f47c062ee1fcca0fed85f (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
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-gfx/xwgui2/xwgui2-2.08.ebuild,v 1.5 2005/07/25 11:17:58 dholm Exp $

DESCRIPTION="xwGUI2 is an image and photo layout application aimed for printing"
HOMEPAGE="http://xwgui.automatix.de/"
SRC_URI="http://xwgui.automatix.de/daten/xwgui-${PV}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~ppc ~x86"

IUSE=""
DEPEND="virtual/x11
	>=x11-libs/xforms-1.0
	=media-libs/t1lib-1*"

S="${WORKDIR}/xwGUI"

src_compile() {

	echo ">>> Compiling..."
	echo
	echo "    0% |=========================================================| 100%"
	echo -n "        "

	patch -p0 -s < ${FILESDIR}/xwgui2-${PV}-makefilediff.patch || die

	# This sorts out "invisible" input boxes due to a known
	# XForms bug...
	sed -e 's/20,xwGR/23,xwGR/' -i xwGUI/*.c || die

	cd xwGUI || die
	sed -e 's:/usr/X11R6/lib/libforms.so.1.0:/usr/lib/libforms.so.1:' -i Makefile || die
	emake || die
	echo
	echo

	if [ -x /usr/bin/gimp-1.2 ]; then
		echo ">>> Compiling GIMP plugin..."
		cd ../xwprint2 || die
		echo -n "    "; emake || die
	fi

}

src_install() {

	einstall || die
	if [ -x /usr/bin/gimp-1.2 ]; then
		cd xwprint2 || die

		insinto /usr/lib/gimp/1.2/plug-ins
		doins xwprint2

		insinto /usr/share/gimp/1.2
		doins xwprint2rc
	fi

}