summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Seifert <soap@gentoo.org>2017-12-29 17:34:29 +0100
committerDavid Seifert <soap@gentoo.org>2017-12-29 18:02:13 +0100
commit15ad544f0f0f52c4f83074b6c1930f71c7aa0711 (patch)
tree6c63181004e22f98e86cc681fa457b7f9ee9d5f0 /app-admin/quickswitch/quickswitch-1.05.ebuild
parentapp-admin/sysrqd: Port to EAPI 6 (diff)
downloadgentoo-15ad544f0f0f52c4f83074b6c1930f71c7aa0711.tar.gz
gentoo-15ad544f0f0f52c4f83074b6c1930f71c7aa0711.tar.bz2
gentoo-15ad544f0f0f52c4f83074b6c1930f71c7aa0711.zip
app-admin/quickswitch: Port to EAPI 6
Package-Manager: Portage-2.3.19, Repoman-2.3.6
Diffstat (limited to 'app-admin/quickswitch/quickswitch-1.05.ebuild')
-rw-r--r--app-admin/quickswitch/quickswitch-1.05.ebuild28
1 files changed, 9 insertions, 19 deletions
diff --git a/app-admin/quickswitch/quickswitch-1.05.ebuild b/app-admin/quickswitch/quickswitch-1.05.ebuild
index ab9f3d539ebe..24b21cea6b25 100644
--- a/app-admin/quickswitch/quickswitch-1.05.ebuild
+++ b/app-admin/quickswitch/quickswitch-1.05.ebuild
@@ -1,38 +1,28 @@
-# Copyright 1999-2010 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-IUSE="ncurses"
+EAPI=6
DESCRIPTION="Utility to switch network profiles on the fly"
SRC_URI="mirror://sourceforge/quickswitch/${P}.tar.gz"
HOMEPAGE="http://quickswitch.sf.net"
-SLOT="0"
LICENSE="GPL-2"
+SLOT="0"
KEYWORDS="x86 ppc sparc s390 amd64"
+IUSE="ncurses"
DEPEND=">=dev-lang/perl-5.6.0"
RDEPEND="ncurses? ( dev-perl/CursesWidgets )"
+PATCHES=( "${FILESDIR}"/${PN}-1.05-fix-paths.patch )
+
src_install() {
dobin switchto
- dosed "s:/etc/switchto.conf:/etc/quickswitch/switchto.conf:" \
- /usr/bin/switchto
- dosed "s:/etc/switchto.last:/etc/quickswitch/switchto.last:" \
- /usr/bin/switchto
- if use ncurses; then
- dobin switcher
- dosed "s:/etc/switchto.conf:/etc/quickswitch/switchto.conf:" \
- /usr/bin/switcher
- fi
-
- dodir /etc/quickswitch
+ use ncurses && dobin switcher
+
insinto /etc/quickswitch
newins switchto.conf switchto.conf.sample
- dosed "s:/etc/switchto.last:/etc/quickswitch/switchto.last:" \
- /etc/quickswitch/switchto.conf.sample
- dosed "s:/usr/local/sbin/iwconfig:/sbin/iwconfig:" \
- /etc/quickswitch/switchto.conf.sample
- dodoc README
+ einstalldocs
}