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:   09-Dec-2006 10:30:33
  Branch: HEAD                             Handle: 2006120909303200

  Added files:
    openpkg-src/io          io.spec

  Log:
    new package: io 20061207 (IO Programming Language)

  Summary:
    Revision    Changes     Path
    1.1         +152 -0     openpkg-src/io/io.spec
  ____________________________________________________________________________

  patch -p0 <<'@@ .'
  Index: openpkg-src/io/io.spec
  ============================================================================
  $ cvs diff -u -r0 -r1.1 io.spec
  --- /dev/null 2006-12-09 10:30:23 +0100
  +++ io.spec   2006-12-09 10:30:33 +0100
  @@ -0,0 +1,152 @@
  +##
  +##  io.spec -- OpenPKG RPM Package Specification
  +##  Copyright (c) 2000-2006 OpenPKG Foundation e.V. <http://openpkg.net/>
  +##  Copyright (c) 2000-2006 Ralf S. Engelschall <http://engelschall.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 version
  +%define       V_opkg 20061207
  +%define       V_dist 2006-12-07
  +
  +#   package information
  +Name:         io
  +Summary:      IO Programming Language
  +URL:          http://www.iolanguage.com/
  +Vendor:       Steve Dekorte
  +Packager:     OpenPKG Foundation e.V.
  +Distribution: OpenPKG Community
  +Class:        EVAL
  +Group:        Language
  +License:      BSD
  +Version:      %{V_opkg}
  +Release:      20061209
  +
  +#   package options
  +%option       with_threads no
  +%option       with_zlib    no
  +%option       with_libxml  no
  +%option       with_sqlite  no
  +
  +#   list of sources
  +Source0:      http://io.urbanape.com/release/Io-%{V_dist}.tar.gz
  +Patch0:       io.patch
  +
  +#   build information
  +Prefix:       %{l_prefix}
  +BuildRoot:    %{l_buildroot}
  +BuildPreReq:  OpenPKG, openpkg >= 20040130, make
  +PreReq:       OpenPKG, openpkg >= 20040130
  +%if "%{with_zlib}" == "yes"
  +BuildPreReq:  zlib
  +PreReq:       zlib
  +%endif
  +%if "%{with_libxml}" == "yes"
  +BuildPreReq:  libxml
  +PreReq:       libxml
  +%endif
  +%if "%{with_sqlite}" == "yes"
  +BuildPreReq:  sqlite
  +PreReq:       sqlite
  +%endif
  +AutoReq:      no
  +AutoReqProv:  no
  +
  +%description
  +    Io is a small, prototype-based programming language. The ideas
  +    in Io are mostly inspired by Smalltalk (all values are objects),
  +    Self (prototype-based), NewtonScript (differential inheritance),
  +    Act1 (actors and futures for concurrency), LISP (code is a runtime
  +    inspectable/modifiable tree) and Lua (small, embeddable).
  +
  +%track
  +    prog io = {
  +        version   = %{V_dist}
  +        url       = http://www.iolanguage.com/downloads/
  +        regex     = Io-(__VER__)\.tar\.gz
  +    }
  +
  +%prep
  +    %setup -q -n Io-%{V_dist}
  +    %patch -p0
  +
  +%build
  +    #   prepare addon directory
  +    ( cd addons
  +      addons=""
  +      addons="$addons BigNum Blowfish CGI ContinuedFraction Contracts MD5 
Random"
  +      addons="$addons Rational Regex SHA1 SystemCall Socket User Vector"
  +%if "%{with_threads}" == "yes"
  +      addons="$addons Thread"
  +%endif
  +%if "%{with_zlib}" == "yes"
  +      addons="$addons Zlib"
  +%endif
  +%if "%{with_libxml}" == "yes"
  +      addons="$addons Libxml2"
  +%endif
  +%if "%{with_sqlite}" == "yes"
  +      addons="$addons SQLite3"
  +%endif
  +      for addon in *;       do mv $addon _$addon; done
  +      for addon in $addons; do mv _$addon $addon; done
  +      rm -rf _*
  +    ) || exit $?
  +
  +    #   build program and addons
  +    %{l_make} %{l_mflags -O} \
  +        INSTALL_PREFIX=%{l_prefix} \
  +        CC="%{l_cc} %{l_cflags -O} %{l_cppflags} %{l_ldflags}"
  +
  +%install
  +    #   install program and addons
  +    rm -rf $RPM_BUILD_ROOT
  +    %{l_shtool} mkdir -f -p -m 755 \
  +        $RPM_BUILD_ROOT%{l_prefix}/bin \
  +        $RPM_BUILD_ROOT%{l_prefix}/lib
  +    %{l_make} %{l_mflags} install \
  +        INSTALL_PREFIX=$RPM_BUILD_ROOT%{l_prefix}
  +
  +    #   prune addon directory tree
  +    find $RPM_BUILD_ROOT%{l_prefix}/lib/io -type d -depth -print | grep 
"/_build/headers" | xargs rm -rf
  +    find $RPM_BUILD_ROOT%{l_prefix}/lib/io -type d -depth -print | grep 
"/_build/objs"    | xargs rm -rf
  +    find $RPM_BUILD_ROOT%{l_prefix}/lib/io -type d -depth -print | grep 
"/_build/lib"     | xargs rm -rf
  +    find $RPM_BUILD_ROOT%{l_prefix}/lib/io -type d -depth -print | grep 
"/tests"          | xargs rm -rf
  +    find $RPM_BUILD_ROOT%{l_prefix}/lib/io -type d -depth -print | grep 
"/source"         | xargs rm -rf
  +    find $RPM_BUILD_ROOT%{l_prefix}/lib/io -type f -depth -print | grep 
"build.io"        | xargs rm -f
  +    find $RPM_BUILD_ROOT%{l_prefix}/lib/io -type f -depth -print | grep 
"depends"         | xargs rm -f
  +    find $RPM_BUILD_ROOT%{l_prefix}/lib/io -type d -depth -print | xargs 
rmdir >/dev/null 2>&1 || true
  +
  +    #   prune executable
  +    mv  $RPM_BUILD_ROOT%{l_prefix}/bin/io_static \
  +        $RPM_BUILD_ROOT%{l_prefix}/bin/io
  +    strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
  +
  +    #   remove useless files
  +    rm -f $RPM_BUILD_ROOT%{l_prefix}/lib/libiovmall.*
  +
  +    #   determine installation files
  +    %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
  +
  +%files -f files
  +
  +%clean
  +    rm -rf $RPM_BUILD_ROOT
  +
  @@ .
______________________________________________________________________
The OpenPKG Project                                    www.openpkg.org
CVS Repository Commit List                     [email protected]

Reply via email to