Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 30 Jan 2008 19:23:12 -0600 (CST)
From:      Jason Bacon <bacon@smithers.neuro.mcw.edu>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/120176: Maintainer update: math/lensnns  Minor revision
Message-ID:  <200801310123.m0V1NCQa042787@smithers.neuro.mcw.edu>
Resent-Message-ID: <200801310130.m0V1U1x2018442@freefall.freebsd.org>

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

>Number:         120176
>Category:       ports
>Synopsis:       Maintainer update: math/lensnns  Minor revision
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jan 31 01:30:01 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     Jason Bacon
>Release:        FreeBSD 6.1-RELEASE-p17 i386
>Organization:
MCW
>Environment:
System: FreeBSD smithers.neuro.mcw.edu 6.1-RELEASE-p17 FreeBSD 6.1-RELEASE-p17 #0: Mon Jul 2 15:25:34 CDT 2007 bacon@pcbsd:/usr/obj/usr/src/sys/MCWPCBSD i386

>Description:

This revision adds a few improvements to the port installation.

>How-To-Repeat:
>Fix:

diff -ruN lensnns/Makefile lensnns-latest/Makefile
--- lensnns/Makefile	Mon Jun  4 16:06:18 2007
+++ lensnns-latest/Makefile	Wed Jan 30 19:12:00 2008
@@ -1,15 +1,16 @@
 # New ports collection makefile for:	lensnns
 # Date created:		9 jan 2007
-# Whom:			Jason W. Bacon <bacon@smithers.neuro.mcw.edu>
+# Whom:			Jason W. Bacon <jwbacon@tds.net>
 #
-# $FreeBSD: ports/math/lensnns/Makefile,v 1.1 2007/06/04 21:06:18 miwi Exp $
+# $FreeBSD$
 #
 
 PORTNAME=	lensnns
 PORTVERSION=	2.63
+PORTREVISION=	1
 CATEGORIES=	math science
 MASTER_SITES=	http://tedlab.mit.edu/~dr/Lens/Dist/ \
-		http://www.neuro.mcw.edu/~bacon/Ports/distfiles/
+		http://www.neuro.mcw.edu/Ports/distfiles/
 DISTNAME=	lens
 
 MAINTAINER=	bacon@smithers.neuro.mcw.edu
@@ -17,27 +18,16 @@
 
 LIB_DEPENDS=	tcl83.1:${PORTSDIR}/lang/tcl83 \
 		tk83.1:${PORTSDIR}/x11-toolkits/tk83
+RUN_DEPENDS=	bestbrowser:${PORTSDIR}/www/bestbrowser
 
 USE_GMAKE=	yes
 
-MAKE_ENV+=	HOSTTYPE="FreeBSD"
-
 MAN1=		lensnns.1
 
-SUB_FILES=	pkg-message lensnns.1
+SUB_FILES=	pkg-message lensnns.1 lensnns.cshrc lensnns.profile
 PKGMESSAGE=	${WRKDIR}/pkg-message
-WEB_BROWSER?=	konqueror
-
-pre-everything::
-	@${ECHO_CMD} ""
-	@${ECHO_CMD} "========================================================"
-	@${ECHO_CMD} "The default WEB browser for viewing the manual is KDE's"
-	@${ECHO_CMD} "konqueror.  If you want to change this, type Ctrl+C now,"
-	@${ECHO_CMD} "and run make again with -DWEB_BROWSER, e.g."
-	@${ECHO_CMD} ""
-	@${ECHO_CMD} "	make -DWEB_BROWSER=firefox"
-	@${ECHO_CMD} "========================================================"
-	@${ECHO_CMD} ""
+WEB_BROWSER?=	bestbrowser
+MAKE_ENV+=	HOSTTYPE="FreeBSD"
 
 post-extract:
 	${MKDIR} ${WRKDIR}/lens
@@ -49,7 +39,7 @@
 	${INSTALL_PROGRAM} ${WRKSRC}/Bin/FreeBSD/lens-2.63 ${PREFIX}/bin
 	${LN} -s ${PREFIX}/bin/alens-2.63 ${PREFIX}/bin/alensnns
 	${LN} -s ${PREFIX}/bin/lens-2.63 ${PREFIX}/bin/lensnns
-	${INSTALL_MAN} ${WRKDIR}/lensnns.1 ${PREFIX}/man/man1
+	${INSTALL_MAN} ${WRKDIR}/lensnns.1 ${MAN1PREFIX}/man/man1
 	${MKDIR} ${PREFIX}/share/${PORTNAME}/Src/Images
 	${MKDIR} ${PREFIX}/share/${PORTNAME}/Examples
 	${MKDIR} ${PREFIX}/share/${PORTNAME}/Commands
@@ -61,6 +51,9 @@
 		${PREFIX}/share/${PORTNAME}/Examples
 	${INSTALL_DATA} ${WRKSRC}/Commands/* \
 		${PREFIX}/share/${PORTNAME}/Commands
+	${MKDIR} ${PREFIX}/etc/mri
+	${INSTALL_SCRIPT} ${WRKDIR}/lensnns.cshrc ${WRKDIR}/lensnns.profile \
+		${PREFIX}/etc/mri
 
 post-install:
 	@${ECHO_CMD}; ${CAT} ${PKGMESSAGE}; ${ECHO_CMD}
diff -ruN lensnns/files/lensnns.cshrc.in lensnns-latest/files/lensnns.cshrc.in
--- lensnns/files/lensnns.cshrc.in	Wed Dec 31 18:00:00 1969
+++ lensnns-latest/files/lensnns.cshrc.in	Wed Jan 30 18:03:51 2008
@@ -0,0 +1 @@
+setenv LENSDIR %%DATADIR%%
diff -ruN lensnns/files/lensnns.profile.in lensnns-latest/files/lensnns.profile.in
--- lensnns/files/lensnns.profile.in	Wed Dec 31 18:00:00 1969
+++ lensnns-latest/files/lensnns.profile.in	Wed Jan 30 18:04:15 2008
@@ -0,0 +1,2 @@
+LENSDIR=%%DATADIR%%
+export LENSDIR
diff -ruN lensnns/files/pkg-message.in lensnns-latest/files/pkg-message.in
--- lensnns/files/pkg-message.in	Mon Jun  4 16:06:18 2007
+++ lensnns-latest/files/pkg-message.in	Wed Jan 30 18:03:10 2008
@@ -4,16 +4,37 @@
 
 	man lensnns
 
+---
+
 To use the default configuration, set the environment variable LENSDIR to
 
         %%DATADIR%%
 
+As an alternative to manual setup shown above, this port (and many other MRI
+ports) include configuration scripts to automaticaly perform this setup.
+Using these scripts, a single addition to your shell's startup script will
+automatically configure the environment for all MRI ports that include
+a configuration script.
+
+To utilize these scripts in C-shell compatible shells, add the following
+to your .cshrc:
+
+foreach script (%%PREFIX%%/etc/mri/*.cshrc)
+    source ${script}
+end
+
+For Bourne-shell compatibles, add the following to your .profile:
+
+for script in %%PREFIX%%/etc/mri/*.profile; do
+    . ${script}
+done
+
+---
+
 If you want to customize your environment, make a complete copy of
 
         %%DATADIR%%
 
 and set LENSDIR to the full pathname of your copy.
-
-Firefox is required to view the manual from the Help menu.
 
 ===========================================================================
diff -ruN lensnns/pkg-descr lensnns-latest/pkg-descr
--- lensnns/pkg-descr	Mon Jun  4 16:06:18 2007
+++ lensnns-latest/pkg-descr	Wed Jan 30 19:08:51 2008
@@ -1,3 +1,5 @@
 Lens is an efficient, yet flexible, neural network simulator that runs on
 a variety of platforms, is able to handle large, complex simulations, but
 is also reasonably easy for novices to operate.
+
+WWW: http://tedlab.mit.edu/~dr/Lens/
diff -ruN lensnns/pkg-plist lensnns-latest/pkg-plist
--- lensnns/pkg-plist	Mon Jun  4 16:06:18 2007
+++ lensnns-latest/pkg-plist	Wed Jan 30 19:14:42 2008
@@ -2,6 +2,8 @@
 bin/alens-2.63
 bin/lensnns
 bin/lens-2.63
+etc/mri/lensnns.cshrc
+etc/mri/lensnns.profile
 %%DATADIR%%/Commands/addGroup.txt
 %%DATADIR%%/Commands/addLinkType.txt
 %%DATADIR%%/Commands/addNet.txt
@@ -232,3 +234,4 @@
 @dirrm %%DATADIR%%/Examples
 @dirrm %%DATADIR%%/Commands
 @dirrm %%DATADIR%%
+@dirrmtry etc/mri
>Release-Note:
>Audit-Trail:
>Unformatted:



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