--- visual-3.2.9.ebuild.orig 2008-07-05 17:32:42.000000000 -0430 +++ visual-3.2.9.ebuild 2008-07-05 17:33:01.000000000 -0430 @@ -24,19 +24,25 @@ DEPEND="${RDEPEND} dev-util/pkgconfig" +src_unpack() { + unpack "${A}" + cd "${S}"/site-packages + epatch "${FILESDIR}"/${P}-import_bug143237.patch +} + src_compile() { local myconf="--without-numarray --without-numeric" echo - if useq numeric; then + if use numeric; then elog "Building with Numeric support" myconf=${myconf/--without-numeric} fi - if useq numarray; then + if use numarray; then elog "Building with Numarray support" myconf=${myconf/--without-numarray} fi - if ! useq numeric && ! useq numarray; then + if ! use numeric && ! use numarray; then elog "Support for Numeric or Numarray was not specified." elog "Building with Numeric support" myconf=${myconf/--without-numeric} @@ -55,18 +61,21 @@ } src_install() { - emake DESTDIR="${D}" install || die "install failed" - python_version - mkdir -p "${D}"/usr/$(get_libdir)/python${PYVER}/site-packages/visual/ - mv "${D}"/usr/lib/python${PYVER}/site-packages/ \ - "${D}"/usr/$(get_libdir)/python${PYVER}/site-packages/visual/ + mkdir -p "${D}"/usr/$(get_libdir)/python${PYVER} + cp -R site-packages \ + "${D}"/usr/$(get_libdir)/python${PYVER} #the vpython script does not work, and is unnecessary. - #Also nuke directories that are empty so we don't have - #empty directories hanging around. - rm -rf "${D}"/usr/bin/ - rm -rf "${D}"/usr/lib/ + if use doc; then + dodir /usr/share/doc/"${PF}" + dohtml docs/*.html + dohtml docs/visual/* + fi + if use examples; then + dodir /usr/share/doc/"${PF}"/examples + cp examples/* "${D}"/usr/share/doc/"${PF}"/examples + fi }