luajit: remove `inreplace` for `LUA_ROOT`
luajit: remove `inreplace` for `LUA_ROOT`

We can achieve the same effect of the `inreplace` without actually using
an `inreplace` by building luajit with `PREFIX=$HOMEBREW_PREFIX`. We
make sure it's installed to the right place by passing the real prefix
when we do `make install`.

This allows us to stop relying on a complicated and fragile `inreplace`.

Additionally, install the docs provided with the source tarball to avoid
any mismatches between the online documentation and the version we
actually install.

Closes #107290.

Signed-off-by: Sean Molenaar <2b250e3fea88cfef248b497ad5fc17f7dc435154@users.noreply.github.com>
Signed-off-by: BrewTestBot <8a898ee6867e4f2028e63d2a6319b2224641c06c@users.noreply.github.com>

Homebrew/homebrew-core,lemzwerg/homebrew-core,adam-moss/homebrew-core,chrisfinazzo/homebrew-core,makigumo/homebrew-core,sjackman/homebrew-core,nbari/homebrew-core,makigumo/homebrew-core,stgraber/homebrew-core,filcab/homebrew-core,adam-moss/homebrew-core,chrisfinazzo/homebrew-core,nandub/homebrew-core,lemzwerg/homebrew-core,nbari/homebrew-core,sjackman/homebrew-core,stgraber/homebrew-core,Homebrew/homebrew-core,nandub/homebrew-core,filcab/homebrew-core