diff options
Diffstat (limited to 'extra/xsd')
-rw-r--r-- | extra/xsd/PKGBUILD | 34 | ||||
-rw-r--r-- | extra/xsd/xsdcxx.patch | 128 |
2 files changed, 162 insertions, 0 deletions
diff --git a/extra/xsd/PKGBUILD b/extra/xsd/PKGBUILD new file mode 100644 index 000000000..397aa4664 --- /dev/null +++ b/extra/xsd/PKGBUILD @@ -0,0 +1,34 @@ +# $Id: PKGBUILD 173014 2012-12-08 17:16:19Z andrea $ +# Maintainer: +# Contributor: kevku <kevku@gmx.com> + +pkgname=xsd +pkgver=3.3.0 +_pkgver=3.3.0-2+dep +pkgrel=6 +pkgdesc="An open-source, cross-platform W3C XML Schema to C++ data binding compiler" +arch=('i686' 'x86_64') +url="http://www.codesynthesis.com/products/xsd" +license=('GPL2') +depends=('boost-libs' 'xerces-c') +makedepends=('boost') +source=("http://www.codesynthesis.com/download/${pkgname}/3.3/${pkgname}-${_pkgver}.tar.bz2" + "xsdcxx.patch") +sha1sums=('1c9de9271f589b8ecf2be18f2e9ac87330fc8281' + '8f7ca8bf0440b30d8f5823e0f528db19810706f2') + +build() { + cd "${pkgname}-${_pkgver}" + patch -p0 -i "${srcdir}/xsdcxx.patch" + + make CXXFLAGS="${CXXFLAGS}" +} + +package() { + cd ${pkgname}-${_pkgver} + make install_prefix="$pkgdir/usr" install + + # Fix conflicts with mono + mv "${pkgdir}"/usr/bin/xsd{,cxx} + mv "${pkgdir}"/usr/share/man/man1/xsd{,cxx}.1 +} diff --git a/extra/xsd/xsdcxx.patch b/extra/xsd/xsdcxx.patch new file mode 100644 index 000000000..51495fb5c --- /dev/null +++ b/extra/xsd/xsdcxx.patch @@ -0,0 +1,128 @@ +diff -up xsd/documentation/xsd.1.rename xsd/documentation/xsd.1 +--- xsd/documentation/xsd.1.rename 2010-06-20 15:45:31.000000000 +0300 ++++ xsd/documentation/xsd.1 2010-06-20 15:46:24.000000000 +0300 +@@ -1,16 +1,16 @@ + .\" Process this file with +-.\" groff -man -Tascii xsd.1 ++.\" groff -man -Tascii xsdcxx.1 + .\" + .TH XSD 1 "April 2010" "XSD 3.3.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 @@ xsd \- W3C XML Schema to C++ Compiler + .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 @@ Print usage information and exit. Use + .PP + .RS + .RS 3 +-.B xsd help ++.B xsdcxx help + .I command + .RE + .PP +@@ -203,7 +203,7 @@ For example, if you have file + with namespace + .B http://example.com/hello + and you run +-.B xsd ++.B xsdcxx + on this file, then the string in question will be: + + .B hello.xsd. http://example.com/hello +@@ -1877,7 +1877,7 @@ option. With this approach you don't nee + .\" + .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. +diff -up xsd/documentation/xsd.xhtml.rename xsd/documentation/xsd.xhtml +--- xsd/documentation/xsd.xhtml.rename 2010-06-20 15:47:29.000000000 +0300 ++++ xsd/documentation/xsd.xhtml 2010-06-20 15:47:30.000000000 +0300 +@@ -50,19 +50,19 @@ + + <h1>NAME</h1> + +- <p>xsd - W3C XML Schema to C++ Compiler</p> ++ <p>xsdcxx - W3C XML Schema to C++ Compiler</p> + + <h1>SYNOPSIS</h1> + + <dl id="synopsis"> +- <dt><code><b>xsd</b> <i>command</i> [<i>options</i>] <i>file</i> [<i>file</i> ...]</code></dt> +- <dt><code><b>xsd help</b> [<i>command</i>]</code></dt> +- <dt><code><b>xsd version</b></code></dt> ++ <dt><code><b>xsdcxx</b> <i>command</i> [<i>options</i>] <i>file</i> [<i>file</i> ...]</code></dt> ++ <dt><code><b>xsdcxx help</b> [<i>command</i>]</code></dt> ++ <dt><code><b>xsdcxx version</b></code></dt> + </dl> + + <h1>DESCRIPTION</h1> + +- <p><code><b>xsd</b></code> generates vocabulary-specific, statically-typed ++ <p><code><b>xsdcxx</b></code> generates vocabulary-specific, statically-typed + C++ mapping from W3C XML Schema definitions. Particular mapping to + produce is selected by a <code><i>command</i></code>. Each mapping has + a number of mapping-specific <code><i>options</i></code> that should +@@ -104,7 +104,7 @@ + + <dt><code><b>help</b></code></dt> + <dd>Print usage information and exit. Use +- <p><code><b>xsd help</b> <i>command</i></code></p> ++ <p><code><b>xsdcxx help</b> <i>command</i></code></p> + for command-specific help. + </dd> + +@@ -174,7 +174,7 @@ + + <p>For example, if you have file <code><b>hello.xsd</b></code> + with namespace <code><b>http://example.com/hello</b></code> and you run +- <code><b>xsd</b></code> on this file, then the string in question ++ <code><b>xsdcxx</b></code> on this file, then the string in question + will be:</p> + + <p><code><b>hello.xsd. http://example.com/hello</b></code></p> +@@ -1575,7 +1575,7 @@ namespace .* + <h1>DIAGNOSTICS</h1> + + <p>If the input file is not a valid W3C XML Schema definition, +- <code><b>xsd</b></code> will issue diagnostic messages to STDERR ++ <code><b>xsdcxx</b></code> will issue diagnostic messages to STDERR + and exit with non-zero exit code.</p> + + <h1>BUGS</h1> |