mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-29 13:46:49 +00:00
remove package 'PyBluez'
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
018ffe095a
commit
f9202d0ab2
@ -1,31 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
################################################################################
|
|
||||||
# This file is part of OpenELEC - http://www.openelec.tv
|
|
||||||
# Copyright (C) 2009-2012 Stephan Raue (stephan@openelec.tv)
|
|
||||||
#
|
|
||||||
# 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 2, 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 OpenELEC.tv; see the file COPYING. If not, write to
|
|
||||||
# the Free Software Foundation, 51 Franklin Street, Suite 500, Boston, MA 02110, USA.
|
|
||||||
# http://www.gnu.org/copyleft/gpl.html
|
|
||||||
################################################################################
|
|
||||||
|
|
||||||
. config/options $1
|
|
||||||
|
|
||||||
export PYTHONXCPREFIX="$SYSROOT_PREFIX/usr"
|
|
||||||
export LDFLAGS="$LDFLAGS -L$SYSROOT_PREFIX/usr/lib -L$SYSROOT_PREFIX/lib"
|
|
||||||
|
|
||||||
cd $PKG_BUILD
|
|
||||||
|
|
||||||
python setup.py build --cross-compile
|
|
||||||
python setup.py install --root=./.install --prefix=/usr
|
|
@ -1,25 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
################################################################################
|
|
||||||
# This file is part of OpenELEC - http://www.openelec.tv
|
|
||||||
# Copyright (C) 2009-2012 Stephan Raue (stephan@openelec.tv)
|
|
||||||
#
|
|
||||||
# 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 2, 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 OpenELEC.tv; see the file COPYING. If not, write to
|
|
||||||
# the Free Software Foundation, 51 Franklin Street, Suite 500, Boston, MA 02110, USA.
|
|
||||||
# http://www.gnu.org/copyleft/gpl.html
|
|
||||||
################################################################################
|
|
||||||
|
|
||||||
. config/options $1
|
|
||||||
|
|
||||||
cp -PR $PKG_BUILD/.install/* $INSTALL
|
|
@ -1,36 +0,0 @@
|
|||||||
################################################################################
|
|
||||||
# This file is part of OpenELEC - http://www.openelec.tv
|
|
||||||
# Copyright (C) 2009-2012 Stephan Raue (stephan@openelec.tv)
|
|
||||||
#
|
|
||||||
# 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 2, 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 OpenELEC.tv; see the file COPYING. If not, write to
|
|
||||||
# the Free Software Foundation, 51 Franklin Street, Suite 500, Boston, MA 02110, USA.
|
|
||||||
# http://www.gnu.org/copyleft/gpl.html
|
|
||||||
################################################################################
|
|
||||||
|
|
||||||
PKG_NAME="PyBluez"
|
|
||||||
PKG_VERSION="0.18"
|
|
||||||
PKG_REV="1"
|
|
||||||
PKG_ARCH="any"
|
|
||||||
PKG_LICENSE="GPL"
|
|
||||||
PKG_SITE="http://code.google.com/p/pybluez/"
|
|
||||||
PKG_URL="http://pybluez.googlecode.com/files/$PKG_NAME-$PKG_VERSION.tar.gz"
|
|
||||||
PKG_DEPENDS="Python bluez"
|
|
||||||
PKG_BUILD_DEPENDS="toolchain Python distutilscross bluez"
|
|
||||||
PKG_PRIORITY="optional"
|
|
||||||
PKG_SECTION="python/system"
|
|
||||||
PKG_SHORTDESC="PyBluez: an effort to create python wrappers around system Bluetooth resources"
|
|
||||||
PKG_LONGDESC="PyBluez is an effort to create python wrappers around system Bluetooth resources to allow Python developers to easily and quickly create Bluetooth applications."
|
|
||||||
PKG_IS_ADDON="no"
|
|
||||||
|
|
||||||
PKG_AUTORECONF="no"
|
|
@ -1,38 +0,0 @@
|
|||||||
diff -Naur PyBluez-0.18/bluetooth/__init__.py PyBluez-0.18.patch/bluetooth/__init__.py
|
|
||||||
--- PyBluez-0.18/bluetooth/__init__.py 2009-11-24 09:39:49.000000000 +0100
|
|
||||||
+++ PyBluez-0.18.patch/bluetooth/__init__.py 2011-11-30 11:41:31.652163261 +0100
|
|
||||||
@@ -30,10 +30,12 @@
|
|
||||||
_dbg("Widcomm not ready. falling back to MS stack")
|
|
||||||
from msbt import *
|
|
||||||
|
|
||||||
-elif sys.platform == "linux2":
|
|
||||||
+elif sys.platform.startswith("linux"):
|
|
||||||
from bluez import *
|
|
||||||
elif sys.platform == "darwin":
|
|
||||||
from osx import *
|
|
||||||
+else:
|
|
||||||
+ raise Exception("This platform (%s) is currently not supported by pybluez." % sys.platform)
|
|
||||||
|
|
||||||
discover_devices.__doc__ = \
|
|
||||||
"""
|
|
||||||
diff -Naur PyBluez-0.18/setup.py PyBluez-0.18.patch/setup.py
|
|
||||||
--- PyBluez-0.18/setup.py 2009-11-25 23:39:55.000000000 +0100
|
|
||||||
+++ PyBluez-0.18.patch/setup.py 2011-11-30 11:42:45.018457088 +0100
|
|
||||||
@@ -46,7 +46,7 @@
|
|
||||||
)
|
|
||||||
mods.append (mod2)
|
|
||||||
|
|
||||||
-elif sys.platform == 'linux2':
|
|
||||||
+elif sys.platform.startswith('linux'):
|
|
||||||
mod1 = Extension('bluetooth._bluetooth',
|
|
||||||
libraries = ['bluetooth'],
|
|
||||||
sources = ['bluez/btmodule.c', 'bluez/btsdp.c'])
|
|
||||||
@@ -59,6 +59,8 @@
|
|
||||||
sources = ['osx/_osxbt.c']
|
|
||||||
)
|
|
||||||
mods = [ mod1 ]
|
|
||||||
+else:
|
|
||||||
+ raise Exception("This platform (%s) is currently not supported by pybluez." % sys.platform)
|
|
||||||
|
|
||||||
|
|
||||||
setup ( name = 'PyBluez',
|
|
@ -1,14 +0,0 @@
|
|||||||
diff -Naur PyBluez-0.18/setup.py PyBluez-0.18.patch/setup.py
|
|
||||||
--- PyBluez-0.18/setup.py 2009-11-25 23:39:55.000000000 +0100
|
|
||||||
+++ PyBluez-0.18.patch/setup.py 2010-10-18 23:47:16.585821819 +0200
|
|
||||||
@@ -1,7 +1,9 @@
|
|
||||||
#!/usr/bin/env python
|
|
||||||
|
|
||||||
-from distutils.core import setup, Extension
|
|
||||||
+from setuptools import setup
|
|
||||||
+from setuptools.extension import Extension
|
|
||||||
from distutils.debug import DEBUG
|
|
||||||
+
|
|
||||||
import sys
|
|
||||||
import os
|
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user