1 # Copyright 1999-2014 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
7 inherit cmake-utils multilib
9 CMAKE_USE_DIR="${S}/cmake"
11 if [ ${PV} == "9999" ] ; then
13 ESVN_REPO_URI="http://lz4.googlecode.com/svn/trunk/"
14 ESVN_PROJECT="lz4-read-only"
16 SRC_URI="https://dev.gentoo.org/~ryao/dist/${P}.tar.xz"
17 KEYWORDS="~alpha amd64 arm ~arm64 hppa ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh ~sparc x86 ~amd64-linux ~x86-linux"
20 DESCRIPTION="Extremely Fast Compression algorithm"
21 HOMEPAGE="https://code.google.com/p/lz4/"
31 if [ ${PV} == "9999" ]
33 subversion_src_prepare
35 epatch "${FILESDIR}/${P}-install-to-bindir.patch"
36 epatch "${FILESDIR}/${P}-cflags.patch"
38 cmake-utils_src_prepare
42 local mycmakeargs=(-DBUILD_SHARED_LIBS=ON)
43 cmake-utils_src_configure
48 dodir "/usr/$(get_libdir)"
49 ln -s "$(get_libdir)" "${ED}usr/lib" || \
50 die "Cannot create temporary symlink from usr/lib to usr/$(get_libdir)"
52 cmake-utils_src_install
56 if [ -f "${ED}usr/bin/lz4c64" ]
58 dosym lz4c64 /usr/bin/lz4c
60 dosym lz4c32 /usr/bin/lz4c