Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 675634 - app-eselect/eselect-repository-9999: symlink repo.eselect
Summary: app-eselect/eselect-repository-9999: symlink repo.eselect
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Michał Górny
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-01-16 20:19 UTC by Michael Lawrence
Modified: 2019-01-17 07:35 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Lawrence 2019-01-16 20:19:14 UTC
/usr/share/eselect/modules # ln -s repository.eselect repo.eselect

SO much more friendlier .. 
add a symlink alias to ebuild and wala.. less fat finger'y 


Mike-LTPC / # eselect repo
Usage: eselect repo <action> <options>

Standard actions:
  help                      Display help text
  usage                     Display usage information
  version                   Display version information

Extra actions:
  add <name> <sync-type> <sync-uri>
                            Add a custom repository
    <name>                    Name of the repository to add
    <sync-type>               Syncer to use (e.g. git, rsync, svn...)
    <sync-uri>                Sync URI
  disable [-f] (<name>|<index>)...
                            Disable specified repositories without removing their contents
    -f                        Force potentially dangerous removals
    <name>...                 Names of repositories to disable
    <index>...                Numeric index of the repository (from 'list' command)
  enable (<name>|<index>)...
                            Enable the specified repositories from the list
    <name>...                 Names of repositories to enable
    <index>...                Numeric index of the repository (from 'list' command)
  list [-i]                 List all repositories
    -i                        Only list installed
  remove [-f] (<name>|<index>)...
                            Remove installed repositories along with their contents
    -f                        Force potentially dangerous removals
    <name>...                 Names of repositories to remove
    <index>...                Numeric index of the repository (from 'list' command)
Mike-LTPC / #
Comment 1 Michael Lawrence 2019-01-16 20:26:50 UTC
##eselect-repository-9999
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI=6

EGIT_REPO_URI="https://github.com/mgorny/eselect-repository.git"
PYTHON_COMPAT=( python{3_4,3_5,3_6,3_7} )
inherit git-r3 python-single-r1

DESCRIPTION="Manage repos.conf via eselect"
HOMEPAGE="https://github.com/mgorny/eselect-repository"
SRC_URI=""

LICENSE="BSD-2"
SLOT="0"
KEYWORDS=""
IUSE=""
REQUIRED_USE=${PYTHON_REQUIRED_USE}

RDEPEND="${PYTHON_DEPS}
	app-admin/eselect
	dev-python/lxml[${PYTHON_USEDEP}]
	net-misc/wget"

src_compile() {
	MAKEARGS=(
		PREFIX="${EPREFIX}/usr"
		SYSCONFDIR="${EPREFIX}/etc"
		SHAREDSTATEDIR="${EPREFIX}/var"
		ESELECTDIR="${EPREFIX}/usr/share/eselect/modules"
	)

	emake "${MAKEARGS[@]}"
	python_fix_shebang eselect-repo-helper
}

src_install() {
	emake "${MAKEARGS[@]}" DESTDIR="${D}" install
	keepdir /var/db/repos
	einstalldocs
### add a nice friendlier symlink alias repo.eselect 
# /usr/share/eselect/modules # ln -s repository.eselect repo.eselect
dosym /usr/share/eselect/modules/repository.eselect /usr/share/eselect/modules/repo.eselect
}
Comment 2 Ulrich Müller gentoo-dev 2019-01-17 07:35:10 UTC
That would make repository.eselect be listed twice with "eselect modules list".

Maybe use bash completion instead?