blob: 4fe8e18c670a05e494f558adddee29ef4330c782 (
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
|
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake gnome2 toolchain-funcs
DESCRIPTION="A newsreader for GNOME"
HOMEPAGE="https://gitlab.gnome.org/GNOME/pan/"
SRC_URI="https://gitlab.gnome.org/GNOME/pan/-/archive/v${PV}/${PN}-v${PV}.tar.bz2"
S="${WORKDIR}/pan-v${PV}"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~arm64 ~x86"
IUSE="dbus gnome-keyring libnotify spell ssl"
# currently broken due to cmake migration
RESTRICT="test"
DEPEND="
>=dev-libs/glib-2.26:2
dev-libs/gmime:3.0
>=x11-libs/gtk+-3.16:3
gnome-keyring? (
>=app-crypt/gcr-3.20
>=app-crypt/libsecret-0.20
)
libnotify? ( >=x11-libs/libnotify-0.4.1:0= )
spell? ( app-text/gspell )
ssl? ( >=net-libs/gnutls-3.3.6:0= )
>=virtual/zlib-1.2.0:=
x11-libs/cairo
x11-libs/gdk-pixbuf
x11-libs/pango
"
RDEPEND="${DEPEND}"
BDEPEND="
app-text/yelp-tools
>=sys-devel/gettext-0.19.7
virtual/pkgconfig
"
src_prepare() {
cmake_src_prepare
# Relax linker restriction on clang. Not ideal, but it's this or block clang.
if tc-is-clang; then
append-ldflags "-Wl,--allow-shlib-undefined"
fi
}
src_configure() {
local mycmakeargs=(
-DWANT_DBUS=$(usex dbus) \
-DWANT_GKR=$(usex gnome-keyring) \
-DWANT_GSPELL=$(usex spell) \
-DWANT_NOTIFY=$(usex libnotify) \
-DWANT_GNUTLS=$(usex ssl)
)
cmake_src_configure
}
src_install() {
cmake_src_install
# Since cmake apparently doesn't include the below automatically
dolib.so "${BUILD_DIR}/pan/data/libdata.so"
dolib.so "${BUILD_DIR}/pan/data-impl/libdata-impl.so"
dolib.so "${BUILD_DIR}/pan/general/libgeneralutils.so"
dolib.so "${BUILD_DIR}/pan/tasks/libtasks.so"
dolib.so "${BUILD_DIR}/pan/usenet-utils/libusenet-utils.so"
}
|