On Sat, 28 Jun 2025, kangie wrote:
-# Portage.
-SRC_URI="ftp://foo.example.org/${P}.tar.gz"
+# Portage. If a file needs to be renamed, use the "->" syntax. +SRC_URI="https://files.example.org/foo/v${PV}.tar.xz -> ${P}.tar.xz"
On Sat, 28 Jun 2025, kangie wrote:
-# Portage.
-SRC_URI="ftp://foo.example.org/${P}.tar.gz"
+# Portage. If a file needs to be renamed, use the "->" syntax. +SRC_URI="https://files.example.org/foo/v${PV}.tar.xz -> ${P}.tar.xz"
Explaining "->" in the comment is fine, but not sure if it is a good
idea in the actual SRC_URI example. New contributors will inevitably
copy the line to their ebuild, even if it's not needed. (We've been
there before, that's why "econf" and "emake" are commented out now).
In 2025 FTP is increasingly uncommon. The world we live in is (mostly)
HTTPS, and SRC_URI should reflect that.
Add additional commentry about (and use SRC_URI to show an example of) renaming the distfile with `->` when required.
# Point to any required sources; these will be automatically downloaded by -# Portage.
-SRC_URI="ftp://foo.example.org/${P}.tar.gz"
+# Portage. If a file needs to be renamed, use the "->" syntax. +SRC_URI="https://files.example.org/foo/v${PV}.tar.xz -> ${P}.tar.xz"
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 546 |
Nodes: | 16 (2 / 14) |
Uptime: | 53:13:46 |
Calls: | 10,397 |
Calls today: | 5 |
Files: | 14,067 |
Messages: | 6,417,394 |
Posted today: | 1 |