summaryrefslogtreecommitdiff
path: root/net-wireless/lorcon/lorcon-0.0_p20150109.ebuild
diff options
context:
space:
mode:
Diffstat (limited to 'net-wireless/lorcon/lorcon-0.0_p20150109.ebuild')
-rw-r--r--net-wireless/lorcon/lorcon-0.0_p20150109.ebuild35
1 files changed, 4 insertions, 31 deletions
diff --git a/net-wireless/lorcon/lorcon-0.0_p20150109.ebuild b/net-wireless/lorcon/lorcon-0.0_p20150109.ebuild
index a77f0e64a77..c10482d2cdf 100644
--- a/net-wireless/lorcon/lorcon-0.0_p20150109.ebuild
+++ b/net-wireless/lorcon/lorcon-0.0_p20150109.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=5
@@ -6,10 +6,7 @@ EAPI=5
PYTHON_COMPAT=( python2_7 )
DISTUTILS_OPTIONAL=1
-USE_RUBY="ruby20 ruby21"
-RUBY_OPTIONAL=yes
-
-inherit distutils-r1 ruby-ng
+inherit distutils-r1
DESCRIPTION="A generic library for injecting 802.11 frames"
HOMEPAGE="http://802.11ninja.net/lorcon"
@@ -25,9 +22,9 @@ fi
LICENSE="GPL-2"
SLOT="0"
-IUSE="python ruby"
+IUSE="python"
-DEPEND="ruby? ( $(ruby_implementations_depend) )
+DEPEND="
python? ( ${PYTHON_DEPS} )
dev-libs/libnl:3=
net-libs/libpcap"
@@ -37,26 +34,17 @@ REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
S="${WORKDIR}"/${P}
-pkg_setup() {
- use ruby && ruby-ng_pkg_setup
-}
-
src_unpack() {
if [[ ${PV} == "9999" ]] ; then
git-r3_src_unpack
cp -R "${S}/" "${WORKDIR}/all"
fi
default_src_unpack
- #ruby-ng_src_unpack doesn't seem to like mixing with git so we just copy things above
- use ruby && ruby-ng_src_unpack
}
src_prepare() {
sed -i 's#<lorcon2/lorcon.h>#"../lorcon.h"#' pylorcon2/PyLorcon2.c
- sed -i 's#find_library("orcon2", "lorcon_list_drivers", "lorcon2/lorcon.h") and ##' ruby-lorcon/extconf.rb
- sed -i 's#<lorcon2/lorcon.h>#"../lorcon.h"#' ruby-lorcon/Lorcon2.h
use python && distutils-r1_src_prepare
- use ruby && ruby-ng_src_prepare
}
src_configure() {
@@ -65,7 +53,6 @@ src_configure() {
src_compile() {
default_src_compile
- use ruby && ruby-ng_src_compile
if use python; then
LDFLAGS+=" -L${S}/.libs/"
cd pylorcon2 || die
@@ -75,7 +62,6 @@ src_compile() {
src_install() {
emake DESTDIR="${ED}" install
- use ruby && ruby-ng_src_install
if use python; then
cd pylorcon2 || die
distutils-r1_src_install
@@ -85,16 +71,3 @@ src_install() {
src_test() {
:
}
-
-each_ruby_compile() {
- sed -i "s#-I/usr/include/lorcon2#-I${WORKDIR}/${P}/ruby-lorcon -L${WORKDIR}/${P}/.libs#" ruby-lorcon/extconf.rb
- "${RUBY}" -C ruby-lorcon extconf.rb || die
- sed -i 's#<lorcon2/lorcon.h>#"../lorcon.h"#' ruby-lorcon/Lorcon2.h
- sed -i -e "s#-L\.#-L. -L${WORKDIR}/${P}/.libs -lorcon2 #g" \
- -e "s#-Wl,--no-undefined##" ruby-lorcon/Makefile || die
- emake V=1 -C ruby-lorcon
-}
-
-each_ruby_install() {
- DESTDIR="${ED}" emake -C ruby-lorcon install
-}