An open API service indexing awesome lists of open source software.

https://github.com/easbarba/pita

The awesomeness of higher-level languages standard libraries, but for C.
https://github.com/easbarba/pita

godot sprout-valley stardew-valley

Last synced: 2 months ago
JSON representation

The awesomeness of higher-level languages standard libraries, but for C.

Awesome Lists containing this project

README

        

# Pita
The awesomeness of higher-level languages standard libraries, but for C.

`Pita` attempts to bring to C power-users the well-thought API of standard libraries of higher-level language such as Python, Ruby or Guile Scheme, as a shared library.

## USAGE

## INSTALLATION

### Meson

Meson makes it all too easy and nice, just add a `pita.wrap` file in the ./subprojects containing:

``` sh
[wrap-git]
directory=pita
url=https://gitlab.com/easbarba/pita
revision=head
```

Then you in your `meson.build` use it as dependency:

dependency('pita, fallback: ['pita, 'pita_dep'])

## DEVELOPMENT

`Pita` requires a [C99](https://gcc.gnu.org/) compiler, and [Meson](https://mesonbuild.com/), then just run `make clean all`, and executable file will be placed at `$PWD/.build/onur`.

Dependencies: [GNU GCC](https://gcc.gnu.org/) - [GNU Make](https://www.gnu.org/software/make/) - [Podman ](https://podman.io/).

Tip: A clean install without messing around your system is easily achievable with [GNU Guix](https://guix.gnu.org/manual/devel/en/html_node/Invoking-guix-shell.html): `guix shell --check`.

It may suit you better running the tests in a isolated environment with containers, that can be done so:

docker run --rm -it $(docker build -qf Containerfile.run)

or:

podman build https://gitlab.com/easbarba/onur/-/raw/main/Containerfile.dev --tag onur:latest
podman run --rm -it onur:latest

## LICENSE

[GNU GENERAL PUBLIC LICENSE Version 3](https://www.gnu.org/licenses/gpl-3.0.en.html)