Сравнение librecad-2.2.2_alpha1_pre20250509 с librecad-9999

/usr/portage/media-gfx/librecad/librecad-9999.ebuild 2025-07-29 16:22:14.340455366 +0300
3 3

  
4 4
EAPI=8
5 5

  
6
COMMIT=aea82babdc0e6e9dc8cc4580abe08a579aa52186
7
inherit desktop qmake-utils
6
PLOCALES="ar ca cs da de el en en_au es es_ar es_bo es_cl es_co es_cr es_do es_ec es_gt es_hn es_mx es_ni es_pa es_pe es_pr es_py es_sv es_us es_uy es_ve et eu fi fr gl he hi hu id_ID it ja ka ko lv mk nl no pa pl pt_br pt_pt ro_ro ru sk sl sq_al sr sv ta th tr uk zh_cn zh_tw"
7
inherit desktop edo plocale qmake-utils
8 8

  
9 9
DESCRIPTION="Generic 2D CAD program"
10 10
HOMEPAGE="https://www.librecad.org/"
......
13 13
	EGIT_REPO_URI="https://github.com/LibreCAD/LibreCAD.git"
14 14
	inherit git-r3
15 15
else
16
	SRC_URI="https://github.com/LibreCAD/LibreCAD/archive/${COMMIT}.tar.gz -> ${P}-${COMMIT:0:8}.tar.gz"
17
	S="${WORKDIR}/LibreCAD-${COMMIT}"
18
	KEYWORDS="amd64 ~ppc64 ~riscv x86 ~amd64-linux ~x86-linux"
16
	SRC_URI="https://github.com/LibreCAD/LibreCAD/archive/v${PV/_/}.tar.gz -> ${P}.tar.gz"
17
	S="${WORKDIR}/LibreCAD-${PV}"
18
	KEYWORDS="~amd64 ~ppc64 ~riscv ~x86 ~amd64-linux ~x86-linux"
19 19
fi
20 20

  
21 21
LICENSE="GPL-2"
......
40 40
src_prepare() {
41 41
	default
42 42

  
43
	sed -e "/^LRELEASE/s:lrelease:$(qt6_get_bindir)/lrelease:" \
44
		-i scripts/postprocess-unix.sh || die
43
	# Stock script doesn't work correctly on gentoo (see bug #847394)
44
	# and also it compiles all translations regardles of selected locales.
45
	# To avoid this just comment out locale building and do it manually
46
	sed -i -e '/LRELEASE/s!^!# !' scripts/postprocess-unix.sh || die
47

  
48
	plocale_find_changes 'librecad/ts' 'librecad_' '.ts'
45 49
}
46 50

  
47 51
src_configure() {
48 52
	eqmake6 -r
49 53
}
50 54

  
55
src_compile() {
56
	default
57

  
58
	build_locale() {
59
		local lrelease="$(qt6_get_bindir)/lrelease"
60
		edo "${lrelease}" "librecad/ts/librecad_${1}.ts" \
61
			-qm "unix/resources/qm/librecad_${1}.qm"
62
		edo "${lrelease}" "plugins/ts/plugins_${1}.ts" \
63
			-qm "unix/resources/qm/plugins_${1}.qm"
64
	}
65

  
66
	plocale_for_each_locale build_locale
67
	# We want the en locale to be always present. Otherwise it could
68
	# be impossible to select the English command set which is quite crucial.
69
	has en $(plocale_get_locales) || build_locale en
70
}
71

  
51 72
src_install() {
52 73
	dobin unix/librecad
53 74
	use tools && dobin unix/ttf2lff
Спасибо!