[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[update] p5-Text-Autoformat [new] p5-Text-Reform



Lo,

The p5-Text-Autoformat has now been split up in two packages so
this post includes a patch for p5-Text-Autoformat and tarball for
p5-Text-Reform.

Furthermore I noticed that p5-Text-Autoformat is now without a
maintainer so I wouldn't mind taking it over. I also included two dot-
files, which I also used in the mandrake-rpm, for emacs and vi.

Plus some additional changes like a homepage.

Please double-check and commit.



Liam-info:

Information for p5-Text-Reform-1.11:

Comment:
perl module to formating plaintext

Required by:
p5-Text-Autoformat-1.11

Description:
The form() subroutine may be exported from the module. It takes a series
of format (or "picture") strings followed by replacement values,
interpolates those values into each picture string, and returns the
result. The effect is similar to the inbuilt perl format mechanism,
although the field specification syntax is simpler and some of the
formatting behaviour is more sophisticated.

WWW: http://search.cpan.org/author/DCONWAY/Text-Reform-1.11/lib/Text/Reform.pm




# Han
-- 
http://www.xs4all.nl/~hanb/software
Index: Makefile
===================================================================
RCS file: /cvs/ports/textproc/p5-Text-Autoformat/Makefile,v
retrieving revision 1.1.1.1
diff -u -a -r1.1.1.1 Makefile
--- Makefile	11 Jul 2002 09:28:52 -0000	1.1.1.1
+++ Makefile	15 May 2003 00:47:23 -0000
@@ -1,10 +1,12 @@
 # $OpenBSD: Makefile,v 1.1.1.1 2002/07/11 09:28:52 shell 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_FTP=	Yes
 
 MASTER_SITES=		${MASTER_SITE_PERL_CPAN:=Text/}
+HOMEPAGE=		http://search.cpan.org/author/DCONWAY/${DISTNAME}/lib/Text/Autoformat.pm
+
+BUILD_DEPENDS=  	:p5-Text-Reform-*:textproc/p5-Text-Reform
+RUN_DEPENDS=    	${BUILD_DEPENDS}
 
 CONFIGURE_STYLE=	perl
+
+DOT_FILES=		${FILESDIR}/dot-*
+SAMPLE_DIR=		${PREFIX}/share/examples/${DISTNAME}
+
+post-install:
+			${INSTALL_DATA_DIR} ${SAMPLE_DIR}
+			${INSTALL_DATA} ${DOT_FILES} ${SAMPLE_DIR}
 
 .include <bsd.port.mk>
Index: distinfo
===================================================================
RCS file: /cvs/ports/textproc/p5-Text-Autoformat/distinfo,v
retrieving revision 1.1.1.1
diff -u -a -r1.1.1.1 distinfo
--- distinfo	11 Jul 2002 09:28:52 -0000	1.1.1.1
+++ distinfo	15 May 2003 00:47:23 -0000
@@ -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
Index: files/dot-emacs
===================================================================
RCS file: files/dot-emacs
diff -N files/dot-emacs
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ files/dot-emacs	15 May 2003 00:47:23 -0000
@@ -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)))
+
Index: files/dot-vimrc
===================================================================
RCS file: files/dot-vimrc
diff -N files/dot-vimrc
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ files/dot-vimrc	15 May 2003 00:47:23 -0000
@@ -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>
Index: pkg/DESCR
===================================================================
RCS file: /cvs/ports/textproc/p5-Text-Autoformat/pkg/DESCR,v
retrieving revision 1.2
diff -u -a -r1.2 DESCR
--- pkg/DESCR	2 Mar 2003 05:39:06 -0000	1.2
+++ pkg/DESCR	15 May 2003 00:47:23 -0000
@@ -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}
Index: pkg/PLIST
===================================================================
RCS file: /cvs/ports/textproc/p5-Text-Autoformat/pkg/PLIST,v
retrieving revision 1.1.1.1
diff -u -a -r1.1.1.1 PLIST
--- pkg/PLIST	11 Jul 2002 09:28:52 -0000	1.1.1.1
+++ pkg/PLIST	15 May 2003 00:47:23 -0000
@@ -1,4 +1,5 @@
 @comment $OpenBSD: PLIST,v 1.1.1.1 2002/07/11 09:28:52 shell 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

p5-Text-Reform-1.11.tar.gz