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 8F4B8138334 for ; Tue, 7 Aug 2018 23:10:50 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 599A3E07D0; Tue, 7 Aug 2018 23:10:49 +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 05C1EE07C9 for ; Tue, 7 Aug 2018 23:10:49 +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 EC74D335C94 for ; Tue, 7 Aug 2018 23:10:46 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id E6BA1396 for ; Tue, 7 Aug 2018 23:10:44 +0000 (UTC) From: "Richard Farina" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Richard Farina" Message-ID: <1533683433.51c9c9b82e3b44113d39097189bd4f36cc081fc7.zerochaos@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-libs/libbtbb/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-libs/libbtbb/Manifest net-libs/libbtbb/libbtbb-2018.08.1.ebuild X-VCS-Directories: net-libs/libbtbb/ X-VCS-Committer: zerochaos X-VCS-Committer-Name: Richard Farina X-VCS-Revision: 51c9c9b82e3b44113d39097189bd4f36cc081fc7 X-VCS-Branch: master Date: Tue, 7 Aug 2018 23:10:44 +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: 2ba983d7-a923-4309-a5ea-e58dda3a76d5 X-Archives-Hash: ab3a769d52e5122a259b22a0a5441437 commit: 51c9c9b82e3b44113d39097189bd4f36cc081fc7 Author: Zero_Chaos gentoo org> AuthorDate: Tue Aug 7 23:09:16 2018 +0000 Commit: Richard Farina gentoo org> CommitDate: Tue Aug 7 23:10:33 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=51c9c9b8 net-libs/libbtbb: bump Package-Manager: Portage-2.3.44, Repoman-2.3.10 net-libs/libbtbb/Manifest | 1 + net-libs/libbtbb/libbtbb-2018.08.1.ebuild | 156 ++++++++++++++++++++++++++++++ 2 files changed, 157 insertions(+) diff --git a/net-libs/libbtbb/Manifest b/net-libs/libbtbb/Manifest index faa70bb24b2..e4328814588 100644 --- a/net-libs/libbtbb/Manifest +++ b/net-libs/libbtbb/Manifest @@ -1 +1,2 @@ DIST libbtbb-2017-03-R2.tar.gz 303689 BLAKE2B d36cf5329fb31cd50f64e3a9b625ebca8bf198794073480baa4f64935f4bef183e4c11f0844cd31df943da98c778bdea807fbd91676c23a3a2f830af5e7a185f SHA512 bb7b58a33198fd64fba5f0254cfbb71120c70476d594a7aaf82c77f770d1a6e89b4571f42d3d15c1d93d5246c9145c33ba8724a5ee5ad84e96f748d9f32275b5 +DIST libbtbb-2018-08-R1.tar.gz 310542 BLAKE2B 0ae945c530c476caadfd7786f34eca4d7efd71c2f27a37c7b0242a1d3fba80e985c76a0635a354184aa80039ca8ac11f59778f550cbe9bb7e8a535723396cab0 SHA512 63fa995b51f2246b6f27d8aa1bd7a5c0276414df9d13d432d9a1a7ad78ac06e4c67fe3dcf00cf1634f11d6e999f13633591a3347d4e533fff4f131f8deee922e diff --git a/net-libs/libbtbb/libbtbb-2018.08.1.ebuild b/net-libs/libbtbb/libbtbb-2018.08.1.ebuild new file mode 100644 index 00000000000..998113cc402 --- /dev/null +++ b/net-libs/libbtbb/libbtbb-2018.08.1.ebuild @@ -0,0 +1,156 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python2_7 ) +DISTUTILS_OPTIONAL=1 + +inherit multilib cmake-utils python-single-r1 + +DESCRIPTION="A library to decode Bluetooth baseband packets" +HOMEPAGE="http://libbtbb.sourceforge.net/" + +if [[ ${PV} == "9999" ]] ; then + EGIT_REPO_URI="https://github.com/greatscottgadgets/libbtbb.git" + inherit git-r3 + KEYWORDS="" +else + MY_PV=${PV/\./-} + MY_PV=${MY_PV/./-R} + S=${WORKDIR}/${PN}-${MY_PV} + SRC_URI="https://github.com/greatscottgadgets/${PN}/archive/${MY_PV}.tar.gz -> ${PN}-${MY_PV}.tar.gz" + KEYWORDS="~amd64 ~arm ~x86" +fi + +LICENSE="GPL-2" +SLOT="0/${PV}" +IUSE="extras static-libs wireshark-plugins" + +RDEPEND="extras? ( ${PYTHON_DEPS} ) + wireshark-plugins? ( + >=net-analyzer/wireshark-1.8.3-r1:= + ) +" +DEPEND="${RDEPEND} + wireshark-plugins? ( dev-libs/glib + virtual/pkgconfig )" + +REQUIRED_USE="extras? ( ${PYTHON_REQUIRED_USE} )" + +get_PV() { local pv=$(best_version $1); pv=${pv#$1-}; pv=${pv%-r*}; pv=${pv//_}; echo ${pv}; } + +which_plugins() { + if has_version '>=net-analyzer/wireshark-2.2.0'; then + plugins="" + elif has_version '>=net-analyzer/wireshark-1.12.0'; then + plugins="btbb btbredr" + elif has_version '=net-analyzer/wireshark-2.0'; then + CMAKE_USE_DIR="${S}"/wireshark/plugins/${i} + else + CMAKE_USE_DIR="${S}"/wireshark/plugins-legacy/${i} + fi + BUILD_DIR="${WORKDIR}"/${i}_build + cmake-utils_src_prepare + done + fi +} + +src_configure() { + CMAKE_USE_DIR="${S}" + BUILD_DIR="${S}"_build + local mycmakeargs=( + -DENABLE_PYTHON=$(usex extras) + -DBUILD_STATIC_LIB=$(usex static-libs) + -DBUILD_ROOT="${ED}" + ) + cmake-utils_src_configure + + if use wireshark-plugins; then + for i in ${plugins} + do + if has_version '>=net-analyzer/wireshark-2.0'; then + CMAKE_USE_DIR="${S}"/wireshark/plugins/${i} + else + CMAKE_USE_DIR="${S}"/wireshark/plugins-legacy/${i} + fi + BUILD_DIR="${WORKDIR}"/${i}_build + local mycmakeargs=( + -DCMAKE_INSTALL_LIBDIR="/usr/$(get_libdir)/wireshark/plugins/$(get_PV net-analyzer/wireshark)" + ) + cmake-utils_src_configure + done + fi +} + +src_compile(){ + CMAKE_USE_DIR="${S}" + BUILD_DIR="${S}"_build + cmake-utils_src_compile + + if use wireshark-plugins; then + for i in ${plugins} + do + if has_version '>=net-analyzer/wireshark-2.0'; then + CMAKE_USE_DIR="${S}"/wireshark/plugins/${i} + else + CMAKE_USE_DIR="${S}"/wireshark/plugins-legacy/${i} + fi + BUILD_DIR="${WORKDIR}"/${i}_build + cmake-utils_src_compile + done + fi +} + +src_test(){ + CMAKE_USE_DIR="${S}" + BUILD_DIR="${S}"_build + cmake-utils_src_test + + if use wireshark-plugins; then + for i in ${plugins} + do + if has_version '>=net-analyzer/wireshark-2.0'; then + CMAKE_USE_DIR="${S}"/wireshark/plugins/${i} + else + CMAKE_USE_DIR="${S}"/wireshark/plugins-legacy/${i} + fi + BUILD_DIR="${WORKDIR}"/${i}_build + cmake-utils_src_test + done + fi +} + +src_install(){ + CMAKE_USE_DIR="${S}" + BUILD_DIR="${S}"_build + cmake-utils_src_install + + if use wireshark-plugins; then + for i in ${plugins} + do + if has_version '>=net-analyzer/wireshark-2.0'; then + CMAKE_USE_DIR="${S}"/wireshark/plugins/${i} + else + CMAKE_USE_DIR="${S}"/wireshark/plugins-legacy/${i} + fi + BUILD_DIR="${WORKDIR}"/${i}_build + cmake-utils_src_install + done + fi +}