app-emacs/twittering-mode: [QA] Port to git-r3
authorDavid Seifert <soap@gentoo.org>
Mon, 25 Dec 2017 14:04:03 +0000 (15:04 +0100)
committerDavid Seifert <soap@gentoo.org>
Mon, 25 Dec 2017 14:42:23 +0000 (15:42 +0100)
Package-Manager: Portage-2.3.19, Repoman-2.3.6

app-emacs/twittering-mode/twittering-mode-2.0.0.ebuild
app-emacs/twittering-mode/twittering-mode-3.0.0.ebuild
app-emacs/twittering-mode/twittering-mode-9999.ebuild

index b858dc10fc4e2de84d5a250d407640da9ea33546..1e802fc217fcaa7e304ed43f02bea96ba5083d34 100644 (file)
@@ -1,15 +1,13 @@
 # Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=4
+EAPI=6
 
 inherit elisp elisp-common eutils
 
-if [ "${PV}" = "9999" ]; then
+if [[ ${PV} == *9999 ]]; then
        EGIT_REPO_URI="https://github.com/hayamiz/twittering-mode.git"
-       inherit git-2
-       SRC_URI=""
-       KEYWORDS=""
+       inherit git-r3
        IUSE="doc"
 else
        SRC_URI="mirror://sourceforge/twmode/${P}.tar.gz"
@@ -29,7 +27,7 @@ RDEPEND="app-crypt/gnupg"
 
 src_compile() {
        elisp-compile twittering-mode.el || die
-       [ "${PV}" = "9999" ] && use doc && emake -C doc/manual
+       [[ ${PV} == *9999 ]] && use doc && emake -C doc/manual
 }
 
 src_test() {
@@ -37,6 +35,6 @@ src_test() {
 }
 
 src_install() {
-       [ "${PV}" = "9999" ] && use doc && dodoc doc/manual/twmode/twmode.html
+       [[ ${PV} == *9999 ]] && use doc && dodoc doc/manual/twmode/twmode.html
        elisp-install ${PN} twittering-mode.el *.elc || die
 }
index b858dc10fc4e2de84d5a250d407640da9ea33546..1e802fc217fcaa7e304ed43f02bea96ba5083d34 100644 (file)
@@ -1,15 +1,13 @@
 # Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=4
+EAPI=6
 
 inherit elisp elisp-common eutils
 
-if [ "${PV}" = "9999" ]; then
+if [[ ${PV} == *9999 ]]; then
        EGIT_REPO_URI="https://github.com/hayamiz/twittering-mode.git"
-       inherit git-2
-       SRC_URI=""
-       KEYWORDS=""
+       inherit git-r3
        IUSE="doc"
 else
        SRC_URI="mirror://sourceforge/twmode/${P}.tar.gz"
@@ -29,7 +27,7 @@ RDEPEND="app-crypt/gnupg"
 
 src_compile() {
        elisp-compile twittering-mode.el || die
-       [ "${PV}" = "9999" ] && use doc && emake -C doc/manual
+       [[ ${PV} == *9999 ]] && use doc && emake -C doc/manual
 }
 
 src_test() {
@@ -37,6 +35,6 @@ src_test() {
 }
 
 src_install() {
-       [ "${PV}" = "9999" ] && use doc && dodoc doc/manual/twmode/twmode.html
+       [[ ${PV} == *9999 ]] && use doc && dodoc doc/manual/twmode/twmode.html
        elisp-install ${PN} twittering-mode.el *.elc || die
 }
index b858dc10fc4e2de84d5a250d407640da9ea33546..1e802fc217fcaa7e304ed43f02bea96ba5083d34 100644 (file)
@@ -1,15 +1,13 @@
 # Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=4
+EAPI=6
 
 inherit elisp elisp-common eutils
 
-if [ "${PV}" = "9999" ]; then
+if [[ ${PV} == *9999 ]]; then
        EGIT_REPO_URI="https://github.com/hayamiz/twittering-mode.git"
-       inherit git-2
-       SRC_URI=""
-       KEYWORDS=""
+       inherit git-r3
        IUSE="doc"
 else
        SRC_URI="mirror://sourceforge/twmode/${P}.tar.gz"
@@ -29,7 +27,7 @@ RDEPEND="app-crypt/gnupg"
 
 src_compile() {
        elisp-compile twittering-mode.el || die
-       [ "${PV}" = "9999" ] && use doc && emake -C doc/manual
+       [[ ${PV} == *9999 ]] && use doc && emake -C doc/manual
 }
 
 src_test() {
@@ -37,6 +35,6 @@ src_test() {
 }
 
 src_install() {
-       [ "${PV}" = "9999" ] && use doc && dodoc doc/manual/twmode/twmode.html
+       [[ ${PV} == *9999 ]] && use doc && dodoc doc/manual/twmode/twmode.html
        elisp-install ${PN} twittering-mode.el *.elc || die
 }