diff options
author | Ryan Fox <flewkey@2a03.party> | 2021-09-19 18:38:30 -0700 |
---|---|---|
committer | Ryan Fox <flewkey@2a03.party> | 2021-09-19 18:48:26 -0700 |
commit | 8bd110a3b6bad270a0b6af49e712e090e8931398 (patch) | |
tree | 14eb0463b6f4a7b08cb20897aec850b433600fca /media-sound | |
parent | media-libs/portsmf: New package (diff) | |
download | guru-8bd110a3b6bad270a0b6af49e712e090e8931398.tar.gz guru-8bd110a3b6bad270a0b6af49e712e090e8931398.tar.bz2 guru-8bd110a3b6bad270a0b6af49e712e090e8931398.zip |
media-sound/tenacity: New package
Package-Manager: Portage-3.0.20, Repoman-3.0.3
Signed-off-by: Ryan Fox <flewkey@2a03.party>
Diffstat (limited to 'media-sound')
-rw-r--r-- | media-sound/tenacity/metadata.xml | 22 | ||||
-rw-r--r-- | media-sound/tenacity/tenacity-9999.ebuild | 85 |
2 files changed, 107 insertions, 0 deletions
diff --git a/media-sound/tenacity/metadata.xml b/media-sound/tenacity/metadata.xml new file mode 100644 index 000000000..f14033f0a --- /dev/null +++ b/media-sound/tenacity/metadata.xml @@ -0,0 +1,22 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>flewkey@2a03.party</email> + <name>Ryan Fox</name> + </maintainer> + <use> + <flag name="midi">Enables MIDI support</flag> + <flag name="id3tag">Enables ID3 tagging with id3tag library</flag> + <flag name="mp3">Enables MP3 decoding support</flag> + <flag name="mp2">Enables MP2 encoding support</flag> + <flag name="sbsms">Enables SBSMS timestretching support</flag> + <flag name="soundtouch">Enables SoundTouch timestretching support</flag> + <flag name="vamp">Enables VAMP plugin support</flag> + <flag name="lv2">Enables LV2 plugin support</flag> + <flag name="vst2">Enables VST2 plugin support</flag> + </use> + <upstream> + <remote-id type="github">tenacityteam/tenacity</remote-id> + </upstream> +</pkgmetadata> diff --git a/media-sound/tenacity/tenacity-9999.ebuild b/media-sound/tenacity/tenacity-9999.ebuild new file mode 100644 index 000000000..a4f7bfa2f --- /dev/null +++ b/media-sound/tenacity/tenacity-9999.ebuild @@ -0,0 +1,85 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +WX_GTK_VER="3.0-gtk3" + +inherit git-r3 cmake wxwidgets xdg + +EGIT_REPO_URI="https://github.com/tenacityteam/tenacity.git" + +DESCRIPTION="Audio editor for Linux" +HOMEPAGE="https://tenacityaudio.org/" +LICENSE="GPL-2" +SLOT="0" +IUSE="midi id3tag +mp3 mp2 +ogg +vorbis +flac sbsms soundtouch ffmpeg vamp +lv2 vst2" + +DEPEND=" + dev-db/sqlite + dev-libs/serd + dev-libs/sord + x11-libs/wxGTK:${WX_GTK_VER} + media-libs/libsndfile + media-libs/portaudio + media-libs/soxr + media-sound/lame + sys-libs/zlib + ffmpeg? ( media-video/ffmpeg ) + flac? ( media-libs/flac ) + id3tag? ( media-libs/libid3tag ) + lv2? ( + media-libs/lv2 + media-libs/lilv + media-libs/suil + ) + midi? ( + media-libs/portmidi + media-libs/portsmf + ) + mp2? ( media-sound/twolame ) + mp3? ( media-libs/libmad ) + ogg? ( media-libs/libogg ) + sbsms? ( media-libs/libsbsms ) + soundtouch? ( media-libs/libsoundtouch ) + vamp? ( media-libs/vamp-plugin-sdk ) + vorbis? ( media-libs/libvorbis ) + vst2? ( x11-libs/gtk+[X] ) +" +RDEPEND="${DEPEND}" +BDEPEND="" + +src_prepare() { + sed -i 's/set( CMAKE_BUILD_WITH_INSTALL_RPATH FALSE )/set( CMAKE_BUILD_WITH_INSTALL_RPATH TRUE )/' "${S}/CMakeLists.txt" || die + cmake_src_prepare +} + +src_configure() { + setup-wxwidgets + local mycmakeargs=( + "-DVCPKG=OFF" + "-DMIDI=$(usex midi ON OFF)" + "-DID3TAG=$(usex id3tag ON OFF)" + "-DMP3_DECODING=$(usex mp3 ON OFF)" + "-DMP2_ENCODING=$(usex mp2 ON OFF)" + "-DOGG=$(usex ogg ON OFF)" + "-DVORBIS=$(usex vorbis ON OFF)" + "-DFLAC=$(usex flac ON OFF)" + "-DSBSMS=$(usex sbsms ON OFF)" + "-DSOUNDTOUCH=$(usex soundtouch ON OFF)" + "-DFFMPEG=$(usex ffmpeg ON OFF)" + "-DVAMP=$(usex vamp ON OFF)" + "-DLV2=$(usex lv2 ON OFF)" + "-DVST2=$(usex vst2 ON OFF)" + ) + cmake_src_configure +} + +src_install() { + cmake_src_install + # TODO: Improve installation upstream + rm "${ED}/usr/tenacity" || die + mv "${ED}/usr/share/doc/${PN}" "${ED}/usr/share/doc/${PF}" || die + into "/usr/$(get_libdir)/${PN}" + dolib.so "${BUILD_DIR}/lib-src/libnyquist/liblibnyquist.so" +} |