summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan Phillip Brink <binki@gentoo.org>2011-05-31 19:47:28 +0000
committerNathan Phillip Brink <binki@gentoo.org>2011-05-31 19:47:28 +0000
commitb606ac63d810243cc7ae3b13d3a146820628a17a (patch)
tree931b0aa8adb965dc5c6b631ab7e6091ae9f332cc /net-libs/libbtbb
parentVersion bump. This version fixes environment leakages in bash parser and adds... (diff)
downloadgentoo-2-b606ac63d810243cc7ae3b13d3a146820628a17a.tar.gz
gentoo-2-b606ac63d810243cc7ae3b13d3a146820628a17a.tar.bz2
gentoo-2-b606ac63d810243cc7ae3b13d3a146820628a17a.zip
Add new ebuild dev-libs/libbtbb, proxy-maintained by zero_chaos.
(Portage version: 2.2.0_alpha34-r1/cvs/Linux x86_64)
Diffstat (limited to 'net-libs/libbtbb')
-rw-r--r--net-libs/libbtbb/ChangeLog12
-rw-r--r--net-libs/libbtbb/files/libbtbb-0.5-flags.patch16
-rw-r--r--net-libs/libbtbb/files/libbtbb-0.5-makefile.patch10
-rw-r--r--net-libs/libbtbb/libbtbb-0.5.ebuild38
-rw-r--r--net-libs/libbtbb/libbtbb-9999.ebuild38
-rw-r--r--net-libs/libbtbb/metadata.xml15
6 files changed, 129 insertions, 0 deletions
diff --git a/net-libs/libbtbb/ChangeLog b/net-libs/libbtbb/ChangeLog
new file mode 100644
index 000000000000..852b11bcad37
--- /dev/null
+++ b/net-libs/libbtbb/ChangeLog
@@ -0,0 +1,12 @@
+# ChangeLog for net-libs/libbtbb
+# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-libs/libbtbb/ChangeLog,v 1.1 2011/05/31 19:47:28 binki Exp $
+
+*libbtbb-9999 (31 May 2011)
+*libbtbb-0.5 (31 May 2011)
+
+ 31 May 2011; Nathan Phillip Brink <binki@gentoo.org> +libbtbb-0.5.ebuild,
+ +files/libbtbb-0.5-flags.patch, +files/libbtbb-0.5-makefile.patch,
+ +libbtbb-9999.ebuild, +metadata.xml:
+ Add new ebuild dev-libs/libbtbb, proxy-maintained by zero_chaos.
+
diff --git a/net-libs/libbtbb/files/libbtbb-0.5-flags.patch b/net-libs/libbtbb/files/libbtbb-0.5-flags.patch
new file mode 100644
index 000000000000..60df95f8c04e
--- /dev/null
+++ b/net-libs/libbtbb/files/libbtbb-0.5-flags.patch
@@ -0,0 +1,16 @@
+From: Nathan Phillip Brink <binki@gentoo.org>
+Subject: Respect LDFLAGS, CFLAGS, and CPPFLAGS.
+
+--- a/Makefile
++++ b/Makefile
+@@ -35,8 +35,8 @@
+ all: libbtbb
+
+ libbtbb:
+- $(CC) -g -O2 -Wall -fPIC -c $(SOURCE_FILES)
+- $(CC) -shared -Wl,-soname,$(SONAME) -o $(LIB_FILE) $(OBJECT_FILES)
++ $(CC) $(CFLAGS) $(CPPFLAGS) -g -O2 -Wall -fPIC -c $(SOURCE_FILES)
++ $(CC) $(CFLAGS) $(LDFLAGS) -shared -Wl,-soname,$(SONAME) -o $(LIB_FILE) $(OBJECT_FILES)
+
+ clean:
+ rm -f *.o $(LIB_FILE)
diff --git a/net-libs/libbtbb/files/libbtbb-0.5-makefile.patch b/net-libs/libbtbb/files/libbtbb-0.5-makefile.patch
new file mode 100644
index 000000000000..ea64b462d160
--- /dev/null
+++ b/net-libs/libbtbb/files/libbtbb-0.5-makefile.patch
@@ -0,0 +1,10 @@
+diff -Naur libbtbb-orig/Makefile libbtbb/Makefile
+--- libbtbb-orig/Makefile 2011-05-27 23:54:48.000000000 -0400
++++ libbtbb/Makefile 2011-05-27 23:56:40.000000000 -0400
+@@ -45,5 +45,5 @@
+ $(INSTALL) -m 0644 $(LIB_FILE) $(INSTALL_DIR)
+ $(INSTALL) -m 0644 $(HEADER_FILES) $(INCLUDE_DIR)
+ $(LDCONFIG)
+- ln -fs $(INSTALL_DIR)/$(LIB_FILE) $(INSTALL_DIR)/$(LIB_NAME)
++ ln -fs $(LIB_FILE) $(INSTALL_DIR)/$(LIB_NAME)
+
diff --git a/net-libs/libbtbb/libbtbb-0.5.ebuild b/net-libs/libbtbb/libbtbb-0.5.ebuild
new file mode 100644
index 000000000000..47783595bd36
--- /dev/null
+++ b/net-libs/libbtbb/libbtbb-0.5.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-libs/libbtbb/libbtbb-0.5.ebuild,v 1.1 2011/05/31 19:47:28 binki Exp $
+
+EAPI=4
+
+inherit eutils
+
+DESCRIPTION="A library to decode Bluetooth baseband packets"
+HOMEPAGE="http://libbtbb.sourceforge.net/"
+
+if [[ ${PV} == "9999" ]] ; then
+ EGIT_REPO_URI="http://git.code.sf.net/p/libbtbb/code"
+ inherit git-2
+ KEYWORDS=""
+else
+ SRC_URI="mirror://sourceforge/${PN}/${PN}.${PV}.tgz"
+ KEYWORDS="~amd64 ~arm ~x86"
+fi
+
+LICENSE="GPL-2"
+SLOT="0"
+IUSE=""
+
+S=${WORKDIR}/${PN}
+
+src_prepare() {
+ if [[ ${PV} != "9999" ]] ; then
+ epatch "${FILESDIR}"/${P}-makefile.patch \
+ "${FILESDIR}"/${P}-flags.patch
+ fi
+}
+
+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
+}
diff --git a/net-libs/libbtbb/libbtbb-9999.ebuild b/net-libs/libbtbb/libbtbb-9999.ebuild
new file mode 100644
index 000000000000..311f1420e551
--- /dev/null
+++ b/net-libs/libbtbb/libbtbb-9999.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2011 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.1 2011/05/31 19:47:28 binki Exp $
+
+EAPI=4
+
+inherit eutils
+
+DESCRIPTION="A library to decode Bluetooth baseband packets"
+HOMEPAGE="http://libbtbb.sourceforge.net/"
+
+if [[ ${PV} == "9999" ]] ; then
+ EGIT_REPO_URI="http://git.code.sf.net/p/libbtbb/code"
+ inherit git-2
+ KEYWORDS=""
+else
+ SRC_URI="mirror://sourceforge/${PN}/${PN}.${PV}.tgz"
+ KEYWORDS="~amd64 ~arm ~x86"
+fi
+
+LICENSE="GPL-2"
+SLOT="0"
+IUSE=""
+
+S=${WORKDIR}/${PN}
+
+src_prepare() {
+ if [[ ${PV} != "9999" ]] ; then
+ epatch "${FILESDIR}"/${P}-makefile.patch \
+ "${FILESDIR}"/${P}-flags.patch
+ fi
+}
+
+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
+}
diff --git a/net-libs/libbtbb/metadata.xml b/net-libs/libbtbb/metadata.xml
new file mode 100644
index 000000000000..756db209976a
--- /dev/null
+++ b/net-libs/libbtbb/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>no-herd</herd>
+ <maintainer>
+ <email>sidhayn@gmail.com</email>
+ <name>Zero_Chaos</name>
+ <description>Proxy Maintainer, assign bugs</description>
+ </maintainer>
+ <maintainer>
+ <email>binki@gentoo.org</email>
+ <name>Nathan Phillip Brink</name>
+ <description>Committer, CC in bugs</description>
+ </maintainer>
+</pkgmetadata>