1 |
zerochaos 13/05/28 05:05:22 |
2 |
|
3 |
Modified: lorcon-9999.ebuild lorcon-0.0_p20130212.ebuild |
4 |
ChangeLog |
5 |
Log: |
6 |
fix to build right, thanks to bonsaikitten for reading my error to me and my wife for letting me work on this for 2 hours |
7 |
|
8 |
(Portage version: 2.1.11.62/cvs/Linux x86_64, signed Manifest commit with key DD11F94A) |
9 |
|
10 |
Revision Changes Path |
11 |
1.3 net-wireless/lorcon/lorcon-9999.ebuild |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-wireless/lorcon/lorcon-9999.ebuild?rev=1.3&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-wireless/lorcon/lorcon-9999.ebuild?rev=1.3&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-wireless/lorcon/lorcon-9999.ebuild?r1=1.2&r2=1.3 |
16 |
|
17 |
Index: lorcon-9999.ebuild |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/net-wireless/lorcon/lorcon-9999.ebuild,v |
20 |
retrieving revision 1.2 |
21 |
retrieving revision 1.3 |
22 |
diff -u -r1.2 -r1.3 |
23 |
--- lorcon-9999.ebuild 19 Apr 2013 13:34:39 -0000 1.2 |
24 |
+++ lorcon-9999.ebuild 28 May 2013 05:05:22 -0000 1.3 |
25 |
@@ -1,6 +1,6 @@ |
26 |
# Copyright 1999-2013 Gentoo Foundation |
27 |
# Distributed under the terms of the GNU General Public License v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/net-wireless/lorcon/lorcon-9999.ebuild,v 1.2 2013/04/19 13:34:39 zerochaos Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/net-wireless/lorcon/lorcon-9999.ebuild,v 1.3 2013/05/28 05:05:22 zerochaos Exp $ |
30 |
|
31 |
EAPI=5 |
32 |
|
33 |
@@ -11,15 +11,22 @@ |
34 |
USE_RUBY="ruby18 ruby19" |
35 |
RUBY_OPTIONAL=yes |
36 |
|
37 |
-inherit git-2 distutils ruby-ng |
38 |
+inherit distutils ruby-ng |
39 |
|
40 |
DESCRIPTION="A generic library for injecting 802.11 frames" |
41 |
HOMEPAGE="http://802.11ninja.net/lorcon" |
42 |
-EGIT_REPO_URI="https://code.google.com/p/lorcon/" |
43 |
+ |
44 |
+if [[ ${PV} == "9999" ]] ; then |
45 |
+ EGIT_REPO_URI="https://code.google.com/p/lorcon/" |
46 |
+ inherit git-2 |
47 |
+ KEYWORDS="" |
48 |
+else |
49 |
+ SRC_URI="http://dev.gentoo.org/~zerochaos/distfiles/${P}.tar.xz" |
50 |
+ KEYWORDS="~amd64 ~arm ~ppc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux" |
51 |
+fi |
52 |
|
53 |
LICENSE="GPL-2" |
54 |
SLOT="0" |
55 |
-KEYWORDS="" |
56 |
IUSE="python ruby" |
57 |
|
58 |
DEPEND="ruby? ( $(ruby_implementations_depend) ) |
59 |
@@ -27,7 +34,7 @@ |
60 |
net-libs/libpcap" |
61 |
RDEPEND="${DEPEND}" |
62 |
|
63 |
-S="${WORKDIR}"/all |
64 |
+S="${WORKDIR}"/${P} |
65 |
|
66 |
pkg_setup() { |
67 |
if use python; then |
68 |
@@ -38,31 +45,34 @@ |
69 |
} |
70 |
|
71 |
src_unpack() { |
72 |
- git-2_src_unpack |
73 |
+ if [[ ${PV} == "9999" ]] ; then |
74 |
+ git-2_src_unpack |
75 |
+ cp -R "${S}/" "${WORKDIR}/all" |
76 |
+ fi |
77 |
+ default_src_unpack |
78 |
+ #ruby-ng_src_unpack doesn't seem to like mixing with git so we just copy things above |
79 |
use ruby && ruby-ng_src_unpack |
80 |
} |
81 |
|
82 |
src_prepare() { |
83 |
- use python && distutils_src_prepare |
84 |
sed -i 's#<lorcon2/lorcon.h>#"../lorcon.h"#' pylorcon2/PyLorcon2.c |
85 |
sed -i 's#find_library("orcon2", "lorcon_list_drivers", "lorcon2/lorcon.h") and ##' ruby-lorcon/extconf.rb |
86 |
- sed -i "s#-I/usr/include/lorcon2#-I${WORKDIR}/all#" ruby-lorcon/extconf.rb |
87 |
sed -i 's#<lorcon2/lorcon.h>#"../lorcon.h"#' ruby-lorcon/Lorcon2.h |
88 |
+ use python && distutils_src_prepare |
89 |
use ruby && ruby-ng_src_prepare |
90 |
} |
91 |
|
92 |
src_configure() { |
93 |
default_src_configure |
94 |
- use ruby && ruby-ng_src_configure |
95 |
} |
96 |
|
97 |
src_compile() { |
98 |
default_src_compile |
99 |
+ use ruby && ruby-ng_src_compile |
100 |
if use python; then |
101 |
LDFLAGS+=" -L${S}/.libs/" |
102 |
distutils_src_compile |
103 |
fi |
104 |
- use ruby && ruby-ng_src_compile |
105 |
} |
106 |
|
107 |
src_install() { |
108 |
@@ -82,12 +92,11 @@ |
109 |
use python && distutils_pkg_postrm |
110 |
} |
111 |
|
112 |
-each_ruby_configure() { |
113 |
- ${RUBY} -C "ruby-lorcon" extconf.rb |
114 |
- sed -i "s#-L\.#-L. -L${WORKDIR}/all/.libs -lorcon2 #g" ruby-lorcon/Makefile |
115 |
-} |
116 |
- |
117 |
each_ruby_compile() { |
118 |
+ sed -i "s#-I/usr/include/lorcon2#-I${WORKDIR}/${P}/ruby-lorcon -L${WORKDIR}/${P}/.libs#" ruby-lorcon/extconf.rb |
119 |
+ "${RUBY}" -C ruby-lorcon extconf.rb || die |
120 |
+ sed -i 's#<lorcon2/lorcon.h>#"../lorcon.h"#' ruby-lorcon/Lorcon2.h |
121 |
+ sed -i "s#-L\.#-L. -L${WORKDIR}/${P}/.libs -lorcon2 #g" ruby-lorcon/Makefile || die |
122 |
emake -C ruby-lorcon |
123 |
} |
124 |
|
125 |
|
126 |
|
127 |
|
128 |
1.2 net-wireless/lorcon/lorcon-0.0_p20130212.ebuild |
129 |
|
130 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-wireless/lorcon/lorcon-0.0_p20130212.ebuild?rev=1.2&view=markup |
131 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-wireless/lorcon/lorcon-0.0_p20130212.ebuild?rev=1.2&content-type=text/plain |
132 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-wireless/lorcon/lorcon-0.0_p20130212.ebuild?r1=1.1&r2=1.2 |
133 |
|
134 |
Index: lorcon-0.0_p20130212.ebuild |
135 |
=================================================================== |
136 |
RCS file: /var/cvsroot/gentoo-x86/net-wireless/lorcon/lorcon-0.0_p20130212.ebuild,v |
137 |
retrieving revision 1.1 |
138 |
retrieving revision 1.2 |
139 |
diff -u -r1.1 -r1.2 |
140 |
--- lorcon-0.0_p20130212.ebuild 26 May 2013 05:10:58 -0000 1.1 |
141 |
+++ lorcon-0.0_p20130212.ebuild 28 May 2013 05:05:22 -0000 1.2 |
142 |
@@ -1,6 +1,6 @@ |
143 |
# Copyright 1999-2013 Gentoo Foundation |
144 |
# Distributed under the terms of the GNU General Public License v2 |
145 |
-# $Header: /var/cvsroot/gentoo-x86/net-wireless/lorcon/lorcon-0.0_p20130212.ebuild,v 1.1 2013/05/26 05:10:58 zerochaos Exp $ |
146 |
+# $Header: /var/cvsroot/gentoo-x86/net-wireless/lorcon/lorcon-0.0_p20130212.ebuild,v 1.2 2013/05/28 05:05:22 zerochaos Exp $ |
147 |
|
148 |
EAPI=5 |
149 |
|
150 |
@@ -25,7 +25,6 @@ |
151 |
KEYWORDS="~amd64 ~arm ~ppc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux" |
152 |
fi |
153 |
|
154 |
- |
155 |
LICENSE="GPL-2" |
156 |
SLOT="0" |
157 |
IUSE="python ruby" |
158 |
@@ -48,16 +47,16 @@ |
159 |
src_unpack() { |
160 |
if [[ ${PV} == "9999" ]] ; then |
161 |
git-2_src_unpack |
162 |
- else |
163 |
- default_src_unpack |
164 |
+ cp -R "${S}/" "${WORKDIR}/all" |
165 |
fi |
166 |
+ default_src_unpack |
167 |
+ #ruby-ng_src_unpack doesn't seem to like mixing with git so we just copy things above |
168 |
use ruby && ruby-ng_src_unpack |
169 |
} |
170 |
|
171 |
src_prepare() { |
172 |
sed -i 's#<lorcon2/lorcon.h>#"../lorcon.h"#' pylorcon2/PyLorcon2.c |
173 |
sed -i 's#find_library("orcon2", "lorcon_list_drivers", "lorcon2/lorcon.h") and ##' ruby-lorcon/extconf.rb |
174 |
- sed -i "s#-I/usr/include/lorcon2#-I${WORKDIR}/all#" ruby-lorcon/extconf.rb |
175 |
sed -i 's#<lorcon2/lorcon.h>#"../lorcon.h"#' ruby-lorcon/Lorcon2.h |
176 |
use python && distutils_src_prepare |
177 |
use ruby && ruby-ng_src_prepare |
178 |
@@ -65,16 +64,15 @@ |
179 |
|
180 |
src_configure() { |
181 |
default_src_configure |
182 |
- use ruby && ruby-ng_src_configure |
183 |
} |
184 |
|
185 |
src_compile() { |
186 |
default_src_compile |
187 |
+ use ruby && ruby-ng_src_compile |
188 |
if use python; then |
189 |
LDFLAGS+=" -L${S}/.libs/" |
190 |
distutils_src_compile |
191 |
fi |
192 |
- use ruby && ruby-ng_src_compile |
193 |
} |
194 |
|
195 |
src_install() { |
196 |
@@ -94,12 +92,11 @@ |
197 |
use python && distutils_pkg_postrm |
198 |
} |
199 |
|
200 |
-each_ruby_configure() { |
201 |
- ${RUBY} -C "ruby-lorcon" extconf.rb |
202 |
- sed -i "s#-L\.#-L. -L${WORKDIR}/all/.libs -lorcon2 #g" ruby-lorcon/Makefile |
203 |
-} |
204 |
- |
205 |
each_ruby_compile() { |
206 |
+ sed -i "s#-I/usr/include/lorcon2#-I${WORKDIR}/${P}/ruby-lorcon -L${WORKDIR}/${P}/.libs#" ruby-lorcon/extconf.rb |
207 |
+ "${RUBY}" -C ruby-lorcon extconf.rb || die |
208 |
+ sed -i 's#<lorcon2/lorcon.h>#"../lorcon.h"#' ruby-lorcon/Lorcon2.h |
209 |
+ sed -i "s#-L\.#-L. -L${WORKDIR}/${P}/.libs -lorcon2 #g" ruby-lorcon/Makefile || die |
210 |
emake -C ruby-lorcon |
211 |
} |
212 |
|
213 |
|
214 |
|
215 |
|
216 |
1.4 net-wireless/lorcon/ChangeLog |
217 |
|
218 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-wireless/lorcon/ChangeLog?rev=1.4&view=markup |
219 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-wireless/lorcon/ChangeLog?rev=1.4&content-type=text/plain |
220 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-wireless/lorcon/ChangeLog?r1=1.3&r2=1.4 |
221 |
|
222 |
Index: ChangeLog |
223 |
=================================================================== |
224 |
RCS file: /var/cvsroot/gentoo-x86/net-wireless/lorcon/ChangeLog,v |
225 |
retrieving revision 1.3 |
226 |
retrieving revision 1.4 |
227 |
diff -u -r1.3 -r1.4 |
228 |
--- ChangeLog 26 May 2013 05:10:58 -0000 1.3 |
229 |
+++ ChangeLog 28 May 2013 05:05:22 -0000 1.4 |
230 |
@@ -1,6 +1,11 @@ |
231 |
# ChangeLog for net-wireless/lorcon |
232 |
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 |
233 |
-# $Header: /var/cvsroot/gentoo-x86/net-wireless/lorcon/ChangeLog,v 1.3 2013/05/26 05:10:58 zerochaos Exp $ |
234 |
+# $Header: /var/cvsroot/gentoo-x86/net-wireless/lorcon/ChangeLog,v 1.4 2013/05/28 05:05:22 zerochaos Exp $ |
235 |
+ |
236 |
+ 28 May 2013; Rick Farina <zerochaos@g.o> lorcon-0.0_p20130212.ebuild, |
237 |
+ lorcon-9999.ebuild: |
238 |
+ fix to build right, thanks to bonsaikitten for reading my error to me and my |
239 |
+ wife for letting me work on this for 2 hours |
240 |
|
241 |
*lorcon-0.0_p20130212 (26 May 2013) |