mdk stable port information

Info2: <<
Package: mdk%type_pkg[-gui]
Type: -gui (boolean)

Version: 1.2.3
Revision: 3
License: GPL
Description: GNU MIX Development Kit
Maintainer: Aleix Conchillo

Depends: <<
guile16-libs, guile16-shlibs, glib2-shlibs (>= 2.14.0-1), libgettext3-shlibs,
libiconv, libncurses5-shlibs, readline5-shlibs,
(%type_raw[-gui] = -gui) atk1-shlibs (>= 1.20.0-1),
(%type_raw[-gui] = -gui) gtk+2-shlibs (>= 2.12.0-1),
(%type_raw[-gui] = -gui) libglade2-shlibs (>= 2.6.2-1),
(%type_raw[-gui] = -gui) libxml2-shlibs (>= 2.6.30-1),
(%type_raw[-gui] = -gui) pango1-xft2-ft219 (>= 1.18.4-4),
(%type_raw[-gui] = -gui) x11
<<
BuildDepends: <<
automake1.9, gettext-tools, glib2-dev (>= 2.14.0-1), guile16, guile16-dev,
libgettext3-dev, libiconv-dev, libncurses5, pkgconfig (>= 0.21-1), readline5,
(%type_raw[-gui] = -gui) atk1 (>= 1.20.0-1),
(%type_raw[-gui] = -gui) cairo (>= 1.6-1),
(%type_raw[-gui] = -gui) expat1,
(%type_raw[-gui] = -gui) fontconfig2-dev (>= 2.4.1-1),
(%type_raw[-gui] = -gui) freetype219 (>= 2.3.5-1),
(%type_raw[-gui] = -gui) glitz,
(%type_raw[-gui] = -gui) gtk+2-dev (>= 2.12.0-1),
(%type_raw[-gui] = -gui) libglade2 (>= 2.6.2-1),
(%type_raw[-gui] = -gui) libpng3,
(%type_raw[-gui] = -gui) libxml2 (>= 2.6.30-1),
(%type_raw[-gui] = -gui) pango1-xft2-ft219-dev (>= 1.18.4-4),
(%type_raw[-gui] = -gui) pixman (>= 0.10.0-1),
(%type_raw[-gui] = -gui) x11-dev,
(%type_raw[-gui] = -gui) xft2-dev
<<

Conflicts: mdk, mdk-gui
Replaces: mdk, mdk-gui

Source: mirror:gnu:%{Ni}/v%v/mdk-%v.tar.gz
Source-MD5: 1c74ec62c847792706be412289c8152b

PatchScript: <<
touch %b/lib/foo.c
sed -e "s|\@PREFIX\@|%p|" %a/mdk.patch | patch -p1
<<

NoSetMAKEFLAGS: true
SetMAKEFLAGS: -j1
ConfigureParams: --disable-dependency-tracking PKG_CONFIG_PATH="%p/lib/pango-ft219/lib/pkgconfig:%p/lib/fontconfig2/lib/pkgconfig:%p/lib/freetype219/lib/pkgconfig:$PKG_CONFIG_PATH" FREETYPE_CONFIG=%p/lib/freetype219/bin/freetype-config
CompileScript: <<
#!/bin/sh -ev
export LIBRARY_PATH=%p/lib
automake -a
autoconf
if [ "%type_raw[-gui]" == "-gui" ]; then
./configure %c
else
./configure %c --disable-gui
fi
make
<<

InfoDocs: %{Ni}.info
DocFiles: ABOUT-NLS AUTHORS COPYING ChangeLog NEWS THANKS TODO

DescDetail: <<
MDK stands for MIX Development Kit, and provides
tools for developing and executing, in a MIX virtual
machine, MIXAL programs.

The MIX is Donald Knuth's mythical computer,
described in the first volume of The Art of Computer
Programming, which is programmed using MIXAL, the MIX
assembly language.

MDK includes a MIXAL assembler (mixasm) and a MIX
virtual machine (mixvm) with a command line
interface. In addition, a GTK+ GUI to mixvm, called
gmixvm, and a Guile interpreter with an embedded MIX
virtual machine called mixguile, are provided.

Using these interfaces, you can debug your MIXAL
programs at source code level, and read/modify the
contents of all the components of the MIX computer
(including block devices, which are simulated using
the file system).
<<

Homepage: http://www.gnu.org/software/mdk/mdk.html
<<

mdk stable port .patch

--- mdk-1.2.3.orig/configure.in 2006-09-28 22:16:03.000000000 +0200
+++ mdk-1.2.3/configure.in 2006-09-28 22:21:38.000000000 +0200
@@ -89,15 +89,15 @@
if test x$wguile = xtrue; then
dnl AC_CHECK_HEADER(guile/gh.h,,wguile=false)
AC_MSG_CHECKING(for Guile)
- guile-config link > /dev/null || {
+ guile-1.6-config link > /dev/null || {
AC_MSG_RESULT(no)
wguile=false
}
fi

if test x$wguile = xtrue; then
- GUILE_CFLAGS="`guile-config compile`"
- GUILE_LDFLAGS="`guile-config link`"
+ GUILE_CFLAGS="`guile-1.6-config compile`"
+ GUILE_LDFLAGS="`guile-1.6-config link`"
LIBS="$LIBS $GUILE_LDFLAGS"
AM_CFLAGS="$AM_CFLAGS $GUILE_CFLAGS"
AC_SUBST(MAKE_GUILE)
--- mdk-1.2.3.orig/lib/Makefile.am 2005-09-21 17:52:52.000000000 +0200
+++ mdk-1.2.3/lib/Makefile.am 2005-09-21 17:52:52.000000000 +0200
@@ -13,5 +13,5 @@
EXTRA_DIST = getopt_long.c getopt.h

noinst_LIBRARIES = libreplace.a
-libreplace_a_SOURCES =
+libreplace_a_SOURCES = foo.c
libreplace_a_LIBADD = @LIBOBJS@
\ No newline at end of file
--- mdk-1.2.3.orig/lib/foo.c 2005-09-21 18:05:48.000000000 +0200
+++ mdk-1.2.3/lib/foo.c 2005-09-21 18:06:00.000000000 +0200
@@ -0,0 +1,5 @@
+int
+foo_for_darwin (void)
+{
+ return 0;
+}
--- mdk-1.2.3.orig/mixgtk/Makefile.am 2005-09-21 18:24:14.000000000 +0200
+++ mdk-1.2.3/mixgtk/Makefile.am 2005-09-21 18:24:22.000000000 +0200
@@ -31,7 +31,6 @@
LDADD = $(top_builddir)/mixlib/libmix.a $(top_builddir)/lib/libreplace.a\
$(top_builddir)/mixguile/libmixguile.a $(INTLLIBS)

-AM_LDFLAGS = -Wl,--export-dynamic
bin_PROGRAMS = gmixvm
gmixvm_SOURCES = gmixvm.c mixgtk.h mixgtk.c \
mixgtk_config.h mixgtk_config.c \
--- mdk-1.2.3.orig/mixgtk/mixgtk_device.c 2006-08-24 12:37:25.000000000 +0200
+++ mdk-1.2.3/mixgtk/mixgtk_device.c 2006-08-24 12:43:03.000000000 +0200
@@ -188,7 +188,9 @@
input_list_ = gtk_list_store_new (1, G_TYPE_STRING);
gtk_entry_completion_set_model (completion, GTK_TREE_MODEL (input_list_));
gtk_entry_completion_set_popup_completion (completion, TRUE);
+#if GTK_CHECK_VERSION(2,8,0)
gtk_entry_completion_set_popup_single_match (completion, TRUE);
+#endif
gtk_entry_completion_set_inline_completion (completion, FALSE);
gtk_entry_completion_set_minimum_key_length (completion, 1);
gtk_entry_completion_set_text_column (completion, 0);
--- mdk-1.2.3.orig/mixgtk/mixgtk_external.c 2006-08-24 12:55:46.000000000 +0200
+++ mdk-1.2.3/mixgtk/mixgtk_external.c 2006-08-24 13:10:46.000000000 +0200
@@ -44,8 +44,8 @@

static const gchar *EDITOR_KEY_ = "Editor";
static const gchar *MIXASM_KEY_ = "Mixasm";
-static const gchar *DEFAULT_EDITOR_CMD_ = "/usr/bin/xterm -e vi %s";
-static const gchar *DEFAULT_ASM_CMD_ = "/usr/bin/mixasm";
+static const gchar *DEFAULT_EDITOR_CMD_ = "/usr/bin/open -a TextEdit %s";
+static const gchar *DEFAULT_ASM_CMD_ = "@PREFIX@/bin/mixasm %s";

static mix_vm_cmd_dispatcher_t *dispatcher_;

@@ -104,6 +104,7 @@
}

gtk_file_filter_add_mime_type (filter, "application/x-executable");
+ gtk_file_filter_add_mime_type (filter, "application/octet-stream");
gtk_file_chooser_set_filter
(GTK_FILE_CHOOSER (ext_wdg_[ext_wdg_asm_chooser]), filter);
gtk_file_chooser_set_filter

mdk _unstable_ port information

Info2: <<
Package: mdk%type_pkg[-gui]
Type: -gui (boolean)

Version: 1.2.3
Revision: 3
License: GPL
Description: GNU MIX Development Kit
Maintainer: Aleix Conchillo

Depends: <<
guile16-libs, guile16-shlibs, glib2-shlibs (>= 2.14.0-1), libgettext3-shlibs,
libiconv, libncurses5-shlibs, readline5-shlibs,
(%type_raw[-gui] = -gui) atk1-shlibs (>= 1.20.0-1),
(%type_raw[-gui] = -gui) gtk+2-shlibs (>= 2.12.0-1),
(%type_raw[-gui] = -gui) libglade2-shlibs (>= 2.6.2-1),
(%type_raw[-gui] = -gui) libxml2-shlibs (>= 2.6.30-1),
(%type_raw[-gui] = -gui) pango1-xft2-ft219 (>= 1.18.4-4),
(%type_raw[-gui] = -gui) x11
<<
BuildDepends: <<
automake1.9, gettext-tools, glib2-dev (>= 2.14.0-1), guile16, guile16-dev,
libgettext3-dev, libiconv-dev, libncurses5, pkgconfig (>= 0.21-1), readline5,
(%type_raw[-gui] = -gui) atk1 (>= 1.20.0-1),
(%type_raw[-gui] = -gui) cairo (>= 1.6-1),
(%type_raw[-gui] = -gui) expat1,
(%type_raw[-gui] = -gui) fontconfig2-dev (>= 2.4.1-1),
(%type_raw[-gui] = -gui) freetype219 (>= 2.3.5-1),
(%type_raw[-gui] = -gui) glitz,
(%type_raw[-gui] = -gui) gtk+2-dev (>= 2.12.0-1),
(%type_raw[-gui] = -gui) libglade2 (>= 2.6.2-1),
(%type_raw[-gui] = -gui) libpng3,
(%type_raw[-gui] = -gui) libxml2 (>= 2.6.30-1),
(%type_raw[-gui] = -gui) pango1-xft2-ft219-dev (>= 1.18.4-4),
(%type_raw[-gui] = -gui) pixman (>= 0.10.0-1),
(%type_raw[-gui] = -gui) x11-dev,
(%type_raw[-gui] = -gui) xft2-dev
<<

Conflicts: mdk, mdk-gui
Replaces: mdk, mdk-gui

Source: mirror:gnu:%{Ni}/v%v/mdk-%v.tar.gz
Source-MD5: 1c74ec62c847792706be412289c8152b

PatchScript: <<
touch %b/lib/foo.c
sed -e "s|\@PREFIX\@|%p|" %a/mdk.patch | patch -p1
<<

NoSetMAKEFLAGS: true
SetMAKEFLAGS: -j1
ConfigureParams: --disable-dependency-tracking PKG_CONFIG_PATH="%p/lib/pango-ft219/lib/pkgconfig:%p/lib/fontconfig2/lib/pkgconfig:%p/lib/freetype219/lib/pkgconfig:$PKG_CONFIG_PATH" FREETYPE_CONFIG=%p/lib/freetype219/bin/freetype-config
CompileScript: <<
#!/bin/sh -ev
export LIBRARY_PATH=%p/lib
automake -a
autoconf
if [ "%type_raw[-gui]" == "-gui" ]; then
./configure %c
else
./configure %c --disable-gui
fi
make
<<

InfoDocs: %{Ni}.info
DocFiles: ABOUT-NLS AUTHORS COPYING ChangeLog NEWS THANKS TODO

DescDetail: <<
MDK stands for MIX Development Kit, and provides
tools for developing and executing, in a MIX virtual
machine, MIXAL programs.

The MIX is Donald Knuth's mythical computer,
described in the first volume of The Art of Computer
Programming, which is programmed using MIXAL, the MIX
assembly language.

MDK includes a MIXAL assembler (mixasm) and a MIX
virtual machine (mixvm) with a command line
interface. In addition, a GTK+ GUI to mixvm, called
gmixvm, and a Guile interpreter with an embedded MIX
virtual machine called mixguile, are provided.

Using these interfaces, you can debug your MIXAL
programs at source code level, and read/modify the
contents of all the components of the MIX computer
(including block devices, which are simulated using
the file system).
<<

Homepage: http://www.gnu.org/software/mdk/mdk.html
<<

mdk _unstable_ port .patch

--- mdk-1.2.3.orig/configure.in 2006-09-28 22:16:03.000000000 +0200
+++ mdk-1.2.3/configure.in 2006-09-28 22:21:38.000000000 +0200
@@ -89,15 +89,15 @@
if test x$wguile = xtrue; then
dnl AC_CHECK_HEADER(guile/gh.h,,wguile=false)
AC_MSG_CHECKING(for Guile)
- guile-config link > /dev/null || {
+ guile-1.6-config link > /dev/null || {
AC_MSG_RESULT(no)
wguile=false
}
fi

if test x$wguile = xtrue; then
- GUILE_CFLAGS="`guile-config compile`"
- GUILE_LDFLAGS="`guile-config link`"
+ GUILE_CFLAGS="`guile-1.6-config compile`"
+ GUILE_LDFLAGS="`guile-1.6-config link`"
LIBS="$LIBS $GUILE_LDFLAGS"
AM_CFLAGS="$AM_CFLAGS $GUILE_CFLAGS"
AC_SUBST(MAKE_GUILE)
--- mdk-1.2.3.orig/lib/Makefile.am 2005-09-21 17:52:52.000000000 +0200
+++ mdk-1.2.3/lib/Makefile.am 2005-09-21 17:52:52.000000000 +0200
@@ -13,5 +13,5 @@
EXTRA_DIST = getopt_long.c getopt.h

noinst_LIBRARIES = libreplace.a
-libreplace_a_SOURCES =
+libreplace_a_SOURCES = foo.c
libreplace_a_LIBADD = @LIBOBJS@
\ No newline at end of file
--- mdk-1.2.3.orig/lib/foo.c 2005-09-21 18:05:48.000000000 +0200
+++ mdk-1.2.3/lib/foo.c 2005-09-21 18:06:00.000000000 +0200
@@ -0,0 +1,5 @@
+int
+foo_for_darwin (void)
+{
+ return 0;
+}
--- mdk-1.2.3.orig/mixgtk/Makefile.am 2005-09-21 18:24:14.000000000 +0200
+++ mdk-1.2.3/mixgtk/Makefile.am 2005-09-21 18:24:22.000000000 +0200
@@ -31,7 +31,6 @@
LDADD = $(top_builddir)/mixlib/libmix.a $(top_builddir)/lib/libreplace.a\
$(top_builddir)/mixguile/libmixguile.a $(INTLLIBS)

-AM_LDFLAGS = -Wl,--export-dynamic
bin_PROGRAMS = gmixvm
gmixvm_SOURCES = gmixvm.c mixgtk.h mixgtk.c \
mixgtk_config.h mixgtk_config.c \
--- mdk-1.2.3.orig/mixgtk/mixgtk_device.c 2006-08-24 12:37:25.000000000 +0200
+++ mdk-1.2.3/mixgtk/mixgtk_device.c 2006-08-24 12:43:03.000000000 +0200
@@ -188,7 +188,9 @@
input_list_ = gtk_list_store_new (1, G_TYPE_STRING);
gtk_entry_completion_set_model (completion, GTK_TREE_MODEL (input_list_));
gtk_entry_completion_set_popup_completion (completion, TRUE);
+#if GTK_CHECK_VERSION(2,8,0)
gtk_entry_completion_set_popup_single_match (completion, TRUE);
+#endif
gtk_entry_completion_set_inline_completion (completion, FALSE);
gtk_entry_completion_set_minimum_key_length (completion, 1);
gtk_entry_completion_set_text_column (completion, 0);
--- mdk-1.2.3.orig/mixgtk/mixgtk_external.c 2006-08-24 12:55:46.000000000 +0200
+++ mdk-1.2.3/mixgtk/mixgtk_external.c 2006-08-24 13:10:46.000000000 +0200
@@ -44,8 +44,8 @@

static const gchar *EDITOR_KEY_ = "Editor";
static const gchar *MIXASM_KEY_ = "Mixasm";
-static const gchar *DEFAULT_EDITOR_CMD_ = "/usr/bin/xterm -e vi %s";
-static const gchar *DEFAULT_ASM_CMD_ = "/usr/bin/mixasm";
+static const gchar *DEFAULT_EDITOR_CMD_ = "/usr/bin/open -a TextEdit %s";
+static const gchar *DEFAULT_ASM_CMD_ = "@PREFIX@/bin/mixasm %s";

static mix_vm_cmd_dispatcher_t *dispatcher_;

@@ -104,6 +104,7 @@
}

gtk_file_filter_add_mime_type (filter, "application/x-executable");
+ gtk_file_filter_add_mime_type (filter, "application/octet-stream");
gtk_file_chooser_set_filter
(GTK_FILE_CHOOSER (ext_wdg_[ext_wdg_asm_chooser]), filter);
gtk_file_chooser_set_filter