From owner-svn-ports-head@FreeBSD.ORG Mon May 6 18:39:45 2013 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id F34C3BEF; Mon, 6 May 2013 18:39:44 +0000 (UTC) (envelope-from zi@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id E53CCA1C; Mon, 6 May 2013 18:39:44 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.6/8.14.6) with ESMTP id r46Idibl013389; Mon, 6 May 2013 18:39:44 GMT (envelope-from zi@svn.freebsd.org) Received: (from zi@localhost) by svn.freebsd.org (8.14.6/8.14.5/Submit) id r46IdhvX013379; Mon, 6 May 2013 18:39:43 GMT (envelope-from zi@svn.freebsd.org) Message-Id: <201305061839.r46IdhvX013379@svn.freebsd.org> From: Ryan Steinmetz Date: Mon, 6 May 2013 18:39:43 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r317541 - in head/www: . p5-Text-MultiMarkdown-ApacheHandler p5-Text-MultiMarkdown-ApacheHandler/files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 May 2013 18:39:45 -0000 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 +# $FreeBSD$ + +PORTNAME= Text-MultiMarkdown-ApacheHandler +PORTVERSION= 0.01 +CATEGORIES= www perl5 +MASTER_SITES= CPAN +PKGNAMEPREFIX= p5- + +MAINTAINER= perl@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 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 + + SetHandler perl-script + PerlHandler Text::MultiMarkdown::ApacheHandler + PerlSetVar mm_useSmartyPants 1 + 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 @@ +@comment $FreeBSD$ +%%SITE_PERL%%/Text/MultiMarkdown/ApacheHandler.pm +@dirrmtry %%SITE_PERL%%/Text/MultiMarkdown +@dirrmtry %%SITE_PERL%%/Text +%%SITE_PERL%%/%%PERL_ARCH%%/auto/Text/MultiMarkdown/ApacheHandler/.packlist +@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Text/MultiMarkdown/ApacheHandler +@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Text/MultiMarkdown +@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Text