lede-packages-rs

git clone git://archive.git.mtrnord.blog/MTRNord/lede-packages-rs.git
Log | Files | Refs | README | LICENSE

Makefile (1258B)


      1 #
      2 # Copyright (C) 2007-2017 OpenWrt.org
      3 #
      4 # This is free software, licensed under the GNU General Public License v2.
      5 # See /LICENSE for more information.
      6 #
      7 
      8 include $(TOPDIR)/rules.mk
      9 
     10 PKG_NAME:=openpyxl
     11 PKG_VERSION:=2.4.2
     12 PKG_RELEASE:=1
     13 PKG_LICENSE:=MIT
     14 
     15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
     16 PKG_SOURCE_URL:=https://pypi.python.org/packages/56/c6/a2a7c36196e4732acceca093ce5961db907f5a855b557d6a727a7f59b8b4/
     17 PKG_MD5SUM:=28b6b5f74f01e6249e8c7f526c57a2e7
     18 PKG_BUILD_DEPENDS:=python python-setuptools
     19 
     20 include $(INCLUDE_DIR)/package.mk
     21 $(call include_mk, python-package.mk)
     22 
     23 define Package/openpyxl
     24   SUBMENU:=Python
     25   SECTION:=lang
     26   CATEGORY:=Languages
     27   MAINTAINER:=Gergely Kiss <mail.gery@gmail.com>
     28   TITLE:=A Python library to read/write Excel 2010 xlsx/xlsm files
     29   URL:=https://openpyxl.readthedocs.org/
     30   DEPENDS:=+python +django
     31 endef
     32 
     33 define Package/openpyxl/description
     34   A Python library to read/write Excel 2010 xlsx/xlsm files
     35 endef
     36 
     37 define Build/Compile
     38 	$(call Build/Compile/PyMod,,install --prefix=/usr --root=$(PKG_INSTALL_DIR))
     39 endef
     40 
     41 define Package/openpyxl/install
     42 	$(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR)
     43 	$(CP) \
     44 	    $(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/* \
     45 	    $(1)$(PYTHON_PKG_DIR)
     46 endef
     47 
     48 $(eval $(call BuildPackage,openpyxl))