-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Mako is needed for some packages to build. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
- Loading branch information
Showing
1 changed file
with
48 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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)) |
2e17cb9
There was a problem hiding this comment.
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?2e17cb9
There was a problem hiding this comment.
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, seehttps://github.com/openwrt/video/blob/master/libs/mesa/Makefile#L15
2e17cb9
There was a problem hiding this comment.
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.