# Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI=5 GCONF_DEBUG="no" inherit eutils autotools flag-o-matic user gnome2 git-2 if [[ ${PV} = 9999 ]]; then inherit gnome2-utils fi DESCRIPTION="Gopenvpn, Gnome GUI for openvpn" EGIT_REPO_URI="git://gopenvpn.git.sourceforge.net/gitroot/gopenvpn/gopenvpn.git" SRC_URI="" HOMEPAGE="http://gopenvpn.sourceforge.net/" LICENSE="GPL-2" SLOT="0" KEYWORDS="amd64 x86" IUSE="" DEPEND="net-misc/openvpn dev-libs/glib:2 x11-libs/gtk+:2 gnome-base/libglade:2.0 gnome-base/gnome-keyring >=sys-auth/polkit-0.97" RDEPEND="${DEPEND} app-editors/gedit" src_prepare() { # to stop automake erroring out sed -i 's/-Werror//' "${S}/configure.ac" # Add gentoo's {up,down}.sh scripts epatch "${FILESDIR}/gentoo-up-down-script.patch" epatch_user eautoreconf gnome2_src_prepare } src_configure() { gnome2_src_configure } src_install() { gnome2_src_install dodir /usr/share/icons/hicolor/16x16/apps insinto /usr/share/icons/hicolor/16x16/apps newins "${S}/pixmaps/gopenvpn-open.png" gopenvpn.png insinto /usr/share/applications/ newins "${FILESDIR}/gopenvpn.desktop" gopenvpn.desktop } pkg_postinst() { return 0 }