python/hypothesis: update to 6.122.3
[oi-userland.git] / components / fonts / hack-ttf / Makefile
blobd521845ec91a9c6f5335ecfdd549ba3da649b9b4
2 # This file and its contents are supplied under the terms of the
3 # Common Development and Distribution License ("CDDL"), version 1.0.
4 # You may only use this file in accordance with the terms of version
5 # 1.0 of the CDDL.
7 # A full copy of the text of the CDDL should have accompanied this
8 # source. A copy of the CDDL is also available via the Internet at
9 # http://www.illumos.org/license/CDDL.
13 # Copyright 2016 Tim Mooney <Timothy.V.Mooney@gmail.com>
14 # Copyright 2018 Michal Nowak
17 include ../../../make-rules/shared-macros.mk
19 COMPONENT_NAME= Hack
20 # Both COMPONENT_VERSION and IPS_COMPONENT_VERSION are derived from this
21 COMPONENT_VERSION= 3.003
22 # remove leading 0s in any part of the version.
23 IPS_COMPONENT_VERSION= $(shell echo $(COMPONENT_VERSION) | sed -e 's/\.0*\([1-9]\)/.\1/')
24 COMPONENT_SUMMARY= Hack, a typeface designed for source code
25 COMPONENT_PROJECT_URL= https://sourcefoundry.org/hack/
26 COMPONENT_FMRI= system/font/truetype/hack
27 COMPONENT_CLASSIFICATION= System/Fonts
28 COMPONENT_SRC= $(COMPONENT_NAME)-$(IPS_COMPONENT_VERSION)
29 COMPONENT_ARCHIVE= $(COMPONENT_NAME)-v$(COMPONENT_VERSION)-ttf.tar.xz
30 COMPONENT_ARCHIVE_URL= \
31 https://github.com/chrissimpkins/Hack/releases/download/v$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
32 COMPONENT_ARCHIVE_HASH= \
33 sha256:d9ed5d0a07525c7e7bd587b4364e4bc41021dd668658d09864453d9bb374a78d
34 COMPONENT_LICENSE= MIT, BitStream Vera Font License
35 COMPONENT_LICENSE_FILE= hack.license
37 include $(WS_TOP)/make-rules/prep.mk
38 include $(WS_TOP)/make-rules/justmake.mk
39 include $(WS_TOP)/make-rules/ips.mk
41 # doesn't extract into its own directory, so pass -r dir to the unpack target
42 UNPACK_ARGS+=-r $(COMPONENT_SRC)
44 FONT_TTF_DIR=/usr/share/fonts/TrueType
45 THIS_FONT_DIR=$(FONT_TTF_DIR)/hack
47 COMPONENT_BUILD_ACTION= cd $(@D) ; mkfontscale ; mkfontdir
49 COMPONENT_INSTALL_ACTION= cd $(@D) && \
50 rm -rf $(PROTO_DIR)$(THIS_FONT_DIR) && mkdir -p $(PROTO_DIR)$(THIS_FONT_DIR) && \
51 $(INSTALL) -c -m 0444 *.ttf fonts.dir fonts.scale $(PROTO_DIR)$(THIS_FONT_DIR);
53 build: $(BUILD_32)
55 install: $(INSTALL_32)
57 test: $(NO_TESTS)
59 REQUIRED_PACKAGES+= x11/mkfontdir
60 REQUIRED_PACKAGES+= x11/mkfontscale