From: Alexandru Ardelean Date: Wed, 10 Dec 2014 11:11:17 +0000 (+0200) Subject: python-dns: update compile rule and add PyPackage rules X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=0bfec165fa043f7f1f055fb087b0dd11eee8534f;p=feed%2Fpackages.git python-dns: update compile rule and add PyPackage rules Signed-off-by: Alexandru Ardelean --- diff --git a/lang/python-dns/Makefile b/lang/python-dns/Makefile index cc59010109..eca4df5797 100644 --- a/lang/python-dns/Makefile +++ b/lang/python-dns/Makefile @@ -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))