aboutsummaryrefslogtreecommitdiffstats
path: root/irc/p5-POE-Component-IRC
diff options
context:
space:
mode:
authorskv <skv@FreeBSD.org>2002-05-27 22:43:15 +0800
committerskv <skv@FreeBSD.org>2002-05-27 22:43:15 +0800
commit1cba93eabdb8c29d542867a0231cb8f23b761f01 (patch)
tree10c4f9f7cfafa9973e3d844a1272f8abaf884556 /irc/p5-POE-Component-IRC
parent5a3b7ae39fa6eec5d3bac0f490cb36cac743ad2b (diff)
downloadfreebsd-ports-gnome-1cba93eabdb8c29d542867a0231cb8f23b761f01.tar.gz
freebsd-ports-gnome-1cba93eabdb8c29d542867a0231cb8f23b761f01.tar.zst
freebsd-ports-gnome-1cba93eabdb8c29d542867a0231cb8f23b761f01.zip
Updated to 2.2, added examples.
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