pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/flim (devel/flim) sting-to-int is obsolete funct...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/416b667a38cf
branches:  trunk
changeset: 452458:416b667a38cf
user:      mef <mef%pkgsrc.org@localhost>
date:      Tue May 11 02:05:07 2021 +0000

description:
(devel/flim) sting-to-int is obsolete function since emacs-26

diffstat:

 devel/flim/Makefile                    |   4 ++--
 devel/flim/distinfo                    |   3 ++-
 devel/flim/patches/patch-mime-parse.el |  24 ++++++++++++++++++++++++
 3 files changed, 28 insertions(+), 3 deletions(-)

diffs (56 lines):

diff -r 5b2a98d0106a -r 416b667a38cf devel/flim/Makefile
--- a/devel/flim/Makefile       Tue May 11 01:27:51 2021 +0000
+++ b/devel/flim/Makefile       Tue May 11 02:05:07 2021 +0000
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.40 2019/11/03 10:39:11 rillig Exp $
+# $NetBSD: Makefile,v 1.41 2021/05/11 02:05:07 mef Exp $
 
 DISTNAME=      flim-1.14.9
 PKGNAME=       ${EMACS_PKGNAME_PREFIX}${DISTNAME}
-PKGREVISION=   3
+PKGREVISION=   4
 CATEGORIES=    devel
 MASTER_SITES=  http://www.kanji.zinbun.kyoto-u.ac.jp/~tomo/comp/emacsen/lisp/flim/flim-1.14/
 
diff -r 5b2a98d0106a -r 416b667a38cf devel/flim/distinfo
--- a/devel/flim/distinfo       Tue May 11 01:27:51 2021 +0000
+++ b/devel/flim/distinfo       Tue May 11 02:05:07 2021 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.11 2015/11/03 03:27:26 agc Exp $
+$NetBSD: distinfo,v 1.12 2021/05/11 02:05:07 mef Exp $
 
 SHA1 (flim-1.14.9.tar.gz) = fc3f1ecfa757d83b10693dc74d890a1ad7db7abd
 RMD160 (flim-1.14.9.tar.gz) = d7fb99ffabe477afd958589e8e386b7d4e628822
@@ -6,3 +6,4 @@
 Size (flim-1.14.9.tar.gz) = 182065 bytes
 SHA1 (patch-ab) = 3818258269cb432cb95fe02e22ed03f98400e31f
 SHA1 (patch-ac) = 62c3df484e393f798f16200a0970e7d7ea37b308
+SHA1 (patch-mime-parse.el) = 40d7a44a177a5407465fec9700e7b00fe6973d5b
diff -r 5b2a98d0106a -r 416b667a38cf devel/flim/patches/patch-mime-parse.el
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/flim/patches/patch-mime-parse.el    Tue May 11 02:05:07 2021 +0000
@@ -0,0 +1,24 @@
+$NetBSD: patch-mime-parse.el,v 1.1 2021/05/11 02:05:07 mef Exp $
+
+sting-to-int is obsolete function since emacs-26
+
+--- mime-parse.el.orig 2005-07-06 11:09:04.000000000 +0900
++++ mime-parse.el      2021-05-11 10:55:39.987654397 +0900
+@@ -97,7 +97,7 @@ be the result."
+     (insert text)
+     (goto-char (point-min))
+     (while (re-search-forward "%[0-9A-Fa-f][0-9A-Fa-f]" nil t)
+-      (insert (prog1 (string-to-int
++      (insert (prog1 (string-to-number
+                     (buffer-substring (point)(- (point) 2))
+                     16)
+                 (delete-region (point)(- (point) 3)))))
+@@ -147,7 +147,7 @@ property of the decoded-value."
+           (let* ((attribute (downcase
+                            (substring (car params) 0 (match-end 1))))
+                  (section (if (match-beginning 2)
+-                            (string-to-int
++                            (string-to-number
+                              (substring (car params)
+                                         (1+ (match-beginning 2))
+                                         (match-end 2)))



Home | Main Index | Thread Index | Old Index