|
|
| |
DESCRIPTION="GTK+2 bindings for Python" | DESCRIPTION="GTK+2 bindings for Python" |
HOMEPAGE="http://www.pygtk.org/" | HOMEPAGE="http://www.pygtk.org/" |
SRC_URI="${SRC_URI} |
|
doc? ( http://www.pygtk.org/dist/pygtk2reference.tbz2 )" |
|
| |
LICENSE="LGPL-2.1" | LICENSE="LGPL-2.1" |
SLOT="2" | SLOT="2" |
|
|
| |
src_unpack() { | src_unpack() { |
unpack ${A} | unpack ${A} |
if use doc; then |
|
unpack pygtk2reference.tbz2 |
|
fi |
|
| |
# disable pyc compiling | # disable pyc compiling |
mv "${S}"/py-compile "${S}"/py-compile.orig | mv "${S}"/py-compile "${S}"/py-compile.orig |
|
|
dodoc AUTHORS ChangeLog INSTALL MAPPING NEWS README THREADS TODO | dodoc AUTHORS ChangeLog INSTALL MAPPING NEWS README THREADS TODO |
rm examples/Makefile* | rm examples/Makefile* |
cp -r examples ${D}/usr/share/doc/${PF}/ | cp -r examples ${D}/usr/share/doc/${PF}/ |
|
|
if use doc; then |
|
cd "${S}"/../ |
|
dodir /usr/share/gtk-doc/html |
|
cp -pPR pygtk2reference ${D}/usr/share/gtk-doc/html/ |
|
fi |
|
} | } |
| |
src_test() { | src_test() { |