Codebase list gdk-pixbuf / 8513073
* Move the mime.cache generation from gtk+ udebs to this one, since this file is actually needed for gdk_pixbuf. * Add related build-dependencies on shared-mime-info and xsltproc. git-svn-id: file:///svn/pkg-gnome/desktop/unstable/gdk-pixbuf@27378 db0db5de-e4c8-0310-9441-90abf70311f7 Josselin Mouette 13 years ago
5 changed file(s) with 56 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
0 gdk-pixbuf (2.23.3-3) unstable; urgency=low
1
2 * Move the mime.cache generation from gtk+ udebs to this one, since
3 this file is actually needed for gdk_pixbuf.
4 * Add related build-dependencies on shared-mime-info and xsltproc.
5
6 -- Josselin Mouette <joss@debian.org> Sun, 10 Apr 2011 18:04:19 +0200
7
08 gdk-pixbuf (2.23.3-2) unstable; urgency=low
19
210 * Upload to unstable.
66 Section: libs
77 Priority: optional
88 Maintainer: Debian GNOME Maintainers <pkg-gnome-maintainers@lists.alioth.debian.org>
9 Uploaders: Emilio Pozuelo Monfort <pochu@debian.org>, Laurent Bigonville <bigon@debian.org>, Sebastian Dröge <slomo@debian.org>
9 Uploaders: Emilio Pozuelo Monfort <pochu@debian.org>, Josselin Mouette <joss@debian.org>, Laurent Bigonville <bigon@debian.org>, Sebastian Dröge <slomo@debian.org>
1010 Build-Depends: cdbs (>= 0.4.90~),
1111 debhelper (>= 7),
1212 autotools-dev,
1919 libtiff4-dev,
2020 gobject-introspection (>= 0.9.12-4~),
2121 libgirepository1.0-dev (>= 0.9.3),
22 gir1.2-glib-2.0
22 gir1.2-glib-2.0,
23 xsltproc,
24 shared-mime-info
2325 Standards-Version: 3.9.1
2426 Homepage: http://www.gtk.org/
2527 Vcs-Svn: svn://svn.debian.org/svn/pkg-gnome/desktop/unstable/gdk-pixbuf/
1414 libtiff4-dev,
1515 gobject-introspection (>= 0.9.12-4~),
1616 libgirepository1.0-dev (>= 0.9.3),
17 gir1.2-glib-2.0
17 gir1.2-glib-2.0,
18 xsltproc,
19 shared-mime-info
1820 Standards-Version: 3.9.1
1921 Homepage: http://www.gtk.org/
2022 Vcs-Svn: svn://svn.debian.org/svn/pkg-gnome/desktop/unstable/gdk-pixbuf/
0 <?xml version="1.0"?>
1 <xsl:stylesheet version="1.0"
2 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
3 xmlns:smi="http://www.freedesktop.org/standards/shared-mime-info">
4
5 <!--
6 Since a namespace is declared in the XML document, this stylesheet
7 needs to declare it as well to be able to match the various elements,
8 that's why there's xmlns:smi above, and smi:mime-* below.
9 -->
10
11 <!-- Identity template. -->
12 <xsl:template match="@*|node()">
13 <xsl:copy>
14 <xsl:apply-templates select="@*|node()"/>
15 </xsl:copy>
16 </xsl:template>
17
18 <!-- Remove unneeded elements. -->
19 <xsl:template match='smi:mime-type[@type!="image/png"]' />
20
21 <!-- Avoid plenty of empty lines. -->
22 <xsl:strip-space elements="smi:mime-info" />
23
24 </xsl:stylesheet>
1616 debian/libgdk-pixbuf2.0-0-udeb/usr/lib/gdk-pixbuf-2.0/2.10.0/loaders/*.so \
1717 | sed 's;$(CURDIR)/debian/libgdk-pixbuf2.0-0-udeb;;g' \
1818 > debian/libgdk-pixbuf2.0-0-udeb/usr/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache
19
20 # temporary directory for the minimal MIME cache generation
21 mimedir = debian/build-mime
22 mimexml = /usr/share/mime/packages/freedesktop.org.xml
23
24 clean::
25 rm -rf $(mimedir)
26
27 binary-install/libgdk-pixbuf2.0-0-udeb::
28 # generate a minimal MIME cache for the udeb
29 mkdir -p $(mimedir)/packages
30 [ -f $(mimexml) ]
31 xsltproc -nonet debian/keep-png-only.xsl $(mimexml) \
32 > $(mimedir)/packages/png.freedesktop.org.xml
33 update-mime-database $(mimedir)
34 dh_install -plibgdk-pixbuf2.0-0-udeb $(mimedir)/mime.cache usr/share/mime