From 33e48a32a21b9cd1a2f8d111513d40d16caa5e27 Mon Sep 17 00:00:00 2001 From: pawel Date: Tue, 4 Dec 2012 15:42:35 +0000 Subject: - Switch to PLIST_FILES, PORTDATA, PORTDOCS - Add LICENSE - Convert to OptionsNG - Take maintainership PR: ports/173268 Submitted by: nemysis Feature safe: yes --- graphics/cadubi/Makefile | 30 +++++++++++++++++++----------- graphics/cadubi/pkg-plist | 7 ------- 2 files changed, 19 insertions(+), 18 deletions(-) delete mode 100644 graphics/cadubi/pkg-plist (limited to 'graphics') diff --git a/graphics/cadubi/Makefile b/graphics/cadubi/Makefile index e00692c680f9..3e8552b4cc42 100644 --- a/graphics/cadubi/Makefile +++ b/graphics/cadubi/Makefile @@ -1,33 +1,41 @@ -# Ports collection makefile for: cadubi -# Date created: 24 Aug 2001 -# Whom: Kris Kennaway -# +# Created by: Kris Kennaway # $FreeBSD$ -# PORTNAME= cadubi PORTVERSION= 1.3 +PORTREVISION= 1 CATEGORIES= graphics editors MASTER_SITES= http://langworth.com/pub/ -MAINTAINER= ports@FreeBSD.org +MAINTAINER= nemysis@gmx.ch COMMENT= ASCII drawing utility +LICENSE= ART10 + RUN_DEPENDS= p5-Term-ReadKey>=0:${PORTSDIR}/devel/p5-Term-ReadKey USE_PERL5= yes NO_BUILD= yes +PLIST_FILES= bin/${PORTNAME} + +PORTDATA= * +PORTDOCS= * + +.include + do-configure: @${PERL} -pi -e \ 's|Bin/help|Bin/../share/cadubi/help|g' ${WRKSRC}/cadubi do-install: - ${INSTALL_SCRIPT} ${WRKSRC}/cadubi ${PREFIX}/bin - @${MKDIR} ${DATADIR} - ${INSTALL_DATA} ${WRKSRC}/help.txt ${DATADIR} - ${INSTALL_DATA} ${WRKSRC}/logo.txt ${DATADIR} -.if !defined(NOPORTDOCS) + ${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin + ${MKDIR} ${DATADIR} +.for d in help.txt logo.txt + @(cd ${WRKSRC} && ${INSTALL_DATA} ${d} ${DATADIR}) +.endfor + +.if ${PORT_OPTIONS:MDOCS} ${MKDIR} ${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/extras/ansi_term_codes.txt ${DOCSDIR} diff --git a/graphics/cadubi/pkg-plist b/graphics/cadubi/pkg-plist deleted file mode 100644 index 6286a23b54b7..000000000000 --- a/graphics/cadubi/pkg-plist +++ /dev/null @@ -1,7 +0,0 @@ -bin/cadubi -%%DATADIR%%/help.txt -%%DATADIR%%/logo.txt -%%PORTDOCS%%%%DOCSDIR%%/README -%%PORTDOCS%%%%DOCSDIR%%/ansi_term_codes.txt -%%PORTDOCS%%@dirrm %%DOCSDIR%% -@dirrm %%DATADIR%% -- cgit