diff options
| author | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2024-01-14 06:14:31 +0000 |
|---|---|---|
| committer | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2024-01-14 06:14:31 +0000 |
| commit | 321a859ba5f5279c02bb613b4aa31dd608299192 (patch) | |
| tree | c9bf42703f31d8268053ddba17eda48aca782df8 /dev-util/meson-format-array | |
| parent | 52b202b3bb88ec8a4a802c2dc1b802ff322aec3a (diff) | |
| download | srcux-321a859ba5f5279c02bb613b4aa31dd608299192.tar.gz srcux-321a859ba5f5279c02bb613b4aa31dd608299192.tar.xz srcux-321a859ba5f5279c02bb613b4aa31dd608299192.zip | |
Adding metadata
Diffstat (limited to 'dev-util/meson-format-array')
| -rw-r--r-- | dev-util/meson-format-array/files/meson-format-array | 26 | ||||
| -rw-r--r-- | dev-util/meson-format-array/meson-format-array-0.ebuild | 22 | ||||
| -rw-r--r-- | dev-util/meson-format-array/metadata.xml | 11 |
3 files changed, 0 insertions, 59 deletions
diff --git a/dev-util/meson-format-array/files/meson-format-array b/dev-util/meson-format-array/files/meson-format-array deleted file mode 100644 index d2bf49ba8e59..000000000000 --- a/dev-util/meson-format-array/files/meson-format-array +++ /dev/null @@ -1,26 +0,0 @@ -#!/usr/bin/env python3 -# Copyright 2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -import itertools -import shlex -import sys - -def quote(s): - return "'" + s.replace("\\", "\\\\").replace("'", "\\'") + "'" - -def main(args): - # Split each argument according to shell rules - args = (shlex.split(x) for x in args) - - # Flatten the resulting list of lists - args = itertools.chain.from_iterable(args) - - # Add quotes and escape embedded quotes - args = (quote(x) for x in args) - - # Format the result - print("[" + ", ".join(args) + "]") - -if __name__ == "__main__": - main(sys.argv[1:]) diff --git a/dev-util/meson-format-array/meson-format-array-0.ebuild b/dev-util/meson-format-array/meson-format-array-0.ebuild deleted file mode 100644 index 79440c60bb29..000000000000 --- a/dev-util/meson-format-array/meson-format-array-0.ebuild +++ /dev/null @@ -1,22 +0,0 @@ -# Copyright 2020-2023 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 -PYTHON_COMPAT=( python3_{8,9,10,11,12} ) - -inherit python-r1 - -DESCRIPTION="Format shell expressions into a meson array" -HOMEPAGE="https://wiki.gentoo.org/wiki/No_homepage" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos ~x64-macos ~x64-solaris" - -REQUIRED_USE="${PYTHON_REQUIRED_USE}" -RDEPEND="${PYTHON_DEPS}" -S="${WORKDIR}" - -src_install() { - python_foreach_impl python_doscript "${FILESDIR}"/meson-format-array -} diff --git a/dev-util/meson-format-array/metadata.xml b/dev-util/meson-format-array/metadata.xml deleted file mode 100644 index f54ec254a599..000000000000 --- a/dev-util/meson-format-array/metadata.xml +++ /dev/null @@ -1,11 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "https://liguros.gitlab.io/dtd/metadata.dtd"> -<pkgmetadata> - <maintainer type="person"> - <email>floppym@gentoo.org</email> - <name>Mike Gilbert</name> - </maintainer> - - <origin>gentoo-staging</origin> - <stabilize-allarches/> -</pkgmetadata>
\ No newline at end of file |
