# Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/dev-util/astyle/astyle-1.15.3-r1.ebuild,v 1.11 2008/01/27 10:39:22 grobian Exp $ inherit eutils DESCRIPTION="Artistic Style is a reindenter and reformatter of C++, C and Java source code" HOMEPAGE="http://astyle.sourceforge.net/" SRC_URI="mirror://sourceforge/astyle/astyle_${PV}.zip" LICENSE="|| ( Artistic GPL-2 )" SLOT="0" KEYWORDS="alpha ~amd64 ppc sparc x86" IUSE="" DEPEND=">=app-arch/unzip-5.42" S=${WORKDIR} src_unpack() { unpack ${A} epatch "${FILESDIR}"/cmd-line-fix.diff #gcc-3.4 fix epatch "${FILESDIR}"/${PN}-gcc34.patch } src_compile() { emake || die } src_install() { dobin astyle dohtml astyle.html astyle_release_notes.html license.html dodoc INSTALL.TXT }