diff options
author | Thomas Kahle <tomka@gentoo.org> | 2013-06-24 22:02:53 +0000 |
---|---|---|
committer | Thomas Kahle <tomka@gentoo.org> | 2013-06-24 22:02:53 +0000 |
commit | c0cb6ca0198f92793d083afc67e727e9a7a2dc9a (patch) | |
tree | 7d871491fb445797e1c68c5fe6ea618f369d1318 | |
parent | Depend on glpk slot 0 (bug 473380) (diff) | |
download | gentoo-2-c0cb6ca0198f92793d083afc67e727e9a7a2dc9a.tar.gz gentoo-2-c0cb6ca0198f92793d083afc67e727e9a7a2dc9a.tar.bz2 gentoo-2-c0cb6ca0198f92793d083afc67e727e9a7a2dc9a.zip |
bump to eapi5 and distutils-r1 (bugs 469910, 473772)
(Portage version: 2.1.12.9/cvs/Linux x86_64, signed Manifest commit with key 0x89DEB219565C32BC!)
-rw-r--r-- | net-misc/wicd/ChangeLog | 8 | ||||
-rw-r--r-- | net-misc/wicd/files/wicd-1.7.2.4-fix-desktop-categories.patch | 20 | ||||
-rw-r--r-- | net-misc/wicd/wicd-1.7.2.4-r3.ebuild | 133 |
3 files changed, 160 insertions, 1 deletions
diff --git a/net-misc/wicd/ChangeLog b/net-misc/wicd/ChangeLog index 2812d5ee2fe7..5dcf9040de30 100644 --- a/net-misc/wicd/ChangeLog +++ b/net-misc/wicd/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for net-misc/wicd # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/wicd/ChangeLog,v 1.139 2013/06/02 11:00:43 pacho Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-misc/wicd/ChangeLog,v 1.140 2013/06/24 22:02:53 tomka Exp $ + +*wicd-1.7.2.4-r3 (24 Jun 2013) + + 24 Jun 2013; Thomas Kahle <tomka@gentoo.org> + +files/wicd-1.7.2.4-fix-desktop-categories.patch, +wicd-1.7.2.4-r3.ebuild: + bump to eapi5 and distutils-r1 (bugs 469910, 473772) 02 Jun 2013; Pacho Ramos <pacho@gentoo.org> metadata.xml: Cleanup due bug #328951 diff --git a/net-misc/wicd/files/wicd-1.7.2.4-fix-desktop-categories.patch b/net-misc/wicd/files/wicd-1.7.2.4-fix-desktop-categories.patch new file mode 100644 index 000000000000..d2b856236606 --- /dev/null +++ b/net-misc/wicd/files/wicd-1.7.2.4-fix-desktop-categories.patch @@ -0,0 +1,20 @@ +diff -U 3 -dHrN wicd-1.7.2.4.orig/other/wicd.desktop wicd-1.7.2.4/other/wicd.desktop +--- wicd-1.7.2.4.orig/other/wicd.desktop 2013-06-24 22:18:00.715578998 +0200 ++++ wicd-1.7.2.4/other/wicd.desktop 2013-06-24 22:18:57.672595363 +0200 +@@ -1,5 +1,5 @@ + [Desktop Entry] +-Categories=Application;Network; ++Categories=Network;Settings;Utility; + Exec=wicd-gtk --no-tray + GenericName=Network Manager + Icon=wicd-gtk +diff -U 3 -dHrN wicd-1.7.2.4.orig/other/wicd-tray.desktop wicd-1.7.2.4/other/wicd-tray.desktop +--- wicd-1.7.2.4.orig/other/wicd-tray.desktop 2013-06-24 22:18:00.715578998 +0200 ++++ wicd-1.7.2.4/other/wicd-tray.desktop 2013-06-24 22:18:59.864595996 +0200 +@@ -1,5 +1,5 @@ + [Desktop Entry] +-Categories=Application;Network; ++Categories=Network;Settings;Utility; + Exec=wicd-gtk --tray + GenericName=Network Manager + Icon=wicd-gtk diff --git a/net-misc/wicd/wicd-1.7.2.4-r3.ebuild b/net-misc/wicd/wicd-1.7.2.4-r3.ebuild new file mode 100644 index 000000000000..1fa54f608bdd --- /dev/null +++ b/net-misc/wicd/wicd-1.7.2.4-r3.ebuild @@ -0,0 +1,133 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/wicd/wicd-1.7.2.4-r3.ebuild,v 1.1 2013/06/24 22:02:52 tomka Exp $ + +EAPI=5 + +PYTHON_COMPAT=( python2_6 python2_7 ) +PYTHON_REQ_USE="ncurses?,xml" + +inherit eutils distutils-r1 systemd + +DESCRIPTION="A lightweight wired and wireless network manager for Linux" +HOMEPAGE="https://launchpad.net/wicd" +SRC_URI="http://launchpad.net/wicd/1.7/${PV}/+download/${P}.tar.gz + mac4lin? ( http://dev.gentoo.org/~anarchy/dist/wicd-mac4lin-icons.tar.xz ) + ambiance? ( http://freetimesblog.altervista.org/blog/wp-content/uploads/downloads/2010/05/Icone-Wicd-Lucid.tar.gz )" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~arm ~mips ~ppc ~ppc64 ~x86" +IUSE="doc X ambiance +gtk ioctl libnotify mac4lin ncurses nls +pm-utils" + +DEPEND="nls? ( dev-python/Babel )" +RDEPEND="${PYTHON_DEPS} + dev-python/dbus-python[${PYTHON_USEDEP}] + X? ( gtk? ( dev-python/pygtk + || ( + x11-misc/ktsuss + x11-libs/gksu + kde-base/kdesu + ) + ) + ) + || ( + net-misc/dhcpcd + net-misc/dhcp + net-misc/pump + ) + net-wireless/wireless-tools + net-wireless/wpa_supplicant + || ( + sys-apps/net-tools + sys-apps/ethtool + ) + !gtk? ( dev-python/pygobject[${PYTHON_USEDEP}] ) + ioctl? ( dev-python/python-iwscan dev-python/python-wpactrl ) + libnotify? ( dev-python/notify-python[${PYTHON_USEDEP}] ) + ncurses? ( + dev-python/urwid + dev-python/pygobject[${PYTHON_USEDEP}] + ) + pm-utils? ( sys-power/pm-utils ) + " +#DOCS="CHANGES NEWS AUTHORS README" + +src_prepare() { + # Fix bug 441966 (urwid-1.1.0 compatibility) + epatch "${FILESDIR}"/${P}-urwid.patch + epatch "${FILESDIR}"/${P}-second-urwid.patch + epatch "${FILESDIR}"/${PN}-1.7.1_beta2-init.patch + epatch "${FILESDIR}"/${PN}-init-sve-start.patch + # Add a template for hex psk's and wpa (Bug 306423) + epatch "${FILESDIR}"/${PN}-1.7.1_pre20111210-wpa-psk-hex-template.patch + # The Categories entry in the .desktop files is outdated + epatch "${FILESDIR}"/${P}-fix-desktop-categories.patch + # Fix bug 416579 (should be included in next release) + epatch "${FILESDIR}"/${P}-fix-dbus-error.patch + # get rid of opts variable to fix bug 381885 + sed -i "/opts/d" "in/init=gentoo=wicd.in" || die + # Make init script provide net per bug 405775 + epatch "${FILESDIR}"/${PN}-1.7.1-provide-net.patch + # Need to ensure that generated scripts use Python 2 at run time. + sed -e "s:self.python = '/usr/bin/python':self.python = '/usr/bin/python2':" \ + -i setup.py || die "sed failed" + # Fix misc helper scripts: + sed -e "s:/usr/bin/env python:/usr/bin/env python2:" \ + -i wicd/suspend.py wicd/autoconnect.py wicd/monitor.py + if use nls; then + # Asturian is faulty with PyBabel + # (https://bugs.launchpad.net/wicd/+bug/928589) + rm po/ast.po + else + # nuke translations + rm po/*.po + fi +} + +src_configure() { + local myconf + use gtk || myconf="${myconf} --no-install-gtk" + use libnotify || myconf="${myconf} --no-use-notifications" + use ncurses || myconf="${myconf} --no-install-ncurses" + use pm-utils || myconf="${myconf} --no-install-pmutils" + python_export_best + "${EPYTHON}" ./setup.py configure --no-install-docs \ + --resume=/usr/share/wicd/scripts/ \ + --suspend=/usr/share/wicd/scripts/ \ + --verbose ${myconf} +} + +src_install() { + distutils-r1_src_install + keepdir /var/lib/wicd/configurations + keepdir /etc/wicd/scripts/{postconnect,disconnect,preconnect} + keepdir /var/log/wicd + use nls || rm -rf "${D}"/usr/share/locale + systemd_dounit "${S}/other/wicd.service" + + if use mac4lin; then + rm -rf "${D}"/usr/share/pixmaps/wicd || die "Failed to remove old icons" + mv "${WORKDIR}"/wicd "${D}"/usr/share/pixmaps/ + fi + if use ambiance; then + # Overwrite tray icons with ambiance icon + rm "${WORKDIR}/Icone Wicd Lucid"/signal* + cp "${WORKDIR}/Icone Wicd Lucid"/*.png "${D}"/usr/share/pixmaps/wicd/ + fi +} + +pkg_postinst() { + elog "You may need to restart the dbus service after upgrading wicd." + echo + elog "To start wicd at boot, add /etc/init.d/wicd to a runlevel and:" + elog "- Remove all net.* initscripts (except for net.lo) from all runlevels" + elog "- Add these scripts to the RC_PLUG_SERVICES line in /etc/rc.conf" + elog "(For example, rc_hotplug=\"!net.eth* !net.wlan*\")" + # Maintainer's note: the consolekit use flag short circuits a dbus rule and + # allows the connection. Else, you need to be in the group. + if ! has_version sys-auth/consolekit; then + ewarn "Wicd-1.6 and newer requires your user to be in the 'users' group. If" + ewarn "you are not in that group, then modify /etc/dbus-1/system.d/wicd.conf" + fi +} |