SHA256
1
0
forked from pool/racket

Accepting request 414925 from home:KGronlund:branches:devel:languages:misc

Updated package to version 6.6.

OBS-URL: https://build.opensuse.org/request/show/414925
OBS-URL: https://build.opensuse.org/package/show/devel:languages:misc/racket?expand=0&rev=18
This commit is contained in:
Matthias Mailänder 2016-07-25 06:44:44 +00:00 committed by Git OBS Bridge
parent 73dab3d3e0
commit dc21c5d631
11 changed files with 135 additions and 386 deletions

View File

@ -1,50 +0,0 @@
From 2d3b04e8248d6d97323ef5ac30c48ba9ea967080 Mon Sep 17 00:00:00 2001
From: madanyang <toganm@opensuse.org>
Date: Fri, 3 May 2013 19:55:08 +0200
Subject: [PATCH] Fix install path for doc and collects
docdir is hardcoded for /usr/share/doc but in openSUSE
/usr/share/doc/packages is used the base for documentations
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: madanyang <toganm@opensuse.org>
---
src/configure | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
--- a/src/configure
+++ b/src/configure
@@ -813,7 +813,7 @@ sharedstatedir='${prefix}/com'
localstatedir='${prefix}/var'
includedir='${prefix}/include'
oldincludedir='/usr/include'
-docdir='${datarootdir}/doc/${PACKAGE}'
+docdir='${datarootdir}/doc/packages/${PACKAGE}'
infodir='${datarootdir}/info'
htmldir='${docdir}'
dvidir='${docdir}'
@@ -1317,7 +1317,7 @@ Fine tuning of the installation director
--datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
--datadir=DIR read-only architecture-independent data [DATAROOTDIR]
--mandir=DIR man documentation [DATAROOTDIR/man]
- --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
+ --docdir=DIR documentation root [DATAROOTDIR/doc/packages/PACKAGE]
_ACEOF
cat <<\_ACEOF
@@ -2299,9 +2299,9 @@ else
prefix="${ac_default_prefix}"
fi
libpltdir="${libdir}/racket"
- collectsdir="${libdir}/racket/collects"
+ collectsdir="${datadir}/racket/collects"
includepltdir="${includedir}/racket"
- docdir="${datadir}/doc/racket"
+ docdir="${datadir}/doc/packages/racket"
MAKE_COPYTREE=copytree
COLLECTS_PATH='${collectsdir}'
INSTALL_ORIG_TREE=no

View File

@ -1,10 +0,0 @@
[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

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:6e902d7be3d63fbabe5ca3fb1ca94290694f70bdf259501cd85f372156a7599a
size 6717

69
gc-aarch64.patch Normal file
View File

@ -0,0 +1,69 @@
Index: racket-5.3.5/src/racket/gc/include/private/gcconfig.h
===================================================================
--- racket-5.3.5.orig/src/racket/gc/include/private/gcconfig.h
+++ racket-5.3.5/src/racket/gc/include/private/gcconfig.h
@@ -76,6 +76,13 @@
# endif
/* Determine the machine type: */
+#if defined(__aarch64__)
+# define AARCH64
+# if !defined(LINUX)
+# define NOSYS
+# define mach_type_known
+# endif
+# endif
# if defined(__arm__) || defined(__thumb__)
# define ARM32
# if !defined(LINUX) && !defined(NETBSD) && !defined(OPENBSD)
@@ -249,6 +256,10 @@
# define IA64
# define mach_type_known
# endif
+# if defined(LINUX) && defined(__aarch64__)
+# define AARCH64
+# define mach_type_known
+# endif
# if defined(LINUX) && defined(__arm__)
# define ARM32
# define mach_type_known
@@ -529,6 +540,7 @@
/* running Amdahl UTS4 */
/* S390 ==> 390-like machine */
/* running LINUX */
+ /* AARCH64 ==> ARM AArch64 */
/* ARM32 ==> Intel StrongARM */
/* IA64 ==> Intel IPF */
/* (e.g. Itanium) */
@@ -1818,6 +1830,31 @@
# endif
# endif
+# ifdef AARCH64
+# define CPP_WORDSZ 64
+# define MACH_TYPE "AARCH64"
+# define ALIGNMENT 8
+# ifndef HBLKSIZE
+# define HBLKSIZE 4096
+# endif
+# ifdef LINUX
+# define OS_TYPE "LINUX"
+# define LINUX_STACKBOTTOM
+# define DYNAMIC_LOADING
+ extern int __data_start[];
+# define DATASTART ((ptr_t)__data_start)
+ extern char _end[];
+# define DATAEND ((ptr_t)(&_end))
+# endif
+# ifdef NOSYS
+ /* __data_start is usually defined in the target linker script. */
+ extern int __data_start[];
+# define DATASTART ((ptr_t)__data_start)
+ extern void *__stack_base__;
+# define STACKBOTTOM ((ptr_t)__stack_base__)
+# endif
+# endif
+
# ifdef ARM32
# define CPP_WORDSZ 32
# define MACH_TYPE "ARM32"

View File

@ -1,30 +0,0 @@
From f97a7cf1778b74e9f38d97db61e91956565180c3 Mon Sep 17 00:00:00 2001
From: Matthew Flatt <mflatt@racket-lang.org>
Date: Wed, 15 May 2013 20:38:40 -0600
Subject: [PATCH] libpng adjustment
Keep error if no "libpng" is found.
---
collects/racket/draw/unsafe/png.rkt | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/collects/racket/draw/unsafe/png.rkt b/collects/racket/draw/unsafe/png.rkt
index a6b028d..f57de38 100644
--- a/collects/racket/draw/unsafe/png.rkt
+++ b/collects/racket/draw/unsafe/png.rkt
@@ -12,10 +12,9 @@
;; variants often have just "libpng", etc.
(let loop ([alts '(("libpng16" ("16" ""))
("libpng15" ("15" ""))
- ("libpng12" ("0" ""))
- ("libpng"))])
+ ("libpng12" ("0" "")))])
(cond
- [(null? alts) #f]
+ [(null? alts) (ffi-lib "libpng")]
[else (apply ffi-lib (car alts)
#:fail (lambda ()
(loop (cdr alts))))]))]
--
1.8.2.3

View File

@ -1,52 +0,0 @@
From 5629a6156a5720e51a277849f75b3135cb93664f Mon Sep 17 00:00:00 2001
From: Matthew Flatt <mflatt@racket-lang.org>
Date: Wed, 15 May 2013 20:28:05 -0600
Subject: [PATCH] support libpng16
---
collects/racket/draw/unsafe/png.rkt | 21 ++++++++++++++-------
1 file changed, 14 insertions(+), 7 deletions(-)
diff --git a/collects/racket/draw/unsafe/png.rkt b/collects/racket/draw/unsafe/png.rkt
index 596fcb4..a6b028d 100644
--- a/collects/racket/draw/unsafe/png.rkt
+++ b/collects/racket/draw/unsafe/png.rkt
@@ -10,11 +10,15 @@
[(unix)
;; Most Linux distros supply "libpng12", while other Unix
;; variants often have just "libpng", etc.
- (ffi-lib "libpng15" '("15" "")
- #:fail (lambda ()
- (ffi-lib "libpng12" '("0" "")
- #:fail (lambda ()
- (ffi-lib "libpng")))))]
+ (let loop ([alts '(("libpng16" ("16" ""))
+ ("libpng15" ("15" ""))
+ ("libpng12" ("0" ""))
+ ("libpng"))])
+ (cond
+ [(null? alts) #f]
+ [else (apply ffi-lib (car alts)
+ #:fail (lambda ()
+ (loop (cdr alts))))]))]
[(macosx) (ffi-lib "libpng15.15.dylib")]
[(windows)
(ffi-lib "zlib1.dll")
@@ -29,9 +33,12 @@
;; assume that other versions are also ok
(define PNG_LIBPNG_VER_STRING (string->bytes/latin-1
(let ([v (png_access_version_number)])
- (format "~s.~s"
+ (format "~s.~s~a"
(quotient v 10000)
- (quotient (remainder v 10000) 100)))))
+ (quotient (remainder v 10000) 100)
+ (if (zero? (remainder v 100))
+ ""
+ (format ".~a" (remainder v 100)))))))
(define _png_structp (_cpointer 'png_structp))
(define _png_infop (_cpointer 'png_infop))
--
1.8.2.3

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:7fe0ffc1231f888cd481f175e428f0217257dd136d2513bde73954af5a7cfb8a
size 19278914

View File

@ -1 +1,3 @@
addFilter("unexpanded-macro /usr/share/racket/collects/srfi/")
addFilter("file-contains-buildroot.*/usr/share/racket/pkgs/.*zo")
addFilter("file-contains-buildroot.*/usr/share/doc/packages/racket/syntax/module-helpers.html")

3
racket-6.6-src.tgz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:bf2bce50b02c626666a8d2093638893e8beb8b2a19cdd43efa151a686c88edcf
size 20966104

View File

@ -1,3 +1,13 @@
-------------------------------------------------------------------
Mon Jul 25 00:10:49 UTC 2016 - kgronlund@suse.com
- Update to Racket 6.6
-------------------------------------------------------------------
Sun Aug 11 20:59:59 UTC 2013 - schwab@suse.de
- gc-aarch64.patch: add support for aarch64
-------------------------------------------------------------------
Sat May 3 01:37:00 UTC 2014 - MihailJP

View File

@ -1,7 +1,7 @@
#
# spec file for package racket
#
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2012, 2013 Togan Muftuoglu toganm@opensuse.org
#
# All modifications and additions to the file contributed by third parties
@ -18,23 +18,20 @@
Name: racket
Version: 5.3.6
Version: 6.6
Release: 0
Summary: Scheme implementation with teaching tools
License: LGPL-2.1+ and GPL-3.0+
Group: Development/Languages/Scheme
Url: http://racket-lang.org
Source0: http://download.racket-lang.org/installers/%version/%name/%name-%version-src-unix.tgz
Source1: drracket.desktop
Source0: http://download.racket-lang.org/installers/%version/%name-%version-src.tgz
Source2: racket-completion.bash
Source3: racket-5.3.rpmlintrc
Source4: drracket.png
# PATCH-FIX-OPENSUSE based on debian package toganm@opensuse.org
Patch0: 0001-Fix-install-path-for-doc-and-collects.patch
# PATCH-FIX-UPSTREAM aarch64 support for gc
Patch1: gc-aarch64.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: ImageMagick
BuildRequires: chrpath
BuildRequires: desktop-file-utils
BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRequires: ghostscript-fonts-std
@ -63,6 +60,9 @@ BuildRequires: pkgconfig(xmu)
BuildRequires: pkgconfig(xrender)
BuildRequires: pkgconfig(xt)
BuildRequires: pkgconfig(zlib)
Provides: %{name}-drracket = %{version}-%{release}
Provides: %{name}-games = %{version}-%{release}
Provides: %{name}-webserver = %{version}-%{release}
# maggia has this
# Disable the debug package since otherwise a build would create the following
@ -83,36 +83,8 @@ 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
Requires: %{name} = %{version}-%{release}
%description webserver
Webserver from Racket Scheme.
%package devel
Summary: Development header files for PLT
Summary: Development header files for Racket
Group: Development/Languages/Scheme
Requires: %{name} = %{version}-%{release}
Requires: glibc-devel
@ -120,66 +92,21 @@ Requires: libffi-devel
%description devel
This package contains the symlinks, headers and object files needed to
compile and link programs which use PLT.
compile and link programs which use Racket.
%prep
%setup -q
%patch0 -p1
%patch1 -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 --disable-strip --enable-places --enable-lt="/usr/bin/libtool"
%configure --enable-shared --disable-static --docdir="%_defaultdocdir/%name" --collectsdir="%_datadir/%name/collects" --disable-strip --enable-places --enable-lt="/usr/bin/libtool"
%{__make} %{?_smp_mflags} VERBOSE=1
%{__make} %{?_smp_mflags} VERBOSE=1
%install
cd src
@ -190,11 +117,7 @@ cd src
install -d %buildroot/%_datadir/doc/%name/
%make_install
# Fix the rpath error.
chrpath --delete %buildroot%{_bindir}/gracket
chrpath --delete %buildroot%{_bindir}/racket
%make_install
find %buildroot -size 0 | xargs rm -f
# we do not need *.la and *.a files
@ -202,190 +125,80 @@ find %buildroot -size 0 | xargs rm -f
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
install -Dm 644 %{S:2} %{buildroot}%{_sysconfdir}/bash_completion.d/%{name}
install -Dm 644 %{_builddir}/%{name}-%{version}/share/pkgs/drracket/drracket/drracket.png %{buildroot}%{_datadir}/pixmaps/drracket.png
# somehow some files are installed with mode 666
find %buildroot%_defaultdocdir/%name -perm 666 -type f -exec chmod 644 {} \;
# rewrite path in .desktop files
chmod -x %buildroot/%_datadir/%name/collects/2htdp/utest/xrun
%suse_update_desktop_file -c drracket "DrRacket" "DrRacket is an interactive, integrated, graphical programming environment for the Racket programming languages" "%_bindir/drracket -singleInstance" "drracket" Development IDE
%suse_update_desktop_file -c slideshow "Slideshow" "Slideshow is a Racket-based tool for writing slide presentations as programs" "%_bindir/slideshow" "drracket" Development Documentation
%suse_update_desktop_file -i drracket
%fdupes %{buildroot}%{_prefix}
%fdupes -s %buildroot/%_datadir/%name/
%fdupes -s %buildroot%_bindir/
%fdupes -s %buildroot/%_defaultdocdir/%name
%post
/sbin/ldconfig
%desktop_database_post
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
#
# TODO with racket 5.6 files section will need reorganization
#
%postun
/sbin/ldconfig
%desktop_database_postun
%files
%defattr(-,root,root,-)
%doc README
%_bindir/drracket
%_bindir/gracket
%_bindir/gracket-text
%_bindir/mred
%_bindir/mred-text
%_bindir/mzc
%_bindir/mzpp
%_bindir/mzscheme
%_bindir/mztext
%_bindir/pdf-slatex
%_bindir/plt-games
%_bindir/plt-help
%_bindir/plt-r5rs
%_bindir/plt-r6rs
%_bindir/plt-web-server
%_bindir/racket
%_bindir/raco
%_bindir/scribble
%_bindir/setup-plt
%_bindir/slatex
%_bindir/slideshow
%_bindir/swindle
%_libdir/*.so
%_libdir/%name/mzdyn3m.o
%_datadir/%name/collects/at-exp
%_datadir/%name/collects/compatibility
%_datadir/%name/collects/compiler
%_datadir/%name/collects/config
%_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/pkg
%_datadir/%name/collects/planet
%_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/realm
%_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
%_datadir/%name/*
%dir %_datadir/%name/collects
%_libdir/%name/starter
%_libdir/%name/gracket
%_libdir/%name/*.rktd
%{_mandir}/man1/mz*
%{_mandir}/man1/racket*
%{_mandir}/man1/raco*
%{_mandir}/man1/setup-plt*
%{_mandir}/man1/drracket*
%{_mandir}/man1/gracket*
%{_mandir}/man1/mred*
%{_mandir}/man1/plt-help*
%dir %_libdir/%name
%dir %_datadir/%name
%dir %_sysconfdir/bash_completion.d/
%dir %_sysconfdir/%name
%_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
%config %_sysconfdir/%name/config.rktd
%_datadir/applications/drracket.desktop
%_datadir/applications/slideshow.desktop
%_datadir/pixmaps/drracket.png
%exclude %_datadir/%name/pkgs/mzscheme-lib/mzscheme/examples/*
%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/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
%_datadir/%name/pkgs/mzscheme-lib/mzscheme/examples/*
%changelog