summaryrefslogtreecommitdiff
path: root/sci-astronomy/astrometry/files/0.52-fix_installation_paths.patch
diff options
context:
space:
mode:
Diffstat (limited to 'sci-astronomy/astrometry/files/0.52-fix_installation_paths.patch')
-rw-r--r--sci-astronomy/astrometry/files/0.52-fix_installation_paths.patch50
1 files changed, 50 insertions, 0 deletions
diff --git a/sci-astronomy/astrometry/files/0.52-fix_installation_paths.patch b/sci-astronomy/astrometry/files/0.52-fix_installation_paths.patch
new file mode 100644
index 0000000..088dd46
--- /dev/null
+++ b/sci-astronomy/astrometry/files/0.52-fix_installation_paths.patch
@@ -0,0 +1,50 @@
+diff -wurN astrometry.net-0.52/Makefile astrometry.net-0.52.fix-paths/Makefile
+--- astrometry.net-0.52/Makefile 2015-03-06 21:26:45.000000000 +0100
++++ astrometry.net-0.52.fix-paths/Makefile 2015-03-11 19:30:45.513371808 +0100
+@@ -122,18 +122,18 @@
+ install-core:
+ mkdir -p '$(DATA_INSTALL_DIR)'
+ mkdir -p '$(BIN_INSTALL_DIR)'
+- mkdir -p '$(INSTALL_DIR)/doc'
++ mkdir -p '$(DOC_INSTALL_DIR)'
+ mkdir -p '$(INCLUDE_INSTALL_DIR)'
+ mkdir -p '$(LIB_INSTALL_DIR)'
+- mkdir -p '$(INSTALL_DIR)/examples'
++ mkdir -p '$(EXAMPLES_INSTALL_DIR)'
+ mkdir -p '$(PY_BASE_INSTALL_DIR)'
+- mkdir -p '$(INSTALL_DIR)/ups'
+- cp ups/astrometry_net.table-dist '$(INSTALL_DIR)/ups/astrometry_net.table'
+- cp ups/astrometry_net.cfg '$(INSTALL_DIR)/ups'
++ mkdir -p '$(UPS_INSTALL_DIR)'
++ cp ups/astrometry_net.table-dist '$(UPS_INSTALL_DIR)/astrometry_net.table'
++ cp ups/astrometry_net.cfg '$(UPS_INSTALL_DIR)/'
+ cp __init__.py '$(PY_BASE_INSTALL_DIR)'
+- cp CREDITS LICENSE README.md '$(INSTALL_DIR)/doc'
+- cp report.txt '$(INSTALL_DIR)/doc'
+- cp demo/* '$(INSTALL_DIR)/examples'
++ cp CREDITS LICENSE README.md '$(DOC_INSTALL_DIR)/'
++ cp report.txt '$(DOC_INSTALL_DIR)/'
++ cp demo/* '$(EXAMPLES_INSTALL_DIR)/'
+ $(MAKE) -C util install-core
+ $(MAKE) -C catalogs install
+ $(MAKE) -C libkd install
+diff -wurN astrometry.net-0.52/util/makefile.common astrometry.net-0.52.fix-paths/util/makefile.common
+--- astrometry.net-0.52/util/makefile.common 2015-03-06 21:26:45.000000000 +0100
++++ astrometry.net-0.52.fix-paths/util/makefile.common 2015-03-11 19:16:37.893728999 +0100
+@@ -22,16 +22,6 @@
+ # Put INSTALL_DIR in the environment of commands run by Make.
+ export INSTALL_DIR
+
+-# Installation subdirs
+-
+-PY_BASE_INSTALL_DIR := $(INSTALL_DIR)/lib/python/astrometry
+-INCLUDE_INSTALL_DIR := $(INSTALL_DIR)/include/astrometry
+-LIB_INSTALL_DIR := $(INSTALL_DIR)/lib
+-BIN_INSTALL_DIR := $(INSTALL_DIR)/bin
+-DATA_INSTALL_DIR := $(INSTALL_DIR)/data
+-PY_BASE_LINK_DIR := ../lib/python/astrometry
+-ETC_INSTALL_DIR ?= $(INSTALL_DIR)/etc
+-
+ # If your build system stages an install in one place (say, a temp
+ # dir) and then copies everything to the final install place, (eg,
+ # debian), set *_INSTALL_DIR to the staging place and *_FINAL_DIR to