# Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils MY_P="asciidoc-${PV}" DESCRIPTION="AsciiDoc is a text document format for writing short documents, articles, books and UNIX man pages." HOMEPAGE="http://www.methods.co.nz/asciidoc/" SRC_URI="http://www.methods.co.nz/asciidoc/${MY_P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="x86 ~ppc " IUSE="" DEPEND="virtual/python" S=${WORKDIR}/${MY_P} src_unpack() { unpack ${A} } src_install() { dodoc ${S}/BUGS ${S}/CHANGELOG ${S}/COPYING ${S}/COPYRIGHT ${S}/README dodir /usr/share/doc/${PF}/examples cp -r ${S}/examples ${D}/usr/share/doc/${PF} doman ${S}/doc/asciidoc.1 dodir /etc/${PN} cp ${S}/*.conf ${D}/etc/${PN}/ dodir /etc/${PN}/filters cp -r ${S}/filters ${D}/etc/${PN}/ # For some reason fperms wouldn't work with a wild card # but it worked when ran from the command line... chmod 664 ${D}/etc/${PN}/*.conf chmod 664 ${D}/etc/${PN}/filters/*.conf newbin ${S}/asciidoc.py asciidoc }