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.

31 lines
740 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/grails
  6. set_confopt
  7. # Custom installation.
  8. grails_postmake() {
  9. # Removed unused garbage ;-)
  10. ( cd $builddir/grails-${ver};
  11. for file in build.xml bin/*.bat bin/cygrails; do
  12. rm -rf $file;
  13. done;
  14. )
  15. # Copy the extracted archive to the current prefix location.
  16. # But make sure to preserve any possible links.
  17. ( cd $builddir/grails-${ver}; tar -c * | tar -x -C $root/$prefix )
  18. # Prepare necessary environment variables.
  19. cat <<-EOT > $root/etc/profile.d/grails
  20. GRAILS_HOME=/$prefix
  21. PATH=$bindir:/$prefix/bin:\$PATH
  22. export GRAILS_HOME PATH
  23. EOT
  24. }
  25. hook_add postmake 5 grails_postmake