logo

overlay

My own overlay for experimentations, use with caution, no support is provided git clone https://hacktivis.me/git/overlay.git

tenacity-9999.ebuild (2245B)


  1. # Copyright 2021-2022 Gentoo Authors
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=8
  4. WX_GTK_VER="3.1"
  5. PYTHON_COMPAT=( python3_{7..11} )
  6. inherit git-r3 cmake python-single-r1 wxwidgets xdg
  7. DESCRIPTION="easy-to-use, cross-platform multi-track audio editor/recorder"
  8. HOMEPAGE="https://tenacityaudio.org/"
  9. EGIT_REPO_URI="https://github.com/tenacityteam/tenacity.git"
  10. EGIT_SUBMODULES=()
  11. # GPL-2: Tenacity code
  12. # CC-BY-3.0: Tenacity Documentation
  13. # CC-BY-4.0: Audacity Logo
  14. # Nyquist: BSD-style license for ./lib-src/libnyquist
  15. # BSD: ./lib-src/libnyquist/xlisp
  16. LICENSE="GPL-2 CC-BY-3.0 CC-BY-4.0 Nyquist BSD"
  17. SLOT="0"
  18. IUSE="+midi id3tag mp3 ogg +vorbis +flac sbsms soundtouch ffmpeg +lv2 twolame +vst2 vamp"
  19. REQUIRED_USE="${PYTHON_REQUIRED_USE}"
  20. # vst2 dep on GTK+3[X]: https://github.com/tenacityteam/tenacity/issues/614
  21. RDEPEND="
  22. ${PYTHON_DEPS}
  23. virtual/opengl
  24. sys-libs/zlib:=
  25. dev-libs/expat
  26. media-sound/lame
  27. media-libs/libsndfile
  28. media-libs/soxr
  29. dev-db/sqlite:3
  30. dev-libs/glib:2
  31. x11-libs/gtk+:3
  32. x11-libs/wxGTK:${WX_GTK_VER}
  33. midi? (
  34. media-libs/portmidi:=
  35. media-libs/portsmf:=
  36. )
  37. id3tag? ( media-libs/libid3tag:= )
  38. mp3? ( media-libs/libmad )
  39. twolame? ( media-sound/twolame )
  40. ogg? ( media-libs/libogg )
  41. vorbis? ( media-libs/libvorbis )
  42. flac? ( media-libs/flac:=[cxx] )
  43. sbsms? ( media-libs/libsbsms )
  44. soundtouch? ( media-libs/libsoundtouch:= )
  45. ffmpeg? ( media-video/ffmpeg:= )
  46. lv2? (
  47. media-libs/lv2
  48. media-libs/lilv
  49. media-libs/suil
  50. )
  51. vamp? ( media-libs/vamp-plugin-sdk )
  52. vst2? ( x11-libs/gtk+:3[X] )
  53. "
  54. DEPEND="
  55. ${RDEPEND}
  56. sys-devel/gettext
  57. app-text/scdoc
  58. "
  59. # src/CMakeLists.txt already installs README.md
  60. DOCS=()
  61. src_prepare() {
  62. cmake_src_prepare
  63. sed -i 's;${_DATADIR}/doc/${AUDACITY_NAME};${_DATADIR}/doc/${PF};' \
  64. src/CMakeLists.txt || die
  65. }
  66. src_configure() {
  67. setup-wxwidgets
  68. local mycmakeargs=(
  69. -DBUILD_MANPAGE=ON
  70. -DMIDI=$(usex midi)
  71. -DID3TAG=$(usex id3tag)
  72. -DMP3_DECODING=$(usex mp3)
  73. -DMP2_ENCODING=$(usex twolame)
  74. -DOGG=$(usex ogg)
  75. -DVORBIS=$(usex vorbis)
  76. -DFLAC=$(usex flac)
  77. -DSBSMS=$(usex sbsms)
  78. -DSOUNDTOUCH=$(usex soundtouch)
  79. -DFFMPEG=$(usex ffmpeg)
  80. -DVAMP=$(usex vamp)
  81. -DLV2=$(usex lv2)
  82. -DVST2=$(usex vst2)
  83. )
  84. cmake_src_configure
  85. }