1 DESCRIPTION = "PyIW is a simple Python extension module written in C \
2 that interfaces with libiw and provides a very 'pythonic' API to programmers."
3 HOMEPAGE = "http://www.emperorlinux.com/etc/contrib/?page=pyiw"
4 SECTION = "devel/python"
7 DEPENDS = "wireless-tools"
8 RDEPENDS = "python-core"
11 inherit autotools pkgconfig distutils-base
13 CFLAGS += "-I${STAGING_INCDIR}/${PYTHON_DIR}"
15 SRC_URI = "http://downloads.emperorlinux.com/contrib/pyiw/pyiw-${PV}.tbz2 \
17 S = "${WORKDIR}/pyiw-${PV}"
20 tar jxvf ${DL_DIR}/pyiw-${PV}.tbz2
21 cp Makefile pyiw-${PV}/
23 do_unpack_real[dirs] = "${WORKDIR}"
24 addtask unpack_real before do_patch after do_unpack
27 install -d ${D}${libdir}/${PYTHON_DIR}/site-packages/
28 install -m 0755 pyiw.so ${D}${libdir}/${PYTHON_DIR}/site-packages/pyiw.so
31 FILES_${PN} = "${libdir}/${PYTHON_DIR}/site-packages/pyiw.so"