Сравнение aegisub-3.2.2_p20160518-r105 с aegisub-9999

/usr/portage/media-video/aegisub/aegisub-9999.ebuild 2023-10-09 14:52:31.812368409 +0300
6 6
LUA_COMPAT=( luajit )
7 7
LUA_REQ_USE="lua52compat"
8 8

  
9
WX_GTK_VER=3.0
10
PLOCALES="ar bg ca cs da de el es eu fa fi fr_FR gl hu id it ja ko nl pl pt_BR pt_PT ru sr_RS sr_RS@latin uk_UA vi zh_CN zh_TW"
11
COMMIT_ID="b118fe7e7a5c37540e2f0aa75af105e272bad234"
9
WX_GTK_VER=3.0-gtk3
10
PLOCALES="ar be bg ca cs da de el es eu fa fi fr_FR gl hu id it ja ko nl pl pt_BR pt_PT ru sr_RS sr_RS@latin uk_UA vi zh_CN zh_TW"
12 11

  
13
inherit autotools flag-o-matic lua-single plocale wxwidgets xdg-utils vcs-snapshot
12
inherit autotools lua-single plocale wxwidgets xdg-utils git-r3
14 13

  
15 14
DESCRIPTION="Advanced subtitle editor"
16
HOMEPAGE="http://www.aegisub.org/ https://github.com/Aegisub/Aegisub"
17
SRC_URI="https://github.com/Aegisub/Aegisub/archive/${COMMIT_ID}.tar.gz -> ${P}.tar.gz"
15
HOMEPAGE="http://www.aegisub.org/ https://github.com/wangqr/Aegisub"
16
EGIT_REPO_URI="https://github.com/wangqr/${PN^}.git"
17
# Submodules are used to pull bundled libraries.
18
EGIT_SUBMODULES=()
18 19

  
19 20
LICENSE="BSD MIT"
20 21
SLOT="0"
21
KEYWORDS="amd64 x86"
22
IUSE="+alsa debug +fftw openal oss portaudio pulseaudio spell test +uchardet"
22
KEYWORDS=""
23
IUSE="+alsa debug +fftw openal oss portaudio pulseaudio spell +uchardet"
23 24
RESTRICT="test"
24 25

  
25 26
# aegisub bundles luabins (https://github.com/agladysh/luabins).
......
40 41
	fftw? ( >=sci-libs/fftw-3.3:= )
41 42
	openal? ( media-libs/openal )
42 43
	portaudio? ( =media-libs/portaudio-19* )
43
	pulseaudio? ( media-sound/pulseaudio )
44
	pulseaudio? ( media-libs/libpulse )
44 45
	spell? ( app-text/hunspell:= )
45 46
	uchardet? ( app-i18n/uchardet )
46 47
"
47 48
DEPEND="${RDEPEND}"
48
# luarocks is only used as a command-line tool so there is no need to enforce
49
# LUA_SINGLE_USEDEP on it. On the other hand, this means we must use version
50
# bounds in order to make sure we use a version migrated to Lua eclasses.
51 49
BDEPEND="dev-util/intltool
52 50
	sys-devel/gettext
53 51
	virtual/pkgconfig
54
	test? (
55
		${RDEPEND}
56
		>=dev-cpp/gtest-1.8.1
57
		>=dev-lua/luarocks-3.4.0-r100
58
		$(lua_gen_cond_dep '
59
			dev-lua/busted[${LUA_USEDEP}]
60
		')
61
	)
62 52
"
63 53

  
64 54
REQUIRED_USE="${LUA_REQUIRED_USE}
65 55
	|| ( alsa openal oss portaudio pulseaudio )"
66 56

  
67 57
PATCHES=(
68
	"${FILESDIR}/${PV}/${P}-fix-system-luajit-build.patch"
69
	"${FILESDIR}/${PV}/${P}-respect-compiler-flags.patch"
70
	"${FILESDIR}/${PV}/${P}-support-system-gtest.patch"
71
	"${FILESDIR}/${PV}/${P}-fix-icu59-build.patch"
72
	"${FILESDIR}/${PV}/${P}-fix-icu62-build.patch"
73
	"${FILESDIR}/${PV}/${P}-fix-boost170-build.patch"
74
	"${FILESDIR}/${PV}/${P}-fix-makefile-for-make4.3.patch"
75
	"${FILESDIR}/${PV}/${P}-tests_luarocks_lua_version.patch"
76
	"${FILESDIR}/${PV}/${P}-avoid-conveying-positional-parameters-to-source-builtin.patch"
77
	"${FILESDIR}/${PV}/${P}-luaL_Reg-not-luaL_reg.patch"
78
	"${FILESDIR}/${PV}/${P}-ffmpegsource-2.40-compat2.patch"
79
	"${FILESDIR}/${PV}/${P}-fix-boost-181-build.patch"
58
	"${FILESDIR}/${P}-git.patch"
59
	"${FILESDIR}/3.2.2_p20160518/${PN}-3.2.2_p20160518-fix-boost-181-build.patch"
80 60
)
81 61

  
82
aegisub_check_compiler() {
83
	if [[ ${MERGE_TYPE} != "binary" ]] && ! test-flag-CXX -std=c++11; then
84
		die "Your compiler lacks C++11 support. Use GCC>=4.7.0 or Clang>=3.3."
85
	fi
86
}
87

  
88
pkg_pretend() {
89
	aegisub_check_compiler
90
}
91

  
92 62
pkg_setup() {
93
	aegisub_check_compiler
94 63
	lua-single_pkg_setup
95 64
}
96 65

  
......
111 80
	config_rpath_update "${S}"/config.rpath
112 81

  
113 82
	eautoreconf
114

  
115
	cat <<- EOF > build/git_version.h || die
116
		#define BUILD_GIT_VERSION_NUMBER 8897
117
		#define BUILD_GIT_VERSION_STRING "${PV}"
118
		#define TAGGED_RELEASE 0
119
	EOF
120 83
}
121 84

  
122 85
src_configure() {
......
137 100
		$(use_with pulseaudio libpulse)
138 101
		$(use_with spell hunspell)
139 102
		$(use_with uchardet)
103
		--disable-compiler-flags
140 104
	)
141 105
	econf "${myeconfargs[@]}"
142 106
}
143 107

  
144 108
src_compile() {
145
	emake WITH_SYSTEM_GTEST=$(usex test)
109
	# Concurrent builds seem to break the build process.
110
	emake -j1
146 111
}
147 112

  
148 113
src_test() {
Спасибо!