Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 1 Jun 2013 11:23:22 +0000 (UTC)
From:      Hiroki Sato <hrs@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r319560 - in head/cad/gdt: . files
Message-ID:  <201306011123.r51BNMDP063364@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: hrs
Date: Sat Jun  1 11:23:22 2013
New Revision: 319560
URL: http://svnweb.freebsd.org/changeset/ports/319560

Log:
  - Update to 4.0.
  - Trim old-style header.
  - Add LICENSE.
  - Use shebangfix.
  - Replace pathname lookups in the scripts with fixed pathnames.

Added:
  head/cad/gdt/files/patch-Examples-scalegds   (contents, props changed)
Modified:
  head/cad/gdt/Makefile
  head/cad/gdt/distinfo
  head/cad/gdt/files/patch-Examples-gdsinfo

Modified: head/cad/gdt/Makefile
==============================================================================
--- head/cad/gdt/Makefile	Sat Jun  1 10:27:59 2013	(r319559)
+++ head/cad/gdt/Makefile	Sat Jun  1 11:23:22 2013	(r319560)
@@ -1,30 +1,28 @@
-# New ports collection makefile for:	gdt
-# Date created:				Sun, Apr 29 2007
-# Whom:					Hiroki Sato <hrs@FreeBSD.org>
-#
 # $FreeBSD$
-#
 
 PORTNAME=	gdt
-PORTVERSION=	3.0.5
+PORTVERSION=	4.0
 CATEGORIES=	cad
-MASTER_SITES=	SF/gds2/gds2/GDT-${PORTVERSION}
+MASTER_SITES=	SF/gds2/gds2/
 DISTNAME=	${PORTNAME:U}-${PORTVERSION}
 
 MAINTAINER=	hrs@FreeBSD.org
 COMMENT=	GDS2/GDT format translator
 
+LICENSE=	GPLv2
+
 USE_PERL5_RUN=	yes
+USES=	shebangfix
+SHEBANG_FILES=	Examples/gdsinfo Examples/scalegds
 WRKSRC=		${WRKDIR}/${PORTNAME:U}-${PORTVERSION}
 PLIST_FILES=	bin/gdsinfo bin/gds2gdt bin/gdt2gds bin/scalegds
 
 post-patch:
-	${REINPLACE_CMD} 's,^#!/usr/bin/perl,#!${PERL},' \
-		${WRKSRC}/Examples/gdsinfo \
-		${WRKSRC}/Examples/scalegds
+	${REINPLACE_CMD} -e 's,%%PREFIX%%,${PREFIX},' \
+		${WRKSRC}/Examples/gdsinfo ${WRKSRC}/Examples/scalegds
 
 pre-build:
-	${CP} ${FILESDIR}/Makefile ${WRKSRC}
+	${INSTALL_DATA} ${FILESDIR}/Makefile ${WRKSRC}
 
 post-install:
 	${INSTALL_SCRIPT} \

Modified: head/cad/gdt/distinfo
==============================================================================
--- head/cad/gdt/distinfo	Sat Jun  1 10:27:59 2013	(r319559)
+++ head/cad/gdt/distinfo	Sat Jun  1 11:23:22 2013	(r319560)
@@ -1,2 +1,2 @@
-SHA256 (GDT-3.0.5.tar.gz) = 92e92d0a5a19f5d6626aca2d0f62ba1814afdce007e16e4d57d2071ddf33a8d3
-SIZE (GDT-3.0.5.tar.gz) = 45556
+SHA256 (GDT-4.0.tar.gz) = 3c1247aa1a8044002edc5db10136a0c9befbf0f49f8c86643189051090ef5fcb
+SIZE (GDT-4.0.tar.gz) = 46937

Modified: head/cad/gdt/files/patch-Examples-gdsinfo
==============================================================================
--- head/cad/gdt/files/patch-Examples-gdsinfo	Sat Jun  1 10:27:59 2013	(r319559)
+++ head/cad/gdt/files/patch-Examples-gdsinfo	Sat Jun  1 11:23:22 2013	(r319560)
@@ -1,12 +1,14 @@
---- Examples/gdsinfo.orig	Sun Apr 29 15:54:57 2007
-+++ Examples/gdsinfo	Sun Apr 29 15:55:08 2007
-@@ -75,9 +75,6 @@
+--- Examples/gdsinfo.orig	2008-06-20 02:04:27.000000000 +0900
++++ Examples/gdsinfo	2013-05-30 10:54:47.000000000 +0900
+@@ -75,10 +75,7 @@
  $topCellNames =~ s/\s+/ /g;
  
  # help find gds2gdt
 -my $uname_s = `/bin/uname -s`; # OS name
 -chomp $uname_s;
 -$ENV{'PATH'} = "/bin:/usr/bin:/user/ic/gnu/$uname_s/bin:".$ENV{'PATH'};
- my $gds2gdt = which("gds2gdt");
+-my $gds2gdt = which("gds2gdt");
++my $gds2gdt = '%%PREFIX%%/bin/gds2gdt';
  unless ($gds2gdt)
  {
+     die $REVERSE_RED.ERROR."$COLOR_RESET unable to find gds2gdt in \$PATH";

Added: head/cad/gdt/files/patch-Examples-scalegds
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/cad/gdt/files/patch-Examples-scalegds	Sat Jun  1 11:23:22 2013	(r319560)
@@ -0,0 +1,41 @@
+--- Examples/scalegds.orig	2013-05-30 10:59:09.000000000 +0900
++++ Examples/scalegds	2013-05-30 10:58:01.000000000 +0900
+@@ -72,18 +72,14 @@
+ 
+ my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime(time);
+ $mon++; $year += 1900;
+-# help find gds2gdt
+-my $uname_s = `/bin/uname -s`; # OS name
+-chomp $uname_s;
+-$ENV{'PATH'} = "/bin:/usr/bin:/user/ic/gnu/$uname_s/bin:".$ENV{'PATH'};
+ 
+-my $gds2gdt = which("gds2gdt");
++my $gds2gdt = '%%PREFIX%%/bin/gds2gdt';
+ unless ($gds2gdt)
+ {
+     die $REVERSE_RED.ERROR."$COLOR_RESET unable to find gds2gdt in \$PATH";
+ }
+ 
+-my $gdt2gds = which("gdt2gds");
++my $gdt2gds = '%%PREFIX%%/bin/gdt2gds';
+ unless ($gdt2gds)
+ {
+     die $REVERSE_RED.ERROR."$COLOR_RESET unable to find gdt2gds in \$PATH";
+@@ -135,7 +131,7 @@
+ 
+ if ($inputFile =~ m/\.(gz|Z)$/)
+ {
+-    my $zcat = which("zcat");
++    my $zcat = '/usr/bin/zcat';
+     unless ($zcat)
+     {
+         die $REVERSE_RED.ERROR."$COLOR_RESET unable to find zcat in \$PATH";
+@@ -145,7 +141,7 @@
+ }
+ elsif ($inputFile =~ m/\.bz2$/)
+ {
+-    my $bzcat = which("bzcat");
++    my $bzcat = '/usr/bin/bzcat';
+     unless ($bzcat)
+     {
+         die $REVERSE_RED.ERROR."$COLOR_RESET unable to find bzcat in \$PATH";



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