diff options
author | Alexander Sulfrian <alexander@sulfrian.net> | 2012-11-08 23:57:26 +0100 |
---|---|---|
committer | Alexander Sulfrian <alexander@sulfrian.net> | 2012-11-09 00:09:40 +0100 |
commit | c14cc32b3fae8c2674497d16d190e0be7d378659 (patch) | |
tree | ee65ef8271f4e9793e34197f70f7277371d75bc2 /app-backup/obnam/obnam-1.2-r1.ebuild | |
parent | cb646851030bf217d0090a0d025505cc2659de61 (diff) | |
download | overlay-c14cc32b3fae8c2674497d16d190e0be7d378659.tar.gz overlay-c14cc32b3fae8c2674497d16d190e0be7d378659.tar.xz overlay-c14cc32b3fae8c2674497d16d190e0be7d378659.zip |
app-backup/obnam: port package to python-r1, distutils-r1
Diffstat (limited to '')
-rw-r--r-- | app-backup/obnam/obnam-1.2-r1.ebuild | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/app-backup/obnam/obnam-1.2-r1.ebuild b/app-backup/obnam/obnam-1.2-r1.ebuild new file mode 100644 index 0000000..3ddbb55 --- /dev/null +++ b/app-backup/obnam/obnam-1.2-r1.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-backup/obnam/obnam-1.2-r1.ebuild,v 1.2 2012/10/11 08:25:40 mschiff Exp $ + +EAPI=4 + +PYTHON_COMPAT=( python2_6 python2_7 ) +PYTHON_MODNAME="${PN}lib" +MY_P="${PN}_${PV}.orig" + +inherit eutils distutils-r1 python-r1 + +DESCRIPTION="A backup program that supports encryption and deduplication" +HOMEPAGE="http://liw.fi/obnam/" +SRC_URI="http://code.liw.fi/debian/pool/main/o/${PN}/${MY_P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="benchmark-utils" + +DEPEND="${PYTHON_DEPS} + >=dev-python/cliapp-1.20120630 + dev-python/larch + dev-python/paramiko + dev-python/tracing + >=dev-python/ttystatus-0.19 + " +RDEPEND="${DEPEND}" + +PATCHES=( "${FILESDIR}/${P}_diff_fix.patch" + "${FILESDIR}/${P}_man_diff_fix.patch" ) + +src_install() { + distutils-r1_src_install + + if ! use benchmark-utils ; then + rm "${D}"/usr/bin/obnam-{benchmark,viewprof}-* + rm "${D}"/usr/bin/obnam-{benchmark,viewprof} + rm "${D}"/usr/share/man/man1/obnam-benchmark* + fi + + insinto /etc + doins "${FILESDIR}"/obnam.conf + keepdir /var/log/obnam +} + +pkg_postinst() { + if [[ $REPLACING_VERSIONS < "1.2" ]]; then + elog "You will need to setup a config file before running obnam for the first time." + elog "For details, please see the obnam(1) manual page." + elog "An example file has been installed as /etc/obnam.conf for your convenience." + fi +} |