# Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/media-gfx/mscgen/mscgen-0.20.ebuild,v 1.1 2011/06/09 07:52:01 radhermit Exp $ EAPI=4 inherit autotools DESCRIPTION="A message sequence chart generator" HOMEPAGE="http://www.mcternan.me.uk/mscgen/" SRC_URI="http://www.mcternan.me.uk/${PN}/software/${PN}-src-${PV}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="png truetype" RDEPEND="png? ( media-libs/gd[png,truetype?] )" DEPEND="${RDEPEND} dev-util/pkgconfig sys-devel/bison sys-devel/flex" src_prepare() { sed -i -e '/dist_doc_DATA/d' Makefile.am || die eautoreconf } src_configure() { local myconf if use png; then use truetype && myconf="--with-freetype" else myconf="--without-png" fi econf \ --docdir=/usr/share/doc/${PF} \ ${myconf} }