# Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ DESCRIPTION="Discount is a Markdown implementation written in C." HOMEPAGE="http://www.pell.portland.or.us/~orc/Code/discount/" SRC_URI="http://www.pell.portland.or.us/~orc/Code/discount/${P}.tar.gz" LICENSE="BSD Styled" SLOT="0" KEYWORDS="~x86 ~amd64" IUSE="" src_compile() { # econf makes poor self written tool kill self ./configure.sh --enable-all-features --prefix=${EPREFIX}/usr emake || die "emake failed" } src_install() { # make will fail if these folders don't exist dodir /usr/bin dodir /usr/share/man dodir /usr/include dodir /usr/lib # for QA, we remove the Makefiles usage of install -s sed -i -e "s:/usr/bin/install -s:/usr/bin/install:" Makefile \ || die "sed can't fix stipping of files" emake DESTDIR="${D}" install install.man install.samples \ || die "install failed" }