David Stes
2024-03-31 8cdd197ba643eb2608c5aab87567625bb9336cee
commit | author | age
8c64be 1 #
AP 2 # This file and its contents are supplied under the terms of the
3 # Common Development and Distribution License ("CDDL"). You may
4 # only use this file in accordance with the terms of the CDDL.
5 #
6 # A full copy of the text of the CDDL should have accompanied this
7 # source. A copy of the CDDL is also available via the Internet at
8 # http://www.illumos.org/license/CDDL.
9 #
10
11 #
12 # Copyright 2021 Alexander Pyhalov
13 #
14
15 BUILD_BITS=32
16 BUILD_STYLE=gem
17
18 include ../../../make-rules/shared-macros.mk
19
20 COMPONENT_NAME=        tomlrb
21 COMPONENT_VERSION=    2.0.1
22 COMPONENT_SUMMARY=    A Racc based TOML Ruby parser
23 COMPONENT_SRC=        $(COMPONENT_NAME)-$(COMPONENT_VERSION)
24 COMPONENT_ARCHIVE=    $(COMPONENT_SRC).gem
25 COMPONENT_ARCHIVE_HASH=    \
26     sha256:4fcc546118fa73a556f2d8d9a4a121fa0cfc7a99d990168ac9f4fbdbcb620329
27 COMPONENT_ARCHIVE_URL=  https://rubygems.org/downloads/$(COMPONENT_ARCHIVE)
28 COMPONENT_PROJECT_URL=  https://github.com/fbernier/tomlrb
29 COMPONENT_FMRI=        library/ruby/tomlrb
30 COMPONENT_CLASSIFICATION=    Development/Ruby
31 COMPONENT_LICENSE=    MIT
32 COMPONENT_LICENSE_FILE=    LICENSE.txt
33
34 TEST_TARGET=        $(NO_TESTS)
35 include $(WS_MAKE_RULES)/common.mk
36
37 # No gemspec is shipped with the gem. Create one
38 COMPONENT_POST_UNPACK_ACTION= \
39     $(GEM) spec $(USERLAND_ARCHIVES)/$(COMPONENT_ARCHIVE) --ruby > $(SOURCE_DIR)/$(GEMSPEC)
40
41 REQUIRED_PACKAGES += runtime/ruby-23