diff --git a/network/newsbeuter/json-c.diff b/network/newsbeuter/json-c.diff new file mode 100644 index 0000000000..49d5a5bc89 --- /dev/null +++ b/network/newsbeuter/json-c.diff @@ -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; + diff --git a/network/newsbeuter/newsbeuter.SlackBuild b/network/newsbeuter/newsbeuter.SlackBuild index 423f2b3456..5fb4e8a2d2 100644 --- a/network/newsbeuter/newsbeuter.SlackBuild +++ b/network/newsbeuter/newsbeuter.SlackBuild @@ -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 \