Сравнение amule-2.3.3-r8 с amule-9999

/usr/portage/net-p2p/amule/amule-9999.ebuild 2026-06-18 19:41:04.377718372 +0300
4 4
EAPI=8
5 5
WX_GTK_VER="3.2-gtk3"
6 6

  
7
inherit autotools eapi9-ver flag-o-matic wxwidgets xdg-utils
7
inherit cmake flag-o-matic wxwidgets xdg-utils
8 8

  
9 9
if [[ ${PV} == 9999 ]] ; then
10
	EGIT_REPO_URI="https://github.com/amule-project/amule"
10
	EGIT_REPO_URI="https://github.com/amule-org/amule"
11 11
	inherit git-r3
12 12
else
13
	MY_P="${PN/m/M}-${PV}"
14
	SRC_URI="https://download.sourceforge.net/${PN}/${MY_P}.tar.xz"
15
	S="${WORKDIR}/${MY_P}"
16
	KEYWORDS="~alpha amd64 ~arm ~mips ppc ppc64 ~riscv ~sparc x86"
13
	SRC_URI="https://github.com/amule-org/amule/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
14
	KEYWORDS="~alpha ~amd64 ~arm ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86"
17 15
fi
18 16

  
19 17
DESCRIPTION="aMule, the all-platform eMule p2p client"
20
HOMEPAGE="https://www.amule.org/"
18
HOMEPAGE="https://amule-org.github.io/"
21 19

  
22 20
LICENSE="GPL-2+"
23 21
SLOT="0"
24
IUSE="daemon debug geoip +gui nls remote stats upnp"
22
IUSE="daemon debug geoip +gui nls remote stats test upnp"
23
# Make the package useful and simplify dependency management
24
REQUIRED_USE="|| ( daemon gui remote )"
25

  
26
RESTRICT="!test? ( test )"
25 27

  
26 28
RDEPEND="
27
	dev-libs/boost:=
28 29
	dev-libs/crypto++:=
29 30
	sys-libs/binutils-libs:0=
30 31
	sys-libs/readline:0=
31 32
	virtual/zlib:=
32
	x11-libs/wxGTK:${WX_GTK_VER}=
33
	daemon? ( acct-user/amule )
34
	geoip? ( dev-libs/geoip )
35
	gui? ( x11-libs/wxGTK:${WX_GTK_VER}=[X] )
33
	x11-libs/wxGTK:${WX_GTK_VER}=[curl]
34
	daemon? (
35
		acct-user/amule
36
		dev-libs/boost:=
37
	)
38
	gui? (
39
		dev-libs/boost:=
40
		x11-libs/wxGTK:${WX_GTK_VER}=[X]
41
		geoip? ( dev-libs/libmaxminddb )
42
	)
36 43
	nls? ( virtual/libintl )
37 44
	remote? (
38 45
		acct-user/amule
......
41 48
	stats? ( media-libs/gd:=[jpeg,png] )
42 49
	upnp? ( net-libs/libupnp:0= )
43 50
"
44
DEPEND="${RDEPEND}
45
	gui? ( dev-util/desktop-file-utils )
46
"
47 51
BDEPEND="
48 52
	virtual/pkgconfig
49
	>=dev-build/boost-m4-0.4_p20221019
50 53
	nls? ( sys-devel/gettext )
51 54
"
52 55

  
53 56
PATCHES=(
54
	"${FILESDIR}/${PN}-2.3.2-disable-version-check.patch"
55
	"${FILESDIR}/${PN}-2.3.3-fix-exception.patch"
56
	"${FILESDIR}/${P}-autoconf-2.70.patch"
57
	"${FILESDIR}/${PN}-2.3.3-backport-pr368.patch"
58
	"${FILESDIR}/${PN}-2.3.3-wx3.2.patch"
59
	"${FILESDIR}/${PN}-2.3.3-use-xdg-open-as-preview-default.patch"
60
	"${FILESDIR}/${P}-boost-1.87.patch"
61
	"${FILESDIR}/${P}-boost-1.89.patch" # bug 963550
62
	"${FILESDIR}/${P}-libupnp-1.18.patch" # bug 969816
57
	"${FILESDIR}/${PN}-3.0.0-disable-version-check.patch"
58
	"${FILESDIR}/${PN}-3.0.0-use-xdg-open-as-preview-default.patch"
63 59
)
64 60

  
65
src_prepare() {
66
	default
67
	rm m4/boost.m4 || die
68

  
69
	if [[ ${PV} == 9999 ]]; then
70
		./autogen.sh || die
71
	else
72
		eautoreconf
73
	fi
74
}
75

  
76 61
src_configure() {
77 62
	setup-wxwidgets
78 63

  
79 64
	use debug || append-cppflags -DwxDEBUG_LEVEL=0
80
	append-cxxflags -std=gnu++14
81
	# Workaround for gettext-0.11.5
82
	# https://bugs.gentoo.org/945720
83
	append-cflags -std=gnu17
84

  
85
	local myconf=(
86
		--with-denoise-level=0
87
		--with-wx-config="${WX_CONFIG}"
88
		--enable-amulecmd
89
		--with-boost
90
		$(use_enable debug)
91
		$(use_enable daemon amule-daemon)
92
		$(use_enable geoip)
93
		$(use_enable nls)
94
		$(use_enable remote webserver)
95
		$(use_enable stats cas)
96
		$(use_enable stats alcc)
97
		$(use_enable upnp)
65
	CMAKE_BUILD_TYPE=$(usex debug Debug ${CMAKE_BUILD_TYPE})
66

  
67
	local mycmakeargs=(
68
		-DBUILD_ALCC=YES
69
		-DBUILD_ED2K=YES
70
		-DBUILD_ALC="$(usex gui)"
71
		-DBUILD_AMULECMD="$(usex remote)"
72
		-DBUILD_DAEMON="$(usex daemon)"
73
		-DBUILD_CAS="$(usex stats)"
74
		-DBUILD_MONOLITHIC="$(usex gui)"
75
		-DBUILD_TESTING="$(usex test)"
76
		-DBUILD_WEBSERVER="$(usex remote)"
77
		-DENABLE_NLS="$(usex nls)"
78
		-DENABLE_UPNP="$(usex upnp)"
98 79
	)
99 80

  
100 81
	if use gui; then
101
		myconf+=(
102
			$(use_enable remote amule-gui)
103
			$(use_enable stats alc)
104
			$(use_enable stats wxcas)
82
		mycmakeargs+=(
83
			-DBUILD_REMOTEGUI="$(usex remote)"
84
			-DBUILD_WXCAS="$(usex stats)"
85
			-DENABLE_IP2COUNTRY="$(usex geoip)"
105 86
		)
106 87
	else
107
		myconf+=(
108
			--disable-monolithic
109
			--disable-amule-gui
110
			--disable-alc
111
			--disable-wxcas
88
		mycmakeargs+=(
89
			-DBUILD_REMOTEGUI=NO
90
			-DBUILD_WXCAS=NO
91
			-DENABLE_IP2COUNTRY=NO
112 92
		)
113 93
	fi
114 94

  
115
	econf "${myconf[@]}"
116
}
117

  
118
src_test() {
119
	emake check
95
	cmake_src_configure
120 96
}
121 97

  
122 98
src_install() {
123
	default
99
	cmake_src_install
124 100

  
125 101
	if use daemon; then
126 102
		newconfd "${FILESDIR}"/amuled.confd-r1 amuled
......
139 115
}
140 116

  
141 117
pkg_postinst() {
142
	if use daemon || use remote && ver_replacing -lt "2.3.2-r4"; then
143
		elog "Default user under which amuled and amuleweb daemons are started"
144
		elog "have been changed from p2p to amule. Default home directory have been"
145
		elog "changed as well."
146
		echo
147
		elog "If you want to preserve old download/share location, you can create"
148
		elog "symlink /var/lib/amule/.aMule pointing to the old location and adjust"
149
		elog "files ownership *or* restore AMULEUSER and AMULEHOME variables in"
150
		elog "/etc/conf.d/{amuled,amuleweb} to the old values."
118
	if use gui; then
119
		xdg_desktop_database_update
120
		xdg_icon_cache_update
151 121
	fi
152

  
153
	use gui && xdg_desktop_database_update
154 122
}
155 123

  
156 124
pkg_postrm() {
157
	use gui && xdg_desktop_database_update
125
	if use gui; then
126
		xdg_desktop_database_update
127
		xdg_icon_cache_update
128
	fi
158 129
}
Спасибо!