ffmpeg-6: fix COMPONENT_REVISION
[oi-userland.git] / components / runtime / jruby / Makefile
blob45ef839b4296aca18639a6797bb42599fda21d71
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 2017 Alexander Pyhalov
15 BUILD_BITS=64
16 BUILD_STYLE=justmake
18 include ../../../make-rules/shared-macros.mk
20 COMPONENT_NAME= jruby
21 COMPONENT_VERSION= 9.1.17.0
22 COMPONENT_SUMMARY= Java implementation of the Ruby programming language
23 COMPONENT_FMRI = runtime/java/jruby
24 COMPONENT_CLASSIFICATION = Development/Ruby
25 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
26 COMPONENT_ARCHIVE= $(COMPONENT_NAME)-src-$(COMPONENT_VERSION).tar.gz
27 COMPONENT_ARCHIVE_HASH= \
28 sha256:b66d7c14f85075afdabb5ebf5950804c5a5d5c1d05ab833f580f04ee709b5773
29 COMPONENT_ARCHIVE_URL= \
30 https://s3.amazonaws.com/jruby.org/downloads/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
31 COMPONENT_PROJECT_URL = http://jruby.org
32 COMPONENT_LICENSE_FILE = COPYING
33 COMPONENT_LICENSE = EPLv1.0, GPLv2, LGPLv2.1
35 TEST_TARGET=$(NO_TESTS)
37 include $(WS_MAKE_RULES)/common.mk
39 COMPONENT_BUILD_ENV += JAVA_HOME="$(JAVA_HOME)"
41 COMPONENT_BUILD_ACTION = cd $(@D); $(ENV) $(COMPONENT_BUILD_ENV) mvn install
43 COMPONENT_INSTALL_ACTION = cd $(@D) ;\
44 rm -fr $(PROTO_DIR);\
45 mkdir -p $(PROTO_DIR)/usr/jruby/$(COMPONENT_VERSION);\
46 cp -r $(BUILD_DIR_64)/bin $(PROTO_DIR)/usr/jruby/$(COMPONENT_VERSION) ;\
47 cp -r $(BUILD_DIR_64)/docs $(PROTO_DIR)/usr/jruby/$(COMPONENT_VERSION);\
48 cp -r $(BUILD_DIR_64)/lib $(PROTO_DIR)/usr/jruby/$(COMPONENT_VERSION) ;\
49 cp -r $(BUILD_DIR_64)/samples $(PROTO_DIR)/usr/jruby/$(COMPONENT_VERSION) ;\
50 gfind $(PROTO_DIR) -regextype posix-extended -regex '.*\.(bat|dll|exe)' -print -delete; \
51 rm -r $(PROTO_DIR)/usr/jruby/$(COMPONENT_VERSION)/lib/jni/{Darwin,*-Linux,*-Windows,*-AIX,*-*BSD}
53 # Build dependencies
54 REQUIRED_PACKAGES += runtime/ruby-23
56 # Auto-generated dependencies
57 REQUIRED_PACKAGES += runtime/java/openjdk8
58 REQUIRED_PACKAGES += shell/bash
59 REQUIRED_PACKAGES += SUNWcs
60 REQUIRED_PACKAGES += system/library