From 658ae76b938a90ac3587909f6b8525559fe57b56 Mon Sep 17 00:00:00 2001 From: Roman I Khimov Date: Tue, 23 Mar 2010 15:20:19 +0300 Subject: use PYTHON_SITEPACKAGES_DIR Converted most of python site-packages references to PYTHON_SITEPACKAGES_DIR. Signed-off-by: Roman I Khimov --- recipes/openbmap/openbmap-logger_0.2.0.bb | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'recipes/openbmap/openbmap-logger_0.2.0.bb') diff --git a/recipes/openbmap/openbmap-logger_0.2.0.bb b/recipes/openbmap/openbmap-logger_0.2.0.bb index 72e66441da..f2fff6ea2d 100644 --- a/recipes/openbmap/openbmap-logger_0.2.0.bb +++ b/recipes/openbmap/openbmap-logger_0.2.0.bb @@ -4,9 +4,11 @@ DEPENDS = "python python-dbus python-pygobject python-pygtk libglade" RDEPENDS = "python-subprocess python-netclient python-math python-core python-io" PR = "r1" +inherit python-dir + SRC_URI = "${SOURCEFORGE_MIRROR}/myposition/openbmap-logger-${PV}.tar.gz" -FILES_${PN} += "${datadir}/openBmap/* ${libdir}/python2.6/site-packages/openbmap/*" +FILES_${PN} += "${datadir}/openBmap/* ${PYTHON_SITEPACKAGES_DIR}/openbmap/*" do_configure () { : @@ -19,10 +21,10 @@ do_compile () { do_install () { install -d ${D}${bindir} install -m 0755 openBmapGTK ${D}${bindir}/ - install -d ${D}${libdir}/python2.6/site-packages/openbmap/ - install -m 0644 openbmap/__init__.py ${D}${libdir}/python2.6/site-packages/openbmap/ - install -m 0644 openbmap/logger.py ${D}${libdir}/python2.6/site-packages/openbmap/ - install -m 0644 openbmap/Upload.py ${D}${libdir}/python2.6/site-packages/openbmap/ + install -d ${D}${PYTHON_SITEPACKAGES_DIR}/openbmap/ + install -m 0644 openbmap/__init__.py ${D}${PYTHON_SITEPACKAGES_DIR}/openbmap/ + install -m 0644 openbmap/logger.py ${D}${PYTHON_SITEPACKAGES_DIR}/openbmap/ + install -m 0644 openbmap/Upload.py ${D}${PYTHON_SITEPACKAGES_DIR}/openbmap/ install -d ${D}${datadir}/pixmaps install -d ${D}${datadir}/applications install -d ${D}${datadir}/openBmap -- cgit v1.2.3