From 9e5276831865e251c8d74a830da4908eab65cbb3 Mon Sep 17 00:00:00 2001 From: root Date: Sun, 9 Dec 2012 01:45:54 -0800 Subject: Sun Dec 9 01:45:28 PST 2012 --- extra/xsd/PKGBUILD | 34 +++++++++++++ extra/xsd/xsdcxx.patch | 128 +++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 162 insertions(+) create mode 100644 extra/xsd/PKGBUILD create mode 100644 extra/xsd/xsdcxx.patch (limited to 'extra/xsd') 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 + +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 @@ + +

NAME

+ +-

xsd - W3C XML Schema to C++ Compiler

++

xsdcxx - W3C XML Schema to C++ Compiler

+ +

SYNOPSIS

+ +
+-
xsd command [options] file [file ...]
+-
xsd help [command]
+-
xsd version
++
xsdcxx command [options] file [file ...]
++
xsdcxx help [command]
++
xsdcxx version
+
+ +

DESCRIPTION

+ +-

xsd 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 @@ + +

help
+
Print usage information and exit. Use +-

xsd help command

++

xsdcxx help command

+ for command-specific help. +
+ +@@ -174,7 +174,7 @@ + +

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 ++ xsdcxx on this file, then the string in question + will be:

+ +

hello.xsd. http://example.com/hello

+@@ -1575,7 +1575,7 @@ namespace .* +

DIAGNOSTICS

+ +

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.

+ +

BUGS

-- cgit v1.2.3-54-g00ecf