Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 90797
Collapse All | Expand All

(-)gv-3.5.8-r4.ebuild.orig (-28 / +13 lines)
Lines 1-8 Link Here
1
# Copyright 1999-2005 Gentoo Foundation
1
# Copyright 1999-2005 Gentoo Foundation
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
# $Header: /var/cvsroot/gentoo-x86/app-text/gv/gv-3.5.8-r4.ebuild,v 1.12 2005/04/15 16:40:08 nigoro Exp $
3
# $Header: $
4
4
5
inherit eutils
5
inherit eutils x11-prefix
6
6
7
DESCRIPTION="standard ghostscript frontend used by programs like LyX"
7
DESCRIPTION="standard ghostscript frontend used by programs like LyX"
8
HOMEPAGE="http://wwwthep.physik.uni-mainz.de/~plass/gv/"
8
HOMEPAGE="http://wwwthep.physik.uni-mainz.de/~plass/gv/"
Lines 25-61 Link Here
25
	unpack ${A}
25
	unpack ${A}
26
	cd ${S}
26
	cd ${S}
27
	epatch ${FILESDIR}/${P}-debian.diff.gz
27
	epatch ${FILESDIR}/${P}-debian.diff.gz
28
}
29
30
src_compile() {
31
28
32
	use ppc-macos && epatch ${FILESDIR}/${P}-setenv.diff
29
	use ppc-macos && epatch ${FILESDIR}/${P}-setenv.diff
33
30
34
	cp config.Unix 1
31
	xmkmf || die "xmkmf failed"
35
	sed -e 's:usr/local:usr:' 1 > config.Unix
32
	make Makefiles || die "make Makefiles failed"
36
	sed -i -e "s:SCRATCH_DIR = ~/:SCRATCH_DIR = /tmp/:g" config.Unix
33
	local my_makefile
37
	rm 1
34
	for my_makefile in {doc/source,doc,source,.}/Makefile ; do
38
35
		fix_Imake_Makefile ${my_makefile} \
39
	xmkmf || die
36
			|| die "fix_Imake_Makefile ${my_makefile} failed"
40
	make Makefiles || die
37
	done
41
42
	cd source
43
	sed -i \
44
		-e 's/install.man:: gv.man/install.man::/' \
45
		-e 's/all:: gv./\#all:: gv./' \
46
		-e '/gv.man/ c \#removed by sed for ebuilding' \
47
		Makefile
48
	if [ ! "`grep gv.man Makefile`" = "" ] ; then
49
		ewarn "sed didn't completely remove gv.man references from the Makefile."
50
		ewarn "We'll just run make and pray."
51
	fi
52
38
53
	cd ${S}
39
	# make will fail otherwise:
54
	emake || die
40
	cp ${S}/doc/gv.man ${S}/source/gv.man
55
}
41
}
56
42
57
src_install() {
43
src_install() {
58
	make DESTDIR=${D} install || die
44
	make DESTDIR=${D} install{,.doc,.man} \
59
	make GV_DOCDIR=${D}/usr/share/doc/${PF} install.doc || die
45
		|| die "make install failed"
60
	newman doc/gv.man gv.1
61
}
46
}

Return to bug 90797