It would be nice to add links to some of the most commonly used remotes like CPAN, GitHub, SourceForge, PyPI… These would complement the link to the package's homepage. Here are the number of remote-ids of each type that I counted in the tree: 13169 cpan-module 5038 github 2683 sourceforge 1613 cpan 1498 pypi 201 google-code 194 bitbucket 160 launchpad 104 cpe 63 sourceforge-jp 61 rubygems 53 pear 29 freshmeat 19 freecode 9 gitlab 2 ctan 1 gentoo
What is the expected solution to this problem? Would it be to parse the existing "SRC_URI" on the ebuild file or would a new keyword be added to ebuilds or to the metadata file?
(In reply to Bruno Pinto from comment #1) > What is the expected solution to this problem? Would it be to parse the > existing "SRC_URI" on the ebuild file or would a new keyword be added to > ebuilds or to the metadata file? I'm not sure what you mean. This info is already present in the packages' metadata.xml. This bug report is to ask the packages.gentoo.org maintainers to add it to the website.
Created attachment 540048 [details, diff] Draft implementation I just drafted some ideas to get this done, this basically adds N (number of remote-ids) links to the resources menu using the remote-id type as the name of the link and using the ID as part of the final link. Suggestions for a final implementation?
(In reply to Bruno Pinto from comment #3) > Created attachment 540048 [details, diff] [details, diff] > Draft implementation > > I just drafted some ideas to get this done, this basically adds N (number of > remote-ids) links to the resources menu using the remote-id type as the name > of the link and using the ID as part of the final link. > > Suggestions for a final implementation? Hey @bruno - looks like your patch is reversed, can you swap it around and re-submit?! cheers!
Created attachment 586284 [details, diff] Draft implementation @veremitz updated, sorry for the delayed response!
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/sites/soko.git/commit/?id=527c1e69e674388acf16cefb423f9b8baad84a67 commit 527c1e69e674388acf16cefb423f9b8baad84a67 Author: Max Magorsch <arzano@gentoo.org> AuthorDate: 2020-09-09 12:41:35 +0000 Commit: Max Magorsch <arzano@gentoo.org> CommitDate: 2020-09-09 12:41:35 +0000 Add links to upstream remotes Thanks to sbraz for the suggestion. Closes: https://bugs.gentoo.org/657018 Signed-off-by: Max Magorsch <arzano@gentoo.org> pkg/app/handler/packages/utils.go | 37 ++++++++++++++++++++++++++++++++++++ pkg/models/package.go | 6 ++++++ pkg/portage/repository/package.go | 21 ++++++++++++++++++++ web/templates/packages/metadata.tmpl | 20 +++++++++++++++++++ 4 files changed, 84 insertions(+)