diff --git a/COPYING b/COPYING new file mode 100644 index 0000000..3805ab3 --- /dev/null +++ b/COPYING @@ -0,0 +1,20 @@ +Copyright (c) 2025 Retropikzel + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the " Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies +of the Software, and to permit persons to whom the Software is furnished to do +so, subject to the following conditions: + +The above copyright notice and this permission notice (including the next +paragraph) shall be included in all copies or substantial portions of the +Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/Makefile b/Makefile index eae56d5..c57ee90 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,7 @@ CC=gcc DOCKER=docker run -it -v ${PWD}:/workdir DOCKER_INIT=cd /workdir && make clean && -VERSION=$(shell awk '/version:/{ print $$2 }' README.md ) +VERSION=0.10.0 TEST=primitives SCHEME=chibi TMPDIR=tmp/${SCHEME} @@ -18,11 +18,11 @@ endif all: build ${TMPDIR} -build: +build: README.html snow-chibi package \ --version=${VERSION} \ --authors="Retropikzel" \ - --doc=README.md \ + --doc=documentation/foreign-c.html \ --foreign-depends=ffi \ --description="Portable foreign function interface for R7RS Schemes" \ foreign/c.sld @@ -109,17 +109,8 @@ ${TMPDIR}/test/libtest.a: ${TMPDIR}/test/libtest.o tests/c-src/libtest.c ${TMPDIR}: mkdir -p ${TMPDIR} -# apt-get install pandoc weasyprint -documentation: README.md - mkdir -p documentation - pandoc --standalone \ - --template templates/documentation.html README.md \ - > documentation/foreign-c.html - pandoc -t html5 \ - --pdf-engine=weasyprint \ - --css templates/css/pdf-documentation.css \ - -o documentation/foreign-c.pdf \ - README.md +README.html: README.md + markdown README.md > README.html chibi: foreign/c/primitives/chibi/foreign-c.stub chibi-ffi foreign/c/primitives/chibi/foreign-c.stub diff --git a/README.md b/README.md index a33b666..2313cd6 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,3 @@ ---- -title: foreign-c a portable foreign function interface for R7RS Schemes -version: 0.10.0 ---- - # foreign-c foreign-c is a C foreign function interface (FFI) library for R7RS Schemes. It @@ -13,7 +8,7 @@ to being portable by conforming to some specification. [Maling lists](https://sr.ht/~retropikzel/foreign-c/lists) -[Jenkins](https://jenkins.scheme.org/job/foreign_c/job/foreign-c/) +[Jenkins](https://jenkins.scheme.org/job/retropikzel/job/foreign-c/) - [Installation](#installation) - [Documentation](#documentation) @@ -86,7 +81,7 @@ to being portable by conforming to some specification. Required versions: - Chibi > 0.11 - - At the only 0.11 is out so build from git + - At the time only 0.11 is out so build from git - Chicken >= 5.4.0 < 6 - Gauche >= 0.9.15 - Does not yet work with snow-chibi install