commit:     25550a786c04c09039d845e603a5f14ef7199491
Author:     Joe Kappus <joe <AT> wt <DOT> gd>
AuthorDate: Fri Nov 15 04:37:08 2024 +0000
Commit:     Julien Roy <julien <AT> jroy <DOT> ca>
CommitDate: Fri Nov 15 04:37:08 2024 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=25550a78

net-nntp/pan: add 0.161

Signed-off-by: Joe Kappus <joe <AT> wt.gd>

 net-nntp/pan/Manifest         |  1 +
 net-nntp/pan/pan-0.161.ebuild | 74 +++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 75 insertions(+)

diff --git a/net-nntp/pan/Manifest b/net-nntp/pan/Manifest
index 2203427fb..d0ae24c6e 100644
--- a/net-nntp/pan/Manifest
+++ b/net-nntp/pan/Manifest
@@ -1,2 +1,3 @@
 DIST pan-v0.159.tar.bz2 1810262 BLAKE2B 
1f5a932bb771324b23054665ea181fb1130e2709a2a202c27d56058c57868d6897e957e317c5822ad245f79157284d4c99975d57cc73f52cd0e807bc1f60ea6f
 SHA512 
c05bb2b79daac11e78c1f56205517da7c5526111d2684e8bae3400117226a8a6c9c69d489cf218892c82060a6d72b888172ae8922ad7c38af658f5772d4893c9
 DIST pan-v0.160.tar.bz2 1810939 BLAKE2B 
134068f374f0b126968e237448e2698b8d10d0993fe3d4c569447814d0d903db9c3970a6f0b1847ac0778f997b110cc7d25fc6f69d4e69c869d61f61d7b0d0be
 SHA512 
bc352cfeb252210bb0095b4b616115a4c9d0372c49bb774d3574f0b489824f1512394b0e635e43159694f58d530a3e4e6d95ec0227951a1b78224f4cea9ba33a
+DIST pan-v0.161.tar.bz2 1808938 BLAKE2B 
b10c15ad2528752799c55897fe5f6fdc0d07e050275959167a627e4e2150bd57d8fc7948f338b6ab571e9335e14e1f6f78f4364c38e2e3a23c9f6d3bc48ad4f2
 SHA512 
a7ab3fe2f74f7e87bbeed615392b8dedb50e29d916bb0b4ffaf15c1b0f20aa36fdb8fa52b51566c2dd7521873055b38c9a6d691a5c337bc79f69ac209bbd0454

diff --git a/net-nntp/pan/pan-0.161.ebuild b/net-nntp/pan/pan-0.161.ebuild
new file mode 100644
index 000000000..868994be6
--- /dev/null
+++ b/net-nntp/pan/pan-0.161.ebuild
@@ -0,0 +1,74 @@
+# Copyright 1999-2024 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.00: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:0= )
+       >=sys-libs/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"
+
+}

Reply via email to