svn commit: r329533 - in head/graphics/ocrad: . files

Felippe de Meirelles Motta lippe at FreeBSD.org
Sun Oct 6 05:06:15 UTC 2013


Author: lippe
Date: Sun Oct  6 05:06:13 2013
New Revision: 329533
URL: http://svnweb.freebsd.org/changeset/ports/329533

Log:
  - Update to 0.22.
  - Stage Support
  - Fix build on current

Added:
  head/graphics/ocrad/files/
  head/graphics/ocrad/files/patch-character_r11.cc   (contents, props changed)
  head/graphics/ocrad/files/patch-feats_test0.cc   (contents, props changed)
  head/graphics/ocrad/files/patch-profile.cc   (contents, props changed)
  head/graphics/ocrad/files/patch-track.cc   (contents, props changed)
Modified:
  head/graphics/ocrad/Makefile
  head/graphics/ocrad/distinfo   (contents, props changed)

Modified: head/graphics/ocrad/Makefile
==============================================================================
--- head/graphics/ocrad/Makefile	Sun Oct  6 05:05:26 2013	(r329532)
+++ head/graphics/ocrad/Makefile	Sun Oct  6 05:06:13 2013	(r329533)
@@ -2,11 +2,11 @@
 # $FreeBSD$
 
 PORTNAME=	ocrad
-PORTVERSION=	0.21
-PORTREVISION=	1
+PORTVERSION=	0.22
 CATEGORIES=	graphics
 MASTER_SITES=	GNU
 MASTER_SITE_SUBDIR=	${PORTNAME}
+EXTRACT_SUFX=	.tar.lz
 
 MAINTAINER=	lippe at FreeBSD.org
 COMMENT=	OCR program implemented as filter
@@ -18,27 +18,32 @@ CONFIGURE_ARGS=	--prefix=${PREFIX} CXXFL
 CXXFLAGS+=	-Wall -W
 MAKE_ARGS=	-j`${SYSCTL} -n hw.ncpu`
 
-PLIST_FILES=	bin/${PORTNAME}
+PLIST_FILES=	bin/${PORTNAME} man/man1/ocrad.1.gz
 
-MAN1=		ocrad.1
-PORTDOCS=	AUTHORS ChangeLog NEWS README TODO
+PORTDOCS=	AUTHORS ChangeLog NEWS README
 PORTEXAMPLES=	*
 
-NO_STAGE=	yes
 .include <bsd.port.options.mk>
 
+.if ${OSVERSION} < 1000024
+EXTRACT_DEPENDS=lzip:${PORTSDIR}/archivers/lzip
+EXTRACT_CMD=	${LOCALBASE}/bin/lzip
+EXTRACT_BEFORE_ARGS=	-cd
+EXTRACT_AFTER_ARGS=	| ${TAR} -xf -
+.endif
+
 do-install:
-	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
-	${INSTALL_MAN} ${WRKSRC}/doc/${MAN1} ${MAN1PREFIX}/man/man1
+	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
+	${INSTALL_MAN} ${WRKSRC}/doc/ocrad.1 ${STAGEDIR}${MAN1PREFIX}/man/man1
 
 .if ${PORT_OPTIONS:MDOCS}
-	@${MKDIR} ${DOCSDIR}
-	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
 .endif
 
 .if ${PORT_OPTIONS:MEXAMPLES}
-	@${MKDIR} ${EXAMPLESDIR}
-	@(cd ${WRKSRC}/testsuite && ${COPYTREE_SHARE} \* ${EXAMPLESDIR})
+	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
+	@(cd ${WRKSRC}/testsuite && ${COPYTREE_SHARE} \* ${STAGEDIR}${EXAMPLESDIR})
 .endif
 
 .include <bsd.port.mk>

Modified: head/graphics/ocrad/distinfo
==============================================================================
--- head/graphics/ocrad/distinfo	Sun Oct  6 05:05:26 2013	(r329532)
+++ head/graphics/ocrad/distinfo	Sun Oct  6 05:06:13 2013	(r329533)
@@ -1,2 +1,2 @@
-SHA256 (ocrad-0.21.tar.gz) = 4ec711239d6b667bac015ef9908cab3ea9f8fd73f098ae355498810c8e82a8cc
-SIZE (ocrad-0.21.tar.gz) = 103962
+SHA256 (ocrad-0.22.tar.lz) = d6c9dcbcf4c9cc643edfe5a03cb6125d6c39abe59e83719effb056d63c5198fd
+SIZE (ocrad-0.22.tar.lz) = 87698

Added: head/graphics/ocrad/files/patch-character_r11.cc
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/graphics/ocrad/files/patch-character_r11.cc	Sun Oct  6 05:06:13 2013	(r329533)
@@ -0,0 +1,10 @@
+--- character_r11.cc.orig	2013-10-03 17:20:43.000000000 -0300
++++ character_r11.cc	2013-10-03 17:20:54.000000000 -0300
+@@ -18,6 +18,7 @@
+ 
+ #include <algorithm>
+ #include <cstdio>
++#include <cstdlib>
+ #include <vector>
+ #include <stdint.h>
+ 

Added: head/graphics/ocrad/files/patch-feats_test0.cc
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/graphics/ocrad/files/patch-feats_test0.cc	Sun Oct  6 05:06:13 2013	(r329533)
@@ -0,0 +1,10 @@
+--- feats_test0.cc.orig	2013-10-03 17:19:50.000000000 -0300
++++ feats_test0.cc	2013-10-03 17:20:00.000000000 -0300
+@@ -18,6 +18,7 @@
+ 
+ #include <algorithm>
+ #include <cstdio>
++#include <cstdlib>
+ #include <vector>
+ #include <stdint.h>
+ 

Added: head/graphics/ocrad/files/patch-profile.cc
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/graphics/ocrad/files/patch-profile.cc	Sun Oct  6 05:06:13 2013	(r329533)
@@ -0,0 +1,10 @@
+--- profile.cc.orig	2013-10-03 17:16:53.000000000 -0300
++++ profile.cc	2013-10-03 17:17:01.000000000 -0300
+@@ -18,6 +18,7 @@
+ 
+ #include <algorithm>
+ #include <cstdio>
++#include <cstdlib>
+ #include <vector>
+ #include <stdint.h>
+ 

Added: head/graphics/ocrad/files/patch-track.cc
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/graphics/ocrad/files/patch-track.cc	Sun Oct  6 05:06:13 2013	(r329533)
@@ -0,0 +1,10 @@
+--- track.cc.orig	2013-10-03 17:16:32.000000000 -0300
++++ track.cc	2013-10-03 17:16:46.000000000 -0300
+@@ -18,6 +18,7 @@
+ 
+ #include <algorithm>
+ #include <cstdio>
++#include <cstdlib>
+ #include <vector>
+ 
+ #include "common.h"


More information about the svn-ports-head mailing list