2011-01-09 18:45:30 +01:00
################################################################################
# This file is part of OpenELEC - http://www.openelec.tv
2016-01-02 17:29:56 +01:00
# Copyright (C) 2009-2016 Stephan Raue (stephan@openelec.tv)
2011-01-09 18:45:30 +01:00
#
2013-12-21 21:51:48 +01:00
# OpenELEC is free software: you can redistribute it and/or modify
2011-01-09 18:45:30 +01:00
# it under the terms of the GNU General Public License as published by
2013-12-21 21:51:48 +01:00
# the Free Software Foundation, either version 2 of the License, or
# (at your option) any later version.
2011-01-09 18:45:30 +01:00
#
2013-12-21 21:51:48 +01:00
# OpenELEC is distributed in the hope that it will be useful,
2011-01-09 18:45:30 +01:00
# but WITHOUT ANY WARRANTY; without even the implied warranty of
2013-12-21 21:51:48 +01:00
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
2011-01-09 18:45:30 +01:00
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
2013-12-21 21:51:48 +01:00
# along with OpenELEC. If not, see <http://www.gnu.org/licenses/>.
2011-01-09 18:45:30 +01:00
################################################################################
2010-11-15 15:06:02 +01:00
PKG_NAME = "pygobject"
2011-06-20 21:52:06 +02:00
PKG_VERSION = "2.28.6"
2010-11-15 15:06:02 +01:00
PKG_REV = "1"
PKG_ARCH = "any"
PKG_LICENSE = "LGPL"
PKG_SITE = "http://www.pygtk.org/"
2011-03-13 13:56:25 +01:00
PKG_URL = " http://ftp.gnome.org/pub/GNOME/sources/pygobject/2.28/ $PKG_NAME - $PKG_VERSION .tar.bz2 "
2014-01-30 14:32:31 +01:00
PKG_DEPENDS_TARGET = "toolchain Python 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."
2010-11-25 18:16:59 +01:00
2014-01-21 16:28:03 +01:00
PKG_IS_ADDON = "no"
2010-11-25 18:16:59 +01:00
PKG_AUTORECONF = "yes"
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
}