gtkpod: python3

This commit is contained in:
classabbyamp 2023-09-28 01:31:44 -04:00
parent 8b35257c2c
commit fcb27ef030
No known key found for this signature in database
GPG key ID: 6BE0755918A4C7F5
2 changed files with 25 additions and 3 deletions

View file

@ -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 <nick at nickpiper dot co dot uk>
#
@@ -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))

View file

@ -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"