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 packages: wyrd-1.5.3 and ocaml-curses-1.0.10 #37214

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
22 changes: 22 additions & 0 deletions srcpkgs/ocaml-curses/template
@@ -0,0 +1,22 @@
# Template file for 'ocaml-curses'
pkgname=ocaml-curses
version=1.0.10
revision=1
wrksrc="curses-${version}"
hostmakedepends="dune base-devel"
makedepends="ncurses-devel"
short_desc="Objective Caml libs for curses"
maintainer="Barbaross <cullenrss@gmail.com>"
license="GPL-3.0-or-later"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGPL-2.1

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be "LGPL-2.1-or-later", according to https://github.com/mbacarella/curses/blob/main/curses.opam#L7

homepage="https://github.com/mbacarella/curses"
distfiles="${homepage}/archive/refs/tags/${version}.tar.gz"
checksum=f09c9fe714f6b0895a5d2238418188e945be928d223c2bda4e9566c32e53f848

do_build() {
dune build --display=short
}

do_install() {
dune install --prefix=/usr --destdir="$DESTDIR" \
--libdir=/usr/lib/ocaml --docdir=/usr/share/doc
}
25 changes: 25 additions & 0 deletions srcpkgs/wyrd/template
@@ -0,0 +1,25 @@
# Template file for 'wyrd'
pkgname=wyrd
version=1.5.3
revision=1
build_style=gnu-configure
hostmakedepends="ocaml camlp5 ocaml-curses texlive texlive-LuaTeX python3 opam"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there should be no need for python3

makedepends="ncurses-devel"
depends="remind"
conf_files="/etc/wyrdrc"
short_desc="Ncurses front-end to Remind"
maintainer="Barbaross <cullenrss@gmail.com>"
license="GPL-2.0-or-later"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

GPL-2.0-only

homepage="https://gitlab.com/wyrd-calendar/wyrd"
distfiles="${homepage}/-/archive/${version}/wyrd-${version}.tar.gz"
Copy link

@rrbq rrbq Jun 26, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Try the tarball at "${homepage}/-/jobs/artifacts/${version}/raw/wyrd-${version}.tar.xz?job=release" .

It contains a pre-built copy of the manual, so you can skip building it yourself and only build the wyrd executable with make wyrd, no need to run prep-devtree.sh as well.

checksum=1d7936dd10b795a17bbce06ae14079eb36120f26fd7bd27b522f8df5196790e7

pre_configure() {
./prep-devtree.sh

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is only needed with autoconf, not with dune (or the release tarball).

}

pre_build() {
opam init -y --compiler=ocaml-system --disable-sandboxing
eval $(opam env)
opam install -y hevea
}