So I think I am finally tracking down what the issue is with this.
Here is the important lines from the Formula
no_python = ((ARGV.include? '--no-python') ? '--no-python' : '')
system "./acprep", no_python, "-j#{ENV.make_jobs}", "opt", "make", "--",
"--prefix=#{prefix}"
With no_python not being called that means there is a double space in
==> ./acprep -j2 opt make -- --prefix=/usr/local/Cellar/ledger/HEAD
If i declare --python or just remove no_python from the system call it no
longer throws that error.
Now it is showing the following.
==> ./acprep --python -j2 opt make -- --prefix=/usr/local/Cellar/ledger/HEAD
./acprep --python -j2 opt make -- --prefix=/usr/local/Cellar/ledger/HEAD
acprep: INFO: Invoking primary phase: make
acprep: INFO: Executing phase: make
acprep: INFO: Executing phase: config
acprep: INFO: Executing phase: submodule
acprep: INFO: Executing phase: configure
acprep: INFO: System type is => Darwin
acprep: INFO: Setting up build flavor => opt
acprep: INFO: Making directory:
/private/tmp/homebrew-ledger-HEAD-b9Eb/build/homebrew-ledger-HEAD-b9Eb/opt
CMake Error: The source directory
"/tmp/homebrew-ledger-HEAD-b9Eb/build/homebrew-ledger-HEAD-b9Eb/opt/--prefix=/usr/local/Cellar/ledger/HEAD"
does not exist.
Specify --help for usage, or press the help button on the CMake GUI.
acprep: ERROR: Execution failed: cmake
/private/tmp/homebrew-ledger-HEAD-b9Eb
-DCMAKE_CXX_COMPILER=/usr/bin/clang++ -DCMAKE_CXX_FLAGS=-Os -w -pipe
-march=native -Qunused-arguments -mmacosx-version-min=10.8
-DCMAKE_EXE_LINKER_FLAGS=-L/usr/local/Cellar/gettext/0.18.1.1/lib
-L/usr/local/lib -L/usr/local/lib -DUSE_PYTHON=1 -DNO_ASSERTS=1
--prefix=/usr/local/Cellar/ledger/HEAD
==> Exit Status: 1
>From my understanding it should be trying to build it in
/Library/Caches/Homebrew/ledger--git/
Any thoughts on why it is doing this.
On Tuesday, July 17, 2012 1:37:05 PM UTC-4, John Wiegley wrote:
>
> >>>>> Alejandro Gaviria <[email protected] <javascript:>> writes:
>
> > ==> ./acprep -j4 opt make -- --prefix=/usr/local/Cellar/ledger/HEAD
> > acprep: ERROR: Unknown build phase:
>
> I don't see anything wrong with that acprep invocation. It's odd that the
> unknown build phase is blank.
>
> John
>