Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:voegelas:raku
rakudo
debian.rules
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File debian.rules of Package rakudo
#!/usr/bin/make -f # vim: ft=make INSTALL = $(CURDIR)/debian/rakudo # moar and nqp are often *not* backward compatible MOARVM_VERSION = $(shell moar --version | perl -n -E 'm/([\d.]+)/; say $$1;') MOARVM_NEXT = $(shell moar --version | perl -n -E 'my ($$y,$$m) = m/(2\d+)\.(\d+)/; if ($$m < 12) { $$m++} else {$$m=1;$$y++}; printf("%d.%02d\n",$$y,$$m);') NQP_VERSION = $(shell nqp --version | perl -n -E 'm/([\d.]+)/; say $$1;') NQP_NEXT = $(shell nqp --version | perl -n -E 'my ($$y,$$m) = m/(2\d+)\.(\d+)/; if ($$m < 12) { $$m++} else {$$m=1;$$y++}; printf("%d.%02d\n",$$y,$$m);') %: dh $@ override_dh_gencontrol: dh_gencontrol -- -Vnqp:Depends="nqp (>= $(NQP_VERSION)), nqp (<< $(NQP_NEXT))" \ -Vmoarvm:Depends="moarvm (>= $(MOARVM_VERSION)), moarvm(<< $(MOARVM_NEXT))" override_dh_auto_configure: # Don't try to remove old files from the system. sed -i 's/\$$cfg->clean_old_p6_libs;//' Configure.pl # Replace /usr/bin/env with /usr/bin/rakudo. sed -i '1 s|^#!.*|#!/usr/bin/rakudo|' tools/install-dist.raku sed -i 's|#!/usr/bin/env \+|#!/usr/bin/|' \ src/core.c/CompUnit/Repository/Installation.rakumod # Configure Rakudo. perl Configure.pl \ --prefix=/usr \ --backends=moar override_dh_auto_build: dh_auto_build # Create manual pages. pod2man -c "Raku Programs" -r "Raku" -s 1 -n rakudo \ docs/running.pod docs/rakudo.1 ln -s rakudo.1 docs/raku.1 override_dh_auto_install: dh_auto_install # Copy a script for installing Raku modules. install -D tools/install-dist.raku $(INSTALL)/usr/bin/raku-install-dist # Move shared objects from the datadir to the libdir. for i in $$(find $(INSTALL)/usr/share -name "*.so"); do \ src=$$(dirname $$i); \ dst=$$(echo $$src | sed 's|/usr/share|/usr/lib|'); \ rel=$$(perl -mFile::Spec -e "print File::Spec->abs2rel('$$dst', '$$src')"); \ f=$$(basename $$i); \ install -d $$dst; \ mv $$i $$dst; \ ln -s $$rel/$$f $$i; \ done # Avoid duplicates by creating symbolic links. if [ -e $(INSTALL)/usr/bin/rakudo-m ]; then \ ln -sf rakudo-m $(INSTALL)/usr/bin/rakudo; \ fi if [ -e $(INSTALL)/usr/bin/rakudo-debug-m ]; then \ ln -sf rakudo-debug-m $(INSTALL)/usr/bin/rakudo-debug; \ fi if [ -e $(INSTALL)/usr/bin/rakudo ]; then \ ln -sf rakudo $(INSTALL)/usr/bin/raku; \ fi if [ -e $(INSTALL)/usr/bin/rakudo-debug ]; then \ ln -sf rakudo-debug $(INSTALL)/usr/bin/raku-debug; \ fi for i in $(INSTALL)/usr/bin/perl6* $(INSTALL)/usr/share/perl6/runtime/perl6*; do \ dir=$$(dirname $$i); \ f=$$(basename $$i | sed 's/perl6/rakudo/'); \ if [ -e $$dir/$$f ]; then \ ln -sf $$f $$i; \ fi; \ done override_dh_installchangelogs: dh_installchangelogs docs/ChangeLog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor