Update of /cvsroot/fink/dists/10.4/stable/main/finkinfo/10.4-EOL/sci
In directory vz-cvs-3.sog:/tmp/cvs-serv26027

Added Files:
        gmsh.info gmsh.patch gmsh2.5.0-shlibs.info 
Log Message:
sync. w/ stable/10.!4, validated on powerpc-darwin8
re-use gmsh.patch to 'fix' cmake installation
!lart cmake


--- NEW FILE: gmsh.info ---
Package: gmsh
Version: 2.5.0
Revision: 2
Depends: <<
        fltk13-aqua-shlibs,
        gmp5-shlibs,
        libjpeg8-shlibs, 
        libpng14-shlibs,
        lua51-shlibs,
        libncurses5-shlibs,
        readline5-shlibs
<<
BuildDepends: <<
        fink (>= 0.24.12),
        cmake,
        fltk13-aqua,
        gmp5,
        libjpeg8, 
        libpng14,
        lua51-dev,
        libncurses5,
        readline5
<<
Source: http://www.geuz.org/%n/src/%n-%v-source.tgz
Source-MD5: afa48c0296dba08641bc6312b0ccabf5
SourceDirectory: %n-%v-source

GCC: 4.0

PatchFile: %n.patch
PatchFile-MD5: 7f182d37191ac18d2a75134246049dcb
PatchScript: <<
%{default_script}
perl -pi -e 's|(void.*return)\s0\.|$1|g' Solver/linearSystemPETSc.h
<<

UseMaxBuildJobs: false

CompileScript: <<
#!/bin/sh -ev
mkdir build
cd build
cmake -DCMAKE_PREFIX_PATH=%p -DCMAKE_INSTALL_PREFIX=%i ..
make verbose=1
make verbose=1 html
make verbose=1 info
make verbose=1 txt
<<

InstallScript: <<
#!/bin/sh -ev
pushd build
make install
popd
# put texinfo file in proper location for Fink
mkdir -p %i/share/info
cp doc/texinfo/%n.info %i/share/info/
# clear out include directory since there's nothing to build
# against in this package
rm -rf %i/include
<<

DocFiles: doc/
InfoDocs: %n.info
Homepage: http://www.geuz.org/gmsh
Maintainer: Alexander Hansen <[email protected]>

License: GPL/LGPL
Description: 3D finite element mesh generator
DescDetail: <<
 Gmsh is an automatic 3D finite element mesh generator (primarily
 Delaunay) with build-in CAD and post-processing facilities. Its
 design goal is to provide a simple meshing tool for academic test
 cases with parametric input and up to date visualization
 capabilities.

 Gmsh is built around four modules: geometry, mesh, solver and
 post-processing. The specification of any input to these modules is
 done either interactively using the graphical user interface or in
 ASCII text files using Gmsh's own scripting language.
 
 See Gmsh's reference manual for a more thorough overview of Gmsh's 
 capabilities.
<<
DescUsage: <<
This package contains the '%n' executable and documentation, including demos
and tutorial.
<<
DescPackaging: <<
        Executable is built statically from the object files directly, rather 
than
        via libraries, so there is no dependency on gmshX.Y.Z-shlibs.

        Oddly enough, clang complains about a void function with a return
        value :-) so we patch that.

        As of 2.5.0-2:  patch to install docs and executable in proper locations
        using "make install".  Thanks to Nicholas Taylor for the patch.

        Uses Veclib for BLAS.  It appears not to use Fink's ATLAS even when 
that's 
        installed, so no -atlas variant currently.
<<

--- NEW FILE: gmsh2.5.0-shlibs.info ---
Package: gmsh2.5.0-shlibs
Version: 2.5.0
Revision: 3
Depends: <<
        fltk13-aqua-shlibs,
        gmp5-shlibs,
        libjpeg8-shlibs, 
        libpng14-shlibs,
        lua51-shlibs,
        libncurses5-shlibs,
        readline5-shlibs
<<
BuildDepends: <<
        fink (>= 0.24.12),
        cmake,
        fltk13-aqua,
        gmp5,
        libjpeg8, 
        libpng14,
        lua51-dev,
        libncurses5,
        readline5
<<
Source: http://www.geuz.org/gmsh/src/gmsh-%v-source.tgz
Source-MD5: afa48c0296dba08641bc6312b0ccabf5
SourceDirectory: gmsh-%v-source

GCC: 4.0

PatchFile: gmsh.patch
PatchFile-MD5: 7f182d37191ac18d2a75134246049dcb
PatchScript: <<
#!/bin/sh -ev
%{default_script}
perl -pi -e 's|(void.*return)\s0\.|$1|g' Solver/linearSystemPETSc.h
<<

UseMaxBuildJobs: false

CompileScript: <<
#!/bin/sh -ev
mkdir build
cd build
cmake   -DCMAKE_PREFIX_PATH=%p -DCMAKE_INSTALL_PREFIX=%i ..
sed -i.orig -e '/FLAGS/s|-fPIC|& -fno-common|' CMakeFiles/shared.dir/flags.make
make VERBOSE=1 shared
<<

InstallScript: <<
#!/bin/sh -ev
cd build
make install
cd %d
# clear out stuff that gets installed in the 'gmsh' package or that we 
# don't want 
rm -rf *.txt demos gmsh.1 tutorial MacOS
cd %i
rm -rf *.icns
# fix library up
cd lib
mv libGmsh.dylib libGmsh.%v.dylib
ln -s libGmsh.%v.dylib libGmsh.dylib
install_name_tool -id %p/lib/libGmsh.%v.dylib libGmsh.%v.dylib
<<

Shlibs: %p/lib/libGmsh.%v.dylib 0.0.0 %n (>=2.5.0-2)

DocFiles: doc/*.txt doc/gmsh.html
Homepage: http://www.geuz.org/gmsh
Maintainer: Alexander Hansen <[email protected]>

License: GPL/LGPL
Description: 3D finite element mesh generator
DescDetail: <<
 Gmsh is an automatic 3D finite element mesh generator (primarily
 Delaunay) with build-in CAD and post-processing facilities. Its
 design goal is to provide a simple meshing tool for academic test
 cases with parametric input and up to date visualization
 capabilities.

 Gmsh is built around four modules: geometry, mesh, solver and
 post-processing. The specification of any input to these modules is
 done either interactively using the graphical user interface or in
 ASCII text files using Gmsh's own scripting language.
 
 See Gmsh's reference manual for a more thorough overview of Gmsh's 
 capabilities.
<<
DescUsage: <<
This package contains a shared library.
<<
DescPackaging: <<
        Oddly enough, clang complains about a void function with a return
        value :-) so we patch that.

        Create a versioned dylib so that the -shlibs can coexist--given the
        lack of compatibility_version, it's hard to say whether different
        %v will be ABI-comptible without inspection.
        
        As of Revision 3:  don't install in a private location anymore, 
        since that's a bit excessive for a new package with one library.
<<

Splitoff: <<
        Package: gmsh2.5.0-dev
        Depends: %N
        Files: <<
                include
                lib/libGmsh.dylib
        <<
BuildDependsOnly: true
DocFiles: doc/*.txt doc/gmsh.html
DescUsage: <<
This package contains build-time files (headers and unversioned dylib).
<<
<<

--- NEW FILE: gmsh.patch ---
diff -Nur gmsh-2.5.0-source/CMakeLists.txt 
gmsh-2.5.0-source.patched/CMakeLists.txt
--- gmsh-2.5.0-source/CMakeLists.txt    2010-10-15 14:35:00.000000000 +0100
+++ gmsh-2.5.0-source.patched/CMakeLists.txt    2011-09-29 17:04:06.000000000 
+0100
@@ -955,9 +955,9 @@
   # set these so that the files get installed nicely in the MacOSX
   # .app bundle (FIXME: this screws up a standard "make install" on
   # MacOS)
-  set(GMSH_BIN ../MacOS)
-  set(GMSH_DOC ../../..)
-  set(GMSH_MAN ../../..)
+  set(GMSH_BIN bin)
+  set(GMSH_DOC share/doc/gmsh)
+  set(GMSH_MAN share/man/man1)
 else(WIN32)
   set(GMSH_BIN bin)
   set(GMSH_DOC share/doc/gmsh)
@@ -1057,12 +1057,6 @@
   file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/Info.plist "${F1}")
   set(CPACK_BUNDLE_PLIST ${CMAKE_CURRENT_BINARY_DIR}/Info.plist)
   set(CPACK_BUNDLE_ICON ${CMAKE_CURRENT_SOURCE_DIR}/Fltk/MacIcons.icns)
-  install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/Fltk/MacIconsGeo.icns DESTINATION .
-          RENAME GmshGeo.icns)
-  install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/Fltk/MacIconsMsh.icns DESTINATION .
-          RENAME GmshMsh.icns)
-  install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/Fltk/MacIconsPos.icns DESTINATION .
-          RENAME GmshPos.icns)
   set(CPACK_PACKAGE_ICON ${CMAKE_CURRENT_SOURCE_DIR}/Fltk/MacIcons.icns)
 elseif(WIN32)
   set(CPACK_GENERATOR ZIP)


------------------------------------------------------------------------------
The demand for IT networking professionals continues to grow, and the
demand for specialized networking skills is growing even more rapidly.
Take a complimentary Learning@Cisco Self-Assessment and learn 
about Cisco certifications, training, and career opportunities. 
http://p.sf.net/sfu/cisco-dev2dev
_______________________________________________
Fink-commits mailing list
[email protected]
http://news.gmane.org/gmane.os.apple.fink.cvs

Reply via email to