From 377ffe17802d273424871f2c9969e079ec493abf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20F=C3=B6rster?= Date: Wed, 1 Feb 2017 17:24:37 +0100 Subject: [PATCH] [dev-games/StormLib] version bump, static-libs USE does now build static *only* --- ...rmLib-9.20.ebuild => StormLib-9.21.ebuild} | 5 +++-- .../files/StormLib-fix-build-system.patch | 22 +++++++++++++++++++ .../StormLib/files/StormLib-multilib.patch | 19 ---------------- 3 files changed, 25 insertions(+), 21 deletions(-) rename dev-games/StormLib/{StormLib-9.20.ebuild => StormLib-9.21.ebuild} (83%) create mode 100644 dev-games/StormLib/files/StormLib-fix-build-system.patch delete mode 100644 dev-games/StormLib/files/StormLib-multilib.patch diff --git a/dev-games/StormLib/StormLib-9.20.ebuild b/dev-games/StormLib/StormLib-9.21.ebuild similarity index 83% rename from dev-games/StormLib/StormLib-9.20.ebuild rename to dev-games/StormLib/StormLib-9.21.ebuild index dbf1ba8..53ba49d 100644 --- a/dev-games/StormLib/StormLib-9.20.ebuild +++ b/dev-games/StormLib/StormLib-9.21.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2016 Gentoo Foundation +# Copyright 1999-2017 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Id$ @@ -23,11 +23,12 @@ DEPEND="dev-libs/libtomcrypt[static-libs?,${MULTILIB_USEDEP}] RDEPEND="${DEPEND}" PATCHES=( - "${FILESDIR}"/${PN}-multilib.patch + "${FILESDIR}"/${PN}-fix-build-system.patch ) multilib_src_configure() { local mycmakeargs=( + -DBUILD_SHARED_LIBS="$(usex static-libs no yes)" -DWITH_LIBTOMCRYPT=ON) cmake-utils_src_configure diff --git a/dev-games/StormLib/files/StormLib-fix-build-system.patch b/dev-games/StormLib/files/StormLib-fix-build-system.patch new file mode 100644 index 0000000..de3010f --- /dev/null +++ b/dev-games/StormLib/files/StormLib-fix-build-system.patch @@ -0,0 +1,22 @@ +--- a/CMakeLists.txt 2017-02-01 16:58:20.420715822 +0100 ++++ b/CMakeLists.txt 2017-02-01 17:00:00.298138266 +0100 +@@ -302,7 +302,7 @@ + endif() + if(UNIX) + SET(VERSION_MAJOR "9") +- SET(VERSION_MINOR "20") ++ SET(VERSION_MINOR "21") + SET(VERSION_PATCH "0") + SET(VERSION_STRING "${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH}") + set_target_properties(${LIBRARY_NAME} PROPERTIES VERSION "${VERSION_STRING}") +@@ -317,8 +317,8 @@ + + install(TARGETS ${LIBRARY_NAME} + RUNTIME DESTINATION bin +- LIBRARY DESTINATION lib +- ARCHIVE DESTINATION lib ++ LIBRARY DESTINATION lib${LIB_SUFFIX} ++ ARCHIVE DESTINATION lib${LIB_SUFFIX} + FRAMEWORK DESTINATION /Library/Frameworks + PUBLIC_HEADER DESTINATION include + INCLUDES DESTINATION include) diff --git a/dev-games/StormLib/files/StormLib-multilib.patch b/dev-games/StormLib/files/StormLib-multilib.patch deleted file mode 100644 index 3e73b7c..0000000 --- a/dev-games/StormLib/files/StormLib-multilib.patch +++ /dev/null @@ -1,19 +0,0 @@ ---- a/CMakeLists.txt -+++ b/CMakeLists.txt -@@ -281,7 +281,7 @@ - add_library(storm_static STATIC ${SRC_FILES} ${SRC_ADDITIONAL_FILES}) - target_link_libraries(storm_static ${LINK_LIBS}) - set_target_properties(storm_static PROPERTIES OUTPUT_NAME storm) -- install(TARGETS storm_static RUNTIME DESTINATION bin LIBRARY DESTINATION lib ARCHIVE DESTINATION lib FRAMEWORK DESTINATION /Library/Frameworks) -+ install(TARGETS storm_static RUNTIME DESTINATION bin LIBRARY DESTINATION lib${LIB_SUFFIX} ARCHIVE DESTINATION lib${LIB_SUFFIX} FRAMEWORK DESTINATION /Library/Frameworks) - endif() - - if(APPLE) -@@ -300,6 +300,6 @@ - set_target_properties(storm PROPERTIES OUTPUT_NAME StormLib) - endif() - --install(TARGETS storm RUNTIME DESTINATION bin LIBRARY DESTINATION lib ARCHIVE DESTINATION lib FRAMEWORK DESTINATION /Library/Frameworks) -+install(TARGETS storm RUNTIME DESTINATION bin LIBRARY DESTINATION lib${LIB_SUFFIX} ARCHIVE DESTINATION lib${LIB_SUFFIX} FRAMEWORK DESTINATION /Library/Frameworks) - install(FILES src/StormLib.h src/StormPort.h DESTINATION include) -