--- python-ptrace.orig/python-ptrace-0.6.3.ebuild 2011-11-22 03:04:03.676895807 +0800 +++ python-ptrace.orig/python-ptrace-0.6.3.ebuild 2011-11-22 04:53:00.666893840 +0800 @@ -14,8 +14,8 @@ LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~x86" -IUSE="" -DOCS=( PKG-INFO ) +IUSE="examples" +DOCS=( PKG-INFO ) DEPEND="" RDEPEND="dev-libs/distorm64" @@ -37,10 +37,11 @@ } src_install() { + if use examples; then + distutils_src_install + + insinto usr/share/doc/${PF}/examples + doins examples/* + fi }