* 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
|
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 |
|
0 | 8 |
gdk-pixbuf (2.23.3-2) unstable; urgency=low
|
1 | 9 |
|
2 | 10 |
* Upload to unstable.
|
6 | 6 |
Section: libs
|
7 | 7 |
Priority: optional
|
8 | 8 |
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>
|
10 | 10 |
Build-Depends: cdbs (>= 0.4.90~),
|
11 | 11 |
debhelper (>= 7),
|
12 | 12 |
autotools-dev,
|
|
19 | 19 |
libtiff4-dev,
|
20 | 20 |
gobject-introspection (>= 0.9.12-4~),
|
21 | 21 |
libgirepository1.0-dev (>= 0.9.3),
|
22 | |
gir1.2-glib-2.0
|
|
22 |
gir1.2-glib-2.0,
|
|
23 |
xsltproc,
|
|
24 |
shared-mime-info
|
23 | 25 |
Standards-Version: 3.9.1
|
24 | 26 |
Homepage: http://www.gtk.org/
|
25 | 27 |
Vcs-Svn: svn://svn.debian.org/svn/pkg-gnome/desktop/unstable/gdk-pixbuf/
|
14 | 14 |
libtiff4-dev,
|
15 | 15 |
gobject-introspection (>= 0.9.12-4~),
|
16 | 16 |
libgirepository1.0-dev (>= 0.9.3),
|
17 | |
gir1.2-glib-2.0
|
|
17 |
gir1.2-glib-2.0,
|
|
18 |
xsltproc,
|
|
19 |
shared-mime-info
|
18 | 20 |
Standards-Version: 3.9.1
|
19 | 21 |
Homepage: http://www.gtk.org/
|
20 | 22 |
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>
|
16 | 16 |
debian/libgdk-pixbuf2.0-0-udeb/usr/lib/gdk-pixbuf-2.0/2.10.0/loaders/*.so \
|
17 | 17 |
| sed 's;$(CURDIR)/debian/libgdk-pixbuf2.0-0-udeb;;g' \
|
18 | 18 |
> 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
|