[39521] trunk/dports/net
rene at macports.org
rene at macports.org
Fri Aug 22 17:21:55 PDT 2008
Revision: 39521
http://trac.macosforge.org/projects/macports/changeset/39521
Author: rene at macports.org
Date: 2008-08-22 17:21:55 -0700 (Fri, 22 Aug 2008)
Log Message:
-----------
net/gajim-devel: New port. A full featured Jabber client. (12.0-alpha1-r10268)
Added Paths:
-----------
trunk/dports/net/gajim-devel/
trunk/dports/net/gajim-devel/Portfile
trunk/dports/net/gajim-devel/files/
trunk/dports/net/gajim-devel/files/patch-setup_osx.py.diff
trunk/dports/net/gajim-devel/files/patch-src-osx-Makefile.am.diff
trunk/dports/net/gajim-devel/files/patch-src-osx-growl-Makefile.am.diff
trunk/dports/net/gajim-devel/files/patch-src-osx-syncmenu-Makefile.am.diff
Added: trunk/dports/net/gajim-devel/Portfile
===================================================================
--- trunk/dports/net/gajim-devel/Portfile (rev 0)
+++ trunk/dports/net/gajim-devel/Portfile 2008-08-23 00:21:55 UTC (rev 39521)
@@ -0,0 +1,96 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-off set: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
+# $Id$
+
+PortSystem 1.0
+
+name gajim-devel
+version 0.12-alpha1-r10268
+homepage http://www.gajim.org/
+categories net chat
+
+description A full featured and easy to use Jabber client.
+long_description The goal of Gajim is to provide a full featured and \
+ easy to use Jabber client. Gajim works nicely with \
+ GNOME, but does not require it to run.
+
+maintainers rene
+
+platforms darwin
+
+fetch.type svn
+svn.url svn://svn.gajim.org/gajim/trunk
+svn.tag 10268
+worksrcdir trunk
+
+patchfiles patch-src-osx-Makefile.am.diff \
+ patch-src-osx-growl-Makefile.am.diff \
+ patch-src-osx-syncmenu-Makefile.am.diff \
+ patch-setup_osx.py.diff
+
+depends_build port:intltool \
+ port:autoconf \
+ port:automake \
+ port:py25-setuptools \
+ port:py25-macholib-devel \
+ port:py25-py2app-devel
+
+depends_lib port:gettext \
+ port:gtk2 \
+ port:py25-gtk \
+ port:py25-gobject \
+ port:py25-docutils \
+ port:py25-sqlite3 \
+ port:py25-openssl \
+ port:py25-zlib
+
+post-patch {
+ set py25includes [ exec ${prefix}/bin/python2.5-config --includes ]
+ set oldgtkpath "/Library/Frameworks/GTK+.framework/Versions/Current"
+ reinplace "s|@PYTHON@|${prefix}/bin/python2.5|" \
+ ${worksrcpath}/scripts/gajim-remote.in
+ reinplace "s|@PYTHON@|${prefix}/bin/python2.5|" \
+ ${worksrcpath}/scripts/gajim.in
+ reinplace "s|${oldgtkpath}|${prefix}|" \
+ ${worksrcpath}/src/osx/syncmenu/Makefile.am
+}
+
+pre-configure {
+ set aclocal "${prefix}/bin/aclocal"
+ system "cd ${worksrcpath} && ${aclocal} -I m4/ -I ${prefix}/share/aclocal/"
+ system "cd ${worksrcpath} && ./autogen.sh"
+}
+
+use_autoconf yes
+use_automake yes
+automake.args --foreign --add-missing --copy
+
+configure.args --disable-dependency-tracking \
+ --with-x \
+ --disable-remote \
+ CC=gcc CPP=cpp CXX=g++
+
+destroot {
+ system "cd ${worksrcpath} && ${prefix}/bin/python2.5 setup_osx.py build"
+ system "cd ${worksrcpath} && ${prefix}/bin/python setup_osx.py dist"
+ xinstall -d ${destroot}/Applications/MacPorts
+ file rename ${worksrcpath}/dist/Gajim.app \
+ ${destroot}/Applications/MacPorts/
+ ui_msg "*********************************************************"
+ ui_msg "*** Gajim has been installed to /Application/MacPort **"
+ ui_msg "*** Double click Gajim.app to start using it. **"
+ ui_msg "*********************************************************"
+}
+
+variant no_x11 {
+ configure.args-delete --with-x
+}
+
+variant dbus description {Enable dbus support} {
+ depends_lib-append port:dbus-python25
+}
+
+variant remote description {Enable remote support} {
+ configure.args-delete --disable-remote
+ configure.args-append --enable-remote
+}
+
Property changes on: trunk/dports/net/gajim-devel/Portfile
___________________________________________________________________
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
Added: trunk/dports/net/gajim-devel/files/patch-setup_osx.py.diff
===================================================================
--- trunk/dports/net/gajim-devel/files/patch-setup_osx.py.diff (rev 0)
+++ trunk/dports/net/gajim-devel/files/patch-setup_osx.py.diff 2008-08-23 00:21:55 UTC (rev 39521)
@@ -0,0 +1,29 @@
+--- setup_osx.py.orig 2008-08-23 01:17:55.000000000 +0200
++++ setup_osx.py 2008-08-23 01:17:49.000000000 +0200
+@@ -33,7 +33,7 @@
+ ### Globals
+ ###
+
+-GTK_DIR="/Library/Frameworks/GTK+.framework/Versions/Current"
++GTK_DIR="/opt/local"
+ NAME = 'Gajim'
+ VERSION = '0.12-alpha1'
+ DESCRIPTION = 'A full featured Jabber client'
+@@ -46,7 +46,7 @@
+
+ GAJIM_SCRIPT = \
+ '#!/bin/bash \n\
+-export DYLD_LIBRARY_PATH=%s/lib \n\
++#export DYLD_LIBRARY_PATH=%s/lib \n\
+ export PATH=%s/bin:$PATH \n\
+ export PYTHONPATH=%s/lib/python2.5/site-packages:%s/lib/python2.5/site-packages/gtk-2.0 \n\
+ exec ${0}.bin \n\
+@@ -54,7 +54,7 @@
+
+ GAJIM_REMOTE_SCRIPT = \
+ '#!/bin/bash \n\
+-export DYLD_LIBRARY_PATH=%s/lib \n\
++#export DYLD_LIBRARY_PATH=%s/lib \n\
+ TOPDIR=${0%%/MacOS/gajim-remote} \n\
+ echo "${TOPDIR}" | grep -e "^/" \n\
+ [ $? -ne 0 ] && TOPDIR=`pwd`/${TOPDIR} \n\
Added: trunk/dports/net/gajim-devel/files/patch-src-osx-Makefile.am.diff
===================================================================
--- trunk/dports/net/gajim-devel/files/patch-src-osx-Makefile.am.diff (rev 0)
+++ trunk/dports/net/gajim-devel/files/patch-src-osx-Makefile.am.diff 2008-08-23 00:21:55 UTC (rev 39521)
@@ -0,0 +1,26 @@
+--- src/osx/Makefile.am.orig 2008-08-22 23:27:43.000000000 +0200
++++ src/osx/Makefile.am 2008-08-22 23:28:43.000000000 +0200
+@@ -17,9 +17,9 @@
+ idle_la_SOURCES = idle.c
+
+ idle_la_LDFLAGS = \
+- -module -avoid-version -Xcompiler -isysroot -Xcompiler /Developer/SDKs/MacOSX10.4u.sdk -Xcompiler -arch -Xcompiler ppc -Xcompiler -arch -Xcompiler i386
++ -module -avoid-version
+
+-idle_la_CFLAGS = -Xcompiler -isysroot -Xcompiler /Developer/SDKs/MacOSX10.4u.sdk -Xcompiler -arch -Xcompiler ppc -Xcompiler -arch -Xcompiler i386 $(PYTHON_INCLUDES)
++idle_la_CFLAGS = $(PYTHON_INCLUDES)
+ endif
+
+ if BUILD_COCOA
+@@ -31,9 +31,9 @@
+ nsapp_la_SOURCES = nsapp.m
+
+ nsapp_la_LDFLAGS = \
+- -module -avoid-version -Xcompiler -isysroot -Xcompiler /Developer/SDKs/MacOSX10.4u.sdk -Xcompiler -arch -Xcompiler ppc -Xcompiler -arch -Xcompiler i386
++ -module -avoid-version
+
+-nsapp_la_CFLAGS = -Xcompiler -isysroot -Xcompiler /Developer/SDKs/MacOSX10.4u.sdk -Xcompiler -arch -Xcompiler ppc -Xcompiler -arch -Xcompiler i386 $(PYTHON_INCLUDES)
++nsapp_la_CFLAGS = $(PYTHON_INCLUDES)
+
+ AM_OBJCFLAGS = $(nsapp_la_CFLAGS)
+ endif
Added: trunk/dports/net/gajim-devel/files/patch-src-osx-growl-Makefile.am.diff
===================================================================
--- trunk/dports/net/gajim-devel/files/patch-src-osx-growl-Makefile.am.diff (rev 0)
+++ trunk/dports/net/gajim-devel/files/patch-src-osx-growl-Makefile.am.diff 2008-08-23 00:21:55 UTC (rev 39521)
@@ -0,0 +1,26 @@
+--- src/osx/growl/Makefile.am.orig 2008-08-22 23:29:02.000000000 +0200
++++ src/osx/growl/Makefile.am 2008-08-22 23:29:37.000000000 +0200
+@@ -13,9 +13,9 @@
+ _growl_la_SOURCES = _growl.c
+
+ _growl_la_LDFLAGS = \
+- -module -avoid-version -Xcompiler -isysroot -Xcompiler /Developer/SDKs/MacOSX10.4u.sdk -Xcompiler -arch -Xcompiler ppc -Xcompiler -arch -Xcompiler i386
++ -module -avoid-version
+
+-_growl_la_CFLAGS = -Xcompiler -isysroot -Xcompiler /Developer/SDKs/MacOSX10.4u.sdk -Xcompiler -arch -Xcompiler ppc -Xcompiler -arch -Xcompiler i386 $(PYTHON_INCLUDES)
++_growl_la_CFLAGS = $(PYTHON_INCLUDES)
+ endif
+
+ if BUILD_COCOA
+@@ -27,9 +27,9 @@
+ _growlImage_la_SOURCES = _growlImage.m
+
+ _growlImage_la_LDFLAGS = \
+- -module -avoid-version -Xcompiler -isysroot -Xcompiler /Developer/SDKs/MacOSX10.4u.sdk -Xcompiler -arch -Xcompiler ppc -Xcompiler -arch -Xcompiler i386
++ -module -avoid-version
+
+-_growlImage_la_CFLAGS = -Xcompiler -isysroot -Xcompiler /Developer/SDKs/MacOSX10.4u.sdk -Xcompiler -arch -Xcompiler ppc -Xcompiler -arch -Xcompiler i386 $(PYTHON_INCLUDES)
++_growlImage_la_CFLAGS = $(PYTHON_INCLUDES)
+
+ AM_OBJCFLAGS = $(_growlImage_la_CFLAGS)
+ endif
Added: trunk/dports/net/gajim-devel/files/patch-src-osx-syncmenu-Makefile.am.diff
===================================================================
--- trunk/dports/net/gajim-devel/files/patch-src-osx-syncmenu-Makefile.am.diff (rev 0)
+++ trunk/dports/net/gajim-devel/files/patch-src-osx-syncmenu-Makefile.am.diff 2008-08-23 00:21:55 UTC (rev 39521)
@@ -0,0 +1,13 @@
+--- src/osx/syncmenu/Makefile.am.orig 2008-08-22 23:29:53.000000000 +0200
++++ src/osx/syncmenu/Makefile.am 2008-08-22 23:30:22.000000000 +0200
+@@ -10,8 +10,8 @@
+ syncmenulib_LTLIBRARIES = syncmenu.la
+ syncmenulibdir = $(libdir)/gajim
+ syncmenu_la_SOURCES = sync-menu.c pysyncmenu.c
+-syncmenu_la_LDFLAGS = -module -avoid-version -Xcompiler -isysroot -Xcompiler /Developer/SDKs/MacOSX10.4u.sdk -Xcompiler -arch -Xcompiler ppc -Xcompiler -arch -Xcompiler i386 $(GTKLDFLAGS)
+-syncmenu_la_CFLAGS = -Xcompiler -isysroot -Xcompiler /Developer/SDKs/MacOSX10.4u.sdk -Xcompiler -arch -Xcompiler ppc -Xcompiler -arch -Xcompiler i386 $(GTKCFLAGS) -Wall -g $(INCLUDES)
++syncmenu_la_LDFLAGS = -module -avoid-version
++syncmenu_la_CFLAGS = $(GTKCFLAGS) -Wall -g $(INCLUDES)
+ endif
+
+ DISTCLEANFILES =
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080822/4aeee2e6/attachment.html
More information about the macports-changes
mailing list