You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
48 lines
1.4 KiB
48 lines
1.4 KiB
# --- SDE-COPYRIGHT-NOTE-BEGIN --- |
|
# This copyright note is auto-generated by ./scripts/Create-CopyPatch. |
|
# |
|
# Filename: package/.../groovy/groovy.conf |
|
# Copyright (C) 2008 The OpenSDE Project |
|
# |
|
# More information can be found in the files COPYING and README. |
|
# |
|
# This program is free software; you can redistribute it and/or modify |
|
# it under the terms of the GNU General Public License as published by |
|
# the Free Software Foundation; version 2 of the License. A copy of the |
|
# GNU General Public License can be found in the file COPYING. |
|
# --- SDE-COPYRIGHT-NOTE-END --- |
|
|
|
# Prevent executing normal make and install build steps. |
|
# This package has custom make and install. |
|
makeopt= |
|
makeinstopt= |
|
|
|
prefix=opt/groovy |
|
set_confopt |
|
|
|
# Custom installation. |
|
groovy_postmake() { |
|
# Removed unused garbage ;-) |
|
( cd $builddir/groovy-${ver}; |
|
for file in groovy*.jar bin/*.bat bin/*cygwin; do |
|
rm -f $file; |
|
done; |
|
) |
|
|
|
# Make scripts in bin executable. |
|
( cd $builddir/groovy-${ver}; chmod 755 bin/* ) |
|
|
|
# Copy the extracted archive to the current prefix location. |
|
# But make sure to preserve any possible links. |
|
( cd $builddir/groovy-${ver}; tar -c * | tar -x -C $root/$prefix ) |
|
|
|
# Prepare necessary environment variables. |
|
cat <<-EOT > $root/etc/profile.d/groovy |
|
GROOVY_HOME=/$prefix |
|
PATH=$bindir:/$prefix/bin:\$PATH |
|
|
|
export GROOVY_HOME PATH |
|
EOT |
|
} |
|
|
|
hook_add postmake 5 groovy_postmake
|
|
|