diff options
author | kwm <kwm@df743ca5-7f9a-e211-a948-0013205c9059> | 2009-12-25 23:02:33 +0800 |
---|---|---|
committer | kwm <kwm@df743ca5-7f9a-e211-a948-0013205c9059> | 2009-12-25 23:02:33 +0800 |
commit | 911510b740ef5dbba6a3802cdb790ae13a6b5999 (patch) | |
tree | 406a0174639d489fd3627ded95503c3b2c02be5f /devel/seed | |
parent | dac8d2aa9448d1b34c47fb5d379de0ebdc00e04d (diff) | |
download | marcuscom-ports-911510b740ef5dbba6a3802cdb790ae13a6b5999.tar marcuscom-ports-911510b740ef5dbba6a3802cdb790ae13a6b5999.tar.gz marcuscom-ports-911510b740ef5dbba6a3802cdb790ae13a6b5999.tar.bz2 marcuscom-ports-911510b740ef5dbba6a3802cdb790ae13a6b5999.tar.lz marcuscom-ports-911510b740ef5dbba6a3802cdb790ae13a6b5999.tar.xz marcuscom-ports-911510b740ef5dbba6a3802cdb790ae13a6b5999.tar.zst marcuscom-ports-911510b740ef5dbba6a3802cdb790ae13a6b5999.zip |
Update to 2.29.4.
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@13297 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'devel/seed')
-rw-r--r-- | devel/seed/Makefile | 56 | ||||
-rw-r--r-- | devel/seed/distinfo | 3 | ||||
-rw-r--r-- | devel/seed/files/patch-libseed_seed-importer.c | 49 | ||||
-rw-r--r-- | devel/seed/files/patch-modules_gettext_seed-gettext.c | 27 | ||||
-rw-r--r-- | devel/seed/files/patch-modules_os_seed-os.c | 95 | ||||
-rw-r--r-- | devel/seed/pkg-descr | 7 | ||||
-rw-r--r-- | devel/seed/pkg-plist | 106 |
7 files changed, 343 insertions, 0 deletions
diff --git a/devel/seed/Makefile b/devel/seed/Makefile new file mode 100644 index 000000000..3259bf6e9 --- /dev/null +++ b/devel/seed/Makefile @@ -0,0 +1,56 @@ +# New ports collection makefile for: seed +# Date created: 19 July 2009 +# Whom: Alexander Logvinov <avl@FreeBSD.org> +# +# $FreeBSD$ +# $MCom$ +# + +PORTNAME= seed +PORTVERSION= 2.29.4 +CATEGORIES= devel gnome +MASTER_SITES= GNOME +DIST_SUBDIR= gnome2 + +MAINTAINER= gnome@FreeBSD.org +COMMENT= GObject JavaScriptCore bridge + +BUILD_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/gnome-js-common.pc:${PORTSDIR}/devel/gnome-js-common +LIB_DEPENDS= ffi.5:${PORTSDIR}/devel/libffi \ + webkit-1.0.13:${PORTSDIR}/www/webkit-gtk2 \ + girepository-1.0.0:${PORTSDIR}/devel/gobject-introspection \ + dbus-glib-1.2:${PORTSDIR}/devel/dbus-glib \ + sqlite3.8:${PORTSDIR}/databases/sqlite3 \ + mpfr.3:${PORTSDIR}/math/mpfr + +USE_BZIP2= yes +GNU_CONFIGURE= yes +USE_GETTEXT= yes +USE_GNOME= gnomehack gtk20 intltool libxml2 +USE_LDCONFIG= yes +USE_AUTOTOOLS= libtool:22 +USE_GMAKE= yes +CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ + LDFLAGS="-L${LOCALBASE}/lib" +CONFIGURE_ARGS+=--enable-gtk-doc=no + +MAN1= seed.1 + +.include <bsd.port.pre.mk> + +post-patch: + @${REINPLACE_CMD} -e 's|== x|= x|g' \ + ${WRKSRC}/configure + @${REINPLACE_CMD} -e 's|reference||g' ${WRKSRC}/doc/Makefile.in + @${FIND} ${WRKSRC}/examples -name Makefile.in -type f | ${XARGS} ${REINPLACE_CMD} -e \ + 's|$$(datadir)/doc/seed/examples|${EXAMPLESDIR}|g' +.if defined(NOPORTEXAMPLES) + @${REINPLACE_CMD} -e 's|examples||g' \ + ${WRKSRC}/Makefile.in +.endif +.if defined(NOPORTDOCS) + @${REINPLACE_CMD} -e 's| install-seeddocDATA||g ; s|doc$$||g' \ + ${WRKSRC}/Makefile.in +.endif + +.include <bsd.port.post.mk> diff --git a/devel/seed/distinfo b/devel/seed/distinfo new file mode 100644 index 000000000..eed14cf66 --- /dev/null +++ b/devel/seed/distinfo @@ -0,0 +1,3 @@ +MD5 (gnome2/seed-2.29.4.tar.bz2) = d6ad9d761cc69c3225d12d1d04ebf782 +SHA256 (gnome2/seed-2.29.4.tar.bz2) = 16ae3aa602c66670541eda042388e4775eab10cfe3291c81f090d535e3135948 +SIZE (gnome2/seed-2.29.4.tar.bz2) = 741854 diff --git a/devel/seed/files/patch-libseed_seed-importer.c b/devel/seed/files/patch-libseed_seed-importer.c new file mode 100644 index 000000000..c216fa88c --- /dev/null +++ b/devel/seed/files/patch-libseed_seed-importer.c @@ -0,0 +1,49 @@ +--- libseed/seed-importer.c.orig 2009-08-10 16:23:35.000000000 -0400 ++++ libseed/seed-importer.c 2009-08-22 14:36:00.000000000 -0400 +@@ -22,6 +22,8 @@ + + #include <gio/gio.h> + #include <string.h> ++#include <stdlib.h> ++#include <unistd.h> + + #include "seed-private.h" + +@@ -637,8 +639,9 @@ seed_importer_handle_file (JSContextRef + JSValueRef js_file_dirname; + JSObjectRef global, c_global; + JSStringRef file_contents, file_name; +- gchar *contents, *walk, *file_path, *canonical, *absolute_path; ++ gchar *contents, *walk, *file_path, *canonical, *absolute_path, *normalp; + gchar *normalized_path; ++ gsize path_max; + + file_path = g_build_filename (dir, file, NULL); + canonical = seed_importer_canonicalize_path (file_path); +@@ -692,15 +695,24 @@ seed_importer_handle_file (JSContextRef + g_path_get_dirname (file_path), NULL); + } + +- normalized_path = canonicalize_file_name (absolute_path); ++#ifdef PATH_MAX ++ path_max = PATH_MAX; ++#else ++ path_max = pathconf (absolute_path, _PC_PATH_MAX); ++ if (path_max <= 0) ++ path_max = 4096; ++#endif ++ normalized_path = (gchar *) g_malloc (path_max); ++ normalp = realpath (absolute_path, normalized_path); + +- js_file_dirname = seed_value_from_string (ctx, normalized_path, NULL); ++ js_file_dirname = seed_value_from_string (ctx, normalp, NULL); + + seed_object_set_property (nctx, global, "__script_path__", js_file_dirname); + + g_hash_table_insert (file_imports, canonical, global); + g_free (file_path); + g_free (absolute_path); ++ g_free (normalized_path); + + JSEvaluateScript (nctx, file_contents, NULL, file_name, 0, exception); + diff --git a/devel/seed/files/patch-modules_gettext_seed-gettext.c b/devel/seed/files/patch-modules_gettext_seed-gettext.c new file mode 100644 index 000000000..999f1d97a --- /dev/null +++ b/devel/seed/files/patch-modules_gettext_seed-gettext.c @@ -0,0 +1,27 @@ +--- modules/gettext/seed-gettext.c.orig 2009-07-26 19:23:31.000000000 -0400 ++++ modules/gettext/seed-gettext.c 2009-07-26 19:25:12.000000000 -0400 +@@ -293,12 +293,24 @@ seed_module_init(SeedEngine *local_eng) + DEFINE_ENUM_MEMBER(ns_ref, LC_MONETARY); + DEFINE_ENUM_MEMBER(ns_ref, LC_MESSAGES); + DEFINE_ENUM_MEMBER(ns_ref, LC_ALL); ++#ifdef LC_PAPER + DEFINE_ENUM_MEMBER(ns_ref, LC_PAPER); ++#endif ++#ifdef LC_NAME + DEFINE_ENUM_MEMBER(ns_ref, LC_NAME); ++#endif ++#ifdef LC_ADDRESS + DEFINE_ENUM_MEMBER(ns_ref, LC_ADDRESS); ++#endif ++#ifdef LC_TELEPHONE + DEFINE_ENUM_MEMBER(ns_ref, LC_TELEPHONE); ++#endif ++#ifdef LC_MEASUREMENT + DEFINE_ENUM_MEMBER(ns_ref, LC_MEASUREMENT); ++#endif ++#ifdef LC_IDENTIFICATION + DEFINE_ENUM_MEMBER(ns_ref, LC_IDENTIFICATION); ++#endif + DEFINE_ENUM_MEMBER(ns_ref, LC_CTYPE); + + return ns_ref; diff --git a/devel/seed/files/patch-modules_os_seed-os.c b/devel/seed/files/patch-modules_os_seed-os.c new file mode 100644 index 000000000..a24fbd1e1 --- /dev/null +++ b/devel/seed/files/patch-modules_os_seed-os.c @@ -0,0 +1,95 @@ +--- modules/os/seed-os.c.orig 2009-10-07 01:43:54.000000000 -0400 ++++ modules/os/seed-os.c 2009-12-19 14:53:48.000000000 -0500 +@@ -29,8 +29,15 @@ + + #include <sys/stat.h> + #include <sys/utsname.h> ++#if defined(__FreeBSD__) ++#include <sys/param.h> ++#endif + + #include <sys/types.h> ++#include <sys/ioctl.h> ++#include <termios.h> ++#include <libutil.h> ++#include <unistd.h> + + #include <fcntl.h> + +@@ -54,18 +61,32 @@ seed_os_realpath (SeedContext ctx, + const SeedValue arguments[], + SeedException * exception) + { ++ SeedValue sv; + gchar *arg; ++ gchar *resolved_path; + gchar *ret; ++ gsize path_max; + + if (argument_count != 1) + { + EXPECTED_EXCEPTION("os.realpath", "1 argument"); + } + arg = seed_value_to_string (ctx, arguments[0], exception); +- ret = canonicalize_file_name(arg); ++#ifdef PATH_MAX ++ path_max = PATH_MAX; ++#else ++ path_max = pathconf (arg, _PC_PATH_MAX); ++ if (path_max <= 0) ++ path_max = 4096; ++#endif ++ resolved_path = (gchar *) g_malloc (path_max); ++ ret = realpath(arg, resolved_path); + g_free (arg); + +- return seed_value_from_string (ctx, ret, exception); ++ sv = seed_value_from_string (ctx, ret, exception); ++ g_free (resolved_path); ++ ++ return sv; + } + + SeedValue +@@ -559,7 +580,12 @@ seed_os_unsetenv (SeedContext ctx, + } + + arg = seed_value_to_string (ctx, arguments[0], exception); ++#if __FreeBSD_version < 700000 ++ ret = 0; ++ unsetenv (arg); ++#else + ret = unsetenv (arg); ++#endif + g_free (arg); + + return seed_value_from_int (ctx, ret, exception); +@@ -702,6 +728,7 @@ seed_os_fdatasync (SeedContext ctx, + const SeedValue arguments[], + SeedException * exception) + { ++#if !defined(__FreeBSD__) + gint fd; + + if (argument_count != 1) +@@ -711,6 +738,10 @@ seed_os_fdatasync (SeedContext ctx, + fd = seed_value_to_int (ctx, arguments[0], exception); + + return seed_value_from_int (ctx, fdatasync (fd), exception); ++#else ++ errno = ENOSYS; ++ return seed_value_from_int (ctx, -1, exception); ++#endif + } + + SeedValue +@@ -1112,7 +1143,9 @@ seed_module_init(SeedEngine * eng) + #if defined (O_DIRECT) + OS_DEFINE_QUICK_ENUM (O_DIRECT); + #endif ++#if defined (O_DIRECTORY) + OS_DEFINE_QUICK_ENUM (O_DIRECTORY); ++#endif + OS_DEFINE_QUICK_ENUM (O_NOFOLLOW); + #if defined (O_NOATIME) + OS_DEFINE_QUICK_ENUM (O_NOATIME); diff --git a/devel/seed/pkg-descr b/devel/seed/pkg-descr new file mode 100644 index 000000000..ffc081bb3 --- /dev/null +++ b/devel/seed/pkg-descr @@ -0,0 +1,7 @@ +Seed is a library and interpreter, dynamically bridging (through +GObjectIntrospection) the WebKit JavaScriptCore engine, with the GNOME +platform. Seed serves as something which enables you to write standalone +applications in JavaScript, or easily enable your application to be extensible +in JavaScript. + +WWW: http://live.gnome.org/Seed diff --git a/devel/seed/pkg-plist b/devel/seed/pkg-plist new file mode 100644 index 000000000..1b7b77628 --- /dev/null +++ b/devel/seed/pkg-plist @@ -0,0 +1,106 @@ +bin/seed +include/seed/seed-debug.h +include/seed/seed-module.h +include/seed/seed.h +lib/libseed.a +lib/libseed.la +lib/libseed.so +lib/libseed.so.0 +lib/seed/libseed_cairo.a +lib/seed/libseed_cairo.la +lib/seed/libseed_cairo.so +lib/seed/libseed_canvas.a +lib/seed/libseed_canvas.la +lib/seed/libseed_canvas.so +lib/seed/libseed_dbusnative.a +lib/seed/libseed_dbusnative.la +lib/seed/libseed_dbusnative.so +lib/seed/libseed_example.a +lib/seed/libseed_example.la +lib/seed/libseed_example.so +lib/seed/libseed_ffi.a +lib/seed/libseed_ffi.la +lib/seed/libseed_ffi.so +lib/seed/libseed_gettext.a +lib/seed/libseed_gettext.la +lib/seed/libseed_gettext.so +lib/seed/libseed_gtkbuilder.a +lib/seed/libseed_gtkbuilder.la +lib/seed/libseed_gtkbuilder.so +lib/seed/libseed_libxml.a +lib/seed/libseed_libxml.la +lib/seed/libseed_libxml.so +lib/seed/libseed_mpfr.a +lib/seed/libseed_mpfr.la +lib/seed/libseed_mpfr.so +lib/seed/libseed_multiprocessing.a +lib/seed/libseed_multiprocessing.la +lib/seed/libseed_multiprocessing.so +lib/seed/libseed_os.a +lib/seed/libseed_os.la +lib/seed/libseed_os.so +lib/seed/libseed_readline.a +lib/seed/libseed_readline.la +lib/seed/libseed_readline.so +lib/seed/libseed_sandbox.a +lib/seed/libseed_sandbox.la +lib/seed/libseed_sandbox.so +lib/seed/libseed_sqlite.a +lib/seed/libseed_sqlite.la +lib/seed/libseed_sqlite.so +libdata/pkgconfig/seed.pc +%%DATADIR%%/dbus.js +%%DATADIR%%/extensions/Clutter.js +%%DATADIR%%/extensions/GObject.js +%%DATADIR%%/extensions/Gio.js +%%DATADIR%%/extensions/Gst.js +%%DATADIR%%/extensions/Gtk.js +%%DATADIR%%/extensions/Seed.js +%%DATADIR%%/extensions/xml.js +%%DATADIR%%/lang.js +%%PORTDOCS%%%%DOCSDIR%%/AUTHORS +%%PORTDOCS%%%%DOCSDIR%%/COPYING +%%PORTDOCS%%%%DOCSDIR%%/ChangeLog +%%PORTDOCS%%%%DOCSDIR%%/INSTALL +%%PORTDOCS%%%%DOCSDIR%%/README +%%PORTDOCS%%%%DOCSDIR%%/conventions.html +%%PORTDOCS%%%%DOCSDIR%%/index.html +%%PORTDOCS%%%%DOCSDIR%%/mapping/enum-mapping.png +%%PORTDOCS%%%%DOCSDIR%%/mapping/mapping.html +%%PORTDOCS%%%%DOCSDIR%%/modules/canvas.html +%%PORTDOCS%%%%DOCSDIR%%/modules/gtkbuilder/html/gtkbuilder-funcs.xml +%%PORTDOCS%%%%DOCSDIR%%/modules/multiprocessing.html +%%PORTDOCS%%%%DOCSDIR%%/modules/readline/html/readline-funcs.xml +%%PORTDOCS%%%%DOCSDIR%%/modules/sandbox/html/sandbox-funcs.xml +%%PORTDOCS%%%%DOCSDIR%%/modules/sqlite/html/sqlite-funcs.xml +%%PORTDOCS%%%%DOCSDIR%%/runtime.html +%%PORTDOCS%%%%DOCSDIR%%/sh.css +%%PORTDOCS%%%%DOCSDIR%%/sh.js +%%PORTDOCS%%%%DOCSDIR%%/sh_js.js +%%PORTDOCS%%%%DOCSDIR%%/style.css +%%PORTDOCS%%%%DOCSDIR%%/tutorial/1.js +%%PORTDOCS%%%%DOCSDIR%%/tutorial/1.png +%%PORTDOCS%%%%DOCSDIR%%/tutorial/2.js +%%PORTDOCS%%%%DOCSDIR%%/tutorial/2.png +%%PORTDOCS%%%%DOCSDIR%%/tutorial/3.js +%%PORTDOCS%%%%DOCSDIR%%/tutorial/3.png +%%PORTDOCS%%%%DOCSDIR%%/tutorial/4.png +%%PORTDOCS%%%%DOCSDIR%%/tutorial/packing.png +%%PORTDOCS%%%%DOCSDIR%%/tutorial/packing.svg +%%PORTDOCS%%%%DOCSDIR%%/tutorial/tutorial.html +%%PORTDOCS%%@dirrm %%DOCSDIR%%/mapping +%%PORTDOCS%%@dirrm %%DOCSDIR%%/modules/gtkbuilder/html +%%PORTDOCS%%@dirrm %%DOCSDIR%%/modules/gtkbuilder +%%PORTDOCS%%@dirrm %%DOCSDIR%%/modules/readline/html +%%PORTDOCS%%@dirrm %%DOCSDIR%%/modules/readline +%%PORTDOCS%%@dirrm %%DOCSDIR%%/modules/sandbox/html +%%PORTDOCS%%@dirrm %%DOCSDIR%%/modules/sandbox +%%PORTDOCS%%@dirrm %%DOCSDIR%%/modules/sqlite/html +%%PORTDOCS%%@dirrm %%DOCSDIR%%/modules/sqlite +%%PORTDOCS%%@dirrm %%DOCSDIR%%/modules +%%PORTDOCS%%@dirrm %%DOCSDIR%%/tutorial +%%PORTDOCS%%@dirrm %%DOCSDIR%% +@dirrm include/seed +@dirrm lib/seed +@dirrm %%DATADIR%%/extensions +@dirrm %%DATADIR%% |