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-semantic-version |
| 11 | PKG_VERSION:=2.10.0 |
| 12 | PKG_RELEASE:=1 |
| 13 | |
| 14 | PYPI_NAME:=semantic-version |
| 15 | PYPI_SOURCE_NAME:=semantic_version |
| 16 | PKG_HASH:=bdabb6d336998cbb378d4b9db3a4b56a1e3235701dc05ea2690d9a997ed5041c |
| 17 | |
| 18 | PKG_LICENSE:=BSD-2-Clause |
| 19 | PKG_LICENSE_FILES:=LICENSE |
| 20 | PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com> |
| 21 | |
| 22 | PKG_HOST_ONLY:=1 |
| 23 | HOST_BUILD_DEPENDS:=python3/host python-build/host python-installer/host python-wheel/host |
| 24 | |
| 25 | include ../pypi.mk |
| 26 | include $(INCLUDE_DIR)/package.mk |
| 27 | include $(INCLUDE_DIR)/host-build.mk |
| 28 | include ../python3-package.mk |
| 29 | include ../python3-host-build.mk |
| 30 | |
| 31 | define Package/python3-semantic-version |
| 32 | SUBMENU:=Python |
| 33 | SECTION:=lang |
| 34 | CATEGORY:=Languages |
| 35 | TITLE:=Library implementing the 'SemVer' scheme |
| 36 | URL:=https://github.com/rbarrois/python-semanticversion |
| 37 | DEPENDS:=+python3-light |
| 38 | BUILDONLY:=1 |
| 39 | endef |
| 40 | |
| 41 | define Package/python3-semantic-version/description |
| 42 | This small python library provides a few tools to handle SemVer in |
| 43 | Python. It follows strictly the 2.0.0 version of the SemVer scheme. |
| 44 | endef |
| 45 | |
| 46 | $(eval $(call Py3Package,python3-semantic-version)) |
| 47 | $(eval $(call BuildPackage,python3-semantic-version)) |
| 48 | $(eval $(call BuildPackage,python3-semantic-version-src)) |
| 49 | $(eval $(call HostBuild)) |