summaryrefslogtreecommitdiffstats
path: root/rules/python3-chardet.make
blob: 5d7bc113ec2673a1156fcdaf8b77b534f3c16a48 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# -*-makefile-*-
#
# Copyright (C) 2015 by Michael Olbrich <m.olbrich@pengutronix.de>
#
# See CREDITS for details about who has contributed to this project.
#
# For further information about the PTXdist project and license conditions
# see the README file.
#

#
# We provide this package
#
PACKAGES-$(PTXCONF_PYTHON3_CHARDET) += python3-chardet

#
# Paths and names
#
PYTHON3_CHARDET_VERSION	:= 2.3.0
PYTHON3_CHARDET_MD5	:= 25274d664ccb5130adae08047416e1a8
PYTHON3_CHARDET		:= chardet-$(PYTHON3_CHARDET_VERSION)
PYTHON3_CHARDET_SUFFIX	:= tar.gz
PYTHON3_CHARDET_URL	:= https://pypi.python.org/packages/source/c/chardet/$(PYTHON3_CHARDET).$(PYTHON3_CHARDET_SUFFIX)
PYTHON3_CHARDET_SOURCE	:= $(SRCDIR)/$(PYTHON3_CHARDET).$(PYTHON3_CHARDET_SUFFIX)
PYTHON3_CHARDET_DIR	:= $(BUILDDIR)/$(PYTHON3_CHARDET)
PYTHON3_CHARDET_LICENSE	:= LGPL-2.1-or-later

# ----------------------------------------------------------------------------
# Prepare
# ----------------------------------------------------------------------------

PYTHON3_CHARDET_CONF_TOOL	:= python3
# ----------------------------------------------------------------------------
# Target-Install
# ----------------------------------------------------------------------------

$(STATEDIR)/python3-chardet.targetinstall:
	@$(call targetinfo)

	@$(call install_init, python3-chardet)
	@$(call install_fixup, python3-chardet,PRIORITY,optional)
	@$(call install_fixup, python3-chardet,SECTION,base)
	@$(call install_fixup, python3-chardet,AUTHOR,"Michael Olbrich <m.olbrich@pengutronix.de>")
	@$(call install_fixup, python3-chardet,DESCRIPTION,missing)

	@$(call install_glob, python3-chardet, 0, 0, -, \
		/usr/lib/python$(PYTHON3_MAJORMINOR)/site-packages/chardet,, *.py)

	@$(call install_finish, python3-chardet)

	@$(call touch)

# vim: syntax=make