diff options
author | Conrad Kostecki <conikost@gentoo.org> | 2021-07-13 21:44:10 +0200 |
---|---|---|
committer | Conrad Kostecki <conikost@gentoo.org> | 2021-07-13 22:55:15 +0200 |
commit | 4fd21f6c185abd1769a3724f80d6e490d6c074b2 (patch) | |
tree | 7b74951dfe677c32a8fea0a9b46371b00c92ed67 /media-sound/xwax | |
parent | net-dns/opendnssec: drop old version (diff) | |
download | gentoo-4fd21f6c185abd1769a3724f80d6e490d6c074b2.tar.gz gentoo-4fd21f6c185abd1769a3724f80d6e490d6c074b2.tar.bz2 gentoo-4fd21f6c185abd1769a3724f80d6e490d6c074b2.zip |
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 <conikost@gentoo.org>
Diffstat (limited to 'media-sound/xwax')
-rw-r--r-- | media-sound/xwax/xwax-1.7-r1.ebuild | 87 |
1 files changed, 87 insertions, 0 deletions
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 000000000000..ecde10ea92a6 --- /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." +} |