summaryrefslogtreecommitdiff
path: root/textproc
diff options
context:
space:
mode:
authorSergey Skvortsov <skv@FreeBSD.org>2002-06-02 13:41:26 +0000
committerSergey Skvortsov <skv@FreeBSD.org>2002-06-02 13:41:26 +0000
commit43a799c4ecc4062358076883b5d3e9939a22adeb (patch)
tree78b7cc55b33262eba5818f134161e930a026a037 /textproc
parentUpdate to 0.9.10. (diff)
Updated to 2.1, examples added
Notes
Notes: svn path=/head/; revision=60459
Diffstat (limited to 'textproc')
-rw-r--r--textproc/p5-SVG/Makefile20
-rw-r--r--textproc/p5-SVG/distinfo2
-rw-r--r--textproc/p5-SVG/pkg-descr8
-rw-r--r--textproc/p5-SVG/pkg-plist22
4 files changed, 39 insertions, 13 deletions
diff --git a/textproc/p5-SVG/Makefile b/textproc/p5-SVG/Makefile
index dbd4214bd404..b7eb75cad98e 100644
--- a/textproc/p5-SVG/Makefile
+++ b/textproc/p5-SVG/Makefile
@@ -6,17 +6,29 @@
#
PORTNAME= SVG
-PORTVERSION= 1.13
+PORTVERSION= 2.1
CATEGORIES= textproc graphics perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR= SVG
PKGNAMEPREFIX= p5-
-MAINTAINER= skv@protey.ru
+MAINTAINER= skv@FreeBSD.org
PERL_CONFIGURE= yes
+PLIST_SUB= EXAMPLESDIR="share/examples/${PORTNAME}"
-MAN3= SVG.3
-MANPREFIX= ${PREFIX}/lib/perl5/${PERL_VERSION}
+MAN3= SVG.3 SVG::DOM.3 SVG::Element.3 SVG::Manual.3 SVG::XML.3
+MAN3PREFIX= ${PREFIX}/lib/perl5/${PERL_VERSION}
+
+post-patch:
+ @${FIND} ${WRKSRC} \( -name "*.p[lm]" -or -name "*.cgi" \
+ -or -name "*.pod" \)|xargs ${PERL} -pi -e 's/\x0d//g;'
+
+post-install:
+.ifndef(NOPORTDOCS)
+ @${ECHO_MSG} "===> Installing examples for ${PKGNAME}"
+ @${MKDIR} ${EXAMPLESDIR}
+ ${INSTALL_SCRIPT} ${WRKSRC}/examples/* ${EXAMPLESDIR}
+.endif
.include <bsd.port.mk>
diff --git a/textproc/p5-SVG/distinfo b/textproc/p5-SVG/distinfo
index ab626cf3937f..c0fc5385e906 100644
--- a/textproc/p5-SVG/distinfo
+++ b/textproc/p5-SVG/distinfo
@@ -1 +1 @@
-MD5 (SVG-1.13.tar.gz) = ff0057028d56a2d161ec59c7b915cbf5
+MD5 (SVG-2.1.tar.gz) = b65c1cfae7b18d92f902a52cd0a9d0c4
diff --git a/textproc/p5-SVG/pkg-descr b/textproc/p5-SVG/pkg-descr
index bf92fce4f556..cb53556f190f 100644
--- a/textproc/p5-SVG/pkg-descr
+++ b/textproc/p5-SVG/pkg-descr
@@ -1,7 +1,7 @@
-SVG.pm is a perl extention to generate stand-alone or inline SVG (scaleable
-vector graphics) images using the W3C SVG xml recommendation.
+SVG.pm is a perl extention to generate stand-alone or inline SVG
+(scaleable vector graphics) images using the W3C SVG xml recommendation.
WWW: http://search.cpan.org/search?dist=SVG
--- Godegisel
-skv@protey.ru
+-- Sergey Skvortsov
+skv@FreeBSD.org
diff --git a/textproc/p5-SVG/pkg-plist b/textproc/p5-SVG/pkg-plist
index 71cbf3e1ccfd..91c70484743e 100644
--- a/textproc/p5-SVG/pkg-plist
+++ b/textproc/p5-SVG/pkg-plist
@@ -1,5 +1,19 @@
-lib/perl5/site_perl/%%PERL_VER%%/SVG.pm
-lib/perl5/site_perl/%%PERL_VER%%/SVG/Utils.pm
lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/SVG/.packlist
-@dirrm lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/SVG
-@dirrm lib/perl5/site_perl/%%PERL_VER%%/SVG
+lib/perl5/site_perl/%%PERL_VER%%/SVG.pm
+lib/perl5/site_perl/%%PERL_VER%%/SVG/DOM.pm
+lib/perl5/site_perl/%%PERL_VER%%/SVG/Element.pm
+lib/perl5/site_perl/%%PERL_VER%%/SVG/Manual.pod
+lib/perl5/site_perl/%%PERL_VER%%/SVG/XML.pm
+%%PORTDOCS%%%%EXAMPLESDIR%%/SVG_02_sample.pl
+%%PORTDOCS%%%%EXAMPLESDIR%%/image_sample.pl
+%%PORTDOCS%%%%EXAMPLESDIR%%/inline_sample.pl
+%%PORTDOCS%%%%EXAMPLESDIR%%/inlinesvg.pl
+%%PORTDOCS%%%%EXAMPLESDIR%%/minsvg.pl
+%%PORTDOCS%%%%EXAMPLESDIR%%/starpath.cgi
+%%PORTDOCS%%%%EXAMPLESDIR%%/sun_text_sample.pl
+%%PORTDOCS%%%%EXAMPLESDIR%%/svg.pl
+%%PORTDOCS%%%%EXAMPLESDIR%%/svgtest2.pl
+%%PORTDOCS%%%%EXAMPLESDIR%%/yaph5.cgi
+%%PORTDOCS%%@dirrm %%EXAMPLESDIR%%
+@unexec rmdir %D/lib/perl5/site_perl/%%PERL_VER%%/SVG 2>/dev/null || true
+@unexec rmdir %D/lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/SVG 2>/dev/null || true