From tkato432@yahoo.com  Thu Feb 13 18:31:03 2014
Return-Path: <tkato432@yahoo.com>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1])
	(using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by hub.freebsd.org (Postfix) with ESMTPS id 7DE3E99C
	for <FreeBSD-gnats-submit@FreeBSD.org>; Thu, 13 Feb 2014 18:30:55 +0000 (UTC)
Received: from omta01.auone-net.jp (mail-or1-f17.auone-net.jp [106.187.231.17])
	by mx1.freebsd.org (Postfix) with ESMTP id 4DB9E1297
	for <FreeBSD-gnats-submit@FreeBSD.org>; Thu, 13 Feb 2014 18:30:55 +0000 (UTC)
Received: from coppermine.my.domain (ZT034098.ppp.dion.ne.jp [59.128.34.98])
	by omta01.auone-net.jp (au one net mail) with ESMTP id 08DD8980007
	for <FreeBSD-gnats-submit@FreeBSD.org>; Fri, 14 Feb 2014 03:30:52 +0900 (JST)
Message-Id: <20140214030537.3a306b1dfed53843fce3b992@yahoo.com>
Date: Fri, 14 Feb 2014 03:05:37 +0900
From: KATO Tsuguru <tkato432@yahoo.com>
To: FreeBSD-gnats-submit@FreeBSD.org
Subject: graphics/optar: Support CC/CFLAGS properly

>Number:         186734
>Category:       ports
>Synopsis:       graphics/optar: Support CC/CFLAGS properly
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    miwi
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Feb 13 18:40:00 UTC 2014
>Closed-Date:    Sun Feb 23 16:13:50 UTC 2014
>Last-Modified:  Sun Feb 23 16:20:01 UTC 2014
>Originator:     KATO Tsuguru
>Release:        FreeBSD 8.4-RELEASE-p7 i386
>Organization:
>Environment:
>Description:
- Support CC/CFLAGS properly
- Update MASTER_SITES
- Add LICENSE

>How-To-Repeat:
>Fix:

diff -urN /usr/ports/graphics/optar/Makefile graphics/optar/Makefile
--- /usr/ports/graphics/optar/Makefile	2014-02-11 02:39:11.000000000 +0900
+++ graphics/optar/Makefile	2014-02-14 00:00:00.000000000 +0900
@@ -3,31 +3,38 @@
 
 PORTNAME=	optar
 PORTVERSION=	1.0
-PORTREVISION=	3
+PORTREVISION=	4
 CATEGORIES=	graphics
-MASTER_SITES=	http://xps.crucible.gr/
-DISTFILES=	optar.tgz \
-		font.h
-EXTRACT_ONLY=	optar.tgz
+MASTER_SITES=	http://ronja.twibright.com/optar/
+DIST_SUBDIR=	repacked
+DISTFILES=	optar.tgz
 
 MAINTAINER=	ports@FreeBSD.org
-COMMENT=	A tool for encoding data on paper
+COMMENT=	Tool for encoding data on paper
 
-DEPRECATED=	No more public distfiles
-EXPIRATION_DATE=	2014-03-10
+LICENSE=	GPLv2
 
-BUILD_DEPENDS=	${LOCALBASE}/include/libpng15/png.h:${PORTSDIR}/graphics/png
+LIB_DEPENDS=	libpng15.so:${PORTSDIR}/graphics/png
 RUN_DEPENDS=	convert:${PORTSDIR}/graphics/ImageMagick
 
-USE_GMAKE=	yes
-WRKSRC=		${WRKDIR}/optar
+WRKSRC=		${WRKDIR}/optar_dist
+
+USES=		gmake
 
 PLIST_FILES=	bin/optar bin/unoptar bin/pgm2ps
 
-NO_STAGE=	yes
-post-extract:
-	@${RM} -v ${WRKSRC}/font.h
-	@${CP} -v ${DISTDIR}/font.h ${WRKSRC}/font.h
-	@${SED} 's:/usr/local:${LOCALBASE}:g' ${WRKSRC}/Makefile > ${WRKSRC}/Makefile.new
-	@${MV} ${WRKSRC}/Makefile.new ${WRKSRC}/Makefile
+post-patch:
+	@${REINPLACE_CMD} -e \
+		's|^CFLAGS|#CFLAGS| ; \
+		 s|gcc |$$(CC) | ; \
+		 s|-I/usr/local/include/libpng|`libpng-config --I_opts`| ; \
+		 s|-L/usr/local/lib|`libpng-config --L_opts`|' \
+		${WRKSRC}/Makefile
+
+do-install:
+	(cd ${WRKSRC} && ${INSTALL_PROGRAM} optar unoptar \
+		${STAGEDIR}${PREFIX}/bin)
+	(cd ${WRKSRC} && ${INSTALL_SCRIPT} pgm2ps \
+		${STAGEDIR}${PREFIX}/bin)
+
 .include <bsd.port.mk>
diff -urN /usr/ports/graphics/optar/distinfo graphics/optar/distinfo
--- /usr/ports/graphics/optar/distinfo	2014-01-23 05:30:25.000000000 +0900
+++ graphics/optar/distinfo	2014-02-14 00:00:00.000000000 +0900
@@ -1,4 +1,2 @@
-SHA256 (optar.tgz) = 9c37dfba31e2d5ebb43a2ac066b67d774bf7ba059f882047668be6567793c942
-SIZE (optar.tgz) = 28384
-SHA256 (font.h) = f4e284c152fde4034f0950e4b52ee137f0e3085dd510f3ccc898aaaf3d8f3bce
-SIZE (font.h) = 81164
+SHA256 (repacked/optar.tgz) = b78fa6a41f6c699917f8b537c63bdf99b93133f034b4e1eaeabd0b6cbc9c5819
+SIZE (repacked/optar.tgz) = 37825
diff -urN /usr/ports/graphics/optar/pkg-descr graphics/optar/pkg-descr
--- /usr/ports/graphics/optar/pkg-descr	2014-01-23 05:30:25.000000000 +0900
+++ graphics/optar/pkg-descr	2014-02-14 00:00:00.000000000 +0900
@@ -1,6 +1,5 @@
-Optar stands for OPTical ARchiver.
-It's a codec for encoding data on paper, then you print it with a laser printer.
-If you want to read the recording, scan it with a scanner and feed into the
-decoder program.
+Optar stands for OPTical ARchiver. It's a codec for encoding data on
+paper, then you print it with a laser printer. If you want to read the
+recording, scan it with a scanner and feed into the decoder program.
 
 WWW: http://ronja.twibright.com/optar/
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->miwi 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Thu Feb 13 18:40:08 UTC 2014 
Responsible-Changed-Why:  
miwi@ wants this submitter's PRs (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=186734 
State-Changed-From-To: open->feedback 
State-Changed-By: edwin 
State-Changed-When: Thu Feb 13 18:40:10 UTC 2014 
State-Changed-Why:  
Awaiting maintainers feedback (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=186734 

From: Edwin Groothuis <edwin@FreeBSD.org>
To: antonakis@gmail.com
Cc: bug-followup@FreeBSD.org
Subject: Re: ports/186734: graphics/optar: Support CC/CFLAGS properly
Date: Thu, 13 Feb 2014 18:40:09 UT

 Maintainer of graphics/optar,
 
 Please note that PR ports/186734 has just been submitted.
 
 If it contains a patch for an upgrade, an enhancement or a bug fix
 you agree on, reply to this email stating that you approve the patch
 and a committer will take care of it.
 
 The full text of the PR can be found at:
     http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/186734
 
 -- 
 Edwin Groothuis via the GNATS Auto Assign Tool
 edwin@FreeBSD.org
State-Changed-From-To: feedback->closed 
State-Changed-By: miwi 
State-Changed-When: Sun Feb 23 16:13:50 UTC 2014 
State-Changed-Why:  
Committed. Thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=186734 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/186734: commit references a PR
Date: Sun, 23 Feb 2014 16:14:07 +0000 (UTC)

 Author: miwi
 Date: Sun Feb 23 16:13:58 2014
 New Revision: 345749
 URL: http://svnweb.freebsd.org/changeset/ports/345749
 QAT: https://qat.redports.org/buildarchive/r345749/
 
 Log:
   - Support CC/CFLAGS properly
   - Update MASTER_SITES
   - Add LICENSE
   
   PR:		186734
   Submitted by:	ports fury
 
 Modified:
   head/graphics/optar/Makefile
   head/graphics/optar/distinfo
   head/graphics/optar/pkg-descr
 
 Modified: head/graphics/optar/Makefile
 ==============================================================================
 --- head/graphics/optar/Makefile	Sun Feb 23 16:11:38 2014	(r345748)
 +++ head/graphics/optar/Makefile	Sun Feb 23 16:13:58 2014	(r345749)
 @@ -3,31 +3,37 @@
  
  PORTNAME=	optar
  PORTVERSION=	1.0
 -PORTREVISION=	3
 +PORTREVISION=	4
  CATEGORIES=	graphics
 -MASTER_SITES=	http://xps.crucible.gr/
 -DISTFILES=	optar.tgz \
 -		font.h
 -EXTRACT_ONLY=	optar.tgz
 +MASTER_SITES=	http://ronja.twibright.com/
 +DISTFILES=	optar.tgz
  
  MAINTAINER=	ports@FreeBSD.org
 -COMMENT=	A tool for encoding data on paper
 +COMMENT=	Tool for encoding data on paper
  
 -DEPRECATED=	No more public distfiles
 -EXPIRATION_DATE=	2014-03-10
 +LICENSE=	GPLv2
  
 -BUILD_DEPENDS=	${LOCALBASE}/include/libpng15/png.h:${PORTSDIR}/graphics/png
 +LIB_DEPENDS=	libpng15.so:${PORTSDIR}/graphics/png
  RUN_DEPENDS=	convert:${PORTSDIR}/graphics/ImageMagick
  
 -USE_GMAKE=	yes
 -WRKSRC=		${WRKDIR}/optar
 +WRKSRC=		${WRKDIR}/optar_dist
 +
 +USES=		gmake
  
  PLIST_FILES=	bin/optar bin/unoptar bin/pgm2ps
  
 -NO_STAGE=	yes
 -post-extract:
 -	@${RM} -v ${WRKSRC}/font.h
 -	@${CP} -v ${DISTDIR}/font.h ${WRKSRC}/font.h
 -	@${SED} 's:/usr/local:${LOCALBASE}:g' ${WRKSRC}/Makefile > ${WRKSRC}/Makefile.new
 -	@${MV} ${WRKSRC}/Makefile.new ${WRKSRC}/Makefile
 +post-patch:
 +	@${REINPLACE_CMD} -e \
 +		's|^CFLAGS|#CFLAGS| ; \
 +		 s|gcc |$$(CC) | ; \
 +		 s|-I/usr/local/include/libpng|`libpng-config --I_opts`| ; \
 +		 s|-L/usr/local/lib|`libpng-config --L_opts`|' \
 +		${WRKSRC}/Makefile
 +
 +do-install:
 +	(cd ${WRKSRC} && ${INSTALL_PROGRAM} optar unoptar \
 +		${STAGEDIR}${PREFIX}/bin)
 +	(cd ${WRKSRC} && ${INSTALL_SCRIPT} pgm2ps \
 +		${STAGEDIR}${PREFIX}/bin)
 +
  .include <bsd.port.mk>
 
 Modified: head/graphics/optar/distinfo
 ==============================================================================
 --- head/graphics/optar/distinfo	Sun Feb 23 16:11:38 2014	(r345748)
 +++ head/graphics/optar/distinfo	Sun Feb 23 16:13:58 2014	(r345749)
 @@ -1,4 +1,2 @@
 -SHA256 (optar.tgz) = 9c37dfba31e2d5ebb43a2ac066b67d774bf7ba059f882047668be6567793c942
 -SIZE (optar.tgz) = 28384
 -SHA256 (font.h) = f4e284c152fde4034f0950e4b52ee137f0e3085dd510f3ccc898aaaf3d8f3bce
 -SIZE (font.h) = 81164
 +SHA256 (optar.tgz) = b78fa6a41f6c699917f8b537c63bdf99b93133f034b4e1eaeabd0b6cbc9c5819
 +SIZE (optar.tgz) = 37825
 
 Modified: head/graphics/optar/pkg-descr
 ==============================================================================
 --- head/graphics/optar/pkg-descr	Sun Feb 23 16:11:38 2014	(r345748)
 +++ head/graphics/optar/pkg-descr	Sun Feb 23 16:13:58 2014	(r345749)
 @@ -1,6 +1,5 @@
 -Optar stands for OPTical ARchiver.
 -It's a codec for encoding data on paper, then you print it with a laser printer.
 -If you want to read the recording, scan it with a scanner and feed into the
 -decoder program.
 +Optar stands for OPTical ARchiver. It's a codec for encoding data on
 +paper, then you print it with a laser printer. If you want to read the
 +recording, scan it with a scanner and feed into the decoder program.
  
  WWW: http://ronja.twibright.com/optar/
 _______________________________________________
 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"
 
>Unformatted:
