Building hype library
mkdir hype_processing
cd hype_processing
wget https://github.com/hype/HYPE_Processing/blob/master/distribution/HYPE.zip
or otherwise download HYPE.zip
unzip HYPE.zip
cd ../../
mkdir .mvn
touch .mvn/extensions.xml # see below
touch pom.rb # see below
extensions.xml
This file tells maven to do a polyglot-ruby build
<?xml version="1.0" encoding="UTF-8"?>
<extensions>
<extension>
<groupId>io.takari.polyglot</groupId>
<artifactId>polyglot-ruby</artifactId>
<version>0.4.6</version>
</extension>
</extensions>
pom.rb
This is the ruby polyglot version of pom.xml
project 'hype' do
model_version '4.0.0'
id 'hypeframework:hype:2.0.2'
packaging 'jar'
description 'A collection of classes that performs the heavy lifting for you by writing a minimal amount of code.'
organization 'hypeframework', 'http://www.hypeframework.org/'
{
'hype' => 'Joshua Davis', 'ghostery' => 'Christopher Tino'
}.each do |key, value|
developer key do
name value
roles 'developer'
end
end
license 'BSD 3', 'https://opensource.org/licenses/BSD-3-Clause'
issue_management 'https://github.com/hype/HYPE_Processing/issues', 'Github'
properties( 'maven.compiler.source' => '1.8',
'project.build.sourceEncoding' => 'UTF-8',
'maven.compiler.target' => '1.8',
'polyglot.dump.pom' => 'pom.xml' )
jar 'org.processing:core:3.3.7' # latest available from maven
build do
default_goal 'package'
source_directory 'src'
final_name 'hype'
end
end
Ideally you need apache-maven-3.5.0 installed (at least 3.3.1), to compile with
mvn package # outputs hype.jar into target folder
For JRubyArt wrap hype.jar
in library
folder, put library
folder in a hype
folder (and put that alondside regular processing libraries in sketchbook/libraries
linux etc). For propane put nested hype library in ~/.propane/libraries folder
see how to install contributed libraries for propane.