* update to 1.11
* add emacs and vi dot file examples * by new maintainer Han Boetes <han@linux-mandrake.com>
This commit is contained in:
parent
df25edefc4
commit
4a5473494f
@ -1,10 +1,12 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2002/07/11 09:28:52 shell Exp $
|
||||
# $OpenBSD: Makefile,v 1.2 2003/05/15 06:19:41 naddy Exp $
|
||||
|
||||
COMMENT= "perl module to formating plaintext"
|
||||
COMMENT= "perl module to formating plaintext"
|
||||
|
||||
DISTNAME= Text-Autoformat-1.04
|
||||
PKGNAME= p5-${DISTNAME}
|
||||
CATEGORIES= textproc perl5
|
||||
DISTNAME= Text-Autoformat-1.11
|
||||
PKGNAME= p5-${DISTNAME}
|
||||
CATEGORIES= textproc perl5
|
||||
|
||||
MAINTAINER= Han Boetes <han@linux-mandrake.com>
|
||||
|
||||
PERMIT_PACKAGE_CDROM= Yes
|
||||
PERMIT_PACKAGE_FTP= Yes
|
||||
@ -12,7 +14,18 @@ PERMIT_DISTFILES_CDROM= Yes
|
||||
PERMIT_DISTFILES_FTP= Yes
|
||||
|
||||
MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=Text/}
|
||||
HOMEPAGE= http://search.cpan.org/author/DCONWAY/${DISTNAME}/lib/Text/Autoformat.pm
|
||||
|
||||
BUILD_DEPENDS= ${RUN_DEPENDS}
|
||||
RUN_DEPENDS= :p5-Text-Reform-*:textproc/p5-Text-Reform
|
||||
|
||||
CONFIGURE_STYLE= perl
|
||||
|
||||
DOT_FILES= ${FILESDIR}/dot.emacs ${FILESDIR}/dot.vimrc
|
||||
SAMPLE_DIR= ${PREFIX}/share/examples/${DISTNAME}
|
||||
|
||||
post-install:
|
||||
${INSTALL_DATA_DIR} ${SAMPLE_DIR}
|
||||
${INSTALL_DATA} ${DOT_FILES} ${SAMPLE_DIR}
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1,3 +1,3 @@
|
||||
MD5 (Text-Autoformat-1.04.tar.gz) = acb89d29e0508d14cd3310f3df13b799
|
||||
RMD160 (Text-Autoformat-1.04.tar.gz) = adb76d75ebdd77864009384002d99810ec0a1441
|
||||
SHA1 (Text-Autoformat-1.04.tar.gz) = 37542dab1e1db7e4aada2886084c413fc2d2aaab
|
||||
MD5 (Text-Autoformat-1.11.tar.gz) = a7edef88c2371c3c5f62472e330dae4e
|
||||
RMD160 (Text-Autoformat-1.11.tar.gz) = 4d743a189351fdbdb4104f81ba0050b9f50bc90b
|
||||
SHA1 (Text-Autoformat-1.11.tar.gz) = b903c79496e8b4264bbcbec480a4fbdf07eefd7e
|
||||
|
9
textproc/p5-Text-Autoformat/files/dot.emacs
Normal file
9
textproc/p5-Text-Autoformat/files/dot.emacs
Normal file
@ -0,0 +1,9 @@
|
||||
;; Add these lines to your .emacs and you will be happy with
|
||||
;; p5-Text-Autoformat.
|
||||
;; Use ctrl-c k to reformat a region.
|
||||
|
||||
;; Set a global key for autoformat region
|
||||
(global-set-key (kbd "C-c k") (lambda () (interactive) (shell-command-on-region (region-beginning) (region-end)
|
||||
"perl -MText::Autoformat -e \"{autoformat{all=>1,justify=>\'full\'};}\""
|
||||
(current-buffer) t)))
|
||||
|
11
textproc/p5-Text-Autoformat/files/dot.vimrc
Normal file
11
textproc/p5-Text-Autoformat/files/dot.vimrc
Normal file
@ -0,0 +1,11 @@
|
||||
" Add these lines to your .vimrc and you will be happy with
|
||||
" p5-Text-Autoformat. Use ctrl-k to reformat a paragraph and ctrl-n to
|
||||
" reformat all text from the cursor.
|
||||
|
||||
imap <C-K> <esc> !G perl -MText::Autoformat -e "{autoformat{justify=>'full'};}"<cr>
|
||||
nmap <C-K> !G perl -MText::Autoformat -e "{autoformat{justify=>'full'};}"<cr>
|
||||
vmap <C-K> !G perl -MText::Autoformat -e "{autoformat{justify=>'full'};}"<cr>
|
||||
|
||||
imap <C-N> <esc> !G perl -MText::Autoformat -e "{autoformat{all=>1,justify=>'full'};}"<cr>
|
||||
nmap <C-N> !G perl -MText::Autoformat -e "{autoformat{all=>1,justify=>'full'};}"<cr>
|
||||
vmap <C-N> !G perl -MText::Autoformat -e "{autoformat{all=>1,justify=>'full'};}"<cr>
|
@ -1,5 +1,7 @@
|
||||
Text::Autoformat provides intelligent formatting of plaintext. It
|
||||
also supplies a replacement for the built-in perl format()'ing
|
||||
mechanism. It recognizes Internet quoting conventions, bulleting
|
||||
and numbering, and allows for inter-word and inter-paragraph spatial
|
||||
adjustments, text justification, and various capitalization schemes.
|
||||
Text::Autoformat provides intelligent formatting of plaintext. It also
|
||||
supplies a replacement for the built-in perl format()'ing mechanism. It
|
||||
recognizes Internet quoting conventions, bulleting and numbering, and
|
||||
allows for inter-word and inter-paragraph spatial adjustments, text
|
||||
justification, and various capitalization schemes.
|
||||
|
||||
WWW: ${HOMEPAGE}
|
||||
|
@ -1,4 +1,5 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2002/07/11 09:28:52 shell Exp $
|
||||
@comment $OpenBSD: PLIST,v 1.2 2003/05/15 06:19:41 naddy Exp $
|
||||
${P5SITE}/Text/Autoformat.pm
|
||||
${P5SITE}/Text/demo.pl
|
||||
man/man3p/Text::Autoformat.3p
|
||||
share/examples/Text-Autoformat-1.11/dot.emacs
|
||||
share/examples/Text-Autoformat-1.11/dot.vimrc
|
||||
|
Loading…
x
Reference in New Issue
Block a user