--- libmetis/CMakeLists.txt.orig	2016-04-12 14:52:48 UTC
+++ libmetis/CMakeLists.txt
@@ -5,6 +5,10 @@ file(GLOB metis_sources *.c)
 file(GLOB libmetis_h *.h)
 # Build libmetis.
 add_library(metis ${METIS_LIBRARY_TYPE} ${GKlib_sources} ${metis_sources})
+# Patch borrowed from math/metis/files
+if(SHARED)
+  set_target_properties(metis PROPERTIES SOVERSION ${SHLIB_MAJOR})
+endif()
 if(UNIX)
   target_link_libraries(metis m)
 endif()
