From 788c99ede88ef65ec441b1f2c564acf3d4496ec1 Mon Sep 17 00:00:00 2001 From: Stephan Raue Date: Tue, 21 Jan 2014 17:23:10 +0100 Subject: [PATCH] dbus-python: convert to new package format Signed-off-by: Stephan Raue --- packages/python/system/dbus-python/build | 38 ------------------- packages/python/system/dbus-python/install | 33 ---------------- .../system/dbus-python/{meta => package.mk} | 11 ++++-- 3 files changed, 8 insertions(+), 74 deletions(-) delete mode 100755 packages/python/system/dbus-python/build delete mode 100755 packages/python/system/dbus-python/install rename packages/python/system/dbus-python/{meta => package.mk} (88%) diff --git a/packages/python/system/dbus-python/build b/packages/python/system/dbus-python/build deleted file mode 100755 index b780f1f31b..0000000000 --- a/packages/python/system/dbus-python/build +++ /dev/null @@ -1,38 +0,0 @@ -#!/bin/sh - -################################################################################ -# This file is part of OpenELEC - http://www.openelec.tv -# Copyright (C) 2009-2014 Stephan Raue (stephan@openelec.tv) -# -# OpenELEC 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 of the License, or -# (at your option) any later version. -# -# OpenELEC 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. If not, see . -################################################################################ - -. config/options $1 - -PYTHON_LIBDIR="`ls -d $SYSROOT_PREFIX/usr/lib/python*`" -PYTHON_HOST_LIBDIR="`ls -d $ROOT/$TOOLCHAIN/lib/python*`" - -cd $PKG_BUILD -./configure --host=$TARGET_NAME \ - --build=$HOST_NAME \ - --prefix=/usr \ - --sysconfdir=/etc \ - --disable-static \ - --enable-shared \ - -make CFLAGS="$TARGET_CFLAGS" - -$MAKEINSTALL - -python -Wi -t -B $PYTHON_HOST_LIBDIR/compileall.py ./dbus -f diff --git a/packages/python/system/dbus-python/install b/packages/python/system/dbus-python/install deleted file mode 100755 index b0b92f9ec2..0000000000 --- a/packages/python/system/dbus-python/install +++ /dev/null @@ -1,33 +0,0 @@ -#!/bin/sh - -################################################################################ -# This file is part of OpenELEC - http://www.openelec.tv -# Copyright (C) 2009-2014 Stephan Raue (stephan@openelec.tv) -# -# OpenELEC 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 of the License, or -# (at your option) any later version. -# -# OpenELEC 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. If not, see . -################################################################################ - -. config/options $1 - -PYTHON_LIB_DIR=`ls -d $INSTALL/usr/lib/python*` - -mkdir -p $PYTHON_LIB_DIR/site-packages - cp -P $PKG_BUILD/_dbus_bindings/.libs/*.so $PYTHON_LIB_DIR/site-packages - cp -P $PKG_BUILD/_dbus_glib_bindings/.libs/*.so $PYTHON_LIB_DIR/site-packages - -mkdir -p $PYTHON_LIB_DIR/site-packages/dbus - cp $PKG_BUILD/dbus/*.pyo $PYTHON_LIB_DIR/site-packages/dbus - -mkdir -p $PYTHON_LIB_DIR/site-packages/dbus/mainloop - cp $PKG_BUILD/dbus/mainloop/*.pyo $PYTHON_LIB_DIR/site-packages/dbus/mainloop diff --git a/packages/python/system/dbus-python/meta b/packages/python/system/dbus-python/package.mk similarity index 88% rename from packages/python/system/dbus-python/meta rename to packages/python/system/dbus-python/package.mk index 28a774be07..1ac9c8d911 100644 --- a/packages/python/system/dbus-python/meta +++ b/packages/python/system/dbus-python/package.mk @@ -23,12 +23,17 @@ PKG_ARCH="any" PKG_LICENSE="GPL" PKG_SITE="http://freedesktop.org/wiki/Software/dbus" PKG_URL="http://dbus.freedesktop.org/releases/dbus-python/$PKG_NAME-$PKG_VERSION.tar.gz" -PKG_DEPENDS="Python dbus" -PKG_BUILD_DEPENDS="toolchain Python dbus dbus-glib" +PKG_DEPENDS_TARGET="Python dbus" +PKG_BUILD_DEPENDS_TARGET="toolchain Python dbus dbus-glib" PKG_PRIORITY="optional" PKG_SECTION="python/system" PKG_SHORTDESC="dbus-python: A message bus system" PKG_LONGDESC="D-BUS is a message bus, used for sending messages between applications. Conceptually, it fits somewhere in between raw sockets and CORBA in terms of complexity. D-BUS supports broadcast messages, asynchronous messages (thus decreasing latency), authentication, and more. It is designed to be low-overhead; messages are sent using a binary protocol, not using XML. D-BUS also supports a method call mapping for its messages, but it is not required; this makes using the system quite simple." -PKG_IS_ADDON="no" +PKG_IS_ADDON="no" PKG_AUTORECONF="yes" + +post_makeinstall_target() { + find $INSTALL/usr/lib -name "*.py" -exec rm -rf "{}" ";" + find $INSTALL/usr/lib -name "*.pyc" -exec rm -rf "{}" ";" +}