Diff converseen-0.9.10.0 with a converseen-0.9.11.1

/usr/portage/media-gfx/converseen/converseen-0.9.11.1.ebuild 2023-10-09 14:52:31.620368404 +0300
13 13
LICENSE="GPL-3+"
14 14
SLOT="0"
15 15
KEYWORDS="amd64 x86"
16
IUSE="debug"
16
IUSE="graphicsmagick debug"
17 17

  
18
# FIXME: graphicsmagick dependency does not work properly, failures when compiling
19
#	|| ( media-gfx/imagemagick[cxx] media-gfx/graphicsmagick[cxx,imagemagick] )
20 18
RDEPEND="
21 19
	dev-qt/qtcore:5
22 20
	dev-qt/qtgui:5
23 21
	dev-qt/qtnetwork:5
24 22
	dev-qt/qtwidgets:5
25
	media-gfx/imagemagick:=[cxx]
23
	graphicsmagick? ( media-gfx/graphicsmagick:=[cxx,imagemagick] )
24
	!graphicsmagick? ( media-gfx/imagemagick:=[cxx] )
26 25
"
27 26
DEPEND="${RDEPEND}"
28 27
BDEPEND="
......
34 33
PATCHES=(
35 34
	"${FILESDIR}/${PN}-0.9.9.0-appdata-path.patch"
36 35
	"${FILESDIR}/${PN}-0.9.9.0-no-update.patch"
36
	"${FILESDIR}/${PN}-0.9.11.1-graphicsmagick-support.patch"
37 37
)
38 38

  
39
src_prepare() {
40
	cmake_src_prepare
41

  
42
	if use graphicsmagick; then
43
		# Replace variables in CMakeLists.txt
44
		sed -i -e "s/GENTOO_LIB/\/usr\/$(get_libdir)/g" \
45
				-e "s/GENTOO_INCLUDE/\/usr\/include/g" \
46
				"${S}/CMakeLists.txt" ||
47
			die "Failed to sed graphicsmagick patch"
48

  
49
		# Replace MagickCore in globals.cpp
50
		sed -i -e "s/MagickCore/MagickLib/" "${S}/src/globals.cpp" ||
51
			die "Failed to sed globals.cpp"
52
	fi
53
}
54

  
39 55
pkg_postinst() {
40 56
	elog "Please note that due to security policy restrictions"
41 57
	elog "on media-gfx/imagemagick the support for PS, PDF and"
Thank you!