Gentoo Archives: gentoo-commits

From: Nick Sarnie <sarnex@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-emulation/faudio/
Date: Sun, 15 Sep 2019 15:27:05
Message-Id: 1568561205.667dd143d190d7f2aa209ae0b812727f3c34872a.sarnex@gentoo
1 commit: 667dd143d190d7f2aa209ae0b812727f3c34872a
2 Author: Nick Sarnie <sarnex <AT> gentoo <DOT> org>
3 AuthorDate: Sun Sep 15 15:26:45 2019 +0000
4 Commit: Nick Sarnie <sarnex <AT> gentoo <DOT> org>
5 CommitDate: Sun Sep 15 15:26:45 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=667dd143
7
8 app-emulation/faudio: Sync with ::wine
9
10 Package-Manager: Portage-2.3.76, Repoman-2.3.17
11 Signed-off-by: Nick Sarnie <sarnex <AT> gentoo.org>
12
13 app-emulation/faudio/Manifest | 1 -
14 app-emulation/faudio/faudio-19.03.ebuild | 95 --------------------------------
15 app-emulation/faudio/faudio-9999.ebuild | 6 +-
16 3 files changed, 3 insertions(+), 99 deletions(-)
17
18 diff --git a/app-emulation/faudio/Manifest b/app-emulation/faudio/Manifest
19 index eb6ea01a4f4..7fc3823eb2b 100644
20 --- a/app-emulation/faudio/Manifest
21 +++ b/app-emulation/faudio/Manifest
22 @@ -1,2 +1 @@
23 -DIST FAudio-19.03.tar.gz 886621 BLAKE2B 0cf0b60766d48472c72dc2aa9bbdb9a99db27836f38eccacb4be4bd98cf387b6009998018438e46835a9b9616d426b8a2c9f3c200b377bce2dc9bc18e42b0d37 SHA512 94e3e4f3f023879ef821d657e5a73ac25aab55c7be6a0afe77d75cabe644c9da083ae3c6a240b71af542da53a3eb34804e6a3193a0e619f89fcc20ff7d6ef095
24 DIST FAudio-19.06.tar.gz 899089 BLAKE2B a59ad9613bcfa71e1fc8be1f2d389f56b8f96430c354b7c7148d1e1e084102b6d8559cd258f3ab6969a4ac93e55ea2397b18dc417857e9ee0f022ea0dae65c0e SHA512 ba3ee18b47d8d85dc39e777c420522349f9873cf1528dd6c266f7254fe27cdb5bb6ab5bcbeab870938b509bfd006590d2380908b7d1e3fd679d2a434ce82eca6
25
26 diff --git a/app-emulation/faudio/faudio-19.03.ebuild b/app-emulation/faudio/faudio-19.03.ebuild
27 deleted file mode 100644
28 index 295da563249..00000000000
29 --- a/app-emulation/faudio/faudio-19.03.ebuild
30 +++ /dev/null
31 @@ -1,95 +0,0 @@
32 -# Copyright 1999-2019 Gentoo Authors
33 -# Distributed under the terms of the GNU General Public License v2
34 -
35 -# shellcheck disable=SC2034
36 -EAPI=7
37 -
38 -CMAKE_MAKEFILE_GENERATOR="emake"
39 -
40 -inherit cmake-multilib virtualx
41 -
42 -FAUDIO_PN="FAudio"
43 -FAUDIO_PV="${PV}"
44 -FAUDIO_P="${FAUDIO_PN}-${FAUDIO_PV}"
45 -
46 -if [[ "${PV}" == "9999" ]]; then
47 - inherit git-r3
48 - EGIT_REPO_URI="https://github.com/FNA-XNA/${FAUDIO_PN}.git"
49 -else
50 - SRC_URI="https://github.com/FNA-XNA/${FAUDIO_PN}/archive/${FAUDIO_PV}.tar.gz -> ${FAUDIO_P}.tar.gz"
51 - KEYWORDS="-* ~amd64 ~x86 ~x86-fbsd"
52 - S="${WORKDIR}/${FAUDIO_P}"
53 -fi
54 -
55 -DESCRIPTION="FAudio - Accuracy-focused XAudio reimplementation for open platforms"
56 -HOMEPAGE="https://fna-xna.github.io/"
57 -LICENSE="ZLIB"
58 -SLOT="0"
59 -
60 -IUSE="+abi_x86_32 +abi_x86_64 debug ffmpeg xnasong test utils"
61 -REQUIRED_USE="|| ( abi_x86_32 abi_x86_64 )"
62 -
63 -COMMON_DEPEND="
64 - >=media-libs/libsdl2-2.0.9[sound,${MULTILIB_USEDEP}]
65 - ffmpeg? ( media-video/ffmpeg:=[${MULTILIB_USEDEP}] )
66 -"
67 -RDEPEND="${COMMON_DEPEND}
68 -"
69 -DEPEND="${COMMON_DEPEND}
70 -"
71 -
72 -multilib_src_configure() {
73 - local mycmakeargs=(
74 - "-DCMAKE_INSTALL_BINDIR=bin"
75 - "-DCMAKE_INSTALL_INCLUDEDIR=include/${FAUDIO_PN}"
76 - "-DCMAKE_INSTALL_LIBDIR=$(get_libdir)"
77 - "-DCMAKE_INSTALL_PREFIX=${EPREFIX%/}/usr"
78 - "-DCMAKE_BUILD_TYPE=$(usex debug Debug Release)"
79 - "-DFORCE_ENABLE_DEBUGCONFIGURATION=$(usex debug ON OFF)"
80 - "-DBUILD_TESTS=$(usex test ON OFF)"
81 - "-DBUILD_UTILS=$(usex utils ON OFF)"
82 - "-DFFMPEG=$(usex ffmpeg ON OFF)"
83 - "-DXNASONG=$(usex xnasong ON OFF)"
84 - )
85 - if use ffmpeg; then
86 - mycmakeargs+=( "-DFFmpeg_LIBRARY_DIRS=${PREFIX%/}/usr/$(get_libdir)" )
87 - fi
88 - cmake-utils_src_configure
89 -}
90 -
91 -src_configure() {
92 - cmake-multilib_src_configure
93 -}
94 -
95 -multilib_src_compile() {
96 - cmake-utils_src_make
97 - emake -C "${BUILD_DIR}" all
98 -}
99 -
100 -multilib_src_install() {
101 - # FIXME: do we want to install the FAudio tools?
102 - cmake-utils_src_install
103 -
104 - sed -e "s/%LIB%/$(get_libdir)/g" "${FILESDIR}/faudio.pc" \
105 - > "${T}/faudio.pc" \
106 - || die "sed failed"
107 - insinto "/usr/$(get_libdir)/pkgconfig"
108 - doins "${T}/faudio.pc"
109 -
110 - if use test; then
111 - mkdir -p "${T}/$(get_libdir)"
112 - cp "${BUILD_DIR}/faudio_tests" "${T}/$(get_libdir)/" || die "cp failed"
113 - fi
114 -}
115 -
116 -faudio_test() {
117 - XDG_RUNTIME_DIR="/run/user/0" virtx "${T}/$(get_libdir)/faudio_tests"
118 -}
119 -
120 -pkg_postinst() {
121 - use test || return
122 -
123 - # FIXME: FAudio tests are broken and also don't appear to work
124 - # in the Portage sandbox.
125 - multilib_foreach_abi faudio_test
126 -}
127
128 diff --git a/app-emulation/faudio/faudio-9999.ebuild b/app-emulation/faudio/faudio-9999.ebuild
129 index 295da563249..a8490f1cf23 100644
130 --- a/app-emulation/faudio/faudio-9999.ebuild
131 +++ b/app-emulation/faudio/faudio-9999.ebuild
132 @@ -52,7 +52,7 @@ multilib_src_configure() {
133 "-DXNASONG=$(usex xnasong ON OFF)"
134 )
135 if use ffmpeg; then
136 - mycmakeargs+=( "-DFFmpeg_LIBRARY_DIRS=${PREFIX%/}/usr/$(get_libdir)" )
137 + mycmakeargs+=( "-DFFmpeg_LIBRARY_DIRS=${EPREFIX%/}/usr/$(get_libdir)" )
138 fi
139 cmake-utils_src_configure
140 }
141 @@ -70,8 +70,8 @@ multilib_src_install() {
142 # FIXME: do we want to install the FAudio tools?
143 cmake-utils_src_install
144
145 - sed -e "s/%LIB%/$(get_libdir)/g" "${FILESDIR}/faudio.pc" \
146 - > "${T}/faudio.pc" \
147 + sed -e "s@%LIB%@$(get_libdir)@g" -e "s@%PREFIX%@${EPREFIX}/usr@g" \
148 + "${FILESDIR}/faudio.pc" > "${T}/faudio.pc" \
149 || die "sed failed"
150 insinto "/usr/$(get_libdir)/pkgconfig"
151 doins "${T}/faudio.pc"