diff options
author | Sam James <sam@gentoo.org> | 2024-02-06 00:35:49 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2024-02-06 00:35:49 +0000 |
commit | 3f0cedf7a3ff1c977b3fe84c83b54f9588e96db3 (patch) | |
tree | 3a3977632cc07d91486b74cdc1e75449893b694b /dev-util/pkgcruft | |
parent | sys-fs/xfsprogs: add 6.6.0 (diff) | |
download | gentoo-3f0cedf7a3ff1c977b3fe84c83b54f9588e96db3.tar.gz gentoo-3f0cedf7a3ff1c977b3fe84c83b54f9588e96db3.tar.bz2 gentoo-3f0cedf7a3ff1c977b3fe84c83b54f9588e96db3.zip |
dev-util/pkgcruft: new package, add 0.0.1, 9999
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-util/pkgcruft')
-rw-r--r-- | dev-util/pkgcruft/Manifest | 1 | ||||
-rw-r--r-- | dev-util/pkgcruft/metadata.xml | 11 | ||||
-rw-r--r-- | dev-util/pkgcruft/pkgcruft-0.0.1.ebuild | 55 | ||||
-rw-r--r-- | dev-util/pkgcruft/pkgcruft-9999.ebuild | 55 |
4 files changed, 122 insertions, 0 deletions
diff --git a/dev-util/pkgcruft/Manifest b/dev-util/pkgcruft/Manifest new file mode 100644 index 000000000000..020c38f15e1f --- /dev/null +++ b/dev-util/pkgcruft/Manifest @@ -0,0 +1 @@ +DIST pkgcruft-0.0.1.tar.xz 30144864 BLAKE2B af309ac7199640e1ee058ba9206c09ce7a054016f515d99763c40399ed8487807c908f5a5fbabc187ee88f2690cbdaa91c8b374732949b1e03334418140de65b SHA512 d02c91b7683f930eff99fa0cca01f7008c6a8808c25439a880928dc1a680f99a72f76a571bf3ec48f17a1ab337007679384993325b53a9efad1ff4ce59b382cd diff --git a/dev-util/pkgcruft/metadata.xml b/dev-util/pkgcruft/metadata.xml new file mode 100644 index 000000000000..33c1ad3bdca7 --- /dev/null +++ b/dev-util/pkgcruft/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>sam@gentoo.org</email> + <name>Sam James</name> + </maintainer> + <upstream> + <remote-id type="github">pkgcraft/pkgcraft</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-util/pkgcruft/pkgcruft-0.0.1.ebuild b/dev-util/pkgcruft/pkgcruft-0.0.1.ebuild new file mode 100644 index 000000000000..c3b4af5141dd --- /dev/null +++ b/dev-util/pkgcruft/pkgcruft-0.0.1.ebuild @@ -0,0 +1,55 @@ +# Copyright 2023-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +CRATES=" " +inherit cargo toolchain-funcs + +DESCRIPTION="QA library and tools based on pkgcraft" +HOMEPAGE="https://pkgcraft.github.io/" + +if [[ ${PV} == 9999 ]] ; then + EGIT_REPO_URI="https://github.com/pkgcraft/pkgcraft" + inherit git-r3 + + S="${WORKDIR}"/${P}/crates/${PN} +else + SRC_URI="https://github.com/pkgcraft/pkgcraft/releases/download/${P}/${P}.tar.xz" + + KEYWORDS="~amd64" +fi + +LICENSE="MIT" +# Dependent crate licenses +LICENSE+=" + Apache-2.0 BSD-2 BSD CC0-1.0 GPL-3+ ISC MIT MPL-2.0 Unicode-DFS-2016 +" +SLOT="0" +# "error[E0432]: unresolved import `pkgcruft::test`" +# TODO: speak to radhermit +RESTRICT="test" + +# clang needed for bindgen +BDEPEND+=" + sys-devel/clang + >=virtual/rust-1.71 +" + +QA_FLAGS_IGNORED="usr/bin/pkgcruft" + +src_unpack() { + if [[ ${PV} == 9999 ]] ; then + git-r3_src_unpack + cargo_live_src_unpack + else + cargo_src_unpack + fi +} + +src_compile() { + # For scallop building bash + tc-export AR CC + + cargo_src_compile +} diff --git a/dev-util/pkgcruft/pkgcruft-9999.ebuild b/dev-util/pkgcruft/pkgcruft-9999.ebuild new file mode 100644 index 000000000000..c3b4af5141dd --- /dev/null +++ b/dev-util/pkgcruft/pkgcruft-9999.ebuild @@ -0,0 +1,55 @@ +# Copyright 2023-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +CRATES=" " +inherit cargo toolchain-funcs + +DESCRIPTION="QA library and tools based on pkgcraft" +HOMEPAGE="https://pkgcraft.github.io/" + +if [[ ${PV} == 9999 ]] ; then + EGIT_REPO_URI="https://github.com/pkgcraft/pkgcraft" + inherit git-r3 + + S="${WORKDIR}"/${P}/crates/${PN} +else + SRC_URI="https://github.com/pkgcraft/pkgcraft/releases/download/${P}/${P}.tar.xz" + + KEYWORDS="~amd64" +fi + +LICENSE="MIT" +# Dependent crate licenses +LICENSE+=" + Apache-2.0 BSD-2 BSD CC0-1.0 GPL-3+ ISC MIT MPL-2.0 Unicode-DFS-2016 +" +SLOT="0" +# "error[E0432]: unresolved import `pkgcruft::test`" +# TODO: speak to radhermit +RESTRICT="test" + +# clang needed for bindgen +BDEPEND+=" + sys-devel/clang + >=virtual/rust-1.71 +" + +QA_FLAGS_IGNORED="usr/bin/pkgcruft" + +src_unpack() { + if [[ ${PV} == 9999 ]] ; then + git-r3_src_unpack + cargo_live_src_unpack + else + cargo_src_unpack + fi +} + +src_compile() { + # For scallop building bash + tc-export AR CC + + cargo_src_compile +} |