import p5-X-Osd

XOSD displays text on your screen, sounds simple right?  The difference
is it is unmanaged and shaped, so it appears transparent.  This gives
the effect of an On Screen Display, like your TV/VCR etc.

looks good to/feedback from jasper@
This commit is contained in:
simon 2009-02-02 22:59:23 +00:00
parent fd2698e7da
commit 0bd5575fb0
5 changed files with 85 additions and 0 deletions

32
x11/p5-X-Osd/Makefile Normal file
View File

@ -0,0 +1,32 @@
# $OpenBSD: Makefile,v 1.1.1.1 2009/02/02 22:59:23 simon Exp $
COMMENT = Perl extension to the X On Screen Display library (xosd)
SHARED_ONLY = Yes
MODULES = cpan
DISTNAME = X-Osd-0.7
CATEGORIES = x11
# Perl
PERMIT_PACKAGE_CDROM = Yes
PERMIT_PACKAGE_FTP = Yes
PERMIT_DISTFILES_CDROM = Yes
PERMIT_DISTFILES_FTP = Yes
LIB_DEPENDS = xosd::x11/xosd
USE_X11 = Yes
XAUTHORITY ?= ${HOME}/.Xauthority
REGRESS_IS_INTERACTIVE = x11
REGRESS_FLAGS = DISPLAY=${DISPLAY} XAUTHORITY=${XAUTHORITY}
pre-regress:
.if !exists(${XAUTHORITY})
@echo 1>&2 "The regression tests require a running instance of X."
@echo 1>&2 "You will also need to set the XAUTHORITY environment"
@echo 1>&2 "variable to point to the appropriate .Xauthority file."
@exit 1
.endif
.include <bsd.port.mk>

5
x11/p5-X-Osd/distinfo Normal file
View File

@ -0,0 +1,5 @@
MD5 (X-Osd-0.7.tar.gz) = 5muUda7lKbKGMn/iQOSJ8A==
RMD160 (X-Osd-0.7.tar.gz) = bmkc7oc4tn59RrFO5TFQtRs/HFg=
SHA1 (X-Osd-0.7.tar.gz) = 7kzo7/NHlOJJLxSF+1FR+w5Zu2Y=
SHA256 (X-Osd-0.7.tar.gz) = 47r+Ec1RrZsePR3xhRb5uxukYvmBSDuSLytiewgZA5E=
SIZE (X-Osd-0.7.tar.gz) = 6442

View File

@ -0,0 +1,34 @@
$OpenBSD: patch-t_1-basic_t,v 1.1.1.1 2009/02/02 22:59:23 simon Exp $
Fix use of barewords in tests, bug filed upstream at
http://rt.cpan.org/Public/Bug/Display.html?id=42943
--- t/1-basic.t.orig Tue Sep 16 09:36:13 2008
+++ t/1-basic.t Tue Sep 16 09:36:30 2008
@@ -58,7 +58,7 @@ print(($@ ? 'not ok' : 'ok'), ' ', ($test_count++), "\
print(($@ ? 'not ok' : 'ok'), ' ', ($test_count++), "\n");
eval {
- $osd->set_colour(red);
+ $osd->set_colour('red');
$osd->string(0, 'Red test line 1');
delay();
$osd->string(1, 'Red test line 2');
@@ -82,7 +82,7 @@ eval {
$osd->set_shadow_offset(4);
$osd->string(1, 'Shadow colour test 1');
delay();
- $osd->set_shadow_colour(green);
+ $osd->set_shadow_colour('green');
$osd->string(2, 'Shadow colour test 2');
delay();
};
@@ -99,7 +99,7 @@ print (($@ ? 'not ok' : 'ok'), ' ', ($test_count++), "
eval {
$osd->set_shadow_offset(0);
- $osd->set_outline_colour(blue);
+ $osd->set_outline_colour('blue');
$osd->set_outline_offset(2);
$osd->string(1, 'Outline colour and offset test 1');
delay(1);

3
x11/p5-X-Osd/pkg/DESCR Normal file
View File

@ -0,0 +1,3 @@
XOSD displays text on your screen, sounds simple right? The difference
is it is unmanaged and shaped, so it appears transparent.
This gives the effect of an On Screen Display, like your TV/VCR etc.

11
x11/p5-X-Osd/pkg/PLIST Normal file
View File

@ -0,0 +1,11 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2009/02/02 22:59:23 simon Exp $
${P5ARCH}/
${P5ARCH}/X/
${P5ARCH}/X/Osd.pm
${P5ARCH}/auto/
${P5ARCH}/auto/X/
${P5ARCH}/auto/X/Osd/
${P5ARCH}/auto/X/Osd/Osd.bs
${P5ARCH}/auto/X/Osd/Osd.so
${P5ARCH}/auto/X/Osd/autosplit.ix
@man man/man3p/X::Osd.3p