summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergei Trofimovich <slyfox@gentoo.org>2017-07-04 22:33:20 +0100
committerSergei Trofimovich <slyfox@gentoo.org>2017-07-04 22:56:10 +0100
commitbba64a968aeec4c90cad07c65cf3f811097bcbf7 (patch)
tree1960bdbef54e90947d5208d1c59f78554f020026 /dev-util/bdelta/bdelta-0.3.1-r1.ebuild
parentdev-java/annogen: remove hard dependecy on unzip. (diff)
downloadgentoo-bba64a968aeec4c90cad07c65cf3f811097bcbf7.tar.gz
gentoo-bba64a968aeec4c90cad07c65cf3f811097bcbf7.tar.bz2
gentoo-bba64a968aeec4c90cad07c65cf3f811097bcbf7.zip
dev-util/bdelta: update HOMEPAGE, bump up to EAPI=6
Package-Manager: Portage-2.3.6, Repoman-2.3.2
Diffstat (limited to 'dev-util/bdelta/bdelta-0.3.1-r1.ebuild')
-rw-r--r--dev-util/bdelta/bdelta-0.3.1-r1.ebuild45
1 files changed, 45 insertions, 0 deletions
diff --git a/dev-util/bdelta/bdelta-0.3.1-r1.ebuild b/dev-util/bdelta/bdelta-0.3.1-r1.ebuild
new file mode 100644
index 000000000000..c199f1524f7d
--- /dev/null
+++ b/dev-util/bdelta/bdelta-0.3.1-r1.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+if [[ ${PV} = *9999* ]]; then
+ EGIT_REPO_URI="git://github.com/jjwhitney/BDelta.git"
+ UNPACKER_ECLASS="git-2"
+ LIVE_EBUILD=yes
+else
+ UNPACKER_ECLASS="vcs-snapshot"
+fi
+
+inherit toolchain-funcs ${UNPACKER_ECLASS}
+
+if [[ -z ${LIVE_EBUILD} ]]; then
+ KEYWORDS="~alpha ~amd64 ~ppc ~sparc ~x86 ~x86-linux"
+ SRC_URI="https://github.com/jjwhitney/BDelta/tarball/v${PV} -> ${P}.tar.gz"
+fi
+
+DESCRIPTION="Binary Delta - Efficient difference algorithm and format"
+HOMEPAGE="https://github.com/jjwhitney/BDelta"
+
+SLOT="0"
+LICENSE="MPL-2.0"
+IUSE=""
+
+PATCHES=(
+ "${FILESDIR}"/${P}-soname.patch
+ "${FILESDIR}"/${P}-gcc-6.patch
+)
+
+src_compile() {
+ emake -C src \
+ CXX="$(tc-getCXX)" \
+ CXXFLAGS="${CXXFLAGS}"
+}
+
+src_install() {
+ emake -C src install \
+ DESTDIR="${D}" \
+ PREFIX="${EPREFIX}/usr" \
+ LIBDIR="${EPREFIX}/usr/$(get_libdir)"
+ dodoc README
+}