Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 4 Dec 2012 15:42:36 +0000 (UTC)
From:      Pawel Pekala <pawel@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r308244 - head/graphics/cadubi
Message-ID:  <201212041542.qB4FgaT4024084@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pawel
Date: Tue Dec  4 15:42:35 2012
New Revision: 308244
URL: http://svnweb.freebsd.org/changeset/ports/308244

Log:
  - Switch to PLIST_FILES, PORTDATA, PORTDOCS
  - Add LICENSE
  - Convert to OptionsNG
  - Take maintainership
  
  PR:             ports/173268
  Submitted by:   nemysis <nemysis@gmx.ch>
  Feature safe:   yes

Deleted:
  head/graphics/cadubi/pkg-plist
Modified:
  head/graphics/cadubi/Makefile

Modified: head/graphics/cadubi/Makefile
==============================================================================
--- head/graphics/cadubi/Makefile	Tue Dec  4 15:20:33 2012	(r308243)
+++ head/graphics/cadubi/Makefile	Tue Dec  4 15:42:35 2012	(r308244)
@@ -1,33 +1,41 @@
-# Ports collection makefile for:  cadubi
-# Date created:			  24 Aug 2001
-# Whom:				  Kris Kennaway <kris@FreeBSD.org>
-#
+# Created by: Kris Kennaway <kris@FreeBSD.org>
 # $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 <bsd.port.options.mk>
+
 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}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201212041542.qB4FgaT4024084>