# Copyright 1999-2018 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 EAPI=6 inherit gnome2 autotools DESCRIPTION="C++ bindings for gtkspell3" HOMEPAGE="https://github.com/manisandro/gtkspellmm" LICENSE="GPL-2+" SLOT="3/0" KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ppc ppc64 ~sh sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux ~sparc-solaris ~x86-solaris" #IUSE="doc examples test" SRC_URI="https://github.com/manisandro/gtkspellmm/archive/gtkspellmm_3_0_5.tar.gz" RDEPEND=" >=x11-libs/gtk+-3.0:3 >=app-text/gtkspell-3.0 >=dev-cpp/glibmm-2.4 >=dev-cpp/gtkmm-3.0 " DEPEND="${RDEPEND} virtual/pkgconfig " src_unpack() { unpack ${A} # Fix unpacked folder name #echo "Source dir: " ${S} CURRENT_NAME="$(sed 's/gtkspellmm-3\.0\.5$/gtkspellmm-gtkspellmm_3_0_5/' <(echo ${S}))" #echo "Actual dir: " $CURRENT_NAME mv $CURRENT_NAME "${S}" } src_prepare() { gnome2_src_prepare mm-common-prepare --copy --force "${S}" eautoreconf } src_configure() { # Tarball does not contain generated sources # therefore enable maintainer mode to obtain them ECONF_SOURCE="${S}" gnome2_src_configure \ --enable-maintainer-mode } src_install() { gnome2_src_install } src_install_all() { DOCS="AUTHORS ChangeLog NEWS README" einstalldocs }