Date: Tue, 22 Jul 2003 22:46:22 +0200 (CEST) From: Thierry Thomas <thierry@pompo.net> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/54761: New port, french/med: modelization & data exchange (used by Code_Aster). Message-ID: <20030722204622.E792022BC97@ws90bj.pompo.net> Resent-Message-ID: <200307222050.h6MKoJe6020736@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 54761 >Category: ports >Synopsis: New port, french/med: modelization & data exchange (used by Code_Aster). >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Tue Jul 22 13:50:19 PDT 2003 >Closed-Date: >Last-Modified: >Originator: Thierry Thomas >Release: FreeBSD 5.1-RELEASE i386 >Organization: Kabbale Eros >Environment: System: FreeBSD ws90bj.pompo.net 5.1-RELEASE FreeBSD 5.1-RELEASE #0: Tue Jun 10 23:15:41 CEST 2003 root@ws90bj.pompo.net:/usr/obj/usr/src/sys/WS90BJ-030610 i386 >Description: This is a complementary set of programs used by Code_Aster (see french/aster). >How-To-Repeat: N/A. >Fix: Please execute the following shar file: --- med.shar begins here --- # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # french/med # french/med/Makefile # french/med/distinfo # french/med/pkg-descr # french/med/files # french/med/files/patch-Makefile.in # french/med/files/patch-configure # french/med/files/patch-include::med_outils.h # french/med/files/patch-src::api::ci::MEDunvCr.c # french/med/files/patch-config::commence.in # french/med/pkg-plist # echo c - french/med mkdir -p french/med > /dev/null 2>&1 echo x - french/med/Makefile sed 's/^X//' >french/med/Makefile << 'END-of-french/med/Makefile' X# New ports collection makefile for: med X# Date created: Thu Jun 26 2003 X# Whom: thierry@pompo.net X# X# $FreeBSD$ X# X XPORTNAME= med XPORTVERSION= 2.1.5 XCATEGORIES= french cad converters XMASTER_SITES= http://www.code-aster.org/FICHIERS/med/ XDISTNAME= ${PORTNAME}${PORTVERSION}_hdf5-1_src XEXTRACT_SUFX= .tar X XMAINTAINER= ports@FreeBSD.org XCOMMENT= Modélisation et Échanges de Données X XBUILD_DEPENDS= ${LOCALBASE}/lib/libhdf5.a:${PORTSDIR}/graphics/hdf5 X XEXTRACT_CMD= ${TAR} XEXTRACT_BEFORE_ARGS= -xf XEXTRACT_AFTER_ARGS= # empty XCONFIGURE_ARGS= --prefix=${PREFIX} --disable-shared XCONFIGURE_ENV= HDF5HOME=${LOCALBASE} XUSE_LIBTOOL= yes XUSE_GMAKE= yes X XWRKSRC= ${WRKDIR}/${PORTNAME}${PORTVERSION}.src X Xpost-extract: X @(cd ${WRKDIR} && \ X ${TAR} xfz ${WRKDIR}/${PORTNAME}${PORTVERSION}.src.tar.gz) X Xpost-install: X.if !defined(NOPORTDOCS) X @${MKDIR} ${DOCSDIR} X @${CP} -R ${WRKSRC}/doc/html ${DOCSDIR} X @${ECHO_MSG} "===> Documentation installed in ${DOCSDIR}." X.endif X X.include <bsd.port.mk> END-of-french/med/Makefile echo x - french/med/distinfo sed 's/^X//' >french/med/distinfo << 'END-of-french/med/distinfo' XMD5 (med2.1.5_hdf5-1_src.tar) = a19a5f481fbf48b1a2934517dfb717c5 END-of-french/med/distinfo echo x - french/med/pkg-descr sed 's/^X//' >french/med/pkg-descr << 'END-of-french/med/pkg-descr' XMED stands for "Modélisation et Échanges de Données", i.e. Data Modelization Xand Exchanges. X XMED « fichier », c'est : X X * Un modèle d'échange de données commun centré sur les notions de X maillage et de résultat. Ce modèle décrit quelles sont les données X exportées et échangées entre les codes. X X * Une API (Application Programming Interface) d'accès aux données X qui se présente sous la forme d'une bibliothèque informatique écrite X en C et FORTRAN 77. Cette bibliothèque est distribuée sous licence X GNU LGPL. X X * Des données échangées et stockées dans des fichiers au format HDF X (Hierarchical Data Format). X XWWW: http://www.code-aster.org/outils/med/ END-of-french/med/pkg-descr echo c - french/med/files mkdir -p french/med/files > /dev/null 2>&1 echo x - french/med/files/patch-Makefile.in sed 's/^X//' >french/med/files/patch-Makefile.in << 'END-of-french/med/files/patch-Makefile.in' X--- Makefile.in.orig Wed Nov 20 17:21:36 2002 X+++ Makefile.in Fri Jun 27 23:01:55 2003 X@@ -8,7 +8,7 @@ X X @COMMENCE@ X X-SUBDIRS=src tests tools doc X+SUBDIRS=src tools doc X X lib: X @@SETX@; for d in $(SUBDIRS); do \ X@@ -30,12 +30,12 @@ X (cd $$d && $(MAKE) $@) || exit 1; \ X done X X-install: lib bin tests X+install: lib bin X @@SETX@; for d in $(SUBDIRS); do \ X (cd $$d && $(MAKE) $@) || exit 1; \ X done X @$(LT) --mode=finish $(libdir); X- $(INSTALL_PROGRAM) $(top_builddir)/bin/xmdump $(bindir)/. X+ $(INSTALL_SCRIPT) $(top_builddir)/bin/xmdump $(bindir)/. X $(INSTALL_DATA) $(top_srcdir)/include/med.h $(includedir)/. X $(INSTALL_DATA) $(top_srcdir)/include/med.hf $(includedir)/. X $(INSTALL_DATA) $(top_srcdir)/include/med_proto.h $(includedir)/. END-of-french/med/files/patch-Makefile.in echo x - french/med/files/patch-configure sed 's/^X//' >french/med/files/patch-configure << 'END-of-french/med/files/patch-configure' X--- configure.orig Wed Sep 18 18:09:45 2002 X+++ configure Wed Jul 9 21:19:27 2003 X@@ -667,6 +667,9 @@ X linux*) X machine=PCLINUX X ;; X+ freebsd*) X+ machine=PCLINUX X+ ;; X hpux*) X machine=HP9000 X ;; END-of-french/med/files/patch-configure echo x - french/med/files/patch-include::med_outils.h sed 's/^X//' >french/med/files/patch-include::med_outils.h << 'END-of-french/med/files/patch-include::med_outils.h' X--- include/med_outils.h.orig Tue Dec 10 19:05:22 2002 X+++ include/med_outils.h Thu Jun 26 22:26:29 2003 X@@ -111,7 +111,7 @@ X #define MED_TAILLE_PROFILS 9 X X /*Pour eviter le bug solaris*/ X-#include <malloc.h> X+#include <stdlib.h> X X /* Interface des routines du composant tools */ X #include <med_misc.h> END-of-french/med/files/patch-include::med_outils.h echo x - french/med/files/patch-src::api::ci::MEDunvCr.c sed 's/^X//' >french/med/files/patch-src::api::ci::MEDunvCr.c << 'END-of-french/med/files/patch-src::api::ci::MEDunvCr.c' X--- src/api/ci/MEDunvCr.c.orig Tue Dec 10 16:48:14 2002 X+++ src/api/ci/MEDunvCr.c Fri Jun 27 16:10:48 2003 X@@ -34,6 +34,12 @@ X #include <sys/time.h> X #endif X X+#ifdef __FreeBSD__ X+#include <sys/types.h> X+#include <unistd.h> X+#include <pwd.h> X+#endif X+ X med_err X MEDunvCr(med_idt fid, char *maa) X { X@@ -78,7 +84,11 @@ X nSize = strlen(nomu)-1; X if ( sprintf(&nomu[nSize]," %hu",tp.millitm) < 0 ) return -1; X #else X+# ifdef __FreeBSD__ X+ if (getpwuid(geteuid()) == NULL) return -1; X+# else X if (cuserid(nomu) == (void*) NULL) return -1; X+# endif X strcat(nomu," "); X temps=time(&temps); X strcat(nomu,ctime(&temps)); END-of-french/med/files/patch-src::api::ci::MEDunvCr.c echo x - french/med/files/patch-config::commence.in sed 's/^X//' >french/med/files/patch-config::commence.in << 'END-of-french/med/files/patch-config::commence.in' X--- config/commence.in.orig Wed Sep 18 18:09:44 2002 X+++ config/commence.in Fri Jun 27 22:46:01 2003 X@@ -36,6 +36,7 @@ X CP=cp X INSTALL=@INSTALL@ X INSTALL_PROGRAM=@INSTALL_PROGRAM@ X+INSTALL_SCRIPT=@INSTALL_SCRIPT@ X INSTALL_DATA=@INSTALL_DATA@ X RUNSERIAL=@RUNSERIAL@ X RUNPARALLEL=@RUNPARALLEL@ END-of-french/med/files/patch-config::commence.in echo x - french/med/pkg-plist sed 's/^X//' >french/med/pkg-plist << 'END-of-french/med/pkg-plist' Xbin/medconforme Xbin/mdump Xbin/xmdump Xinclude/med.h Xinclude/med.hf Xinclude/med_proto.h Xinclude/med_outils.h Xinclude/med_utils.h Xinclude/med_hdfi.h Xinclude/med_misc.h Xlib/libmed.a X%%PORTDOCS%%%%DOCSDIR%%/html/menu.html X%%PORTDOCS%%%%DOCSDIR%%/html/index.html X%%PORTDOCS%%%%DOCSDIR%%/html/introduction.html X%%PORTDOCS%%%%DOCSDIR%%/html/external_links.html X%%PORTDOCS%%%%DOCSDIR%%/html/reference_guide.html X%%PORTDOCS%%%%DOCSDIR%%/html/root.html X%%PORTDOCS%%%%DOCSDIR%%/html/user_guide.html X%%PORTDOCS%%@dirrm %%DOCSDIR%%/html X%%PORTDOCS%%@dirrm %%DOCSDIR%% END-of-french/med/pkg-plist exit --- med.shar ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030722204622.E792022BC97>