Added patch to enable /etc/vimrc and /etc/gvimrc. Also fixed patch loop.
This commit is contained in:
11
Makefile
11
Makefile
@@ -8,12 +8,12 @@
|
|||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
# GNU General Public License for more details.
|
# GNU General Public License for more details.
|
||||||
|
|
||||||
DEPENDS =
|
DEPENDS = acl,attr,glibc,ncurses
|
||||||
ARCH = x86_64
|
ARCH = x86_64
|
||||||
URL = http://www.vim.org/
|
URL = http://www.vim.org/
|
||||||
DESC = Vim is an advanced text editor that seeks to provide the power of \
|
DESC = Vim is an advanced text editor that seeks to provide the power of \
|
||||||
the de-facto Unix editor 'Vi', with a more complete feature set.
|
the de-facto Unix editor 'Vi', with a more complete feature set.
|
||||||
SNAPVER = sr0
|
SNAPVER = sr2
|
||||||
|
|
||||||
ARCHIVE := $(PWD)/SRC/$(shell ls SRC|egrep '(bz2|gz|tar|xz)$$'|tail -1)
|
ARCHIVE := $(PWD)/SRC/$(shell ls SRC|egrep '(bz2|gz|tar|xz)$$'|tail -1)
|
||||||
TYPE := $(shell file -ib $(ARCHIVE)|cut -d';' -f1|tr -d '\n')
|
TYPE := $(shell file -ib $(ARCHIVE)|cut -d';' -f1|tr -d '\n')
|
||||||
@@ -44,9 +44,10 @@ $(SRCDIR)/configure: $(ARCHIVE)
|
|||||||
@touch $(SRCDIR)/configure
|
@touch $(SRCDIR)/configure
|
||||||
|
|
||||||
$(SRCDIR)/src/auto/config.log: $(SRCDIR)/configure
|
$(SRCDIR)/src/auto/config.log: $(SRCDIR)/configure
|
||||||
@if [ -f $(PATCHDIR)/*.patch ]; then \
|
@cd $(SRCDIR) && \
|
||||||
cd $(SRCDIR) && cat $(PATCHDIR)/*.patch|patch --verbose -Np1; \
|
for patch in `find $(PATCHDIR) -name \*.patch|sort`; do \
|
||||||
fi
|
patch --verbose -Np1 -i $$patch; \
|
||||||
|
done
|
||||||
@cd $(SRCDIR); \
|
@cd $(SRCDIR); \
|
||||||
./configure \
|
./configure \
|
||||||
--prefix=/usr \
|
--prefix=/usr \
|
||||||
|
|||||||
18
SRC/patches/01_global_vimrc.patch
Normal file
18
SRC/patches/01_global_vimrc.patch
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
diff -Naur a/src/feature.h b/src/feature.h
|
||||||
|
--- a/src/feature.h 2016-09-06 14:18:24.000000000 -0500
|
||||||
|
+++ b/src/feature.h 2016-10-23 05:47:56.716000000 -0500
|
||||||
|
@@ -933,12 +933,12 @@
|
||||||
|
/*
|
||||||
|
* SYS_VIMRC_FILE Name of the system-wide .vimrc file.
|
||||||
|
*/
|
||||||
|
-/* #define SYS_VIMRC_FILE "/etc/vimrc" */
|
||||||
|
+#define SYS_VIMRC_FILE "/etc/vimrc"
|
||||||
|
|
||||||
|
/*
|
||||||
|
* SYS_GVIMRC_FILE Name of the system-wide .gvimrc file.
|
||||||
|
*/
|
||||||
|
-/* #define SYS_GVIMRC_FILE "/etc/gvimrc" */
|
||||||
|
+#define SYS_GVIMRC_FILE "/etc/gvimrc"
|
||||||
|
|
||||||
|
/*
|
||||||
|
* DFLT_HELPFILE Name of the help file.
|
||||||
Reference in New Issue
Block a user