Skip to content

Commit

Permalink
Mako: add python markup library
Browse files Browse the repository at this point in the history
Mako is needed for some packages to build.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
  • Loading branch information
dangowrt committed Oct 6, 2021
1 parent 45951a9 commit 2e17cb9
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions lang/python/Mako/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#

include $(TOPDIR)/rules.mk

PKG_NAME:=Mako
PKG_VERSION:=1.1.5
PKG_RELEASE:=1

PYPI_NAME:=$(PKG_NAME)
PKG_HASH:=169fa52af22a91900d852e937400e79f535496191c63712e3b9fda5a9bed6fc3

PKG_MAINTAINER:=Daniel Golle <daniel@makrotopia.org>
PKG_LICENSE:=BSD-3-Clause
PKG_LICENSE_FILES:=LICENSE.rst
PKG_CPE_ID:=cpe:/a:palletsprojects:flask

HOST_BUILD_DEPENDS:=python3/host

include ../pypi.mk
include $(INCLUDE_DIR)/host-build.mk
include $(INCLUDE_DIR)/package.mk
include ../python3-package.mk

define Package/python3-mako
SECTION:=lang
CATEGORY:=Languages
SUBMENU:=Python
TITLE:=Mako
URL:=https://www.makotemplates.org/
DEPENDS:=+python3-light
endef

define Package/python3-mako/description
Mako is a template library written in Python.
endef

define Host/Compile
$(call HostPython3/ModSetup,,install --prefix="" --root="$(STAGING_DIR_HOSTPKG)")
endef

Host/Install:=

$(eval $(call Py3Package,python3-mako))
$(eval $(call BuildPackage,python3-mako))
$(eval $(call BuildPackage,python3-mako-src))
$(eval $(call HostBuild))

3 comments on commit 2e17cb9

@jefferyto
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What packages require this package to build, and why is using HOST_PYTHON3_PACKAGE_BUILD_DEPENDS not sufficient for these packages?

@dangowrt
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The host version is required to build mesa video feed, see
https://github.com/openwrt/video/blob/master/libs/mesa/Makefile#L15

@jefferyto
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you searched for mako here you would have found #14952, where I also suggested to the submitter to use HOST_PYTHON3_PACKAGE_BUILD_DEPENDS.

Since the last in-tree use of host Python packages was removed in #17108, I will remove support for host Python packages in the next python3 update. I suggest updating the mesa package before then.

Please sign in to comment.