You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

58 lines
1.2KB

  1. # Copyright 1999-2018 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=6
  4. inherit gnome2 autotools
  5. DESCRIPTION="C++ bindings for gtkspell3"
  6. HOMEPAGE="https://github.com/manisandro/gtkspellmm"
  7. LICENSE="GPL-2+"
  8. SLOT="3/0"
  9. KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ppc ppc64 ~sh sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux ~sparc-solaris ~x86-solaris"
  10. #IUSE="doc examples test"
  11. SRC_URI="https://github.com/manisandro/gtkspellmm/archive/gtkspellmm_3_0_5.tar.gz"
  12. RDEPEND="
  13. >=x11-libs/gtk+-3.0:3
  14. >=app-text/gtkspell-3.0
  15. >=dev-cpp/glibmm-2.4
  16. >=dev-cpp/gtkmm-3.0
  17. "
  18. DEPEND="${RDEPEND}
  19. virtual/pkgconfig
  20. "
  21. src_unpack() {
  22. unpack ${A}
  23. # Fix unpacked folder name
  24. #echo "Source dir: " ${S}
  25. CURRENT_NAME="$(sed 's/gtkspellmm-3\.0\.5$/gtkspellmm-gtkspellmm_3_0_5/' <(echo ${S}))"
  26. #echo "Actual dir: " $CURRENT_NAME
  27. mv $CURRENT_NAME "${S}"
  28. }
  29. src_prepare() {
  30. gnome2_src_prepare
  31. mm-common-prepare --copy --force "${S}"
  32. eautoreconf
  33. }
  34. src_configure() {
  35. # Tarball does not contain generated sources
  36. # therefore enable maintainer mode to obtain them
  37. ECONF_SOURCE="${S}" gnome2_src_configure \
  38. --enable-maintainer-mode
  39. }
  40. src_install() {
  41. gnome2_src_install
  42. }
  43. src_install_all() {
  44. DOCS="AUTHORS ChangeLog NEWS README"
  45. einstalldocs
  46. }