From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id B7B091382DE for ; Sun, 3 Jul 2016 13:29:43 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 0FE0CE09C5; Sun, 3 Jul 2016 13:29:42 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 8FFD0E09C5 for ; Sun, 3 Jul 2016 13:29:41 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id B29D1340DB5 for ; Sun, 3 Jul 2016 13:29:40 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 9F2332430 for ; Sun, 3 Jul 2016 13:29:36 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1467552564.7b99fb52d2c9f8e3a3ffc9659bfe17c8906af09d.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-arch/zpaq/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-arch/zpaq/zpaq-7.13-r1.ebuild X-VCS-Directories: app-arch/zpaq/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 7b99fb52d2c9f8e3a3ffc9659bfe17c8906af09d X-VCS-Branch: master Date: Sun, 3 Jul 2016 13:29:36 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 0f539490-2117-4848-9d09-a86206c796a3 X-Archives-Hash: 25d530f39cbc36c0ebaf3dc995d85ef5 commit: 7b99fb52d2c9f8e3a3ffc9659bfe17c8906af09d Author: Michał Górny gentoo org> AuthorDate: Sun Jul 3 13:27:05 2016 +0000 Commit: Michał Górny gentoo org> CommitDate: Sun Jul 3 13:29:24 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7b99fb52 app-arch/zpaq: Merge libzpaq into the package app-arch/zpaq/zpaq-7.13-r1.ebuild | 54 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) diff --git a/app-arch/zpaq/zpaq-7.13-r1.ebuild b/app-arch/zpaq/zpaq-7.13-r1.ebuild new file mode 100644 index 0000000..a05100b --- /dev/null +++ b/app-arch/zpaq/zpaq-7.13-r1.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +inherit flag-o-matic 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="Unlicense" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="debug +jit" + +# now 2in1! +RDEPEND="!app-arch/libzpaq" +# perl for pod2man +DEPEND=" + app-arch/unzip + dev-lang/perl" + +S=${WORKDIR} + +src_prepare() { + default + sed -i -e '/^zpaq:/,+1s/libzpaq\.o/$(SONAME)/' Makefile || die +} + +src_compile() { + use debug || append-cppflags -DNDEBUG + use jit || append-cppflags -DNOJIT + emake CXX="$(tc-getCXX)" CXXFLAGS="${CXXFLAGS}" +} + +src_test() { + local -x LD_LIBRARY_PATH=".${LD_LIBRARY_PATH+:${LD_LIBRARY_PATH}}" + default +} + +src_install() { + emake install PREFIX="${ED%/}"/usr LIBDIR="\$(PREFIX)/$(get_libdir)" + einstalldocs +} + +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 +}