svn commit: r317541 - in head/www: . p5-Text-MultiMarkdown-ApacheHandler p5-Text-MultiMarkdown-ApacheHandler/files
Ryan Steinmetz
zi at FreeBSD.org
Mon May 6 18:39:45 UTC 2013
Author: zi
Date: Mon May 6 18:39:43 2013
New Revision: 317541
URL: http://svnweb.freebsd.org/changeset/ports/317541
Log:
New port: www/p5-Text-MultiMarkdown-ApacheHandler:
Processes files containing MultiMarkdown syntax into HTML files and serves
them, optionally applying CSS styles according to rules in your httpd.conf
or (more likely) .htaccess files. Optionally applies SmartyPants
post-processing using Text::Typography.
WWW: http://search.cpan.org/dist/Text-MultiMarkdown-ApacheHandler/
Added:
head/www/p5-Text-MultiMarkdown-ApacheHandler/
head/www/p5-Text-MultiMarkdown-ApacheHandler/Makefile (contents, props changed)
head/www/p5-Text-MultiMarkdown-ApacheHandler/distinfo (contents, props changed)
head/www/p5-Text-MultiMarkdown-ApacheHandler/files/
head/www/p5-Text-MultiMarkdown-ApacheHandler/files/patch-lib__Text__MultiMarkdown__ApacheHandler.pm (contents, props changed)
head/www/p5-Text-MultiMarkdown-ApacheHandler/files/pkg-message.in (contents, props changed)
head/www/p5-Text-MultiMarkdown-ApacheHandler/pkg-descr (contents, props changed)
head/www/p5-Text-MultiMarkdown-ApacheHandler/pkg-plist (contents, props changed)
Modified:
head/www/Makefile
Modified: head/www/Makefile
==============================================================================
--- head/www/Makefile Mon May 6 18:37:00 2013 (r317540)
+++ head/www/Makefile Mon May 6 18:39:43 2013 (r317541)
@@ -1205,6 +1205,7 @@
SUBDIR += p5-Test-HTTP
SUBDIR += p5-Test-HTTP-Server-Simple
SUBDIR += p5-TestGen4Web-Runner
+ SUBDIR += p5-Text-MultiMarkdown-ApacheHandler
SUBDIR += p5-Tie-TinyURL
SUBDIR += p5-Twiggy
SUBDIR += p5-Twiggy-TLS
Added: head/www/p5-Text-MultiMarkdown-ApacheHandler/Makefile
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/www/p5-Text-MultiMarkdown-ApacheHandler/Makefile Mon May 6 18:39:43 2013 (r317541)
@@ -0,0 +1,30 @@
+# Created by: Ryan Steinmetz <zi at FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME= Text-MultiMarkdown-ApacheHandler
+PORTVERSION= 0.01
+CATEGORIES= www perl5
+MASTER_SITES= CPAN
+PKGNAMEPREFIX= p5-
+
+MAINTAINER= perl at FreeBSD.org
+COMMENT= Module for processing files with MultiMarkdown syntax for Apache
+
+BUILD_DEPENDS= p5-Text-MultiMarkdown>=0:${PORTSDIR}/textproc/p5-Text-MultiMarkdown \
+ p5-Text-Typography>=0:${PORTSDIR}/textproc/p5-Text-Typography \
+ ${APACHE_PKGNAMEPREFIX}mod_perl2>=2.0.5:${PORTSDIR}/www/mod_perl2
+RUN_DEPENDS:= ${BUILD_DEPENDS}
+
+USE_APACHE_RUN= 22+
+PERL_CONFIGURE= yes
+SUB_FILES= pkg-message
+
+MAN3= Text::MultiMarkdown::ApacheHandler.3
+
+post-patch:
+ @${RM} ${WRKSRC}/lib/Text/MultiMarkdown/ApacheHandler.pm.orig
+
+post-install:
+ @${CAT} ${PKGMESSAGE}
+
+.include <bsd.port.mk>
Added: head/www/p5-Text-MultiMarkdown-ApacheHandler/distinfo
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/www/p5-Text-MultiMarkdown-ApacheHandler/distinfo Mon May 6 18:39:43 2013 (r317541)
@@ -0,0 +1,2 @@
+SHA256 (Text-MultiMarkdown-ApacheHandler-0.01.tar.gz) = 45552f726d878738c1ca8ce187978c2bae463292089c78cbaf0b070ab721598f
+SIZE (Text-MultiMarkdown-ApacheHandler-0.01.tar.gz) = 3676
Added: head/www/p5-Text-MultiMarkdown-ApacheHandler/files/patch-lib__Text__MultiMarkdown__ApacheHandler.pm
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/www/p5-Text-MultiMarkdown-ApacheHandler/files/patch-lib__Text__MultiMarkdown__ApacheHandler.pm Mon May 6 18:39:43 2013 (r317541)
@@ -0,0 +1,19 @@
+--- ./lib/Text/MultiMarkdown/ApacheHandler.pm.orig 2013-05-06 13:22:18.000000000 -0400
++++ ./lib/Text/MultiMarkdown/ApacheHandler.pm 2013-05-06 13:25:56.000000000 -0400
+@@ -16,6 +16,7 @@
+
+ our $VERSION = '0.01';
+
++use Apache2::compat;
+ use Apache::Constants qw(:common);
+ use Apache::File ();
+ use Text::MultiMarkdown 'markdown';
+@@ -52,7 +53,7 @@
+ return DECLINED unless $r->content_type() eq 'text/multimarkdown';
+ my $file = $r->filename;
+
+- unless (-e $r->finfo) {
++ unless (-e $file) {
+ $r->log_error("File does not exist: $file");
+ return NOT_FOUND;
+ }
Added: head/www/p5-Text-MultiMarkdown-ApacheHandler/files/pkg-message.in
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/www/p5-Text-MultiMarkdown-ApacheHandler/files/pkg-message.in Mon May 6 18:39:43 2013 (r317541)
@@ -0,0 +1,9 @@
+Please create %%PREFIX%%/etc/apache22/Includes/mmd.conf
+with the following contents:
+
+AddType text/multimarkdown .markdown .mmd
+<Files ~ "\.(mmd|markdown)$">
+ SetHandler perl-script
+ PerlHandler Text::MultiMarkdown::ApacheHandler
+ PerlSetVar mm_useSmartyPants 1
+</Files>
Added: head/www/p5-Text-MultiMarkdown-ApacheHandler/pkg-descr
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/www/p5-Text-MultiMarkdown-ApacheHandler/pkg-descr Mon May 6 18:39:43 2013 (r317541)
@@ -0,0 +1,6 @@
+Processes files containing MultiMarkdown syntax into HTML files and serves
+them, optionally applying CSS styles according to rules in your httpd.conf
+or (more likely) .htaccess files. Optionally applies SmartyPants
+post-processing using Text::Typography.
+
+WWW: http://search.cpan.org/dist/Text-MultiMarkdown-ApacheHandler/
Added: head/www/p5-Text-MultiMarkdown-ApacheHandler/pkg-plist
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/www/p5-Text-MultiMarkdown-ApacheHandler/pkg-plist Mon May 6 18:39:43 2013 (r317541)
@@ -0,0 +1,8 @@
+ at comment $FreeBSD$
+%%SITE_PERL%%/Text/MultiMarkdown/ApacheHandler.pm
+ at dirrmtry %%SITE_PERL%%/Text/MultiMarkdown
+ at dirrmtry %%SITE_PERL%%/Text
+%%SITE_PERL%%/%%PERL_ARCH%%/auto/Text/MultiMarkdown/ApacheHandler/.packlist
+ at dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Text/MultiMarkdown/ApacheHandler
+ at dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Text/MultiMarkdown
+ at dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Text
More information about the svn-ports-head
mailing list