network/newsbeuter: Added a patch for the newer json-c.

Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
This commit is contained in:
Benjamin Trigona-Harany 2012-12-28 06:46:36 +01:00 committed by Matteo Bernardini
parent 17243302b7
commit a1cbe548c7
2 changed files with 16 additions and 1 deletions

View file

@ -0,0 +1,12 @@
diff -Nur newsbeuter-2.5.a/src/ttrss_api.cpp newsbeuter-2.5.b/src/ttrss_api.cpp
--- newsbeuter-2.5.a/src/ttrss_api.cpp 2012-01-06 06:41:13.000000000 -0800
+++ newsbeuter-2.5.b/src/ttrss_api.cpp 2012-12-24 20:08:35.505897356 -0800
@@ -220,7 +220,7 @@
const char * link = json_object_get_string(json_object_object_get(item_obj, "link"));
const char * content = json_object_get_string(json_object_object_get(item_obj, "content"));
time_t updated = (time_t)json_object_get_int(json_object_object_get(item_obj, "updated"));
- boolean unread = json_object_get_boolean(json_object_object_get(item_obj, "unread"));
+ bool unread = json_object_get_boolean(json_object_object_get(item_obj, "unread"));
rsspp::item item;

View file

@ -7,7 +7,7 @@
PRGNAM=newsbeuter
VERSION=${VERSION:-2.5}
BUILD=${BUILD:-1}
BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
case "$( uname -m )" in
@ -50,7 +50,10 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 \
-o -perm 400 \) -exec chmod 644 {} \;
# patch for GCC header changes
patch -p1 --verbose < $CWD/unistd.diff
# patch for json-c api change
patch -p1 --verbose < $CWD/json-c.diff
CXXFLAGS="$SLKCFLAGS" \
make \