diff options
author | Rick Farina <zerochaos@gentoo.org> | 2012-10-08 19:09:35 +0000 |
---|---|---|
committer | Rick Farina <zerochaos@gentoo.org> | 2012-10-08 19:09:35 +0000 |
commit | 5538779205b76da00fe9c22fe93de73ea667d96f (patch) | |
tree | 90ba8603d3cfc39112fc50d498263e8afb25a53d /net-libs/libbtbb | |
parent | Skip SpdyFramer tests, bug #436370 by floppym. (diff) | |
download | gentoo-2-5538779205b76da00fe9c22fe93de73ea667d96f.tar.gz gentoo-2-5538779205b76da00fe9c22fe93de73ea667d96f.tar.bz2 gentoo-2-5538779205b76da00fe9c22fe93de73ea667d96f.zip |
fixing live ebuild to match release
(Portage version: 2.1.11.24/cvs/Linux x86_64)
Diffstat (limited to 'net-libs/libbtbb')
-rw-r--r-- | net-libs/libbtbb/ChangeLog | 5 | ||||
-rw-r--r-- | net-libs/libbtbb/libbtbb-9999.ebuild | 38 |
2 files changed, 38 insertions, 5 deletions
diff --git a/net-libs/libbtbb/ChangeLog b/net-libs/libbtbb/ChangeLog index fe8c965cd67a..cbc9c753ac22 100644 --- a/net-libs/libbtbb/ChangeLog +++ b/net-libs/libbtbb/ChangeLog @@ -1,6 +1,9 @@ # ChangeLog for net-libs/libbtbb # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-libs/libbtbb/ChangeLog,v 1.8 2012/10/08 19:01:54 zerochaos Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-libs/libbtbb/ChangeLog,v 1.9 2012/10/08 19:09:35 zerochaos Exp $ + + 08 Oct 2012; Rick Farina <zerochaos@gentoo.org> libbtbb-9999.ebuild: + fixing live ebuild to match release *libbtbb-2012.10.1 (08 Oct 2012) diff --git a/net-libs/libbtbb/libbtbb-9999.ebuild b/net-libs/libbtbb/libbtbb-9999.ebuild index a005f4d1d448..b1650b86db40 100644 --- a/net-libs/libbtbb/libbtbb-9999.ebuild +++ b/net-libs/libbtbb/libbtbb-9999.ebuild @@ -1,10 +1,10 @@ # Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-libs/libbtbb/libbtbb-9999.ebuild,v 1.6 2012/07/11 21:42:13 zerochaos Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-libs/libbtbb/libbtbb-9999.ebuild,v 1.7 2012/10/08 19:09:35 zerochaos Exp $ EAPI=4 -inherit multilib +inherit multilib cmake-utils DESCRIPTION="A library to decode Bluetooth baseband packets" HOMEPAGE="http://libbtbb.sourceforge.net/" @@ -15,16 +15,46 @@ if [[ ${PV} == "9999" ]] ; then inherit git-2 KEYWORDS="" else - SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" + MY_P=${P/\./-} + MY_P=${MY_P/./-R} + S=${WORKDIR}/${MY_P} + SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.xz" KEYWORDS="~amd64 ~arm ~x86" fi LICENSE="GPL-2" SLOT="0" -IUSE="" +IUSE="+wireshark" + +RDEPEND=" + wireshark? ( + dev-libs/glib + >=net-analyzer/wireshark-1.8.3-r1 + ) +" +DEPEND="${RDEPEND} + wireshark? ( virtual/pkgconfig )" + +get_PV() { local pv=$(best_version "$1"); pv=${pv#"$1-"}; echo "${pv%-r[0-9]*}"; } + +CMAKE_USE_DIR="${S}"/wireshark/plugins/btbb + +src_prepare() { + sed -i \ + -e '/set(CMAKE_INSTALL_LIBDIR/ d' \ + -e "s:R} N:R}/wireshark/plugins/$(get_PV net-analyzer/wireshark) N:" \ + ${CMAKE_USE_DIR}/CMakeLists.txt || die +} + +src_compile() { + default_src_compile + use wireshark && cmake-utils_src_compile +} src_install() { dodir /usr/$(get_libdir) dodir /usr/include emake LDCONFIG=true DESTDIR="${D}" INSTALL_DIR="${ED}/usr/$(get_libdir)" INCLUDE_DIR="${ED}/usr/include" install + + use wireshark && cmake-utils_src_install } |