Compare commits

...
Sign in to create a new pull request.

4 commits

Author SHA1 Message Date
Fedora Release Engineering
46532ddf4c dist-git conversion 2010-07-29 15:03:36 +00:00
Bill Nottingham
c70db3b046 Fix typo that causes a failure to update the common directory. (releng
#2781)
2009-11-26 01:14:11 +00:00
Chris Weyl
df5b87ce36 initial import 2009-10-08 15:36:09 +00:00
049d07c98e Initialize branch F-12 for vim-perl-tt2 2009-10-08 06:00:32 +00:00
5 changed files with 79 additions and 21 deletions

View file

1
.gitignore vendored Normal file
View file

@ -0,0 +1 @@
tt2.tar.gz

View file

@ -1,21 +0,0 @@
# Makefile for source rpm: vim-perl-tt2
# $Id$
NAME := vim-perl-tt2
SPECFILE = $(firstword $(wildcard *.spec))
define find-makefile-common
for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done
endef
MAKEFILE_COMMON := $(shell $(find-makefile-common))
ifeq ($(MAKEFILE_COMMON),)
# attept a checkout
define checkout-makefile-common
test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2
endef
MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
endif
include $(MAKEFILE_COMMON)

View file

@ -0,0 +1 @@
3e70d82171456550855a8b9612226c11 tt2.tar.gz

77
vim-perl-tt2.spec Normal file
View file

@ -0,0 +1,77 @@
Name: vim-perl-tt2
Version: 0.1.3
Release: 2%{?dist}
Summary: Syntax highlighting for the Template-Toolkit
Group: Applications/Editors
License: Vim
URL: http://www.vim.org/scripts/script.php?script_id=830
# source0 lives at http://www.vim.org/scripts/download_script.php?src_id=6881
Source0: tt2.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
Requires: vim-common
%global vimfiles %{_datadir}/vim/vimfiles
%description
%{name} enables syntax highlighting for the Perl Template-Toolkit, v2.
* Contain Perl code in PERL/RAWPERL directive. (runtime sytax/perl.vim)
* No folding
* HTML syntax for including TT2 syntax. ( tt2html.vim / unfinished )
* Configurable START_TAG/END_TAG for your style.
%prep
%setup -q -c
cat >> tt2.vim.ft <<'EOF'
"au BufNewFile,BufRead *.tt2 setf tt2
" or
au BufNewFile,BufRead *.tt2
\ if ( getline(1) . getline(2) . getline(3) =~ '<\chtml'
\ && getline(1) . getline(2) . getline(3) !~ '<[%?]')
\ || getline(1) =~ '<!DOCTYPE HTML' |
\ setf tt2html |
\ else |
\ setf tt2 |
\ endif
"ASP"
":let b:tt2_syn_tags = '<% %>'
"PHP"
":let b:tt2_syn_tags = '<? ?>'
"TT2 and HTML"
let b:tt2_syn_tags = '\[% %] <!-- -->'
EOF
%build
# no-op
%install
rm -rf %{buildroot}
mkdir -p %{buildroot}%{vimfiles}/syntax
install -p -m 0644 *.vim %{buildroot}%{vimfiles}/syntax
mkdir -p %{buildroot}%{vimfiles}/ftdetect
cp tt2.vim.ft %{buildroot}%{vimfiles}/ftdetect/tt2.vim
%{_fixperms} %{buildroot}
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%{vimfiles}/ftdetect/*
%{vimfiles}/syntax/*
%changelog
* Mon Sep 28 2009 Chris Weyl <cweyl@alumni.drew.edu> 0.1.3-2
- require vim-common, not vim-perl-support
* Fri Sep 25 2009 Chris Weyl <cweyl@alumni.drew.edu> 0.1.3-1
- initial packaging