{"id":13410158,"url":"https://github.com/stcarrez/ada-lzma","last_synced_at":"2025-03-04T21:29:01.203Z","repository":{"id":35830778,"uuid":"40113773","full_name":"stcarrez/ada-lzma","owner":"stcarrez","description":"Ada binding for liblzma compression library","archived":false,"fork":false,"pushed_at":"2024-08-22T14:28:28.000Z","size":651,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-08-22T16:22:31.551Z","etag":null,"topics":["ada","compression","lzma"],"latest_commit_sha":null,"homepage":null,"language":"Ada","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/stcarrez.png","metadata":{"files":{"readme":"README.md","changelog":"NEWS.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":"support/lzma.sed","governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-08-03T08:26:30.000Z","updated_at":"2024-08-22T14:28:32.000Z","dependencies_parsed_at":"2024-05-02T23:03:25.027Z","dependency_job_id":"cc393d30-b29b-409b-a688-70c3c23c2237","html_url":"https://github.com/stcarrez/ada-lzma","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stcarrez%2Fada-lzma","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stcarrez%2Fada-lzma/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stcarrez%2Fada-lzma/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stcarrez%2Fada-lzma/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stcarrez","download_url":"https://codeload.github.com/stcarrez/ada-lzma/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241924443,"owners_count":20043217,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ada","compression","lzma"],"created_at":"2024-07-30T20:01:05.277Z","updated_at":"2025-03-04T21:29:01.182Z","avatar_url":"https://github.com/stcarrez.png","language":"Ada","funding_links":[],"categories":["Libraries"],"sub_categories":["Compression"],"readme":"# Ada LZMA Library Binding\n\n[![Alire](https://img.shields.io/endpoint?url=https://alire.ada.dev/badges/lzmada.json)](https://alire.ada.dev/crates/lzmada)\n[![Build Status](https://img.shields.io/endpoint?url=https://porion.vacs.fr/porion/api/v1/projects/ada-lzma/badges/build.json)](https://porion.vacs.fr/porion/projects/view/ada-lzma/summary)\n[![License](https://img.shields.io/:license-mit-blue.svg)](LICENSE)\n[![GitLab](https://img.shields.io/badge/repo-GitLab-6C488A.svg)](https://gitlab.com/stcarrez/ada-lzma)\n[![Download](https://img.shields.io/badge/download-1.1.3-brightgreen.svg)](http://download.vacs.fr/ada-lzma/ada-lzma-1.1.3.tar.gz)\n\nThis is a small Ada05 library binding for the liblzma library.\n\n## Version 1.1.4   - Aug 2024\n  - Cleanup build environment to drop configure\n\n[List all versions](https://gitlab.com/stcarrez/ada-lzma/blob/master/NEWS.md)\n\n## About liblzma\n\nliblzma is a public domain general-purpose data compression library with\na zlib-like API.\n \nliblzma is part of XZ Utils \u003chttps://tukaani.org/xz/\u003e. XZ Utils includes\na gzip-like command line tool named xz and some other tools. XZ Utils\nis developed and maintained by Lasse Collin.\n\nMajor parts of liblzma are based on Igor Pavlov's public domain LZMA SDK\n\u003chttps://7-zip.org/sdk.html\u003e.\n\n## Building ada-lzma\n\nBefore you build the package you must install the `liblzma` library.\nThe installation of `liblzma` depends on your system:\n\n| System           | Install with\n|------------------|---------------------------\n| Ubuntu \u0026 Debian  | `sudo apt-get install liblzma-dev`\n| Fedora           | `sudo yum install xz-devel`\n| NetBSD           | *pre installed (contrib/xz)*\n| FreeBSD          | *pre installed (contrib/xz)*\n| Windows          | See https://tukaani.org/xz/\n| Source           | See https://tukaani.org/xz/\n\n## Build with Alire\n\nTo use lzmada in your project, use the following command:\n\n```\nalr with lzmada\n```\n\nBuild with the following commands:\n\n    make\n\n## Installation\n\nThe installation is done with `gprinstall` if the configure script found it or\nby traditional copy.  In all cases, you should install with the next command:\n\n    make install\n\n## How to use Ada LZMA\n\nTwo examples are provided to illustrate how to use the library.\nLook at these examples for the details on how to use some of the operations.\n\nsamples/compress_easy.adb is an example on how to compress some stream.\nsamples/decompress.adb shows hoz to decompress a stream.\n\nRoughly speaking, import some package:\n\n    with Lzma.Base;\n    with Lzma.Container;\n    with Lzma.Check;\n\nThen declare the LZMA stream:\n\n    Stream  : aliased Lzma.Base.lzma_stream := Lzma.Base.LZMA_STREAM_INIT;\n\nInitialize the LZMA stream as decoder (or as encoder):\n\n    Result := Lzma.Container.lzma_stream_decoder (Stream'Unchecked_Access,\n                                                  Long_Long_Integer'Last,\n                                                  Lzma.Container.LZMA_CONCATENATED);\n\nSetup the stream 'next_out', 'avail_out', 'next_in' and 'avail_in' and call\nthe lzma_code operation with the action (Lzma.Base.LZMA_RUN or Lzma.Base.LZMA_FINISH):\n\n    Result := Lzma.Base.lzma_code (Stream'Unchecked_Access, Action);\n\nClose the LZMA stream:\n\n    Lzma.Base.lzma_end (Stream'Unchecked_Access);\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstcarrez%2Fada-lzma","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstcarrez%2Fada-lzma","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstcarrez%2Fada-lzma/lists"}