summaryrefslogtreecommitdiff
path: root/net-wireless/linssid/linssid-2.7.ebuild
diff options
context:
space:
mode:
authorBlackNoxis <steven.darklight@gmail.com>2015-02-24 10:04:44 +0200
committerBlackNoxis <steven.darklight@gmail.com>2015-02-24 10:04:44 +0200
commit24a03037d88d397633a894fca0bee081de333fad (patch)
tree75be7da785005f34cb9302b40ab010d983769c51 /net-wireless/linssid/linssid-2.7.ebuild
parent38037f43632febecb01eb2df3ee0a52dd7e76b03 (diff)
Added linssid 2.7
Diffstat (limited to 'net-wireless/linssid/linssid-2.7.ebuild')
-rw-r--r--net-wireless/linssid/linssid-2.7.ebuild50
1 files changed, 50 insertions, 0 deletions
diff --git a/net-wireless/linssid/linssid-2.7.ebuild b/net-wireless/linssid/linssid-2.7.ebuild
new file mode 100644
index 00000000..30a09b5d
--- /dev/null
+++ b/net-wireless/linssid/linssid-2.7.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=5
+
+inherit qt4-r2
+
+DESCRIPTION="Graphical wireless scanning for Linux "
+HOMEPAGE="http://sourceforge.net/projects/linssid/"
+SRC_URI="http://downloads.sourceforge.net/${PN}/${PN}_${PV}.orig.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="
+ dev-libs/boost
+ dev-qt/qtgui:4
+ net-wireless/wireless-tools
+ >=x11-libs/qwt-6
+ "
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ # fix hard-coded gcc version
+ sed -i 's/gcc-4\.6/gcc/' linssid.pro
+ sed -i 's/g++-4\.6/g++/' linssid.pro
+
+ # get and use QWT version
+ QWT_VERSION="$(best_version x11-libs/qwt | cut -d "-" -f3 | cut -d "." -f1)"
+ sed -i "s/\/usr\/include\/qwt/\/usr\/include\/qwt${QWT_VERSION}/g" linssid.pro || die
+ sed -i "s/\/usr\/lib\/libqwt.so/-lqwt${QWT_VERSION}/g" linssid.pro || die
+
+ sed -i 's/\/usr\/lib\/libboost_regex-mt\.a/-lboost_regex/' linssid.pro || die
+
+ # use uniform include style for qwt
+ sed -i "s/#include <qwt\//#include </" *.h || die
+
+ # fix QA warnings
+ sed -i "s/Version=.*//" linssid.desktop || die
+ sed -i "s/Categories=.*/Categories=Network;/" linssid.desktop || die
+}
+
+pkg_postinst() {
+ elog "This package parses the output of "iw" and needs root privileges"
+ elog "to do so. You can either start it as root or set up sudo"
+ elog "rights (recommended)."
+}