summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarien Zwart <marienz@gentoo.org>2006-10-12 13:19:54 +0000
committerMarien Zwart <marienz@gentoo.org>2006-10-12 13:19:54 +0000
commit6fbd1ccc247ddc278558052a6e747695e59db913 (patch)
treea733a9848b5a31aca50c365f1df8c7a5e174ac2a /sys-apps
parentRemove old version. (diff)
downloadgentoo-2-6fbd1ccc247ddc278558052a6e747695e59db913.tar.gz
gentoo-2-6fbd1ccc247ddc278558052a6e747695e59db913.tar.bz2
gentoo-2-6fbd1ccc247ddc278558052a6e747695e59db913.zip
Remove old version, revbump that properly calls distutils_pkg_preinst.
(Portage version: 2.1.2_pre2-r8)
Diffstat (limited to 'sys-apps')
-rw-r--r--sys-apps/pkgcore/ChangeLog8
-rw-r--r--sys-apps/pkgcore/files/digest-pkgcore-0.1.2-r13
-rw-r--r--sys-apps/pkgcore/pkgcore-0.1.2-r1.ebuild69
3 files changed, 79 insertions, 1 deletions
diff --git a/sys-apps/pkgcore/ChangeLog b/sys-apps/pkgcore/ChangeLog
index 835d4b7213b8..9e7c0a907e92 100644
--- a/sys-apps/pkgcore/ChangeLog
+++ b/sys-apps/pkgcore/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for sys-apps/pkgcore
# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/pkgcore/ChangeLog,v 1.7 2006/10/10 03:14:06 marienz Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/pkgcore/ChangeLog,v 1.8 2006/10/12 13:19:54 marienz Exp $
+
+*pkgcore-0.1.2-r1 (12 Oct 2006)
+
+ 12 Oct 2006; Marien Zwart <marienz@gentoo.org> -pkgcore-0.1.ebuild,
+ -pkgcore-0.1-r1.ebuild, -pkgcore-0.1.1.ebuild, +pkgcore-0.1.2-r1.ebuild:
+ Remove old version, revbump that properly calls distutils_pkg_preinst.
*pkgcore-0.1.2 (10 Oct 2006)
diff --git a/sys-apps/pkgcore/files/digest-pkgcore-0.1.2-r1 b/sys-apps/pkgcore/files/digest-pkgcore-0.1.2-r1
new file mode 100644
index 000000000000..86b00ca8648f
--- /dev/null
+++ b/sys-apps/pkgcore/files/digest-pkgcore-0.1.2-r1
@@ -0,0 +1,3 @@
+MD5 567273cd859622e1b0e71069dcca49a9 pkgcore-0.1.2.tar.bz2 389039
+RMD160 fb3ca047e704187c7ac56215422bdd2400e6b8a5 pkgcore-0.1.2.tar.bz2 389039
+SHA256 7b189ccac4eb7417d36b84b10ab25f2c4865ae629ef773498bd6b18194c38293 pkgcore-0.1.2.tar.bz2 389039
diff --git a/sys-apps/pkgcore/pkgcore-0.1.2-r1.ebuild b/sys-apps/pkgcore/pkgcore-0.1.2-r1.ebuild
new file mode 100644
index 000000000000..07f5ac0beb84
--- /dev/null
+++ b/sys-apps/pkgcore/pkgcore-0.1.2-r1.ebuild
@@ -0,0 +1,69 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/pkgcore/pkgcore-0.1.2-r1.ebuild,v 1.1 2006/10/12 13:19:54 marienz Exp $
+
+inherit distutils toolchain-funcs
+
+DESCRIPTION="pkgcore package manager"
+HOMEPAGE="http://dev.gentooexperimental.org/pkgcore-trac/"
+SRC_URI="http://dev.gentooexperimental.org/~${PN}/releases/${PN}/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~hppa ~sparc ~x86"
+IUSE="doc"
+
+DEPEND=">=dev-lang/python-2.4"
+RDEPEND=">=dev-lang/python-2.4
+ || ( >=dev-lang/python-2.5 dev-python/pycrypto )
+ >=app-shells/bash-3.0
+ doc? ( >=dev-python/docutils-0.4 )"
+
+
+src_compile() {
+ # The CC export is used by the filter-env build
+ CC=$(tc-getCC) distutils_src_compile
+
+ if use doc; then
+ ./build_docs.py || die "doc building failed"
+ fi
+}
+
+src_install() {
+ distutils_src_install
+
+ # This wrapper is not useful when called directly.
+ rm "${D}/usr/bin/pwrapper"
+
+ if use doc; then
+ dohtml -r doc dev-notes
+ fi
+
+ dodoc doc/*.rst
+ docinto dev-notes
+ dodoc dev-notes/*.rst
+}
+
+pkg_postinst() {
+ distutils_pkg_postinst
+
+ einfo "Registering plugins..."
+ register_plugin.py -s fs_ops copyfile 1 pkgcore.fs.ops.default_copyfile
+ register_plugin.py -s fs_ops ensure_perms 1 \
+ pkgcore.fs.ops.default_ensure_perms
+ register_plugin.py -s fs_ops mkdir 1 pkgcore.fs.ops.default_mkdir
+ register_plugin.py -s fs_ops merge_contents 1 \
+ pkgcore.fs.ops.merge_contents
+ register_plugin.py -s fs_ops unmerge_contents 1 \
+ pkgcore.fs.ops.unmerge_contents
+ register_plugin.py -s format ebuild_built 0.0 \
+ pkgcore.ebuild.ebuild_built.generate_new_factory
+ register_plugin.py -s format ebuild_src 0.0 \
+ pkgcore.ebuild.ebuild_src.generate_new_factory
+}
+
+src_test() {
+ "${python}" setup.py build_ext --force --inplace || \
+ die "failed building extensions in src dir for testing"
+ "${python}" ./sandbox/test.py || die "tested returned non zero"
+}