summaryrefslogtreecommitdiff
path: root/sys-apps
diff options
context:
space:
mode:
Diffstat (limited to 'sys-apps')
-rw-r--r--sys-apps/portage/Manifest6
-rw-r--r--sys-apps/portage/files/05portage.envd1
-rw-r--r--sys-apps/portage/files/digest-portage-2.1_pre3-r11
-rw-r--r--sys-apps/portage/files/digest-portage-2.1_pre3-r21
-rw-r--r--sys-apps/portage/files/portage-2.1_pre3-distdir.patch14
-rw-r--r--sys-apps/portage/files/xterm-titles.patch24
-rw-r--r--sys-apps/portage/portage-2.1_pre3-r2.ebuild150
7 files changed, 197 insertions, 0 deletions
diff --git a/sys-apps/portage/Manifest b/sys-apps/portage/Manifest
new file mode 100644
index 00000000..24871f23
--- /dev/null
+++ b/sys-apps/portage/Manifest
@@ -0,0 +1,6 @@
+MD5 d5d5b818347fd87b290ecb0b17516b34 files/05portage.envd 34
+MD5 27384bf8f13f5f4f633f79c735c98dba files/digest-portage-2.1_pre3-r1 69
+MD5 27384bf8f13f5f4f633f79c735c98dba files/digest-portage-2.1_pre3-r2 69
+MD5 1524065828d71747d1a6159a6690be1d files/portage-2.1_pre3-distdir.patch 757
+MD5 9e669b11a86a57aa8d2a452531085bb6 files/xterm-titles.patch 1115
+MD5 cf5cef659f39315a2b7002f97185d380 portage-2.1_pre3-r2.ebuild 4511
diff --git a/sys-apps/portage/files/05portage.envd b/sys-apps/portage/files/05portage.envd
new file mode 100644
index 00000000..e55d2d8f
--- /dev/null
+++ b/sys-apps/portage/files/05portage.envd
@@ -0,0 +1 @@
+PYTHONPATH="/usr/lib/portage/pym"
diff --git a/sys-apps/portage/files/digest-portage-2.1_pre3-r1 b/sys-apps/portage/files/digest-portage-2.1_pre3-r1
new file mode 100644
index 00000000..3ba10b0e
--- /dev/null
+++ b/sys-apps/portage/files/digest-portage-2.1_pre3-r1
@@ -0,0 +1 @@
+MD5 e64ac58e6e6a71f60eac3fc547379032 portage-2.1_pre3.tar.bz2 248017
diff --git a/sys-apps/portage/files/digest-portage-2.1_pre3-r2 b/sys-apps/portage/files/digest-portage-2.1_pre3-r2
new file mode 100644
index 00000000..3ba10b0e
--- /dev/null
+++ b/sys-apps/portage/files/digest-portage-2.1_pre3-r2
@@ -0,0 +1 @@
+MD5 e64ac58e6e6a71f60eac3fc547379032 portage-2.1_pre3.tar.bz2 248017
diff --git a/sys-apps/portage/files/portage-2.1_pre3-distdir.patch b/sys-apps/portage/files/portage-2.1_pre3-distdir.patch
new file mode 100644
index 00000000..9c0e9192
--- /dev/null
+++ b/sys-apps/portage/files/portage-2.1_pre3-distdir.patch
@@ -0,0 +1,14 @@
+Index: portage.py
+===================================================================
+--- pym/portage.py (revision 2542)
++++ pym/portage.py (revision 2543)
+@@ -2809,7 +2809,8 @@
+ # will be executed, either that or forced N doebuild calls instead of a single set of phase calls.
+ if (mydo not in ("setup", "clean", "postinst", "preinst", "prerm", "fetch", "digest", "manifest") and
+ "noauto" not in features) or mydo == "unpack":
+- orig_distdir = mysettings["DISTDIR"]
++ # remove PORTAGE_ACTUAL_DISTDIR once cvs/svn is supported via SRC_URI
++ mysettings["PORTAGE_ACTUAL_DISTDIR"] = orig_distdir = mysettings["DISTDIR"]
+ edpath = mysettings["DISTDIR"] = os.path.join(mysettings["PORTAGE_BUILDDIR"], "distdir")
+ if os.path.exists(edpath):
+ try:
diff --git a/sys-apps/portage/files/xterm-titles.patch b/sys-apps/portage/files/xterm-titles.patch
new file mode 100644
index 00000000..0667960f
--- /dev/null
+++ b/sys-apps/portage/files/xterm-titles.patch
@@ -0,0 +1,24 @@
+diff -uNr portage-2.1_pre3/pym/output.py portage-2.1_pre3-r1/pym/output.py
+--- portage-2.1_pre3/pym/output.py 2005-12-31 15:23:23.000000000 +0900
++++ portage-2.1_pre3-r1/pym/output.py 2006-01-01 14:44:53.000000000 +0900
+@@ -102,7 +102,7 @@
+ sys.stderr.flush()
+ break
+
+-prompt_command = os.getenv("PROMPT_COMMAND", 'echo -ne "\033]0;${USER}@${HOSTNAME%%.*}:${PWD/$HOME/~}\007"')
++prompt_command = os.getenv("PROMPT_COMMAND", 'echo -ne "${USER}@${HOSTNAME%%.*}:${PWD/$HOME/~}"')
+ default_xterm_title = commands.getoutput(prompt_command)
+ del prompt_command
+
+diff -uNr portage-2.1_pre3/pym/portage.py portage-2.1_pre3-r1/pym/portage.py
+--- portage-2.1_pre3/pym/portage.py 2005-12-31 15:24:24.000000000 +0900
++++ portage-2.1_pre3-r1/pym/portage.py 2006-01-01 14:45:01.000000000 +0900
+@@ -4,7 +4,7 @@
+ # $Id: /var/cvsroot/gentoo-src/portage/pym/portage.py,v 1.524.2.76 2005/05/29 12:40:08 jstubbs Exp $
+
+
+-VERSION="2.1_pre3"
++VERSION="2.1_pre3-r1"
+
+ # ===========================================================================
+ # START OF IMPORTS -- START OF IMPORTS -- START OF IMPORTS -- START OF IMPORT
diff --git a/sys-apps/portage/portage-2.1_pre3-r2.ebuild b/sys-apps/portage/portage-2.1_pre3-r2.ebuild
new file mode 100644
index 00000000..523d2fc5
--- /dev/null
+++ b/sys-apps/portage/portage-2.1_pre3-r2.ebuild
@@ -0,0 +1,150 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/portage/portage-2.1_pre3-r1.ebuild,v 1.1 2006/01/01 05:55:29 jstubbs Exp $
+
+inherit toolchain-funcs eutils
+
+DESCRIPTION="The Portage Package Management System. The primary package management and distribution system for Gentoo."
+HOMEPAGE="http://www.gentoo.org/"
+SRC_URI="mirror://gentoo/${PN}-${PV}.tar.bz2 http://dev.gentoo.org/~jstubbs/releases/${PN}-${PV}.tar.bz2"
+LICENSE="GPL-2"
+
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc-macos ~ppc64 ~s390 ~sh ~sparc ~x86"
+
+SLOT="0"
+IUSE="build doc selinux"
+DEPEND=">=dev-lang/python-2.3"
+RDEPEND="!build? ( >=sys-apps/sed-4.0.5 dev-python/python-fchksum >=dev-lang/python-2.3 userland_GNU? ( sys-apps/debianutils ) >=app-shells/bash-2.05a ) !userland_Darwin? ( app-misc/pax-utils sys-apps/sandbox ) selinux? ( >=dev-python/python-selinux-2.15 )"
+PDEPEND="doc? ( app-portage/portage-manpages )"
+PROVIDE="virtual/portage"
+
+S=${WORKDIR}/${PN}-${PV}
+
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+ patch -p1 < ${FILESDIR}/xterm-titles.patch
+ epatch ${FILESDIR}/portage-2.1_pre3-distdir.patch
+}
+
+src_compile() {
+ python -O -c "import compileall; compileall.compile_dir('${S}/pym')"
+
+ cd "${S}"/src
+ $(tc-getCC) ${CFLAGS} -o tbz2tool tbz2tool.c
+
+ if ! use userland_Darwin; then
+ cd "${S}"/src/python-missingos
+ chmod +x setup.py
+ ./setup.py build || die "Failed to build missingos module"
+ fi
+
+ if use elibc_FreeBSD; then
+ cd "${S}"/src/bsd-flags
+ chmod +x setup.py
+ ./setup.py build || die "Failed to install bsd-chflags module"
+ fi
+}
+
+src_install() {
+ cd "${S}"/cnf
+ insinto /etc
+ doins etc-update.conf dispatch-conf.conf make.globals
+ if [ -f "make.conf.${ARCH}" ]; then
+ newins make.conf.${ARCH} 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 ""
+ newins make.conf make.conf.example
+ fi
+
+ if ! use userland_Darwin; then
+ cd "${S}"/src/python-missingos
+ ./setup.py install --root ${D} || die "Failed to install missingos module"
+ fi
+
+ if use elibc_FreeBSD; then
+ cd "${S}"/src/bsd-flags
+ ./setup.py install --root ${D} || die "Failed to install bsd-chflags module"
+ fi
+
+ dodir /usr/lib/portage/bin
+ exeinto /usr/lib/portage/bin
+ cd "${S}"/bin
+ doexe *
+ doexe "${S}"/src/tbz2tool
+ dosym newins /usr/lib/portage/bin/donewins
+
+ dodir /usr/lib/portage/pym
+ insinto /usr/lib/portage/pym
+ cd "${S}"/pym
+ doins *
+
+ dodir /usr/lib/portage/pym/cache
+ insinto /usr/lib/portage/pym/cache
+ cd "${S}"/pym/cache
+ doins *
+
+ dodir /usr/lib/portage/pym/elog_modules
+ insinto /usr/lib/portage/pym/elog_modules
+ cd "${S}"/pym/elog_modules
+ doins *
+
+ doman "${S}"/man/*.[0-9]
+ dodoc "${S}"/ChangeLog
+
+ dodir /usr/bin
+ for x in ebuild emerge portageq repoman tbz2tool xpak; do
+ dosym ../lib/portage/bin/${x} /usr/bin/${x}
+ done
+
+ dodir /usr/sbin
+ for x in archive-conf dispatch-conf emaint emerge-webrsync env-update etc-update fixpackages quickpkg regenworld; do
+ dosym ../lib/portage/bin/${x} /usr/sbin/${x}
+ done
+
+ dodir /etc/portage
+ keepdir /etc/portage
+
+ doenvd ${FILESDIR}/05portage.envd
+}
+
+pkg_preinst() {
+ if has livecvsportage ${FEATURES} && [ "${ROOT}" = "/" ]; then
+ rm -rf ${IMAGE}/usr/lib/portage/pym/*
+ mv ${IMAGE}/usr/lib/portage/bin/tbz2tool ${T}
+ rm -rf ${IMAGE}/usr/lib/portage/bin/*
+ mv ${T}/tbz2tool ${IMAGE}/usr/lib/portage/bin/
+ else
+ rm /usr/lib/portage/pym/*.pyc >& /dev/null
+ rm /usr/lib/portage/pym/*.pyo >& /dev/null
+ fi
+}
+
+pkg_postinst() {
+ local x
+
+ if [ ! -f "${ROOT}/var/lib/portage/world" ] &&
+ [ -f ${ROOT}/var/cache/edb/world ] &&
+ [ ! -h ${ROOT}/var/cache/edb/world ]; then
+ mv ${ROOT}/var/cache/edb/world ${ROOT}/var/lib/portage/world
+ ln -s ../../lib/portage/world /var/cache/edb/world
+ fi
+
+ for x in ${ROOT}etc/._cfg????_make.globals; do
+ # Overwrite the globals file automatically.
+ [ -e "${x}" ] && mv -f "${x}" "${ROOT}etc/make.globals"
+ done
+
+ ewarn "This series contains a completely rewritten caching framework."
+ ewarn "If you are using any cache modules (such as the CDB cache"
+ ewarn "module) portage will not work until they have been disabled."
+ ewarn "For reference, they are configured at /etc/portage/modules."
+ echo
+ einfo "The default cache format has changed beginning with this"
+ einfo "version. Before using emerge, run \`emerge --metadata\` to"
+ einfo "restore portage's local cache."
+}