sys-auth/google-authenticator: Unconditionally run autotools
authorSven Wegener <swegener@gentoo.org>
Thu, 7 Sep 2017 21:13:18 +0000 (21:13 +0000)
committerSven Wegener <swegener@gentoo.org>
Thu, 7 Sep 2017 21:16:01 +0000 (21:16 +0000)
The github archive does not contain pregenerated autotools files.

Package-Manager: Portage-2.3.6, Repoman-2.3.3
Signed-off-by: Sven Wegener <swegener@gentoo.org>
sys-auth/google-authenticator/google-authenticator-1.04.ebuild
sys-auth/google-authenticator/google-authenticator-9999.ebuild

index e3259cba968a6763ab89c6ec2c58e3b9cf6fb7ce..1c0f07fab0286815782774a7cc7eabf8fef94180 100644 (file)
@@ -3,11 +3,11 @@
 
 EAPI="6"
 
-inherit multilib
+inherit autotools multilib
 
 if [[ ${PV} == 9999 ]] ; then
        EGIT_REPO_URI="https://github.com/google/google-authenticator-libpam.git"
-       inherit git-r3 autotools
+       inherit git-r3
 else
        SRC_URI="https://github.com/google/google-authenticator-libpam/archive/${PV}.tar.gz -> ${P}.tar.gz"
        KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
@@ -26,9 +26,7 @@ RDEPEND="${DEPEND}"
 
 src_prepare() {
        default
-       if [[ ${PV} == 9999 ]] ; then
-               eautoreconf
-       fi
+       eautoreconf
 }
 
 src_compile() {
index e3259cba968a6763ab89c6ec2c58e3b9cf6fb7ce..1c0f07fab0286815782774a7cc7eabf8fef94180 100644 (file)
@@ -3,11 +3,11 @@
 
 EAPI="6"
 
-inherit multilib
+inherit autotools multilib
 
 if [[ ${PV} == 9999 ]] ; then
        EGIT_REPO_URI="https://github.com/google/google-authenticator-libpam.git"
-       inherit git-r3 autotools
+       inherit git-r3
 else
        SRC_URI="https://github.com/google/google-authenticator-libpam/archive/${PV}.tar.gz -> ${P}.tar.gz"
        KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
@@ -26,9 +26,7 @@ RDEPEND="${DEPEND}"
 
 src_prepare() {
        default
-       if [[ ${PV} == 9999 ]] ; then
-               eautoreconf
-       fi
+       eautoreconf
 }
 
 src_compile() {