summaryrefslogtreecommitdiff
path: root/app-pda/pilot-link
diff options
context:
space:
mode:
Diffstat (limited to 'app-pda/pilot-link')
-rw-r--r--app-pda/pilot-link/Manifest2
-rw-r--r--app-pda/pilot-link/files/pilot-link-0.12.5-C23.patch85
-rw-r--r--app-pda/pilot-link/pilot-link-0.12.5-r5.ebuild103
3 files changed, 190 insertions, 0 deletions
diff --git a/app-pda/pilot-link/Manifest b/app-pda/pilot-link/Manifest
index dd953419e9c1..ecd545b89d36 100644
--- a/app-pda/pilot-link/Manifest
+++ b/app-pda/pilot-link/Manifest
@@ -1,4 +1,6 @@
+AUX pilot-link-0.12.5-C23.patch 2307 BLAKE2B 55943daf8908564756b87161d7b1283f5fb56f2ad990dd87d922d603b0192f66473c369694555b67f8d3fd25b4f438a6a1c6cf7df8efb755f2fe2a28d5b6b4a7 SHA512 d6bf1f35448fb2321d561b9864ff56fbc1771dbcbfe40d43b4a5bba2f10ffc97a2fb49693680de2f66328f05fca59f85b7e4b89e511df72dc1516be9492876fa
DIST pilot-link-0.12.5-gentoo-patchset-r2.tar.xz 8828 BLAKE2B 6ae7dc9297dedd667bff569150aaae22bb1990b9321774dd29a4b36e7bd824c3c1e7ba60eeb30380727f1acc947df48867c6e536d2901486ac09ea3e3dbdec18 SHA512 6d4e5a572684087b203932b6c199a2a19ba0418794d164f24b04a85873ad3f7f228c1b85b0d1031c30aaf8101db2022fc1490a27331ea7525c5f41e6068af306
DIST pilot-link-0.12.5.tar.bz2 1578735 BLAKE2B acc8748448d90928ac393e3d716f9d12c7962e18564a738b5f01e19bb225d610e179bb0694aded57979c7240df2652cac72845e5b8cdcddf6a4a800bbac4424b SHA512 a12972fb7a43f2dfccb82a046ca372c9fce5333f632a77880439c4f4705af6a7f16b76f04c9f3ed0d6a12aad55a3a55f8781a4e92931bc6907cd1ec4f1209868
EBUILD pilot-link-0.12.5-r4.ebuild 2333 BLAKE2B 0a7cb22a0e179af680363cab6fbce4d13b0cb5c48aa459754fc37a6592664c50babd5b0026bd10c2b2687980068460d511b5bbb5f63e20d2a548e3c6fb155d7b SHA512 d9b9c3fbd0e80abf62c81c40dd462599c09757181b9100111968be47355ab562de213d726130cf5b34a1d572f5593acac2307f4f1fb2ebe00bd40e5f842d9fd9
+EBUILD pilot-link-0.12.5-r5.ebuild 2381 BLAKE2B d2cfbd8617e532f9d4b9637467a1b07f57938588fbc8430025ceeb1682e2a4a0971d7c4d0fb86e8de73413b974d72771d555e78fb5d28fb40354639de1810c5e SHA512 ea2fea630898dad091d130d11f21004db8b29d73f93d5699f9c840ddae1bf107751c5672715342030dd859afd54cb9443fcf86e90c57e50db162b9f694933d85
MISC metadata.xml 251 BLAKE2B 70b2ed9964f20cbe93ebf5d5dc866177244b8b20ae11680f81c1fad3b7d288016967d88ef14a283cdce68cb8014dc18f0bd961ef9c82b7de31968bbced6efafe SHA512 409eba78239ff4cf84addfa5c76d73365bd4d794944c375a96d031c9522836d87c2720a55ae543f19a71246c48a2aff7068904dbf1d8f657041796ba507536b2
diff --git a/app-pda/pilot-link/files/pilot-link-0.12.5-C23.patch b/app-pda/pilot-link/files/pilot-link-0.12.5-C23.patch
new file mode 100644
index 000000000000..59e995725872
--- /dev/null
+++ b/app-pda/pilot-link/files/pilot-link-0.12.5-C23.patch
@@ -0,0 +1,85 @@
+Correct build for C23
+Wrong type for size variable, missing parameters in decls
+Missing include and wrong types in bundled libusb library
+https://bugs.gentoo.org/944433
+https://bugs.gentoo.org/883101
+--- a/src/parsedate.c
++++ b/src/parsedate.c
+@@ -175,8 +175,8 @@
+ static time_t yyRelSeconds;
+
+
+-extern struct tm *localtime();
+-static void date_error();
++extern struct tm *localtime(const time_t *timep);
++static void date_error(char *s);
+
+
+ /* Enabling traces. */
+--- a/src/parsedate.y
++++ b/src/parsedate.y
+@@ -94,8 +94,8 @@
+ static time_t yyRelSeconds;
+
+
+-extern struct tm *localtime();
+-static void date_error();
++extern struct tm *localtime(const time_t *timep);
++static void date_error(char *s);
+ %}
+
+ %union {
+--- a/src/pilot-read-todos.c
++++ b/src/pilot-read-todos.c
+@@ -202,8 +202,8 @@
+
+ for (i = 0;; i++) {
+ int attr,
+- category,
+- len;
++ category;
++ ssize_t len;
+
+ struct ToDo todo;
+
+--- a/libpisock/linuxusb.c
++++ b/libpisock/linuxusb.c
+@@ -27,6 +27,7 @@
+ #include <stdio.h>
+ #include <sys/types.h>
+ #include <sys/stat.h>
++#include <sys/socket.h>
+
+ #include "pi-debug.h"
+ #include "pi-source.h"
+@@ -48,8 +49,8 @@
+
+ static int u_open(pi_socket_t *ps, struct pi_sockaddr *addr, size_t addrlen);
+ static int u_close(pi_socket_t *ps);
+-static int u_write(pi_socket_t *ps, unsigned char *buf, size_t len, int flags);
+-static int u_read(pi_socket_t *ps, pi_buffer_t *buf, size_t len, int flags);
++static ssize_t u_write(pi_socket_t *ps, const unsigned char *buf, size_t len, int flags);
++static ssize_t u_read(pi_socket_t *ps, pi_buffer_t *buf, size_t len, int flags);
+ static int u_poll(pi_socket_t *ps, int timeout);
+ static int u_flush(pi_socket_t *ps, int flags);
+
+@@ -188,8 +189,8 @@
+ * Returns: Nothing
+ *
+ ***********************************************************************/
+-static int
+-u_write(pi_socket_t *ps, unsigned char *buf, size_t len, int flags)
++static ssize_t
++u_write(pi_socket_t *ps, const unsigned char *buf, size_t len, int flags)
+ {
+ int total,
+ nwrote;
+@@ -281,7 +282,7 @@
+ * Returns: number of bytes read or negative otherwise
+ *
+ ***********************************************************************/
+-static int
++static ssize_t
+ u_read(pi_socket_t *ps, pi_buffer_t *buf, size_t len, int flags)
+ {
+ ssize_t rbuf = 0,
diff --git a/app-pda/pilot-link/pilot-link-0.12.5-r5.ebuild b/app-pda/pilot-link/pilot-link-0.12.5-r5.ebuild
new file mode 100644
index 000000000000..442358fff55f
--- /dev/null
+++ b/app-pda/pilot-link/pilot-link-0.12.5-r5.ebuild
@@ -0,0 +1,103 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit autotools flag-o-matic perl-module
+
+DESCRIPTION="Suite of tools for moving data between a Palm device and a desktop"
+# this is a new mirror; the distfile has the same content inside the tarball,
+# but the tarball itself doesn't match due to recompression and Git
+# indirection.
+HOMEPAGE="https://github.com/jichu4n/pilot-link"
+SRC_URI="
+ mirror://gentoo/${P}.tar.bz2
+ https://dev.gentoo.org/~soap/distfiles/${P}-gentoo-patchset-r2.tar.xz"
+
+LICENSE="|| ( GPL-2 LGPL-2 )"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux"
+IUSE="bluetooth perl png threads usb"
+RESTRICT="test" #672872
+
+RDEPEND="
+ dev-libs/popt
+ sys-libs/ncurses:=
+ sys-libs/readline:=
+ virtual/libiconv
+ bluetooth? ( net-wireless/bluez )
+ perl? ( dev-lang/perl:= )
+ png? ( media-libs/libpng:= )
+ usb? ( virtual/libusb:0 )"
+DEPEND="${RDEPEND}"
+BDEPEND="
+ virtual/pkgconfig
+ perl? ( dev-lang/perl )
+ sys-devel/bison"
+
+PATCHES=(
+ "${WORKDIR}/${P}-gentoo-patchset"/
+ "${FILESDIR}/${P}-C23.patch"
+)
+
+src_prepare() {
+ default
+ eautoreconf
+}
+
+src_configure() {
+ # -Werror=lto-type-mismatch
+ # https://bugs.gentoo.org/924480
+ #
+ # Upstream is abandoned since 2016, existing issue offering gentoo-patchset
+ # has been ignored. No bug filed.
+ #
+ # The issue is in the internal compat code for *not* using libusb.
+ use usb || filter-lto
+
+ # tcl/tk support is disabled as per upstream request.
+ # readline is not really optional, bug #626504
+ # Does not build with Java 8
+ # Does not build with Python 3, bug #735238
+ econf \
+ --includedir="${EPREFIX}"/usr/include/libpisock \
+ --enable-conduits \
+ --with-readline \
+ $(use_enable threads) \
+ $(use_enable usb libusb) \
+ $(use_with png libpng) \
+ $(use_with bluetooth bluez) \
+ $(use_with perl) \
+ --without-java \
+ --without-tcl \
+ --without-python
+
+ if use perl; then
+ perl_set_version
+
+ cd bindings/Perl || die
+ perl-module_src_configure
+ fi
+}
+
+src_compile() {
+ emake
+
+ if use perl; then
+ cd bindings/Perl || die
+ local mymake=( OTHERLDFLAGS="${LDFLAGS} -L../../libpisock/.libs -lpisock" ) #308629
+ perl-module_src_compile
+ fi
+}
+
+src_install() {
+ default
+ dodoc doc/{README*,TODO}
+
+ if use perl; then
+ cd bindings/Perl || die
+ perl-module_src_install
+ fi
+
+ find "${ED}" -name '*.la' -delete || die
+}