View | Details | Raw Unified
Collapse All | Expand All

(-) mercurial-0.9.1.ebuild (-19 / +3 lines)
 Lines 13-25    Link Here 
LICENSE="GPL-2"
LICENSE="GPL-2"
SLOT="0"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86"
KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86"
IUSE="doc"
IUSE=""
DEPEND=">=dev-lang/python-2.3
DEPEND=">=dev-lang/python-2.3"
	doc? (
		app-text/asciidoc
		app-text/xmlto
	)"
if [[ ${PV} == *_p* ]]; then
if [[ ${PV} == *_p* ]]; then
	S=${WORKDIR}/mercurial-snapshot
	S=${WORKDIR}/mercurial-snapshot
 Lines 30-45    Link Here 
src_compile() {
src_compile() {
	distutils_src_compile
	distutils_src_compile
	if use doc; then
		cd doc
		local x
		for x in *.?.txt; do
			asciidoc -d manpage -b docbook $x || die
			xmlto man ${x%txt}xml || die
			sed -nie '/./p' ${x%.*} || die
		done
	fi
	rm -rf contrib/vim	# app-vim/hgcommand app-vim/hgmenu
	rm -rf contrib/vim	# app-vim/hgcommand app-vim/hgmenu
}
}
 Lines 51-59    Link Here 
	dodoc CONTRIBUTORS PKG-INFO README *.txt
	dodoc CONTRIBUTORS PKG-INFO README *.txt
	cp hgweb*.cgi ${D}/usr/share/doc/${PF}/
	cp hgweb*.cgi ${D}/usr/share/doc/${PF}/
	cp -r contrib ${D}/usr/share/doc/${PF}/
	cp -r contrib ${D}/usr/share/doc/${PF}/
	if use doc; then
	doman doc/*.?
		doman doc/*.?
	fi
}
}
pkg_postinst() {
pkg_postinst() {