blob: e2dcacfd32bc3a01186006a93129b2af3546e9d0 [file] [log] [blame]
b.liue9582032025-04-17 19:18:16 +08001#
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
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=python-pathspec
11PKG_VERSION:=0.12.1
12PKG_RELEASE:=1
13
14PYPI_NAME:=pathspec
15PKG_HASH:=a482d51503a1ab33b1c67a6c3813a26953dbdc71c31dacaef9a838c4e29f5712
16
17PKG_LICENSE:=MPL-2.0
18PKG_LICENSE_FILES:=LICENSE
19PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com>
20
21PKG_HOST_ONLY:=1
22HOST_BUILD_DEPENDS:=python3/host python-build/host python-installer/host python-flit-core/host
23
24include ../pypi.mk
25include $(INCLUDE_DIR)/package.mk
26include $(INCLUDE_DIR)/host-build.mk
27include ../python3-package.mk
28include ../python3-host-build.mk
29
30define Package/python3-pathspec
31 SECTION:=lang
32 CATEGORY:=Languages
33 SUBMENU:=Python
34 TITLE:=gitignore style pattern matching of file paths
35 URL:=https://github.com/cpburnz/python-pathspec
36 DEPENDS:=+python3-light
37 BUILDONLY:=1
38endef
39
40define Package/python3-pathspec/description
41pathspec is a utility library for pattern matching of file paths. So far
42this only includes Git's wildmatch pattern matching which itself is
43derived from Rsync's wildmatch. Git uses wildmatch for its gitignore
44files.
45endef
46
47$(eval $(call Py3Package,python3-pathspec))
48$(eval $(call BuildPackage,python3-pathspec))
49$(eval $(call BuildPackage,python3-pathspec-src))
50$(eval $(call HostBuild))