[45082] trunk/dports/comms/gnokii

jmr at macports.org jmr at macports.org
Thu Jan 8 02:23:57 PST 2009


Revision: 45082
          http://trac.macports.org/changeset/45082
Author:   jmr at macports.org
Date:     2009-01-08 02:23:57 -0800 (Thu, 08 Jan 2009)
Log Message:
-----------
gnokii: update to 0.6.27 (fixes #17827, maintainer timeout)

Modified Paths:
--------------
    trunk/dports/comms/gnokii/Portfile

Added Paths:
-----------
    trunk/dports/comms/gnokii/files/
    trunk/dports/comms/gnokii/files/fink-fixes.diff

Modified: trunk/dports/comms/gnokii/Portfile
===================================================================
--- trunk/dports/comms/gnokii/Portfile	2009-01-08 10:11:32 UTC (rev 45081)
+++ trunk/dports/comms/gnokii/Portfile	2009-01-08 10:23:57 UTC (rev 45082)
@@ -1,38 +1,59 @@
 # $Id$
+
 PortSystem 1.0
+
 name			gnokii
-version			0.6.8
+version			0.6.27
 categories		comms
+platforms       darwin
 maintainers		mpal1+bugzilla at ieee.org
 description		Tools to manipulate Nokia and other mobile phones.
-long_description	gnokii provides tools and a user space driver for use with mobile phones under Linux, various unices and Win32. With gnokii you can do such things as make data calls, update your address book, change calendar entires, send and receive SMS messages and load ring tones depending on the phone you have.
+long_description	gnokii provides tools and a user space driver for use \
+                    with mobile phones under Linux, various unices and \
+                    Win32. With gnokii you can do such things as make data \
+                    calls, update your address book, change calendar \
+                    entires, send and receive SMS messages and load ring \
+                    tones depending on the phone you have.
 
 homepage		http://www.gnokii.org/
 
+use_bzip2       yes
 master_sites		http://gnokii.org/download/gnokii/ \
 			http://gnokii.org/download/gnokii/0.6.x/ \
 			ftp://ftp.gnokii.org/pub/gnokii/ \
-			ftp://ftp.gnokii.org/pub/gnokii/0.6.x/
+			ftp://ftp.gnokii.org/pub/gnokii/0.6.x/ \
+			http://ftp.slackware.pl/pub/gnokii/gnokii/ \
+			http://ftp.slackware.pl/pub/gnokii/gnokii/0.6.x/
 
-checksums		md5 fd1cc8e95e112d7414a8420518b881d6
+checksums		md5 fd0ae7996a2e2a2c29e9f3c625df8f3d \
+                sha1 a7c6f9fa56bfe01e3c8e719bb8585a24469fe1e7
 
-depends_lib		lib:gtk.1:gtk1 \
-			port:libtool
+depends_lib		port:gtk2 port:libical port:libusb port:iso-codes port:readline
 
-configure.args		--disable-shared --disable-nls -enable-security
+patchfiles      fink-fixes.diff
+patch.args      -p1
+post-patch {
+    reinplace "s|/etc/gnokiirc|${prefix}/etc/gnokiirc|" ${worksrcpath}/common/cfgreader.c
+    reinplace "s|/usr/local|${prefix}|" ${worksrcpath}/Docs/sample/gnokiirc
+}
 
+configure.ldflags-append -lintl -lglib-2.0
+configure.args		--enable-security \
+                    --disable-smsd \
+                    --with-libiconv-prefix=${prefix} \
+                    --with-readline=${prefix}
+
+post-activate {
+    if {![file exists ${prefix}/etc/gnokiirc]} {
+        copy ${prefix}/share/doc/gnokii/sample/gnokiirc ${prefix}/etc/gnokiirc
+    }
+}
+
 variant no_x11 {
-  depends_lib-delete	lib:gtk.1:gtk1
+  depends_lib-delete	port:gtk2
   configure.args-append	--without-x 
 }
 
-# the ltmain.sh supplied with gnokii and OSX 10.4 both have problems
-platform darwin { 
-  post-extract {
-    if {[file exists ${prefix}/share/libtool/config/ltmain.sh]} {
-      file copy		-force ${prefix}/share/libtool/config/ltmain.sh ${worksrcpath}/config
-    } else {
-      file copy		-force ${prefix}/share/libtool/ltmain.sh ${worksrcpath}/config
-    }
-  }
+platform macosx {
+  configure.ldflags-append    -framework IOBluetooth -framework CoreFoundation
 }

Added: trunk/dports/comms/gnokii/files/fink-fixes.diff
===================================================================
--- trunk/dports/comms/gnokii/files/fink-fixes.diff	                        (rev 0)
+++ trunk/dports/comms/gnokii/files/fink-fixes.diff	2009-01-08 10:23:57 UTC (rev 45082)
@@ -0,0 +1,58 @@
+diff -uNr gnokii-0.6.13/configure gnokii-0.6.13-new/configure
+--- gnokii-0.6.13/configure	2006-06-18 13:02:08.000000000 -0400
++++ gnokii-0.6.13-new/configure	2006-08-15 11:32:58.000000000 -0400
+@@ -27521,7 +27521,7 @@
+ _ACEOF
+ 
+ 		USE_BLUETOOTH="yes"
+-		BLUETOOTH_LIBS="$PTHREAD_LIBS -framework CoreFoundation -framework IOBluetooth -framework Foundation"
++		BLUETOOTH_LIBS="$PTHREAD_LIBS -Wl,-framework,CoreFoundation -Wl,-framework,IOBluetooth -Wl,-framework,Foundation"
+ 
+ 	fi
+ fi
+
+diff -uNr gnokii-0.6.13/xgnokii/xgnokii_data.c gnokii-0.6.13-new/xgnokii/xgnokii_data.c
+--- gnokii-0.6.13/xgnokii/xgnokii_data.c	2006-06-18 13:02:00.000000000 -0400
++++ gnokii-0.6.13-new/xgnokii/xgnokii_data.c	2006-08-15 11:33:18.000000000 -0400
+@@ -65,7 +65,7 @@
+ }
+ 
+ 
+-inline void GUI_ShowData(void)
++__attribute__ ((visibility("hidden"))) void GUI_ShowData(void)
+ {
+ 	if (!phoneMonitor.supported & PM_DATA)
+ 		return;
+@@ -81,7 +81,7 @@
+ }
+ 
+ 
+-inline void GUI_HideData(void)
++__attribute__ ((visibility("hidden"))) void GUI_HideData(void)
+ {
+ 	gtk_widget_hide(GUI_DataWindow);
+ }
+diff -uNr gnokii-0.6.13/xgnokii/xgnokii_data.h gnokii-0.6.13-new/xgnokii/xgnokii_data.h
+--- gnokii-0.6.13/xgnokii/xgnokii_data.h	2006-06-18 13:02:00.000000000 -0400
++++ gnokii-0.6.13-new/xgnokii/xgnokii_data.h	2006-08-15 11:33:18.000000000 -0400
+@@ -31,7 +31,7 @@
+ #define XGNOKII_DATA_H
+ 
+ void GUI_CreateDataWindow(void);
+-inline void GUI_ShowData(void);
+-inline void GUI_HideData(void);
++__attribute__ ((visibility("hidden"))) void GUI_ShowData(void);
++__attribute__ ((visibility("hidden"))) void GUI_HideData(void);
+ 
+ #endif
+diff -uNr gnokii-0.6.13/xgnokii/xgnokii_lowlevel.h gnokii-0.6.13-new/xgnokii/xgnokii_lowlevel.h
+--- gnokii-0.6.13/xgnokii/xgnokii_lowlevel.h	2006-06-18 13:02:00.000000000 -0400
++++ gnokii-0.6.13-new/xgnokii/xgnokii_lowlevel.h	2006-08-15 11:32:58.000000000 -0400
+@@ -230,6 +230,6 @@
+ extern void GUI_InsertEvent(PhoneEvent * event);
+ extern gn_error GUI_InitSMSFolders(void);
+ extern int isSMSactivated;
+-struct gn_statemachine *statemachine;
++extern struct gn_statemachine *statemachine;
+ 
+ #endif
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090108/351cecf9/attachment.html>


More information about the macports-changes mailing list