Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Groovy #2744

Merged
merged 2 commits into from Jan 26, 2017
Merged

Groovy #2744

Changes from all commits
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

@@ -0,0 +1,53 @@
#
# This file and its contents are supplied under the terms of the
# Common Development and Distribution License ("CDDL"). You may
# only use this file in accordance with the terms of the CDDL.
#
# A full copy of the text of the CDDL should have accompanied this
# source. A copy of the CDDL is also available via the Internet at
# http://www.illumos.org/license/CDDL.
#

#
# Copyright 2016 Jim Klimov
#
include ../../../make-rules/shared-macros.mk

COMPONENT_NAME= groovy
COMPONENT_MAJOR_VERSION= 2.4
COMPONENT_MINOR_VERSION= 8
COMPONENT_VERSION= $(COMPONENT_MAJOR_VERSION).$(COMPONENT_MINOR_VERSION)
COMPONENT_ARCHIVE= apache-$(COMPONENT_NAME)-binary-$(COMPONENT_VERSION).zip
COMPONENT_FMRI= developer/groovy-24
COMPONENT_CLASSIFICATION= Development/Java
COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
COMPONENT_PROJECT_URL= http://groovy-lang.org/
COMPONENT_ARCHIVE_HASH= \
sha256:668a65ea17037371a1952cca5f42ebc03329e15d3619aacb4c7dd5f4b39a8dfd
COMPONENT_ARCHIVE_URL= https://bintray.com/artifact/download/groovy/maven/$(COMPONENT_ARCHIVE)
COMPONENT_LICENSE= Apache-2.0,BSD,MIT,Eclipse,PublicDomain
COMPONENT_LICENSE_FILE= LICENSE
COMPONENT_SUMMARY= Groovy is a Java-based scripting language

include $(WS_MAKE_RULES)/prep.mk
include $(WS_MAKE_RULES)/justmake.mk
include $(WS_MAKE_RULES)/ips.mk

PATH=/usr/gnu/bin:/usr/bin

COMPONENT_PREP_ACTION += (cp $(COMPONENT_DIR)/files/Makefile $(SOURCE_DIR))

COMPONENT_COPY_ACTION = cp -r $(SOURCE_DIR)/* $(@D)/

COMPONENT_INSTALL_ENV += GROOVY_MAJOR_VERSION=$(COMPONENT_MAJOR_VERSION)

COMPONENT_POST_INSTALL_ACTION = $(FIND) $(PROTO_DIR) -name \*.bat -delete

build: $(BUILD_32)

install: $(INSTALL_32)

test: $(NO_TESTS)

REQUIRED_PACKAGES += SUNWcs
REQUIRED_PACKAGES += system/library
@@ -0,0 +1,11 @@
SUBDIRS=bin conf embeddable grooid indy lib
GROOVY_MAJOR_VERSION ?= 2.4
all: build

build:

install:
mkdir -p $(DESTDIR)/usr/share/groovy-$(GROOVY_MAJOR_VERSION)
mkdir -p $(DESTDIR)/usr/bin
cp -rf $(SUBDIRS) $(DESTDIR)/usr/share/groovy-$(GROOVY_MAJOR_VERSION)
ln -rs $(DESTDIR)/usr/share/groovy-$(GROOVY_MAJOR_VERSION)/bin/* $(DESTDIR)/usr/bin
@@ -0,0 +1,108 @@
#
# This file and its contents are supplied under the terms of the
# Common Development and Distribution License ("CDDL"), version 1.0.
# You may only use this file in accordance with the terms of version
# 1.0 of the CDDL.
#
# A full copy of the text of the CDDL should have accompanied this
# source. A copy of the CDDL is also available via the Internet at
# http://www.illumos.org/license/CDDL.
#

#
# Copyright 2016 Jim Klimov
#

set name=pkg.fmri value=pkg:/$(COMPONENT_FMRI)@$(IPS_COMPONENT_VERSION),$(BUILD_VERSION)
set name=pkg.summary value="$(COMPONENT_SUMMARY)"
set name=info.classification value="$(COMPONENT_CLASSIFICATION)"
set name=info.upstream-url value=$(COMPONENT_PROJECT_URL)
set name=info.source-url value=$(COMPONENT_ARCHIVE_URL)
set name=org.opensolaris.consolidation value=$(CONSOLIDATION)

license $(COMPONENT_LICENSE_FILE) license='$(COMPONENT_LICENSE)'

depend fmri=__TBD pkg.debug.depend.file=usr/bin/java type=require
depend fmri=__TBD pkg.debug.depend.file=usr/bin/javac type=require

link path=usr/bin/grape target=../share/groovy-2.4/bin/grape mediator=groovy mediator-version=2.4
link path=usr/bin/groovy target=../share/groovy-2.4/bin/groovy mediator=groovy mediator-version=2.4
link path=usr/bin/groovyConsole target=../share/groovy-2.4/bin/groovyConsole mediator=groovy mediator-version=2.4
link path=usr/bin/groovyc target=../share/groovy-2.4/bin/groovyc mediator=groovy mediator-version=2.4
link path=usr/bin/groovydoc target=../share/groovy-2.4/bin/groovydoc mediator=groovy mediator-version=2.4
link path=usr/bin/groovysh target=../share/groovy-2.4/bin/groovysh mediator=groovy mediator-version=2.4
link path=usr/bin/java2groovy target=../share/groovy-2.4/bin/java2groovy mediator=groovy mediator-version=2.4
link path=usr/bin/startGroovy target=../share/groovy-2.4/bin/startGroovy mediator=groovy mediator-version=2.4

file path=usr/share/groovy-2.4/bin/grape
file path=usr/share/groovy-2.4/bin/groovy
file path=usr/share/groovy-2.4/bin/groovyConsole
file path=usr/share/groovy-2.4/bin/groovyc
file path=usr/share/groovy-2.4/bin/groovydoc
file path=usr/share/groovy-2.4/bin/groovysh
file path=usr/share/groovy-2.4/bin/java2groovy
file path=usr/share/groovy-2.4/bin/startGroovy
file path=usr/share/groovy-2.4/conf/groovy-starter.conf
file path=usr/share/groovy-2.4/embeddable/groovy-all-$(COMPONENT_VERSION)-indy.jar
file path=usr/share/groovy-2.4/embeddable/groovy-all-$(COMPONENT_VERSION).jar
file path=usr/share/groovy-2.4/grooid/groovy-$(COMPONENT_VERSION)-grooid.jar
file path=usr/share/groovy-2.4/grooid/groovy-test-$(COMPONENT_VERSION)-grooid.jar
file path=usr/share/groovy-2.4/indy/groovy-$(COMPONENT_VERSION)-indy.jar
file path=usr/share/groovy-2.4/indy/groovy-ant-$(COMPONENT_VERSION)-indy.jar
file path=usr/share/groovy-2.4/indy/groovy-bsf-$(COMPONENT_VERSION)-indy.jar
file path=usr/share/groovy-2.4/indy/groovy-console-$(COMPONENT_VERSION)-indy.jar
file path=usr/share/groovy-2.4/indy/groovy-docgenerator-$(COMPONENT_VERSION)-indy.jar
file path=usr/share/groovy-2.4/indy/groovy-groovydoc-$(COMPONENT_VERSION)-indy.jar
file path=usr/share/groovy-2.4/indy/groovy-groovysh-$(COMPONENT_VERSION)-indy.jar
file path=usr/share/groovy-2.4/indy/groovy-jmx-$(COMPONENT_VERSION)-indy.jar
file path=usr/share/groovy-2.4/indy/groovy-json-$(COMPONENT_VERSION)-indy.jar
file path=usr/share/groovy-2.4/indy/groovy-jsr223-$(COMPONENT_VERSION)-indy.jar
file path=usr/share/groovy-2.4/indy/groovy-nio-$(COMPONENT_VERSION)-indy.jar
file path=usr/share/groovy-2.4/indy/groovy-servlet-$(COMPONENT_VERSION)-indy.jar
file path=usr/share/groovy-2.4/indy/groovy-sql-$(COMPONENT_VERSION)-indy.jar
file path=usr/share/groovy-2.4/indy/groovy-swing-$(COMPONENT_VERSION)-indy.jar
file path=usr/share/groovy-2.4/indy/groovy-templates-$(COMPONENT_VERSION)-indy.jar
file path=usr/share/groovy-2.4/indy/groovy-test-$(COMPONENT_VERSION)-indy.jar
file path=usr/share/groovy-2.4/indy/groovy-testng-$(COMPONENT_VERSION)-indy.jar
file path=usr/share/groovy-2.4/indy/groovy-xml-$(COMPONENT_VERSION)-indy.jar
file path=usr/share/groovy-2.4/lib/ant-1.9.4.jar
file path=usr/share/groovy-2.4/lib/ant-antlr-1.9.4.jar
file path=usr/share/groovy-2.4/lib/ant-junit-1.9.4.jar
file path=usr/share/groovy-2.4/lib/ant-launcher-1.9.4.jar
file path=usr/share/groovy-2.4/lib/bsf-2.4.0.jar
file path=usr/share/groovy-2.4/lib/commons-cli-1.2.jar
file path=usr/share/groovy-2.4/lib/commons-logging-1.2.jar
file path=usr/share/groovy-2.4/lib/gpars-1.2.1.jar
file path=usr/share/groovy-2.4/lib/groovy-$(COMPONENT_VERSION).jar
file path=usr/share/groovy-2.4/lib/groovy-ant-$(COMPONENT_VERSION).jar
file path=usr/share/groovy-2.4/lib/groovy-bsf-$(COMPONENT_VERSION).jar
file path=usr/share/groovy-2.4/lib/groovy-console-$(COMPONENT_VERSION).jar
file path=usr/share/groovy-2.4/lib/groovy-docgenerator-$(COMPONENT_VERSION).jar
file path=usr/share/groovy-2.4/lib/groovy-groovydoc-$(COMPONENT_VERSION).jar
file path=usr/share/groovy-2.4/lib/groovy-groovysh-$(COMPONENT_VERSION).jar
file path=usr/share/groovy-2.4/lib/groovy-jmx-$(COMPONENT_VERSION).jar
file path=usr/share/groovy-2.4/lib/groovy-json-$(COMPONENT_VERSION).jar
file path=usr/share/groovy-2.4/lib/groovy-jsr223-$(COMPONENT_VERSION).jar
file path=usr/share/groovy-2.4/lib/groovy-nio-$(COMPONENT_VERSION).jar
file path=usr/share/groovy-2.4/lib/groovy-servlet-$(COMPONENT_VERSION).jar
file path=usr/share/groovy-2.4/lib/groovy-sql-$(COMPONENT_VERSION).jar
file path=usr/share/groovy-2.4/lib/groovy-swing-$(COMPONENT_VERSION).jar
file path=usr/share/groovy-2.4/lib/groovy-templates-$(COMPONENT_VERSION).jar
file path=usr/share/groovy-2.4/lib/groovy-test-$(COMPONENT_VERSION).jar
file path=usr/share/groovy-2.4/lib/groovy-testng-$(COMPONENT_VERSION).jar
file path=usr/share/groovy-2.4/lib/groovy-xml-$(COMPONENT_VERSION).jar
file path=usr/share/groovy-2.4/lib/groovy.icns
file path=usr/share/groovy-2.4/lib/hamcrest-core-1.3.jar
file path=usr/share/groovy-2.4/lib/ivy-2.4.0.jar
file path=usr/share/groovy-2.4/lib/jansi-1.11.jar
file path=usr/share/groovy-2.4/lib/jcommander-1.47.jar
file path=usr/share/groovy-2.4/lib/jline-2.12.jar
file path=usr/share/groovy-2.4/lib/jsp-api-2.0.jar
file path=usr/share/groovy-2.4/lib/jsr166y-1.7.0.jar
file path=usr/share/groovy-2.4/lib/junit-4.12.jar
file path=usr/share/groovy-2.4/lib/multiverse-core-0.7.0.jar
file path=usr/share/groovy-2.4/lib/qdox-1.12.1.jar
file path=usr/share/groovy-2.4/lib/servlet-api-2.4.jar
file path=usr/share/groovy-2.4/lib/testng-6.8.13.jar
file path=usr/share/groovy-2.4/lib/xmlpull-1.1.3.1.jar
file path=usr/share/groovy-2.4/lib/xstream-1.4.7.jar
@@ -0,0 +1,104 @@
#
# This file and its contents are supplied under the terms of the
# Common Development and Distribution License ("CDDL"), version 1.0.
# You may only use this file in accordance with the terms of version
# 1.0 of the CDDL.
#
# A full copy of the text of the CDDL should have accompanied this
# source. A copy of the CDDL is also available via the Internet at
# http://www.illumos.org/license/CDDL.
#

#
# Copyright 2016 <contributor>
#

set name=pkg.fmri value=pkg:/$(COMPONENT_FMRI)@$(IPS_COMPONENT_VERSION),$(BUILD_VERSION)
set name=pkg.summary value="$(COMPONENT_SUMMARY)"
set name=info.classification value="$(COMPONENT_CLASSIFICATION)"
set name=info.upstream-url value=$(COMPONENT_PROJECT_URL)
set name=info.source-url value=$(COMPONENT_ARCHIVE_URL)
set name=org.opensolaris.consolidation value=$(CONSOLIDATION)

license $(COMPONENT_LICENSE_FILE) license='$(COMPONENT_LICENSE)'

link path=usr/bin/grape target=../share/groovy-2.4/bin/grape
link path=usr/bin/groovy target=../share/groovy-2.4/bin/groovy
link path=usr/bin/groovyConsole target=../share/groovy-2.4/bin/groovyConsole
link path=usr/bin/groovyc target=../share/groovy-2.4/bin/groovyc
link path=usr/bin/groovydoc target=../share/groovy-2.4/bin/groovydoc
link path=usr/bin/groovysh target=../share/groovy-2.4/bin/groovysh
link path=usr/bin/java2groovy target=../share/groovy-2.4/bin/java2groovy
link path=usr/bin/startGroovy target=../share/groovy-2.4/bin/startGroovy
file path=usr/share/groovy-2.4/bin/grape
file path=usr/share/groovy-2.4/bin/groovy
file path=usr/share/groovy-2.4/bin/groovyConsole
file path=usr/share/groovy-2.4/bin/groovyc
file path=usr/share/groovy-2.4/bin/groovydoc
file path=usr/share/groovy-2.4/bin/groovysh
file path=usr/share/groovy-2.4/bin/java2groovy
file path=usr/share/groovy-2.4/bin/startGroovy
file path=usr/share/groovy-2.4/conf/groovy-starter.conf
file path=usr/share/groovy-2.4/embeddable/groovy-all-$(COMPONENT_VERSION)-indy.jar
file path=usr/share/groovy-2.4/embeddable/groovy-all-$(COMPONENT_VERSION).jar
file path=usr/share/groovy-2.4/grooid/groovy-$(COMPONENT_VERSION)-grooid.jar
file path=usr/share/groovy-2.4/grooid/groovy-test-$(COMPONENT_VERSION)-grooid.jar
file path=usr/share/groovy-2.4/indy/groovy-$(COMPONENT_VERSION)-indy.jar
file path=usr/share/groovy-2.4/indy/groovy-ant-$(COMPONENT_VERSION)-indy.jar
file path=usr/share/groovy-2.4/indy/groovy-bsf-$(COMPONENT_VERSION)-indy.jar
file path=usr/share/groovy-2.4/indy/groovy-console-$(COMPONENT_VERSION)-indy.jar
file path=usr/share/groovy-2.4/indy/groovy-docgenerator-$(COMPONENT_VERSION)-indy.jar
file path=usr/share/groovy-2.4/indy/groovy-groovydoc-$(COMPONENT_VERSION)-indy.jar
file path=usr/share/groovy-2.4/indy/groovy-groovysh-$(COMPONENT_VERSION)-indy.jar
file path=usr/share/groovy-2.4/indy/groovy-jmx-$(COMPONENT_VERSION)-indy.jar
file path=usr/share/groovy-2.4/indy/groovy-json-$(COMPONENT_VERSION)-indy.jar
file path=usr/share/groovy-2.4/indy/groovy-jsr223-$(COMPONENT_VERSION)-indy.jar
file path=usr/share/groovy-2.4/indy/groovy-nio-$(COMPONENT_VERSION)-indy.jar
file path=usr/share/groovy-2.4/indy/groovy-servlet-$(COMPONENT_VERSION)-indy.jar
file path=usr/share/groovy-2.4/indy/groovy-sql-$(COMPONENT_VERSION)-indy.jar
file path=usr/share/groovy-2.4/indy/groovy-swing-$(COMPONENT_VERSION)-indy.jar
file path=usr/share/groovy-2.4/indy/groovy-templates-$(COMPONENT_VERSION)-indy.jar
file path=usr/share/groovy-2.4/indy/groovy-test-$(COMPONENT_VERSION)-indy.jar
file path=usr/share/groovy-2.4/indy/groovy-testng-$(COMPONENT_VERSION)-indy.jar
file path=usr/share/groovy-2.4/indy/groovy-xml-$(COMPONENT_VERSION)-indy.jar
file path=usr/share/groovy-2.4/lib/ant-1.9.4.jar
file path=usr/share/groovy-2.4/lib/ant-antlr-1.9.4.jar
file path=usr/share/groovy-2.4/lib/ant-junit-1.9.4.jar
file path=usr/share/groovy-2.4/lib/ant-launcher-1.9.4.jar
file path=usr/share/groovy-2.4/lib/bsf-2.4.0.jar
file path=usr/share/groovy-2.4/lib/commons-cli-1.2.jar
file path=usr/share/groovy-2.4/lib/commons-logging-1.2.jar
file path=usr/share/groovy-2.4/lib/gpars-1.2.1.jar
file path=usr/share/groovy-2.4/lib/groovy-$(COMPONENT_VERSION).jar
file path=usr/share/groovy-2.4/lib/groovy-ant-$(COMPONENT_VERSION).jar
file path=usr/share/groovy-2.4/lib/groovy-bsf-$(COMPONENT_VERSION).jar
file path=usr/share/groovy-2.4/lib/groovy-console-$(COMPONENT_VERSION).jar
file path=usr/share/groovy-2.4/lib/groovy-docgenerator-$(COMPONENT_VERSION).jar
file path=usr/share/groovy-2.4/lib/groovy-groovydoc-$(COMPONENT_VERSION).jar
file path=usr/share/groovy-2.4/lib/groovy-groovysh-$(COMPONENT_VERSION).jar
file path=usr/share/groovy-2.4/lib/groovy-jmx-$(COMPONENT_VERSION).jar
file path=usr/share/groovy-2.4/lib/groovy-json-$(COMPONENT_VERSION).jar
file path=usr/share/groovy-2.4/lib/groovy-jsr223-$(COMPONENT_VERSION).jar
file path=usr/share/groovy-2.4/lib/groovy-nio-$(COMPONENT_VERSION).jar
file path=usr/share/groovy-2.4/lib/groovy-servlet-$(COMPONENT_VERSION).jar
file path=usr/share/groovy-2.4/lib/groovy-sql-$(COMPONENT_VERSION).jar
file path=usr/share/groovy-2.4/lib/groovy-swing-$(COMPONENT_VERSION).jar
file path=usr/share/groovy-2.4/lib/groovy-templates-$(COMPONENT_VERSION).jar
file path=usr/share/groovy-2.4/lib/groovy-test-$(COMPONENT_VERSION).jar
file path=usr/share/groovy-2.4/lib/groovy-testng-$(COMPONENT_VERSION).jar
file path=usr/share/groovy-2.4/lib/groovy-xml-$(COMPONENT_VERSION).jar
file path=usr/share/groovy-2.4/lib/groovy.icns
file path=usr/share/groovy-2.4/lib/hamcrest-core-1.3.jar
file path=usr/share/groovy-2.4/lib/ivy-2.4.0.jar
file path=usr/share/groovy-2.4/lib/jansi-1.11.jar
file path=usr/share/groovy-2.4/lib/jcommander-1.47.jar
file path=usr/share/groovy-2.4/lib/jline-2.12.jar
file path=usr/share/groovy-2.4/lib/jsp-api-2.0.jar
file path=usr/share/groovy-2.4/lib/jsr166y-1.7.0.jar
file path=usr/share/groovy-2.4/lib/junit-4.12.jar
file path=usr/share/groovy-2.4/lib/multiverse-core-0.7.0.jar
file path=usr/share/groovy-2.4/lib/qdox-1.12.1.jar
file path=usr/share/groovy-2.4/lib/servlet-api-2.4.jar
file path=usr/share/groovy-2.4/lib/testng-6.8.13.jar
file path=usr/share/groovy-2.4/lib/xmlpull-1.1.3.1.jar
file path=usr/share/groovy-2.4/lib/xstream-1.4.7.jar
@@ -47,14 +47,17 @@
COMPONENT_INSTALL_ARGS += DESTDIR=$(PROTO_DIR)
COMPONENT_INSTALL_ARGS += $(COMPONENT_INSTALL_ARGS.$(BITS))

COMPONENT_COPY_ACTION ?= \
$(CLONEY) $(SOURCE_DIR) $(@D)

COMPONENT_BUILD_ACTION ?= \
cd $(@D); $(ENV) $(COMPONENT_BUILD_ENV) \
$(GMAKE) $(COMPONENT_BUILD_GMAKE_ARGS) $(COMPONENT_BUILD_ARGS) $(COMPONENT_BUILD_TARGETS)

# build the configured source
$(BUILD_DIR)/%/.built: $(SOURCE_DIR)/.prep
$(RM) -r $(@D) ; $(MKDIR) $(@D)
$(CLONEY) $(SOURCE_DIR) $(@D)
$(COMPONENT_COPY_ACTION)
$(COMPONENT_PRE_BUILD_ACTION)
($(COMPONENT_BUILD_ACTION))
$(COMPONENT_POST_BUILD_ACTION)
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.