Commit 8bf48a50 authored by Ruben Vermeersch's avatar Ruben Vermeersch Committed by Ruben Vermeersch

Add Gabriel back.

2008-08-09  Ruben Vermeersch  <ruben@savanne.be>

	* AUTHORS: Add Gabriel back.

	* COPYING: Turn into real file.

	* INSTALL: Add very basic note about having to build GEGL first (because
	we reparse every time).

	* README: Add and adjust the old README.

	* configure: Removed. Shouldn't be in SVN.

	* configure.in: Hook up docs.

	* docs: Readd the documentation.

	* gegl/Makefile.am: Make sure the raw API file is removed on clean.

	* gegl/gegl-api.raw: Removed.

svn path=/trunk/; revision=2572
parent cf88c382
Gabriel Burt <gabriel.burt@gmail.com>
Ruben Vermeersch <ruben@savanne.be>
/usr/share/automake-1.9/COPYING
\ No newline at end of file
This diff is collapsed.
2008-08-09 Ruben Vermeersch <ruben@savanne.be>
* AUTHORS: Add Gabriel back.
* COPYING: Turn into real file.
* INSTALL: Add very basic note about having to build GEGL first (because
we reparse every time).
* README: Add and adjust the old README.
* configure: Removed. Shouldn't be in SVN.
* configure.in: Hook up docs.
* docs: Readd the documentation.
* gegl/Makefile.am: Make sure the raw API file is removed on clean.
* gegl/gegl-api.raw: Removed.
2008-08-08 Ruben Vermeersch <ruben@savanne.be>
* gegl/custom/Node.custom: Directly call the native method, instead of
......
/usr/share/automake-1.9/INSTALL
\ No newline at end of file
Basically this follows the usual way of installing things.
However:
You have to build gegl first, before the bindings parser can pick up
all the data types!
Gegl#, a C# binding for GEGL. Please send comments, bugs, and patches to
the GEGL list, gegl-developer@lists.xcf.berkeley.edu.
To build Gegl# type:
$ ./autogen.sh
$ make
Sample contains a simple application that demonstrate use of the binding.
$ cd sample
$ make
$ ./TestGegl.exe
Some other old tests, view-test.cs, GeglView.cs which are known to not work
yet, are in the sample/old directory.
This diff is collapsed.
......@@ -110,6 +110,7 @@ AC_SUBST(CFLAGS)
AC_OUTPUT([
Makefile
docs/Makefile
gegl/Makefile
gegl/gegl-sharp.dll.config
gegl/gegl-sharp.pc
......
DOC_UPDATER = @MONODOCER@ -delete
DOC_ASSEMBLER = @MDASSEMBLER@ --out gegl-sharp-docs --ecma
ASSEMBLIES = ../gegl/gegl-sharp.dll
ASSEMBLIES_BUILD = $(foreach asm,$(ASSEMBLIES),$(addprefix -assembly:,$(asm)))
if BUILD_DOCS
all: MonodocNodeConfig.exe
MonodocNodeConfig.exe: MonodocNodeConfig.cs
mcs -out:$@ -r:System.Xml $<
monodocdir = $(DESTDIR)$(DOCDIR)
monodoc_DATA = \
gegl-sharp-docs.zip \
gegl-sharp-docs.tree \
gegl-sharp-docs.source
update-docs: $(ASSEMBLIES)
$(DOC_UPDATER) $(ASSEMBLIES_BUILD) -path:en
update-cvs:
cd en/; \
for i in `find . | grep \.remove$$`; do \
name=`echo $$i | sed -e 's/.remove//g'`; \
cvs remove $$name && rm $$i; \
done; \
for i in `find .`; do \
if [ -d $$i ]; then \
if [ ! "x`basename $$i`" = "xCVS" ]; then \
cvs add $$i/*.xml; \
fi \
fi \
done; \
cd ..;
update-html:
if [ -d gegl-sharp ]; then \
rm -rf gegl-sharp; \
fi; \
mkdir gegl-sharp; \
monodocs2html --source en --dest gegl-sharp;
gegl-sharp-docs.zip gegl-sharp-docs.tree: $(srcdir)/en/*/*.xml $(srcdir)/en/*.xml
$(DOC_ASSEMBLER) $(srcdir)/en
install-data-hook:
$(MONO) $(top_builddir)/docs/MonodocNodeConfig.exe --insert "Gegl#" classlib-gegl-sharp $(DOCDIR)/../monodoc.xml
uninstall-hook:
$(MONO) $(top_builddir)/docs/MonodocNodeConfig.exe --remove classlib-gegl-sharp $(DOCDIR)/../monodoc.xml
endif
EXTRA_DIST = \
$(srcdir)/en/*.xml \
$(srcdir)/en/*/*.xml \
gegl-sharp-docs.source \
MonodocNodeConfig.cs
DISTCLEANFILES = \
gegl-sharp-docs.zip \
gegl-sharp-docs.tree
MAINTAINERCLEANFILES = \
Makefile.in
CLEANFILES = \
MonodocNodeConfig.exe
/***************************************************************************
* MonodocNodeConfig.cs
*
* Copyright (C) 2005 Novell
* Written by Aaron Bockover (aaron@aaronbock.net)
****************************************************************************/
/* THIS FILE IS LICENSED UNDER THE MIT LICENSE AS OUTLINED IMMEDIATELY BELOW:
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
* and/or sell copies of the Software, and to permit persons to whom the
* Software is furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
* DEALINGS IN THE SOFTWARE.
*/
using System;
using System.Xml;
public static class MonodocNodeConfig
{
private static XmlDocument document;
public static int Main(string [] args)
{
bool insert_mode = false;
string xml_file = null;
string label = null;
string name = null;
switch(args[0]) {
case "--insert":
if(args.Length != 4) {
PrintUsage();
return 0;
}
insert_mode = true;
label = args[1];
name = args[2];
xml_file = args[3];
break;
case "--remove":
if(args.Length != 3) {
PrintUsage();
return 0;
}
insert_mode = false;
name = args[1];
xml_file = args[2];
break;
default:
PrintUsage();
return 0;
}
document = new XmlDocument();
document.Load(xml_file);
RemoveNode(name);
if(insert_mode) {
InsertNode(label, name);
}
try {
document.Save(xml_file);
} catch {
Console.WriteLine("Couldn\'t insert node!");
return 1;
}
return 0;
}
private static void PrintUsage()
{
Console.WriteLine("Usage is:");
Console.WriteLine("MonodocNodeConfig.exe --insert|--remove [options] <monodoc XML file>\n");
Console.WriteLine("Where [options] for --insert must be:");
Console.WriteLine(" <label> <name>\n");
Console.WriteLine("Where [options] for --remove must be:");
Console.WriteLine(" <name>\n");
}
private static void RemoveNode(string name)
{
foreach(XmlNode node in document.DocumentElement) {
if(node.Attributes["name"].Value != "various") {
continue;
}
foreach(XmlNode child in node) {
if(child.Attributes["name"].Value == name) {
node.RemoveChild(child);
return;
}
}
}
}
private static void InsertNode(string label, string name)
{
foreach(XmlNode node in document.DocumentElement) {
if(node.Attributes["name"].Value != "various") {
continue;
}
XmlNode insert_node = document.CreateNode(XmlNodeType.Element, "node", "");
XmlAttribute label_attr = document.CreateAttribute("label");
label_attr.Value = label;
insert_node.Attributes.Append(label_attr);
XmlAttribute name_attr = document.CreateAttribute("name");
name_attr.Value = name;
insert_node.Attributes.Append(name_attr);
node.AppendChild(insert_node);
return;
}
}
}
<Namespace Name="Gegl">
<Docs>
<summary>To be added.</summary>
<remarks>To be added.</remarks>
</Docs>
</Namespace>
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
<Type Name="Log" FullName="Gegl.Log">
<TypeSignature Language="C#" Value="public class Log" />
<AssemblyInfo>
<AssemblyName>gegl-sharp</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Base>
<BaseTypeName>System.Object</BaseTypeName>
</Base>
<Interfaces />
<Members>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public Log ();" />
<MemberType>Constructor</MemberType>
<Parameters />
<Docs>
<summary>To be added.</summary>
<remarks>To be added.</remarks>
</Docs>
</Member>
</Members>
<Docs>
<summary>To be added.</summary>
<remarks>To be added.</remarks>
</Docs>
</Type>
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
<?xml version="1.0"?>
<monodoc>
<source provider="ecma" basefile="gegl-sharp-docs" path="classlib-gegl-sharp" />
</monodoc>
......@@ -9,7 +9,7 @@ ASSEMBLY = gegl-sharp.dll
TARGET = $(ASSEMBLY) $(ASSEMBLY).config
assemblydir = $(libdir)/gegl-sharp
assembly_DATA = $(TARGET)
CLEANFILES = $(ASSEMBLY) $(ASSEMBLY).mdb generated-stamp generated/*.cs $(API)
CLEANFILES = $(ASSEMBLY) $(ASSEMBLY).mdb generated-stamp generated/*.cs $(API) $(RAW_API)
DISTCLEANFILES = $(ASSEMBLY).config
EXTRA_DIST = $(RAW_API) $(METADATA) $(CUSTOM_SOURCES) gegl-sharp.pc.in gegl-sharp.dll.config.in
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment