Add p5-XML-RSS-JavaScript, it is a perl extension to serialize your RSS as
JavaScript
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
# New ports collection makefile for: p5-XML-RSS-JavaScript
|
||||
# Date created: 31 Oct 2003
|
||||
# Whom: Foxfair Hu <foxfair@FreeBSD.org>
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= XML-RSS-JavaScript
|
||||
PORTVERSION= 0.3
|
||||
CATEGORIES= textproc www perl5
|
||||
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
|
||||
MASTER_SITE_SUBDIR= XML
|
||||
PKGNAMEPREFIX= p5-
|
||||
|
||||
MAINTAINER= ports@FreeBSD.org
|
||||
COMMENT= Perl extension to serialize your RSS as JavaScript
|
||||
|
||||
BUILD_DEPENDS= ${SITE_PERL}/XML/RSS.pm:${PORTSDIR}/textproc/p5-XML-RSS
|
||||
|
||||
PERL_CONFIGURE= yes
|
||||
|
||||
MAN3= XML::RSS::JavaScript.3
|
||||
|
||||
.include <bsd.port.mk>
|
||||
@@ -0,0 +1 @@
|
||||
MD5 (XML-RSS-JavaScript-0.3.tar.gz) = aade78e577880b34578ac26e7269ddec
|
||||
@@ -0,0 +1,17 @@
|
||||
Serialize your RSS as JavaScript.
|
||||
|
||||
Perhaps you use XML::RSS to generate RSS for consumption by RSS parsers.
|
||||
Perhaps you also get requests for how to use the RSS feed by people who
|
||||
have no idea how to parse XML, or write Perl programs for that matter.
|
||||
|
||||
Enter XML::RSS::JavaScript, a simle subclass of XML::RSS which writes your
|
||||
RSS feed as a sequence of JavaScript print statements. This means you
|
||||
can then write the JavaScript to disk, and a users HTML can simple
|
||||
include it like so:
|
||||
|
||||
<script language="JavaScript" src="/myfeed.js"></script>
|
||||
|
||||
What's more the javascript emits HTML that can be fully styled with
|
||||
CSS. See the CSS examples included with the distribution in the css directory.
|
||||
|
||||
WWW: http://search.cpan.org/perldoc?XML::RSS::JavaScript
|
||||
@@ -0,0 +1,7 @@
|
||||
%%SITE_PERL%%/%%PERL_ARCH%%/auto/XML/RSS/JavaScript/.packlist
|
||||
%%SITE_PERL%%/XML/RSS/JavaScript.pm
|
||||
@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/XML/RSS/JavaScript
|
||||
@unexec rmdir %D/%%SITE_PERL%%/%%PERL_ARCH%%/auto/XML/RSS 2>/dev/null || true
|
||||
@unexec rmdir %D/%%SITE_PERL%%/%%PERL_ARCH%%/auto/XML 2>/dev/null || true
|
||||
@unexec rmdir %D/%%SITE_PERL%%/XML/RSS 2>/dev/null || true
|
||||
@unexec rmdir %D/%%SITE_PERL%%/XML 2>/dev/null || true
|
||||
Reference in New Issue
Block a user