vim and deps in main

This commit is contained in:
Ertuğrul Erata
2015-07-22 22:27:50 +03:00
parent 4cb44ea35f
commit e7e46456cd
29 changed files with 5874 additions and 0 deletions
+42
View File
@@ -0,0 +1,42 @@
" Vim plugin
" Purpose: Intelligently create content for PISI's action.py files
" Author: A. Murat Eren
" Copyright: Copyright (c) 2005 A. Murat Eren & S. Çağlar Onur
" Licence: You may redistribute this under the terms of the GNU GPL v2..
if &compatible || v:version < 603
finish
endif
fun! MakeNewActionsPY()
set nopaste
0 put = '# -*- coding: utf-8 -*-'
put = '#'
put = '# Copyright 2011 TUBITAK/BILGEM'
put = '# Licensed under the GNU General Public License, version 2.'
put = '# See the file http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt'
put = ''
put = 'from pisi.actionsapi import autotools'
put = 'from pisi.actionsapi import pisitools'
put = 'from pisi.actionsapi import get'
put = ''
put = 'def setup():'
put = ' pass'
put = ''
put = 'def build():'
put = ' pass'
put = ''
put = 'def install():'
put = ' pass'
14
endfun
com! -nargs=0 NewActionsPY call MakeNewActionsPY()
augroup NewActionsPY
au!
autocmd BufNewFile actions.py call MakeNewActionsPY()
augroup END
" vim: set et foldmethod=marker : "
@@ -0,0 +1,11 @@
diff -Nur vim72-old/runtime/filetype.vim vim72/runtime/filetype.vim
--- vim72-old/runtime/filetype.vim 2008-10-18 01:14:23.000000000 +0300
+++ vim72/runtime/filetype.vim 2008-10-18 01:15:01.000000000 +0300
@@ -1677,6 +1677,7 @@
" Shell scripts (sh, ksh, bash, bash2, csh); Allow .profile_foo etc.
" Gentoo ebuilds are actually bash scripts
au BufNewFile,BufRead .bashrc*,bashrc,bash.bashrc,.bash_profile*,.bash_logout*,*.bash,*.ebuild call SetFileTypeSH("bash")
+au BufNewFile,BufRead */etc/bash*completion*/* call SetFileTypeSH("bash")
au BufNewFile,BufRead .kshrc*,*.ksh call SetFileTypeSH("ksh")
au BufNewFile,BufRead /etc/profile,.profile*,*.sh,*.env call SetFileTypeSH(getline(1))
@@ -0,0 +1,12 @@
diff -Nur vim72-old/runtime/syntax/grub.vim vim72/runtime/syntax/grub.vim
--- vim72-old/runtime/syntax/grub.vim 2008-10-18 01:14:23.000000000 +0300
+++ vim72/runtime/syntax/grub.vim 2008-10-18 01:18:04.000000000 +0300
@@ -27,7 +27,7 @@
syn cluster grubCommands contains=grubCommand,grubTitleCommand
-syn keyword grubCommand contained default fallback hiddenmenu timeout
+syn keyword grubCommand contained default fallback hiddenmenu timeout splashimage background gfxmenu
syn keyword grubTitleCommand contained title nextgroup=grubTitle skipwhite
+75
View File
@@ -0,0 +1,75 @@
if &compatible || v:version < 603
finish
endif
fun! MakeNewPSPEC()
set nopaste
0 put = '<?xml version=\"1.0\" ?>'
put = '<!DOCTYPE PISI SYSTEM \"http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd\">'
put = '<PISI>'
put = ' <Source>'
put = ' <Name></Name>'
put = ' <Homepage>http://</Homepage>'
put = ' <Packager>'
put = ' <Name></Name>'
put = ' <Email></Email>'
put = ' </Packager>'
put = ' <License>GPLv2</License>'
put = ' <Icon></Icon>'
put = ' <IsA></IsA>'
put = ' <Summary></Summary>'
put = ' <Description></Description>'
put = ' <Archive sha1sum=\"\" type=\"\">http://</Archive>'
put = ' <BuildDependencies>'
put = ' <Dependency></Dependency>'
put = ' </BuildDependencies>'
put = ' <Patches>'
put = ' <Patch level=\"\"></Patch>'
put = ' </Patches>'
put = ' </Source>'
put = ''
put = ' <Package>'
put = ' <Name></Name>'
put = ' <RuntimeDependencies>'
put = ' <Dependency versionFrom=\"\"></Dependency>'
put = ' </RuntimeDependencies>'
put = ' <Files>'
put = ' <Path fileType=\"config\">/etc</Path>'
put = ' <Path fileType=\"executable\">/usr/bin</Path>'
put = ' <Path fileType=\"header\">/usr/include</Path>'
put = ' <Path fileType=\"library\">/usr/lib</Path>'
put = ' <Path fileType=\"localedata\">/usr/share/locale</Path>'
put = ' <Path fileType=\"man\">/usr/share/man</Path>'
put = ' <Path fileType=\"doc\">/usr/share/doc</Path>'
put = ' <Path fileType=\"data\">/usr/share</Path>'
put = ' </Files>'
put = ' <AdditionalFiles>'
put = ' <AdditionalFile owner=\"root\" permission=\"0644\" target=\"\"></AdditionalFile>'
put = ' </AdditionalFiles>'
put = ' <Provides>'
put = ' <COMAR script=\"\"></COMAR>'
put = ' </Provides>'
put = ' </Package>'
put = ''
put = ' <History>'
put = ' <Update release=\"1\">'
put = ' <Date>YYYY-MM-DD</Date>'
put = ' <Version></Version>'
put = ' <Comment>First release.</Comment>'
put = ' <Name></Name>'
put = ' <Email></Email>'
put = ' </Update>'
put = ' </History>'
put = '</PISI>'
14
endfun
com! -nargs=0 NewPSPEC call MakeNewPSPEC()
augroup NewPSPEC
au!
autocmd BufNewFile pspec.xml call MakeNewPSPEC()
augroup END
" vim: set et foldmethod=marker : "
@@ -0,0 +1,32 @@
" Vim plugin
" Purpose: Intelligently create content for PISI's translations.xml files
" Author: İnanç Yıldırgan
" Copyright: Copyright (c) 2008 İnanç Yıldırgan
" Licence: You may redistribute this under the terms of the GNU GPL v2..
if &compatible || v:version < 603
finish
endif
fun! MakeNewTranslations()
set nopaste
0 put = '<?xml version=\"1.0\" ?>'
put = '<PISI>'
put = ' <Source>'
put = ' <Name></Name>'
put = ' <Summary xml:lang=\"\"></Summary>'
put = ' <Description xml:lang=\"\"></Description>'
put = ' </Source>'
put = '</PISI>'
14
endfun
com! -nargs=0 MakeNewTranslations call MakeNewTranslations()
augroup MakeNewTranslations
au!
autocmd BufNewFile translations.xml call MakeNewTranslations()
augroup END
" vim: set et foldmethod=marker : "
@@ -0,0 +1,19 @@
diff -Nur vim72-old/runtime/syntax/xf86conf.vim vim72/runtime/syntax/xf86conf.vim
--- vim72-old/runtime/syntax/xf86conf.vim 2008-10-18 01:14:23.000000000 +0300
+++ vim72/runtime/syntax/xf86conf.vim 2008-10-18 01:16:12.000000000 +0300
@@ -68,6 +68,7 @@
syn region xf86confSectionMonitor matchgroup=xf86confSectionDelim start="^\s*Section\s\+\"Monitor\"" end="^\s*EndSection\>" skip="#.*$\|\"[^\"]*\"" contains=xf86confSubsectionMode,xf86confModeLine,xf86confComment,xf86confOption,xf86confKeyword
syn region xf86confSectionModes matchgroup=xf86confSectionDelim start="^\s*Section\s\+\"Modes\"" end="^\s*EndSection\>" skip="#.*$\|\"[^\"]*\"" contains=xf86confSubsectionMode,xf86confModeLine,xf86confComment
syn region xf86confSectionScreen matchgroup=xf86confSectionDelim start="^\s*Section\s\+\"Screen\"" end="^\s*EndSection\>" skip="#.*$\|\"[^\"]*\"" contains=xf86confSubsectionDisplay,xf86confComment,xf86confOption,xf86confKeyword
+ syn region xf86confSectionExtensions matchgroup=xf86confSectionDelim start="^\s*Section\s\+\"Extensions\"" end="^\s*EndSection\>" skip="#.*$\|\"[^\"]*\"" contains=xf86confComment,xf86confOption,xf86confKeyword
syn region xf86confSubSectionAny matchgroup=xf86confSectionDelim start="^\s*SubSection\s\+\"[^\"]\+\"" end="^\s*EndSubSection\>" skip="#.*$\|\"[^\"]*\"" contains=xf86confComment,xf86confOption,xf86confKeyword,@xf86confSectionErrors
syn region xf86confSubSectionMode matchgroup=xf86confSectionDelim start="^\s*Mode\s\+\"[^\"]\+\"" end="^\s*EndMode\>" skip="#.*$\|\"[^\"]*\"" contains=xf86confComment,xf86confKeyword,@xf86confSectionErrors
syn region xf86confSubSectionDisplay matchgroup=xf86confSectionDelim start="^\s*SubSection\s\+\"Display\"" end="^\s*EndSubSection\>" skip="#.*$\|\"[^\"]*\"" contains=xf86confComment,xf86confOption,xf86confKeyword,@xf86confSectionErrors
@@ -174,6 +175,7 @@
endif
syn sync match xf86confSyncSectionMonitor groupthere xf86confSectionMonitor "^\s*Section\s\+\"Monitor\""
syn sync match xf86confSyncSectionScreen groupthere xf86confSectionScreen "^\s*Section\s\+\"Screen\""
+syn sync match xf86confSyncSectionExtensions groupthere xf86confSectionExtensions "^\s*Section\s\+\"Extensions\""
syn sync match xf86confSyncEndSection groupthere NONE "^\s*End_*Section\s*$"
" Define the default highlighting