From 46dfb92a0b1331f7578e118a3150ef5087e1904c Mon Sep 17 00:00:00 2001 From: erwin Date: Mon, 25 Aug 2003 17:49:23 +0000 Subject: Add p5-X11-IdleTime 0.01, perl module that reports number of seconds that X11 has been idle. PR: 54302 Submitted by: Sean Farley --- x11/Makefile | 1 + x11/p5-X11-IdleTime/Makefile | 42 ++++++++++++++++++++++++++++++++++++++ x11/p5-X11-IdleTime/distinfo | 1 + x11/p5-X11-IdleTime/files/patch-aa | 10 +++++++++ x11/p5-X11-IdleTime/pkg-descr | 8 ++++++++ x11/p5-X11-IdleTime/pkg-plist | 7 +++++++ 6 files changed, 69 insertions(+) create mode 100644 x11/p5-X11-IdleTime/Makefile create mode 100644 x11/p5-X11-IdleTime/distinfo create mode 100644 x11/p5-X11-IdleTime/files/patch-aa create mode 100644 x11/p5-X11-IdleTime/pkg-descr create mode 100644 x11/p5-X11-IdleTime/pkg-plist (limited to 'x11') diff --git a/x11/Makefile b/x11/Makefile index 5ecbdef3cfc1..fae52474c425 100644 --- a/x11/Makefile +++ b/x11/Makefile @@ -82,6 +82,7 @@ SUBDIR += offix-clipboard SUBDIR += offix-execute SUBDIR += oooqs + SUBDIR += p5-X11-IdleTime SUBDIR += p5-X11-Protocol SUBDIR += peeper SUBDIR += portoseguro diff --git a/x11/p5-X11-IdleTime/Makefile b/x11/p5-X11-IdleTime/Makefile new file mode 100644 index 000000000000..8dfbde7822ef --- /dev/null +++ b/x11/p5-X11-IdleTime/Makefile @@ -0,0 +1,42 @@ +# New ports collection makefile for: p5-X11-IdleTime +# Date created: 9 July 2003 +# Whom: Sean Farley +# +# $FreeBSD$ +# + +PORTNAME= X11-IdleTime +PORTVERSION= 0.01 +CATEGORIES= x11 perl5 +MASTER_SITES= ${MASTER_SITE_PERL_CPAN} +MASTER_SITE_SUBDIR= X11 +PKGNAMEPREFIX= p5- + +MAINTAINER= ports@FreeBSD.org +COMMENT= Perl module that reports number of seconds that X11 has been idle + +BUILD_DEPENDS= ${SITE_PERL}/Inline.pm:${PORTSDIR}/devel/p5-Inline +RUN_DEPENDS= ${BUILD_DEPENDS} + +USE_XLIB= yes +USE_REINPLACE= yes +PERL_CONFIGURE= yes + +MANPREFIX= ${SITE_PERL} +MAN3= X11::IdleTime.3 + +post-patch: +.for i in IdleTime.pm + @${REINPLACE_CMD} -e 's|/usr/X11R6|${X11BASE}|g' ${WRKSRC}/${i} +.endfor + +.include + +## +## this port requires PERL 5.8.x or later +## +.if ${PERL_LEVEL} < 500800 +IGNORE= Port requires perl 5.8.x or later. Install lang/perl5.8 then try again +.endif + +.include diff --git a/x11/p5-X11-IdleTime/distinfo b/x11/p5-X11-IdleTime/distinfo new file mode 100644 index 000000000000..09b2af496e7b --- /dev/null +++ b/x11/p5-X11-IdleTime/distinfo @@ -0,0 +1 @@ +MD5 (X11-IdleTime-0.01.tar.gz) = 110db52863b1a351752bc2ede6eec2e1 diff --git a/x11/p5-X11-IdleTime/files/patch-aa b/x11/p5-X11-IdleTime/files/patch-aa new file mode 100644 index 000000000000..1e35f2ea03a5 --- /dev/null +++ b/x11/p5-X11-IdleTime/files/patch-aa @@ -0,0 +1,10 @@ +--- IdleTime.pm.orig Fri Feb 7 23:22:42 2003 ++++ IdleTime.pm Wed Jul 9 18:23:01 2003 +@@ -12,6 +12,7 @@ + C => 'DATA', + VERSION => '0.01', + NAME => 'X11::IdleTime', ++ INC => '-I/usr/X11R6/include/', + LIBS => '-L/usr/X11R6/lib/ -lX11 -lXext -lXss', + ); + diff --git a/x11/p5-X11-IdleTime/pkg-descr b/x11/p5-X11-IdleTime/pkg-descr new file mode 100644 index 000000000000..6b0efd47f83e --- /dev/null +++ b/x11/p5-X11-IdleTime/pkg-descr @@ -0,0 +1,8 @@ +X11::IdleTime has one sub routine, GetIdleTime() which returns the number of +seconds that X11 has been idle (no mouse or keyboard activity). + + +Copyright (C) 2003 Adam Wendt + +This library is free software; you can redistribute it and/or modify it under +the same terms as Perl itself. diff --git a/x11/p5-X11-IdleTime/pkg-plist b/x11/p5-X11-IdleTime/pkg-plist new file mode 100644 index 000000000000..f7686974ed84 --- /dev/null +++ b/x11/p5-X11-IdleTime/pkg-plist @@ -0,0 +1,7 @@ +%%SITE_PERL%%/%%PERL_ARCH%%/X11/IdleTime.pm +%%SITE_PERL%%/%%PERL_ARCH%%/auto/X11/IdleTime/.packlist +%%SITE_PERL%%/%%PERL_ARCH%%/auto/X11/IdleTime/IdleTime.bs +%%SITE_PERL%%/%%PERL_ARCH%%/auto/X11/IdleTime/IdleTime.so +@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/X11/IdleTime +@unexec rmdir %D/%%SITE_PERL%%/%%PERL_ARCH%%/auto/X11 2>/dev/null || true +@unexec rmdir %D/%%SITE_PERL%%/%%PERL_ARCH%%/X11 2>/dev/null || true -- cgit