Сравнение sdl2-mixer-2.8.1-r3 с man-pages-9999

/usr/portage/sys-apps/man-pages/man-pages-9999.ebuild 2025-07-29 16:22:17.376467925 +0300
3 3

  
4 4
EAPI=8
5 5

  
6
MY_P="SDL2_mixer-${PV}"
7
inherit cmake-multilib
6
inherit eapi9-ver
8 7

  
9
DESCRIPTION="Simple Direct Media Layer Mixer Library"
10
HOMEPAGE="https://github.com/libsdl-org/SDL_mixer"
11
SRC_URI="https://www.libsdl.org/projects/SDL_mixer/release/${MY_P}.tar.gz"
12
S="${WORKDIR}/${MY_P}"
8
# Maintenance notes:
9
# - Upstream are very friendly, do approach them if have any questions;
10
#
11
# - It's considered fine (and somewhat encouraged) for us to make snapshots
12
#   if we want specific fixes, perhaps aligned with newer kernels, glibc, etc.
13
#   Just generate it with 'make dist'. We can set DISTVERSION if we want a vanity
14
#   name or if the comit hash is too long;
15
#
16
# - If we do use a snapshot, *don't* grab it directly from git and use it
17
#   raw in the ebuild. Use 'make dist' as above;
18
#
19
# - Sometimes there's no dist tarball available post-release and upstream
20
#   encourage distros to make their own. Set MAN_PAGES_GENTOO_DIST to 1 if none is
21
#   available, 0 otherwise.
22
MAN_PAGES_GENTOO_DIST=0
23
GENTOO_PATCH=2
24

  
25
DESCRIPTION="A somewhat comprehensive collection of Linux man pages"
26
HOMEPAGE="https://www.kernel.org/doc/man-pages/"
27

  
28
if [[ ${PV} == 9999 ]] ; then
29
	EGIT_REPO_URI="https://git.kernel.org/pub/scm/docs/man-pages/man-pages.git"
30
	inherit git-r3
31
elif [[ ${PV} == *_rc* ]] ; then
32
	MY_P=${PN}-${PV/_/-}
33

  
34
	SRC_URI="https://git.kernel.org/pub/scm/docs/man-pages/man-pages.git/snapshot/${MY_P}.tar.gz"
35
	S="${WORKDIR}"/${MY_P}
36
else
37
	if [[ ${MAN_PAGES_GENTOO_DIST} -eq 1 ]] ; then
38
		SRC_URI="https://dev.gentoo.org/~sam/distfiles/${CATEGORY}/${PN}/${P}-gentoo.tar.xz"
39
	else
40
		VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/alejandro-colomar.asc
41
		inherit verify-sig
42

  
43
		SRC_URI="
44
			https://www.kernel.org/pub/linux/docs/man-pages/Archive/${P}.tar.xz
45
			https://www.kernel.org/pub/linux/docs/man-pages/${P}.tar.xz
46
			verify-sig? (
47
				https://www.kernel.org/pub/linux/docs/man-pages/Archive/${P}.tar.sign
48
				https://www.kernel.org/pub/linux/docs/man-pages/${P}.tar.sign
49
			)
50
		"
13 51

  
14
LICENSE="ZLIB"
15
SLOT="0"
16
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ~ppc ppc64 ~riscv sparc x86"
17
IUSE="flac fluidsynth gme midi mod modplug mp3 opus playtools stb timidity tremor vorbis +wav wavpack xmp"
18
REQUIRED_USE="
19
	midi? ( || ( timidity fluidsynth ) )
20
	timidity? ( midi )
21
	fluidsynth? ( midi )
22

  
23
	vorbis? ( ?? ( stb tremor ) )
24
	stb? ( vorbis )
25
	tremor? ( vorbis )
26

  
27
	mod? ( || ( modplug xmp ) )
28
	modplug? ( mod )
29
	xmp? ( mod )
52
		BDEPEND="verify-sig? ( sec-keys/openpgp-keys-alejandro-colomar )"
53
	fi
54

  
55
	KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~arm64-macos"
56
fi
57

  
58
SRC_URI+="
59
	mirror://gentoo/man-pages-gentoo-${GENTOO_PATCH}.tar.bz2
60
	https://dev.gentoo.org/~cardoe/files/man-pages-gentoo-${GENTOO_PATCH}.tar.bz2
30 61
"
31 62

  
63
LICENSE="man-pages GPL-2+ BSD"
64
SLOT="0"
65
# Keep the following in sync with app-i18n/man-pages-l10n
66
MY_L10N=( cs da de el es fi fr hu id it mk nb nl pl pt-BR ro sr sv uk vi )
67
IUSE="l10n_ja l10n_ru l10n_zh-CN ${MY_L10N[@]/#/l10n_}"
68
RESTRICT="binchecks"
69

  
70
BDEPEND+="
71
	app-alternatives/bc
72
"
73
# Block packages that used to install colliding man pages:
74
# bug #341953, bug #548900, bug #612640, bug #617462
32 75
RDEPEND="
33
	media-libs/libsdl2[${MULTILIB_USEDEP}]
34
	flac? ( media-libs/flac:=[${MULTILIB_USEDEP}] )
35
	midi? (
36
		fluidsynth? ( media-sound/fluidsynth:=[${MULTILIB_USEDEP}] )
37
		timidity? ( media-sound/timidity++ )
38
	)
39
	mod? (
40
		modplug? ( media-libs/libmodplug[${MULTILIB_USEDEP}] )
41
		xmp? ( media-libs/libxmp[${MULTILIB_USEDEP}] )
42
	)
43
	mp3? ( media-sound/mpg123-base[${MULTILIB_USEDEP}] )
44
	opus? ( media-libs/opusfile[${MULTILIB_USEDEP}] )
45
	vorbis? (
46
		stb? ( dev-libs/stb )
47
		tremor? ( media-libs/tremor[${MULTILIB_USEDEP}] )
48
		!stb? ( !tremor? ( media-libs/libvorbis[${MULTILIB_USEDEP}] ) )
49
	)
50
	gme? ( media-libs/game-music-emu[${MULTILIB_USEDEP}] )
51
	wavpack? ( media-sound/wavpack[${MULTILIB_USEDEP}] )
76
	virtual/man
77
	!<sys-apps/keyutils-1.5.9-r4
78
	!<dev-libs/libbsd-0.8.3-r1
79
"
80
PDEPEND="
81
	l10n_ja? ( app-i18n/man-pages-ja )
82
	l10n_ru? ( || (
83
		app-i18n/man-pages-l10n[l10n_ru(-)]
84
		app-i18n/man-pages-ru
85
	) )
86
	l10n_zh-CN? ( app-i18n/man-pages-zh_CN )
52 87
"
53
DEPEND="${RDEPEND}"
88
for lang in "${MY_L10N[@]}"; do
89
	PDEPEND+=" l10n_${lang}? ( app-i18n/man-pages-l10n[l10n_${lang}(-)] )"
90
done
91
unset lang
92

  
93
src_unpack() {
94
	if [[ ${PV} == 9999 ]] ; then
95
		git-r3_src_unpack
96
		return
97
	fi
98

  
99
	if [[ ${PV} != *_rc* ]] && ! [[ ${MAN_PAGES_GENTOO_DIST} -eq 1 ]] && use verify-sig ; then
100
		# Upstream sign the decompressed .tar
101
		einfo "Unpacking ${P}.tar.xz ..."
102
		verify-sig_verify_detached - "${DISTDIR}"/${P}.tar.sign \
103
			< <(xz -cd "${DISTDIR}"/${P}.tar.xz | tee >(tar -xf -))
104
		assert "Unpack failed"
105

  
106
		unpack man-pages-gentoo-${GENTOO_PATCH}.tar.bz2
107
	else
108
		default
109
	fi
110
}
111

  
112
src_prepare() {
113
	default
114

  
115
	# passwd.5 installed by sys-apps/shadow, bug #776787
116
	rm man5/passwd.5 || die
117
}
118

  
119
src_compile() { :; }
54 120

  
55
multilib_src_configure() {
56
	local mycmakeargs=(
57
		-DSDL2MIXER_DEPS_SHARED=no # aka, no dlopen() (bug #950965)
58
		-DSDL2MIXER_CMD=yes
59
		-DSDL2MIXER_WAVE=$(usex wav)
60
		-DSDL2MIXER_MOD=$(usex mod)
61
		-DSDL2MIXER_MOD_MODPLUG=$(usex modplug)
62
		-DSDL2MIXER_MOD_XMP=$(usex xmp)
63
		-DSDL2MIXER_MIDI=$(usex midi)
64
		-DSDL2MIXER_MIDI_TIMIDITY=$(usex timidity)
65
		-DSDL2MIXER_MIDI_FLUIDSYNTH=$(usex fluidsynth)
66
		-DSDL2MIXER_VORBIS=$(usex vorbis $(usex stb STB $(usex tremor TREMOR VORBISFILE) ) no )
67
		-DSDL2MIXER_FLAC=$(usex flac)
68
		-DSDL2MIXER_FLAC_LIBFLAC=$(usex flac)
69
		-DSDL2MIXER_MP3=$(usex mp3)
70
		-DSDL2MIXER_MP3_MPG123=$(usex mp3)
71
		-DSDL2MIXER_OPUS=$(usex opus)
72
		-DSDL2MIXER_GME=$(usex gme)
73
		-DSDL2MIXER_WAVPACK=$(usex wavpack)
74
		-DSDL2MIXER_SAMPLES=$(usex playtools)
75
		-DSDL2MIXER_SAMPLES_INSTALL=$(usex playtools)
76
	)
77
	cmake_src_configure
121
src_test() {
122
	# We don't use the 'check' target right now because of known errors
123
	# https://lore.kernel.org/linux-man/0dfd5319-2d22-a8ad-f085-d635eb6d0678@gmail.com/T/#t
124
	emake lint-man-tbl
78 125
}
79 126

  
80
multilib_src_install_all() {
81
	dodoc {CHANGES,README}.txt
82
	rm -r "${ED}"/usr/share/licenses || die
127
src_install() {
128
	emake install prefix="${EPREFIX}"/usr DESTDIR="${D}"
129
	dodoc README Changes*
130

  
131
	# Override with Gentoo specific or additional Gentoo pages
132
	cd "${WORKDIR}"/man-pages-gentoo || die
133
	doman */*
134
	dodoc README.Gentoo
83 135
}
84 136

  
85 137
pkg_postinst() {
86
	# bug #412035
87
	if use midi && use fluidsynth; then
88
		ewarn "FluidSynth support requires you to set the SDL_SOUNDFONTS"
89
		ewarn "environment variable to the location of a SoundFont file"
90
		ewarn "unless the game or application happens to do this for you."
91
		if use timidity; then
92
			ewarn "Failing to do so will result in Timidity being used instead."
93
		else
94
			ewarn "Failing to do so will result in silence."
95
		fi
138
	if ver_replacing -lt 5.13-r2 ; then
139
		# Avoid ACCEPT_LICENSE issues for users by default
140
		# bug #871636
141
		ewarn "This version of ${PN} no longer depends on sys-apps/man-pages-posix!"
142
		ewarn "Please install sys-apps/man-pages-posix yourself if needed."
96 143
	fi
97 144
}
Спасибо!