From: Michael Tremer Date: Thu, 18 Nov 2010 00:49:41 +0000 (+0100) Subject: pygobject2: New package. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4f94ea127aa4e7f73290b542919252ffefc7230f;p=ipfire-3.x.git pygobject2: New package. --- diff --git a/pkgs/core/pygobject2/pygobject2.nm b/pkgs/core/pygobject2/pygobject2.nm new file mode 100644 index 000000000..beaf8fa30 --- /dev/null +++ b/pkgs/core/pygobject2/pygobject2.nm @@ -0,0 +1,59 @@ +############################################################################### +# # +# IPFire.org - A linux based firewall # +# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt # +# # +# This program is free software: you can redistribute it and/or modify # +# it under the terms of the GNU General Public License as published by # +# the Free Software Foundation, either version 3 of the License, or # +# (at your option) any later version. # +# # +# This program is distributed in the hope that it will be useful, # +# but WITHOUT ANY WARRANTY; without even the implied warranty of # +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # +# GNU General Public License for more details. # +# # +# You should have received a copy of the GNU General Public License # +# along with this program. If not, see . # +# # +############################################################################### + +############################################################################### +# Definitions +############################################################################### + +include $(PKGROOT)/Include + +PKG_NAME = pygobject2 +PKG_VER = 2.27.0 +PKG_REL = 0 + +PKG_MAINTAINER = +PKG_GROUP = Development/Tools +PKG_URL = http://www.pygtk.org/ +PKG_LICENSE = LGPLv2+ +PKG_SUMMARY = Python 2 bindings for GObject. + +PKG_BUILD_DEPS+= autoconf automake glib2-devel gobject-introspection-devel \ + libffi-devel libtool pkg-config python-cairo-devel python-devel + +define PKG_DESCRIPTION + The $(PKG_NAME) package provides a convenient wrapper for the GObject library \ + for use in Python programs. +endef + +PKG_TARBALL = pygobject-$(PKG_VER).tar.gz +DIR_APP = $(DIR_SRC)/pygobject-$(PKG_VER) + +define STAGE_PREPARE_CMDS + cd $(DIR_APP) && find -name '*.py' | xargs sed -i "1s|^#!python|#!$(shell which python)|" +endef + +PKG_PACKAGES += $(PKG_NAME_REAL)-codegen $(PKG_NAME_REAL)-devel + +define PKG_FILES-$(PKG_NAME_REAL)-codegen + /usr/bin/pygobject-codegen-2.0 + /usr/share/pygobject/2.0/codegen +endef + +PKG_DEPS-$(PKG_NAME_REAL)-devel += glib2-devel $(PKG_NAME_REAL)-codegen