diff options
author | Fabio Erculiani <lxnay@gentoo.org> | 2011-08-07 16:48:07 +0000 |
---|---|---|
committer | Fabio Erculiani <lxnay@gentoo.org> | 2011-08-07 16:48:07 +0000 |
commit | 2367a41a6da1d46a1d59dd669c0e48b27fcbf39f (patch) | |
tree | 81cc7739af7f39425f90aa27aa4c0aa59bfc98d6 /sys-apps/entropy | |
parent | alpha/ia64/s390/sh/sparc stable wrt #374119 (diff) | |
download | historical-2367a41a6da1d46a1d59dd669c0e48b27fcbf39f.tar.gz historical-2367a41a6da1d46a1d59dd669c0e48b27fcbf39f.tar.bz2 historical-2367a41a6da1d46a1d59dd669c0e48b27fcbf39f.zip |
version bump
Package-Manager: portage-2.2.0_alpha37/cvs/Linux x86_64
Diffstat (limited to 'sys-apps/entropy')
-rw-r--r-- | sys-apps/entropy/ChangeLog | 7 | ||||
-rw-r--r-- | sys-apps/entropy/entropy-1.0_rc34.ebuild | 82 |
2 files changed, 88 insertions, 1 deletions
diff --git a/sys-apps/entropy/ChangeLog b/sys-apps/entropy/ChangeLog index 4f92946f6a34..841a99d67276 100644 --- a/sys-apps/entropy/ChangeLog +++ b/sys-apps/entropy/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for sys-apps/entropy # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/entropy/ChangeLog,v 1.3 2011/08/02 16:54:14 lxnay Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-apps/entropy/ChangeLog,v 1.4 2011/08/07 16:44:17 lxnay Exp $ + +*entropy-1.0_rc34 (07 Aug 2011) + + 07 Aug 2011; Fabio Erculiani <lxnay@gentoo.org> +entropy-1.0_rc34.ebuild: + version bump *entropy-1.0_rc29 (02 Aug 2011) diff --git a/sys-apps/entropy/entropy-1.0_rc34.ebuild b/sys-apps/entropy/entropy-1.0_rc34.ebuild new file mode 100644 index 000000000000..1ff8affc096e --- /dev/null +++ b/sys-apps/entropy/entropy-1.0_rc34.ebuild @@ -0,0 +1,82 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/entropy/entropy-1.0_rc34.ebuild,v 1.1 2011/08/07 16:44:17 lxnay Exp $ + +EAPI="3" +PYTHON_DEPEND="2" +inherit eutils python multilib + +DESCRIPTION="Entropy Package Manager foundation library" +HOMEPAGE="http://www.sabayon.org" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +IUSE="" +SRC_URI="mirror://sabayon/${CATEGORY}/${P}.tar.bz2" + +RDEPEND="dev-db/sqlite[soundex] + net-misc/rsync + sys-apps/diffutils + sys-apps/sandbox + >=sys-apps/portage-2.1.9 + sys-devel/gettext" +DEPEND="${RDEPEND} + dev-util/intltool" + +REPO_CONFPATH="${ROOT}/etc/entropy/repositories.conf" +ENTROPY_CACHEDIR="${ROOT}/var/lib/entropy/caches" + +pkg_setup() { + # Can: + # - update repos + # - update security advisories + # - handle on-disk cache (atm) + enewgroup entropy || die "failed to create entropy group" + # Create unprivileged entropy user + enewgroup entropy-nopriv || die "failed to create entropy-nopriv group" + enewuser entropy-nopriv -1 -1 -1 entropy-nopriv || die "failed to create entropy-nopriv user" +} + +src_compile() { + # TODO: move to separate package + cd "${S}"/misc/po || die + emake || die "make failed" +} + +src_install() { + emake DESTDIR="${D}" LIBDIR="usr/$(get_libdir)" entropy-install || die "make install failed" + + # TODO: move to separate package + cd "${S}"/misc/po || die + emake DESTDIR="${D}" LIBDIR="usr/$(get_libdir)" install || die "make install failed" +} + +pkg_postinst() { + + # Copy config file over + if [ -f "${REPO_CONFPATH}.example" ] && [ ! -f "${REPO_CONFPATH}" ]; then + einfo "Copying ${REPO_CONFPATH}.example over to ${REPO_CONFPATH}" + cp "${REPO_CONFPATH}.example" "${REPO_CONFPATH}" -p + fi + if [ -d "${ENTROPY_CACHEDIR}" ]; then + einfo "Purging current Entropy cache" + rm -rf "${ENTROPY_CACHEDIR}"/* + fi + + python_mod_optimize "/usr/$(get_libdir)/entropy/libraries/entropy" + + # force python 2.x + eselect python update --ignore 3.0 --ignore 3.1 --ignore 3.2 --ignore 3.3 + + echo + elog "If you want to enable Entropy packages delta download support, please" + elog "install dev-util/bsdiff." + echo + +} + +pkg_postrm() { + python_mod_cleanup "/usr/$(get_libdir)/entropy/libraries/entropy" +} |