From 8b3524ceb66de7309669b8415f7371a653b4bd24 Mon Sep 17 00:00:00 2001 From: Daniel Gnoutcheff Date: Wed, 1 Apr 2015 00:22:42 -0400 Subject: [PATCH] Add nano syntax highlighting definitions RescueOS v1.1 included syntax highlighting definitions for nano. Patch buildroot's nano package to have it install these files from nano's source. --- .../nano-add-syntax-highlighting.patch | 19 +++++++++++++++++++ buildroot-patches/series | 1 + 2 files changed, 20 insertions(+) create mode 100644 buildroot-patches/nano-add-syntax-highlighting.patch diff --git a/buildroot-patches/nano-add-syntax-highlighting.patch b/buildroot-patches/nano-add-syntax-highlighting.patch new file mode 100644 index 0000000..ab1edc2 --- /dev/null +++ b/buildroot-patches/nano-add-syntax-highlighting.patch @@ -0,0 +1,19 @@ +Index: buildroot-2013.02/package/nano/nano.mk +=================================================================== +--- buildroot-2013.02.orig/package/nano/nano.mk 2015-03-31 20:35:07.000000000 -0400 ++++ buildroot-2013.02/package/nano/nano.mk 2015-03-31 21:29:58.000000000 -0400 +@@ -18,10 +18,14 @@ + + define NANO_INSTALL_TARGET_CMDS + $(INSTALL) -m 0755 $(@D)/src/nano $(TARGET_DIR)/usr/bin/nano ++ mkdir -p $(TARGET_DIR)/usr/share/nano ++ $(INSTALL) -t $(TARGET_DIR)/usr/share/nano -m 0644 \ ++ $(@D)/doc/syntax/*.nanorc + endef + + define NANO_UNINSTALL_TARGET_CMDS + rm -f $(TARGET_DIR)/usr/bin/nano ++ rm -rf $(TARGET_DIR)/usr/share/nano + endef + + $(eval $(autotools-package)) diff --git a/buildroot-patches/series b/buildroot-patches/series index 1050f2e..ffd17d4 100644 --- a/buildroot-patches/series +++ b/buildroot-patches/series @@ -1,3 +1,4 @@ gcc46-avoid-segfault.patch linux-firmware-version-bump.patch linux-firmware-wl1251.patch +nano-add-syntax-highlighting.patch