From 9a4304fe572a5f61c775a91c6316df040f3dfbe8 Mon Sep 17 00:00:00 2001 From: Gautier de Montmollin Date: Sun, 7 Dec 2025 19:35:47 +0100 Subject: [PATCH] bar_codes 6.0.0 (#1697) Improvements regarding white space around 1D & 2D bar codes (esp. QR codes). --- index/ba/bar_codes/bar_codes-6.0.0.toml | 61 +++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 index/ba/bar_codes/bar_codes-6.0.0.toml diff --git a/index/ba/bar_codes/bar_codes-6.0.0.toml b/index/ba/bar_codes/bar_codes-6.0.0.toml new file mode 100644 index 00000000..1934e780 --- /dev/null +++ b/index/ba/bar_codes/bar_codes-6.0.0.toml @@ -0,0 +1,61 @@ +description = "Generate various types of bar codes (1D or 2D) on various media" +name = "bar_codes" +version = "6.0.0" +authors = ["Gautier de Montmollin"] +website = "https://ada-bar-codes.sourceforge.io/" +licenses = "MIT" +maintainers = ["fabien.chouteau@gmail.com"] +maintainers-logins = ["zertovitch", "Fabien-Chouteau"] +project-files = ["ada_bar_codes.gpr"] + +tags = ["bar", "code", "barcode", "bar-code", + "datamatrix", "data-matrix", + "qr", "qrcode", "qr-code", + "code128", "msi", "ean13", "upca", + "pbm", "pdf", "png", "svg"] + +executables = ["bar_codes_demo"] + +long-description = """ + QRCode 128Data Matrix + +Some features: + +* 1D bar codes supported: Code 128, EAN-13, MSI, UPC-A +* 2D bar codes supported: Data Matrix, QR Codes +* Task safe +* Endian-neutral +* Multi-platform, but native code build +* Standalone (no dependency on other libraires, bindings, etc.; no extra component needed for running) +* Unconditionally portable code: OS-, CPU-, compiler- independent code. +* Pure Ada 2012: this package can be used in projects in Ada 2012 and later versions of the Ada language +* Tests and demos included +* *Free*, open-source + +The creation of a bar code is as simple as this small procedure: + +```ada +with Ada.Text_IO, Bar_Codes, Bar_Codes_Media; + +procedure Small_Demo is + use Ada.Text_IO; + svg : File_Type; +begin + Create (svg, Out_File, "qr_code.svg"); + Put_Line + (svg, + Bar_Codes_Media.SVG_Bar_Code + (Bar_Codes.Code_QR_Low, (5.0, 5.0, 100.0, 100.0), "mm", "Hello")); + Close (svg); +end Small_Demo; +``` +""" + +[gpr-externals] +Build_Mode = ["Debug", "Fast"] + +[origin] +url = "https://sourceforge.net/projects/ada-bar-codes/files/abc_006.zip" +hashes = ["sha512:60a70c816297d0ab2124008da6f3aa79bbbbf891c25889a5a0c2fcb16e7eb9be1375f45a242ba14f3874a591271309a7f7ae0a069af299c9bd91f8f595e76739"]