ports/astro/geographiclib/files/patch-python_geographiclib_CMakeLists.txt
Kyle Evans 3424b81888 Update astro/geographiclib to 1.4.9
Highlights:
- Update from 1.4.6 to 1.4.9
- MAGNETIC_EMM2017 model addd
- Switched to CMake for build

head/tail usage must be patched to avoid use of --lines; work is in progress
to eventually grow this long-option alternative to -n so that such patching
isn't necessary at some point in the future.

PR:		218158
Approved by:	ak (ports), Tatsuki Makino (maintainer)
2018-02-03 15:42:08 +00:00

15 lines
535 B
Text

--- python/geographiclib/CMakeLists.txt.orig 2017-10-05 10:11:24 UTC
+++ python/geographiclib/CMakeLists.txt
@@ -4,9 +4,10 @@
file (GLOB PYTHON_FILES [A-Za-z_]*.py)
file (GLOB TEST_FILES test/[A-Za-z_]*.py)
if (COMMON_INSTALL_PATH)
- set (INSTALL_PYTHON_DIR "lib${LIB_SUFFIX}/python/site-packages")
+ set (INSTALL_PYTHON_DIR "lib${LIB_SUFFIX}/python/site-packages"
+ CACHE STRING "")
else ()
- set (INSTALL_PYTHON_DIR "python")
+ set (INSTALL_PYTHON_DIR "python" CACHE STRING "")
endif ()
install (FILES ${PYTHON_FILES}