Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New package: stumpwm-23.11 #49434

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
13 changes: 13 additions & 0 deletions srcpkgs/cl-alexandria/patches/run-tests.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/alexandria-tests.asd b/alexandria-tests.asd
index 6b785d3..fa0bb88 100644
--- a/alexandria-tests.asd
+++ b/alexandria-tests.asd
@@ -8,5 +8,6 @@
:perform (test-op (o c)
(flet ((run-tests (&rest args)
(apply (intern (string '#:run-tests) '#:alexandria-tests) args)))
- (run-tests :compiled nil)
- (run-tests :compiled t))))
+ (unless (and (run-tests :compiled nil)
+ (run-tests :compiled t))
+ (error "Some tests failed.")))))
35 changes: 35 additions & 0 deletions srcpkgs/cl-alexandria/template
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Template file for 'cl-alexandria'
pkgname=cl-alexandria
version=1.4
revision=1
makedepends="texlive texinfo sbcl tar"
short_desc="Common Lisp utility library"
maintainer="Mihail Ivanchev <contact@ivanchev.net>"
license="Public Domain"
homepage="https://alexandria.common-lisp.dev/"
distfiles="https://gitlab.common-lisp.net/alexandria/alexandria/-/archive/v${version}/alexandria-v${version}.tar.gz"
checksum=0512aec38d054a20daa66e9983cf8a98151582d7e2307e49e8c1b4a61bbb779a

_LIBRARY_DIR=usr/share/common-lisp/source/alexandria

do_check() {
sbcl --non-interactive \
--eval '(require "asdf")' \
--eval "(push #p\"${wrksrc}/\" asdf:*central-registry*)" \
--eval '(asdf:test-system "alexandria-tests")'
}

do_build() {
make -C doc html info pdf
}

do_install() {
vmkdir $_LIBRARY_DIR
vcopy alexandria-1 $_LIBRARY_DIR
vcopy alexandria-2 $_LIBRARY_DIR
vcopy alexandria.asd $_LIBRARY_DIR
vinstall doc/alexandria.info 644 usr/share/info
vdoc doc/alexandria.pdf
vdoc doc/alexandria.html
vlicense LICENCE
}
142 changes: 142 additions & 0 deletions srcpkgs/cl-clx/template
Original file line number Diff line number Diff line change
@@ -0,0 +1,142 @@
# Template file for 'cl-clx'
pkgname=cl-clx
version=0.7.6
revision=1
hostmakedepends="texinfo"
checkdepends="xvfb-run sbcl cl-fiasco"
short_desc="X11 client for Common Lisp"
maintainer="Mihail Ivanchev <contact@ivanchev.net>"
license="MIT, Public Domain, custom:COFFEEWARE"
homepage="https://github.com/sharplispers/clx"
distfiles="https://github.com/sharplispers/clx/archive/refs/tags/${version}.tar.gz"
checksum=bcc9cd736e7e28ec2b8085ce1c9686e02ffbee9257e1072f5c4fc393e33467e8

_LIBRARY_DIR=usr/share/common-lisp/source/clx

do_check() {
xvfb-run sbcl --non-interactive \
--eval '(require "asdf")' \
--eval "(push #p\"${wrksrc}/\" asdf:*central-registry*)" \
--eval '(asdf:load-system "clx/test")' \
--eval '(unless (uiop:symbol-call :fiasco :run-tests :xlib-test)
(uiop:quit 1))'
}

do_build() {
makeinfo manual/clx.texinfo
}

do_install() {
vmkdir $_LIBRARY_DIR
vmkdir $_LIBRARY_DIR/manual
vcopy extensions $_LIBRARY_DIR
vcopy manual/clx.texinfo $_LIBRARY_DIR/manual
vcopy debug $_LIBRARY_DIR
vcopy demo $_LIBRARY_DIR
vcopy tests $_LIBRARY_DIR
vcopy *.asd $_LIBRARY_DIR
vcopy *.lisp $_LIBRARY_DIR
vcopy *.c $_LIBRARY_DIR
vcopy CHANGES $_LIBRARY_DIR
vcopy README.md $_LIBRARY_DIR
vcopy README-R5 $_LIBRARY_DIR
vcopy exclMakefile $_LIBRARY_DIR
vcopy exclREADME $_LIBRARY_DIR
vinstall manual/clx.texinfo 644 usr/share/info

vlicense LICENSE

# The provided license file doesn't include all license info spread
# around in the package so we gather it all in an extended license
# file

_license_file=LICENSE.ext

# Portions Copyright (C) 1987 Texas Instruments Incorporated.
# Portions Copyright (C) 1988, 1989 Franz Inc, Berkeley, Ca.
sed -n "5,21p" clx.asd | cut -c 5- > "${_license_file}"
echo "===============================================================" >> "${_license_file}"

# Copyright (C) 1987 Texas Instruments Incorporated.
sed -n '5,19p' demo/zoid.lisp | cut -c 5- >> "${_license_file}"
echo "===============================================================" >> "${_license_file}"

# Copyright (C) 1987, 1989 Massachussetts Institute of Technology
sed -n "5,14p" sockcl.lisp | cut -c 5- >> "${_license_file}"
echo "===============================================================" >> "${_license_file}"

# Copyright (C) Digital Equipment Corporation, 1996
sed -n "6,14p" extensions/dpms.lisp | cut -c 7- >> "${_license_file}"
echo "===============================================================" >> "${_license_file}"

# Copyright (c) 2004, Christophe Rhodes
sed -n "40,60p" demo/clipboard.lisp | cut -c 5- >> "${_license_file}"
echo "===============================================================" >> "${_license_file}"

# (c) copyright 2014 by Johannes Martinez
sed -n "7,18p" extensions/randr.lisp | cut -c 5- >> "${_license_file}"
echo "===============================================================" >> "${_license_file}"

# (c) copyright 1999 by Gilbert Baumann
sed -n "7,18p" extensions/shape.lisp | cut -c 5- >> "${_license_file}"
echo "===============================================================" >> "${_license_file}"

# Copyright (c) 1987, 1988, 1989 Franz Inc, Berkeley, Ca.
sed -n "4,14p" excldep.lisp | cut -c 5- >> "${_license_file}"
echo "===============================================================" >> "${_license_file}"

# Copyright (C) 2008, Julian Stecklina
sed -n "2,9p" extensions/xinerama.lisp | cut -c 5- >> "${_license_file}"
echo "===============================================================" >> "${_license_file}"

# Copyright (C) 1990 Symbolics, Inc.
sed -n "3,11p" generalock.lisp | cut -c 5- >> "${_license_file}"
echo "===============================================================" >> "${_license_file}"

# (c) copyright 2002, 2003 by Gilbert Baumann
# (c) copyright 2002 by Christian Sunesson
sed -n "8,20p" extensions/xrender.lisp | cut -c 5- >> "${_license_file}"
echo "===============================================================" >> "${_license_file}"

# (c) copyright 2005 by Istvan Marko
sed -n "7,18p" extensions/screensaver.lisp | cut -c 5- >> "${_license_file}"
echo "===============================================================" >> "${_license_file}"

# (c) copyright 2006 Richard Kreuter
# (c) copyright 2007 by Christophe Rhodes
sed -n "3,13p" extensions/big-requests.lisp | cut -c 5- >> "${_license_file}"
echo "===============================================================" >> "${_license_file}"

# Copyright Massachusetts Institute of Technology 1988
head -n 1 socket.c >> "${_license_file}"
echo "===============================================================" >> "${_license_file}"

# (c) copyright 2003 by Iban Hatchondo
sed -n "7,18p" extensions/xvidmode.lisp | cut -c 5- >> "${_license_file}"
echo "===============================================================" >> "${_license_file}"

# Copyright (C) 1988 Michael O. Newton (newton@csvax.caltech.edu)
sed -n "827,832p" demo/clx-demos.lisp | cut -c 5- >> "${_license_file}"
echo "===============================================================" >> "${_license_file}"

# Copyright 1990 Massachusetts Institute of Technology, Cambridge,
sed -n "3,12p" package.lisp | cut -c 5- >> "${_license_file}"
echo "===============================================================" >> "${_license_file}"

# Copyright (C) 1988 Texas Instruments Incorporated.
sed -n "3,17p" demo/menu.lisp | cut -c 5- >> "${_license_file}"
echo "===============================================================" >> "${_license_file}"

# Public domain: Scott Fahlman
sed -n "4,7p" cmudep.lisp | cut -c 5- >> "${_license_file}"
echo "===============================================================" >> "${_license_file}"

# Public domain: Lionel Flandrin
sed -n "6,7p" extensions/xtest.lisp | cut -c 5- >> "${_license_file}"

# Print concatenated copyright notices to for visual inspection
# in the build jobs.
cat ${_license_file}

vlicense ${_license_file}
}
53 changes: 53 additions & 0 deletions srcpkgs/cl-fiasco/template
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
# Template file for 'cl-fiasco'
pkgname=cl-fiasco
#
# NOTE: fiasco doesn't tag versions so we use the date as a
# version and the last commit for that date UTC.
#
_src_date=20200514
_src_hash=bb47d2fef4eb24cc16badc1c9a73d73c3a7e18f5
#
# The version of value should be dynamically computed but this is rejected by
# the linter so instead we set it manually and later check for equality.
#
version=20200514
revision=1
depends="cl-alexandria cl-trivial-gray-streams"
checkdepends="sbcl ${depends}"
short_desc="Test framework for Common Lisp"
maintainer="Mihail Ivanchev <contact@ivanchev.net>"
license="Public Domain"
homepage="https://github.com/joaotavora/fiasco.git"
distfiles="https://github.com/joaotavora/fiasco/archive/${_src_hash}.tar.gz"
checksum=070879b496f78b1048d4533b05a6e13dc1f6711da55f2f35e5d56e1cec92220c

if [ "$version" != "${_src_date}" ]; then
echo "Version not equal to ${_src_date}.${_src_hash}, must be " 2>&1
echo "updated manually." 2>&1
exit 1
fi

_LIBRARY_DIR=usr/share/common-lisp/source/fiasco

do_check() {
# Taken out of .travis.yml
sbcl --non-interactive \
--eval '(require "asdf")' \
--eval "(push #p\"${wrksrc}/\" asdf:*central-registry*)" \
--eval '(asdf:load-system "fiasco")' \
--eval '(asdf:load-system "fiasco-self-tests")' \
--eval "(unless (fiasco:run-tests
(quote (:fiasco-basic-self-tests
:fiasco-intro-example
:fiasco-suite-tests
)))
(uiop:quit 1))"
}

do_install() {
vmkdir $_LIBRARY_DIR
vcopy src $_LIBRARY_DIR
vcopy test $_LIBRARY_DIR
vcopy fiasco.asd $_LIBRARY_DIR
vlicense LICENCE
}
37 changes: 37 additions & 0 deletions srcpkgs/cl-flexi-streams/template
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# Template file for 'cl-flexi-streams'
pkgname=cl-flexi-streams
version=1.0.20
revision=1
depends="cl-trivial-gray-streams"
checkdepends="sbcl ${depends}"
short_desc="Flexible bivalent streams for Common Lisp"
maintainer="Mihail Ivanchev <contact@ivanchev.net>"
license="BSD-2-Clause"
homepage="https://github.com/edicl/flexi-streams.git"
distfiles="https://github.com/edicl/flexi-streams/archive/refs/tags/v${version}.tar.gz"
checksum=8ebb0226e3748529564bc564e4012912b7dc2326d73c06eb41b5d0d07a60b538

_LIBRARY_DIR=usr/share/common-lisp/source/flexi-streams

do_check() {
sbcl --non-interactive \
--eval '(require "asdf")' \
--eval "(push #p\"${wrksrc}/\" asdf:*central-registry*)" \
--eval '(asdf:find-system "flexi-streams")' \
--eval '(asdf:load-system "flexi-streams-test")' \
--eval '(unless (flexi-streams-test:run-all-tests)
(uiop:quit 1))'
}

do_install() {
vmkdir $_LIBRARY_DIR
vcopy *.lisp $_LIBRARY_DIR
vcopy flexi-streams.asd $_LIBRARY_DIR
vdoc docs/index.html
# NOTE: Manually check license after this before submitting an update!
sed -n "4,28p" ascii.lisp | cut -c 5- > COPYING
# Print copyright notice to stdout for visual inspection
# in the build jobs.
cat COPYING
vlicense COPYING
}
56 changes: 56 additions & 0 deletions srcpkgs/cl-ppcre-unicode/template
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
# Template file for 'cl-ppcre-unicode'
pkgname=cl-ppcre-unicode
version=2.1.1
revision=1
depends="cl-ppcre cl-unicode"
checkdepends="sbcl ${depends}"
short_desc="Common Lisp regular expression library (Unicode property support)"
maintainer="Mihail Ivanchev <contact@ivanchev.net>"
license="BSD-2-Clause"
homepage="https://edicl.github.io/cl-ppcre/"
distfiles=" https://github.com/edicl/cl-ppcre/archive/refs/tags/v${version}.tar.gz"
checksum=89631179b71648d9e6c565a928f6896a9d5742aa2083b9c1b705fe0b45d85def

# NOTE:
#
# This is a separate package from cl-ppcre due to a circular dependency on
# cl-unicode.
#

_LIBRARY_DIR=usr/share/common-lisp/source/cl-ppcre-unicode

do_check() {
sbcl --non-interactive \
--eval '(require "asdf")' \
--eval "(push #p\"${wrksrc}/\" asdf:*central-registry*)" \
--eval '(asdf:find-system "cl-ppcre")' \
--eval '(asdf:load-system "cl-ppcre-test")' \
--eval '(asdf:find-system "cl-ppcre-unicode")' \
--eval '(asdf:load-system "cl-ppcre-unicode-test")' \
--eval "(unless (cl-ppcre-test:run-all-tests :more-tests 'cl-ppcre-test:unicode-test)
(uiop:quit 1))"
}

do_install() {
vmkdir $_LIBRARY_DIR
vmkdir $_LIBRARY_DIR/test
vcopy test/unicode-tests.lisp $_LIBRARY_DIR/test
vcopy test/unicodetestdata $_LIBRARY_DIR/test
vcopy cl-ppcre-unicode $_LIBRARY_DIR
vcopy cl-ppcre-unicode.asd $_LIBRARY_DIR
vdoc docs/index.html
# NOTE: Manually check license after this before submitting an update!
# Also, the master branch includes a LICENSE file so it'd
# probably end up in an upcoming release.
if [ ! -f LICENSE ]; then
sed -n "6,30p" api.lisp | cut -c 5- > COPYING
# Print copyright info to stdout for visual inspection
# in the build jobs.
cat COPYING
vlicense COPYING
else
echo -n "This if statement is no longer necessary because " 1>&2
echo "a LICENSE file is present and can be used." 1>&2
exit 1
fi
}
57 changes: 57 additions & 0 deletions srcpkgs/cl-ppcre/template
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
# Template file for 'cl-ppcre'
pkgname=cl-ppcre
version=2.1.1
revision=1
depends="cl-flexi-streams"
checkdepends="sbcl ${depends}"
short_desc="Common Lisp regular expression library"
maintainer="Mihail Ivanchev <contact@ivanchev.net>"
license="BSD-2-Clause"
homepage="https://edicl.github.io/cl-ppcre/"
distfiles=" https://github.com/edicl/cl-ppcre/archive/refs/tags/v${version}.tar.gz"
checksum="89631179b71648d9e6c565a928f6896a9d5742aa2083b9c1b705fe0b45d85def"

# NOTE:
#
# cl-ppcre-unicode is maintained as a separate package due to a circular
# dependency on cl-unicode.
#

_LIBRARY_DIR=usr/share/common-lisp/source/cl-ppcre

post_extract() {
rm "${wrksrc}/test/unicodetestdata"
rm "${wrksrc}/test/unicode-tests.lisp"
}

do_check() {
sbcl --non-interactive \
--eval '(require "asdf")' \
--eval "(push #p\"${wrksrc}/\" asdf:*central-registry*)" \
--eval '(asdf:find-system "cl-ppcre")' \
--eval '(asdf:load-system "cl-ppcre-test")' \
--eval "(unless (cl-ppcre-test:run-all-tests)
(uiop:quit 1))"
}

do_install() {
vmkdir $_LIBRARY_DIR
vcopy test $_LIBRARY_DIR
vcopy *.lisp $_LIBRARY_DIR
vcopy cl-ppcre.asd $_LIBRARY_DIR
vdoc docs/index.html
# NOTE: Manually check license after this before submitting an update!
# Also, the master branch includes a LICENSE file so it'd
# probably end up in an upcoming release.
if [ ! -f LICENSE ]; then
sed -n "6,30p" api.lisp | cut -c 5- > COPYING
# Print copyright info to stdout for visual inspection
# in the build jobs.
cat COPYING
vlicense COPYING
else
echo -n "This if statement is no longer necessary because " 1>&2
echo "a LICENSE file is present and can be used." 1>&2
exit 1
fi
}