1 |
zerochaos 12/08/26 05:45:45 |
2 |
|
3 |
Modified: ubertooth-9999.ebuild ChangeLog |
4 |
Log: |
5 |
svn->git plus various python build related fixes (thanks to Arfrever for being insanely patient) |
6 |
|
7 |
(Portage version: 2.1.11.11/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.9 net-wireless/ubertooth/ubertooth-9999.ebuild |
11 |
|
12 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-wireless/ubertooth/ubertooth-9999.ebuild?rev=1.9&view=markup |
13 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-wireless/ubertooth/ubertooth-9999.ebuild?rev=1.9&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-wireless/ubertooth/ubertooth-9999.ebuild?r1=1.8&r2=1.9 |
15 |
|
16 |
Index: ubertooth-9999.ebuild |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/net-wireless/ubertooth/ubertooth-9999.ebuild,v |
19 |
retrieving revision 1.8 |
20 |
retrieving revision 1.9 |
21 |
diff -u -r1.8 -r1.9 |
22 |
--- ubertooth-9999.ebuild 12 Aug 2012 07:40:28 -0000 1.8 |
23 |
+++ ubertooth-9999.ebuild 26 Aug 2012 05:45:45 -0000 1.9 |
24 |
@@ -1,31 +1,38 @@ |
25 |
# Copyright 1999-2012 Gentoo Foundation |
26 |
# Distributed under the terms of the GNU General Public License v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/net-wireless/ubertooth/ubertooth-9999.ebuild,v 1.8 2012/08/12 07:40:28 ssuominen Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/net-wireless/ubertooth/ubertooth-9999.ebuild,v 1.9 2012/08/26 05:45:45 zerochaos Exp $ |
29 |
|
30 |
EAPI="4" |
31 |
|
32 |
-inherit multilib #flag-o-matic |
33 |
+PYTHON_DEPEND="python? 2" |
34 |
+SUPPORT_PYTHON_ABIS="1" |
35 |
+RESTRICT_PYTHON_ABIS="3.*" |
36 |
+ |
37 |
+inherit multilib distutils |
38 |
|
39 |
HOMEPAGE="http://ubertooth.sourceforge.net/" |
40 |
|
41 |
LICENSE="GPL-2" |
42 |
SLOT="0" |
43 |
-IUSE="+dfu +specan ubertooth0-firmware +ubertooth1-firmware" |
44 |
-REQUIRED_USE="ubertooth0-firmware? ( dfu ) |
45 |
- ubertooth1-firmware? ( dfu )" |
46 |
+IUSE="+dfu +specan +python ubertooth0-firmware +ubertooth1-firmware" |
47 |
+REQUIRED_USE="dfu? ( python ) |
48 |
+ specan? ( python ) |
49 |
+ ubertooth0-firmware? ( dfu ) |
50 |
+ ubertooth1-firmware? ( dfu ) |
51 |
+ python? ( || ( dfu specan ) )" |
52 |
DEPEND="" |
53 |
-RDEPEND="specan? ( virtual/libusb:1 ) |
54 |
- dfu? ( virtual/libusb:1 ) |
55 |
- specan? ( >=x11-libs/qt-gui-4.7.2:4 |
56 |
+RDEPEND="specan? ( virtual/libusb:1 |
57 |
+ >=x11-libs/qt-gui-4.7.2:4 |
58 |
>=dev-python/pyside-1.0.2 |
59 |
>=dev-python/numpy-1.3 |
60 |
>=dev-python/pyusb-1.0.0_alpha1 ) |
61 |
- dfu? ( >=dev-python/pyusb-1.0.0_alpha1 )" |
62 |
+ dfu? ( virtual/libusb:1 |
63 |
+ >=dev-python/pyusb-1.0.0_alpha1 )" |
64 |
|
65 |
if [[ ${PV} == "9999" ]] ; then |
66 |
- ESVN_REPO_URI="https://ubertooth.svn.sourceforge.net/svnroot/ubertooth/trunk/" |
67 |
+ EGIT_REPO_URI="git://ubertooth.git.sourceforge.net/gitroot/ubertooth/ubertooth" |
68 |
SRC_URI="" |
69 |
- inherit subversion |
70 |
+ inherit git-2 |
71 |
KEYWORDS="" |
72 |
DEPEND="=net-libs/libbtbb-9999" |
73 |
RDEPEND="${RDEPEND} |
74 |
@@ -55,23 +62,36 @@ |
75 |
eerror " $ crossdev --genv 'USE=\"-openmp -fortran\"' -s4 -t arm-none-eabi" |
76 |
die "arm-none-eabi toolchain not found" |
77 |
fi |
78 |
+ if use python; then |
79 |
+ #I would prefer like this but we can't multiconditional PYTHON_DEPEND in EAPI4 |
80 |
+ #if use dfu || use specan; then |
81 |
+ python_pkg_setup; |
82 |
+ DISTUTILS_SETUP_FILES=() |
83 |
+ if use dfu; then |
84 |
+ DISTUTILS_SETUP_FILES+=("${S}/host/usb_dfu|setup.py") |
85 |
+ PYTHON_MODNAME="dfu" |
86 |
+ fi |
87 |
+ if use specan; then |
88 |
+ DISTUTILS_SETUP_FILES+=("${S}/host/specan_ui|setup.py") |
89 |
+ PYTHON_MODNAME+=" specan" |
90 |
+ fi |
91 |
+ fi |
92 |
} |
93 |
|
94 |
src_compile() { |
95 |
- #sometimes needed to build, remove when a release is made after r534 if not needed |
96 |
- #filter-ldflags -Wl,--as-needed |
97 |
cd "${S}/host/bluetooth_rxtx" || die |
98 |
emake |
99 |
|
100 |
+ use python && distutils_src_compile |
101 |
if [[ ${PV} == "9999" ]] ; then |
102 |
cd "${S}"/firmware/bluetooth_rxtx || die |
103 |
if use ubertooth0-firmware; then |
104 |
- SVN_REV_NUM="-D'SVN_REV_NUM'=${ESVN_WC_REVISION}" DFU_TOOL=/usr/bin/ubertooth-dfu BOARD=UBERTOOTH_ZERO emake -j1 |
105 |
+ SVN_REV_NUM="-D'SVN_REV_NUM'=${ESVN_WC_REVISION}" BOARD=UBERTOOTH_ZERO emake -j1 |
106 |
mv bluetooth_rxtx.bin bluetooth_rxtx_U0.bin || die |
107 |
emake clean |
108 |
fi |
109 |
if use ubertooth1-firmware; then |
110 |
- SVN_REV_NUM="-D'SVN_REV_NUM'=${ESVN_WC_REVISION}" DFU_TOOL=/usr/bin/ubertooth-dfu emake -j1 |
111 |
+ SVN_REV_NUM="-D'SVN_REV_NUM'=${ESVN_WC_REVISION}" emake -j1 |
112 |
mv bluetooth_rxtx.bin bluetooth_rxtx_U1.bin || die |
113 |
fi |
114 |
fi |
115 |
@@ -83,13 +103,8 @@ |
116 |
bluetooth_rxtx/ubertooth-btle bluetooth_rxtx/ubertooth-uap \ |
117 |
bluetooth_rxtx/ubertooth-hop bluetooth_rxtx/ubertooth-util |
118 |
|
119 |
- use specan && dobin bluetooth_rxtx/ubertooth-specan specan_ui/specan.py specan_ui/ubertooth-specan-ui |
120 |
+ use python && distutils_src_install |
121 |
|
122 |
- use dfu && dobin usb_dfu/ubertooth-dfu usb_dfu/dfu.py |
123 |
- |
124 |
- #newlib.so bluetooth_rxtx/libubertooth.so.0.svn-exported libubertooth.so.0.svn-"${ESVN_WC_REVISION}" |
125 |
- #dosym libubertooth.so.0.svn-"${ESVN_WC_REVISION}" /usr/$(get_libdir)/libubertooth.so.0 |
126 |
- #dosym libubertooth.so.0.svn-"${ESVN_WC_REVISION}" /usr/$(get_libdir)/libubertooth.so |
127 |
dolib.so bluetooth_rxtx/libubertooth.so.0.1 |
128 |
dosym libubertooth.so.0.1 /usr/$(get_libdir)/libubertooth.so.0 |
129 |
dosym libubertooth.so.0.1 /usr/$(get_libdir)/libubertooth.so |
130 |
@@ -112,6 +127,8 @@ |
131 |
} |
132 |
|
133 |
pkg_postinst() { |
134 |
+ use python && distutils_pkg_postinst |
135 |
+ |
136 |
if use ubertooth0-firmware || use ubertooth1-firmware; then |
137 |
ewarn "currently the firmware builds using cross dev but is completely" |
138 |
ewarn "NON-FUNCTIONAL. This is supported for development only." |
139 |
@@ -121,3 +138,7 @@ |
140 |
ewarn "You have been warned." |
141 |
fi |
142 |
} |
143 |
+ |
144 |
+pkg_postrm() { |
145 |
+ use python && distutils_pkg_postrm |
146 |
+} |
147 |
|
148 |
|
149 |
|
150 |
1.9 net-wireless/ubertooth/ChangeLog |
151 |
|
152 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-wireless/ubertooth/ChangeLog?rev=1.9&view=markup |
153 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-wireless/ubertooth/ChangeLog?rev=1.9&content-type=text/plain |
154 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-wireless/ubertooth/ChangeLog?r1=1.8&r2=1.9 |
155 |
|
156 |
Index: ChangeLog |
157 |
=================================================================== |
158 |
RCS file: /var/cvsroot/gentoo-x86/net-wireless/ubertooth/ChangeLog,v |
159 |
retrieving revision 1.8 |
160 |
retrieving revision 1.9 |
161 |
diff -u -r1.8 -r1.9 |
162 |
--- ChangeLog 12 Aug 2012 07:40:28 -0000 1.8 |
163 |
+++ ChangeLog 26 Aug 2012 05:45:45 -0000 1.9 |
164 |
@@ -1,6 +1,10 @@ |
165 |
# ChangeLog for net-wireless/ubertooth |
166 |
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 |
167 |
-# $Header: /var/cvsroot/gentoo-x86/net-wireless/ubertooth/ChangeLog,v 1.8 2012/08/12 07:40:28 ssuominen Exp $ |
168 |
+# $Header: /var/cvsroot/gentoo-x86/net-wireless/ubertooth/ChangeLog,v 1.9 2012/08/26 05:45:45 zerochaos Exp $ |
169 |
+ |
170 |
+ 26 Aug 2012; Rick Farina <zerochaos@g.o> ubertooth-9999.ebuild: |
171 |
+ svn->git plus various python build related fixes (thanks to Arfrever for being |
172 |
+ insanely patient) |
173 |
|
174 |
12 Aug 2012; Samuli Suominen <ssuominen@g.o> |
175 |
ubertooth-0.0_p534.ebuild, ubertooth-9999.ebuild: |