summaryrefslogtreecommitdiff
path: root/irc/p5-POE-Component-IRC
diff options
context:
space:
mode:
authorSergey Skvortsov <skv@FreeBSD.org>2002-05-27 14:43:15 +0000
committerSergey Skvortsov <skv@FreeBSD.org>2002-05-27 14:43:15 +0000
commitc0127ac2fce3cb68a131e5aedcc6a09d4e986af3 (patch)
tree03bf292ee37008d45c340cadd8354ff239075339 /irc/p5-POE-Component-IRC
parentAdd p5-POE-Component-Client-POP3 0.02, (diff)
Updated to 2.2, added examples.
Notes
Notes: svn path=/head/; revision=60135
Diffstat (limited to 'irc/p5-POE-Component-IRC')
-rw-r--r--irc/p5-POE-Component-IRC/Makefile10
-rw-r--r--irc/p5-POE-Component-IRC/distinfo2
-rw-r--r--irc/p5-POE-Component-IRC/pkg-plist9
3 files changed, 17 insertions, 4 deletions
diff --git a/irc/p5-POE-Component-IRC/Makefile b/irc/p5-POE-Component-IRC/Makefile
index ae7fdca3e448..8c33669d7d21 100644
--- a/irc/p5-POE-Component-IRC/Makefile
+++ b/irc/p5-POE-Component-IRC/Makefile
@@ -7,7 +7,7 @@
#
PORTNAME= POE-Component-IRC
-PORTVERSION= 2.1
+PORTVERSION= 2.2
CATEGORIES= irc devel perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR= POE
@@ -18,6 +18,7 @@ MAINTAINER= ports@FreeBSD.org
BUILD_DEPENDS= ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/POE.pm:${PORTSDIR}/devel/p5-POE
RUN_DEPENDS= ${BUILD_DEPENDS}
+PLIST_SUB= EXAMPLESDIR="share/examples/${PORTNAME}"
PERL_CONFIGURE= yes
MANPREFIX= ${PREFIX}/lib/perl5/${PERL_VERSION}
@@ -25,4 +26,11 @@ MAN3= POE::Component::Filter-CTCP.3 \
POE::Component::IRC.3 \
POE::Component::Filter-IRC.3
+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/irc/p5-POE-Component-IRC/distinfo b/irc/p5-POE-Component-IRC/distinfo
index eba5624e456b..551c65df83e4 100644
--- a/irc/p5-POE-Component-IRC/distinfo
+++ b/irc/p5-POE-Component-IRC/distinfo
@@ -1 +1 @@
-MD5 (POE-Component-IRC-2.1.tar.gz) = 00523ae5048742505fd633e9b1a4a694
+MD5 (POE-Component-IRC-2.2.tar.gz) = 4b28465484e0f0801feb9612a640667c
diff --git a/irc/p5-POE-Component-IRC/pkg-plist b/irc/p5-POE-Component-IRC/pkg-plist
index 9f1eea450382..936835a90fc5 100644
--- a/irc/p5-POE-Component-IRC/pkg-plist
+++ b/irc/p5-POE-Component-IRC/pkg-plist
@@ -1,9 +1,14 @@
+lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/POE/Component/IRC/.packlist
lib/perl5/site_perl/%%PERL_VER%%/POE/Component/IRC.pm
lib/perl5/site_perl/%%PERL_VER%%/POE/Filter/CTCP.pm
lib/perl5/site_perl/%%PERL_VER%%/POE/Filter/IRC.pm
-lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/POE/Component/IRC/.packlist
+%%PORTDOCS%%%%EXAMPLESDIR%%/dcctest.pl
+%%PORTDOCS%%%%EXAMPLESDIR%%/dicebot.pl
+%%PORTDOCS%%%%EXAMPLESDIR%%/eliza.pl
+%%PORTDOCS%%%%EXAMPLESDIR%%/moo.pl
+%%PORTDOCS%%@dirrm %%EXAMPLESDIR%%
@dirrm lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/POE/Component/IRC
-@dirrm lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/POE/Component
+@unexec rmdir %D/lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/POE/Component 2>/dev/null || true
@unexec rmdir %D/lib/perl5/site_perl/%%PERL_VER%%/POE/Component 2>/dev/null || true
@unexec rmdir %D/lib/perl5/site_perl/%%PERL_VER%%/POE/Filter 2>/dev/null || true
@unexec rmdir %D/lib/perl5/site_perl/%%PERL_VER%%/POE 2>/dev/null || true