···1919let optional = stdenv.lib.optional;
2020in rec {
21212222- firefoxVersion = "23.0";
2222+ firefoxVersion = "23.0.1";
23232424- xulVersion = "23.0"; # this attribute is used by other packages
2424+ xulVersion = "23.0.1"; # this attribute is used by other packages
252526262727 src = fetchurl {
···3131 # Fall back to this url for versions not available at releases.mozilla.org.
3232 "ftp://ftp.mozilla.org/pub/mozilla.org/firefox/releases/${firefoxVersion}/source/firefox-${firefoxVersion}.source.tar.bz2"
3333 ];
3434- sha1 = "31936d2ddb727640c96a3ae697bf145c42a2a20e";
3434+ sha1 = "66361fcvyl9liyh41gvgysiim90wsywk";
3535 };
36363737 commonConfigureFlags =
···11-{ stdenv, fetchurl, pkgconfig, mesa, glib, gdk_pixbuf
22-, pangoSupport ? true, pango, cairo
33-, libXfixes, libXcomposite, libXdamage }:
11+{ stdenv, fetchurl, pkgconfig, mesa, glib, gdk_pixbuf, libXfixes, libXcomposite
22+, libXdamage, libintlOrEmpty
33+, pangoSupport ? true, pango, cairo }:
4455stdenv.mkDerivation rec {
66 name = "cogl-1.8.2";
···1313 nativeBuildInputs = [ pkgconfig ];
14141515 propagatedBuildInputs =
1616- [ mesa glib gdk_pixbuf libXfixes libXcomposite libXdamage ];
1616+ [ mesa glib gdk_pixbuf libXfixes libXcomposite libXdamage ]
1717+ ++ libintlOrEmpty;
17181819 buildInputs = stdenv.lib.optionals pangoSupport [ pango cairo ];
19202020- meta = {
2121+ COGL_PANGO_DEP_CFLAGS
2222+ = stdenv.lib.optionalString (stdenv.isDarwin && pangoSupport)
2323+ "-I${pango}/include/pango-1.0 -I${cairo}/include/cairo";
2424+2525+ NIX_LDFLAGS = stdenv.lib.optionalString stdenv.isDarwin "-lintl";
2626+2727+ meta = with stdenv.lib; {
2128 description = "A small open source library for using 3D graphics hardware for rendering";
2222- longDescription =
2323- ''
2424- Cogl is a small open source library for using 3D graphics hardware for
2525- rendering. The API departs from the flat state machine style of OpenGL
2626- and is designed to make it easy to write orthogonal components that can
2727- render without stepping on each others toes.
2828- '';
2929+ maintainers = with maintainers; [ lovek323 ];
3030+3131+ longDescription = ''
3232+ Cogl is a small open source library for using 3D graphics hardware for
3333+ rendering. The API departs from the flat state machine style of OpenGL
3434+ and is designed to make it easy to write orthogonal components that can
3535+ render without stepping on each other's toes.
3636+ '';
3737+2938 inherit (glib.meta) platforms;
3039 };
3140}
+23-10
pkgs/development/libraries/gsoap/default.nix
···11-{ stdenv, fetchurl, m4, bison, flex, openssl, zlib }:
11+{ stdenv, fetchurl, unzip, m4, bison, flex, openssl, zlib }:
2233-let version = "2.7.15"; in
44-55-stdenv.mkDerivation {
33+stdenv.mkDerivation rec {
64 name = "gsoap-${version}";
55+ version = "2.8.16";
7687 src = fetchurl {
99- url = "mirror://sourceforge/gsoap2/files/gSOAP/2.7.15%20stable/gsoap_${version}.tar.gz";
1010- sha256 = "3ed883ab1a3d32b5bb2bf599306f247f6de3ffedd8890eb0e6303ae15995dc12";
88+ url = "mirror://sourceforge/project/gsoap2/gSOAP/gsoap_${version}.zip";
99+ sha256 = "00lhhysa9f9ychkvn1ij0ngr54l1dl9ww801yrliwq5c05gql7a6";
1110 };
12111313- buildInputs = [ m4 bison flex openssl zlib ];
1414- meta = {
1212+ buildInputs = [ unzip m4 bison flex openssl zlib ];
1313+1414+ meta = with stdenv.lib; {
1515+ description = "C/C++ toolkit for SOAP web services and XML-based applications";
1516 homepage = "http://www.cs.fsu.edu/~engelen/soap.html";
1616- description = "The gSOAP toolkit is an open source C and C++ software development toolkit for SOAP/WSDL and XML Web services.";
1717- license = "free-non-copyleft";
1717+ # gsoap is dual/triple licensed (see homepage for details):
1818+ # 1. gSOAP Public License 1.3 (based on Mozilla Public License 1.1).
1919+ # Components NOT covered by the gSOAP Public License are:
2020+ # - wsdl2h tool and its source code output,
2121+ # - soapcpp2 tool and its source code output,
2222+ # - UDDI code,
2323+ # - the webserver example code in gsoap/samples/webserver,
2424+ # - and several example applications in the gsoap/samples directory.
2525+ # 2. GPLv2 covers all of the software
2626+ # 3. Proprietary commercial software development license (removes GPL
2727+ # restrictions)
2828+ license = licenses.gpl2;
2929+ platforms = platforms.linux;
3030+ maintainers = [ maintainers.bjornfor ];
1831 };
1932}
···11+commit 983634ea6b81910529596c262644eacfa2c2c4f9
22+Author: Shea Levy <shea@shealevy.com>
33+Date: Wed Sep 4 16:16:12 2013 -0400
44+55+ Fix LS_BUCKET
66+77+ GET foo.s3.amazonaws.com/ and GET s3.amazonaws.com/foo should result in
88+ an LS_BUCKET request, but under the previous logic it would result in a
99+ LIST_BUCKETS request. GET s3.amazonaws.com/ still results in a
1010+ LIST_BUCKETS request due to the 'if path == "/" and s_req.is_path_style'
1111+ conditional.
1212+1313+ Signed-off-by: Shea Levy <shea@shealevy.com>
1414+1515+diff --git a/lib/fakes3/server.rb b/lib/fakes3/server.rb
1616+index 6958151..36d9cad 100644
1717+--- a/lib/fakes3/server.rb
1818++++ b/lib/fakes3/server.rb
1919+@@ -213,10 +213,7 @@ module FakeS3
2020+ elems = path.split("/")
2121+ end
2222+2323+- if elems.size == 0
2424+- # List buckets
2525+- s_req.type = Request::LIST_BUCKETS
2626+- elsif elems.size == 1
2727++ if elems.size < 2
2828+ s_req.type = Request::LS_BUCKET
2929+ s_req.query = query
3030+ else
···2424 # Support drivers that need external firmware.
2525 STANDALONE n
26262727- # Enable the complete Linux kernel ".config" file to be saved in the kernel.
2828- # Also, make it available at runtime as /proc/config.gz.
2929- IKCONFIG y
2727+ # Make /proc/config.gz available.
3028 IKCONFIG_PROC y
31293230 # Optimize with -O2, not -Os.
···103101 FB_SIS_300 y
104102 FB_SIS_315 y
105103 FB_3DFX_ACCEL y
106106- FB_GEODE y
104104+ ${optionalString (versionOlder version "3.9" || stdenv.system == "i686-linux") ''
105105+ FB_GEODE y
106106+ ''}
107107108108 # Video configuration.
109109 # Enable KMS for devices whose X.org driver supports it.
···11-{stdenv, fetchurl, libedit, icu
11+{stdenv, fetchurl, libedit, ncurses, automake, autoconf, libtool
22+,
33+ # icu = null: use icu which comes with firebird
44+55+ # icu = pkgs.icu => you may have trouble sharing database files with windows
66+ # users if "Collation unicode" columns are being used
77+ # windows icu version is *30.dll, however neither the icu 3.0 nor the 3.6
88+ # sources look close to what ships with this package.
99+ # Thus I think its best to trust firebird devs and use their version
1010+1111+ # icu version missmatch may cause such error when selecting from a table:
1212+ # "Collation unicode for character set utf8 is not installed"
1313+1414+ # icu 3.0 can still be build easily by nix (by dropping the #elif case and
1515+ # make | make)
1616+ icu ? null
1717+218, superServer ? false
319, port ? 3050
420, serviceName ? "gds_db"
···622723/*
824 there are 3 ways to use firebird:
99- a) superserver
2525+ a) superserver
1026 - one process, one thread for each connection
1111- b) classic
2727+ b) classic
1228 - is built by default
1329 - one process for each connection
1430 - on linux direct io operations (?)
···2238*/
23392440stdenv.mkDerivation rec {
2525- version = "2.5.2.26539-0";
4141+ version = "2.5.2.26540-0";
2642 name = "firebird-${version}";
27434444+ # enableParallelBuilding = false; build fails
4545+4646+ # http://tracker.firebirdsql.org/browse/CORE-3246
4747+ preConfigure = ''
4848+ makeFlags="$makeFlags CPU=$NIX_BUILD_CORES"
4949+ '';
5050+2851 configureFlags =
2952 [ "--with-serivec-port=${builtins.toString port}"
3053 "--with-service-name=${serviceName}"
3131- # "--with-system-icu"
3232- # "--with-system-editline"
5454+ # "--disable-static"
5555+ "--with-system-editline"
5656+ "--with-fblog=/var/log/firebird"
5757+ "--with-fbconf=/etc/firebird"
5858+ "--with-fbsecure-db=/var/db/firebird/system"
3359 ]
3434- ++ (stdenv.lib.optional superServer "--enable-superserver=true");
6060+ ++ (stdenv.lib.optional (icu != null) "--with-system-icu")
6161+ ++ (stdenv.lib.optional superServer "--enable-superserver");
35623663 src = fetchurl {
3764 url = "mirror://sourceforge/firebird/Firebird-${version}.tar.bz2";
3838- sha256 = "1j5bcfl35hr6i4lcd08zls19bal2js3ar16gnwkzbhwxkxbyb43b";
6565+ sha256 = "0887a813wffp44hnc2gmwbc4ylpqw3fh3hz3bf6q3648344a9fdv";
3966 };
40674141- buildInputs = [libedit icu];
6868+ # configurePhase = ''
6969+ # sed -i 's@cp /usr/share/automake-.*@@' autogen.sh
7070+ # sh autogen.sh $configureFlags --prefix=$out
7171+ # '';
7272+ buildInputs = [libedit icu automake autoconf libtool];
42734374 # TODO: Probably this hase to be tidied up..
4475 # make install requires beeing. disabling the root checks
···11+{ stdenv, fetchurl, perl, perlPackages }:
22+33+stdenv.mkDerivation {
44+ name = "stow-2.2.0";
55+66+ src = fetchurl {
77+ url = mirror://gnu/stow/stow-2.2.0.tar.bz2;
88+ sha256 = "01bbsqjmrnd9925s3grvgjnrl52q4w65imrvzy05qaij3pz31g46";
99+ };
1010+1111+ buildInputs = [ perl perlPackages.TestOutput ];
1212+1313+ doCheck = true;
1414+1515+ meta = {
1616+ description = "Stow is a tool for managing the installation of multiple software packages in the same run-time directory tree.";
1717+1818+ longDescription = ''
1919+ GNU Stow is a symlink farm manager which takes distinct packages
2020+ of software and/or data located in separate directories on the
2121+ filesystem, and makes them appear to be installed in the same
2222+ place. For example, /usr/local/bin could contain symlinks to
2323+ files within /usr/local/stow/emacs/bin, /usr/local/stow/perl/bin
2424+ etc., and likewise recursively for any other subdirectories such
2525+ as .../share, .../man, and so on.
2626+ '';
2727+2828+ license = "GPLv3+";
2929+ homepage = http://www.gnu.org/software/stow/;
3030+3131+ maintainers = with stdenv.lib.maintainers; [ the-kenny ];
3232+ platforms = stdenv.lib.platforms.all;
3333+ };
3434+}
···11+{ stdenv, fetchurl, python3, libreoffice, asciidoc, makeWrapper
22+# whether to install odt2pdf/odt2doc/... symlinks to unoconv
33+, installSymlinks ? true
44+}:
55+66+# IMPORTANT: unoconv must use the same python version as libreoffice (unless it
77+# will not be able to load the pyuno module from libreoffice).
88+99+stdenv.mkDerivation rec {
1010+ name = "unoconv-0.6";
1111+1212+ src = fetchurl {
1313+ url = "http://dag.wieers.com/home-made/unoconv/${name}.tar.gz";
1414+ sha256 = "1m3kv942zf5rzyrbkil0nhmyq9mm3007y64bb3s7w88mhr5n23kr";
1515+ };
1616+1717+ buildInputs = [ asciidoc makeWrapper ];
1818+1919+ # We need to use python3 because libreoffice 4.x uses it. This patch comes
2020+ # from unoconv.git, so it will be a part of the next release.
2121+ patches = [ ./unoconv-python3.patch ];
2222+2323+ preBuild = ''
2424+ makeFlags=prefix="$out"
2525+ '';
2626+2727+ postInstall = ''
2828+ sed -i "s|/usr/bin/env python.*|${python3}/bin/${python3.executable}|" "$out/bin/unoconv"
2929+ wrapProgram "$out/bin/unoconv" --set UNO_PATH "${libreoffice}/lib/libreoffice/program/"
3030+ '' + (if installSymlinks then ''
3131+ make install-links prefix="$out"
3232+ '' else "");
3333+3434+ meta = with stdenv.lib; {
3535+ description = "Convert between any document format supported by LibreOffice/OpenOffice";
3636+ homepage = http://dag.wieers.com/home-made/unoconv/;
3737+ license = licenses.gpl2;
3838+ platforms = platforms.linux;
3939+ maintainers = [ maintainers.bjornfor ];
4040+ };
4141+}
+374
pkgs/tools/text/unoconv/unoconv-python3.patch
···11+commit fc59dd90f03cf88f4cf16c07204809f2239284ee
22+Author: Riccardo Magliocchetti <riccardo.magliocchetti@gmail.com>
33+Date: Thu Dec 20 00:02:53 2012 +0100
44+55+ Add support for python3
66+77+ Libreoffice 4.0 will switch its internal python version to 3.3.0
88+ so it's to support that.
99+1010+ Porting done automatically 2to3 plus print_function import added
1111+ manually. Tested on both libreoffice master with internal python
1212+ and with libreoffince 3.6.4 on debian with system python 2.7.
1313+1414+ This bumps the minimal python version to 2.6 since 2.5 does not
1515+ have the print function.
1616+1717+diff --git a/unoconv b/unoconv
1818+index 30e6706..f72cf08 100755
1919+--- a/unoconv
2020++++ b/unoconv
2121+@@ -14,6 +14,8 @@
2222+ ### Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
2323+ ### Copyright 2007-2010 Dag Wieers <dag@wieers.com>
2424+2525++from __future__ import print_function
2626++
2727+ from distutils.version import LooseVersion
2828+ import getopt
2929+ import glob
3030+@@ -77,11 +79,11 @@ def find_offices():
3131+ else:
3232+3333+ if os.name in ( 'nt', 'os2' ):
3434+- if 'PROGRAMFILES' in os.environ.keys():
3535++ if 'PROGRAMFILES' in list(os.environ.keys()):
3636+ extrapaths += glob.glob(os.environ['PROGRAMFILES']+'\\LibreOffice*') + \
3737+ glob.glob(os.environ['PROGRAMFILES']+'\\OpenOffice.org*')
3838+3939+- if 'PROGRAMFILES(X86)' in os.environ.keys():
4040++ if 'PROGRAMFILES(X86)' in list(os.environ.keys()):
4141+ extrapaths += glob.glob(os.environ['PROGRAMFILES(X86)']+'\\LibreOffice*') + \
4242+ glob.glob(os.environ['PROGRAMFILES(X86)']+'\\OpenOffice.org*')
4343+4444+@@ -233,18 +235,18 @@ def office_environ(office):
4545+4646+ def debug_office():
4747+ if 'URE_BOOTSTRAP' in os.environ:
4848+- print >>sys.stderr, 'URE_BOOTSTRAP=%s' % os.environ['URE_BOOTSTRAP']
4949++ print('URE_BOOTSTRAP=%s' % os.environ['URE_BOOTSTRAP'], file=sys.stderr)
5050+ if 'UNO_PATH' in os.environ:
5151+- print >>sys.stderr, 'UNO_PATH=%s' % os.environ['UNO_PATH']
5252++ print('UNO_PATH=%s' % os.environ['UNO_PATH'], file=sys.stderr)
5353+ if 'UNO_TYPES' in os.environ:
5454+- print >>sys.stderr, 'UNO_TYPES=%s' % os.environ['UNO_TYPES']
5555+- print 'PATH=%s' % os.environ['PATH']
5656++ print('UNO_TYPES=%s' % os.environ['UNO_TYPES'], file=sys.stderr)
5757++ print('PATH=%s' % os.environ['PATH'])
5858+ if 'PYTHONHOME' in os.environ:
5959+- print >>sys.stderr, 'PYTHONHOME=%s' % os.environ['PYTHONHOME']
6060++ print('PYTHONHOME=%s' % os.environ['PYTHONHOME'], file=sys.stderr)
6161+ if 'PYTHONPATH' in os.environ:
6262+- print >>sys.stderr, 'PYTHONPATH=%s' % os.environ['PYTHONPATH']
6363++ print('PYTHONPATH=%s' % os.environ['PYTHONPATH'], file=sys.stderr)
6464+ if 'LD_LIBRARY_PATH' in os.environ:
6565+- print >>sys.stderr, 'LD_LIBRARY_PATH=%s' % os.environ['LD_LIBRARY_PATH']
6666++ print('LD_LIBRARY_PATH=%s' % os.environ['LD_LIBRARY_PATH'], file=sys.stderr)
6767+6868+ def python_switch(office):
6969+ if office.pythonhome:
7070+@@ -335,11 +337,11 @@ class FmtList:
7171+ return ret
7272+7373+ def display(self, doctype):
7474+- print >>sys.stderr, "The following list of %s formats are currently available:\n" % doctype
7575++ print("The following list of %s formats are currently available:\n" % doctype, file=sys.stderr)
7676+ for fmt in self.list:
7777+ if fmt.doctype == doctype:
7878+- print >>sys.stderr, " %-8s - %s" % (fmt.name, fmt)
7979+- print >>sys.stderr
8080++ print(" %-8s - %s" % (fmt.name, fmt), file=sys.stderr)
8181++ print(file=sys.stderr)
8282+8383+ fmts = FmtList()
8484+8585+@@ -530,14 +532,14 @@ class Options:
8686+ 'outputpath', 'password=', 'pipe=', 'port=', 'server=',
8787+ 'timeout=', 'show', 'stdout', 'template', 'verbose',
8888+ 'version'] )
8989+- except getopt.error, exc:
9090+- print 'unoconv: %s, try unoconv -h for a list of all the options' % str(exc)
9191++ except getopt.error as exc:
9292++ print('unoconv: %s, try unoconv -h for a list of all the options' % str(exc))
9393+ sys.exit(255)
9494+9595+ for opt, arg in opts:
9696+ if opt in ['-h', '--help']:
9797+ self.usage()
9898+- print
9999++ print()
100100+ self.help()
101101+ sys.exit(1)
102102+ elif opt in ['-c', '--connection']:
103103+@@ -562,7 +564,7 @@ class Options:
104104+ except ValueError:
105105+ self.exportfilter.append( PropertyValue( name, 0, value, 0 ) )
106106+ else:
107107+- print >>sys.stderr, 'Warning: Option %s cannot be parsed, ignoring.' % arg
108108++ print('Warning: Option %s cannot be parsed, ignoring.' % arg, file=sys.stderr)
109109+ elif opt in ['-f', '--format']:
110110+ self.format = arg
111111+ elif opt in ['-i', '--import']:
112112+@@ -581,7 +583,7 @@ class Options:
113113+ except ValueError:
114114+ self.importfilter.append( PropertyValue( name, 0, value, 0 ) )
115115+ else:
116116+- print >>sys.stderr, 'Warning: Option %s cannot be parsed, ignoring.' % arg
117117++ print('Warning: Option %s cannot be parsed, ignoring.' % arg, file=sys.stderr)
118118+ elif opt in ['-l', '--listener']:
119119+ self.listener = True
120120+ elif opt in ['-n', '--no-launch']:
121121+@@ -589,7 +591,7 @@ class Options:
122122+ elif opt in ['-o', '--output']:
123123+ self.output = arg
124124+ elif opt in ['--outputpath']:
125125+- print >>sys.stderr, 'Warning: This option is deprecated by --output.'
126126++ print('Warning: This option is deprecated by --output.', file=sys.stderr)
127127+ self.output = arg
128128+ elif opt in ['--password']:
129129+ self.password = arg
130130+@@ -615,13 +617,13 @@ class Options:
131131+132132+ ### Enable verbosity
133133+ if self.verbose >= 2:
134134+- print >>sys.stderr, 'Verbosity set to level %d' % self.verbose
135135++ print('Verbosity set to level %d' % self.verbose, file=sys.stderr)
136136+137137+ self.filenames = args
138138+139139+ if not self.listener and not self.showlist and self.doctype != 'list' and not self.filenames:
140140+- print >>sys.stderr, 'unoconv: you have to provide a filename as argument'
141141+- print >>sys.stderr, 'Try `unoconv -h\' for more information.'
142142++ print('unoconv: you have to provide a filename as argument', file=sys.stderr)
143143++ print('Try `unoconv -h\' for more information.', file=sys.stderr)
144144+ sys.exit(255)
145145+146146+ ### Set connection string
147147+@@ -659,21 +661,21 @@ class Options:
148148+ ### Get office product information
149149+ product = uno.getComponentContext().ServiceManager.createInstance("com.sun.star.configuration.ConfigurationProvider").createInstanceWithArguments("com.sun.star.configuration.ConfigurationAccess", UnoProps(nodepath="/org.openoffice.Setup/Product"))
150150+151151+- print 'unoconv %s' % VERSION
152152+- print 'Written by Dag Wieers <dag@wieers.com>'
153153+- print 'Homepage at http://dag.wieers.com/home-made/unoconv/'
154154+- print
155155+- print 'platform %s/%s' % (os.name, sys.platform)
156156+- print 'python %s' % sys.version
157157+- print product.ooName, product.ooSetupVersion
158158++ print('unoconv %s' % VERSION)
159159++ print('Written by Dag Wieers <dag@wieers.com>')
160160++ print('Homepage at http://dag.wieers.com/home-made/unoconv/')
161161++ print()
162162++ print('platform %s/%s' % (os.name, sys.platform))
163163++ print('python %s' % sys.version)
164164++ print(product.ooName, product.ooSetupVersion)
165165+ # print
166166+ # print 'build revision $Rev$'
167167+168168+ def usage(self):
169169+- print >>sys.stderr, 'usage: unoconv [options] file [file2 ..]'
170170++ print('usage: unoconv [options] file [file2 ..]', file=sys.stderr)
171171+172172+ def help(self):
173173+- print >>sys.stderr, '''Convert from and to any format supported by LibreOffice
174174++ print('''Convert from and to any format supported by LibreOffice
175175+176176+ unoconv options:
177177+ -c, --connection=string use a custom connection string
178178+@@ -698,7 +700,7 @@ unoconv options:
179179+ -t, --template=file import the styles from template (.ott)
180180+ -T, --timeout=secs timeout after secs if connection to listener fails
181181+ -v, --verbose be more and more verbose (-vvv for debugging)
182182+-'''
183183++''', file=sys.stderr)
184184+185185+ class Convertor:
186186+ def __init__(self):
187187+@@ -714,7 +716,7 @@ class Convertor:
188188+ info(3, 'Connection type: %s' % op.connection)
189189+ try:
190190+ unocontext = resolver.resolve("uno:%s" % op.connection)
191191+- except NoConnectException, e:
192192++ except NoConnectException as e:
193193+ # info(3, "Existing listener not found.\n%s" % e)
194194+ info(3, "Existing listener not found.")
195195+196196+@@ -749,7 +751,7 @@ class Convertor:
197197+ raise
198198+ else:
199199+ error("Failed to connect to %s (pid=%s) in %d seconds.\n%s" % (office.binary, ooproc.pid, op.timeout, e))
200200+- except Exception, e:
201201++ except Exception as e:
202202+ raise
203203+ error("Launch of %s failed.\n%s" % (office.binary, e))
204204+205205+@@ -799,9 +801,9 @@ class Convertor:
206206+ ### No format found, throw error
207207+ if not outputfmt:
208208+ if doctype:
209209+- print >>sys.stderr, 'unoconv: format [%s/%s] is not known to unoconv.' % (op.doctype, op.format)
210210++ print('unoconv: format [%s/%s] is not known to unoconv.' % (op.doctype, op.format), file=sys.stderr)
211211+ else:
212212+- print >>sys.stderr, 'unoconv: format [%s] is not known to unoconv.' % op.format
213213++ print('unoconv: format [%s] is not known to unoconv.' % op.format, file=sys.stderr)
214214+ die(1)
215215+216216+ return outputfmt
217217+@@ -813,10 +815,10 @@ class Convertor:
218218+ outputfmt = self.getformat(inputfn)
219219+220220+ if op.verbose > 0:
221221+- print >>sys.stderr, 'Input file:', inputfn
222222++ print('Input file:', inputfn, file=sys.stderr)
223223+224224+ if not os.path.exists(inputfn):
225225+- print >>sys.stderr, 'unoconv: file `%s\' does not exist.' % inputfn
226226++ print('unoconv: file `%s\' does not exist.' % inputfn, file=sys.stderr)
227227+ exitcode = 1
228228+229229+ try:
230230+@@ -854,7 +856,7 @@ class Convertor:
231231+ templateurl = unohelper.absolutize(self.cwd, unohelper.systemPathToFileUrl(op.template))
232232+ document.StyleFamilies.loadStylesFromURL(templateurl, templateprops)
233233+ else:
234234+- print >>sys.stderr, 'unoconv: template file `%s\' does not exist.' % op.template
235235++ print('unoconv: template file `%s\' does not exist.' % op.template, file=sys.stderr)
236236+ exitcode = 1
237237+238238+ ### Update document links
239239+@@ -924,40 +926,40 @@ class Convertor:
240240+241241+ try:
242242+ document.storeToURL(outputurl, tuple(outputprops) )
243243+- except IOException, e:
244244++ except IOException as e:
245245+ raise UnoException("Unable to store document to %s (ErrCode %d)\n\nProperties: %s" % (outputurl, e.ErrCode, outputprops), None)
246246+247247+ phase = "dispose"
248248+ document.dispose()
249249+ document.close(True)
250250+251251+- except SystemError, e:
252252++ except SystemError as e:
253253+ error("unoconv: SystemError during %s phase:\n%s" % (phase, e))
254254+ exitcode = 1
255255+256256+- except RuntimeException, e:
257257++ except RuntimeException as e:
258258+ error("unoconv: RuntimeException during %s phase:\nOffice probably died. %s" % (phase, e))
259259+ exitcode = 6
260260+261261+- except DisposedException, e:
262262++ except DisposedException as e:
263263+ error("unoconv: DisposedException during %s phase:\nOffice probably died. %s" % (phase, e))
264264+ exitcode = 7
265265+266266+- except IllegalArgumentException, e:
267267++ except IllegalArgumentException as e:
268268+ error("UNO IllegalArgument during %s phase:\nSource file cannot be read. %s" % (phase, e))
269269+ exitcode = 8
270270+271271+- except IOException, e:
272272++ except IOException as e:
273273+ # for attr in dir(e): print '%s: %s', (attr, getattr(e, attr))
274274+ error("unoconv: IOException during %s phase:\n%s" % (phase, e.Message))
275275+ exitcode = 3
276276+277277+- except CannotConvertException, e:
278278++ except CannotConvertException as e:
279279+ # for attr in dir(e): print '%s: %s', (attr, getattr(e, attr))
280280+ error("unoconv: CannotConvertException during %s phase:\n%s" % (phase, e.Message))
281281+ exitcode = 4
282282+283283+- except UnoException, e:
284284++ except UnoException as e:
285285+ if hasattr(e, 'ErrCode'):
286286+ error("unoconv: UnoException during %s phase in %s (ErrCode %d)" % (phase, repr(e.__class__), e.ErrCode))
287287+ exitcode = e.ErrCode
288288+@@ -982,7 +984,7 @@ class Listener:
289289+ product = self.svcmgr.createInstance("com.sun.star.configuration.ConfigurationProvider").createInstanceWithArguments("com.sun.star.configuration.ConfigurationAccess", UnoProps(nodepath="/org.openoffice.Setup/Product"))
290290+ try:
291291+ unocontext = resolver.resolve("uno:%s" % op.connection)
292292+- except NoConnectException, e:
293293++ except NoConnectException as e:
294294+ pass
295295+ else:
296296+ info(1, "Existing %s listener found, nothing to do." % product.ooName)
297297+@@ -991,25 +993,25 @@ class Listener:
298298+ subprocess.call([office.binary, "-headless", "-invisible", "-nocrashreport", "-nodefault", "-nologo", "-nofirststartwizard", "-norestore", "-accept=%s" % op.connection], env=os.environ)
299299+ else:
300300+ subprocess.call([office.binary, "--headless", "--invisible", "--nocrashreport", "--nodefault", "--nologo", "--nofirststartwizard", "--norestore", "--accept=%s" % op.connection], env=os.environ)
301301+- except Exception, e:
302302++ except Exception as e:
303303+ error("Launch of %s failed.\n%s" % (office.binary, e))
304304+ else:
305305+ info(1, "Existing %s listener found, nothing to do." % product.ooName)
306306+307307+ def error(msg):
308308+ "Output error message"
309309+- print >>sys.stderr, msg
310310++ print(msg, file=sys.stderr)
311311+312312+ def info(level, msg):
313313+ "Output info message"
314314+ if 'op' not in globals():
315315+ pass
316316+ elif op.verbose >= 3 and level >= 3:
317317+- print >>sys.stderr, "DEBUG:", msg
318318++ print("DEBUG:", msg, file=sys.stderr)
319319+ elif not op.stdout and level <= op.verbose:
320320+- print >>sys.stdout, msg
321321++ print(msg, file=sys.stdout)
322322+ elif level <= op.verbose:
323323+- print >>sys.stderr, msg
324324++ print(msg, file=sys.stderr)
325325+326326+ def die(ret, msg=None):
327327+ "Print optional error and exit with errorcode"
328328+@@ -1031,7 +1033,7 @@ def die(ret, msg=None):
329329+ subprocess.Popen([office.binary, "--headless", "--invisible", "--nocrashreport", "--nodefault", "--nofirststartwizard", "--nologo", "--norestore", "--unaccept=%s" % op.connection], env=os.environ)
330330+ ooproc.wait()
331331+ info(2, '%s listener successfully disabled.' % product.ooName)
332332+- except Exception, e:
333333++ except Exception as e:
334334+ error("Terminate using %s failed.\n%s" % (office.binary, e))
335335+336336+ ### If there is no GUI attached to the instance, terminate instance
337337+@@ -1080,7 +1082,7 @@ def main():
338338+ for inputfn in op.filenames:
339339+ convertor.convert(inputfn)
340340+341341+- except NoConnectException, e:
342342++ except NoConnectException as e:
343343+ error("unoconv: could not find an existing connection to LibreOffice at %s:%s." % (op.server, op.port))
344344+ if op.connection:
345345+ info(0, "Please start an LibreOffice instance on server '%s' by doing:\n\n unoconv --listener --server %s --port %s\n\nor alternatively:\n\n soffice -nologo -nodefault -accept=\"%s\"" % (op.server, op.server, op.port, op.connection))
346346+@@ -1110,14 +1112,14 @@ if __name__ == '__main__':
347347+ break
348348+ except:
349349+ # debug_office()
350350+- print >>sys.stderr, "unoconv: Cannot find a suitable pyuno library and python binary combination in %s" % of
351351+- print >>sys.stderr, "ERROR:", sys.exc_info()[1]
352352+- print >>sys.stderr
353353++ print("unoconv: Cannot find a suitable pyuno library and python binary combination in %s" % of, file=sys.stderr)
354354++ print("ERROR:", sys.exc_info()[1], file=sys.stderr)
355355++ print(file=sys.stderr)
356356+ else:
357357+ # debug_office()
358358+- print >>sys.stderr, "unoconv: Cannot find a suitable office installation on your system."
359359+- print >>sys.stderr, "ERROR: Please locate your office installation and send your feedback to:"
360360+- print >>sys.stderr, " http://github.com/dagwieers/unoconv/issues"
361361++ print("unoconv: Cannot find a suitable office installation on your system.", file=sys.stderr)
362362++ print("ERROR: Please locate your office installation and send your feedback to:", file=sys.stderr)
363363++ print(" http://github.com/dagwieers/unoconv/issues", file=sys.stderr)
364364+ sys.exit(1)
365365+366366+ ### Now that we have found a working pyuno library, let's import some classes
367367+@@ -1160,6 +1162,6 @@ if __name__ == '__main__':
368368+369369+ try:
370370+ main()
371371+- except KeyboardInterrupt, e:
372372++ except KeyboardInterrupt as e:
373373+ die(6, 'Exiting on user request')
374374+ die(exitcode)
+81
pkgs/tools/text/xml/basex/basex.svg
···11+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
22+<!-- Created with Inkscape (http://www.inkscape.org/) -->
33+<svg
44+ xmlns:dc="http://purl.org/dc/elements/1.1/"
55+ xmlns:cc="http://web.resource.org/cc/"
66+ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
77+ xmlns:svg="http://www.w3.org/2000/svg"
88+ xmlns="http://www.w3.org/2000/svg"
99+ xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
1010+ xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
1111+ id="svg2178"
1212+ sodipodi:version="0.32"
1313+ inkscape:version="0.45"
1414+ width="1568"
1515+ height="1164"
1616+ version="1.0"
1717+ sodipodi:docbase="F:\Uni\Scholl\Research\Conferences\BTW2007\Poster"
1818+ sodipodi:docname="Logo.svg"
1919+ inkscape:output_extension="org.inkscape.output.svg.inkscape"
2020+ sodipodi:modified="true">
2121+ <metadata
2222+ id="metadata2183">
2323+ <rdf:RDF>
2424+ <cc:Work
2525+ rdf:about="">
2626+ <dc:format>image/svg+xml</dc:format>
2727+ <dc:type
2828+ rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
2929+ </cc:Work>
3030+ </rdf:RDF>
3131+ </metadata>
3232+ <defs
3333+ id="defs2181" />
3434+ <sodipodi:namedview
3535+ inkscape:window-height="1150"
3636+ inkscape:window-width="1143"
3737+ inkscape:pageshadow="2"
3838+ inkscape:pageopacity="0.0"
3939+ guidetolerance="10.0"
4040+ gridtolerance="10.0"
4141+ objecttolerance="10.0"
4242+ borderopacity="1.0"
4343+ bordercolor="#666666"
4444+ pagecolor="#ffffff"
4545+ id="base"
4646+ inkscape:zoom="0.64948454"
4747+ inkscape:cx="784"
4848+ inkscape:cy="584.00852"
4949+ inkscape:window-x="412"
5050+ inkscape:window-y="20"
5151+ inkscape:current-layer="layer2"
5252+ showgrid="false"
5353+ inkscape:object-bbox="true"
5454+ inkscape:object-points="true"
5555+ gridempspacing="10" />
5656+ <g
5757+ inkscape:groupmode="layer"
5858+ id="layer2"
5959+ style="opacity:1">
6060+ <path
6161+ style="font-size:1470px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:100%;writing-mode:lr-tb;text-anchor:start;fill:#ffffff;fill-opacity:1;stroke:#000000;stroke-width:19.98425102;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;font-family:Clarendo"
6262+ d="M 628.08008,847.55762 C 613.24569,864.30587 601.88095,879.3791 593.98584,892.77734 C 586.08995,906.17595 582.1422,916.94254 582.14258,925.07715 C 582.1422,937.9972 586.92735,947.08899 596.49805,952.35254 C 606.06796,957.61633 624.49079,960.24816 651.7666,960.24805 L 720.67285,960.24805 L 720.67285,1072.2207 L 207.46484,1072.2207 L 207.46484,960.24805 L 256.27344,960.24805 C 284.9843,960.24816 308.07265,955.94152 325.53857,947.32813 C 343.00426,938.71498 364.89633,919.09586 391.21484,888.4707 L 673.2998,568.34375 L 441.45898,276.92773 C 416.57596,245.82505 393.60723,224.77038 372.55273,213.76367 C 351.4979,202.75868 325.89734,197.25576 295.75098,197.25488 L 245.50684,197.25488 L 245.50684,86 L 767.32813,86 L 767.32813,197.25488 L 699.85742,197.25488 C 685.97999,197.25576 675.45266,199.76796 668.27539,204.7915 C 661.0972,209.81678 657.50834,217.11414 657.50879,226.68359 C 657.50834,233.38365 659.30277,240.20249 662.89209,247.14014 C 666.4805,254.07943 672.58156,262.57308 681.19531,272.62109 L 810.39453,429.81348 L 967.58691,265.44336 C 974.76388,258.26644 980.50606,250.84945 984.81348,243.19238 C 989.11933,235.53697 991.27265,229.07702 991.27344,223.8125 C 991.27265,215.20008 985.88936,208.62049 975.12354,204.07373 C 964.35618,199.5287 948.20629,197.25576 926.67383,197.25488 L 869.25195,197.25488 L 869.25195,86 L 1332.2158,86 L 1332.2158,197.25488 L 1279.1006,197.25488 C 1241.2968,197.25576 1189.8564,233.14439 1124.7793,304.9209 L 1123.3438,306.35645 L 905.8584,544.65723 L 1155.6436,856.1709 C 1194.8808,904.97966 1224.6684,934.52797 1245.0063,944.81592 C 1265.3422,955.10412 1294.412,960.24816 1332.2158,960.24805 L 1376,960.24805 L 1376,1072.2207 L 810.39453,1072.2207 L 810.39453,960.24805 L 877.86523,960.24805 C 901.79032,960.24816 919.25612,958.21447 930.2627,954.14697 C 941.26782,950.07971 946.77074,943.26087 946.77148,933.69043 C 946.77074,926.51284 945.3352,918.97623 942.46484,911.08057 C 939.59302,903.18523 935.28638,895.64861 929.54492,888.4707 L 768.76367,685.34082 L 628.08008,847.55762 z "
6363+ id="text2175" />
6464+ <path
6565+ style="font-size:500px;font-style:normal;font-variant:normal;font-weight:800;font-stretch:normal;text-align:start;line-height:125%;writing-mode:lr-tb;text-anchor:start;fill:#e00000;fill-opacity:1;stroke:#ffffff;stroke-width:20;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;font-family:Arial Black"
6666+ d="M 146.16714,395.52869 L 353.19839,395.52869 C 387.70332,395.52904 414.19255,404.07396 432.66616,421.16345 C 451.13913,438.25361 460.37577,459.41244 460.37612,484.64001 C 460.37577,505.79912 453.78398,523.94688 440.60073,539.08337 C 431.81135,549.17472 418.95329,557.14998 402.02651,563.00916 C 427.74234,569.19424 446.66322,579.81434 458.78921,594.86951 C 470.9145,609.92499 476.97732,628.84587 476.97768,651.6322 C 476.97732,670.18697 472.66417,686.8699 464.03823,701.68103 C 455.41158,716.49227 443.61146,728.211 428.63784,736.83728 C 419.36019,742.20839 405.3628,746.11463 386.64565,748.55603 C 361.74306,751.81124 345.22289,753.43884 337.08511,753.43884 L 146.16714,753.43884 L 146.16714,395.52869 z M 257.7394,535.90955 L 305.83511,535.90955 C 323.0875,535.90976 335.09107,532.93939 341.84585,526.99841 C 348.60017,521.05789 351.97744,512.47229 351.97768,501.24158 C 351.97744,490.82517 348.60017,482.68716 341.84585,476.82751 C 335.09107,470.96842 323.33164,468.03874 306.56753,468.03845 L 257.7394,468.03845 L 257.7394,535.90955 z M 257.7394,676.53455 L 314.13589,676.53455 C 333.17863,676.53462 346.60635,673.15735 354.41909,666.40271 C 362.23134,659.64825 366.13758,650.57436 366.13784,639.18103 C 366.13758,628.60173 362.27203,620.0975 354.54116,613.66833 C 346.8098,607.23944 333.26001,604.02493 313.89175,604.02478 L 257.7394,604.02478 L 257.7394,676.53455 z "
6767+ id="text2205" />
6868+ <path
6969+ style="font-size:500px;font-style:normal;font-variant:normal;font-weight:800;font-stretch:normal;text-align:start;line-height:125%;writing-mode:lr-tb;text-anchor:start;fill:#e00000;fill-opacity:1;stroke:#ffffff;stroke-width:20;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;font-family:Arial Black"
7070+ d="M 703.69272,694.35681 L 577.71616,694.35681 L 560.38217,753.43884 L 447.34506,753.43884 L 581.86655,395.52869 L 702.47202,395.52869 L 836.9935,753.43884 L 721.27084,753.43884 L 703.69272,694.35681 z M 680.49936,616.96423 L 640.94858,488.30212 L 601.64194,616.96423 L 680.49936,616.96423 z "
7171+ id="text3180" />
7272+ <path
7373+ style="font-size:500px;font-style:normal;font-variant:normal;font-weight:800;font-stretch:normal;text-align:start;line-height:125%;writing-mode:lr-tb;text-anchor:start;fill:#e00000;fill-opacity:1;stroke:#ffffff;stroke-width:20;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;font-family:Arial Black"
7474+ d="M 810.90509,641.13416 L 916.1297,634.54236 C 918.40822,651.63231 923.04689,664.65313 930.04572,673.60486 C 941.4388,688.09061 957.71482,695.33344 978.87384,695.33337 C 994.6614,695.33344 1006.8277,691.63064 1015.3729,684.22498 C 1023.9176,676.81946 1028.19,668.23386 1028.1902,658.46814 C 1028.19,649.19091 1024.121,640.89013 1015.9832,633.5658 C 1007.845,626.24171 988.96479,619.3244 959.34259,612.81384 C 910.83987,601.90905 876.25331,587.42339 855.58282,569.35681 C 834.74945,551.29061 824.33279,528.26004 824.33282,500.26501 C 824.33279,481.87337 829.66319,464.49871 840.32404,448.14099 C 850.98479,431.7839 867.01667,418.92584 888.41974,409.56677 C 909.82262,400.20841 939.16015,395.52905 976.43243,395.52869 C 1022.1679,395.52905 1057.0393,404.03327 1081.0467,421.04138 C 1105.0535,438.05017 1119.3358,465.10906 1123.8934,502.21814 L 1019.6453,508.32166 C 1016.8782,492.20864 1011.0595,480.4899 1002.1893,473.16541 C 993.31863,465.84148 981.07092,462.17937 965.44611,462.17908 C 952.58787,462.17937 942.90364,464.90561 936.39337,470.35779 C 929.88282,475.81055 926.62761,482.44303 926.62775,490.25525 C 926.62761,495.95213 929.31316,501.07908 934.68439,505.63611 C 939.89257,510.35641 952.26235,514.75094 971.79376,518.8197 C 1020.1334,529.2366 1054.7606,539.77533 1075.6756,550.43591 C 1096.59,561.09692 1111.8081,574.32119 1121.3299,590.10876 C 1130.851,605.89668 1135.6118,623.55617 1135.6121,643.08728 C 1135.6118,666.03659 1129.2641,687.19543 1116.5692,706.56384 C 1103.8735,725.93237 1086.1327,740.62148 1063.3465,750.63123 C 1040.5598,760.64099 1011.8326,765.64587 977.16486,765.64587 C 916.29234,765.64587 874.13743,753.92713 850.70001,730.48962 C 827.26248,707.05218 813.99752,677.26705 810.90509,641.13416 L 810.90509,641.13416 z "
7575+ id="text3184" />
7676+ <path
7777+ style="font-size:500px;font-style:normal;font-variant:normal;font-weight:800;font-stretch:normal;text-align:start;line-height:125%;writing-mode:lr-tb;text-anchor:start;fill:#e00000;fill-opacity:1;stroke:#ffffff;stroke-width:20;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;font-family:Arial Black"
7878+ d="M 1139.0592,395.52869 L 1435.4459,395.52869 L 1435.4459,471.9447 L 1249.899,471.9447 L 1249.899,528.82947 L 1422.0182,528.82947 L 1422.0182,601.82751 L 1249.899,601.82751 L 1249.899,672.38416 L 1440.817,672.38416 L 1440.817,753.43884 L 1139.0592,753.43884 L 1139.0592,395.52869 z "
7979+ id="text3188" />
8080+ </g>
8181+</svg>
+73
pkgs/tools/text/xml/basex/default.nix
···11+{ stdenv, fetchurl, unzip, jre, coreutils, makeDesktopItem }:
22+33+stdenv.mkDerivation rec {
44+ name = "basex-7.7";
55+66+ src = fetchurl {
77+ url = "http://files.basex.org/releases/7.7/BaseX77.zip";
88+ sha256 = "1wnndq8lcnfx29bc3j2sgswk6dxgv2nln2chmwbf7h4a05fcavdj";
99+ };
1010+1111+ buildInputs = [ unzip jre ];
1212+1313+ desktopItem = makeDesktopItem {
1414+ name = "basex";
1515+ exec = "basexgui %f";
1616+ icon = "${./basex.svg}"; # icon copied from Ubuntu basex package
1717+ comment = "Visually query and analyse your XML data";
1818+ desktopName = "BaseX XML Database";
1919+ genericName = "XML database tool";
2020+ categories = "Development;Utility;Database";
2121+ mimeType = "text/xml";
2222+ };
2323+2424+ # We're using a pre-built package
2525+ configurePhase = "true";
2626+ buildPhase = "true";
2727+ installPhase = ''
2828+ mkdir -p "$out"
2929+ cp -r * "$out"
3030+3131+ # Remove Windows batch files (unclutter $out/bin)
3232+ rm -f "$out"/bin/*.bat
3333+3434+ # Move some top-level stuff to $out/share/basex (unclutter $out)
3535+ mkdir -p "$out/share/basex"
3636+ mv "$out"/*.txt "$out/share/basex/"
3737+ mv "$out"/webapp "$out/share/basex/"
3838+3939+ # Remove empty directories
4040+ rmdir "$out/repo"
4141+ rmdir "$out/data"
4242+4343+ # Install desktop file
4444+ mkdir -p "$out/share/applications"
4545+ cp "$desktopItem"/share/applications/* "$out/share/applications/"
4646+4747+ # Use substitutions instead of wrapper scripts
4848+ for file in "$out"/bin/*; do
4949+ sed -i -e "s|/usr/bin/env bash|${stdenv.shell}|" \
5050+ -e "s|java|${jre}/bin/java|" \
5151+ -e "s|readlink|${coreutils}/bin/readlink|" \
5252+ -e "s|dirname|${coreutils}/bin/dirname|" \
5353+ -e "s|basename|${coreutils}/bin/basename|" \
5454+ -e "s|echo|${coreutils}/bin/echo|" \
5555+ "$file"
5656+ done
5757+ '';
5858+5959+ meta = with stdenv.lib; {
6060+ description = "XML database and XPath/XQuery processor";
6161+ longDescription = ''
6262+ BaseX is a very fast and light-weight, yet powerful XML database and
6363+ XPath/XQuery processor, including support for the latest W3C Full Text
6464+ and Update Recommendations. It supports large XML instances and offers a
6565+ highly interactive front-end (basexgui). Apart from two local standalone
6666+ modes, BaseX offers a client/server architecture.
6767+ '';
6868+ homepage = http://basex.org/;
6969+ license = licenses.bsd3;
7070+ platforms = platforms.linux;
7171+ maintainers = [ maintainers.bjornfor ];
7272+ };
7373+}