sci-visualization/gwyddion: Fix generated mime data
authorAndreas K. Hüttel <dilfridge@gentoo.org>
Tue, 28 Jan 2020 00:07:46 +0000 (01:07 +0100)
committerAndreas K. Hüttel <dilfridge@gentoo.org>
Tue, 28 Jan 2020 00:08:40 +0000 (01:08 +0100)
Patch backported from upstream trunk

Closes: https://bugs.gentoo.org/706790
Package-Manager: Portage-2.3.85, Repoman-2.3.20
Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
sci-visualization/gwyddion/files/gwyddion-2.55-mime.patch [new file with mode: 0644]
sci-visualization/gwyddion/gwyddion-2.55-r2.ebuild [moved from sci-visualization/gwyddion/gwyddion-2.55-r1.ebuild with 97% similarity]

diff --git a/sci-visualization/gwyddion/files/gwyddion-2.55-mime.patch b/sci-visualization/gwyddion/files/gwyddion-2.55-mime.patch
new file mode 100644 (file)
index 0000000..536790c
--- /dev/null
@@ -0,0 +1,15 @@
+Index: gwyddion/modules/file/ambprofile.c
+===================================================================
+--- gwyddion/modules/file/ambprofile.c (revision 22650)
++++ gwyddion/modules/file/ambprofile.c (revision 22651)
+@@ -32,8 +32,8 @@
+  *   <comment>Ambios XML profile data</comment>
+  *   <magic priority="80">
+  *     <match type="string" offset="0" value="&lt;?xml">
+- *       <match type="string" offset="40:120" value="<ProfilometerData>">
+- *          <match type="string" offset="60:140" value="<Header>"/>
++ *       <match type="string" offset="40:120" value="&lt;ProfilometerData&gt;">
++ *          <match type="string" offset="60:140" value="&lt;Header&gt;"/>
+  *       </match>
+  *     </match>
+  *   </magic>
similarity index 97%
rename from sci-visualization/gwyddion/gwyddion-2.55-r1.ebuild
rename to sci-visualization/gwyddion/gwyddion-2.55-r2.ebuild
index 7029da852fcc83b6568ce96ac64903dbf1497463..af6b46015063a533baea33f2d6320f629ecbd1b5 100644 (file)
@@ -38,6 +38,7 @@ DEPEND="${RDEPEND}
 
 PATCHES=(
        "${FILESDIR}/${PN}-2.55-automagic.patch"
+       "${FILESDIR}/${PN}-2.55-mime.patch"
 )
 
 src_prepare() {