freedict.eclass: require EAPI=6
authorMarty E. Plummer <hanetzer@startmail.com>
Wed, 28 Mar 2018 05:31:10 +0000 (07:31 +0200)
committerUlrich Müller <ulm@gentoo.org>
Wed, 4 Apr 2018 11:51:04 +0000 (13:51 +0200)
As a pretty simple eclass, which only inherited multilib in order to
get $(get_libdir) and eutils for who knows why, and all its consumers
bumped to EAPI=6, it makes sense to require EAPI 6 for this eclass.

eclass/freedict.eclass

index 06419626d348f203df3a822a72e6061603214a40..b795f53f9541085c222b63903ae2d3d6d64011d4 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2014 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 # @ECLASS: freedict.eclass
 # @DESCRIPTION:
 # Please see above for a description.
 
-inherit eutils multilib
-
-IUSE=""
+case ${EAPI:-0} in
+       6) ;;
+       *) die "${ECLASS}.eclass is banned in EAPI=${EAPI}" ;;
+esac
 
 MY_P=${PN/freedict-/}
 
-S="${WORKDIR}"
 DESCRIPTION="Freedict for language translation from ${FORLANG} to ${TOLANG}"
-HOMEPAGE="http://www.freedict.de"
+HOMEPAGE="http://freedict.sourceforge.net/"
 SRC_URI="http://freedict.sourceforge.net/download/linux/${MY_P}.tar.gz"
 
+LICENSE="GPL-2+"
 SLOT="0"
-LICENSE="GPL-2"
 
-DEPEND="app-text/dictd"
+RDEPEND="app-text/dictd"
+
+S="${WORKDIR}"
 
 # @FUNCTION: freedict_src_install
 # @DESCRIPTION: