From: Markos Chandras <markos.chandras@gmail.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH] vim: Add option to remove documentation from target
Date: Tue, 12 Feb 2013 10:14:55 +0000 [thread overview]
Message-ID: <1360664095-16562-1-git-send-email-markos.chandras@gmail.com> (raw)
From: Markos Chandras <markos.chandras@imgtec.com>
Signed-off-by: Markos Chandras <markos.chandras@imgtec.com>
---
package/vim/Config.in | 8 ++++++++
package/vim/vim.mk | 8 ++++++++
2 files changed, 16 insertions(+), 0 deletions(-)
diff --git a/package/vim/Config.in b/package/vim/Config.in
index 891715e..28e34b5 100644
--- a/package/vim/Config.in
+++ b/package/vim/Config.in
@@ -14,3 +14,11 @@ config BR2_PACKAGE_VIM_RUNTIME
help
Install VIM runtime (syntax highlighing + macros).
This option adds about 15MB of data to /usr/share/
+
+config BR2_PACKAGE_VIM_REMOVE_DOCS
+ bool "remove documentation"
+ default y
+ depends on BR2_PACKAGE_VIM
+ help
+ Remove documentation files from the target.
+ This option removes about 5.6MB of data from /usr/share/
diff --git a/package/vim/vim.mk b/package/vim/vim.mk
index fa5f8ae..d199d9b 100644
--- a/package/vim/vim.mk
+++ b/package/vim/vim.mk
@@ -36,8 +36,16 @@ define VIM_INSTALL_RUNTIME_CMDS
$(MAKE) DESTDIR=$(TARGET_DIR) installmacros
endef
+define VIM_REMOVE_DOCS
+ find $(TARGET_DIR)/usr/share/vim -type f -name "*.txt" -delete
+endef
+
ifeq ($(BR2_PACKAGE_VIM_RUNTIME),y)
VIM_POST_INSTALL_TARGET_HOOKS += VIM_INSTALL_RUNTIME_CMDS
endif
+ifeq ($(BR2_PACKAGE_VIM_REMOVE_DOCS),y)
+VIM_POST_INSTALL_TARGET_HOOKS += VIM_REMOVE_DOCS
+endif
+
$(eval $(autotools-package))
--
1.7.1
next reply other threads:[~2013-02-12 10:14 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-02-12 10:14 Markos Chandras [this message]
2013-02-12 10:30 ` [Buildroot] [PATCH] vim: Add option to remove documentation from target Thomas Petazzoni
2013-02-12 10:35 ` Markos Chandras
2013-02-12 10:37 ` Thomas Petazzoni
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1360664095-16562-1-git-send-email-markos.chandras@gmail.com \
--to=markos.chandras@gmail.com \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox