adding python bindings for the "Enlightenment Foundation Libraries (EFL)"

git-svn-id: svn://svn.openwrt.org/openwrt/packages@13858 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
mirko
2009-01-04 13:26:36 +00:00
parent 83a7db5e07
commit 00a0f21868
10 changed files with 356 additions and 0 deletions

View File

@ -0,0 +1,49 @@
#
# Copyright (C) 2008 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
# $Id: Makefile 13786 2008-12-31 15:02:25Z lars $
include $(TOPDIR)/rules.mk
PKG_NAME:=python-e_dbus
PKG_REV:=37637
PKG_VERSION:=r$(PKG_REV)
PKG_RELEASE:=1
PKG_SOURCE_PROTO:=svn
PKG_SOURCE_VERSION:=$(PKG_REV)
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://svn.enlightenment.org/svn/e/trunk/BINDINGS/python/$(PKG_NAME)
include $(INCLUDE_DIR)/package.mk
-include $(if $(DUMP),,$(STAGING_DIR)/mk/python-package.mk)
define Package/python-e_dbus
SUBMENU:=Python
SECTION:=lang
CATEGORY:=Languages
TITLE:=python-e_dbus
DEPENDS:=python-core edbus dbus-python
endef
define Package/python-e_dbus/description
e_dbus python bindings
endef
define Build/Compile
$(call Build/Compile/PyMod,,install --prefix="$(PKG_INSTALL_DIR)/usr")
endef
define Package/python-e_dbus/install
$(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR)
$(CP) \
$(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/* \
$(1)$(PYTHON_PKG_DIR)
endef
$(eval $(call BuildPackage,python-e_dbus))

View File

@ -0,0 +1,15 @@
diff -ruN python-e_dbus-r37637.orig/setup.py python-e_dbus-r37637/setup.py
--- python-e_dbus-r37637.orig/setup.py 2009-01-04 12:18:59.000000000 +0100
+++ python-e_dbus-r37637/setup.py 2009-01-04 12:21:26.000000000 +0100
@@ -1,10 +1,7 @@
import sys
import os
-from ez_setup import use_setuptools
-use_setuptools("0.6c3")
-
-from setuptools import setup, Extension
+from distutils.core import setup, Extension
import subprocess
import shlex