OpenPKG CVS Repository
  http://cvs.openpkg.org/
  ____________________________________________________________________________

  Server: cvs.openpkg.org                  Name:   Ralf S. Engelschall
  Root:   /v/openpkg/cvs                   Email:  [EMAIL PROTECTED]
  Module: openpkg-src                      Date:   30-May-2008 19:09:11
  Branch: HEAD                             Handle: 2008053018091100

  Added files:
    openpkg-src/mtasc       mtasc.sh
  Modified files:
    openpkg-src/mtasc       mtasc.spec

  Log:
    try to arrange the installation to that the standard library is found

  Summary:
    Revision    Changes     Path
    1.1         +2  -0      openpkg-src/mtasc/mtasc.sh
    1.3         +11 -2      openpkg-src/mtasc/mtasc.spec
  ____________________________________________________________________________

  patch -p0 <<'@@ .'
  Index: openpkg-src/mtasc/mtasc.sh
  ============================================================================
  $ cvs diff -u -r0 -r1.1 mtasc.sh
  --- /dev/null 2008-05-30 19:08:41 +0200
  +++ mtasc.sh  2008-05-30 19:09:11 +0200
  @@ -0,0 +1,2 @@
  +#!/bin/sh
  [EMAIL PROTECTED]@/libexec/mtasc/@tool@ ${1+"$@"}
  @@ .
  patch -p0 <<'@@ .'
  Index: openpkg-src/mtasc/mtasc.spec
  ============================================================================
  $ cvs diff -u -r1.2 -r1.3 mtasc.spec
  --- openpkg-src/mtasc/mtasc.spec      30 May 2008 16:01:26 -0000      1.2
  +++ openpkg-src/mtasc/mtasc.spec      30 May 2008 17:09:11 -0000      1.3
  @@ -40,6 +40,7 @@
   
   #   list of sources
   Source0:      
ftp://ftp.openpkg.org/sources/CPY/mtasc/mtasc-%{V_snapshot}.tar.bz2
  +Source1:      mtasc.sh
   Patch0:       mtasc.patch
   
   #   build information
  @@ -73,10 +74,18 @@
   %install
       rm -rf $RPM_BUILD_ROOT
       %{l_shtool} mkdir -f -p -m 755 \
  -        $RPM_BUILD_ROOT%{l_prefix}/bin
  +        $RPM_BUILD_ROOT%{l_prefix}/bin \
  +        $RPM_BUILD_ROOT%{l_prefix}/lib/mtasc
  +    for tool in mtasc mtasc-byte; do
  +        %{l_shtool} install -c -m 755 %{l_value -s -a} \
  +            -e "s;@tool@;$tool;" \
  +            %{SOURCE mtasc.sh} $RPM_BUILD_ROOT%{l_prefix}/bin/$tool
  +    done
       %{l_shtool} install -c -s -m 755 \
           bin/mtasc bin/mtasc-byte \
  -        $RPM_BUILD_ROOT%{l_prefix}/bin/
  +        $RPM_BUILD_ROOT%{l_prefix}/lib/mtasc/
  +    find ocaml/mtasc -name CVS -type d -print | xargs rm -rf
  +    cp -rp ocaml/mtasc/std* $RPM_BUILD_ROOT%{l_prefix}/lib/mtasc/
       %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
   
   %files -f files
  @@ .
______________________________________________________________________
OpenPKG                                             http://openpkg.org
CVS Repository Commit List                     [email protected]

Reply via email to