DESCRIPTION = "Python interface to Bluetooth LE on Linux"
HOMEPAGE = "https://github.com/IanHarvey/bluepy"
SECTION = "devel/python"

DEPENDS = "${PYTHON_PN} glib-2.0"
RDEPENDS_${PN} = "bluez5"

LICENSE = "GPLv2 & PD"
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6"
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/PD;md5=b3597d12946881e13cb3b548d1173851"

inherit setuptools3 pkgconfig

SRC_URI = "git://github.com/IanHarvey/bluepy.git;protocol=https;rev=7ad565231a97c304c0eff45f2649cd005e69db09"
S = "${WORKDIR}/git"

TARGET_CC_ARCH += "${LDFLAGS}"

DESCRIPTION = "Python interface to Bluetooth LE on Linux"
HOMEPAGE = "https://github.com/IanHarvey/bluepy"
SECTION = "devel/python"
LICENSE = "GPLv2 & PD"
LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=59e0d45ea684dda215889aa1b5acd001"
DEPENDS = "glib-2.0"
SRCREV = "7ad565231a97c304c0eff45f2649cd005e69db09"
PV = "1.3.0+git${SRCPV}"

SRC_URI = "git://github.com/IanHarvey/bluepy.git;protocol=https"

S = "${WORKDIR}/git"

inherit setuptools3 pkgconfig

RDEPENDS:${PN} = "bluez5"

TARGET_CC_ARCH += "${LDFLAGS}"

Set PV and correct syntax for RDEPENDS
bluepy: Set PV and correct syntax for RDEPENDS

Also organize the recipe to to match OE style
Remove PYTHON_PN from DEPENDS, setuptools should be enough
Correct setting LIC_FILES_CHKSUM
Move setting git SHA to SRCREV

Signed-off-by: Khem Raj <729d64b6f67515e258459a5f6d20ec88b2caf8df@gmail.com>
Cc: Marco Cavallini <d41d84a7fcd11664276f56955c39bd512a0ca8c6@koansoftware.com>
Cc: Martin Jansa <77d25b640e536c950b8ae8cdd4f0574e3b263d04@gmail.com>
