2018-07-16 20:45:36 +02:00
# SPDX-License-Identifier: GPL-2.0-or-later
# Copyright (C) 2009-2016 Stephan Raue (stephan@openelec.tv)
2011-01-09 18:45:30 +01:00
2010-11-15 15:06:02 +01:00
PKG_NAME = "pygobject"
2018-06-02 08:58:40 +01:00
PKG_VERSION = "2.28.7"
PKG_SHA256 = "bb9d25a3442ca7511385a7c01b057492095c263784ef31231ffe589d83a96a5a"
2010-11-15 15:06:02 +01:00
PKG_ARCH = "any"
PKG_LICENSE = "LGPL"
PKG_SITE = "http://www.pygtk.org/"
2018-06-02 08:58:40 +01:00
PKG_URL = " http://ftp.gnome.org/pub/GNOME/sources/pygobject/2.28/ $PKG_NAME - $PKG_VERSION .tar.xz "
2017-10-08 23:50:38 +01:00
PKG_DEPENDS_TARGET = "toolchain Python2 glib libffi"
2010-11-15 15:06:02 +01:00
PKG_SECTION = "python/devel"
PKG_SHORTDESC = "pygobject: The Python bindings for GObject"
PKG_LONGDESC = "PyGObject provides a convenient wrapper for the GObject+ library for use in Python programs, and takes care of many of the boring details such as managing memory and type casting. When combined with PyGTK, PyORBit and gnome-python, it can be used to write full featured Gnome applications."
2017-10-24 23:23:02 +02:00
PKG_TOOLCHAIN = "autotools"
2014-01-21 16:28:03 +01:00
PKG_CONFIGURE_OPTS_TARGET = "--enable-thread --disable-introspection"
2016-03-10 12:33:46 +01:00
p r e _ c o n f i g u r e _ t a r g e t ( ) {
export PYTHON_INCLUDES = " $( $SYSROOT_PREFIX /usr/bin/python2-config --includes) "
}
2014-01-21 16:28:03 +01:00
p o s t _ m a k e i n s t a l l _ t a r g e t ( ) {
2014-01-21 16:37:41 +01:00
find $INSTALL /usr/lib -name "*.py" -exec rm -rf "{}" ";"
find $INSTALL /usr/lib -name "*.pyc" -exec rm -rf "{}" ";"
2014-01-21 16:28:03 +01:00
rm -rf $INSTALL /usr/bin
rm -rf $INSTALL /usr/share/pygobject
2016-03-10 12:33:46 +01:00
}