Skip to content

Commit

Permalink
app-portage/pycargoebuild: new Cargo .ebuild generator, v0.1.0
Browse files Browse the repository at this point in the history
Signed-off-by: Michał Górny <[email protected]>
  • Loading branch information
mgorny committed Nov 12, 2022
1 parent 9867e2a commit cfd2bad
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 0 deletions.
1 change: 1 addition & 0 deletions app-portage/pycargoebuild/Manifest
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
DIST pycargoebuild-0.1.0.gh.tar.gz 12404 BLAKE2B 3fa08408dbbede79253464052e0d77f4e601e7a5a7205900baaad52947efcfe0cef4af5703da8a36ad4972fc1930169bda84856944a1a2576c94aff2041abe7c SHA512 93de195758f9e07e0d28189edd1ae8c81baf70984942181ccf19ac8712765d1c6147b1b4a15d2d5c92856be24fb502ca8235ac60741eb6117393c795f99147ca
12 changes: 12 additions & 0 deletions app-portage/pycargoebuild/metadata.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>[email protected]</email>
<name>Michał Górny</name>
</maintainer>
<upstream>
<remote-id type="github">projg2/pycargoebuild</remote-id>
<remote-id type="pypi">pycargoebuild</remote-id>
</upstream>
</pkgmetadata>
32 changes: 32 additions & 0 deletions app-portage/pycargoebuild/pycargoebuild-0.1.0.ebuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Copyright 2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

DISTUTILS_USE_PEP517=flit
PYTHON_COMPAT=( python3_{8..11} pypy3 )

inherit distutils-r1

DESCRIPTION="A generator for Rust/Cargo ebuilds written in Python"
HOMEPAGE="
https://github.com/projg2/pycargoebuild/
https://pypi.org/project/pycargoebuild/
"
SRC_URI="
https://github.com/projg2/pycargoebuild/archive/v${PV}.tar.gz
-> ${P}.gh.tar.gz
"

LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"

RDEPEND="
dev-python/license-expression[${PYTHON_USEDEP}]
$(python_gen_cond_dep '
dev-python/tomli[${PYTHON_USEDEP}]
' 3.8 3.9 3.10)
"

distutils_enable_tests pytest

0 comments on commit cfd2bad

Please sign in to comment.