net-misc/i2pd: fix static build #591334
authorAlexey Korepanov <kaikaikai@yandex.ru>
Tue, 16 Aug 2016 15:28:03 +0000 (16:28 +0100)
committerAnthony G. Basile <blueness@gentoo.org>
Tue, 16 Aug 2016 23:37:46 +0000 (19:37 -0400)
net-misc/i2pd/files/i2pd-2.9.0-static.patch [new file with mode: 0644]
net-misc/i2pd/i2pd-2.9.0-r1.ebuild [moved from net-misc/i2pd/i2pd-2.9.0.ebuild with 95% similarity]

diff --git a/net-misc/i2pd/files/i2pd-2.9.0-static.patch b/net-misc/i2pd/files/i2pd-2.9.0-static.patch
new file mode 100644 (file)
index 0000000..c525db7
--- /dev/null
@@ -0,0 +1,25 @@
+From 2e74d91ddc1a776692dd7398e0126a6bd1f2a92a Mon Sep 17 00:00:00 2001
+From: Jeff Becker <ampernand@gmail.com>
+Date: Tue, 16 Aug 2016 10:25:56 -0400
+Subject: [PATCH] try fixing https://github.com/PurpleI2P/i2pd/issues/612
+
+---
+ build/CMakeLists.txt | 5 ++++-
+ 1 file changed, 4 insertions(+), 1 deletion(-)
+
+diff --git a/build/CMakeLists.txt b/build/CMakeLists.txt
+index 7f9b8c6..99d6a5a 100644
+--- a/build/CMakeLists.txt
++++ b/build/CMakeLists.txt
+@@ -369,7 +369,10 @@ if (WITH_BINARY)
+   if (MSYS OR MINGW)
+     set (MINGW_EXTRA -lws2_32 -lmswsock -liphlpapi )
+   endif ()
+-  target_link_libraries( "${PROJECT_NAME}" libi2pd i2pdclient ${DL_LIB} ${Boost_LIBRARIES} ${OPENSSL_LIBRARIES} ${ZLIB_LIBRARY} ${CMAKE_THREAD_LIBS_INIT} ${MINGW_EXTRA} )
++  if (WITH_STATIC)
++    set(DL_LIB ${CMAKE_DL_LIBS})
++  endif()
++  target_link_libraries( "${PROJECT_NAME}" libi2pd i2pdclient ${DL_LIB} ${Boost_LIBRARIES} ${OPENSSL_LIBRARIES} ${ZLIB_LIBRARY} ${CMAKE_THREAD_LIBS_INIT} ${MINGW_EXTRA} ${DL_LIB})
+ 
+   install(TARGETS "${PROJECT_NAME}" RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} COMPONENT Runtime)
+   set (APPS "\${CMAKE_INSTALL_PREFIX}/bin/${PROJECT_NAME}${CMAKE_EXECUTABLE_SUFFIX}")
similarity index 95%
rename from net-misc/i2pd/i2pd-2.9.0.ebuild
rename to net-misc/i2pd/i2pd-2.9.0-r1.ebuild
index 27c574b7929b16eb36037ed495f74f74dcbf8429..a864fb540317504ae0670943b67b4a413e83bee1 100644 (file)
@@ -35,7 +35,8 @@ CMAKE_USE_DIR="${S}/build"
 
 DOCS=( README.md docs/i2pd.conf debian/tunnels.conf debian/subscriptions.txt )
 
-PATCHES=( "${FILESDIR}/${PN}-2.5.1-fix_installed_components.patch" )
+PATCHES=( "${FILESDIR}/i2pd-2.9.0-static.patch" \
+       "${FILESDIR}/${PN}-2.5.1-fix_installed_components.patch" )
 
 src_configure() {
        mycmakeargs=(