summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2012-05-13 21:25:57 +0000
committerMichał Górny <mgorny@gentoo.org>2012-05-13 21:25:57 +0000
commit767a01a67e3ec631a91d65fba365eac703d1c0fe (patch)
tree716656cf57bc8c84f7fbe1096fc5a7c13fb0f980
parentStablize 1.7.0 (diff)
downloadgentoo-2-767a01a67e3ec631a91d65fba365eac703d1c0fe.tar.gz
gentoo-2-767a01a67e3ec631a91d65fba365eac703d1c0fe.tar.bz2
gentoo-2-767a01a67e3ec631a91d65fba365eac703d1c0fe.zip
Generate manpages from .rst files.
(Portage version: 2.2.0_alpha104_p20/cvs/Linux x86_64)
-rw-r--r--sys-devel/llvm/ChangeLog5
-rw-r--r--sys-devel/llvm/llvm-9999.ebuild15
2 files changed, 18 insertions, 2 deletions
diff --git a/sys-devel/llvm/ChangeLog b/sys-devel/llvm/ChangeLog
index aaff24954efb..6eae5ab07b35 100644
--- a/sys-devel/llvm/ChangeLog
+++ b/sys-devel/llvm/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for sys-devel/llvm
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-devel/llvm/ChangeLog,v 1.72 2012/05/10 06:03:23 patrick Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-devel/llvm/ChangeLog,v 1.73 2012/05/13 21:25:57 mgorny Exp $
+
+ 13 May 2012; Michał Górny <mgorny@gentoo.org> llvm-9999.ebuild:
+ Generate manpages from .rst files.
10 May 2012; Patrick Lauer <patrick@gentoo.org> llvm-9999.ebuild:
Upstream changed doc handling, removing obsolete patch from -9999 ebuild
diff --git a/sys-devel/llvm/llvm-9999.ebuild b/sys-devel/llvm/llvm-9999.ebuild
index 2c71bbdfd635..b5beba13a98a 100644
--- a/sys-devel/llvm/llvm-9999.ebuild
+++ b/sys-devel/llvm/llvm-9999.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-devel/llvm/llvm-9999.ebuild,v 1.27 2012/05/10 06:03:23 patrick Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-devel/llvm/llvm-9999.ebuild,v 1.28 2012/05/13 21:25:57 mgorny Exp $
EAPI="4"
PYTHON_DEPEND="2"
@@ -17,6 +17,7 @@ KEYWORDS=""
IUSE="debug gold +libffi multitarget ocaml test udis86 vim-syntax"
DEPEND="dev-lang/perl
+ dev-python/docutils
>=sys-devel/make-3.79
>=sys-devel/flex-2.5.4
>=sys-devel/bison-1.875d
@@ -139,6 +140,16 @@ src_configure() {
src_compile() {
emake VERBOSE=1 KEEP_SYMBOLS=1 REQUIRES_RTTI=1
+
+ # generate the manpages
+ cd docs/CommandGuide || die
+ local infiles=( *.rst )
+
+ cat > Makefile <<EOF || die
+%.1: %.rst
+ rst2man.py \$< > \$@
+EOF
+ emake ${infiles[@]/.rst/.1}
}
src_install() {
@@ -174,4 +185,6 @@ src_install() {
eend $?
done
fi
+
+ doman docs/CommandGuide/*.1
}