Use pycargoebuild to automate Gentoo ebuilds #392
Closed
Interpause
started this conversation in
Ideas
Replies: 2 comments 6 replies
-
That would be nice. I think that The other thing that I'm interested about is how to submit update to GURU repository. Is it possible to just automatically push the new version through Git (or something similar) from GitHub Actions? And are automatic updates even allowed for GURU? |
Beta Was this translation helpful? Give feedback.
1 reply
-
Here is a rough outline: cd PWAsForFirefox/native
# Replace versions as per build guide
sed -i "s/version = \"0.0.0\"/version = \"$VERSION\"/g" Cargo.toml
sed -i "s/DISTRIBUTION_VERSION = '0.0.0'/DISTRIBUTION_VERSION = '$VERSION'/g" userchrome/profile/chro
me/pwa/chrome.jsm
# Generate ebuild
pycargoebuild .
# Add in other required ebuild functions
# Maybe like:
# template.sh >> firefoxpwa-x.x.x.ebuild
# sed ...
# Can refer to https://github.com/gentoo-mirror/guru/blob/master/www-plugins/firefoxpwa/firefoxpwa-2.7.3.ebuild
# For GURU, I am not sure for official Gentoo repository
mv firefoxpwa-x.x.x.ebuild guru/www-plugins/firefoxpwa
cd guru/www-plugins/firefoxpwa
ebuild firefoxpwa-x.x.x.ebuild manifest
git add -A
pkgdev commit --signoff --scan=true
pkgdev push |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, it is me again. I stumbled across https://github.com/projg2/pycargoebuild, which based on projg2/pycargoebuild@9d1a463 has support for specifying Git-installed dependencies into GIT_CRATES, solving the issue that https://github.com/gentoo/cargo-ebuild had. Seems to also be maintained by one of the senior Gentoo developers. I am going to try it now, if it works, ebuild automation should be possible.
Beta Was this translation helpful? Give feedback.
All reactions