diff options
author | Fabio Erculiani <lxnay@gentoo.org> | 2011-07-19 12:21:35 +0000 |
---|---|---|
committer | Fabio Erculiani <lxnay@gentoo.org> | 2011-07-19 12:21:35 +0000 |
commit | 92df7ac7bd793a0b8b48f078b20db98b8d519d3c (patch) | |
tree | e675ab68ac77df95d3968d0ed2d99fe940df5794 | |
parent | [bump] dev-perl/Moose-2.20.0 (diff) | |
download | gentoo-2-92df7ac7bd793a0b8b48f078b20db98b8d519d3c.tar.gz gentoo-2-92df7ac7bd793a0b8b48f078b20db98b8d519d3c.tar.bz2 gentoo-2-92df7ac7bd793a0b8b48f078b20db98b8d519d3c.zip |
new ebuild
(Portage version: 2.2.0_alpha37/cvs/Linux x86_64)
-rw-r--r-- | sys-apps/entropy/ChangeLog | 10 | ||||
-rw-r--r-- | sys-apps/entropy/entropy-1.0_rc27.ebuild | 82 | ||||
-rw-r--r-- | sys-apps/entropy/metadata.xml | 12 |
3 files changed, 104 insertions, 0 deletions
diff --git a/sys-apps/entropy/ChangeLog b/sys-apps/entropy/ChangeLog new file mode 100644 index 000000000000..c297c9b7b151 --- /dev/null +++ b/sys-apps/entropy/ChangeLog @@ -0,0 +1,10 @@ +# 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.1 2011/07/19 12:21:35 lxnay Exp $ + +*entropy-1.0_rc27 (19 Jul 2011) + + 19 Jul 2011; Fabio Erculiani <lxnay@gentoo.org> +entropy-1.0_rc27.ebuild, + +metadata.xml: + new ebuild + diff --git a/sys-apps/entropy/entropy-1.0_rc27.ebuild b/sys-apps/entropy/entropy-1.0_rc27.ebuild new file mode 100644 index 000000000000..6156c19b5a67 --- /dev/null +++ b/sys-apps/entropy/entropy-1.0_rc27.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_rc27.ebuild,v 1.1 2011/07/19 12:21:35 lxnay Exp $ + +EAPI="3" +PYTHON_DEPEND="2" +inherit eutils python multilib + +DESCRIPTION="Official Sabayon Linux Package Manager 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" +} diff --git a/sys-apps/entropy/metadata.xml b/sys-apps/entropy/metadata.xml new file mode 100644 index 000000000000..32dc8aeaad49 --- /dev/null +++ b/sys-apps/entropy/metadata.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>no-herd</herd> + <maintainer> + <email>lxnay@gentoo.org</email> + <name>Fabio Erculiani</name> + </maintainer> + <use> + </use> +</pkgmetadata> + |