commit:     ae053b70a08011cef48784737e54b1b76f8a7a16
Author:     Yixun Lan <dlan <AT> gentoo <DOT> org>
AuthorDate: Mon Aug 18 05:57:10 2025 +0000
Commit:     Yixun Lan <dlan <AT> gentoo <DOT> org>
CommitDate: Mon Aug 18 06:07:46 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ae053b70

dev-libs/libfilezilla: add 0.51.1

Signed-off-by: Yixun Lan <dlan <AT> gentoo.org>

 dev-libs/libfilezilla/Manifest                   |  1 +
 dev-libs/libfilezilla/libfilezilla-0.51.1.ebuild | 63 ++++++++++++++++++++++++
 2 files changed, 64 insertions(+)

diff --git a/dev-libs/libfilezilla/Manifest b/dev-libs/libfilezilla/Manifest
index 16757ce1fe3f..e31295acfde2 100644
--- a/dev-libs/libfilezilla/Manifest
+++ b/dev-libs/libfilezilla/Manifest
@@ -1,2 +1,3 @@
 DIST libfilezilla-0.50.0.tar.xz 559004 BLAKE2B 
27f060843eb3a92be0e350dd2ea8aae2f4cb7a4654ad61cb2296f0b8f0a107350b989fdb62ab63256bc1e7b902ed167ec756bd3963e9c56220a7740669ff1b2a
 SHA512 
ed12159d176da0019479fc3d2f129dbf959237340dbfe8fa6871ae2f1f038f64cf672eb25680e69304820f9003b03957a9ba7c2cdad1bd918dbf3ee630380608
 DIST libfilezilla-0.51.0.tar.xz 561100 BLAKE2B 
5d99dac0595fbd7c60e4e9c4b6d5992db9966151457f0d7fc93c51063144860adef14b5410c28192cd8ad5298e71f665217bfd418098d217318b52fda7f14383
 SHA512 
0864c1d6e93f077005223d7a2818ff8711bfed0812bc369b04d2d20c07c1b41908951e5a96d4402407287b350513bf037b4b522a7cdff850071c8e2b045e83b0
+DIST libfilezilla-0.51.1.tar.xz 559004 BLAKE2B 
2c5a3a77f75d86af965a23e671be98fc75dac3b8b91a499a112a5d0d65b591355e8cc78e8b14e7b609f7f5537b88796c5f3d5928d40434fe14f6e6ecc368806b
 SHA512 
9f686a5be076321a2db8b980d67a31f3c52726ea5d1550d44381c0c18a862056ee6669f5d7f5a67077f9283c04ceba3425c5b087e24d62671af8d68e4568442f

diff --git a/dev-libs/libfilezilla/libfilezilla-0.51.1.ebuild 
b/dev-libs/libfilezilla/libfilezilla-0.51.1.ebuild
new file mode 100644
index 000000000000..a2dcf5aa3bfe
--- /dev/null
+++ b/dev-libs/libfilezilla/libfilezilla-0.51.1.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit autotools flag-o-matic
+
+DESCRIPTION="C++ library offering some basic functionality for 
platform-independent programs"
+HOMEPAGE="https://lib.filezilla-project.org/";
+# Broken URL behind CDN
+SRC_URI="https://dev.gentoo.org/~dlan/distfiles/${PN}/${P}.tar.xz";
+
+LICENSE="GPL-2+"
+SLOT="0/48" # libfilezilla.so version
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~x86"
+IUSE="test"
+
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+       dev-libs/nettle:0=
+       >=net-libs/gnutls-3.5.7:=
+       virtual/libcrypt:=
+"
+DEPEND="${RDEPEND}
+       test? ( dev-util/cppunit )"
+BDEPEND="virtual/pkgconfig"
+
+PATCHES=(
+       "${FILESDIR}"/${PN}-0.37.1-pthread.patch
+       "${FILESDIR}"/${PN}-0.41.0-gcc13.patch
+)
+
+pkg_pretend() {
+       if [[ ${MERGE_TYPE} != binary ]]; then
+               if ! test-flag-CXX -std=c++14; then
+                       eerror "${P} requires C++14-capable C++ compiler. Your 
current compiler"
+                       eerror "does not seem to support -std=c++14 option. 
Please upgrade your compiler"
+                       eerror "to gcc-4.9 or an equivalent version supporting 
C++14."
+                       die "Currently active compiler does not support 
-std=c++14"
+               fi
+       fi
+}
+
+src_prepare() {
+       default
+       # we patch configure.ac
+       eautoreconf
+}
+
+src_configure() {
+       if use ppc || use arm || use hppa; then
+               # bug 727652
+               append-libs -latomic
+       fi
+
+       econf --disable-static
+}
+
+src_install() {
+       default
+       find "${ED}" -type f -name "*.la" -delete || die
+}

Reply via email to