Skip to content

Commit

Permalink
Re-organize for submission to Akku
Browse files Browse the repository at this point in the history
  • Loading branch information
hinkelman committed May 15, 2020
1 parent ef43d2a commit b860693
Show file tree
Hide file tree
Showing 11 changed files with 44 additions and 47 deletions.
11 changes: 11 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,15 @@
*.scm#*
.#*.scm

*.sls~
*.sls#*
.#*.sls

*.sps~
*.sps#*
.#*.sps

.DS_Store

*.akku
*.akku.sig
7 changes: 7 additions & 0 deletions Akku.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!r6rs ; -*- mode: scheme; coding: utf-8 -*-
;; This file is automatically generated - do not change it by hand.
(import (akku format lockfile))
(projects
((name "chez-srfi")
(location (git "https://github.com/arcfide/chez-srfi"))
(revision "ad3b9f9020cf3b65f209866aca0b10cfc10556f3")))
9 changes: 9 additions & 0 deletions Akku.manifest
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!r6rs ; -*- mode: scheme; coding: utf-8 -*-
(import (akku format manifest))

(akku-package ("gnuplot-pipe" "0.4.0")
(synopsis "Port of gnuplot-pipe egg for Chicken Scheme to Chez Scheme.")
(authors "Travis Hinkelman" "Francesco Montanari" "Glenn Moloney")
(license "GPL-3.0-or-later")
(depends ("chez-srfi" ">=0.0.0-akku <1.0.0"))
)
4 changes: 3 additions & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
GNU GENERAL PUBLIC LICENSE
Valid-License-Identifier: GPL-3.0-or-later

GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007

Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
Expand Down
9 changes: 2 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,14 @@ Port of [gnuplot-pipe](https://gitlab.com/montanari/gnuplot-pipe/) [egg](http://

## Installation

```
$ cd ~/scheme # where '~/scheme' is the path to your Chez Scheme libraries
$ git clone git://github.com/hinkelman/gnuplot-pipe.git
```

For more information on installing Chez Scheme libraries, see blog posts for [macOS and Windows](https://www.travishinkelman.com/post/getting-started-with-chez-scheme-and-emacs/) or [Ubuntu](https://www.travishinkelman.com/post/getting-started-with-chez-scheme-and-emacs-ubuntu/).
Download or clone this repository. Move `gnuplot-pipe.sls` to a directory found by `(library-directories)`. For more information on how Chez Scheme finds libraries, see blog posts for [macOS and Windows](https://www.travishinkelman.com/post/getting-started-with-chez-scheme-and-emacs/) or [Ubuntu](https://www.travishinkelman.com/post/getting-started-with-chez-scheme-and-emacs-ubuntu/).

## Usage and examples

It is recommended to import `gnuplot-pipe` using a prefix, for example `gp:`.

```
(import (prefix (gnuplot-pipe plot) gp:))
(import (prefix (gnuplot-pipe) gp:))
```

All `gnuplot-pipe` procedures calls must be wrapped by
Expand Down
2 changes: 1 addition & 1 deletion examples.ss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
(import (prefix (gnuplot-pipe plot) gp:))
(import (prefix (gnuplot-pipe) gp:))

;;; Plot function
(gp:call/gnuplot
Expand Down
6 changes: 3 additions & 3 deletions plot.ss → gnuplot-pipe.sls
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
(library (gnuplot-pipe plot)
(library (gnuplot-pipe)
(export
call/gnuplot
send
Expand All @@ -8,8 +8,8 @@
end-data)

(import (chezscheme)
(only (srfi s13 strings) string-join)
(only (srfi s1 lists) fold))
(only (srfi :13 strings) string-join)
(only (srfi :1 lists) fold))

;;---------------------------------------------------------------------

Expand Down
13 changes: 0 additions & 13 deletions package.sc

This file was deleted.

6 changes: 0 additions & 6 deletions test/README.md

This file was deleted.

14 changes: 0 additions & 14 deletions test/package.sc

This file was deleted.

10 changes: 8 additions & 2 deletions test/tests.ss → tests/test-gnuplot-pipe.sps
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
(import (prefix (gnuplot-pipe plot) gp:)
(srfi s64 testing))
#!/usr/bin/env scheme-script
;; -*- mode: scheme; coding: utf-8 -*- !#
;; SPDX-License-Identifier: GPL-3.0-or-later
#!r6rs

(import (rnrs (6))
(srfi :64 testing)
(prefix (gnuplot-pipe) gp:))

;;; macro included in the chicken version of this file wasn't working
;;; because the test to check if the files existed was happening before the files were written
Expand Down

0 comments on commit b860693

Please sign in to comment.