diff options
author | erwin <erwin@FreeBSD.org> | 2003-08-26 01:49:23 +0800 |
---|---|---|
committer | erwin <erwin@FreeBSD.org> | 2003-08-26 01:49:23 +0800 |
commit | 46dfb92a0b1331f7578e118a3150ef5087e1904c (patch) | |
tree | afc4e45d3dfe7567efa91e4fb4affcac7463c959 /x11 | |
parent | 2bf38f20a02af4b90a33a3d4235847565c684751 (diff) | |
download | freebsd-ports-gnome-46dfb92a0b1331f7578e118a3150ef5087e1904c.tar.gz freebsd-ports-gnome-46dfb92a0b1331f7578e118a3150ef5087e1904c.tar.zst freebsd-ports-gnome-46dfb92a0b1331f7578e118a3150ef5087e1904c.zip |
Add p5-X11-IdleTime 0.01,
perl module that reports number of
seconds that X11 has been idle.
PR: 54302
Submitted by: Sean Farley <sean-freebsd@farley.org>
Diffstat (limited to 'x11')
-rw-r--r-- | x11/Makefile | 1 | ||||
-rw-r--r-- | x11/p5-X11-IdleTime/Makefile | 42 | ||||
-rw-r--r-- | x11/p5-X11-IdleTime/distinfo | 1 | ||||
-rw-r--r-- | x11/p5-X11-IdleTime/files/patch-aa | 10 | ||||
-rw-r--r-- | x11/p5-X11-IdleTime/pkg-descr | 8 | ||||
-rw-r--r-- | x11/p5-X11-IdleTime/pkg-plist | 7 |
6 files changed, 69 insertions, 0 deletions
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 <sean-freebsd@farley.org> +# +# $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 <bsd.port.pre.mk> + +## +## 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 <bsd.port.post.mk> 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 |