summaryrefslogtreecommitdiff
blob: de8daae96dca0d12a286cf11558f158168efc37c (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
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/x11-misc/xfractint/xfractint-20.2.05.ebuild,v 1.2 2004/02/02 17:37:52 spock Exp $

MY_P=xfract${PV}

S="${WORKDIR}/xfractint-20.02p05"
DESCRIPTION="The best fractal generator for X."
HOMEPAGE="http://www.fractint.org/"
SRC_URI="http://www.fractint.org/ftp/old/linux/${MY_P}.tar.gz"

KEYWORDS="~x86 ~sparc"
SLOT="0"
LICENSE="freedist"

DEPEND="virtual/glibc
	>=sys-libs/ncurses-5.1
	x11-base/xfree"

RDEPEND=$DEPEND

src_unpack() {
	unpack ${MY_P}.tar.gz
	epatch ${FILESDIR}/xfractint-20.02p05.patch
}

src_compile() {
	cd ${S}
	cp Makefile Makefile.orig
	sed -e "s:CFLAGS = :CFLAGS = $CFLAGS :" Makefile.orig >Makefile

	MAKEOPTS='-j1' emake
}

src_install() {
	dodir /usr/bin
	dodir /usr/share/xfractint
	dodir /usr/man/man1

	make \
		BINDIR=${D}usr/bin \
		MANDIR=${D}usr/man/man1 \
		SRCDIR=${D}usr/share/xfractint \
		install || die

	insinto /etc/env.d
	newins ${FILESDIR}/xfractint.envd 60xfractint
}