diff options
author | Michał Górny <mgorny@gentoo.org> | 2018-10-06 17:18:48 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2018-10-06 17:31:14 +0200 |
commit | 647f9619140831b8d69d39f8631182bfc8ea0b12 (patch) | |
tree | 041af92403c1addb667f9dc185300ae33535c13c /sys-apps | |
parent | dev-python/pygit2: Drop old (diff) | |
download | gentoo-647f9619140831b8d69d39f8631182bfc8ea0b12.tar.gz gentoo-647f9619140831b8d69d39f8631182bfc8ea0b12.tar.bz2 gentoo-647f9619140831b8d69d39f8631182bfc8ea0b12.zip |
sys-apps/portage-mgorny: Drop old
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'sys-apps')
-rw-r--r-- | sys-apps/portage-mgorny/Manifest | 1 | ||||
-rw-r--r-- | sys-apps/portage-mgorny/portage-mgorny-2.3.43.3.ebuild | 198 |
2 files changed, 0 insertions, 199 deletions
diff --git a/sys-apps/portage-mgorny/Manifest b/sys-apps/portage-mgorny/Manifest index 6585b06b82ff..dc24dfbfa488 100644 --- a/sys-apps/portage-mgorny/Manifest +++ b/sys-apps/portage-mgorny/Manifest @@ -1,2 +1 @@ -DIST portage-mgorny-2.3.43.3.tar.gz 1254313 BLAKE2B afb5101537bfff9b05622f4357757215bbe9641f2ca058baa59316b72ad3280ca7905f75e10b3270627c0b703434691bbfbbd88c6e375ba3f405d69d983b1944 SHA512 4fe3d1a8809a91fb52a9ccccac7d66cd25e8b6ff23b0ab2b4fae5f26a2036296a1c4eba78fee819003a8a8c44a5c6fcb0f04b9eded220d124bf08019a4f2fb02 DIST portage-mgorny-2.3.49.1.tar.gz 1255740 BLAKE2B a64b3d1a96d7ec808168830fee03e40dd4070745f8670ec50e3d286173178bd3af8e6f823e2f732f374b59f3b88b4f44033eb6dcc21633edd25a9c8d563d04d7 SHA512 bfdf4aad186635770b05178e3c552fdca42a20790d4db17c7a204af27117b540545ba19f253924ac6ce18dd5036fe9a0503630a522303739f536b6e3b5178319 diff --git a/sys-apps/portage-mgorny/portage-mgorny-2.3.43.3.ebuild b/sys-apps/portage-mgorny/portage-mgorny-2.3.43.3.ebuild deleted file mode 100644 index 36bbee3032b0..000000000000 --- a/sys-apps/portage-mgorny/portage-mgorny-2.3.43.3.ebuild +++ /dev/null @@ -1,198 +0,0 @@ -# Copyright 1999-2018 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 - -PYTHON_COMPAT=( python{2_7,3_{4,5,6,7}} pypy ) -PYTHON_REQ_USE='bzip2(+),threads(+)' - -inherit distutils-r1 - -DESCRIPTION="Fork of Portage focused on cleaning up and useful features" -HOMEPAGE="https://github.com/mgorny/portage-mgorny" -SRC_URI="https://github.com/mgorny/portage-mgorny/archive/v${PV}.tar.gz -> ${P}.tar.gz" - -LICENSE="GPL-2" -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd" -SLOT="0" -IUSE="build +ipc +native-extensions selinux xattr kernel_linux" - -DEPEND="!build? ( $(python_gen_impl_dep 'ssl(+)') ) - >=app-arch/tar-1.27 - >=sys-apps/sed-4.0.5 - sys-devel/patch" -RDEPEND=" - >=app-arch/tar-1.27 - !build? ( - >=app-admin/eselect-1.2 - app-crypt/openpgp-keys-gentoo-release - >=app-crypt/gnupg-2.2.4-r2[ssl(-)] - >=app-portage/gemato-10[${PYTHON_USEDEP}] - app-shells/bash:0[readline] - $(python_gen_cond_dep 'dev-python/pyblake2[${PYTHON_USEDEP}]' \ - python{2_7,3_4,3_5} pypy) - >=dev-python/lxml-3.6.0[${PYTHON_USEDEP}] - >=sys-apps/sed-4.0.5 - ) - elibc_FreeBSD? ( sys-freebsd/freebsd-bin ) - elibc_glibc? ( >=sys-apps/sandbox-2.2 ) - elibc_musl? ( >=sys-apps/sandbox-2.2 ) - elibc_uclibc? ( >=sys-apps/sandbox-2.2 ) - >=app-misc/pax-utils-0.1.17 - selinux? ( >=sys-libs/libselinux-2.0.94[python,${PYTHON_USEDEP}] ) - xattr? ( kernel_linux? ( - >=sys-apps/install-xattr-0.3 - $(python_gen_cond_dep 'dev-python/pyxattr[${PYTHON_USEDEP}]' \ - python2_7 pypy) - ) ) - !app-portage/repoman - !sys-apps/portage" -PDEPEND=" - !build? ( - >=net-misc/rsync-2.6.4 - )" -# NOTE: FEATURES=installsources requires debugedit and rsync - -pkg_pretend() { - if [[ -f ${EROOT%/}/etc/make.conf ]]; then - eerror "You seem to be using /etc/make.conf. Please migrate to the new" - eerror "/etc/portage/make.conf location before upgrading." - if [[ ! -f ${EROOT%/}/etc/portage/make.conf ]]; then - eerror - eerror " mv ${EROOT%/}/etc/make.conf ${EROOT%/}/etc/portage/make.conf" - else - ewarn - ewarn "WARNING: You seem to have make.conf in both locations. Please take" - ewarn "care not to accientally overwrite one with the other." - fi - die "${EROOT%/}/etc/make.conf present" - fi - - if [[ -f ${EROOT%/}/etc/portage/package.keywords ]]; then - eerror "You seem to be using /etc/portage/package.keywords. Please migrate" - eerror "to the new /etc/portage/package.accept_keywords location before" - eerror "upgrading." - eerror - if [[ -d ${EROOT%/}/etc/portage/package.accept_keywords ]]; then - eerror " mv ${EROOT%/}/etc/portage/package.keywords ${EROOT%/}/etc/portage/package.accept_keywords/99old" - else - if [[ -f ${EROOT%/}/etc/portage/package.accept_keywords ]]; then - eerror " cat ${EROOT%/}/etc/portage/package.accept_keywords >> ${EROOT%/}/etc/portage/package.keywords" - fi - eerror " mv ${EROOT%/}/etc/portage/package.keywords ${EROOT%/}/etc/portage/package.accept_keywords" - fi - die "${EROOT%/}/etc/portage/package.keywords present" - fi - - if has_version sys-apps/portage; then - ewarn "If you are migrating from sys-apps/portage to sys-apps/portage-mgorny," - ewarn "please note that Portage will abort upon having to unmerge itself." - ewarn "However, sys-apps/portage-mgorny will already be installed at this" - ewarn "point, so you simply have to restart emerge and it will successfully" - ewarn "clean the old package afterwards." - ewarn - ewarn "If you did not use '--dynamic-deps n' in Portage, your VDB dependency" - ewarn "graph is probably broken. You may need to use '--changed-deps y'" - ewarn "for your first @world upgrade to resolve the conflicts. Afterwards," - ewarn "--changed-deps should no longer be necessary and any conflicts" - ewarn "introduced afterwards should be reported to bugs.gentoo.org." - fi -} - -python_prepare_all() { - distutils-r1_python_prepare_all - - if ! use ipc ; then - einfo "Disabling ipc..." - sed -e "s:_enable_ipc_daemon = True:_enable_ipc_daemon = False:" \ - -i lib/_emerge/AbstractEbuildProcess.py || - die "failed to patch AbstractEbuildProcess.py" - fi - - if use xattr && use kernel_linux ; then - einfo "Adding FEATURES=xattr to make.globals ..." - echo -e '\nFEATURES="${FEATURES} xattr"' >> cnf/make.globals \ - || die "failed to append to make.globals" - fi - - if [[ -n ${EPREFIX} ]] ; then - einfo "Setting portage.const.EPREFIX ..." - sed -e "s|^\(SANDBOX_BINARY[[:space:]]*=[[:space:]]*\"\)\(/usr/bin/sandbox\"\)|\\1${EPREFIX}\\2|" \ - -e "s|^\(FAKEROOT_BINARY[[:space:]]*=[[:space:]]*\"\)\(/usr/bin/fakeroot\"\)|\\1${EPREFIX}\\2|" \ - -e "s|^\(BASH_BINARY[[:space:]]*=[[:space:]]*\"\)\(/bin/bash\"\)|\\1${EPREFIX}\\2|" \ - -e "s|^\(MOVE_BINARY[[:space:]]*=[[:space:]]*\"\)\(/bin/mv\"\)|\\1${EPREFIX}\\2|" \ - -e "s|^\(PRELINK_BINARY[[:space:]]*=[[:space:]]*\"\)\(/usr/sbin/prelink\"\)|\\1${EPREFIX}\\2|" \ - -e "s|^\(EPREFIX[[:space:]]*=[[:space:]]*\"\).*|\\1${EPREFIX}\"|" \ - -i lib/portage/const.py || - die "Failed to patch portage.const.EPREFIX" - - einfo "Prefixing shebangs ..." - while read -r -d $'\0' ; do - local shebang=$(head -n1 "${REPLY}") - if [[ ${shebang} == "#!"* && ! ${shebang} == "#!${EPREFIX}/"* ]] ; then - sed -i -e "1s:.*:#!${EPREFIX}${shebang:2}:" "${REPLY}" || - die "sed failed" - fi - done < <(find . -type f -print0) - - einfo "Adjusting make.globals ..." - sed -e "s|\(/usr/portage\)|${EPREFIX}\\1|" \ - -e "s|^\(PORTAGE_TMPDIR=\"\)\(/var/tmp\"\)|\\1${EPREFIX}\\2|" \ - -i cnf/make.globals || die "sed failed" - - einfo "Adjusting repos.conf ..." - sed -e "s|^\(location = \)\(/usr/portage\)|\\1${EPREFIX}\\2|" \ - -e "s|^\(sync-openpgp-key-path = \)\(.*\)|\\1${EPREFIX}\\2|" \ - -i cnf/repos.conf || die "sed failed" - if prefix-guest ; then - sed -e "s|^\(main-repo = \).*|\\1gentoo_prefix|" \ - -e "s|^\\[gentoo\\]|[gentoo_prefix]|" \ - -e "s|^\(sync-uri = \).*|\\1rsync://rsync.prefix.bitzolder.nl/gentoo-portage-prefix|" \ - -i cnf/repos.conf || die "sed failed" - fi - - einfo "Adding FEATURES=force-prefix to make.globals ..." - echo -e '\nFEATURES="${FEATURES} force-prefix"' >> cnf/make.globals \ - || die "failed to append to make.globals" - fi - - cd "${S}/cnf" || die - if [[ -f make.conf.example.${ARCH}.diff ]]; then - patch make.conf.example "make.conf.example.${ARCH}.diff" || - die "Failed to patch make.conf.example" - else - eerror "" - eerror "Portage does not have an arch-specific configuration for this arch." - eerror "Please notify the arch maintainer about this issue. Using generic." - eerror "" - fi -} - -python_configure_all() { - cat >> setup.cfg <<-EOF || die - [build_ext] - portage-ext-modules=$(usex native-extensions true false) - EOF -} - -python_test() { - esetup.py test -} - -python_install() { - distutils-r1_python_install \ - --system-prefix="${EPREFIX}/usr" \ - --bindir="$(python_get_scriptdir)" \ - --portage-bindir="${EPREFIX}/usr/lib/portage/${EPYTHON}" \ - --sysconfdir="${EPREFIX}/etc" \ - "${@}" - - keepdir /var/log/portage/elog -} - -pkg_preinst() { - # This is allowed to fail if the user/group are invalid for prefix users. - if chown portage:portage "${ED%/}"/var/log/portage{,/elog} 2>/dev/null ; then - chmod g+s,ug+rwx "${ED%/}"/var/log/portage{,/elog} - fi -} |