add package virtinst and dependencies
[openadk.git] / package / urlgrabber / Makefile
blob13df6f985a3caa20814c9723c77d846645bf0a1e
1 # This file is part of the OpenADK project. OpenADK is copyrighted
2 # material, please see the LICENCE file in the top-level directory.
4 include $(TOPDIR)/rules.mk
6 PKG_NAME:= urlgrabber
7 PKG_VERSION:= 3.9.1
8 PKG_RELEASE:= 1
9 PKG_MD5SUM:= 00c8359bf71062d0946bacea521f80b4
10 PKG_DESCR:= Python module for fetching of files
11 PKG_SECTION:= misc
12 PKG_BUILDDEP:= pycurl
13 PKG_DEPENDS:= pycurl
14 PKG_URL:= http://urlgrabber.baseurl.org/
15 PKG_SITES:= http://urlgrabber.baseurl.org/download/
17 include $(TOPDIR)/mk/package.mk
19 $(eval $(call PKG_template,URLGRABBER,urlgrabber,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
21 CONFIG_STYLE:= manual
22 BUILD_STYLE:= manual
23 INSTALL_STYLE:= manual
25 include $(TOPDIR)/mk/python.mk
27 do-build:
28 (cd $(WRKBUILD); env PYTHONPATH=$(PYTHON_LIBDIR) $(PYTHON) ./setup.py build)
29 (cd $(WRKBUILD); env PYTHONPATH=$(PYTHON_LIBDIR) $(PYTHON) ./setup.py install --prefix="$(WRKINST)/usr")
31 do-install:
32 $(INSTALL_DIR) $(IDIR_URLGRABBER)/usr/lib/python$(PYTHON_VERSION)/site-packages
33 $(CP) $(WRKINST)/usr/lib/python$(PYTHON_VERSION)/site-packages/* \
34 $(IDIR_URLGRABBER)/usr/lib/python$(PYTHON_VERSION)/site-packages
36 include ${TOPDIR}/mk/pkg-bottom.mk