From: | "Richard Farina (zerochaos)" <zerochaos@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in net-wireless/lorcon: lorcon-0.0_p20130212.ebuild ChangeLog |
Date: | Sun, 26 May 2013 05:11:05 |
Message-Id: | 20130526051058.404622171D@flycatcher.gentoo.org |
1 | zerochaos 13/05/26 05:10:58 |
2 | |
3 | Modified: ChangeLog |
4 | Added: lorcon-0.0_p20130212.ebuild |
5 | Log: |
6 | adding snapshot |
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/ChangeLog |
12 | |
13 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-wireless/lorcon/ChangeLog?rev=1.3&view=markup |
14 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-wireless/lorcon/ChangeLog?rev=1.3&content-type=text/plain |
15 | diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-wireless/lorcon/ChangeLog?r1=1.2&r2=1.3 |
16 | |
17 | Index: ChangeLog |
18 | =================================================================== |
19 | RCS file: /var/cvsroot/gentoo-x86/net-wireless/lorcon/ChangeLog,v |
20 | retrieving revision 1.2 |
21 | retrieving revision 1.3 |
22 | diff -u -r1.2 -r1.3 |
23 | --- ChangeLog 19 Apr 2013 13:34:39 -0000 1.2 |
24 | +++ ChangeLog 26 May 2013 05:10:58 -0000 1.3 |
25 | @@ -1,6 +1,11 @@ |
26 | # ChangeLog for net-wireless/lorcon |
27 | # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 |
28 | -# $Header: /var/cvsroot/gentoo-x86/net-wireless/lorcon/ChangeLog,v 1.2 2013/04/19 13:34:39 zerochaos Exp $ |
29 | +# $Header: /var/cvsroot/gentoo-x86/net-wireless/lorcon/ChangeLog,v 1.3 2013/05/26 05:10:58 zerochaos Exp $ |
30 | + |
31 | +*lorcon-0.0_p20130212 (26 May 2013) |
32 | + |
33 | + 26 May 2013; Rick Farina <zerochaos@g.o> +lorcon-0.0_p20130212.ebuild: |
34 | + adding snapshot |
35 | |
36 | 19 Apr 2013; Rick Farina <zerochaos@g.o> lorcon-9999.ebuild: |
37 | cleanup DEPEND so it's correct |
38 | |
39 | |
40 | |
41 | 1.1 net-wireless/lorcon/lorcon-0.0_p20130212.ebuild |
42 | |
43 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-wireless/lorcon/lorcon-0.0_p20130212.ebuild?rev=1.1&view=markup |
44 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-wireless/lorcon/lorcon-0.0_p20130212.ebuild?rev=1.1&content-type=text/plain |
45 | |
46 | Index: lorcon-0.0_p20130212.ebuild |
47 | =================================================================== |
48 | # Copyright 1999-2013 Gentoo Foundation |
49 | # Distributed under the terms of the GNU General Public License v2 |
50 | # $Header: /var/cvsroot/gentoo-x86/net-wireless/lorcon/lorcon-0.0_p20130212.ebuild,v 1.1 2013/05/26 05:10:58 zerochaos Exp $ |
51 | |
52 | EAPI=5 |
53 | |
54 | PYTHON_DEPEND="python? 2" |
55 | SUPPORT_PYTHON_ABIS="1" |
56 | RESTRICT_PYTHON_ABIS="3.*" |
57 | |
58 | USE_RUBY="ruby18 ruby19" |
59 | RUBY_OPTIONAL=yes |
60 | |
61 | inherit distutils ruby-ng |
62 | |
63 | DESCRIPTION="A generic library for injecting 802.11 frames" |
64 | HOMEPAGE="http://802.11ninja.net/lorcon" |
65 | |
66 | if [[ ${PV} == "9999" ]] ; then |
67 | EGIT_REPO_URI="https://code.google.com/p/lorcon/" |
68 | inherit git-2 |
69 | KEYWORDS="" |
70 | else |
71 | SRC_URI="http://dev.gentoo.org/~zerochaos/distfiles/${P}.tar.xz" |
72 | KEYWORDS="~amd64 ~arm ~ppc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux" |
73 | fi |
74 | |
75 | |
76 | LICENSE="GPL-2" |
77 | SLOT="0" |
78 | IUSE="python ruby" |
79 | |
80 | DEPEND="ruby? ( $(ruby_implementations_depend) ) |
81 | dev-libs/libnl |
82 | net-libs/libpcap" |
83 | RDEPEND="${DEPEND}" |
84 | |
85 | S="${WORKDIR}"/${P} |
86 | |
87 | pkg_setup() { |
88 | if use python; then |
89 | python_pkg_setup; |
90 | DISTUTILS_SETUP_FILES=("${S}/pylorcon2|setup.py") |
91 | fi |
92 | use ruby && ruby-ng_pkg_setup |
93 | } |
94 | |
95 | src_unpack() { |
96 | if [[ ${PV} == "9999" ]] ; then |
97 | git-2_src_unpack |
98 | else |
99 | default_src_unpack |
100 | fi |
101 | use ruby && ruby-ng_src_unpack |
102 | } |
103 | |
104 | src_prepare() { |
105 | sed -i 's#<lorcon2/lorcon.h>#"../lorcon.h"#' pylorcon2/PyLorcon2.c |
106 | sed -i 's#find_library("orcon2", "lorcon_list_drivers", "lorcon2/lorcon.h") and ##' ruby-lorcon/extconf.rb |
107 | sed -i "s#-I/usr/include/lorcon2#-I${WORKDIR}/all#" ruby-lorcon/extconf.rb |
108 | sed -i 's#<lorcon2/lorcon.h>#"../lorcon.h"#' ruby-lorcon/Lorcon2.h |
109 | use python && distutils_src_prepare |
110 | use ruby && ruby-ng_src_prepare |
111 | } |
112 | |
113 | src_configure() { |
114 | default_src_configure |
115 | use ruby && ruby-ng_src_configure |
116 | } |
117 | |
118 | src_compile() { |
119 | default_src_compile |
120 | if use python; then |
121 | LDFLAGS+=" -L${S}/.libs/" |
122 | distutils_src_compile |
123 | fi |
124 | use ruby && ruby-ng_src_compile |
125 | } |
126 | |
127 | src_install() { |
128 | emake DESTDIR="${ED}" install |
129 | use python && distutils_src_install |
130 | use ruby && ruby-ng_src_install |
131 | } |
132 | |
133 | src_test() { |
134 | : |
135 | } |
136 | |
137 | pkg_postinst() { |
138 | use python && distutils_pkg_postinst |
139 | } |
140 | pkg_postrm() { |
141 | use python && distutils_pkg_postrm |
142 | } |
143 | |
144 | each_ruby_configure() { |
145 | ${RUBY} -C "ruby-lorcon" extconf.rb |
146 | sed -i "s#-L\.#-L. -L${WORKDIR}/all/.libs -lorcon2 #g" ruby-lorcon/Makefile |
147 | } |
148 | |
149 | each_ruby_compile() { |
150 | emake -C ruby-lorcon |
151 | } |
152 | |
153 | each_ruby_install() { |
154 | DESTDIR="${ED}" emake -C ruby-lorcon install |
155 | } |