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 3C3F2138334 for ; Wed, 16 Jan 2019 21:00:29 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 73A25E0AD6; Wed, 16 Jan 2019 21:00:28 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (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 31B90E0AD6 for ; Wed, 16 Jan 2019 21:00:28 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (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 A349E335D3B for ; Wed, 16 Jan 2019 21:00:26 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 3537A266 for ; Wed, 16 Jan 2019 21:00:24 +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: <1547672411.c6c1f1cbd103caf0cceaa21bb4af2e92b4f195b6.asturm@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/gexiv2/files/, media-libs/gexiv2/ X-VCS-Repository: repo/gentoo X-VCS-Files: media-libs/gexiv2/files/gexiv2-0.10.10-vala-fixup.patch media-libs/gexiv2/gexiv2-0.10.10-r1.ebuild media-libs/gexiv2/gexiv2-0.10.10.ebuild media-libs/gexiv2/gexiv2-9999.ebuild X-VCS-Directories: media-libs/gexiv2/ media-libs/gexiv2/files/ X-VCS-Committer: asturm X-VCS-Committer-Name: Andreas Sturmlechner X-VCS-Revision: c6c1f1cbd103caf0cceaa21bb4af2e92b4f195b6 X-VCS-Branch: master Date: Wed, 16 Jan 2019 21:00:24 +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-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 53a75954-ffc0-49de-a6a4-9040f77dec34 X-Archives-Hash: 2249a8e2f95c9fc4bfd2284ef5974927 commit: c6c1f1cbd103caf0cceaa21bb4af2e92b4f195b6 Author: Marty E. Plummer startmail com> AuthorDate: Wed Jan 16 20:19:56 2019 +0000 Commit: Andreas Sturmlechner gentoo org> CommitDate: Wed Jan 16 21:00:11 2019 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c6c1f1cb media-libs/gexiv2: fix vapi file generation and install Bug: https://bugs.gentoo.org/675294 Package-Manager: Portage-2.3.55, Repoman-2.3.12 Signed-off-by: Marty E. Plummer startmail.com> Closes: https://github.com/gentoo/gentoo/pull/10850 Signed-off-by: Andreas Sturmlechner gentoo.org> .../gexiv2/files/gexiv2-0.10.10-vala-fixup.patch | 49 ++++++++++++++++++++++ ...iv2-0.10.10.ebuild => gexiv2-0.10.10-r1.ebuild} | 1 + media-libs/gexiv2/gexiv2-9999.ebuild | 4 +- 3 files changed, 52 insertions(+), 2 deletions(-) diff --git a/media-libs/gexiv2/files/gexiv2-0.10.10-vala-fixup.patch b/media-libs/gexiv2/files/gexiv2-0.10.10-vala-fixup.patch new file mode 100644 index 00000000000..daf72ef3a85 --- /dev/null +++ b/media-libs/gexiv2/files/gexiv2-0.10.10-vala-fixup.patch @@ -0,0 +1,49 @@ +From: "Marty E. Plummer" +Date: Sun, 13 Jan 2019 13:33:32 -0600 +Subject: [PATCH] meson.build: improve handling of vapi + +As it currently stands the vapi files are not generatable on linux +distros which do not provide unversioned valac/vapigen. Use instead +meson's add_languages function to handle detection of existing vala +toolchain, which will check the VALAC and VAPIGEN env vars. + +Signed-off-by: Marty E. Plummer + +--- a/meson.build ++++ b/meson.build +@@ -6,11 +6,9 @@ exiv2 = dependency('exiv2', version : '> + gobject = dependency('gobject-2.0', version : '>= 2.38.0') + + gir = find_program('g-ir-scanner', required: false) +-vapigen = find_program('vapigen', required: false) +-vala = find_program('valac', required: false) + + introspection_available = gir.found() and get_option('introspection') +-vapi_available = introspection_available and vapigen.found() and get_option('vapi') ++vapi_available = introspection_available and add_languages('vala', required: false) and get_option('vapi') + + subdir('gexiv2') + +--- a/test/meson.build ++++ b/test/meson.build +@@ -17,15 +17,11 @@ regression_test = executable('gexiv2-reg + test('regression', regression_test, env : test_env) + + if vapi_available +- valac = find_program('valac') +- if valac.found() +- add_languages('vala') +- executable('gexiv2-dump', +- 'gexiv2-dump.vala', +- include_directories : include_directories('..'), +- dependencies : [gobject, vapi], +- link_with : gexiv2) +- endif ++ executable('gexiv2-dump', ++ 'gexiv2-dump.vala', ++ include_directories : include_directories('..'), ++ dependencies : [gobject, vapi], ++ link_with : gexiv2) + endif + + if python2_available diff --git a/media-libs/gexiv2/gexiv2-0.10.10.ebuild b/media-libs/gexiv2/gexiv2-0.10.10-r1.ebuild similarity index 97% rename from media-libs/gexiv2/gexiv2-0.10.10.ebuild rename to media-libs/gexiv2/gexiv2-0.10.10-r1.ebuild index ad4135f9b2a..d0fea160c64 100644 --- a/media-libs/gexiv2/gexiv2-0.10.10.ebuild +++ b/media-libs/gexiv2/gexiv2-0.10.10-r1.ebuild @@ -48,6 +48,7 @@ PATCHES=( # renames meson options to current git HEAD's names, current naming scheme # is rather awkward "${FILESDIR}"/${PN}-0.10.10-meson-fixup.patch + "${FILESDIR}"/${PN}-0.10.10-vala-fixup.patch ) src_prepare() { diff --git a/media-libs/gexiv2/gexiv2-9999.ebuild b/media-libs/gexiv2/gexiv2-9999.ebuild index 2547c6a9ca9..1c6c54fc4d1 100644 --- a/media-libs/gexiv2/gexiv2-9999.ebuild +++ b/media-libs/gexiv2/gexiv2-9999.ebuild @@ -57,8 +57,8 @@ src_configure() { $(meson_use gtk-doc gtk_doc) # prevents installation of python modules (uses install_data from meson # which does not optimize the modules - -Dpython2-girdir=no - -Dpython3-girdir=no + -Dpython2_girdir=no + -Dpython3_girdir=no ) meson_src_configure }