diff options
author | Michał Górny <mgorny@gentoo.org> | 2016-05-24 10:53:56 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2016-05-24 10:57:43 +0200 |
commit | 40d1b5b0a2d7f79753f6eb021442103ded7d2d41 (patch) | |
tree | 5d3eb093acceb9ba1db23ea6d84f947459e51be5 /app-arch/zpaq/zpaq-7.13.ebuild | |
parent | app-arch/libzpaq: bump to 7.13, use new upstream Makefile and SONAME (diff) | |
download | gentoo-40d1b5b0a2d7f79753f6eb021442103ded7d2d41.tar.gz gentoo-40d1b5b0a2d7f79753f6eb021442103ded7d2d41.tar.bz2 gentoo-40d1b5b0a2d7f79753f6eb021442103ded7d2d41.zip |
app-arch/zpaq: Bump to 7.13
Diffstat (limited to 'app-arch/zpaq/zpaq-7.13.ebuild')
-rw-r--r-- | app-arch/zpaq/zpaq-7.13.ebuild | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/app-arch/zpaq/zpaq-7.13.ebuild b/app-arch/zpaq/zpaq-7.13.ebuild new file mode 100644 index 000000000000..ed726ad5b7cb --- /dev/null +++ b/app-arch/zpaq/zpaq-7.13.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +inherit toolchain-funcs + +MY_P=${PN}${PV/./} +DESCRIPTION="Journaling incremental deduplicating archiving compressor" +HOMEPAGE="http://mattmahoney.net/dc/zpaq.html" +SRC_URI="http://mattmahoney.net/dc/${MY_P}.zip" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="debug" + +RDEPEND="~app-arch/libzpaq-${PV}" +# perl for pod2man +DEPEND="${RDEPEND} + app-arch/unzip + dev-lang/perl" + +S=${WORKDIR} + +src_compile() { + emake CXX="$(tc-getCXX)" CXXFLAGS="${CXXFLAGS}" zpaq.o zpaq.1 + # link manually to use shared library + emake -f /dev/null CC="$(tc-getCXX)" LDLIBS="-lzpaq -pthread" zpaq +} + +src_test() { + # no idea why the 'test' needs that + touch libzpaq.so libzpaq.so.1 || die + default +} + +src_install() { + dobin zpaq + doman zpaq.1 +} + +pkg_postinst() { + if ! has_version app-arch/zpaq-extras; then + elog "You may also want to install app-arch/zpaq-extras package which provides" + elog "few additional configs and preprocessors for use with zpaq." + fi +} |