[47123] trunk/dports/x11
ryandesign at macports.org
ryandesign at macports.org
Sun Feb 22 03:50:36 PST 2009
Revision: 47123
http://trac.macports.org/changeset/47123
Author: ryandesign at macports.org
Date: 2009-02-22 03:50:35 -0800 (Sun, 22 Feb 2009)
Log Message:
-----------
pure-gtk: new port, version 0.1; provides wrappers for glib2, gtk2, atk, cairo and pango
Modified Paths:
--------------
trunk/dports/x11/pure-gtk/Portfile
trunk/dports/x11/pure-gtk/files/patch-Makefile.diff
Added Paths:
-----------
trunk/dports/x11/pure-gtk/
trunk/dports/x11/pure-gtk/files/patch-prefix.diff
Modified: trunk/dports/x11/pure-gtk/Portfile
===================================================================
--- trunk/dports/devel/pure-csv/Portfile 2009-02-22 08:40:35 UTC (rev 47111)
+++ trunk/dports/x11/pure-gtk/Portfile 2009-02-22 11:50:35 UTC (rev 47123)
@@ -2,30 +2,45 @@
PortSystem 1.0
-name pure-csv
-version 0.3
-categories devel
+name pure-gtk
+version 0.1
+categories x11
platforms darwin
maintainers ryandesign
use_parallel_build yes
homepage http://pure-lang.googlecode.com/
master_sites ${homepage}files/
-description an interface to read and write comma \
- separated value files in Pure
+description a collection of bindings to use the GTK+ \
+ GUI toolkit version 2.x with Pure
-long_description ${name} provides ${description}. The reading \
- and writing functions are loosely based on \
- Python's CSV module
+long_description ${name} is ${description}. The bindings \
+ include the gtk (+gdk), glib, atk, cairo and \
+ pango libraries, each in their own Pure module
-checksums md5 ce5bbaf838f15206d9910f9b4ce5727f \
- sha1 6648789e26e9d8a7d2629b5af54dfaa1e339151b \
- rmd160 55e5dfd25814ff74faae8c7274f2aa60d173b6dc
+checksums md5 b85204a685a730ac36ffd041f9793607 \
+ sha1 b3c13f76c2249dbf6b36079e4fda17a19b28cfe5 \
+ rmd160 5c9e9395d41eebddda0e4508e28d292efe8bcbf4
-depends_lib-append path:lib/libpure.dylib:pure
+depends_lib-append path:lib/libpure.dylib:pure \
+ path:lib/pkgconfig/atk.pc:atk \
+ path:lib/pkgconfig/cairo.pc:cairo \
+ path:lib/pkgconfig/glib-2.0.pc:glib2 \
+ path:lib/pkgconfig/gtk+-2.0.pc:gtk2 \
+ path:lib/pkgconfig/pango.pc:pango
-patchfiles patch-Makefile.diff
+patchfiles patch-Makefile.diff \
+ patch-prefix.diff
+post-patch {
+ reinplace "s|@PREFIX@|${prefix}|g" \
+ ${worksrcpath}/atk.c \
+ ${worksrcpath}/cairo.c \
+ ${worksrcpath}/glib.c \
+ ${worksrcpath}/gtk.c \
+ ${worksrcpath}/pango.c
+}
+
use_configure no
pre-build {
Modified: trunk/dports/x11/pure-gtk/files/patch-Makefile.diff
===================================================================
--- trunk/dports/devel/pure-csv/files/patch-Makefile.diff 2009-02-22 08:40:35 UTC (rev 47111)
+++ trunk/dports/x11/pure-gtk/files/patch-Makefile.diff 2009-02-22 11:50:35 UTC (rev 47123)
@@ -1,20 +1,13 @@
---- Makefile.orig 2009-01-29 18:41:39.000000000 -0600
-+++ Makefile 2009-02-02 01:35:54.000000000 -0600
-@@ -52,14 +52,14 @@
- all: csv$(DLL)
+--- Makefile.orig 2009-02-20 06:23:16.000000000 -0600
++++ Makefile 2009-02-22 05:32:12.000000000 -0600
+@@ -87,8 +87,8 @@
+ # Install targets.
- csv$(DLL): csv.c
-- gcc $(shared) -o $@ $< $(FLAGS) -lpure $(LIBS)
-+ $(CC) $(shared) -o $@ $< $(FLAGS) -lpure $(LIBS)
-
- clean:
- rm -f *$(DLL) *~ *.a *.o
-
install:
- test -d "$(DESTDIR)$(libdir)/pure" || mkdir -p "$(DESTDIR)$(libdir)/pure"
-- cp csv.pure csv$(DLL) "$(DESTDIR)$(libdir)/pure"
+- cp $(modules) $(dlls) "$(DESTDIR)$(libdir)/pure"
+ test -d "$(DESTDIR)`readlink $(libdir)/pure`" || mkdir -p "$(DESTDIR)`readlink $(libdir)/pure`"
-+ cp csv.pure csv$(DLL) "$(DESTDIR)`readlink $(libdir)/pure`"
++ cp $(modules) $(dlls) "$(DESTDIR)`readlink $(libdir)/pure`"
uninstall:
- rm -f "$(DESTDIR)$(libdir)/pure/csv.pure" "$(DESTDIR)$(libdir)/pure/csv$(DLL)"
+ rm -f $(addprefix "$(DESTDIR)$(libdir)/pure/", $(modules) $(dlls))
Added: trunk/dports/x11/pure-gtk/files/patch-prefix.diff
===================================================================
--- trunk/dports/x11/pure-gtk/files/patch-prefix.diff (rev 0)
+++ trunk/dports/x11/pure-gtk/files/patch-prefix.diff 2009-02-22 11:50:35 UTC (rev 47123)
@@ -0,0 +1,76 @@
+--- atk.c 2009-02-19 20:27:10.000000000 -0600
++++ atk.c 2009-02-22 05:38:30.000000000 -0600
+@@ -1,4 +1,4 @@
+-#include "/usr/include/atk-1.0/atk/atk.h"
++#include "@PREFIX@/include/atk-1.0/atk/atk.h"
+
+ unsigned int Pure_atk_state_type_register(char const* arg0)
+ {
+--- cairo.c 2009-02-19 20:27:16.000000000 -0600
++++ cairo.c 2009-02-22 05:38:50.000000000 -0600
+@@ -1,4 +1,4 @@
+-#include "/usr/include/cairo/cairo.h"
++#include "@PREFIX@/include/cairo/cairo.h"
+
+ int Pure_cairo_version()
+ {
+--- glib.c 2009-02-19 20:26:55.000000000 -0600
++++ glib.c 2009-02-22 05:39:15.000000000 -0600
+@@ -1,4 +1,4 @@
+-#include "/usr/include/glib-2.0/glib.h"
++#include "@PREFIX@/include/glib-2.0/glib.h"
+
+ GArray* Pure_g_array_new(int arg0, int arg1, unsigned int arg2)
+ {
+@@ -5565,7 +5565,7 @@
+ {
+ return g_uri_escape_string(arg0, arg1, arg2);
+ }
+-#include "/usr/include/glib-2.0/glib-object.h"
++#include "@PREFIX@/include/glib-2.0/glib-object.h"
+
+ void Pure_g_type_init()
+ {
+@@ -7256,7 +7256,7 @@
+ {
+ return g_value_set_string_take_ownership(arg0, arg1);
+ }
+-#include "/usr/include/glib-2.0/gio/gio.h"
++#include "@PREFIX@/include/glib-2.0/gio/gio.h"
+
+ unsigned long Pure_g_app_info_get_type()
+ {
+@@ -9827,7 +9827,7 @@
+ {
+ return g_volume_get_activation_root(arg0);
+ }
+-#include "/usr/include/glib-2.0/gmodule.h"
++#include "@PREFIX@/include/glib-2.0/gmodule.h"
+
+ int Pure_g_module_supported()
+ {
+--- gtk.c 2009-02-19 20:26:04.000000000 -0600
++++ gtk.c 2009-02-22 05:39:32.000000000 -0600
+@@ -1,4 +1,4 @@
+-#include "/usr/include/gtk-2.0/gdk/gdk.h"
++#include "@PREFIX@/include/gtk-2.0/gdk/gdk.h"
+
+ unsigned long Pure_gdk_colormap_get_type()
+ {
+@@ -3619,7 +3619,7 @@
+ {
+ return gdk_threads_add_timeout_seconds(arg0, arg1, arg2);
+ }
+-#include "/usr/include/gtk-2.0/gtk/gtk.h"
++#include "@PREFIX@/include/gtk-2.0/gtk/gtk.h"
+
+ unsigned long Pure_gtk_accel_group_get_type()
+ {
+--- pango.c 2009-02-19 20:27:28.000000000 -0600
++++ pango.c 2009-02-22 05:39:44.000000000 -0600
+@@ -1,4 +1,4 @@
+-#include "/usr/include/pango-1.0/pango/pango.h"
++#include "@PREFIX@/include/pango-1.0/pango/pango.h"
+
+ PangoCoverage* Pure_pango_coverage_new()
+ {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090222/1fed6f7b/attachment.html>
More information about the macports-changes
mailing list