python-dns: update compile rule and add PyPackage rules
authorAlexandru Ardelean <aa@ocedo.com>
Wed, 10 Dec 2014 11:11:17 +0000 (13:11 +0200)
committerAlexandru Ardelean <aa@ocedo.com>
Wed, 10 Dec 2014 11:28:04 +0000 (13:28 +0200)
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
lang/python-dns/Makefile

index cc59010109643a6b987908805ca7158bd7c7abc8..eca4df5797e5b6099c659967e19965f60b7b4bf2 100644 (file)
@@ -34,13 +34,13 @@ define Package/python-dns/description
 endef
 
 define Build/Compile
-       $(call Build/Compile/PyMod,,install --prefix=/usr --root=$(PKG_INSTALL_DIR))
+       $(call Build/Compile/PyMod,,\
+               install --prefix="$(PKG_INSTALL_DIR)/usr" \
+       )
 endef
 
-define Package/python-dns/install
-       $(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR)
-       $(CP) $(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/dns/* \
-               $(1)$(PYTHON_PKG_DIR)
+define PyPackage/python-dns/filespec
++|/usr/lib/python$(PYTHON_VERSION)/site-packages
 endef
 
 $(eval $(call PyPackage,python-dns))