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.

45 lines
1.3 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../grails/grails.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/grails
  19. set_confopt
  20. # Custom installation.
  21. grails_postmake() {
  22. # Removed unused garbage ;-)
  23. ( cd $builddir/grails-${ver};
  24. for file in build.xml bin/*.bat bin/cygrails; do
  25. rm -rf $file;
  26. done;
  27. )
  28. # Copy the extracted archive to the current prefix location.
  29. # But make sure to preserve any possible links.
  30. ( cd $builddir/grails-${ver}; tar -c * | tar -x -C $root/$prefix )
  31. # Prepare necessary environment variables.
  32. cat <<-EOT > $root/etc/profile.d/grails
  33. GRAILS_HOME=/$prefix
  34. PATH=$bindir:/$prefix/bin:\$PATH
  35. export GRAILS_HOME PATH
  36. EOT
  37. }
  38. hook_add postmake 5 grails_postmake