Update of /cvsroot/fink/experimental/jfmertens/main/finkinfo/sci
In directory sc8-pr-cvs5.sourceforge.net:/tmp/cvs-serv31368

Added Files:
        lpsolve-extra.info lpsolve-java.info lpsolve-octave.info 
        lpsolve-python.info lpsolve-scilab.info lpsolve.info 
Log Message:
lpsolve extras
Don't yet know for sure how to separate best between lpsolve and lpsolve-extra.
All of them perfectly usable, except still for lpsolve-scilab.

--- NEW FILE: lpsolve-scilab.info ---
Info2: <<
Package: lpsolve-scilab
Version: 0.0
Revision: 1
# rev-up and change next line at every new version of scilab or lpsolve
Type: scilab (4.1), maj (5.5), full (5.5.0.9)

BuildDepends: lpsolve%type_raw[maj]-dev (>= %type_raw[full]-3), libxslt-bin, 
scilab-atlas (>= %type_raw[scilab]-1) | scilab (>= %type_raw[scilab]-1), sed | 
ssed
Depends: lpsolve%type_raw[maj]-shlibs (>= %type_raw[maj].0.0-1), scilab-atlas 
(>= %type_raw[scilab]-1) | scilab (>= %type_raw[scilab]-1)

Source: mirror:sourceforge:lpsolve/lp_solve_%type_raw[full]_scilab_source.tar.gz
Source-MD5: fc5a56bd011e45d24d7c9045ed079175
SourceDirectory: lp_solve_%type_raw[maj]

PatchScript: <<
  # adapt paths
  perl -pi -e 
's,/usr/lib/liblpsolve%type_pkg[maj]\.so,%p/lib/liblpsolve.dylib,' 
extra/scilab/lpsolve/builder.sce
  perl -pi -e 's,c:/scilab\-2\.7,%p/lib/scilab-%type_raw[scilab],; 
s,z:/lp_solve_%type_raw[maj],%p/include/lpsolve,; s,\$.*\),%b,' 
extra/scilab/lpsolve/Path.incl
  # add trailing / to Mpath, and handle the 'loading' of man-pages and macros 
self, but using formatman(.,"xml")
  sed -ri -e "s:/[']+\+p,end([']*):&\n  \1p=p+\1'/'\1\1:" -e "s,^(  )',\1&," -e 
"/genlib|\/man/d" \
        -e "s:(formatman(\(.*))\):\1,'xml'):" -e "s,-1,0," 
extra/scilab/lpsolve/builder.sce
  # missing "endfunction"
  for f in extra/scilab/lpsolve/macros/*.sci; do echo endfunction >> $f ; done
  # buglet in man files (another one will be fixed in the InstallScript)
  sed -ri -e "/dual problem|lp created/,/TP 10/{ /.TP 10/d }" 
extra/scilab/lpsolve/man/lp*.man
  # useless files, which may further prevent regeneration of some of them
  rm extra/scilab/lpsolve/{macros/*.bin,man/*.cat,libs/*.dll}
<<
CompileScript: echo ''
InstallScript: <<
#!/bin/sh -ev
  mkdir -p %i/share/doc/%N/examples %i/share/%N 
%i/lib/scilab-%type_raw[scilab]/man/eng 
%i/share/doc/lpsolve%type_raw[maj]-shlibs
  ln -s ../%n %i/share/doc/lpsolve%type_raw[maj]-shlibs
  cd extra/scilab/lpsolve
  # next doesn't work.. Try the same with '-f'
  # scilab -nb -nwni -e "exec builder.sce;exit"
  cat > cmd <<-'EOF'
        exec builder.sce
        exit
        EOF
  scilab -nb -nwni -f cmd
  cp -pPR libs macros loader.sce src/lpmex*.o %i/share/%N
  cp -pPR man %i/lib/scilab-%type_raw[scilab]/man/eng/lpsolve
  rm %i/lib/scilab-%type_raw[scilab]/man/eng/lpsolve/{whatis,*.man,*.htm}
  # another buglet, easier to fix here than in the .man file
  sed -ri -e '/""/d' 
%i/lib/scilab-%type_raw[scilab]/man/eng/lpsolve/sclpsolve.xml
  cp -p {ex,lpd}*.sce %i/share/doc/%N/examples
<<
DocFiles: <<
  */*/*/man/*.htm
  */*/*/README.txt:README
<<
PostInstScript: <<
  cat > /tmp/lpsolve_sci_cmd <<-'EOF'
        %%helps = [%%helps; '%p/lib/scilab-%type_raw[scilab]/man/eng/lpsolve'   
'Mixed Integer Linear Programming'];
        xmltohtml('%p/lib/scilab-%type_raw[scilab]/man/eng/lpsolve','Mixed 
Integer Linear Programming')
        add_help_chapter('Mixed Integer Linear 
Programming','%p/lib/scilab-%type_raw[scilab]/man/eng/lpsolve')
        genlib("lpsolvelib",'%p/share/%N/macros')
        lpsollvelib=lib('%p/share/%N/macros/')
        exit
        EOF
# the "cd" next line is because contents.htm and index.htm end up in the 
current directory...
# (and are relative only to %p/lib/scilab-%type_raw[scilab]/man/eng/lpsolve
# _ are NOT an update of 
%p/lib/scilab-%type_raw[scilab]/man/eng{contents,index}.htm :
# further sed work is needed to update the latter from the former..
  cd /%p/lib/scilab-%type_raw[scilab]/man/eng/lpsolve
  scilab -nb -nwni -f /tmp/lpsolve_sci_cmd
  sed -ri -e "/^<\/body>/i \
$(fgrep lpsolve contents.htm|sed -r -e 's,/dd>,&\\,' -e '$s,\\$,,')" 
../contents.htm
  sed -ri -e "/<\/dl>/i \
`fgrep lpsolve index.htm`" ../index.htm
  rm -f /tmp/lpsolve_sci_cmd *.xml {contents,index}.htm
  echo "%%helps = [%%helps; '%p/lib/scilab-%type_raw[scilab]/man/eng/lpsolve' 
'Mixed Integer Linear Programming']" >> 
%p/lib/scilab-%type_raw[scilab]/scilab.star
  echo "lpsollvelib=lib('%p/share/%N/macros/')" >> 
%p/lib/scilab-%type_raw[scilab]/scilab.star
<<
PreRmScript: <<
  rm -f %p/lib/scilab-%type_raw[scilab]/man/eng/lpsolve/*.htm
  sed -ri -e "/lpsolve/d" 
%p/lib/scilab-%type_raw[scilab]/{scilab.star,man/eng/{contents,index}.htm}
<<

Description: Scilab interface to the mixed LP pkg lpsolve
DescPackaging: <<
<<
DescUsage: <<
For doc on lpsolve, cf http://lpsolve.sourceforge.net/%type_raw[maj]/
For doc on this interface from Scilab, cf %p/share/doc/%n/scilab.htm
<<
License: LGPL
HomePage: http://sourceforge.net/projects/lpsolve/
Maintainer: JF Mertens <[EMAIL PROTECTED]>
<<

--- NEW FILE: lpsolve-extra.info ---
Info2: <<
Package: lpsolve-extra
Description: External Language Interfaces for lpsolve
Version: 0.0
Revision: 1
# rev-up and adapt next line when version-increases of lpsolve or glpk
Type: glpk (4.10), maj (5.5), full (5.5.0.9)

BuildDepends: lpsolve%type_raw[maj]-dev (>= %type_raw[full]-3), glpk (>= 
%type_raw[glpk]-1), bison, flex, sed | ssed
Depends: lpsolve%type_raw[maj]-shlibs (>= %type_raw[maj].0.0-1)

# we need the lp_solve source again, for yacc_read.c lp_Hash.c lp_utils.c 
shared/{commonlib,myblas}.c and colamd/colamd.c
Source: mirror:sourceforge:lpsolve/lp_solve_%type_raw[full]_source.tar.gz
Source-MD5: 8c2823c8dc3d4cb80b7510b1d500635d
# those are the real sources:
Source2: 
mirror:sourceforge:lpsolve/lp_solve_%type_raw[full]_xli_MathProg_source.tar.gz
Source2-MD5: 7d6ea901b2a50d385a0a4afacc7543c6
Source3: 
mirror:sourceforge:lpsolve/lp_solve_%type_raw[full]_xli_CPLEX_source.tar.gz
Source3-MD5: bc688f2ae35193ed3e58bdc44a544453
Source4: 
mirror:sourceforge:lpsolve/lp_solve_%type_raw[full]_xli_DIMACS_source.tar.gz
Source4-MD5: d5da33641a06af15000a2bd8e1c0c797
Source5: 
mirror:sourceforge:lpsolve/lp_solve_%type_raw[full]_xli_LINDO_source.tar.gz
Source5-MD5: fa61f257beb7565d99a83041e8835d09
Source6: 
mirror:sourceforge:lpsolve/lp_solve_%type_raw[full]_bfp_GLPK_source.tar.gz
Source6-MD5: 916c9cb74502b86753c5bc03193063be
Source7: 
mirror:sourceforge:lpsolve/lp_solve_%type_raw[full]_bfp_LUSOL_source.tar.gz
Source7-MD5: fd2008980ec4d79101d4b60937ac4ed4
Source8: 
mirror:sourceforge:lpsolve/lp_solve_%type_raw[full]_bfp_etaPFI_source.tar.gz
Source8-MD5: 9fa411b976fd8f2ded78cdc3c401b831
# the following doesn't unzip well...
#Source9: mirror:sourceforge:lpsolve/lp_solve_%type_raw[full]_doc.tar.gz
#Source9-MD5: 6a922addc6e6b6a8c9baff19debb05a1
#
SourceDirectory: lp_solve_%type_raw[maj]

PatchScript: <<
#!/bin/sh -ev
  # link as bundles, and strip
  sed -ri -e "s,opts='',opts='-Os'\nopts=\"\$opts -fstrict-aliasing\"," -e "s, 
\-fpic,," -e 's:so="\-s.*:so="-bundle":' \
        -e "s: \-lc \-lm: -Wl,-x -dead_strip -exported_symbols_list 
../exp_sym:" */*/ccc
  # One could use the lpsolve headers by adding in the beginning of the above 
perl cmd the subs :
  # "s:\.\./\.\.:%p/include/lpsolve:g; " , but we have anyway to re-expand the 
lpsolve source for the .c files (cf supra).
  # One could also add -llpsolve in the link line, and remove from $src all 
"%p/include/lpsolve/..."
  # _ so we would no longer need the lpsolve source, but afraid of compilation 
under different -D's. 
  # link with glpk instead of re-compiling:
  perl -pi -e 's, \$\{glpk\},,; s,I\$\{glpkdir\},I%p,; s,\-Wl,-L%p/lib -lglpk 
$&,' {xli/xli_MathProg,bfp/bfp_GLPK}/ccc
  # prior non-static declaration in lp_lib.h:2134 :
  perl -pi -e 's,static (MYBOOL is_chsign),\1,' xli/xli_DIMACS/lp_Dimacs.c
  # rm irrelevant files
  rm -f xli/*/xli_* bfp/*/bfp_* */*/c*.bat */*.bat
# from lpsolve pkg :
  ## Dynamic library filenames on OS X end with ".dylib", not ".so". Also, give 
full path for dlopen.
  perl -pi -e 's,liblpsolve%type_pkg[maj].so,%p/lib/liblpsolve.dylib,' 
lp_explicit.h
## hard-code the paths to the modules, for the user's convenience (preserving 
the possibility to specify
## a full path, absolute or relative), since fink doesn't give us a decent 
DYLD(_FALLBACK)_LIBRARY_PATH...
  perl -pi.bak -e "s:( +)  strcat\(((bfp|xli)name), \".so\"\);:$&\n\1char 
finklib[127]=\"%p/lib/\";
\1if(strrchr(\2,'/') != NULL) finklib[0]=0;
\1strcat(finklib,\2);:;
        s:(dlopen\().*name:\1finklib:" lp_lib.c
# make the .bat scripts useable
  sed -ri -e 's,^del,rm,' -e 's,\r$,,' lp_rlp.bat */*/*.bat
<<
CompileScript: <<
#!/bin/sh -ev
  for d in xli/xli_CPLEX xli/xli_LINDO; do cd $d; . ./*.bat; cd -; done
  for d in bfp xli; do \
        cd $d
        D=`echo $d|tr "[:lower:]" "[:upper:]"`
        sed -r -e '/EXPORTS/d' -e 's,^ +,_,' < lp_$D.def > exp_sym
        for n in ${d}_*; do cd $n; sh -ev ccc; cd -; done
        cd ..
  done
<<
InstallScript: <<
#!/bin/sh -ev
  # bundles
  mkdir -p %i/lib
  cp -p */*/*.so %i/lib
  chmod 644 %i/lib/*  
  # Headers
  for d in bfp xli; do \
        cd $d
        mkdir -p %i/include/lpsolve/$d
        cp *.{def,h,c} %i/include/lpsolve/$d
        for n in ${d}_* ; do mkdir -p %i/include/lpsolve/$d/$n; cp $n/*.h 
%i/include/lpsolve/$d/$n; done
        cd ..
  done
  # the following should be in lpsolve
  cp *.def %i/include/lpsolve
  # the following are already in lpsolve
  rm -f %i/include/lpsolve/bfp/{lp_BFP,bfp_LUSOL/lp_LUSOL}.h
  # docs
  sed -ri -e '/^(This directory|To build)/d' -e '/^$/d' xli/*/readme.txt
  mkdir -p %i/share/doc/%n/examples/lpsolve %i/share/doc/%n/examples/DIMACS 
%i/share/doc/lpsolve%type_raw[maj]-shlibs
  ln -s other/README.txt %i/share/doc/%n/README_lpsolve
  ln -s ../lpsolve%type_raw[maj]-shlibs %i/share/doc/%n/other
  ln -s ../%n %i/share/doc/lpsolve%type_raw[maj]-shlibs/extras
  cp -p xli/xli_DIMACS/*.net xli/xli_DIMACS/*.htm 
%i/share/doc/%n/examples/DIMACS
  ln -s examples/DIMACS %i/share/doc/%n/DIMACS
  # And since we had anyway to expand the src of lpsolve, we can as well 
install its demo
  # Here we delete the $src, and link instead with the dylib, forgetting our 
scruples about different '-D' flags ...
  # for a demo, the risk is compensated by the gain in space : 18K vs > 600K
  cd demo
  sed -ri -e 's,\$src ,,' -e 's,\$math \$dl,%p/lib/liblpsolve.dylib 
-mdynamic-no-pic -Os -fstrict-aliasing -s -dead_strip,' ccc
  sh -ev ./ccc
  cp -p demo %i/share/doc/%n/examples/lpsolve
  ln -s examples/lpsolve/demo %i/share/doc/%n/lpsolve_demo
<<

DocFiles: <<
  bfp/bfp_LUSOL/LUSOL/LUSOL-overview.txt:overview_LUSOL
  xli/xli_CPLEX/readme.txt:readme_CPLEX
  xli/xli_LINDO/readme.txt:readme_LINDO
  xli/xli_MathProg/readme.txt:readme_MathProg
<<
DescDetail: <<
External Language Interfaces (XLI) and Basis Factorization Packages (BFP)
for the linear (mixed integer) programming solver lpsolve.
<<

DescPackaging: <<
<<

DescUsage: <<
For doc, cf http://lpsolve.sourceforge.net/%type_raw[maj]/
For a (lpsolve, not lpsolve-extra) demo, type : %p/share/doc/%n/lpsolve_demo
<<
License: LGPL
HomePage: http://sourceforge.net/projects/lpsolve/
Maintainer: JF Mertens <[EMAIL PROTECTED]>
<<

--- NEW FILE: lpsolve-python.info ---
Info2: <<
Package: lpsolve-python
Version: 0.0
Revision: 1
## rev-up and change next line at every new version of python (or lpsolve)
Type: python (2.5), maj (5.5), full (5.5.0.9)

BuildDepends: lpsolve%type_raw[maj]-dev (>= %type_raw[full]-3), 
python%type_pkg[python]
Depends: lpsolve%type_raw[maj]-shlibs (>= %type_raw[maj].0.0-1), 
python%type_pkg[python]

Source: mirror:sourceforge:lpsolve/lp_solve_%type_raw[full]_Python_source.tar.gz
Source-MD5: 8cc7d76a0e3f80331a869bae2a0f56cc
SourceDirectory: lp_solve_%type_raw[maj]

PatchScript: <<
  rm -f */*/*.bat
  perl -pi -e 's,malloc\.h,stdlib.h,' */*/hash.c
  perl -pi -e 's,\.\./\.\./lpsolve%type_pkg[maj],%p/lib,; 
s,(\["lpsolve)%type_pkg[maj],\1,; s,\.\./\.\.,%p/include/lpsolve,' 
extra/Python/setup.py
<<
CompileScript: echo ''
InstallScript: <<
#!/bin/sh -ev
  cd extra/Python
  %p/bin/python%type_raw[python] setup.py install --root=%d
  mkdir -p %i/share/doc/%N/examples %i/share/doc/lpsolve%type_raw[maj]-shlibs
  ln -s ../%n %i/share/doc/lpsolve%type_raw[maj]-shlibs
  cp -p {ex,lpd}*.py %i/share/doc/%N/examples
<<
DocFiles: <<
  */*/*.htm
<<

Description: Python interface to the mixed LP pkg lpsolve
DescPackaging: <<
<<
DescUsage: <<
For doc on lpsolve, cf http://lpsolve.sourceforge.net/%type_raw[maj]/
For doc on this interface from Python, cf %p/share/doc/%n/Python.htm
<<
License: LGPL
HomePage: http://sourceforge.net/projects/lpsolve/
Maintainer: JF Mertens <[EMAIL PROTECTED]>
<<

--- NEW FILE: lpsolve.info ---
Info2: <<
Package: lpsolve
Description: Mixed Integer Linear Programming (ILP) solver
Type: maj (5.5), min (0.9)
#Version: %type_raw[maj].%type_raw[min]
Version: 5.5.0.9
Revision: 3

BuildDepends: sed | ssed, bison, flex
Depends: %N%type_raw[maj]-shlibs (= %v-%r)

Source: mirror:sourceforge:%n/lp_solve_%v_source.tar.gz
Source-MD5: 8c2823c8dc3d4cb80b7510b1d500635d
SourceDirectory: lp_solve_%type_raw[maj]

PatchScript: <<
#!/bin/sh -ev
## change the name of the lib, and correct install_name.
  sed -i.bak -e '{
        s,lib%N%type_pkg[maj],lib%N,g
        s,lib%N\.dylib,lib%N.%type_raw[maj].0.dylib -install_name 
%p/lib/lib%N.%type_raw[maj].dylib,
# lib%N.a is useless on the link line (except if with -all_load, and then tail 
of the cmd is useless..), and let us strip.
        s;b lib%N.a;b -single_module -Wl,-x -dead_strip -exported_symbols_list 
../exp_sym;
        }' %N%type_pkg[maj]/ccc.osx
## for executable, use dynamic linking, and -mdynamic-no-pic _ and strip :
  sed -i.bak -e 's;\$src;-mdynamic-no-pic -s -dead_strip lp_solve.c 
../%N%type_pkg[maj]/lib%N.dylib;' lp_solve/ccc.osx
## try adding -fstrict-aliasing to CFLAGS (comment out for the moment since 
gives a warning in lp_matrix.c 2308-2309)
#  sed -i~ -e 's,\-O3,& -fstrict-aliasing -Wall,' lp*/ccc.osx
## Dynamic library filenames on darwin end with ".dylib", not ".so". Also, give 
full path for dlopen.
  perl -pi -e 's,lib%N%type_pkg[maj].so,%p/lib/lib%N.dylib,' lp_explicit.h
## hard-code the paths to the modules, for the user's convenience (preserving 
the possibility to specify
## a full path, absolute or relative), since fink doesn't give us a decent 
DYLD(_FALLBACK)_LIBRARY_PATH...
  perl -pi.bak -e "s:( +)  strcat\(((bfp|xli)name), \".so\"\);:$&\n\1char 
finklib[127]=\"%p/lib/\";
\1if(strrchr(\2,'/') != NULL) finklib[0]=0;
\1strcat(finklib,\2);:;
        s:(dlopen\().*name:\1finklib:" lp_lib.c
# make the .bat script useable
  sed -ri -e 's,^del,rm,' -e 's,\r$,,' lp_rlp.bat
<<

CompileScript: <<
#!/bin/sh -ev

  # Run bison and flex
  . ./lp_rlp.bat

  # Build the library
  sed -r -e '/EXPORTS/d' -e 's,^ +,_,' < lp_solve.def > exp_sym
  cd %N%type_pkg[maj]
  sh -ev ccc.osx

  # Symbolic links to library
  ln -s lib%N.%type_raw[maj].0.dylib lib%N.%type_raw[maj].dylib
  ln -s lib%N.%type_raw[maj].dylib lib%N.dylib

  # Build the lp_solve executable
  cd ../lp_solve
  sh -ev ccc.osx
<<

InstallScript: <<
#!/bin/sh -ev

  # Libraries
  mkdir -p %i/lib
  cp -pPR %N%type_pkg[maj]/lib%N.* %i/lib

  # Headers
  mkdir -p %i/include/%N/bfp/bfp_LUSOL/LUSOL
  mkdir -p %i/include/%N/colamd
  mkdir -p %i/include/%N/shared
  cp *.h %i/include/%N
  cp bfp/*.h %i/include/%N/bfp
  cp bfp/bfp_LUSOL/*.h %i/include/%N/bfp/bfp_LUSOL
  cp bfp/bfp_LUSOL/LUSOL/*.h %i/include/%N/bfp/bfp_LUSOL/LUSOL
  cp colamd/*.h %i/include/%N/colamd
  cp shared/*.h %i/include/%N/shared
#  # Additional "headers" (for %N-extra):
#  cp yacc_read.c lp_Hash.c lp_utils.c %i/include/%N
#  cp shared/{commonlib,myblas}.c %i/include/%N/shared
#  cp colamd/colamd.c %i/include/%N/colamd

  # Executable
  mkdir -p %i/bin
  install lp_solve/lp_solve %i/bin

  # link the doc files:
  mkdir -p %i/share/doc
  ln -s %N%type_raw[maj]-shlibs %i/share/doc/%n
<<

SplitOff: <<
  Package: %N%type_raw[maj]-shlibs
  Files: lib/lib%N.*.dylib
  Shlibs: %p/lib/lib%N.%type_raw[maj].dylib %type_raw[maj].0 %n (>= 
%type_raw[maj].0.0-1)
#  Shlibs: %p/lib/lib%N.%type_raw[maj].dylib 5.5.0 %n (>= 5.5.0.0-1)
  DocFiles: README.txt
<<

SplitOff2: <<
  Package: %N%type_raw[maj]-dev
  Depends: %N%type_raw[maj]-shlibs (= %v-%r)
  BuildDependsOnly: true
  Files: include lib
  InstallScript: <<
    # link the doc files:
    mkdir -p %i/share/doc
    ln -s %N%type_raw[maj]-shlibs %i/share/doc/%n  
  <<
<<

DescDetail: <<
lp_solve is a free linear (integer) programming solver based on the revised
simplex method and the Branch-and-bound method for the integers. It solves pure
linear, (mixed) integer/binary, semi-continuous and special ordered sets (SOS)
models. It can be called as a library from different languages like C, VB,
.NET, Delphi, Excel, Java, ...
<<

DescPort: <<
Experimenting with -combine is very negative:
total size of .o files w/o combining : 751216; combined: 876720; stripped dylib 
after combining: 753208
(cmp to 601832  _ cf below)
(independently [except of course for the size of the combined .o file, 876720] 
of whether first compile, then link,
or, "compile-and-link in 1 go")

Those figures are quite robust: the following sizes of the dylib are 
independent of the various combinations
of '-s' and '-gfull' in the compile stage :
-fno-common, -single-module: 601776
-fno-common, multiple-modules: 609436
common; -single-module: 601832

[Above figures from before using the exported_symbols_list; now size=509312]
<<

DescPackaging: <<
Library name changed from "%N%type_pkg[maj]" to "%N".
So the install_name (and the splitoff-names) must contain "%type_raw[maj]"...

Use dynamic linking for the executable.

The demo files are not packaged (neither source nor binary).
<<

DescUsage: documentation in http://%N.sourceforge.net/%type_raw[maj]/

License: LGPL
HomePage: http://sourceforge.net/projects/%N/
Maintainer: Trevor Harmon <[EMAIL PROTECTED]>
<<

--- NEW FILE: lpsolve-octave.info ---
Info2: <<
Package: lpsolve-octave
Version: 0.0
Revision: 1
## It is probably prudent to rev-up and change the next line whenever octave or 
lpsolve go to a new version
Type: octave (2.1.73), maj (5.5), full (5.5.0.9)

BuildDepends: fftw3, hdf5, libncurses5, lpsolve%type_raw[maj]-dev (>= 
%type_raw[full]-3), octave (>= %type_raw[octave]-1), readline5
Depends: fftw3-shlibs, hdf5-shlibs, libncurses5-shlibs, 
lpsolve%type_raw[maj]-shlibs (>= %type_raw[maj].0.0-1), octave (>= 
%type_raw[octave]-1), readline5-shlibs

Source: mirror:sourceforge:lpsolve/lp_solve_%type_raw[full]_octave_source.tar.gz
Source-MD5: b8992431ffedc1e6e73e158c54a4b1ce
SourceDirectory: lp_solve_%type_raw[maj]

PatchScript: <<
  perl -pi -e 's,malloc\.h,stdlib.h,' */*/*/hash.c
  perl -pi -e 's,\.\./\.\./\.\.,%p/include/lpsolve,; s:\*\.o:$& -Wl,-x 
-Wl,-dead_strip:' */*/*/ccc
  perl -pi -e 's,liblpsolve%type_pkg[maj]\.so,%p/lib/liblpsolve.dylib,' 
*/*/*/lp_explicit.h
<<
CompileScript: echo ''
InstallScript: <<
#!/bin/sh -ev
  cd extra/octave/lpsolve
  sh -ev ccc
  mkdir -p %i/lib/octave/site/oct/%m-apple-darwin %i/share/octave/site/m 
%i/share/doc/%N/examples %i/share/doc/lpsolve%type_raw[maj]-shlibs
  ln -s ../%n %i/share/doc/lpsolve%type_raw[maj]-shlibs
  chmod a-x octlpsolve.oct
  cp -p octlpsolve.oct %i/lib/octave/site/oct/%m-apple-darwin
  cp -p {oct,lp_}*.m %i/share/octave/site/m
  cp -p {ex,lpd}*.m %i/share/doc/%N/examples
<<
DocFiles: <<
  */*/*/*.htm
<<

Description: Octave interface to the mixed LP pkg lpsolve
DescPackaging: <<
<<
DescUsage: <<
For doc on lpsolve, cf http://lpsolve.sourceforge.net/%type_raw[maj]/
For doc on this interface from Octave, cf %p/share/doc/%n/Octave.htm
<<
License: LGPL
HomePage: http://sourceforge.net/projects/lpsolve/
Maintainer: JF Mertens <[EMAIL PROTECTED]>
<<

--- NEW FILE: lpsolve-java.info ---
Package: lpsolve-java
Version: 5.5.0.9
Revision: 3
Type: java(1.4)

Source: mirror:sourceforge:lpsolve/lp_solve_%v_java.zip
Source-MD5: d871f56e9421bba6d44cd24ced6d809d
SourceDirectory: lp_solve_5.5_java

Depends: lpsolve5.5-shlibs (>= %v-3), system-java (>= 1.4)
BuildDepends: lpsolve5.5-dev (>= %v-3), system-java-dev (>= 1.4)

CompileScript: <<

  # JNI library
  g++ -fPIC -fno-common -I $JAVA_HOME/include -I %p/include/lpsolve -I src/c 
-idirafter /usr/include/sys -c src/c/lpsolve5j.cpp
  g++ -dynamiclib lpsolve5j.o -compatibility_version 5.5.0 -current_version 
5.5.0 -o liblpsolve55j.jnilib -lc -llpsolve -L%p/lib

  # Java library
  cd src/java/lpsolve && javac *.java
  cd src/java && jar cf lpsolve.jar lpsolve/*.class

<<

InstallScript: <<

  # JNI library
  mkdir -p %i/lib
  cp liblpsolve55j.jnilib %i/lib

  # Docs
  mkdir -p %i/share/doc/%n/api
  cp -R docs/* %i/share/doc/%n/api/

<<

JarFiles: src/java/lpsolve.jar

DocFiles: CHANGES.txt LGPL README.html

HomePage: http://sourceforge.net/projects/lpsolve/
Maintainer: Trevor Harmon <[EMAIL PROTECTED]>
Description: Java bindings for lpsolve
License: LGPL

DescDetail: <<
Designed for lp_solve (a.k.a. lpsolve), this Java class library is used by Java
client programs to gain access to all lp_solve routines.
<<

DescUsage: <<
To run Java programs that use this library, you may need to set
java.library.path and DYLD_LIBRARY_PATH to %p/lib. For example:

  export DYLD_LIBRARY_PATH=%p/lib
  java -Djava.library.path=%p/lib Demo
<<

                 


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Fink-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fink-commits

Reply via email to