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.

48 lines
1.4 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../groovy/groovy.conf
  5. # Copyright (C) 2008 The OpenSDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This program is free software; you can redistribute it and/or modify
  10. # it under the terms of the GNU General Public License as published by
  11. # the Free Software Foundation; version 2 of the License. A copy of the
  12. # GNU General Public License can be found in the file COPYING.
  13. # --- SDE-COPYRIGHT-NOTE-END ---
  14. # Prevent executing normal make and install build steps.
  15. # This package has custom make and install.
  16. makeopt=
  17. makeinstopt=
  18. prefix=opt/groovy
  19. set_confopt
  20. # Custom installation.
  21. groovy_postmake() {
  22. # Removed unused garbage ;-)
  23. ( cd $builddir/groovy-${ver};
  24. for file in groovy*.jar bin/*.bat bin/*cygwin; do
  25. rm -f $file;
  26. done;
  27. )
  28. # Make scripts in bin executable.
  29. ( cd $builddir/groovy-${ver}; chmod 755 bin/* )
  30. # Copy the extracted archive to the current prefix location.
  31. # But make sure to preserve any possible links.
  32. ( cd $builddir/groovy-${ver}; tar -c * | tar -x -C $root/$prefix )
  33. # Prepare necessary environment variables.
  34. cat <<-EOT > $root/etc/profile.d/groovy
  35. GROOVY_HOME=/$prefix
  36. PATH=$bindir:/$prefix/bin:\$PATH
  37. export GROOVY_HOME PATH
  38. EOT
  39. }
  40. hook_add postmake 5 groovy_postmake