aboutsummaryrefslogtreecommitdiffstats
path: root/testing/mtex2mml/fix-uthash-includes.patch
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2017-03-25 17:50:54 +0100
committerJakub Jirutka <jakub@jirutka.cz>2017-03-25 18:13:54 +0100
commit9ff5cc74f2b28fa0bc9987d14d8464243462cf42 (patch)
tree53b24905fb77ccd0e0c4ac421f8a4438665da956 /testing/mtex2mml/fix-uthash-includes.patch
parentd7c1296121b59b476ec6c519800ac31782a5f192 (diff)
downloadaports-9ff5cc74f2b28fa0bc9987d14d8464243462cf42.tar.bz2
aports-9ff5cc74f2b28fa0bc9987d14d8464243462cf42.tar.xz
testing/mtex2mml: new aport
https://github.com/gjtorikian/mtex2MML A Bison grammar to convert TeX math into MathML
Diffstat (limited to 'testing/mtex2mml/fix-uthash-includes.patch')
-rw-r--r--testing/mtex2mml/fix-uthash-includes.patch102
1 files changed, 102 insertions, 0 deletions
diff --git a/testing/mtex2mml/fix-uthash-includes.patch b/testing/mtex2mml/fix-uthash-includes.patch
new file mode 100644
index 0000000000..b17649df50
--- /dev/null
+++ b/testing/mtex2mml/fix-uthash-includes.patch
@@ -0,0 +1,102 @@
+--- a/src/colors.h
++++ a/src/colors.h
+@@ -1,7 +1,7 @@
+ #ifndef COLORS_H
+ #define COLORS_H
+
+-#include "../deps/uthash/uthash.h"
++#include "uthash.h"
+
+ #ifdef __cplusplus
+ extern "C" {
+--- a/src/em.c
++++ a/src/em.c
+@@ -2,7 +2,7 @@
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include "string_dup.h"
+-#include "../deps/uthash/utstring.h"
++#include "utstring.h"
+
+ float mtex2MML_extract_number_from_pxstring(char * str)
+ {
+--- a/src/environment.h
++++ a/src/environment.h
+@@ -1,8 +1,8 @@
+ #ifndef ENVIRONMENT_H
+ #define ENVIRONMENT_H
+
+-#include "../deps/uthash/uthash.h"
+-#include "../deps/uthash/utarray.h"
++#include "uthash.h"
++#include "utarray.h"
+
+ #ifdef __cplusplus
+ extern "C" {
+--- a/src/main.c
++++ a/src/main.c
+@@ -1,7 +1,7 @@
+ #include <string.h>
+ #include <stdio.h>
+ #include "mtex2MML.h"
+-#include "../deps/uthash/utstring.h"
++#include "utstring.h"
+
+ int main (int argc, char ** argv)
+ {
+--- a/src/parser.y
++++ a/src/parser.y
+@@ -13,7 +13,7 @@
+ #include "string_extras.h"
+
+ #include "string_dup.h"
+-#include "../deps/uthash/uthash.h"
++#include "uthash.h"
+
+ struct css_colors *colors = NULL;
+
+--- a/src/string_extras.h
++++ a/src/string_extras.h
+@@ -3,7 +3,7 @@
+ #ifndef STRING_EXTRAS_H
+ #define STRING_EXTRAS_H
+
+-#include "../deps/uthash/utstring.h"
++#include "utstring.h"
+
+ /* all for str_replace */
+ #include <stdio.h>
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -56,8 +56,8 @@
+ # Find required dependencies
+ #
+ #
+-include_directories(src deps ${CMAKE_CURRENT_BINARY_DIR})
++include_directories(src ${CMAKE_CURRENT_BINARY_DIR})
+
+ find_package(BISON REQUIRED)
+ find_package(FLEX REQUIRED)
+ find_library(M_LIB m) # only necessary for true *nix systems
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -80,7 +80,7 @@
+ #
+
+ # Collect sourcefiles, exclude main.c from libraries
+-file(GLOB SRC_H ${CMAKE_CURRENT_SOURCE_DIR}/src/*.h deps/uthash/*.h)
++file(GLOB SRC_H ${CMAKE_CURRENT_SOURCE_DIR}/src/*.h)
+ file(GLOB SRC_MTEX2MML ${CMAKE_CURRENT_SOURCE_DIR}/src/*.c)
+ list(REMOVE_ITEM SRC_MTEX2MML "${CMAKE_CURRENT_SOURCE_DIR}/src/main.c")
+
+--- a/deps/uthash/utarray.h
++++ b/deps/uthash/utarray.h
+@@ -37,7 +37,7 @@
+ #include <stddef.h> /* size_t */
+ #include <string.h> /* memset, etc */
+ #include <stdlib.h> /* exit */
+-#include "../../src/string_dup.h"
++#include "string_dup.h"
+
+ #ifndef oom
+ #define oom() exit(-1)