net-misc/openconnect: Cosmetic cleanup
authorMike Gilbert <floppym@gentoo.org>
Fri, 11 Dec 2015 02:49:29 +0000 (21:49 -0500)
committerMike Gilbert <floppym@gentoo.org>
Fri, 11 Dec 2015 02:49:29 +0000 (21:49 -0500)
Package-Manager: portage-2.2.26_p25

net-misc/openconnect/openconnect-9999.ebuild

index 08beef389d47b7552f28a945b6fd1711b7205382..9515779f7f30f7b04d3e473abf73a72fc41f42f1 100644 (file)
@@ -7,7 +7,9 @@ EAPI=5
 PYTHON_COMPAT=( python2_7 )
 PYTHON_REQ_USE="xml"
 
-if [[ "${PV}" = "9999" ]]; then
+inherit eutils java-pkg-opt-2 linux-info python-any-r1 readme.gentoo
+
+if [[ ${PV} == 9999 ]]; then
        EGIT_REPO_URI="git://git.infradead.org/users/dwmw2/${PN}.git"
        inherit git-r3 autotools
 else
@@ -18,8 +20,6 @@ VPNC_VER=20140806
 SRC_URI="${ARCHIVE_URI}
        ftp://ftp.infradead.org/pub/vpnc-scripts/vpnc-scripts-${VPNC_VER}.tar.gz"
 
-inherit eutils java-pkg-opt-2 linux-info python-any-r1 readme.gentoo
-
 DESCRIPTION="Free client for Cisco AnyConnect SSL VPN software"
 HOMEPAGE="http://www.infradead.org/openconnect.html"
 
@@ -69,16 +69,17 @@ pkg_setup() {
 }
 
 src_unpack() {
-       if [[ ${PV} = 9999 ]]; then
+       if [[ ${PV} == 9999 ]]; then
                git-r3_src_unpack
        fi
        unpack ${A}
 }
 
 src_prepare() {
-       if [[ "${PV}" = 9999 ]]; then
+       if [[ ${PV} == 9999 ]]; then
                eautoreconf
        fi
+       epatch_user
 }
 
 src_configure() {