View | Details | Raw Unified | Return to bug 63137
Collapse All | Expand All

(-)graphics/cadubi/Makefile (-7 / +13 lines)
Lines 6-30 Link Here
6
#
6
#
7
7
8
PORTNAME=	cadubi
8
PORTNAME=	cadubi
9
PORTVERSION=	1.2
9
PORTVERSION=	1.3
10
CATEGORIES=	graphics editors
10
CATEGORIES=	graphics editors
11
MASTER_SITES=	ftp://ftp.dei.uc.pt/.raid1/linux/files/console/graphics/ \
11
MASTER_SITES=	http://langworth.com/downloads/
12
		http://www.logicallemon.com/projects/cadubi/downloads/
13
DISTNAME=	${PORTNAME}_${PORTVERSION}
14
12
15
MAINTAINER=	ports@FreeBSD.org
13
MAINTAINER=	ports@FreeBSD.org
16
COMMENT=	ASCII drawing utility
14
COMMENT=	ASCII drawing utility
17
15
18
RUN_DEPENDS=	${SITE_PERL}/${PERL_ARCH}/Term/ReadKey.pm:${PORTSDIR}/devel/p5-Term-ReadKey
16
RUN_DEPENDS=	${SITE_PERL}/${PERL_ARCH}/Term/ReadKey.pm:${PORTSDIR}/devel/p5-Term-ReadKey
19
17
18
USE_PERL5=	yes
20
NO_BUILD=	yes
19
NO_BUILD=	yes
21
20
21
do-configure:
22
	@${PERL} -pi -e \
23
		's|Bin/help|Bin/../share/cadubi/help|g' ${WRKSRC}/cadubi
24
22
do-install:
25
do-install:
23
	${INSTALL_SCRIPT} ${WRKSRC}/cadubi ${PREFIX}/bin
26
	${INSTALL_SCRIPT} ${WRKSRC}/cadubi ${PREFIX}/bin
24
	${INSTALL_SCRIPT} ${WRKSRC}/CADUBI.pl ${PREFIX}/libexec
27
	@${MKDIR} ${DATADIR}
28
	${INSTALL_DATA} ${WRKSRC}/help.txt ${DATADIR}
29
	${INSTALL_DATA} ${WRKSRC}/logo.txt ${DATADIR}
25
.if !defined(NOPORTDOCS)
30
.if !defined(NOPORTDOCS)
26
	${MKDIR} ${PREFIX}/share/doc/cadubi
31
	${MKDIR} ${DOCSDIR}
27
	${INSTALL_DATA} ${WRKSRC}/CADUBI.help ${PREFIX}/share/doc/cadubi
32
	${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
33
	${INSTALL_DATA} ${WRKSRC}/extras/ansi_term_codes.txt ${DOCSDIR}
28
.endif
34
.endif
29
35
30
.include <bsd.port.mk>
36
.include <bsd.port.mk>
(-)graphics/cadubi/distinfo (-2 / +2 lines)
Lines 1-2 Link Here
1
MD5 (cadubi_1.2.tar.gz) = 53315c148dffda233f04ad83bafd20aa
1
MD5 (cadubi-1.3.tar.gz) = e4ba1f6995bfdae8639341446782b859
2
SIZE (cadubi_1.2.tar.gz) = 46347
2
SIZE (cadubi-1.3.tar.gz) = 12559
(-)graphics/cadubi/files/patch-CADUBI_pl (-32 lines)
Lines 1-32 Link Here
1
--- CADUBI.pl.orig	Thu Jan 27 03:54:45 2000
2
+++ CADUBI.pl	Sun Jul 29 01:10:28 2001
3
@@ -59,6 +59,7 @@ $AUDIBLE = 1;			# beep unless -m, --mute
4
 $status_changed = 1;	# used with &status so we don't constantly redraw.
5
 $current_filename = undef;	# name of file we're working with
6
 $cadubi_done = 0;		# main loop var
7
+$Helpfile = $Bin . "/../share/doc/cadubi";
8
 
9
 # runtime statements
10
 &initKeys(); 		# setup %controlkeys and %keymap
11
@@ -716,10 +717,10 @@ sub HandleKeystroke {
12
 	
13
 	# help
14
 	if (ord($key) == $keymap{'^h'}) { #Help
15
-		if (-e $Bin.'/CADUBI.help') {
16
+		if (-e $Helpfile.'/CADUBI.help') {
17
 			my @oldmap = @charmap;
18
 			my @oldpos = @pos;
19
-			&readfile($Bin.'/CADUBI.help');
20
+			&readfile($Helpfile.'/CADUBI.help');
21
 			&status('Press a key to continue...', 1);
22
 			my $temp = ReadKey(0);
23
 			@charmap = @oldmap;
24
@@ -729,7 +730,7 @@ sub HandleKeystroke {
25
 			&status;
26
 		} else {
27
 			&beep;
28
-			&status("'".$Bin."/CADUBI.help' not available");
29
+			&status("'".$Helpfile."/CADUBI.help' not available");
30
 		}
31
 		return 0;
32
 	}
(-)graphics/cadubi/files/patch-cadubi (-9 lines)
Lines 1-9 Link Here
1
--- cadubi.orig	Thu Jan 27 03:54:51 2000
2
+++ cadubi	Sun Jul 29 01:10:59 2001
3
@@ -32,5 +32,5 @@ use FindBin qw($Bin); use lib "$Bin/../l
4
 my $CADUBI_Arguments = undef;
5
 $CADUBI_Arguments .= ' --mute' unless $AUDIBLE;
6
 $CADUBI_Arguments .= ' '.$ADD_OPS if $ADD_OPS;
7
-exec ('perl '.$Bin.'/CADUBI.pl'.$CADUBI_Arguments.' '.join(' ',@ARGV));
8
+exec ('perl '.$Bin.'/../libexec/CADUBI.pl'.$CADUBI_Arguments.' '.join(' ',@ARGV));
9
 
(-)graphics/cadubi/pkg-descr (-1 / +1 lines)
Lines 6-9 Link Here
6
called "ASCII art," is used in various places such as online
6
called "ASCII art," is used in various places such as online
7
BBSes, email and login prompts.
7
BBSes, email and login prompts.
8
8
9
WWW: http://www.logicallemon.com/projects/cadubi/
9
WWW: http://langworth.com/CadubiProject
(-)graphics/cadubi/pkg-plist (-3 / +6 lines)
Lines 1-4 Link Here
1
bin/cadubi
1
bin/cadubi
2
libexec/CADUBI.pl
2
%%DATADIR%%/help.txt
3
%%PORTDOCS%%share/doc/cadubi/CADUBI.help
3
%%DATADIR%%/logo.txt
4
%%PORTDOCS%%@dirrm share/doc/cadubi
4
%%PORTDOCS%%%%DOCSDIR%%/README
5
%%PORTDOCS%%%%DOCSDIR%%/ansi_term_codes.txt
6
%%PORTDOCS%%@dirrm %%DOCSDIR%%
7
@dirrm %%DATADIR%%

Return to bug 63137