diff options
author | Jim Ramsay <lack@gentoo.org> | 2007-06-07 19:35:32 +0000 |
---|---|---|
committer | Jim Ramsay <lack@gentoo.org> | 2007-06-07 19:35:32 +0000 |
commit | 93c5d62ddcc86bae5b84cc38a1c5bfa08b56a2c0 (patch) | |
tree | 27e68f9bf9ee83d149af5eac68b7bbf7b28ac936 /rox-base/zeroinstall-injector/zeroinstall-injector-0.27.ebuild | |
download | rox-93c5d62ddcc86bae5b84cc38a1c5bfa08b56a2c0.tar.gz rox-93c5d62ddcc86bae5b84cc38a1c5bfa08b56a2c0.tar.bz2 rox-93c5d62ddcc86bae5b84cc38a1c5bfa08b56a2c0.zip |
Commiting initial overlay: multilib changes and preliminary zeroinstall support
svn path=/trunk/overlay/; revision=2
Diffstat (limited to 'rox-base/zeroinstall-injector/zeroinstall-injector-0.27.ebuild')
-rw-r--r-- | rox-base/zeroinstall-injector/zeroinstall-injector-0.27.ebuild | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/rox-base/zeroinstall-injector/zeroinstall-injector-0.27.ebuild b/rox-base/zeroinstall-injector/zeroinstall-injector-0.27.ebuild new file mode 100644 index 0000000..1018641 --- /dev/null +++ b/rox-base/zeroinstall-injector/zeroinstall-injector-0.27.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +inherit distutils + +DESCRIPTION="Zeroinstall Injector allows regular users to install software themselves" +HOMEPAGE="http://0install.net/" +SRC_URI="mirror://sourceforge/zero-install/${P}.tar.gz.gpg" + +LICENSE="" +SLOT="0" +KEYWORDS="" +IUSE="" + +DEPEND="app-crypt/gnupg" +RDEPEND=">=dev-python/pygtk-2.0 + ${DEPEND}" + +# If we decide to do RESTRICT="fetch" instead of trying gpg +#pkg_nofetch() { +# einfo "Zeroinstall is distributed only in gpg-signed tarballs, which ebuilds" +# einfo "cannot currently handle. You must:" +# einfo " 1. Download the file ${P}.tar.gz.gpg from" +# einfo " http://downloads.sourceforge.net/zero-install/zeroinstall-injector-0.27.tar.gz.gpg" +# einfo " 2. Verify the signature:" +# einfo " gpg ${P}.tar.gz.gpg" +# einfo " It has the fingerprint 9242 9807 C985 3C07 44A6 8B9A AE07 8280 59A5 3CC1" +# einfo " 3. Put the resulting ${P}.tar.gz in ${DISTDIR}." +#} + +src_unpack() { + local GPGSRC=${P}.tar.gz.gpg + local GPGHOME="${WORKDIR}/.gnupg" + local TARSRC=${P}.tar.gz + + # Un-gpg-sign the downloaded archive + cp "${DISTDIR}/${GPGSRC}" "${WORKDIR}" + cp -r "${FILESDIR}/gpgInfo" "${GPGHOME}" + chmod 700 "${GPGHOME}" + cd "${WORKDIR}" + gpg -q --homedir "${GPGHOME}" ${GPGSRC} || die "GPG validation failed" + [ -e ${TARSRC} ] || die "GPG unwrap failed" + + # Unpack the unsigned archive + tar -xzf ${TARSRC} || die "Tar unpack failed" + + # Patches + cd "${S}" + epatch "${FILESDIR}/${P}-local_feed.patch" +} + +src_install() { + distutils_src_install + + exeinto "/usr/bin/" + doexe "${FILESDIR}/0distutils" + + local BASE_XDG_CONFIG="/etc/xdg/0install.net" + + insinto "${BASE_XDG_CONFIG}/injector" + newins "${FILESDIR}/global-${PV}" global + dodir "${BASE_XDG_CONFIG}/local_feeds" +} + |