diff options
Diffstat (limited to 'dev-util/bdelta')
-rw-r--r-- | dev-util/bdelta/Manifest | 7 | ||||
-rw-r--r-- | dev-util/bdelta/bdelta-0.3.1-r1.ebuild | 45 | ||||
-rw-r--r-- | dev-util/bdelta/files/bdelta-0.3.1-gcc-6.patch | 18 | ||||
-rw-r--r-- | dev-util/bdelta/files/bdelta-0.3.1-soname.patch | 21 | ||||
-rw-r--r-- | dev-util/bdelta/metadata.xml | 16 |
5 files changed, 107 insertions, 0 deletions
diff --git a/dev-util/bdelta/Manifest b/dev-util/bdelta/Manifest new file mode 100644 index 000000000000..1c3f0c97da93 --- /dev/null +++ b/dev-util/bdelta/Manifest @@ -0,0 +1,7 @@ +AUX bdelta-0.3.1-gcc-6.patch 876 SHA256 58570bbbaf410f08b98197b3b6d533a4d68455c7e4f46f6d41a63fedeeed5157 SHA512 d6b152bdfff022dc7edb0f234d1cece02518335a22b366a633e2288ac8bacd0a8b435935da4640b9888418aaf6ccadc937607b32ff8368034eb9426872279714 WHIRLPOOL ce9f7ebc7dd8f7074781ee80847be6ab67a559261799151f111c8951c97596bbd43542099028b93e6fb738fdae227dfb402c7359ad6dfdc2cc957c3b4edc6a0d +AUX bdelta-0.3.1-soname.patch 722 SHA256 2c8bf0f279488f4fcaa6c276aa8b5518dd0ad786d7c3413b1f526411e80c0278 SHA512 2b70edefae1fe811e905b74a4ddbdedd0d51889b888f7d26c65b428634dd89e189c9a25ccb90cd74cd0ba2d2069f6fb4be9980db14d6799735c352b971e86e0c WHIRLPOOL 8defdd45b3ffbdd182a356cac8028e34d6dbe2c0541df07376541114daa7d8513494017f4723056c444a0b0f480431f1dc510ca304bbfa0738ff2beecaa48f64 +DIST bdelta-0.3.1.tar.gz 14476 SHA256 6633945f0893186b1b1ab4d930e6ab6b7fcec248e0288d28e77e0465074f82e7 SHA512 914e5c38297a273c446cddc17fc4cf312b4f54e6fe332e4ef0474104af559a6dca327cfb069f2d224b7cf63b8c81ae1cc4b384371b8fcc8c01cedc199ee871be WHIRLPOOL aec6fc9a3abf8988c70ec0c4aafe84dc1d98461a6920fdb4ebee6ce716e72b510c4d65652800bfe9eca664002bb8c069d81f365160a77d5034c4ca4feec743b6 +EBUILD bdelta-0.3.1-r1.ebuild 957 SHA256 aa6a66b4761491351d0a5aae62330ba863f9d8344818d8dfaf69a36080e67c39 SHA512 1226e66278741c8b31eeb61fd2a5ff07d200701b27da7b61ecb9517ddfd17162df5e4ed9af3f475975e17f08f0adadeba40732caa422b65c151bd6abf521ee6b WHIRLPOOL 877b35fed57e53d41231a25305ea54ef3907fbaec17e5beabd052a46cd41b74d67303988bf817365e2482a5131201c1a603f872977915e0efbe153a350a3c3c5 +MISC ChangeLog 3164 SHA256 8e884947b5757591ca6d941c16e513e60b625a25f1815c24defc86bcfdabd1c1 SHA512 e25eb18e1951a5d5b215c387537c287aba1589ebb0587392852ed5155f5e6c9bd76b010a033b5eecdb8972788b90f705585ea6e351f5f58218ed034ee86a186b WHIRLPOOL 31e05cde264bd678d1c66366536627d67c349b17d384d82244bfb01aabcf39a339be335a3f01b5096a85f201ac09d30c7ec9ba8362933bcd370b8311f6d1358b +MISC ChangeLog-2015 3912 SHA256 63256815484cb4c56f49fc79686e21707973c1bd91b1d17af5b14a0d9fd23de1 SHA512 970da81efe5d4a9ef8501adeb28a87abf25f36a512ce564dfbb5bd77bb68c116e6b970fc3365677f3fe76a7a06a03e9381bb7cadc6873fe6d902977a116cfe48 WHIRLPOOL 76bec32551dbf8b438098844ccf8f67f09a8025e1c0a1d28205cc230be84fc3d6373e1af7a5f8cba63ec3e89b4a37e7682b91087894e7cf48e8b9137bc0f59ab +MISC metadata.xml 525 SHA256 571fe7d280490bb57030aa3a0c3d3a6283d772ff3e9ed4bc56924dae78b83034 SHA512 735ca098dc9dc30e765d9c136b694246b2f257349e1e53d08f0dda4a5c6f95c83a12fdde3f2c952d1693533f3cc86c36b55bb0abc7634162f7232498d9eb892c WHIRLPOOL 7fa44525a8dd081a23689e5213ebf00c2b3a522c004648874d4d08eb7650c934d862f37ff5c4ed98acf6761d0077c00337283962dc466f119678148c2d6a610c 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..9bbc378a96af --- /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="https://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 +} diff --git a/dev-util/bdelta/files/bdelta-0.3.1-gcc-6.patch b/dev-util/bdelta/files/bdelta-0.3.1-gcc-6.patch new file mode 100644 index 000000000000..9c998de37c3e --- /dev/null +++ b/dev-util/bdelta/files/bdelta-0.3.1-gcc-6.patch @@ -0,0 +1,18 @@ +diff --git a/src/libbdelta.cpp b/src/libbdelta.cpp +index b11bb2b..d769b0d 100644 +--- a/src/libbdelta.cpp ++++ b/src/libbdelta.cpp +@@ -117,7 +117,3 @@ unsigned match_backward(BDelta_Instance *b, unsigned p1, unsigned p2, unsigned b + // Iterator helper function +-template <class T> +-inline T prior(T i) {return --i;} +-template <class T> +-inline T next(T i) {return ++i;} +- ++template <class T> inline T bdelta_next(T i) {return ++i;} + +@@ -423,3 +419,3 @@ void bdelta_pass(BDelta_Instance *b, unsigned blocksize, unsigned minMatchSize, + if (! maxHoleSize || (u1.num <= maxHoleSize && u2.num <= maxHoleSize)) +- if (! (flags & BDELTA_SIDES_ORDERED) || (next(u1.ml) == u1.mr && next(u2.ml) == u2.mr)) ++ if (! (flags & BDELTA_SIDES_ORDERED) || (bdelta_next(u1.ml) == u1.mr && bdelta_next(u2.ml) == u2.mr)) + bdelta_pass_2(b, blocksize, minMatchSize, &u1, 1, &u2, 1); diff --git a/dev-util/bdelta/files/bdelta-0.3.1-soname.patch b/dev-util/bdelta/files/bdelta-0.3.1-soname.patch new file mode 100644 index 000000000000..360a16d7c0da --- /dev/null +++ b/dev-util/bdelta/files/bdelta-0.3.1-soname.patch @@ -0,0 +1,21 @@ +diff --git a/src/Makefile b/src/Makefile +index 65fb88d..3b4a261 100644 +--- a/src/Makefile ++++ b/src/Makefile +@@ -3,6 +3,7 @@ PREFIX ?= /usr + BINDIR ?= $(PREFIX)/bin + LIBDIR ?= ${PREFIX}/lib + CXXFLAGS += -O2 ++DYLIB_LDFLAGS ?= -Wl,-soname,libbdelta.so + + ifeq ($(shell uname -s),Darwin) + SHAREDLIB := libbdelta.dylib +@@ -19,7 +20,7 @@ libbdelta.a: libbdelta.cpp compatibility.h checksum.h file.h + $(AR) rs $@ $<.o + + libbdelta.so: libbdelta.cpp compatibility.h checksum.h file.h +- $(CXX) -shared -fPIC $(CXXFLAGS) $(LDFLAGS) $< -o $@ ++ $(CXX) -shared -fPIC $(CXXFLAGS) $(LDFLAGS) $(DYLIB_LDFLAGS) $< -o $@ + + libbdelta.dylib: libbdelta.cpp compatibility.h checksum.h file.h + $(CXX) -dynamiclib $(CXXFLAGS) $< -o $@ diff --git a/dev-util/bdelta/metadata.xml b/dev-util/bdelta/metadata.xml new file mode 100644 index 000000000000..fcec0af29194 --- /dev/null +++ b/dev-util/bdelta/metadata.xml @@ -0,0 +1,16 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>slyfox@gentoo.org</email> + <name>Sergei Trofimovich</name> + <description>Primary Maintainer</description> + </maintainer> + <maintainer type="project"> + <email>tools-portage@gentoo.org</email> + <name>Gentoo Portage tools team</name> + </maintainer> + <upstream> + <remote-id type="github">jjwhitney/BDelta</remote-id> + </upstream> +</pkgmetadata> |