summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorclsung <clsung@FreeBSD.org>2007-04-26 03:18:44 +0000
committerclsung <clsung@FreeBSD.org>2007-04-26 03:18:44 +0000
commit6431189efacf7e7da8eddf3c250e4b2cda5c8ad1 (patch)
treed1b56814146ed4b52c11515fbfe044b1902d7f1f
parent5386cb4cf9e637fffea72787efc390fcd09bd6e5 (diff)
downloadFreeBSD-ports-6431189efacf7e7da8eddf3c250e4b2cda5c8ad1.zip
FreeBSD-ports-6431189efacf7e7da8eddf3c250e4b2cda5c8ad1.tar.gz
- Update to 0.17.1
- FreeBSD currently lacks of 'newlocale/freelocale/strftime_l' support, so patch it.
-rw-r--r--textproc/libmrss/Makefile2
-rw-r--r--textproc/libmrss/distinfo6
-rw-r--r--textproc/libmrss/files/patch-src-mrss_free.c12
-rw-r--r--textproc/libmrss/files/patch-src-mrss_parser.c18
4 files changed, 34 insertions, 4 deletions
diff --git a/textproc/libmrss/Makefile b/textproc/libmrss/Makefile
index 632cbe5..3776841 100644
--- a/textproc/libmrss/Makefile
+++ b/textproc/libmrss/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME= libmrss
-PORTVERSION= 0.17
+PORTVERSION= 0.17.1
CATEGORIES= textproc
MASTER_SITES= http://www2.autistici.org/bakunin/libmrss/
diff --git a/textproc/libmrss/distinfo b/textproc/libmrss/distinfo
index 0721bf1..2709fe9 100644
--- a/textproc/libmrss/distinfo
+++ b/textproc/libmrss/distinfo
@@ -1,3 +1,3 @@
-MD5 (libmrss-0.17.tar.gz) = 28d0e78d736748e67f25ad99456f10c3
-SHA256 (libmrss-0.17.tar.gz) = 9bccf1240ce9317510eb860e7fcd387be2ddc73adc14451d679a6a7358383772
-SIZE (libmrss-0.17.tar.gz) = 350250
+MD5 (libmrss-0.17.1.tar.gz) = bc6f32759db02cf32a83640d74fb9993
+SHA256 (libmrss-0.17.1.tar.gz) = cfa9b2d0f9b87a7a524abe149e7207adf86c077749c907342df63126a7ec292d
+SIZE (libmrss-0.17.1.tar.gz) = 350524
diff --git a/textproc/libmrss/files/patch-src-mrss_free.c b/textproc/libmrss/files/patch-src-mrss_free.c
new file mode 100644
index 0000000..9bd86ca
--- /dev/null
+++ b/textproc/libmrss/files/patch-src-mrss_free.c
@@ -0,0 +1,12 @@
+--- src/mrss_free.c.orig Mon Apr 2 20:54:41 2007
++++ src/mrss_free.c Thu Apr 26 10:59:50 2007
+@@ -202,9 +202,6 @@
+ __mrss_free_item ((mrss_item_t *) old);
+ }
+
+- if (mrss->c_locale)
+- freelocale (mrss->c_locale);
+-
+ if (mrss->allocated)
+ free (mrss);
+ }
diff --git a/textproc/libmrss/files/patch-src-mrss_parser.c b/textproc/libmrss/files/patch-src-mrss_parser.c
new file mode 100644
index 0000000..4e4bf30
--- /dev/null
+++ b/textproc/libmrss/files/patch-src-mrss_parser.c
@@ -0,0 +1,18 @@
+--- src/mrss_parser.c.orig Mon Apr 2 20:55:34 2007
++++ src/mrss_parser.c Thu Apr 26 10:57:53 2007
+@@ -151,12 +151,9 @@
+ char datebuf[256];
+ stm.tm_year -= 1900;
+
+- if (!data->c_locale
+- && !(data->c_locale = newlocale (LC_ALL_MASK, "C", NULL)))
+- return NULL;
+-
+- strftime_l (datebuf, sizeof (datebuf), "%a, %d %b %Y %H:%M:%S %z", &stm,
+- data->c_locale);
++ free (datestr);
++ strftime (datebuf, sizeof (datebuf), "%a, %d %b %Y %H:%M:%S %z",
++ &stm);
+
+ return strdup (datebuf);
+ }
OpenPOWER on IntegriCloud