b.liu | e958203 | 2025-04-17 19:18:16 +0800 | [diff] [blame^] | 1 | # |
| 2 | # Copyright (C) 2023 Jeffery To |
| 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:=python-flit-scm |
| 11 | PKG_VERSION:=1.7.0 |
| 12 | PKG_RELEASE:=2 |
| 13 | |
| 14 | PYPI_NAME:=flit-scm |
| 15 | PYPI_SOURCE_NAME:=flit_scm |
| 16 | PKG_HASH:=961bd6fb24f31bba75333c234145fff88e6de0a90fc0f7e5e7c79deca69f6bb2 |
| 17 | |
| 18 | PKG_LICENSE:=MIT |
| 19 | PKG_LICENSE_FILES:=LICENSE |
| 20 | PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com> |
| 21 | |
| 22 | PKG_HOST_ONLY:=1 |
| 23 | HOST_BUILD_DEPENDS:= \ |
| 24 | python3/host \ |
| 25 | python-build/host \ |
| 26 | python-installer/host \ |
| 27 | python-flit-core/host \ |
| 28 | python-setuptools-scm/host |
| 29 | |
| 30 | include ../pypi.mk |
| 31 | include $(INCLUDE_DIR)/package.mk |
| 32 | include $(INCLUDE_DIR)/host-build.mk |
| 33 | include ../python3-package.mk |
| 34 | include ../python3-host-build.mk |
| 35 | |
| 36 | define Package/python3-flit-scm |
| 37 | SECTION:=lang |
| 38 | CATEGORY:=Languages |
| 39 | SUBMENU:=Python |
| 40 | TITLE:=A PEP 518 build backend that uses setuptools_scm and flit |
| 41 | URL:=https://gitlab.com/WillDaSilva/flit_scm |
| 42 | DEPENDS:=+python3-light +python3-flit-core +python3-setuptools-scm |
| 43 | BUILDONLY:=1 |
| 44 | endef |
| 45 | |
| 46 | define Package/python3-flit-scm/description |
| 47 | A PEP 518 build backend that uses setuptools_scm to generate a version |
| 48 | file from your version control system, then flit_core to build the |
| 49 | package. |
| 50 | endef |
| 51 | |
| 52 | $(eval $(call Py3Package,python3-flit-scm)) |
| 53 | $(eval $(call BuildPackage,python3-flit-scm)) |
| 54 | $(eval $(call BuildPackage,python3-flit-scm-src)) |
| 55 | $(eval $(call HostBuild)) |