From fcb27ef0301ba1be78bcc156a953a916e80a24e2 Mon Sep 17 00:00:00 2001 From: classabbyamp Date: Thu, 28 Sep 2023 01:31:44 -0400 Subject: [PATCH] gtkpod: python3 --- srcpkgs/gtkpod/patches/python3.patch | 23 +++++++++++++++++++++++ srcpkgs/gtkpod/template | 5 ++--- 2 files changed, 25 insertions(+), 3 deletions(-) create mode 100644 srcpkgs/gtkpod/patches/python3.patch diff --git a/srcpkgs/gtkpod/patches/python3.patch b/srcpkgs/gtkpod/patches/python3.patch new file mode 100644 index 00000000000..000b558d6f5 --- /dev/null +++ b/srcpkgs/gtkpod/patches/python3.patch @@ -0,0 +1,23 @@ +--- a/scripts/sync-palm-jppy.py ++++ b/scripts/sync-palm-jppy.py +@@ -1,4 +1,4 @@ +-#!/usr/bin/python ++#!/usr/bin/python3 + # Script for syncing Palm addressbook data with iPod via Jppy + # (c) 2005 Nick Piper + # +@@ -52,7 +52,7 @@ + (options, args) = parser.parse_args() + + if options.verbose: +- print "Trying to export from Jppy:" ++ print("Trying to export from Jppy:") + + dir = os.path.join(options.mountpoint,"Contacts") + if not os.path.exists(dir): +@@ -74,4 +74,4 @@ + os.unlink(fn) + + if options.verbose: +- print "Saved %d records, removed %d records." % (n,r) ++ print("Saved %d records, removed %d records." % (n,r)) diff --git a/srcpkgs/gtkpod/template b/srcpkgs/gtkpod/template index bfcb41e6219..7b77d6cc7b3 100644 --- a/srcpkgs/gtkpod/template +++ b/srcpkgs/gtkpod/template @@ -1,7 +1,7 @@ # Template file for 'gtkpod' pkgname=gtkpod version=2.1.5 -revision=4 +revision=5 build_style=gnu-configure configure_args="--disable-static" hostmakedepends="flex intltool pkg-config glib" @@ -14,8 +14,7 @@ license="GPL-2.0-or-later" homepage="http://www.gtkpod.org/libgpod" distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.gz" checksum=a57dc8ae9138e0cb4cee98691e7a95001130c9ea7823e6a75cc72503facd3a76 -# Line 55: print in python 2 style -python_version=2 +python_version=3 CFLAGS="-fcommon"