From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 499421396D9 for ; Sat, 14 Oct 2017 07:57:58 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 91EFF2BC003; Sat, 14 Oct 2017 07:57:57 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 4AD0F2BC003 for ; Sat, 14 Oct 2017 07:57:57 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id E6B3033BDE1 for ; Sat, 14 Oct 2017 07:57:55 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 8BEF330F for ; Sat, 14 Oct 2017 07:57:51 +0000 (UTC) From: "Andreas Sturmlechner" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andreas Sturmlechner" Message-ID: <1507967727.3d87a84e9efadd125720c7caf8b5045948353547.asturm@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: media-gfx/exiv2/, media-gfx/exiv2/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: media-gfx/exiv2/exiv2-0.26_p20171013.ebuild media-gfx/exiv2/files/exiv2-0.26_p20171013-cmake.patch X-VCS-Directories: media-gfx/exiv2/ media-gfx/exiv2/files/ X-VCS-Committer: asturm X-VCS-Committer-Name: Andreas Sturmlechner X-VCS-Revision: 3d87a84e9efadd125720c7caf8b5045948353547 X-VCS-Branch: master Date: Sat, 14 Oct 2017 07:57:51 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: d25c1ca8-cd4f-4237-83f1-7b8f5645141e X-Archives-Hash: a54c9903e9a92f225c093bbeeab3f853 commit: 3d87a84e9efadd125720c7caf8b5045948353547 Author: Andreas Sturmlechner gentoo org> AuthorDate: Sat Oct 14 07:55:27 2017 +0000 Commit: Andreas Sturmlechner gentoo org> CommitDate: Sat Oct 14 07:55:27 2017 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3d87a84e media-gfx/exiv2: Fix !multilib_is_native_abi build Gentoo-bug: 634178 Package-Manager: Portage-2.3.11, Repoman-2.3.3 media-gfx/exiv2/exiv2-0.26_p20171013.ebuild | 2 + .../exiv2/files/exiv2-0.26_p20171013-cmake.patch | 47 ++++++++++++++++++++++ 2 files changed, 49 insertions(+) diff --git a/media-gfx/exiv2/exiv2-0.26_p20171013.ebuild b/media-gfx/exiv2/exiv2-0.26_p20171013.ebuild index 92035195fe4..9aa6302ffd0 100644 --- a/media-gfx/exiv2/exiv2-0.26_p20171013.ebuild +++ b/media-gfx/exiv2/exiv2-0.26_p20171013.ebuild @@ -41,6 +41,8 @@ DEPEND="${RDEPEND} DOCS=( README.md doc/ChangeLog doc/cmd.txt ) +PATCHES=( "${FILESDIR}/${P}-cmake.patch" ) + pkg_setup() { use doc && python-any-r1_pkg_setup } diff --git a/media-gfx/exiv2/files/exiv2-0.26_p20171013-cmake.patch b/media-gfx/exiv2/files/exiv2-0.26_p20171013-cmake.patch new file mode 100644 index 00000000000..c10f125415b --- /dev/null +++ b/media-gfx/exiv2/files/exiv2-0.26_p20171013-cmake.patch @@ -0,0 +1,47 @@ +From 57883ee664260f5a1b382575e7477ad34c86ce7d Mon Sep 17 00:00:00 2001 +From: Andreas Sturmlechner +Date: Fri, 13 Oct 2017 18:54:11 +0200 +Subject: [PATCH] Fix build with EXIV2_BUILD_EXIV2_COMMAND=OFF + +--- + src/CMakeLists.txt | 17 ++++++++++++----- + 1 file changed, 12 insertions(+), 5 deletions(-) + +diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt +index fe49a0a6..f75cbf1b 100644 +--- a/src/CMakeLists.txt ++++ b/src/CMakeLists.txt +@@ -291,21 +291,28 @@ if(EXIV2_BUILD_EXIV2_COMMAND) + if ( BUILD_SHARED_LIBS ) + target_compile_definitions(exiv2 PRIVATE EXV_HAVE_DLL ) + endif() ++ # modify source lists to suit environment ++ ++ # TODO This should not be needed here! we need to fix the previous TODO ++ target_include_directories(exiv2 PRIVATE ${CMAKE_SOURCE_DIR}/include/) ++ ++ if(NOT EXV_HAVE_TIMEGM ) ++ target_sources(exiv2 PRIVATE localtime.c) ++ endif() ++ ++ if (MSVC) ++ target_sources(exiv2 PRIVATE getopt_win32.c) ++ endif() + install(TARGETS exiv2 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}) + endif() + +-# TODO This should not be needed here! we need to fix the previous TODO +-target_include_directories(exiv2 PRIVATE ${CMAKE_SOURCE_DIR}/include/) +- + # modify source lists to suit environment + if(NOT EXV_HAVE_TIMEGM ) + target_sources(exiv2lib PRIVATE localtime.c) +- target_sources(exiv2 PRIVATE localtime.c) + endif() + + if (MSVC) + target_sources(exiv2lib PRIVATE getopt_win32.c) +- target_sources(exiv2 PRIVATE getopt_win32.c) + endif() + + # ******************************************************************************