OpenSDE Packages Database (without history before r20070)
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.

34 lines
825 B

  1. # Prevent executing normal make and install build steps.
  2. # This package has custom make and install.
  3. makeopt=''
  4. makeinstopt=''
  5. prefix=opt/groovy
  6. set_confopt
  7. # Custom installation.
  8. groovy_postmake() {
  9. # Removed unused garbage ;-)
  10. ( cd $builddir/groovy-${ver};
  11. for file in groovy*.jar bin/*.bat bin/*cygwin; do
  12. rm -f $file;
  13. done;
  14. )
  15. # Make scripts in bin executable.
  16. ( cd $builddir/groovy-${ver}; chmod 755 bin/* )
  17. # Copy the extracted archive to the current prefix location.
  18. # But make sure to preserve any possible links.
  19. ( cd $builddir/groovy-${ver}; tar -c * | tar -x -C $root/$prefix )
  20. # Prepare necessary environment variables.
  21. cat <<-EOT > $root/etc/profile.d/groovy
  22. GROOVY_HOME=/$prefix
  23. PATH=$bindir:/$prefix/bin:\$PATH
  24. export GROOVY_HOME PATH
  25. EOT
  26. }
  27. hook_add postmake 5 groovy_postmake