Hello community,

here is the log from the commit of package racket for openSUSE:Factory checked 
in at 2013-03-17 10:08:04
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/racket (Old)
 and      /work/SRC/openSUSE:Factory/.racket.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "racket", Maintainer is ""

Changes:
--------
New Changes file:

--- /dev/null   2013-02-26 18:15:11.936010755 +0100
+++ /work/SRC/openSUSE:Factory/.racket.new/racket.changes       2013-03-17 
10:08:06.000000000 +0100
@@ -0,0 +1,104 @@
+-------------------------------------------------------------------
+Sat Feb 16 09:07:11 UTC 2013 - tog...@opensuse.org
+
+- Update to 5.3.3 release for details see changelog.txt and News
+
+  * This is a bug-fix release to address a flaw in DrRacket v5.3.2
+    concerning interactions between the contour window and the syntax
+    coloring.
+ 
+
+-------------------------------------------------------------------
+Fri Feb  1 11:16:05 UTC 2013 - tog...@opensuse.org
+
+- Update to 5.3.2 release for details see changelog.txt and News
+
+  * Changed case to use equal? instead of eqv?
+  * Changed log-message to support a name argument
+  * Changed the synchronization result of a log receiver to include an
+    event name
+  * Added exn:fail:filesystem:errno and exn:fail:network:errno
+  * Added phantom byte strings
+  * Added 'word mode to system-type
+  * Added arguments to impersonate-prompt-tag and chaperone-prompt-tag
+    to support interposition on non-composable continuation results
+  * Add #fx() and #fl() reader forms for flvectors and fxvectors
+  * racket/unsafe/ops: added unsafe-cons-list
+  * racket/gui: added get-current-mouse-state, and added
+    display-changed to frame%
+  * racket/serialize: fxvectors and flvectors are serializable
+  * racket/net: added uri-path-segment-unreserved-encode
+  * racket/url: added current-url-encode-mode
+  * racket/date: fixed 'iso-8601 date formatting
+  * scribble/tag: added
+  * scribble/base: added make-section-tag, taglet?
+    r5rs, r6rs: fixed case and cond to disallow internal definitions
+    in clauses
+  * ffi/com: added com-get-property*
+  * file/untar: added
+  * file/untgz: added
+  * file/unzip: added
+  * compiler/zo-structs: generalize flonum? field to type
+    field in localref, let-one, and fun 
+  * compiler/zo-structs: added a constantness field to module-variable 
+
+-------------------------------------------------------------------
+Thu Nov  8 09:28:40 UTC 2012 - tog...@opensuse.org
+
+- Update to 5.3.1 release for details see changelog and News
+
+  * Changed make-log-receiver to accept a logger name as an event
+    filter
+  * Addded define-logger
+  * Changed -W, -L, PLTSTDERR, and PLTSYSLOG to support log filters
+    of the form "<level> <name>=<level> ..."
+  * Changed log-error, etc., to support format mode
+  * Added racket/format, which is re-exported by racket
+  * Added #:break and #:final clauses to for forms
+  * Added exn:break:hang-up and exn:break:terminate, added extra
+    argument to break-thread and place-break, and redirect SIGTERM
+    and SIGHUP as breaks
+  * Add #:fill option to for/vector, for*/vector, for/flvector,
+    for*/flvector, for/fxvector, and for*/fxvector
+  * Added PLTCOMPILEDROOTS and --compiled/-R command-line flag
+  * Added reroot-path
+  * Changed a thread's initial prompt to use the default handler
+    (instead of accepting and ignoring abort arguments)
+  * ffi/unsafe: added cpointer-gcable?
+  * racket/class: added dynamic-get-field and dynamic-set-field!
+  * racket/set: added set-first and set-rest, sets are streams
+  * racket/require-transformer: an import's module path can be syntax
+  * scribble/base: add items/c
+  * scribble/decode: add spliceof
+  * syntax/for-body: added
+
+- drop racket-glibc-2.16.patch
+
+-------------------------------------------------------------------
+Thu Oct 11 15:10:49 UTC 2012 - tog...@opensuse.org
+
+- enabled documentation
+
+-------------------------------------------------------------------
+Wed Aug  8 08:03:24 UTC 2012 - tog...@opensuse.org
+
+- Update to official 5.3 release
+
+-------------------------------------------------------------------
+Wed Aug  1 10:18:40 UTC 2012 - tog...@opensuse.org
+
+- split packaging
+
+-------------------------------------------------------------------
+Thu Jul 26 22:34:05 UTC 2012 - tog...@opensuse.org
+
+- Use the upcoming version 5.3.0.16 from nightly builds
+  * add racket.desktop
+  * disable documentation as it breaks the build
+- TODO
+  * fix the rpmlint warnings for srfi
+
+-------------------------------------------------------------------
+Tue May  1 14:08:37 UTC 2012 - tog...@opensuse.org
+
+- Initial packaging for racket-lang

New:
----
  0001-pkg-collects-path.patch
  drracket.desktop
  drracket.png
  racket-5.3.3-src-unix.tgz
  racket-5.3.rpmlintrc
  racket-completion.bash
  racket.changes
  racket.spec

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ racket.spec ++++++
#
# spec file for package racket
#
# Copyright (c) 2012, 2013 Togan Muftuoglu tog...@opensuse.org
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


Name:           racket
Version:        5.3.3
Release:        0
Summary:        Scheme implementation with teaching tools
License:        LGPL-2.1+
Group:          Development/Languages/Scheme
Url:            http://racket-lang.org
Source0:        %name-%version-src-unix.tgz
Source1:        drracket.desktop
Source2:        racket-completion.bash
Source3:        racket-5.3.rpmlintrc
Source4:        drracket.png
# PATCH-FIX-OPENSUSE taken from debian package author David Bremner 
<brem...@unb.ca>
Patch0:         0001-pkg-collects-path.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  chrpath
BuildRequires:  desktop-file-utils
BuildRequires:  fdupes
BuildRequires:  gcc-c++
BuildRequires:  libjpeg-devel
BuildRequires:  update-desktop-files
BuildRequires:  ImageMagick
BuildRequires:  pkgconfig(cairo)
BuildRequires:  pkgconfig(fontconfig)
BuildRequires:  pkgconfig(freetype2)
BuildRequires:  pkgconfig(gtk+-2.0)
BuildRequires:  pkgconfig(ice)
BuildRequires:  pkgconfig(libffi)
BuildRequires:  libpng-devel
BuildRequires:  librsvg-devel
BuildRequires:  pkgconfig(pango)
BuildRequires:  pkgconfig(openssl)
BuildRequires:  pkgconfig(sm)
BuildRequires:  pkgconfig(sqlite3)
BuildRequires:  pkgconfig(x11)
BuildRequires:  pkgconfig(xaw7)
BuildRequires:  pkgconfig(xext)
BuildRequires:  pkgconfig(xft)
BuildRequires:  pkgconfig(xmu)
BuildRequires:  pkgconfig(xrender)
BuildRequires:  pkgconfig(xt)
BuildRequires:  pkgconfig(zlib)
BuildRequires:  pkgconfig(pixman-1) >= 0.22.0
BuildRequires:  ghostscript-fonts-std
%if 0%{?suse_version} == 1220
BuildRequires:  libexpat1
%endif

# maggia has this
# Disable the debug package since otherwise a build would create the following
# error message:
#  *** ERROR: same build ID in nonidentical files!
#          /usr/bin/mzscheme
#     and  /usr/bin/mred
# this should be set from the obs
#%%define debug_package %%{nil}

%description
Racket (formerly called PLT Scheme) is a multi-paradigm programming language
in the Lisp/Scheme family, that also serves as a platform for language
creation, design, and implementation.

The programming language is known for its powerful macro system which enables
the creation of embedded and domain-specific languages, language constructs
such as classes or modules, and separate dialects of Racket enable different
semantics.


%package -n drracket
Summary:        Racket Scheme graphical development environment
Group:          Development/Languages/Scheme
Requires:       %{name} = %{version}-%{release}

%description -n drracket
DrRacket is the graphical development environment for creating
Racket applications.

%package games
Summary:        Sample games from Racket Scheme
Group:          Amusements/Games/Other
Requires:       %{name} = %{version}-%{release}

%description games
This package contains sample games from Racket project.


%package webserver
Summary:        Webserver from Racket
Group:          Productivity/Networking/Web/Servers

%description webserver
Webserver from Racket Scheme.


%package devel
Summary:        Development header files for PLT
Group:          Development/Languages/Scheme
Requires:       %{name} = %{version}-%{release}
Requires:       glibc-devel
Requires:       libffi-devel

%description devel
This package contains the symlinks, headers and object files needed to
compile and link programs which use PLT.


%prep
%setup -q
%patch0 -p1

cp %{S:1} src/.
cp %{S:2} src/.
cp %{S:4} src/.

## debian had licence isssue before enabling these check

# ( while  read -r name ; do
#     rm -r $name
# done ) <<EOF
# collects/tests/racket/benchmarks/common/psyntax-input.txt
# collects/tests/xml/clark-tests
# collects/tests/racket/benchmarks/common/maze.sch
# collects/tests/racket/benchmarks/common/maze2.sch
# collects/tests/racket/benchmarks/common/typed/maze2.rktl
# collects/tests/racket/testing.rktl
# collects/tests/utils/mz-testing.rkt
# EOF

## cancel test removal for testing
rm -rf collects/tests
rm -rf collects/{mysterx,mzcom}
rm -rf collects/2htdp/tests
rm -rf collects/htdp/tests
rm -rf collects/browser/tests
rm -rf collects/data/tests
rm -rf collects/file/tests
rm -rf collects/games/tests
rm -rf collects/help/tests
rm -rf collects/images/tests
rm -rf collects/json/tests
rm -rf collects/launcher/tests
rm -rf collects/macro-debugger/tests
rm -rf collects/picturing-programs/tests
rm -rf collects/plot/tests
rm -rf collects/redex/tests
rm -rf collects/r6rs/tests
rm -rf collects/slatex/tests
rm -rf collects/string-constants/tests
rm -rf collects/teachpack/tests
rm -rf collects/typed/tests
rm -rf collects/unstable/tests

find collects/*/examples -name *.c | xargs rm -rf
find collects/*/examples -name *.cxx | xargs rm -rf
find collects/*/examples -name *.c | xargs rm -rf
find collects/*/examples -name *.cxx | xargs rm -rf

%build
cd src

%configure  --enable-shared --disable-static --docdir=%_defaultdocdir/%name
%{__make}  %{?_smp_mflags} VERBOSE=1 STRIP_DEBUG=/bin/true

%install
cd src

export LD_LIBRARY_PATH=%buildroot%{_libdir}
export PLT_SETUP_OPTIONS="-j 1 "

# let obs do the stripping

%make_install STRIP_DEBUG=/bin/true


# Fix the rpath error.
chrpath --delete %buildroot%{_bindir}/gracket
chrpath --delete %buildroot%{_bindir}/racket

find %buildroot -size 0 | xargs rm -f
# we do not need *.la and *.a files

find %{buildroot}%{_libdir} -name "*.la" -delete
find %{buildroot}%{_libdir} -name "*.a" -delete

install -d %buildroot/etc/bash_completion.d/
install -m 644 %{S:2} %buildroot/etc/bash_completion.d/%name

%suse_update_desktop_file -i drracket

%fdupes -s %buildroot/%_datadir/%name/
%fdupes -s %buildroot%_bindir/

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files
%defattr(-,root,root,-)
%doc README
%_bindir/mzc
%_bindir/mzpp
%_bindir/mzscheme
%_bindir/mztext
%_bindir/plt-r5rs
%_bindir/plt-r6rs
%_bindir/racket
%_bindir/raco
%_bindir/scribble
%_bindir/setup-plt
%_bindir/swindle
%_libdir/*.so
%_libdir/%name/mzdyn3m.o
%_datadir/%name/collects/at-exp
%_datadir/%name/collects/compatibility
%_datadir/%name/collects/compiler
%_datadir/%name/collects/data
%_datadir/%name/collects/db
%_datadir/%name/collects/dynext
%_datadir/%name/collects/errortrace
%_datadir/%name/collects/ffi
%_datadir/%name/collects/file
%_datadir/%name/collects/html
%_datadir/%name/collects/info-domain
%_datadir/%name/collects/json
%_datadir/%name/collects/launcher
%_datadir/%name/collects/make
%_datadir/%name/collects/math
%_datadir/%name/collects/mzlib
%_datadir/%name/collects/mzscheme
%_datadir/%name/collects/net
%_datadir/%name/collects/openssl
%_datadir/%name/collects/parser-tools
%_datadir/%name/collects/planet
%_datadir/%name/collects/planet2
%_datadir/%name/collects/preprocessor
%_datadir/%name/collects/profile
%_datadir/%name/collects/r5rs
%_datadir/%name/collects/r6rs
%_datadir/%name/collects/racket
%_datadir/%name/collects/raco
%_datadir/%name/collects/reader
%_datadir/%name/collects/readline
%_datadir/%name/collects/rnrs
%_datadir/%name/collects/s-exp
%_datadir/%name/collects/scheme
%_datadir/%name/collects/scribble
%_datadir/%name/collects/setup
%_datadir/%name/collects/srfi
%_datadir/%name/collects/swindle
%_datadir/%name/collects/syntax
%_datadir/%name/collects/trace
%_datadir/%name/collects/unstable
%_datadir/%name/collects/version
%_datadir/%name/collects/wxme
%_datadir/%name/collects/xml
%_datadir/%name/collects/xrepl
%exclude %_bindir/plt-games
%exclude %_datadir/%name/collects/games
%exclude %_bindir/slideshow
%exclude %_datadir/%name/collects/slideshow
%exclude %_bindir/plt-web-server
%exclude %_datadir/%name/collects/web-server
%dir %_datadir/%name/collects
%_libdir/%name/starter

%{_mandir}/man1/mz*

%{_mandir}/man1/racket*
%{_mandir}/man1/raco*
%{_mandir}/man1/setup-plt*
%_datadir/%name/doc/*
%dir %_libdir/%name
%dir %_datadir/%name
%dir %_datadir/%name/doc
%dir %_sysconfdir/bash_completion.d/
%_sysconfdir/bash_completion.d/%name

%files games
%defattr(-,root,root,-)
%_bindir/plt-games
%_datadir/%name/collects/games
%dir %_datadir/%name/collects/games

%files webserver
%defattr(-,root,root,-)
%_bindir/plt-web-server
%_datadir/%name/collects/web-server
%dir %_datadir/%name/collects/web-server

%files devel
%defattr(-,root,root,-)
%_includedir/%name/*
%{_libdir}/%{name}/buildinfo
%dir %_includedir/%name


%files -n drracket
%defattr(-,root,root,-)
%_bindir/drracket
%_bindir/gracket
%_bindir/gracket-text
%_bindir/mred
%_bindir/mred-text
%_bindir/pdf-slatex
%_bindir/plt-help
%_bindir/slatex
%_bindir/slideshow

%_mandir/man1/drracket*
%_mandir/man1/gracket*
%_mandir/man1/mred*
%_mandir/man1/plt-help*
%_datadir/%name/collects/2htdp
%_datadir/%name/collects/algol60
%_datadir/%name/collects/browser
%_datadir/%name/collects/config
%_datadir/%name/collects/datalog
%_datadir/%name/collects/defaults
%_datadir/%name/collects/deinprogramm
%_datadir/%name/collects/drracket
%_datadir/%name/collects/drscheme
%_datadir/%name/collects/embedded-gui
%_datadir/%name/collects/eopl
%_datadir/%name/collects/framework
%_datadir/%name/collects/frtime
%_datadir/%name/collects/future-visualizer
%_datadir/%name/collects/graphics
%_datadir/%name/collects/gui-debugger
%_datadir/%name/collects/help
%_datadir/%name/collects/hierlist
%_datadir/%name/collects/htdp
%_datadir/%name/collects/icons
%_datadir/%name/collects/images
%_datadir/%name/collects/lang
%_datadir/%name/collects/lazy
%_datadir/%name/collects/macro-debugger
%_datadir/%name/collects/mred
%_datadir/%name/collects/mrlib
%_datadir/%name/collects/picturing-programs
%_datadir/%name/collects/plai
%_datadir/%name/collects/plot
%_datadir/%name/collects/racklog
%_datadir/%name/collects/rackunit
%_datadir/%name/collects/redex
%_datadir/%name/collects/schemeunit
%_datadir/%name/collects/scriblib
%_datadir/%name/collects/scribblings
%_datadir/%name/collects/sgl
%_datadir/%name/collects/slatex
%_datadir/%name/collects/slideshow
%_datadir/%name/collects/stepper
%_datadir/%name/collects/string-constants
%_datadir/%name/collects/syntax-color
%_datadir/%name/collects/teachpack
%_datadir/%name/collects/test-engine
%_datadir/%name/collects/texpict
%_datadir/%name/collects/typed-racket
%_datadir/%name/collects/typed-scheme
%_datadir/%name/collects/typed
%_datadir/applications/drracket.desktop
%_datadir/pixmaps/drracket.png
%changelog
++++++ 0001-pkg-collects-path.patch ++++++
>From bb3373b08eef415cb3533a6a9b8e1b8c54c79e4e Mon Sep 17 00:00:00 2001
From: David Bremner <brem...@unb.ca>
Date: Mon, 25 Apr 2011 07:32:21 -0300
Subject: [PATCH] pkg/collects-path

Patch configure script to set collectsdir to /usr/share/racket/collects.

collectsdir is hardcoded to ${libdir}/collects in the configure
script, but we want to install the collects (which are mostly
arch-independent) into /usr/share, and symlink the small number of
exceptions into /usr/lib/racket/collects/$foo

Signed-off-by: David Bremner <brem...@unb.ca>
---
 src/configure |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/configure b/src/configure
index 64a8fef..6861d54 100755
--- a/src/configure
+++ b/src/configure
@@ -2264,7 +2264,7 @@ else
     prefix="${ac_default_prefix}"
   fi
   libpltdir="${libdir}/racket"
-  collectsdir="${libdir}/racket/collects"
+  collectsdir="${datadir}/racket/collects"
   includepltdir="${includedir}/racket"
   docdir="${datadir}/racket/doc"
   MAKE_COPYTREE=copytree
-- 
1.7.10

++++++ drracket.desktop ++++++
[Desktop Entry]
Name=DrRacket
Categories=Development;IDE;
GenericName=Scheme programming
Comment=Programming environment for the Scheme programming language
Exec=drracket
Terminal=false
Icon=drracket
Type=Application
Encoding=UTF-8
++++++ racket-5.3.rpmlintrc ++++++
addFilter("unexpanded-macro /usr/share/racket/collects/srfi/")
++++++ racket-completion.bash ++++++
# -*- mode: shell-script; sh-basic-offset: 2; indent-tabs-mode: nil -*-
# ex: ts=2 sw=2 noet filetype=sh

# To enable this, add the following line to ~/.bash_completion
#
#     source $PLTHOME/collects/meta/contrib/completion/racket-completion.bash
#
# Change $PLTHOME to whatever references your Racket installation.  You
# will need to make sure that you have bash completions enabled, usually
# with "source /etc/bash_completion".

# This completes only *.{rkt,ss,scm,scrbl} files unless there are none,
# in which case it completes other things.
_racket_filedir() {
  COMPREPLY=()
  _filedir "@(rkt|rktl|ss|scm|scrbl)"
  if [[ "${#COMPREPLY[@]}" -eq 0 ]]; then _filedir; fi
}

_find_exe() {
  local exename="$1"
  local dir="$(dirname "${COMP_WORDS[0]}")"
  local exe="$(basename "${COMP_WORDS[0]}")"
  if [[ "$dir" != "." || "${COMP_WORDS[0]}" = "$dir/$exe" ]]; then
    echo "$dir/$exename"
  else
    echo "$exename"
  fi
}

_racket() {
  local cur prev singleopts doubleopts
  COMPREPLY=()
  cur="$(_get_cword)"
  prev="${COMP_WORDS[COMP_CWORD-1]}"
  doubleopts="--help --version --eval --load --require --lib --script"
  doubleopts+=" --require-script --main --repl --no-lib --version --warn"
  doubleopts+=" --syslog --collects --search --addon --no-compiled"
  doubleopts+=" --no-init-file"
  singleopts="-h -e -f -t -l -p -r -u -k -m -i -n -v -W -L -X -S -A -I -U"
  singleopts+=" -N -j -d -b -c -q"
  warnlevels="none fatal error warning info debug"

  # if "--" is already given, complete all kind of files, but no options
  for (( i=0; i < ${#COMP_WORDS[@]}-1; i++ )); do
    if [[ "${COMP_WORDS[i]}" == "--" ]]; then _racket_filedir; return; fi
  done

  # -k takes *two* integer arguments
  if [[ 2 < "${#COMP_WORDS[@]}" ]]; then
    if [[ "${COMP_WORDS[COMP_CWORD-2]}" == "-k" ]]; then return; fi
  fi

  case "$cur" in
    "--"* )
      COMPREPLY=( $(compgen -W "$doubleopts" -- "$cur") )
      ;;
    "-"* )
      COMPREPLY=( $(compgen -W "$singleopts" -- "$cur") )
      ;;
    * )
      case "$prev" in
        # these do not take anything completable as arguments
        "--help" | "-h" | "-e" | "--eval" | "-p" | "-k" )
          ;;
        # these take dirs (not files) as arguments
        "-X" | "-S" | "-A" | "--collects" | "--search" | "--addon" )
          _filedir -d
          ;;
        # these take warnlevels as arguments
        "-W" | "--warn" | "-L" | "--syslog" )
          COMPREPLY=( $(compgen -W "$warnlevels" -- "$cur") )
          ;;
        # otherwise, just a file
        * )
          _racket_filedir
          ;;
      esac
      ;;
  esac
}

complete -F _racket racket
complete -F _racket gracket
complete -F _racket gracket-text

_raco_cmd="$(_find_exe "raco")"

_raco_planet() {
  local cur="${COMP_WORDS[COMP_CWORD]}"
  local planetcmds=$(
    printf '%s\n' "--help"
    "${_raco_cmd}" planet --help 2>&1 | awk '/^  *raco planet / { print $3 }'
  )
  COMPREPLY=( $(compgen -W "$planetcmds" -- "$cur") )
}

_raco_cmds=$()
_racket_cmd="$(_find_exe "racket")"

_raco_help() {
  local cur="${COMP_WORDS[COMP_CWORD]}"
  if [[ ${#_raco_cmds[@]} -eq 0 ]]; then
    _raco_cmds=$(
      echo "help"
      "$_racket_cmd" -e '(begin (require raco/all-tools)
                                (for ([(k v) (all-tools)]) (printf "~a\n" k)))'
    )
  fi
  COMPREPLY=( $(compgen -W "$_raco_cmds" -- "$cur") )
}

_racket_collects_dirs=()

_complete_collects() {
  local cur="$1"
  if [[ "${#_racket_collects_dirs[@]}" -eq 0 ]]; then
    _racket_collects_dirs=(
      $( $_racket_cmd -e
           '(for-each displayln (current-library-collection-paths))' )
    )
  fi
  local wordlist=""
  for dir in "${_racket_collects_dirs[@]}"; do
    wordlist="$wordlist $(for x in $(compgen -d "$dir"); do basename "$x"; 
done)"
  done
  COMPREPLY=( $(compgen -W "$wordlist" -- "$cur") )
}

_raco_setup()
{
  local cur="${COMP_WORDS[COMP_CWORD]}"
  local prev="${COMP_WORDS[COMP_CWORD-1]}"

  if [[ "$COMP_CWORD" -eq 2 ]]; then
    _complete_collects ${cur}
  else
    case "${prev}" in
      # specifying a particular collection
      "-l" ) _complete_collects "$cur" ;;
      *    ) _filedir ;;
    esac
  fi
}

_raco() {
  COMPREPLY=()
  local cur="${COMP_WORDS[COMP_CWORD]}"

  #
  #  Complete the arguments to some of the basic commands.
  #
  local makeopts="--disable-inline --no-deps -p --prefix --no-prim -v -vv 
--help -h"

  if [[ "$COMP_CWORD" -eq 1 ]]; then
    # removing the empty string on the next line breaks things.  such as my 
brain.
    _raco_cmds="$(
      echo "help"
      $_racket_cmd -e '(begin (require raco/all-tools)
                              (for ([(k v) (all-tools)]) (printf "~a\n" k)))')"
    COMPREPLY=($(compgen -W "$_raco_cmds" -- "$cur"))
  elif [[ "$COMP_CWORD" -ge 2 ]]; then
    # Here we'll handle the main raco commands
    local prev="${COMP_WORDS[1]}"
    case "$prev" in
      "make" )
        case "$cur" in
          "-"* ) COMPREPLY=( $(compgen -W "$makeopts" -- "$cur") ) ;;
          *    ) _filedir ;;
        esac ;;
      "planet" ) _raco_planet ;;
      "help"   ) _raco_help ;;
      "setup"  ) _raco_setup ;;
      *        ) _filedir ;;
    esac
  else
    _filedir
  fi
}

complete -F _raco raco
-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org

Reply via email to