summaryrefslogtreecommitdiff
path: root/sys-libs/gwenhywfar/gwenhywfar-5.14.1.ebuild
blob: ec18705d8eb68e6a96fe9f58834f5d2879c32f2e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit autotools qt-utils

DESCRIPTION="Multi-platform helper library for other libraries"
HOMEPAGE="https://www.aquamaniac.de/"
SRC_URI="https://www.aquamaniac.de/rdm/attachments/download/630/${P}.tar.gz"

LICENSE="LGPL-2.1"
SLOT="0/79" # correspond with libgwenhywfar.so version
KEYWORDS="amd64 ~arm64 ~hppa ~ppc ~ppc64 ~riscv ~sparc x86"
IUSE="debug gtk qt6 test" # doc (is broken, bug #950614

# broken upstream, reported but got no reply
RESTRICT="test"

RDEPEND="
	dev-libs/libgcrypt:0=
	dev-libs/libgpg-error
	dev-libs/libxml2:2=
	dev-libs/openssl:0=
	net-libs/gnutls:=
	virtual/libiconv
	virtual/libintl
	gtk? ( x11-libs/gtk+:3 )
	qt6? (
		dev-qt/qtbase:6[concurrent,dbus,gui,network,opengl,sql,widgets,xml]
		virtual/opengl
	)
"
DEPEND="${RDEPEND}
	sys-apps/which"
BDEPEND="
	sys-devel/gettext
	virtual/pkgconfig
"
# doc? ( app-text/doxygen )

PATCHES=( "${FILESDIR}/${PN}-5.12.1-fix-qt6-detect.patch" ) # bug 965843, downstream workaround

src_prepare() {
	default
	eautoreconf
}

src_configure() {
	local myeconfargs=(
		--with-docpath="${EPREFIX}/usr/share/doc/${PF}/apidoc"
		--with-libxml2-code=yes
		$(use_enable debug)
		#$(use_enable doc full-doc)
	)

	if use qt6; then
		myeconfargs+=( --with-qmake="$(qt_get_broot_binary 6 qmake)" )
		local -x QTPATHS=$(qt_get_broot_binary 6 qtpaths)
	fi

	local guis=()
	use gtk && guis+=( gtk3 )
	use qt6 && guis+=( qt5 ) # yes. qt5.

	econf "${myeconfargs[@]}" "--with-guis=${guis[*]}"
}

src_compile() {
	emake
	#use doc && emake srcdoc
}

src_install() {
	default
	#use doc && emake DESTDIR="${D}" install-srcdoc
	find "${D}" -name '*.la' -type f -delete || die
}