[racket-dev] Building without docs

From: Noel Welsh (noelwelsh at gmail.com)
Date: Tue Jan 18 11:03:59 EST 2011

For posterity, this works:

On Mon, Jan 17, 2011 at 3:12 PM, Robby Findler
<robby at eecs.northwestern.edu> wrote:
> You can also set PLT_SETUP_OPTIONS to "-D" and then make install will
> avoid building the docs.

This does not:

> On Mon, Jan 17, 2011 at 9:02 AM, Sam Tobin-Hochstadt <samth at ccs.neu.edu> wrote:
>> % make
>> % make plain-install
>> % raco setup -D

as make plain-install only creates racket.

Below is a Chef recipe for building Racket. As some point this will
appear on Github.

N.


package "g++"

# Fetch Racket tarball
remote_file "/usr/local/racket-textual-5.0.2-src-unix.tgz" do
  source "http://download.racket-lang.org/installers/recent/racket-textual/racket-textual-5.0.2-src-unix.tgz"
  mode "0644"
end

directory "/usr/local/racket-textual-5.0.2" do
  mode "0755"
  action :create
end

script "install_racket-textual-5.0.2" do
  interpreter "bash"
  cwd "/usr/local"
#  user "kahu"
  code <<-EOH
  pwd
  ls
  tar zxf racket-textual-5.0.2-src-unix.tgz
  cd racket-textual-5.0.2/src
  mkdir build
  cd build
  pwd
  export PLT_SETUP_OPTIONS=-D
  ../configure
  make
  make install
  EOH
end

file "/usr/local/racket-textual-5.0.2-src-unix.tgz" do
  action :delete
end

directory "/usr/local/racket-textual-5.0.2" do
#  owner "kahu"
#  group "kahu"
  mode "0755"
end

link "/usr/local/plt" do
  to "/usr/local/racket-textual-5.0.2"
end


Posted on the dev mailing list.