commit | author | age
|
3da42d
|
1 |
# |
AP |
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. |
|
6 |
# |
|
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. |
|
10 |
# |
|
11 |
|
|
12 |
# |
|
13 |
# Copyright 2017 Alexander Pyhalov |
|
14 |
# |
061ff1
|
15 |
BUILD_BITS=64 |
AL |
16 |
BUILD_STYLE=justmake |
3da42d
|
17 |
|
AP |
18 |
include ../../../make-rules/shared-macros.mk |
|
19 |
|
|
20 |
COMPONENT_NAME= jruby |
061ff1
|
21 |
COMPONENT_VERSION= 9.1.17.0 |
3da42d
|
22 |
COMPONENT_SUMMARY= Java implementation of the Ruby programming language |
AP |
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= \ |
061ff1
|
28 |
sha256:b66d7c14f85075afdabb5ebf5950804c5a5d5c1d05ab833f580f04ee709b5773 |
3da42d
|
29 |
COMPONENT_ARCHIVE_URL= \ |
AP |
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 |
|
34 |
|
061ff1
|
35 |
TEST_TARGET=$(NO_TESTS) |
AL |
36 |
|
|
37 |
include $(WS_MAKE_RULES)/common.mk |
3da42d
|
38 |
|
AP |
39 |
COMPONENT_BUILD_ENV += JAVA_HOME="$(JAVA_HOME)" |
|
40 |
|
|
41 |
COMPONENT_BUILD_ACTION = cd $(@D); $(ENV) $(COMPONENT_BUILD_ENV) mvn install |
|
42 |
|
|
43 |
COMPONENT_INSTALL_ACTION = cd $(@D) ;\ |
|
44 |
rm -fr $(PROTO_DIR);\ |
|
45 |
mkdir -p $(PROTO_DIR)/usr/jruby/$(COMPONENT_VERSION);\ |
061ff1
|
46 |
cp -r $(BUILD_DIR_64)/bin $(PROTO_DIR)/usr/jruby/$(COMPONENT_VERSION) ;\ |
AL |
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) ;\ |
0ab911
|
50 |
gfind $(PROTO_DIR) -regextype posix-extended -regex '.*\.(bat|dll|exe)' -print -delete; \ |
AL |
51 |
rm -r $(PROTO_DIR)/usr/jruby/$(COMPONENT_VERSION)/lib/jni/{Darwin,*-Linux,*-Windows,*-AIX,*-*BSD} |
3da42d
|
52 |
|
0ab911
|
53 |
# Build dependencies |
061ff1
|
54 |
REQUIRED_PACKAGES += runtime/ruby-23 |
0ab911
|
55 |
|
AL |
56 |
# Auto-generated dependencies |
061ff1
|
57 |
REQUIRED_PACKAGES += runtime/java/openjdk8 |
3da42d
|
58 |
REQUIRED_PACKAGES += shell/bash |
AP |
59 |
REQUIRED_PACKAGES += SUNWcs |
|
60 |
REQUIRED_PACKAGES += system/library |