Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 2 Oct 2012 02:53:00 +0900
From:      KATO Tsuguru <tkato432@yahoo.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/172219: cad/admesh: Update MASTER_SITES
Message-ID:  <20121002025300.9cd0d6c22195e2826449089c@yahoo.com>
Resent-Message-ID: <201210011810.q91IA4l1012936@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         172219
>Category:       ports
>Synopsis:       cad/admesh: Update MASTER_SITES
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Oct 01 18:10:03 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     KATO Tsuguru
>Release:        FreeBSD 7.4-RELEASE-p10 i386
>Organization:
>Environment:
>Description:
- Update MASTER_SITES and WWW: line
- Add LICENSE
- Add MAKE_JOBS_SAFE
- Fix build with clang

New file:
files/patch-admesh.c

>How-To-Repeat:
>Fix:

diff -urN /usr/ports/cad/admesh/Makefile cad/admesh/Makefile
--- /usr/ports/cad/admesh/Makefile	2012-09-21 07:26:26.000000000 +0900
+++ cad/admesh/Makefile	2012-10-02 00:17:34.000000000 +0900
@@ -9,25 +9,32 @@
 PORTVERSION=	0.95
 PORTREVISION=	1
 CATEGORIES=	cad
-MASTER_SITES=	http://www.varlog.com/
+MASTER_SITES=	http://launchpadlibrarian.net/67068999/ \
+		http://www.sourcefiles.org/Scientific/Numerical_Analysis/
 
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	Program for processing STL triangulated solid meshes
 
-DEPRECATED=	No more public distfiles
-EXPIRATION_DATE=	2012-10-20
+LICENSE=	GPLv2 # (or later)
+
+OPTIONS_DEFINE=	DOCS
 
-FETCH_ARGS?=	-Fpr
 GNU_CONFIGURE=	yes
+MAKE_JOBS_SAFE=	yes
 
-PLIST_FILES=	bin/admesh
 PORTDOCS=	admesh.doc
+PLIST_FILES=	bin/admesh
+
+.include <bsd.port.options.mk>
+
+post-patch:
+	@${REINPLACE_CMD} -e 's|-O2||' ${WRKSRC}/configure
 
 do-install:
-	${INSTALL_PROGRAM} ${WRKSRC}/admesh ${PREFIX}/bin/
-.ifndef NOPORTDOCS
-	${MKDIR} ${DOCSDIR}
-	${INSTALL_DATA} ${WRKSRC}/ADMESH.DOC ${DOCSDIR}/admesh.doc
+	(cd ${WRKSRC} && ${INSTALL_PROGRAM} admesh ${PREFIX}/bin)
+.if ${PORT_OPTIONS:MDOCS}
+	@${MKDIR} ${DOCSDIR}
+	(cd ${WRKSRC} && ${INSTALL_DATA} ADMESH.DOC ${DOCSDIR}/admesh.doc)
 .endif
 
 .include <bsd.port.mk>
diff -urN /usr/ports/cad/admesh/files/patch-admesh.c cad/admesh/files/patch-admesh.c
--- /usr/ports/cad/admesh/files/patch-admesh.c	1970-01-01 09:00:00.000000000 +0900
+++ cad/admesh/files/patch-admesh.c	2012-09-29 00:47:18.000000000 +0900
@@ -0,0 +1,11 @@
+--- admesh.c.orig	1996-07-27 07:07:15.000000000 +0900
++++ admesh.c	2012-09-29 00:46:13.000000000 +0900
+@@ -27,7 +27,7 @@
+ 
+ static void usage(int status, char *program_name);
+ 
+-void
++int
+ main(int argc, char **argv)
+ {
+   stl_file stl_in;
diff -urN /usr/ports/cad/admesh/pkg-descr cad/admesh/pkg-descr
--- /usr/ports/cad/admesh/pkg-descr	2009-02-01 06:14:31.000000000 +0900
+++ cad/admesh/pkg-descr	2012-09-29 00:40:54.000000000 +0900
@@ -20,4 +20,4 @@
 * Write a DXF file
 * Calculate the volume of a part
 
-WWW:	http://www.varlog.com
+WWW:	https://launchpad.net/admesh/
>Release-Note:
>Audit-Trail:
>Unformatted:



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