From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id C0666158094 for ; Thu, 30 Jun 2022 02:03:04 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 852D5E0ADA; Thu, 30 Jun 2022 02:03:02 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 61143E0ADA for ; Thu, 30 Jun 2022 02:03:02 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 4143C341A48 for ; Thu, 30 Jun 2022 02:03:01 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 9E2FA51F for ; Thu, 30 Jun 2022 02:02:59 +0000 (UTC) From: "Ionen Wolkens" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Ionen Wolkens" Message-ID: <1656553840.873f166e7e7197040d2efe407b7da4db809ee1ad.ionen@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/sdl_audiolib/ X-VCS-Repository: repo/gentoo X-VCS-Files: media-libs/sdl_audiolib/sdl_audiolib-9999.ebuild X-VCS-Directories: media-libs/sdl_audiolib/ X-VCS-Committer: ionen X-VCS-Committer-Name: Ionen Wolkens X-VCS-Revision: 873f166e7e7197040d2efe407b7da4db809ee1ad X-VCS-Branch: master Date: Thu, 30 Jun 2022 02:02:59 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: c6242f12-b1e1-4d82-acce-bb184c1a1459 X-Archives-Hash: 89e593961b3a3da75f6a5c8e3551876b commit: 873f166e7e7197040d2efe407b7da4db809ee1ad Author: Ionen Wolkens gentoo org> AuthorDate: Thu Jun 30 01:25:11 2022 +0000 Commit: Ionen Wolkens gentoo org> CommitDate: Thu Jun 30 01:50:40 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=873f166e media-libs/sdl_audiolib: sync live Signed-off-by: Ionen Wolkens gentoo.org> media-libs/sdl_audiolib/sdl_audiolib-9999.ebuild | 67 +++++++++++++++--------- 1 file changed, 42 insertions(+), 25 deletions(-) diff --git a/media-libs/sdl_audiolib/sdl_audiolib-9999.ebuild b/media-libs/sdl_audiolib/sdl_audiolib-9999.ebuild index d993c84aa88b..961a40fde5e4 100644 --- a/media-libs/sdl_audiolib/sdl_audiolib-9999.ebuild +++ b/media-libs/sdl_audiolib/sdl_audiolib-9999.ebuild @@ -5,24 +5,28 @@ EAPI=8 inherit cmake -DESCRIPTION="audio decoding, resampling and mixing library" -HOMEPAGE="https://github.com/realnc/SDL_audiolib" -if [[ "${PV}" == *9999 ]] ; then +if [[ ${PV} == 9999 ]] ; then inherit git-r3 EGIT_REPO_URI="https://github.com/realnc/SDL_audiolib.git" else - # No official releases from upstream yet - SRC_URI="https://dev.gentoo.org/~polynomial-c/dist/${P}.tar.xz" + SDLAUDIO_COMMIT="" + SRC_URI="https://github.com/realnc/SDL_audiolib/archive/${SDLAUDIO_COMMIT}.tar.gz -> ${P}.tar.gz" + S="${WORKDIR}/${PN/sdl/SDL}-${SDLAUDIO_COMMIT}" KEYWORDS="~amd64 ~x86" fi -LICENSE="LGPL-3" -SLOT="0" -IUSE="fluidsynth libsamplerate modplug mpg123 musepack openmpt opus sndfile soxr vorbis" +DESCRIPTION="Audio decoding, resampling and mixing library for SDL" +HOMEPAGE="https://github.com/realnc/SDL_audiolib/" + +LICENSE="LGPL-3+ BSD-2 || ( MIT Unlicense )" +SLOT="0" +IUSE="doc flac fluidsynth libsamplerate modplug mpg123 musepack openmpt opus sndfile soxr vorbis wildmidi" RDEPEND=" - media-libs/libsdl2 - fluidsynth? ( media-sound/fluidsynth ) + dev-libs/libfmt:= + media-libs/libsdl2[sound] + flac? ( media-libs/flac ) + fluidsynth? ( media-sound/fluidsynth:= ) libsamplerate? ( media-libs/libsamplerate ) modplug? ( media-libs/libmodplug ) mpg123? ( media-sound/mpg123 ) @@ -32,28 +36,41 @@ RDEPEND=" sndfile? ( media-libs/libsndfile ) soxr? ( media-libs/soxr ) vorbis? ( media-libs/libvorbis ) -" + wildmidi? ( media-sound/wildmidi )" DEPEND="${RDEPEND}" -BDEPEND=" - virtual/pkgconfig -" +BDEPEND="doc? ( app-doc/doxygen )" src_configure() { local mycmakeargs=( -DUSE_DEC_ADLMIDI=OFF -DUSE_DEC_BASSMIDI=OFF - -DUSE_DEC_FLUIDSYNTH="$(usex fluidsynth)" - -DUSE_DEC_MODPLUG="$(usex modplug)" - -DUSE_DEC_MPG123="$(usex mpg123)" - -DUSE_DEC_MUSEPACK="$(usex musepack)" - -DUSE_DEC_OPENMPT="$(usex openmpt)" - -DUSE_DEC_LIBOPUSFILE="$(usex opus)" - -DUSE_DEC_SNDFILE="$(usex sndfile)" - -DUSE_DEC_LIBVORBIS="$(usex vorbis)" - -DUSE_DEC_WILDMIDI=OFF + -DUSE_DEC_FLAC=$(usex flac) + -DUSE_DEC_FLUIDSYNTH=$(usex fluidsynth) + -DUSE_DEC_LIBOPUSFILE=$(usex opus) + -DUSE_DEC_LIBVORBIS=$(usex vorbis) + -DUSE_DEC_MODPLUG=$(usex modplug) + -DUSE_DEC_MPG123=$(usex mpg123) + -DUSE_DEC_MUSEPACK=$(usex musepack) + -DUSE_DEC_OPENMPT=$(usex openmpt) + -DUSE_DEC_SNDFILE=$(usex sndfile) + -DUSE_DEC_WILDMIDI=$(usex wildmidi) -DUSE_DEC_XMP=OFF - -DUSE_RESAMP_SOXR="$(usex soxr)" - -DUSE_RESAMP_SRC="$(usex libsamplerate)" + -DUSE_RESAMP_SOXR=$(usex soxr) + -DUSE_RESAMP_SRC=$(usex libsamplerate) + -DWITH_SYSTEM_FMTLIB=ON ) + cmake_src_configure } + +src_compile() { + cmake_src_compile + + use !doc || doxygen "${BUILD_DIR}"/Doxyfile || die +} + +src_install() { + cmake_src_install + + use doc && dodoc -r "${BUILD_DIR}"/doc/html +}