diff --git a/programming/misc/xsd/actions.py b/programming/misc/xsd/actions.py new file mode 100644 index 0000000000..cb3ae62f9f --- /dev/null +++ b/programming/misc/xsd/actions.py @@ -0,0 +1,20 @@ +#!/usr/bin/python +# -*- coding: utf-8 -*- +# +# Licensed under the GNU General Public License, version 3. +# See the file http://www.gnu.org/licenses/gpl.txt + +from pisi.actionsapi import autotools +from pisi.actionsapi import pisitools +from pisi.actionsapi import get + + +def build(): + autotools.make('verbose=1 CXXFLAGS="%s"' % get.CXXFLAGS()) + +def install(): + autotools.rawInstall("install_prefix=%s/usr" % get.installDIR()) + + # Fix conflicts with mono + pisitools.rename("/usr/bin/xsd", "xsdcxx") + pisitools.rename("/usr/share/man/man1/xsd.1", "xsdcxx.1") diff --git a/programming/misc/xsd/files/xsdcxx.patch b/programming/misc/xsd/files/xsdcxx.patch new file mode 100644 index 0000000000..6a411c6d16 --- /dev/null +++ b/programming/misc/xsd/files/xsdcxx.patch @@ -0,0 +1,127 @@ +--- xsd-4.0.0+dep/xsd/doc/xsd.1~ 2014-09-14 12:25:36.862267587 +0000 ++++ xsd-4.0.0+dep/xsd/doc/xsd.1 2014-09-14 12:28:25.728229892 +0000 +@@ -1,16 +1,16 @@ + .\" Process this file with +-.\" groff -man -Tascii xsd.1 ++.\" groff -man -Tascii xsdcxx.1 + .\" + .TH XSD 1 "July 2014" "XSD 4.0.0" + .SH NAME +-xsd \- W3C XML Schema to C++ Compiler ++xsdcxx \- W3C XML Schema to C++ Compiler + .\" + .\" + .\" + .\"-------------------------------------------------------------------- + .SH SYNOPSIS + .\"-------------------------------------------------------------------- +-.B xsd ++.B xsdcxx + .I command + .B [ + .I options +@@ -20,19 +20,19 @@ + .I file + .B ...] + .in +-.B xsd help ++.B xsdcxx help + .B [ + .I command + .B ] + .in +-.B xsd version ++.B xsdcxx version + .\" + .\" + .\" + .\"-------------------------------------------------------------------- + .SH DESCRIPTION + .\"-------------------------------------------------------------------- +-.B xsd ++.B xsdcxx + generates vocabulary-specific, statically-typed C++ mapping from W3C XML + Schema definitions. Particular mapping to produce is selected by a + .IR command . +@@ -96,7 +96,7 @@ + .PP + .RS + .RS 3 +-.B xsd help ++.B xsdcxx help + .I command + .RE + .PP +@@ -206,7 +206,7 @@ + \fIfilename\fP \fInamespace\fP + + For example, if you have file \fBhello\.xsd\fP with namespace +-\fBhttp://example\.com/hello\fP and you run \fBxsd\fP on this file, then the ++\fBhttp://example\.com/hello\fP and you run \fBxsdcxx\fP on this file, then the + string in question will be: + + \fBhello\.xsd\. http://example\.com/hello\fP +@@ -1632,7 +1632,7 @@ + .\" + .SH DIAGNOSTICS + If the input file is not a valid W3C XML Schema definition, +-.B xsd ++.B xsdcxx + will issue diagnostic messages to + .B STDERR + and exit with non-zero exit code. +--- xsd-4.0.0+dep/xsd/doc/xsd.xhtml~ 2014-09-14 12:28:37.731513138 +0000 ++++ xsd-4.0.0+dep/xsd/doc/xsd.xhtml 2014-09-14 12:30:11.277789610 +0000 +@@ -50,19 +50,19 @@ + +
xsd - W3C XML Schema to C++ Compiler
++xsdcxx - W3C XML Schema to C++ Compiler
+ +xsd command [options] file [file ...]xsd help [command]xsd versionxsdcxx command [options] file [file ...]xsdcxx help [command]xsdcxx versionxsd generates vocabulary-specific, statically-typed
++
xsdcxx generates vocabulary-specific, statically-typed
+ C++ mapping from W3C XML Schema definitions. Particular mapping to
+ produce is selected by a command. Each mapping has
+ a number of mapping-specific options that should
+@@ -104,7 +104,7 @@
+
+
helpxsd help command
xsdcxx help command
For example, if you have file hello.xsd with
+ namespace http://example.com/hello and you run
+- xsd on this file, then the string in question will
++ xsdcxx on this file, then the string in question will
+ be:
hello.xsd. http://example.com/hello
If the input file is not a valid W3C XML Schema definition,
+- xsd will issue diagnostic messages to STDERR
++ xsdcxx will issue diagnostic messages to STDERR
+ and exit with non-zero exit code.