Skip to content

Instantly share code, notes, and snippets.

@lucize
Created August 6, 2020 13:54
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save lucize/b0691a79beff66a9ed2163e9f3999808 to your computer and use it in GitHub Desktop.
python3-mako
#
# Copyright (C) 2017 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=python3-mako
PKG_VERSION:=1.1.2
PKG_RELEASE:=1
PKG_SOURCE:=Mako-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/m/mako/
PKG_HASH:=3139c5d64aa5d175dbafb95027057128b5fbd05a40c53999f3905ceb53366d9d
HOST_BUILD_DEPENDS:=python3/host
PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)-mako-$(PKG_VERSION)
PKG_UNPACK=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)
HOST_UNPACK=$(HOST_TAR) -C $(HOST_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)
PKG_LICENSE:=BSD
PKG_LICENSE_FILES:=LICENSES.txt
PKG_MAINTAINER:=Alexandru Ardelean <ardeleanalex@gmail.com>
include $(INCLUDE_DIR)/host-build.mk
include ../pypi.mk
include $(INCLUDE_DIR)/package.mk
include ../python3-package.mk
define Package/python3-mako
SECTION:=lang
CATEGORY:=Languages
SUBMENU:=Python
TITLE:=python3-mako
URL:=https://www.makotemplates.org/
DEPENDS:=
DEPENDS+=+python3-light
endef
define Package/python3-mako/description
Mako is a template library written in Python. It provides a familiar, non-XML
syntax which compiles into Python modules for maximum performance.
endef
define Host/Compile
$(call Build/Compile/HostPyMod,,install --prefix="" --root="$(STAGING_DIR_HOSTPKG)")
endef
define Host/Install
$(CP) $(HOST_BUILD_DIR)/mako $(HOST_PYTHON3_PKG_DIR)/../
endef
$(eval $(call HostBuild))
$(eval $(call Py3Package,python3-mako))
$(eval $(call BuildPackage,python3-mako))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment