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