On Nov 9, 2017, at 13:48, David Strubbe wrote:

> David Strubbe (dstrubbe) pushed a commit to branch master
> in repository macports-ports.
> 
> 
> https://github.com/macports/macports-ports/commit/56629ccf60547e60dd565a772473ff776b81a40a
> 
> The following commit(s) were added to refs/heads/master by this push:
> 
>      new 56629cc  quantum-espresso: Fix destroot phase by patching Makefile 
> for DESTDIR. Trying to replace --prefix in configure line does not work.
> 
>      new bab984c  Merge branch 'master' of 
> https://github.com/macports/macports-ports
> 
> 56629cc is described below
> 
> 
> commit 56629ccf60547e60dd565a772473ff776b81a40a
> 
> Author: David Strubbe <[email protected]>
> AuthorDate: Thu Nov 9 11:47:35 2017 -0800
> 
> 
>     quantum-espresso: Fix destroot phase by patching Makefile for DESTDIR. 
> Trying to replace --prefix in configure line does not work.

> +@@ -267,11 +272,11 @@
> + #########################################################
> + 
> + install : touch-dummy
> +-    @if test -d bin ; then mkdir -p $(PREFIX)/bin ; \
> ++    @if test -d bin ; then mkdir -p $(DESTDIR)/$(PREFIX)/bin ; \
> +     for x in `find * ! -path "test-suite/*" -name *.x -type f` ; do \
> +-            cp $$x $(PREFIX)/bin/ ; done ; \
> ++            cp $$x $(DESTDIR)/$(PREFIX)/bin/ ; done ; \
> +     fi
> +-    @echo 'Quantum ESPRESSO binaries installed in $(PREFIX)/bin'
> ++    @echo 'Quantum ESPRESSO binaries installed in $(DESTDIR)/$(PREFIX)/bin'
> + 
> + #########################################################
> + # Run test-suite for numerical regression testing


$(PREFIX) already begins with a slash so you should not put another one in 
front of it.

Reply via email to