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 C2560158089 for ; Sun, 24 Sep 2023 22:29:18 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 05C222BC028; Sun, 24 Sep 2023 22:29:18 +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 DB23F2BC028 for ; Sun, 24 Sep 2023 22:29:17 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (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 smtp.gentoo.org (Postfix) with ESMTPS id D5778335C2E for ; Sun, 24 Sep 2023 22:29:16 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 86016F25 for ; Sun, 24 Sep 2023 22:29:15 +0000 (UTC) From: "YiFei Zhu" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "YiFei Zhu" Message-ID: <1695594538.c78a7b59498b1abbe921e8d6c1ef52c22abd8492.zhuyifei1999@gentoo> Subject: [gentoo-commits] repo/proj/guru:dev commit in: media-sound/musikcube/ X-VCS-Repository: repo/proj/guru X-VCS-Files: media-sound/musikcube/Manifest media-sound/musikcube/musikcube-3.0.2.ebuild X-VCS-Directories: media-sound/musikcube/ X-VCS-Committer: zhuyifei1999 X-VCS-Committer-Name: YiFei Zhu X-VCS-Revision: c78a7b59498b1abbe921e8d6c1ef52c22abd8492 X-VCS-Branch: dev Date: Sun, 24 Sep 2023 22:29:15 +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: e1a153d1-5de7-450d-9962-3ea0f6206cf6 X-Archives-Hash: aa6a8f07a3a3353e3d5dba76bbd5b7c4 commit: c78a7b59498b1abbe921e8d6c1ef52c22abd8492 Author: YiFei Zhu gmail com> AuthorDate: Sun Sep 24 22:26:45 2023 +0000 Commit: YiFei Zhu gmail com> CommitDate: Sun Sep 24 22:28:58 2023 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=c78a7b59 media-sound/musikcube: add 3.0.2 Signed-off-by: YiFei Zhu gmail.com> media-sound/musikcube/Manifest | 1 + media-sound/musikcube/musikcube-3.0.2.ebuild | 98 ++++++++++++++++++++++++++++ 2 files changed, 99 insertions(+) diff --git a/media-sound/musikcube/Manifest b/media-sound/musikcube/Manifest index e6427367e9..0ce1f179d3 100644 --- a/media-sound/musikcube/Manifest +++ b/media-sound/musikcube/Manifest @@ -1 +1,2 @@ DIST musikcube-3.0.1.tar.gz 4759002 BLAKE2B c312067fefaeaeb1c56b15fdcc83e1a73be648d88db54dc43d5c0f3e2ed1f226480612461b7239087ebfadcbcc38ed432622873fc40d3739daca1d32d19bea7f SHA512 ff18b69bf9a295925ede561c80a66f3fce7c00fdc29906a39e89b520c49467ddaa88cb69406a8bd012eaa851716b6515e93a5a0d0f75f2f24e64ced3fef4b9c7 +DIST musikcube-3.0.2.tar.gz 4800648 BLAKE2B 64672127c90b6bfcc4e3dcb700b9fede0b88ac8d9dc3b2bd84f666b8ed000f9185a0622f06548b29ff03e143e1a49461d3b51727fddce189569a97904d834dc4 SHA512 33d7fa0768c235afa2d877fb2bd3523f47c2fcf1bd500daabbd3755645439c51a1d477e8e8fe7f2a6aba451121b0d600e413fa0a491da9947a4dff7cb0430d82 diff --git a/media-sound/musikcube/musikcube-3.0.2.ebuild b/media-sound/musikcube/musikcube-3.0.2.ebuild new file mode 100644 index 0000000000..f03889ccf1 --- /dev/null +++ b/media-sound/musikcube/musikcube-3.0.2.ebuild @@ -0,0 +1,98 @@ +# Copyright 2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake + +DESCRIPTION="Excellent terminal music player, support almost every known sound system." +HOMEPAGE="https://github.com/clangen/musikcube" +SRC_URI="https://github.com/clangen/${PN}/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64" +IUSE="+alsa +libopenmpt pipewire pulseaudio +mpris portaudio sndio systemd elogind basu" + +REQUIRED_USE=" + mpris? ( ^^ ( systemd elogind basu ) ) +" + +DEPEND=" + net-libs/libmicrohttpd:= + sys-libs/ncurses:= + media-libs/libogg + media-video/ffmpeg:= + sys-libs/zlib:= + media-libs/libvorbis + net-misc/curl + media-sound/lame + dev-libs/libev + media-libs/taglib + dev-cpp/asio + libopenmpt? ( + media-libs/libopenmpt + media-sound/mpg123 + ) + mpris? ( + || ( + elogind? ( >=sys-auth/elogind-239 ) + systemd? ( sys-apps/systemd ) + basu? ( sys-libs/basu ) + ) + ) + pipewire? ( + media-video/pipewire:= + ) + portaudio? ( + media-libs/portaudio + ) + pulseaudio? ( + media-libs/libpulse + ) + sndio? ( + media-sound/sndio:= + ) + alsa? ( + media-libs/alsa-lib + ) +" + +RDEPEND="${DEPEND}" + +BDEPEND=" + dev-util/cmake + dev-util/patchelf +" +PATCHES=( + "${FILESDIR}/musikcube-3.0.1-tinfow.patch" +) + +src_configure() { + # Gentoo users enable ccache via e.g. FEATURES=ccache or + # other means. We don't want the build system to enable it for us. + sed -i -e '/find_program(CCACHE_FOUND ccache)/d' CMakeLists.txt || die + + use mpris || sed -i '/pkg_check_modules.*SDBUS/d' src/plugins/mpris/CMakeLists.txt || die + + local mycmakeargs=( + $(usex alsa '' -DLIBASOUND=LIBASOUND-NOTFOUND) + -DENABLE_PIPEWIRE=$(usex pipewire true false) + $(usex pulseaudio '' -DLIBPULSE=LIBPULSE-NOTFOUND) + $(usex portaudio '' -DLIBPORTAUDIO=LIBPORTAUDIO-NOTFOUND) + $(usex libopenmpt '' -DLIBOPENMPT=LIBOPENMPT-NOTFOUND) + $(usex sndio '' -DLIBSNDIO=LIBSNDIO-NOTFOUND) + -DBUILD_STANDALONE=false + ) + + if use mpris; then + if use elogind; then + mycmakeargs+=( -DUSE_ELOGIND=true ) + fi + if use basu; then + mycmakeargs+=( -DUSE_BASU=true ) + fi + fi + + cmake_src_configure +}