blob: 9604d6eb1e585d26b03b43fda3f03d13eb5cd9cb (
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
|
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/x11-misc/xfractint/xfractint-20.04_p03.ebuild,v 1.1 2007/12/27 20:42:56 drac Exp $
inherit eutils flag-o-matic
MY_P=xfractint-20.04p03
S="${WORKDIR}/${MY_P}"
DESCRIPTION="The best fractal generator for X."
HOMEPAGE="http://www.fractint.org"
SRC_URI="http://www.fractint.org/ftp/current/linux/${MY_P}.tar.gz"
KEYWORDS="amd64 ppc sparc x86"
SLOT="0"
LICENSE="freedist"
IUSE=""
RDEPEND="virtual/libc
>=sys-libs/ncurses-5.1
x11-libs/libX11"
DEPEND="${RDEPEND}
x11-proto/xproto"
src_unpack() {
unpack ${A}
cd ${S}
epatch "${FILESDIR}"/${PN}-20.4.03-makefile.patch
}
src_compile() {
replace-flags "-funroll-all-loops" "-funroll-loops"
emake -j1 || die "make failed"
}
src_install() {
make DESTDIR="${D}" install || die
chmod 0644 -R ${D}usr/share/xfractint/*
chmod a+X -R ${D}usr/share/xfractint/*
newenvd ${FILESDIR}/xfractint.envd 60xfractint
}
pkg_postinst() {
einfo
einfo "XFractInt requires the FRACTDIR variable to be set in order to start."
einfo "Please re-login or \`source /etc/profile\` to have this variable set automatically."
einfo
# Fix directory permissions as they might be broken because
# of an earlier installation.
chmod a+X -R ${ROOT}/usr/share/xfractint/*
}
|