1 # Copyright 1999-2017 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 PYTHON_COMPAT=( python2_7 python3_{4,5,6} )
7 PYTHON_REQ_USE='bzip2(+)'
11 if [[ ${PV} == 9999 ]]; then
13 EGIT_REPO_URI="https://anongit.gentoo.org/git/proj/portage.git"
14 S="${WORKDIR}/${P}/repoman"
16 SRC_URI="https://dev.gentoo.org/~dolsen/releases/${PN}/${P}.tar.bz2"
17 KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~x64-cygwin ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
20 DESCRIPTION="Repoman is a Quality Assurance tool for Gentoo ebuilds"
21 HOMEPAGE="https://wiki.gentoo.org/wiki/Project:Portage"
28 >=sys-apps/portage-2.3.0_rc[${PYTHON_USEDEP}]
29 >=dev-python/lxml-3.6.0[${PYTHON_USEDEP}]
33 python_prepare_all() {
34 distutils-r1_python_prepare_all
36 if [[ -n "${EPREFIX}" ]] ; then
37 einfo "Prefixing shebangs ..."
40 while read -r -d $'\0' file; do
41 local shebang=$(head -n1 "${file}")
43 if [[ ${shebang} == "#!"* && ! ${shebang} == "#!${EPREFIX}/"* ]] ; then
44 sed -i -e "1s:.*:#!${EPREFIX}${shebang:2}:" "${file}" || \
47 done < <(find . -type f -print0)
56 # Install sbin scripts to bindir for python-exec linking
57 # they will be relocated in pkg_preinst()
58 distutils-r1_python_install \
59 --system-prefix="${EPREFIX}/usr" \
60 --bindir="$(python_get_scriptdir)" \
61 --docdir="${EPREFIX}/usr/share/doc/${PF}" \
62 --htmldir="${EPREFIX}/usr/share/doc/${PF}/html" \
63 --sbindir="$(python_get_scriptdir)" \
64 --sysconfdir="${EPREFIX}/etc" \
70 einfo "This release of repoman is from the new portage/repoman split"
71 einfo "release code base."
72 einfo "This new repoman code base is still being developed. So its API's"
73 einfo "are not to be considered stable and are subject to change."
74 einfo "The code released has been tested and considered ready for use."
75 einfo "This however does not guarantee it to be completely bug free."
76 einfo "Please report any bugs you may encounter."