aboutsummaryrefslogtreecommitdiff
path: root/devel/p5-Coro
diff options
context:
space:
mode:
authorMathieu Arnold <mat@FreeBSD.org>2005-02-23 17:58:25 +0000
committerMathieu Arnold <mat@FreeBSD.org>2005-02-23 17:58:25 +0000
commit1a264764ab2de951014b683b345c06dc0e756b9c (patch)
treeb9421a06505fce99707d10d78fe9bc237fdea665 /devel/p5-Coro
parenta619d1ccf421d6a74e8448e85dc52296558d0cb2 (diff)
downloadports-1a264764ab2de951014b683b345c06dc0e756b9c.tar.gz
ports-1a264764ab2de951014b683b345c06dc0e756b9c.zip
Update to 1.1
Add some doc and examples
Notes
Notes: svn path=/head/; revision=129612
Diffstat (limited to 'devel/p5-Coro')
-rw-r--r--devel/p5-Coro/Makefile17
-rw-r--r--devel/p5-Coro/distinfo4
-rw-r--r--devel/p5-Coro/pkg-plist14
3 files changed, 29 insertions, 6 deletions
diff --git a/devel/p5-Coro/Makefile b/devel/p5-Coro/Makefile
index ab6c9720a341..88739d143300 100644
--- a/devel/p5-Coro/Makefile
+++ b/devel/p5-Coro/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME= Coro
-PORTVERSION= 1.0a
+PORTVERSION= 1.1
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR= Coro
@@ -19,10 +19,21 @@ BUILD_DEPENDS= ${SITE_PERL}/${PERL_ARCH}/Event.pm:${PORTSDIR}/devel/p5-Event \
${SITE_PERL}/${PERL_ARCH}/Scalar/Util.pm:${PORTSDIR}/lang/p5-Scalar-List-Utils
RUN_DEPENDS= ${BUILD_DEPENDS}
-WRKSRC= ${WRKDIR}/${DISTNAME:S/a$//}
-
PERL_CONFIGURE= yes
+.if !defined(NOPORTDOCS)
+PORTDOCS= Changes
+EXAMPLES= eg/attributes eg/bench eg/cont eg/dns eg/event eg/lwp eg/myhttpd eg/prodcons1 eg/prodcons2 eg/prodcons3 eg/readline
+
+post-install:
+ @${MKDIR} ${DOCSDIR}
+ @${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
+ @${ECHO_MSG} "===> Documentation installed in ${DOCSDIR}."
+ @${MKDIR} ${EXAMPLESDIR}
+ @${INSTALL_DATA} ${EXAMPLES:S|^|${WRKSRC}/|} ${EXAMPLESDIR}
+ @${ECHO_MSG} "===> Examples installed in ${EXAMPLESDIR}."
+.endif
+
.include <bsd.port.pre.mk>
.if ${PERL_LEVEL} < 500600
diff --git a/devel/p5-Coro/distinfo b/devel/p5-Coro/distinfo
index 6dced3c7ecfa..378f5ad4ae31 100644
--- a/devel/p5-Coro/distinfo
+++ b/devel/p5-Coro/distinfo
@@ -1,2 +1,2 @@
-MD5 (Coro-1.0a.tar.gz) = f453b72e943238c1be1ef713a22957e3
-SIZE (Coro-1.0a.tar.gz) = 53985
+MD5 (Coro-1.1.tar.gz) = b15568b1e739dc4d585c2de9f1324d63
+SIZE (Coro-1.1.tar.gz) = 54121
diff --git a/devel/p5-Coro/pkg-plist b/devel/p5-Coro/pkg-plist
index 333baf004d9d..006a17f10d89 100644
--- a/devel/p5-Coro/pkg-plist
+++ b/devel/p5-Coro/pkg-plist
@@ -1,3 +1,4 @@
+@comment $FreeBSD$
%%SITE_PERL%%/%%PERL_ARCH%%/auto/Coro/Event/Event.so
%%SITE_PERL%%/%%PERL_ARCH%%/auto/Coro/Event/Event.bs
%%SITE_PERL%%/%%PERL_ARCH%%/auto/Coro/State/State.so
@@ -20,8 +21,19 @@
%%SITE_PERL%%/%%PERL_ARCH%%/Coro/Util.pm
%%SITE_PERL%%/%%PERL_ARCH%%/Coro/Event.pm
%%SITE_PERL%%/%%PERL_ARCH%%/Coro/Socket.pm
+%%PORTDOCS%%%%EXAMPLESDIR%%/attributes
+%%PORTDOCS%%%%EXAMPLESDIR%%/bench
+%%PORTDOCS%%%%EXAMPLESDIR%%/cont
+%%PORTDOCS%%%%EXAMPLESDIR%%/dns
+%%PORTDOCS%%%%EXAMPLESDIR%%/event
+%%PORTDOCS%%%%EXAMPLESDIR%%/lwp
+%%PORTDOCS%%%%EXAMPLESDIR%%/myhttpd
+%%PORTDOCS%%%%EXAMPLESDIR%%/prodcons1
+%%PORTDOCS%%%%EXAMPLESDIR%%/prodcons2
+%%PORTDOCS%%%%EXAMPLESDIR%%/prodcons3
+%%PORTDOCS%%%%EXAMPLESDIR%%/readline
+%%PORTDOCS%%@dirrm %%EXAMPLESDIR%%
@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/Coro/Event
@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/Coro/State
@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/Coro
@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/Coro
-@unexec rmdir %D/%%SITE_PERL%%/mach 2>/dev/null || true