Bug 177130 - [PATCH] graphics/ocrad: Convert to OptionsNG
Summary: [PATCH] graphics/ocrad: Convert to OptionsNG
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Felippe de Meirelles Motta
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-03-20 03:10 UTC by nemysis
Modified: 2013-03-21 21:48 UTC (History)
1 user (show)

See Also:


Attachments
ocrad-0.21_1.patch (2.44 KB, patch)
2013-03-20 03:10 UTC, nemysis
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description nemysis 2013-03-20 03:10:01 UTC
Removed file(s):
- pkg-plist

Port maintainer (lippe@FreeBSD.org) is cc'd.

Generated and tested manually, tested with port test, sent with FreeBSD Port Tools 0.99_6 (mode: change, diff: ports)
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2013-03-20 03:10:14 UTC
Responsible Changed
From-To: freebsd-ports-bugs->lippe

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 dfilter service freebsd_committer freebsd_triage 2013-03-21 20:41:17 UTC
Author: lippe
Date: Thu Mar 21 20:41:09 2013
New Revision: 314871
URL: http://svnweb.freebsd.org/changeset/ports/314871

Log:
  - Convert to OptionsNG
  - Make portlint happy
  
  PR:		ports/177130
  Submitted by:	nemysis <nemysis@gmx.ch>
  Approved by:	lippe (maintainer)

Deleted:
  head/graphics/ocrad/pkg-plist
Modified:
  head/graphics/ocrad/Makefile   (contents, props changed)

Modified: head/graphics/ocrad/Makefile
==============================================================================
--- head/graphics/ocrad/Makefile	Thu Mar 21 20:38:15 2013	(r314870)
+++ head/graphics/ocrad/Makefile	Thu Mar 21 20:41:09 2013	(r314871)
@@ -1,39 +1,43 @@
-# New ports collection makefile for:	graphics/ocrad
-# Date created:				12.11.2003
-# Whom:					Ulrich Spoerlein <q@uni.de>
-#
+# Created by: Ulrich Spoerlein <q@uni.de>
 # $FreeBSD$
-#
 
 PORTNAME=	ocrad
 PORTVERSION=	0.21
+PORTREVISION=	1
 CATEGORIES=	graphics
-MASTER_SITES=	${MASTER_SITE_GNU}
+MASTER_SITES=	GNU
 MASTER_SITE_SUBDIR=	${PORTNAME}
 
 MAINTAINER=	lippe@FreeBSD.org
 COMMENT=	OCR program implemented as filter
 
-HAS_CONFIGURE=	yes
+LICENSE=	GPLv3
 
+HAS_CONFIGURE=	yes
 CONFIGURE_ARGS=	--prefix=${PREFIX} CXXFLAGS="${CXXFLAGS}" CXX="${CXX}"
 CXXFLAGS+=	-Wall -W
 MAKE_ARGS=	-j`${SYSCTL} -n hw.ncpu`
 
-DOCS=		AUTHORS COPYING ChangeLog NEWS README TODO INSTALL
-EXAMPLES=	test.pbm test.txt check.sh
+PLIST_FILES=	bin/${PORTNAME}
+
 MAN1=		ocrad.1
+PORTDOCS=	AUTHORS ChangeLog NEWS README TODO
+PORTEXAMPLES=	*
+
+.include <bsd.port.options.mk>
 
 do-install:
-	${INSTALL_PROGRAM} ${WRKSRC}/ocrad ${PREFIX}/bin/
-	${INSTALL_MAN} ${WRKSRC}/doc/ocrad.1 ${MAN1PREFIX}/man/man1/
-.if !defined(NOPORTDOCS)
+	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
+	${INSTALL_MAN} ${WRKSRC}/doc/${MAN1} ${MAN1PREFIX}/man/man1
+
+.if ${PORT_OPTIONS:MDOCS}
 	@${MKDIR} ${DOCSDIR}
-	${INSTALL_DATA} ${DOCS:S,^,${WRKSRC}/,} ${DOCSDIR}/
+	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
 .endif
-.if !defined(NOPORTEXAMPLES)
+
+.if ${PORT_OPTIONS:MEXAMPLES}
 	@${MKDIR} ${EXAMPLESDIR}
-	${INSTALL_DATA} ${EXAMPLES:S,^,${WRKSRC}/testsuite/,} ${EXAMPLESDIR}/
+	@(cd ${WRKSRC}/testsuite && ${COPYTREE_SHARE} \* ${EXAMPLESDIR})
 .endif
 
 .include <bsd.port.mk>
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
Comment 3 Felippe de Meirelles Motta freebsd_committer freebsd_triage 2013-03-21 21:48:09 UTC
State Changed
From-To: open->closed

Committed. Thanks!