Skip to content

Commit

Permalink
plplot: restore significant whitespace to patches
Browse files Browse the repository at this point in the history
  • Loading branch information
jacknagel committed May 22, 2015
1 parent 5137976 commit d4ff876
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Library/Formula/plplot.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ def install
end
end
end

__END__
--- a/cmake/modules/pkg-config.cmake
+++ b/cmake/modules/pkg-config.cmake
Expand All @@ -52,14 +53,14 @@ def install
@@ -94,7 +94,12 @@
set(_xprefix ${_prefix})
endif(FORCE_EXTERNAL_STATIC)

- _pkg_check_modules_internal(0 0 ${_prefix} "${_package}")
+ if(CMAKE_VERSION VERSION_LESS "3.1")
+ _pkg_check_modules_internal(0 0 ${_prefix} "${_package}")
+ else(CMAKE_VERSION VERSION_LESS "3.1")
+ _pkg_check_modules_internal(0 0 0 0 ${_prefix} "${_package}")
+ endif(CMAKE_VERSION VERSION_LESS "3.1")
+
+
if(${_prefix}_FOUND)
cmake_link_flags(${_link_FLAGS} "${${_xprefix}_LDFLAGS}")
# If libraries cannot be not found, then that is equivalent to whole
Expand Down Expand Up @@ -105,7 +106,7 @@ def install
if(GENERATE_PLPLOT_H_INC)
add_custom_target(
check_plplot_h.inc
- COMMAND
- COMMAND
- ${CMAKE_COMMAND} -E remove -f ${CMAKE_CURRENT_BINARY_DIR}/generated_plplot_h.inc
- COMMAND
- ${OCAML} ${CMAKE_CURRENT_SOURCE_DIR}/touchup.ml ${CMAKE_CURRENT_SOURCE_DIR}/plplot_h ${CMAKE_CURRENT_BINARY_DIR}/generated_plplot_h.inc
Expand Down

0 comments on commit d4ff876

Please sign in to comment.