[Midnightbsd-cvs] mports [18268] trunk/devel/seed: gnome 3 version of seed

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Sat Mar 21 15:06:48 EDT 2015


Revision: 18268
          http://svnweb.midnightbsd.org/mports/?rev=18268
Author:   laffer1
Date:     2015-03-21 15:06:47 -0400 (Sat, 21 Mar 2015)
Log Message:
-----------
gnome 3 version of seed

Modified Paths:
--------------
    trunk/devel/seed/Makefile
    trunk/devel/seed/distinfo
    trunk/devel/seed/pkg-plist

Removed Paths:
-------------
    trunk/devel/seed/files/patch-libseed_seed-importer.c
    trunk/devel/seed/files/patch-modules_os_seed-os.c

Modified: trunk/devel/seed/Makefile
===================================================================
--- trunk/devel/seed/Makefile	2015-03-21 18:49:06 UTC (rev 18267)
+++ trunk/devel/seed/Makefile	2015-03-21 19:06:47 UTC (rev 18268)
@@ -3,41 +3,37 @@
 #
 # NOTE: It may be necessary to update ${FILESDIR}/Seed.js on each release.
 # To do that, just replace imports.searchPaths with "." and ".." elements.
-#
 
 PORTNAME=	seed
-PORTVERSION=	2.31.91
+PORTVERSION=	3.8.1
+PORTREVISION=	1
 CATEGORIES=	devel gnome
 MASTER_SITES=	GNOME
-DIST_SUBDIR=	gnome2
+DIST_SUBDIR=	gnome3
 
 MAINTAINER=	ports at MidnightBSD.org
 COMMENT=	GObject JavaScriptCore bridge
 LICENSE=	lgpl
 
-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.1:${PORTSDIR}/devel/gobject-introspection \
-		dbus-glib-1.2:${PORTSDIR}/devel/dbus-glib \
-		sqlite3.8:${PORTSDIR}/databases/sqlite3 \
-		mpfr.4:${PORTSDIR}/math/mpfr
+BUILD_DEPENDS=	gnome-js-common>=0:${PORTSDIR}/devel/gnome-js-common
+LIB_DEPENDS=	libffi.so:${PORTSDIR}/devel/libffi \
+		libwebkitgtk-3.0.so:${PORTSDIR}/www/webkit-gtk3 \
+		libdbus-glib-1.so:${PORTSDIR}/devel/dbus-glib \
+		libmpfr.so:${PORTSDIR}/math/mpfr
 
-USE_BZIP2=	yes
+USES=		gettext gmake libtool pathfix pkgconfig tar:xz
+USE_GNOME=	gtk30 intltool libxml2 introspection
+USE_LDCONFIG=	yes
 GNU_CONFIGURE=	yes
-USE_GETTEXT=	yes
-USE_GNOME=	gnomehack gtk20 intltool libxml2
-USE_LDCONFIG=	yes
-USE_AUTOTOOLS=	libtool
-USE_GMAKE=	yes
-CONFIGURE_ENV=	CPPFLAGS="-I${LOCALBASE}/include" \
-		LDFLAGS="-L${LOCALBASE}/lib"
-CONFIGURE_ARGS+=--enable-gtk-doc=no --with-webkit=1.0
+USE_SQLITE=	yes
+CPPFLAGS+=	-I${LOCALBASE}/include
+LDFLAGS+=	-L${LOCALBASE}/lib
+CONFIGURE_ARGS+=--enable-gtk-doc=no --with-webkit=3.0
+DATADIR=	share/seed-gtk3
+INSTALL_TARGET=	install-strip
 
-MAN1=		seed.1
+.include <bsd.mport.options.mk>
 
-.include <bsd.port.pre.mk>
-
 post-patch:
 	@${REINPLACE_CMD} -e 's|== x|= x|g' \
 		${WRKSRC}/configure
@@ -44,13 +40,7 @@
 	@${REINPLACE_CMD} -e 's|-ldl||g' \
 		${WRKSRC}/libseed/Makefile.in
 	@${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)
+.if ! ${PORT_OPTIONS:MDOCS}
 	@${REINPLACE_CMD} -e 's| install-seeddocDATA||g ; s|doc$$||g' \
 		${WRKSRC}/Makefile.in
 .endif
@@ -64,4 +54,4 @@
 post-build:
 	${CP} ${WRKSRC}/extensions/Seed.js.sav ${WRKSRC}/extensions/Seed.js
 
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>

Modified: trunk/devel/seed/distinfo
===================================================================
--- trunk/devel/seed/distinfo	2015-03-21 18:49:06 UTC (rev 18267)
+++ trunk/devel/seed/distinfo	2015-03-21 19:06:47 UTC (rev 18268)
@@ -1,3 +1,2 @@
-SHA256 (gnome2/seed-2.31.91.tar.bz2) = 9e1da3adc6ed25b1778508ab67aecfe0923d1083f375b88137ea5f9ff57c22a3
-RMD160 (gnome2/seed-2.31.91.tar.bz2) = c89b02a3f383d912255dfebe5176bb7a7137f349
-SIZE (gnome2/seed-2.31.91.tar.bz2) = 762875
+SHA256 (gnome3/seed-3.8.1.tar.xz) = 80cb4db7fa6f6cf8d3e255fc45a81657388d458bc8bf23e4089e35f69eeaac32
+SIZE (gnome3/seed-3.8.1.tar.xz) = 692288

Deleted: trunk/devel/seed/files/patch-libseed_seed-importer.c
===================================================================
--- trunk/devel/seed/files/patch-libseed_seed-importer.c	2015-03-21 18:49:06 UTC (rev 18267)
+++ trunk/devel/seed/files/patch-libseed_seed-importer.c	2015-03-21 19:06:47 UTC (rev 18268)
@@ -1,49 +0,0 @@
---- libseed/seed-importer.c.orig	2009-12-31 11:42:51.000000000 +0100
-+++ libseed/seed-importer.c	2010-01-02 02:12:09.000000000 +0100
-@@ -19,6 +19,8 @@
- 
- #include <gio/gio.h>
- #include <string.h>
-+#include <stdlib.h>
-+#include <unistd.h>
- 
- #include "seed-private.h"
- 
-@@ -636,8 +638,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);
-@@ -691,15 +694,24 @@ seed_importer_handle_file (JSContextRef 
- 					g_path_get_dirname (file_path), NULL);
-     }
- 
--  normalized_path = realpath (absolute_path, NULL);
-+#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);
- 

Deleted: trunk/devel/seed/files/patch-modules_os_seed-os.c
===================================================================
--- trunk/devel/seed/files/patch-modules_os_seed-os.c	2015-03-21 18:49:06 UTC (rev 18267)
+++ trunk/devel/seed/files/patch-modules_os_seed-os.c	2015-03-21 19:06:47 UTC (rev 18268)
@@ -1,95 +0,0 @@
---- modules/os/seed-os.c.orig	2009-12-31 05:44:49.000000000 -0500
-+++ modules/os/seed-os.c	2010-01-07 19:01:05.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 = realpath(arg, NULL);
-+#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 +1144,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);

Modified: trunk/devel/seed/pkg-plist
===================================================================
--- trunk/devel/seed/pkg-plist	2015-03-21 18:49:06 UTC (rev 18267)
+++ trunk/devel/seed/pkg-plist	2015-03-21 19:06:47 UTC (rev 18268)
@@ -1,61 +1,48 @@
 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_DynamicObject.a
-lib/seed/libseed_DynamicObject.la
-lib/seed/libseed_DynamicObject.so
-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
+include/seed-gtk3/seed-debug.h
+include/seed-gtk3/seed-module.h
+include/seed-gtk3/seed.h
+lib/libseed-gtk3.a
+lib/libseed-gtk3.so
+lib/libseed-gtk3.so.0
+lib/libseed-gtk3.so.0.0.0
+lib/seed-gtk3/libseed_DynamicObject.a
+lib/seed-gtk3/libseed_DynamicObject.so
+lib/seed-gtk3/libseed_cairo.a
+lib/seed-gtk3/libseed_cairo.so
+lib/seed-gtk3/libseed_canvas.a
+lib/seed-gtk3/libseed_canvas.so
+lib/seed-gtk3/libseed_dbusnative.a
+lib/seed-gtk3/libseed_dbusnative.so
+lib/seed-gtk3/libseed_example.a
+lib/seed-gtk3/libseed_example.so
+lib/seed-gtk3/libseed_ffi.a
+lib/seed-gtk3/libseed_ffi.so
+lib/seed-gtk3/libseed_gettext.a
+lib/seed-gtk3/libseed_gettext.so
+lib/seed-gtk3/libseed_gtkbuilder.a
+lib/seed-gtk3/libseed_gtkbuilder.so
+lib/seed-gtk3/libseed_libxml.a
+lib/seed-gtk3/libseed_libxml.so
+lib/seed-gtk3/libseed_mpfr.a
+lib/seed-gtk3/libseed_mpfr.so
+lib/seed-gtk3/libseed_multiprocessing.a
+lib/seed-gtk3/libseed_multiprocessing.so
+lib/seed-gtk3/libseed_os.a
+lib/seed-gtk3/libseed_os.so
+lib/seed-gtk3/libseed_readline.a
+lib/seed-gtk3/libseed_readline.so
+lib/seed-gtk3/libseed_sandbox.a
+lib/seed-gtk3/libseed_sandbox.so
+lib/seed-gtk3/libseed_sqlite.a
+lib/seed-gtk3/libseed_sqlite.so
 libdata/pkgconfig/seed.pc
+man/man1/seed.1.gz
 %%DATADIR%%/dbus.js
 %%DATADIR%%/extensions/Clutter.js
 %%DATADIR%%/extensions/GObject.js
 %%DATADIR%%/extensions/Gio.js
+%%DATADIR%%/extensions/GLib.js
 %%DATADIR%%/extensions/Gst.js
 %%DATADIR%%/extensions/Gtk.js
 %%DATADIR%%/extensions/Seed.js
@@ -92,19 +79,3 @@
 %%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%%
- at dirrm include/seed
- at dirrm lib/seed
- at dirrm %%DATADIR%%/extensions
- at dirrm %%DATADIR%%



More information about the Midnightbsd-cvs mailing list