# 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.3.01.ebuild,v 1.16 2007/07/22 03:21:47 dberkholz Exp $ inherit eutils flag-o-matic MY_P=xfractint-20.03p01 S="${WORKDIR}/${MY_P}" DESCRIPTION="The best fractal generator for X." HOMEPAGE="http://www.fractint.org" SRC_URI="http://dev.gentoo.org/~spock/portage/distfiles/${MY_P}.tar.bz2" KEYWORDS="x86 sparc ~ppc ~amd64" 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} epatch ${FILESDIR}/${MY_P}-make.patch } src_compile() { cd ${S} cp Makefile Makefile.orig replace-flags "-funroll-all-loops" "-funroll-loops" sed -e "s:CFLAGS = :CFLAGS = $CFLAGS :" Makefile.orig >Makefile emake -j1 } 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 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 }