spack/var/spack/repos/builtin/packages/mummer/scripts-Makefile.patch
George Hartzell d0a81fda30 Correct installation step for mummer (and dependency) (#4293)
* Trailing whitespace cleanup

* Handcraft an install process for mummer (grumble)

Mummer punts on an installation step, they just build in and run from
the same directory.

Mummer also has various hardcoded paths built into it that allow it to
find other executables that it needs as well as its Perl library.

This updates the package to deal with this approach.

It patches the Makefile and scripts/Makefile so that the correct info
is fed to sed when it munges the perl scripts.

The install step is now finer grained and puts things where mummer
relatively wants to find them.

* Add perl dependency

* perl should be build/run dependency

* Fix whitespace

* Delete stray u at top of file
2017-05-23 16:37:33 -05:00

75 lines
2.9 KiB
Diff

--- a/scripts/Makefile 2011-12-16 18:49:26.000000000 -0800
+++ b/scripts/Makefile 2017-05-16 16:05:48.697853000 -0700
@@ -37,56 +37,56 @@
#-- not so PHONY rules --#
exact-tandems: exact-tandems.csh
$(SED) -e 's?__CSH_PATH?$(CSH)?g' \
- -e 's?__BIN_DIR?$(BIN_DIR)?g' \
- -e 's?__SCRIPT_DIR?$(SCRIPT_DIR)?g' \
+ -e 's?__BIN_DIR?$(INSTALL_BIN_DIR)?g' \
+ -e 's?__SCRIPT_DIR?$(INSTALL_SCRIPT_DIR)?g' \
exact-tandems.csh > $(BIN_DIR)/exact-tandems
chmod 755 $(BIN_DIR)/exact-tandems
mapview: mapview.pl
$(SED) -e 's?__PERL_PATH?$(PERL)?g' \
- -e 's?__SCRIPT_DIR?$(SCRIPT_DIR)?g' \
+ -e 's?__SCRIPT_DIR?$(INSTALL_SCRIPT_DIR)?g' \
mapview.pl > $(BIN_DIR)/mapview
chmod 755 $(BIN_DIR)/mapview
mummerplot: mummerplot.pl Foundation.pm
$(SED) -e 's?__PERL_PATH?$(PERL)?g' \
- -e 's?__SCRIPT_DIR?$(SCRIPT_DIR)?g' \
- -e 's?__BIN_DIR?$(BIN_DIR)?g' \
+ -e 's?__SCRIPT_DIR?$(INSTALL_SCRIPT_DIR)?g' \
+ -e 's?__BIN_DIR?$(INSTALL_BIN_DIR)?g' \
mummerplot.pl > $(BIN_DIR)/mummerplot
chmod 755 $(BIN_DIR)/mummerplot
dnadiff: dnadiff.pl Foundation.pm
$(SED) -e 's?__PERL_PATH?$(PERL)?g' \
- -e 's?__SCRIPT_DIR?$(SCRIPT_DIR)?g' \
- -e 's?__BIN_DIR?$(BIN_DIR)?g' \
+ -e 's?__SCRIPT_DIR?$(INSTALL_SCRIPT_DIR)?g' \
+ -e 's?__BIN_DIR?$(INSTALL_BIN_DIR)?g' \
dnadiff.pl > $(BIN_DIR)/dnadiff
chmod 755 $(BIN_DIR)/dnadiff
nucmer: nucmer.pl Foundation.pm
$(SED) -e 's?__PERL_PATH?$(PERL)?g' \
- -e 's?__SCRIPT_DIR?$(SCRIPT_DIR)?g' \
- -e 's?__AUX_BIN_DIR?$(AUX_BIN_DIR)?g' \
- -e 's?__BIN_DIR?$(BIN_DIR)?g' \
+ -e 's?__SCRIPT_DIR?$(INSTALL_SCRIPT_DIR)?g' \
+ -e 's?__AUX_BIN_DIR?$(INSTALL_AUX_BIN_DIR)?g' \
+ -e 's?__BIN_DIR?$(INSTALL_BIN_DIR)?g' \
nucmer.pl > $(BIN_DIR)/nucmer
chmod 755 $(BIN_DIR)/nucmer
promer: promer.pl Foundation.pm
$(SED) -e 's?__PERL_PATH?$(PERL)?g' \
- -e 's?__SCRIPT_DIR?$(SCRIPT_DIR)?g' \
- -e 's?__AUX_BIN_DIR?$(AUX_BIN_DIR)?g' \
- -e 's?__BIN_DIR?$(BIN_DIR)?g' \
+ -e 's?__SCRIPT_DIR?$(INSTALL_SCRIPT_DIR)?g' \
+ -e 's?__AUX_BIN_DIR?$(INSTALL_AUX_BIN_DIR)?g' \
+ -e 's?__BIN_DIR?$(INSTALL_BIN_DIR)?g' \
promer.pl > $(BIN_DIR)/promer
chmod 755 $(BIN_DIR)/promer
run-mummer1: run-mummer1.csh
$(SED) -e 's?__CSH_PATH?$(CSH)?g' \
- -e 's?__BIN_DIR?$(BIN_DIR)?g' \
+ -e 's?__BIN_DIR?$(INSTALL_BIN_DIR)?g' \
run-mummer1.csh > $(BIN_DIR)/run-mummer1
chmod 755 $(BIN_DIR)/run-mummer1
run-mummer3: run-mummer3.csh
$(SED) -e 's?__CSH_PATH?$(CSH)?g' \
- -e 's?__BIN_DIR?$(BIN_DIR)?g' \
+ -e 's?__BIN_DIR?$(INSTALL_BIN_DIR)?g' \
run-mummer3.csh > $(BIN_DIR)/run-mummer3
chmod 755 $(BIN_DIR)/run-mummer3