diff options
author | Alon Bar-Lev <alonbl@gentoo.org> | 2016-06-11 14:31:38 +0300 |
---|---|---|
committer | Alon Bar-Lev <alonbl@gentoo.org> | 2016-06-11 14:34:56 +0300 |
commit | cbb2a8611966e4d40a66e8e7c775d69f63c5531b (patch) | |
tree | 97f14920c5e9fbd484528165160168a74c124e37 /app-arch/deltarpm/deltarpm-3.6.ebuild | |
parent | 0de7edd7aa69646935859e298c5530dd60721b5d (diff) | |
download | gentoo-cbb2a8611966e4d40a66e8e7c775d69f63c5531b.tar.gz gentoo-cbb2a8611966e4d40a66e8e7c775d69f63c5531b.tar.xz |
app-arch/deltarpm: version bump
Take ownership.
Add system-zlib USE flag for these who concerned of using the embedded one.
Bug: 585546
Bug: 585536
Package-Manager: portage-2.2.28
Diffstat (limited to 'app-arch/deltarpm/deltarpm-3.6.ebuild')
-rw-r--r-- | app-arch/deltarpm/deltarpm-3.6.ebuild | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/app-arch/deltarpm/deltarpm-3.6.ebuild b/app-arch/deltarpm/deltarpm-3.6.ebuild new file mode 100644 index 00000000000..b60b8638034 --- /dev/null +++ b/app-arch/deltarpm/deltarpm-3.6.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +PYTHON_COMPAT=( python2_7 ) + +inherit eutils toolchain-funcs python-single-r1 + +DESCRIPTION="tools to create and apply deltarpms" +HOMEPAGE="http://gitorious.org/deltarpm/deltarpm" +SRC_URI="http://pkgs.fedoraproject.org/repo/pkgs/${PN}/${P}.tar.bz2/2cc2690bd1088cfc3238c25e59aaaec1/${P}.tar.bz2" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="python system-zlib" + +RDEPEND="sys-libs/zlib + app-arch/xz-utils + app-arch/bzip2 + <app-arch/rpm-5 + python? ( ${PYTHON_DEPS} )" +DEPEND="${RDEPEND}" + +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +pkg_setup() { + python-single-r1_pkg_setup + + MAKE_EXTRA_FLAGS=( + -j1 + prefix=/usr + mandir=/usr/share/man + PYTHONS=$(use python && echo python) + ) + use system-zlib && MAKE_EXTRA_FLAGS+=( + zlibbundled= + zlibcppflags= + zlibldflags=-lz + ) +} + +src_compile() { + emake "${MAKE_EXTRA_FLAGS[@]}" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" CC="$(tc-getCC)" all $(use python && echo python) +} + +src_install() { + emake "${MAKE_EXTRA_FLAGS[@]}" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" CC="$(tc-getCC)" DESTDIR="${ED}" install + python_optimize +} |