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

  Server: cvs.openpkg.org                  Name:   Ralf S. Engelschall
  Root:   /e/openpkg/cvs                   Email:  [EMAIL PROTECTED]
  Module: openpkg-src openpkg-web openpkg$ Date:   24-Jan-2004 14:06:58
  Branch: HEAD                             Handle: 2004012413065503

  Added files:
    openpkg-re/vcheck       vc.smlnj
    openpkg-src/smlnj       smlnj-config.sh smlnj.patch smlnj.spec
  Modified files:
    openpkg-web             news.txt

  Log:
    new package: smlnj 110.44 (Standard ML of New Jersey (SML/NJ))

  Summary:
    Revision    Changes     Path
    1.1         +9  -0      openpkg-re/vcheck/vc.smlnj
    1.1         +16 -0      openpkg-src/smlnj/smlnj-config.sh
    1.1         +11 -0      openpkg-src/smlnj/smlnj.patch
    1.1         +164 -0     openpkg-src/smlnj/smlnj.spec
    1.8193      +1  -0      openpkg-web/news.txt
  ____________________________________________________________________________

  patch -p0 <<'@@ .'
  Index: openpkg-re/vcheck/vc.smlnj
  ============================================================================
  $ cvs diff -u -r0 -r1.1 vc.smlnj
  --- /dev/null 2004-01-24 14:06:56.000000000 +0100
  +++ vc.smlnj  2004-01-24 14:06:56.000000000 +0100
  @@ -0,0 +1,9 @@
  +config = {
  +}
  +
  +prog smlnj = {
  +  version   = 110.44
  +  url       = http://smlnj.cs.uchicago.edu/dist/working/
  +  regex     = (11\d\.\d+)
  +}
  +
  @@ .
  patch -p0 <<'@@ .'
  Index: openpkg-src/smlnj/smlnj-config.sh
  ============================================================================
  $ cvs diff -u -r0 -r1.1 smlnj-config.sh
  --- /dev/null 2004-01-24 14:06:58.000000000 +0100
  +++ smlnj-config.sh   2004-01-24 14:06:58.000000000 +0100
  @@ -0,0 +1,16 @@
  +#!/bin/sh
  +
  +heapdir="@heapdir@"
  +
  +for arg in "$@"; do
  +    case $arg in
  +        --heapdir )
  +            echo "${heapdir}"
  +            ;;
  +        * )
  +            echo "Usage: $0 [--heapdir]"
  +            exit 1
  +            ;;
  +    esac
  +done
  +
  @@ .
  patch -p0 <<'@@ .'
  Index: openpkg-src/smlnj/smlnj.patch
  ============================================================================
  $ cvs diff -u -r0 -r1.1 smlnj.patch
  --- /dev/null 2004-01-24 14:06:58.000000000 +0100
  +++ smlnj.patch       2004-01-24 14:06:58.000000000 +0100
  @@ -0,0 +1,11 @@
  +--- src/runtime/objs/mk.x86-freebsd.orig     Mon Nov  6 22:41:04 2000
  ++++ src/runtime/objs/mk.x86-freebsd  Thu Aug 14 06:06:06 2003
  +@@ -10,7 +10,7 @@
  + ARFLAGS =   Trcv
  + CC =                gcc -ansi
  + CFLAGS =    -O2
  +-CPP =               gcc -x c -E -P -ansi
  ++CPP =               gcc -x assembler-with-cpp -E -P
  + #CPP =              /usr/bin/cpp -P
  + 
  + XOBJS =
  @@ .
  patch -p0 <<'@@ .'
  Index: openpkg-src/smlnj/smlnj.spec
  ============================================================================
  $ cvs diff -u -r0 -r1.1 smlnj.spec
  --- /dev/null 2004-01-24 14:06:58.000000000 +0100
  +++ smlnj.spec        2004-01-24 14:06:58.000000000 +0100
  @@ -0,0 +1,164 @@
  +##
  +##  bind.spec -- OpenPKG RPM Specification
  +##  Copyright (c) 2000-2004 The OpenPKG Project <http://www.openpkg.org/>
  +##  Copyright (c) 2000-2004 Ralf S. Engelschall <[EMAIL PROTECTED]>
  +##  Copyright (c) 2000-2004 Cable & Wireless <http://www.cw.com/>
  +##
  +##  Permission to use, copy, modify, and distribute this software for
  +##  any purpose with or without fee is hereby granted, provided that
  +##  the above copyright notice and this permission notice appear in all
  +##  copies.
  +##
  +##  THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  +##  WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  +##  MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  +##  IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
  +##  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  +##  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  +##  LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  +##  USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  +##  ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  +##  OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  +##  OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  +##  SUCH DAMAGE.
  +##
  +
  +#   package information
  +Name:         smlnj
  +Summary:      Standard ML of New Jersey (SML/NJ)
  +URL:          http://www.smlnj.org/
  +Vendor:       University of Chicago
  +Packager:     The OpenPKG Project
  +Distribution: OpenPKG [EVAL]
  +Group:        Languages
  +License:      BSD-like
  +Version:      110.44
  +Release:      20040124
  +
  +#   package options
  +%option       with_x11  no
  +
  +#   list of sources
  +Source0:      
http://smlnj.cs.uchicago.edu/dist/working/%{version}/boot.sparc-unix.tgz
  +Source1:      http://smlnj.cs.uchicago.edu/dist/working/%{version}/boot.x86-unix.tgz
  +Source2:      http://smlnj.cs.uchicago.edu/dist/working/%{version}/MLRISC.tgz
  +Source3:      http://smlnj.cs.uchicago.edu/dist/working/%{version}/ckit.tgz
  +Source4:      http://smlnj.cs.uchicago.edu/dist/working/%{version}/cm.tgz
  +Source5:      http://smlnj.cs.uchicago.edu/dist/working/%{version}/cml.tgz
  +Source6:      http://smlnj.cs.uchicago.edu/dist/working/%{version}/config.tgz
  +Source7:      http://smlnj.cs.uchicago.edu/dist/working/%{version}/eXene.tgz
  +Source8:      http://smlnj.cs.uchicago.edu/dist/working/%{version}/ml-burg.tgz
  +Source9:      http://smlnj.cs.uchicago.edu/dist/working/%{version}/ml-lex.tgz
  +Source10:     http://smlnj.cs.uchicago.edu/dist/working/%{version}/ml-yacc.tgz
  +Source11:     http://smlnj.cs.uchicago.edu/dist/working/%{version}/ml-nlffi-lib.tgz
  +Source12:     http://smlnj.cs.uchicago.edu/dist/working/%{version}/ml-nlffigen.tgz
  +Source13:     http://smlnj.cs.uchicago.edu/dist/working/%{version}/runtime.tgz
  +Source14:     http://smlnj.cs.uchicago.edu/dist/working/%{version}/smlnj-c.tgz
  +Source15:     http://smlnj.cs.uchicago.edu/dist/working/%{version}/smlnj-lib.tgz
  +Source16:     http://smlnj.cs.uchicago.edu/dist/working/%{version}/system.tgz
  +Source17:     smlnj-config.sh
  +Patch0:       smlnj.patch
  +
  +#   build information
  +Prefix:       %{l_prefix}
  +BuildRoot:    %{l_buildroot}
  +BuildPreReq:  OpenPKG, openpkg, gcc
  +PreReq:       OpenPKG, openpkg
  +%if "%{with_x11}" == "yes"
  +BuildPreReq:  X11
  +PreReq:       X11
  +%endif
  +AutoReq:      no
  +AutoReqProv:  no
  +
  +%description
  +    Standard ML of New Jersey (SML/NJ) is a compiler for the Standard
  +    ML '97 programming language with associated libraries, tools, and
  +    documentation. SML/NJ is the most popular implementation of the
  +    Standard Meta Language (SML). SML is a functional language from the
  +    ML family (like CAML).
  +
  +%prep
  +    #   make container directory
  +    %setup -c -T
  +
  +    #   copy distribution tarballs to working directory
  +    for tarball in \
  +        %{SOURCE0}  %{SOURCE1}  %{SOURCE2}  %{SOURCE3}  %{SOURCE4} \
  +        %{SOURCE5}  %{SOURCE6}  %{SOURCE7}  %{SOURCE8}  %{SOURCE9} \
  +        %{SOURCE10} %{SOURCE11} %{SOURCE12} %{SOURCE13} %{SOURCE14} \
  +        %{SOURCE15} %{SOURCE16}; do
  +        cp $tarball .
  +    done
  +
  +    #   unpack bootstrapping part
  +    %{l_gzip} -d -c config.tgz | %{l_tar} xf -
  +
  +    #   pre-unpack and patch some parts
  +    %{l_gzip} -d -c runtime.tgz | (mkdir src; cd src; %{l_tar} xf -) || exit $?
  +    %{l_patch} -p0 <%{PATCH0}
  +
  +    #   configure package
  +%if "%{with_x11}" == "yes"
  +    %{l_shtool} subst \
  +        -e 's;#request eXene;request eXene;g' \
  +        config/targets
  +%endif
  +
  +%build
  +    #   the actual build can't proceed this early, since the custom build
  +    #   scripts would require $RPM_BUILD_ROOT to exist already
  +
  +%install
  +    rm -rf $RPM_BUILD_ROOT
  +
  +    #   make installation hierarchy
  +    %{l_shtool} mkdir -f -p -m 755 \
  +        $RPM_BUILD_ROOT%{l_prefix}/libexec/smlnj \
  +        $RPM_BUILD_ROOT%{l_prefix}/bin
  +
  +    #   determine heap directory
  +    HEAPDIR="%{l_prefix}/libexec/smlnj/bin/.heap"
  +
  +    #   build distribution
  +    INSTALLDIR=$RPM_BUILD_ROOT%{l_prefix}/libexec/smlnj \
  +        %{l_bash} config/install.sh
  +
  +    #   fix absolute symlink paths
  +    for symlink in `find $RPM_BUILD_ROOT%{l_prefix} -type l -print`; do
  +        target=`/bin/ls -al $symlink |\
  +            sed -e 's;^;X;' \
  +                -e "s;^X.* -> $RPM_BUILD_ROOT\\(.*\\)\$;\\1;g" \
  +                -e 's;^X.*;;'`
  +        if [ ".$target" != . ]; then
  +            rm -f $symlink
  +            ln -s $target $symlink
  +        fi
  +    done
  +
  +    #   install wrapper scripts
  +    for binfile in $RPM_BUILD_ROOT%{l_prefix}/libexec/smlnj/bin/*; do
  +        simplename=`basename $binfile`
  +        ( echo "#!/bin/sh"
  +          echo "SMLNJ_HOME=\"%{l_prefix}/libexec/smlnj\""
  +          echo "export SMLNJ_HOME"
  +          echo "exec %{l_prefix}/libexec/smlnj/bin/$simplename \${1+\"[EMAIL 
PROTECTED]"}"
  +        ) >wrapper
  +        %{l_shtool} install -c -m 755 \
  +            wrapper $RPM_BUILD_ROOT%{l_prefix}/bin/$simplename
  +    done
  +
  +    #   install configuration script
  +    %{l_shtool} install -c -m 755 %{l_value -s -a} \
  +        -e "s;@heapdir@;$HEAPDIR;g" \
  +        %{SOURCE smlnj-config.sh} \
  +        $RPM_BUILD_ROOT%{l_prefix}/bin/smlnj-config
  +
  +    #   determine installation files
  +    %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
  +
  +%files -f files
  +
  +%clean
  +    rm -rf $RPM_BUILD_ROOT
  +
  @@ .
  patch -p0 <<'@@ .'
  Index: openpkg-web/news.txt
  ============================================================================
  $ cvs diff -u -r1.8192 -r1.8193 news.txt
  --- openpkg-web/news.txt      24 Jan 2004 12:52:21 -0000      1.8192
  +++ openpkg-web/news.txt      24 Jan 2004 13:06:56 -0000      1.8193
  @@ -1,3 +1,4 @@
  +24-Jan-2004: New package: P<smlnj-110.44-20040124>
   24-Jan-2004: Upgraded package: P<apache-1.3.29-20040124>
   24-Jan-2004: Upgraded package: P<openpkg-20040124-20040124>
   24-Jan-2004: Upgraded package: P<mplayer-1.0pre3-20040124>
  @@ .
______________________________________________________________________
The OpenPKG Project                                    www.openpkg.org
CVS Repository Commit List                     [EMAIL PROTECTED]

Reply via email to