diff options
author | NP-Hardass <NP-Hardass@gentoo.org> | 2016-07-06 02:17:24 -0400 |
---|---|---|
committer | NP-Hardass <NP-Hardass@gentoo.org> | 2016-07-06 02:17:44 -0400 |
commit | 20018132667c2c787a3284ff52dbc01f85bc7c22 (patch) | |
tree | 773db95d9baa9f05948fdbcd35a948fa05f1f2f0 /eclass | |
parent | media-gfx/eom: Add gtk-doc for eautoreconf (diff) | |
download | gentoo-mate-20018132667c2c787a3284ff52dbc01f85bc7c22.tar.gz gentoo-mate-20018132667c2c787a3284ff52dbc01f85bc7c22.tar.bz2 gentoo-mate-20018132667c2c787a3284ff52dbc01f85bc7c22.zip |
eclass: mate*: Switch back to case statements
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/mate-desktop.org.eclass | 7 | ||||
-rw-r--r-- | eclass/mate.eclass | 14 |
2 files changed, 12 insertions, 9 deletions
diff --git a/eclass/mate-desktop.org.eclass b/eclass/mate-desktop.org.eclass index c57528d..6587957 100644 --- a/eclass/mate-desktop.org.eclass +++ b/eclass/mate-desktop.org.eclass @@ -13,9 +13,10 @@ # exporting some useful values like the MATE_BRANCH # EAPIs < 6 are banned. -if [[ "${EAPI:-0}" != "6" ]]; then - die "EAPI=${EAPI:-0} is not supported" -fi +case "${EAPI:-0}" in + 6) ;; + *) die "EAPI=${EAPI:-0} is not supported" ;; +esac if [[ ${PV} == 9999 ]]; then inherit git-r3 diff --git a/eclass/mate.eclass b/eclass/mate.eclass index 6e31a46..59feac2 100644 --- a/eclass/mate.eclass +++ b/eclass/mate.eclass @@ -15,9 +15,10 @@ # fact that MATE is a GNOME fork. For additional functions, see gnome2-utils.eclass. # Check EAPI only -if [[ "${EAPI:-0}" != "6" ]]; then - die "EAPI=${EAPI:-0} is not supported" -fi +case "${EAPI:-0}" in + 6) ;; + *) die "EAPI=${EAPI:-0} is not supported" ;; +esac # Inherit happens below after declaration of GNOME2_LA_PUNT @@ -32,9 +33,10 @@ GNOME2_LA_PUNT=${MATE_LA_PUNT:-""} inherit gnome2 autotools mate-desktop.org -if [[ "${EAPI:-0}" == "6" ]]; then - EXPORT_FUNCTIONS src_prepare src_configure src_install pkg_preinst pkg_postinst pkg_postrm -fi +case "${EAPI:-0}" in + 6) EXPORT_FUNCTIONS src_prepare src_configure src_install pkg_preinst pkg_postinst pkg_postrm ;; + *) die "EAPI=${EAPI:-0} is not supported" ;; +esac # Autotools requires our MATE m4 files DEPEND=">=mate-base/mate-common-${MATE_BRANCH}" |