gspeakers-0.11-r2.ebuild 955 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. # Copyright 1999-2012 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=5
  4. GCONF_DEBUG="no"
  5. inherit autotools eutils flag-o-matic gnome2
  6. DESCRIPTION="GTK based loudspeaker enclosure and crossovernetwork designer"
  7. HOMEPAGE="http://gspeakers.sourceforge.net/"
  8. SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
  9. LICENSE="LGPL-2.1"
  10. SLOT="0"
  11. KEYWORDS="~amd64 ~ppc ~x86"
  12. IUSE=""
  13. RDEPEND="
  14. dev-cpp/gtkmm:2.4
  15. >=dev-libs/libsigc++-2.6:2
  16. dev-libs/libxml2:2
  17. || (
  18. sci-electronics/gnucap
  19. sci-electronics/ngspice
  20. sci-electronics/spice )
  21. "
  22. DEPEND="${RDEPEND}
  23. virtual/pkgconfig
  24. "
  25. src_prepare() {
  26. sed -i -e "s/-O0//" src/Makefile.am
  27. epatch "${FILESDIR}"/${P}-gcc43.patch
  28. epatch "${FILESDIR}"/${P}-glib-single-include.patch
  29. epatch "${FILESDIR}"/${P}-fix-sigc-includes.patch
  30. epatch "${FILESDIR}"/${P}-c++11.patch
  31. append-cxxflags '-std=c++11'
  32. mv configure.in configure.ac || die
  33. eautoreconf
  34. gnome2_src_prepare
  35. }