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.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 345F513933E for ; Tue, 13 Jul 2021 20:57:37 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 4D316E0DD7; Tue, 13 Jul 2021 20:57:35 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 313B4E0DCE for ; Tue, 13 Jul 2021 20:57:35 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 55A72342D0C for ; Tue, 13 Jul 2021 20:57:34 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id AF497827 for ; Tue, 13 Jul 2021 20:57:30 +0000 (UTC) From: "Conrad Kostecki" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Conrad Kostecki" Message-ID: <1626209715.4fd21f6c185abd1769a3724f80d6e490d6c074b2.conikost@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: media-sound/xwax/ X-VCS-Repository: repo/gentoo X-VCS-Files: media-sound/xwax/xwax-1.7-r1.ebuild X-VCS-Directories: media-sound/xwax/ X-VCS-Committer: conikost X-VCS-Committer-Name: Conrad Kostecki X-VCS-Revision: 4fd21f6c185abd1769a3724f80d6e490d6c074b2 X-VCS-Branch: master Date: Tue, 13 Jul 2021 20:57:30 +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: fd5731e5-ffa7-437c-9050-bf0e7a0ccd90 X-Archives-Hash: f96c51a16d437091fe2936944ad93f62 commit: 4fd21f6c185abd1769a3724f80d6e490d6c074b2 Author: Conrad Kostecki gentoo org> AuthorDate: Tue Jul 13 19:44:10 2021 +0000 Commit: Conrad Kostecki gentoo org> CommitDate: Tue Jul 13 20:55:15 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4fd21f6c media-sound/xwax: migrate to GLEP 81 Bug: https://bugs.gentoo.org/781575 Package-Manager: Portage-3.0.20, Repoman-3.0.3 Signed-off-by: Conrad Kostecki gentoo.org> media-sound/xwax/xwax-1.7-r1.ebuild | 87 +++++++++++++++++++++++++++++++++++++ 1 file changed, 87 insertions(+) diff --git a/media-sound/xwax/xwax-1.7-r1.ebuild b/media-sound/xwax/xwax-1.7-r1.ebuild new file mode 100644 index 00000000000..ecde10ea92a --- /dev/null +++ b/media-sound/xwax/xwax-1.7-r1.ebuild @@ -0,0 +1,87 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit toolchain-funcs + +DESCRIPTION="Digital vinyl emulation software" +HOMEPAGE="https://xwax.org/" +SRC_URI="https://xwax.org/releases/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ppc ppc64 x86" +IUSE="alsa jack oss cdda mp3 +fallback" + +REQUIRED_USE=" + || ( cdda mp3 fallback ) + || ( alsa jack oss ) +" + +DEPEND=" + media-fonts/dejavu + media-libs/libsdl + media-libs/sdl-ttf + sys-libs/glibc + sys-libs/pam + alsa? ( media-libs/alsa-lib ) + cdda? ( media-sound/cdparanoia ) + fallback? ( media-video/ffmpeg ) + jack? ( virtual/jack ) + mp3? ( media-sound/mpg123 ) +" + +RDEPEND=" + ${DEPEND} + acct-group/xwax +" + +DOCS=( README CHANGES ) + +src_prepare() { + default + # Remove the forced optimization from 'CFLAGS' and 'LDFLAGS' in + # the Makefile + # Also remove the dependency on the .version target so we don't need + # git just to build + sed -i -e 's/\(^\(LD\|C\)FLAGS.*\)-O[0-9]\(.*\)/\1\3/g' \ + -e 's/^xwax\.o:.*\.version//' \ + Makefile || die "sed failed" +} + +src_configure() { + tc-export CC + econf \ + --prefix "${EPREFIX}/usr" \ + $(use_enable alsa) \ + $(use_enable jack) \ + $(use_enable oss) +} + +src_compile() { + # EXECDIR is the default directory in which xwax will look for + # the 'xwax-import' and 'xwax-scan' scripts + emake EXECDIR="\$(BINDIR)" VERSION="${PV}" xwax +} + +src_install() { + # This is easier than setting all the environment variables + # needed, running the sed script required to get the man directory + # correct, and removing the GPL-2 after a 'make install' run + dobin xwax + newbin scan xwax-scan + newbin import xwax-import + doman xwax.1 + + dodoc ${DOCS} + + insinto "/etc/security/limits.d" + newins "${FILESDIR}/xwax-etc-security-limits.conf" xwax.conf +} + +pkg_postinst() { + elog "Be sure to add any users that will be using ${PN} to the" + elog "\"${PN}\" group. Doing so will allow processes that user" + elog "runs to request realtime priority." +}