================================ djvulibre:source=3.5.21_p20090103-2 (previous: 3.5.21_p20090103-1) cvc rdiff djvulibre -1 /weasel.rpath.org@wgl:3-devel/3.5.21_p20090103-2 ================================ 3.5.21_p20090103-2 Filip Brcic (brcha@xxxxxxx) Mon Jan 11 07:53:02 2010 fixed recipe, buildreqs & metadata djvulibre.recipe: changed Index: djvulibre.recipe ==================================================================== contents(size sha1) inode(mtime) --- djvulibre.recipe /weasel.rpath.org@wgl:3-devel/3.5.21_p20090103-1 +++ djvulibre.recipe /weasel.rpath.org@wgl:3-devel/3.5.21_p20090103-2 @@ -1,5 +1,5 @@ # -# Copyright (c) 2008-2009 Filip Brcic <brcha@xxxxxxx> +# Copyright (c) 2008-2010 Filip Brcic <brcha@xxxxxxx> # Distributed under the terms of the GNU General Public License v3 # @@ -8,15 +8,18 @@ version = '3.5.21_p20090103' buildRequires = [ - 'libICE:devel', 'libjpeg:devel', 'libstdc++:devel', 'libtiff:devel', - 'xextproto:devel', + 'libICE:devel', 'libjpeg:devel', 'libstdc++:devel', + 'libtiff:devel', 'xextproto:devel', + 'shared-mime-info:runtime', 'xdg-utils:runtime' ] + shortDesc = 'DjVu library and tools' + longDesc = 'DjVu file format viewers, encoders and utilities.' + url = 'http://djvu.sourceforge.net' + licenses = [ 'GPL-2' ] + categories = [ 'Applications/Text' ] + def unpack(r): - r.Description(shortDesc='DjVu library and tools', - longDesc='DjVu file format viewers, encoders and utilities.') - r.PackageURL('http://djvu.sourceforge.net') - r.Licenses('GPL-2') if r.version.find('_p') == -1: # Go for standard djvu version r.addArchive('mirror://sourceforge/djvu/') @@ -26,27 +29,24 @@ r.disableParallelMake() - r.extraConfig = ' --disable-djview' + def configure(r): + r.Configure( + ' --disable-desktopfiles' + ' --without-qt' + ' --enable-xmltools' + ' --with-jpeg' + ' --with-tiff' + ' --enable-i18n' + ) - if Arch.x86_64: - # First build 32bit version - macros32 = r.macros.copy() - macros32.cc = '"gcc -m32"' - macros32.cxx = '"g++ -m32"' - macros32.libdir = '%(prefix)s/lib' - - r.Run('cp -a %(builddir)s %(builddir)s/../32bit') - - r.Configure(r.extraConfig, dir='../32bit', overrideMacros=macros32, - preConfigure='USE_ARCH=32') - r.Make(dir='../32bit', overrideMacros=macros32, preMake='USE_ARCH=32') - r.MakeInstall('plugindir=%(prefix)s/lib/nsplugins', - dir='../32bit', overrideMacros=macros32, preMake='USE_ARCH=32') - - r.NormalizePkgConfig(exceptions='.*') - - def configure(r): - r.Configure(r.extraConfig) + r.Replace('nsdejavu', '', 'gui/Makefile') def makeinstall(r): r.MakeInstall('plugindir=%(libdir)s/nsplugins') + + for size in [ '22', '32', '48', ]: + r.Install('desktopfiles/hi%s-djvu.png' % size, + '%(datadir)s/icons/hicolor/' + + ('%sx%s/mimetypes/image-vnd.djvu.png' % (size, size))) + r.Install('desktopfiles/djvulibre-mime.xml', + '%(datadir)s/mime/packages/') Committed by: brcha