falcon-0.9.6.8.ebuild 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. # Copyright 1999-2016 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI="5"
  4. inherit cmake-utils multilib
  5. MY_P="${P/f/F}"
  6. DESCRIPTION="An open source general purpose untyped language written in C++"
  7. HOMEPAGE="http://falconpl.org/"
  8. SRC_URI="http://falconpl.org/project_dl/_official_rel/${MY_P}.tgz"
  9. LICENSE="GPL-2"
  10. SLOT="0"
  11. KEYWORDS="~amd64 ~x86"
  12. IUSE="curl dbus debug gd gtk mysql pdf readline sdl sqlite"
  13. DEPEND="
  14. dev-libs/libpcre
  15. sys-libs/zlib
  16. curl? ( net-misc/curl )
  17. dbus? ( sys-apps/dbus )
  18. gd? ( media-libs/gd:= )
  19. gtk? (
  20. dev-libs/glib:2
  21. x11-libs/gtk+:2 )
  22. mysql? ( virtual/libmysqlclient:= )
  23. readline? ( sys-libs/readline:0 )
  24. pdf? ( media-libs/libharu )
  25. sdl? (
  26. media-libs/libsdl
  27. media-libs/sdl-image
  28. media-libs/sdl-mixer
  29. media-libs/sdl-ttf
  30. )
  31. sqlite? ( dev-db/sqlite:3 )
  32. "
  33. RDEPEND="${DEPEND}"
  34. S=${WORKDIR}/${MY_P}
  35. DOCS="AUTHORS ChangeLog README RELNOTES"
  36. PATCHES=(
  37. "${FILESDIR}/${P}-mongo-amd64.patch"
  38. "${FILESDIR}/${P}-mongo-stdint.patch"
  39. )
  40. src_configure() {
  41. local mycmakeargs=(
  42. -DFALCON_BUILD_CURL=$(usex curl)
  43. -DFALCON_BUILD_DBUS=$(usex dbus)
  44. -DFALCON_BUILD_GD2=$(usex gd)
  45. -DFALCON_BUILD_GTK=$(usex gtk)
  46. -DFALCON_BUILD_PDF=$(usex pdf)
  47. -DFALCON_BUILD_SDL=$(usex sdl)
  48. -DFALCON_DBI_BUILD_MYSQL=$(usex mysql)
  49. -DFALCON_DBI_BUILD_SQLITE=$(usex sqlite)
  50. -DFALCON_DISABLE_RPATH=ON
  51. -DFALCON_SKIP_BISON=ON
  52. -DFALCON_WITH_EDITLINE=$(usex readline)
  53. -DFALCON_WITH_MANPAGES=ON
  54. -DFALCON_WITH_INTERNAL_EDITLINE=OFF
  55. -DFALCON_WITH_INTERNAL_PCRE=OFF
  56. -DFALCON_WITH_INTERNAL_ZLIB=OFF
  57. -DFALCON_WITH_GPL_READLINE=ON
  58. )
  59. cmake-utils_src_configure
  60. }
  61. src_test() {
  62. pushd "${S}/tests/core/testsuite" > /dev/null || die
  63. "${CMAKE_BUILD_DIR}/bin/faltest"
  64. popd > /dev/null || die
  65. }