diff options
-rw-r--r-- | app-arch/zpaq/ChangeLog | 9 | ||||
-rw-r--r-- | app-arch/zpaq/Manifest | 4 | ||||
-rw-r--r-- | app-arch/zpaq/metadata.xml | 8 | ||||
-rw-r--r-- | app-arch/zpaq/zpaq-1.02.ebuild | 47 |
4 files changed, 68 insertions, 0 deletions
diff --git a/app-arch/zpaq/ChangeLog b/app-arch/zpaq/ChangeLog new file mode 100644 index 000000000..9cd7f7a12 --- /dev/null +++ b/app-arch/zpaq/ChangeLog @@ -0,0 +1,9 @@ +# ChangeLog for app-arch/zpaq +# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 +# $Header: $ + + 17 Jul 2009; Michał Górny (sedzimir) <gentoo@mgorny.alt.pl> + +zpaq-1.02.ebuild, +metadata.xml: + New ebuild for bug #278021. Thanks to lazy_bum, TomJBE & Tommy[D] for + suggestions. + diff --git a/app-arch/zpaq/Manifest b/app-arch/zpaq/Manifest new file mode 100644 index 000000000..3bed01b35 --- /dev/null +++ b/app-arch/zpaq/Manifest @@ -0,0 +1,4 @@ +DIST zpaq102.zip 246151 RMD160 cf15b4c180da216d116aef720512f6b502deb88a SHA1 0756a97d31c4992856183ba625389f04a8a8c57f SHA256 d14c9163696df144d14522f059add574b95bcd8835f9a5df56e807a5bc002b5f +EBUILD zpaq-1.02.ebuild 1408 RMD160 e60973d5b504757e508b6082023b0e6a31fbfddf SHA1 640f5e57480fcd9cabbb7a4cf52226455a014cea SHA256 81a067f259864363a0a34933c690770987d5dad21d6be38d6ca5ad24c27b0ae3 +MISC ChangeLog 302 RMD160 f2ac03f507d531ed390604993c2fdaaaa404e6bc SHA1 8d0cd42575c0d914972583a74f099e45eb6fc132 SHA256 89550fde4328a50eaff7df585df89743b2c53d12705d92d1031badd3d836a5df +MISC metadata.xml 262 RMD160 64951ca639702aa31b3e4d358978702060b25740 SHA1 b50842ac8bb710e9e04e21c3ef2c6fd6cbaef4db SHA256 1855a3b4e8fb1583a58be48d0341c975d52d7dca8a4ca71d1285ef7a0d577e08 diff --git a/app-arch/zpaq/metadata.xml b/app-arch/zpaq/metadata.xml new file mode 100644 index 000000000..98560ab64 --- /dev/null +++ b/app-arch/zpaq/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>maintainer-wanted</herd> + <use> + <flag name='doc'>Install ZPAQ specification along with compressor.</flag> + </use> +</pkgmetadata> diff --git a/app-arch/zpaq/zpaq-1.02.ebuild b/app-arch/zpaq/zpaq-1.02.ebuild new file mode 100644 index 000000000..c18e048e1 --- /dev/null +++ b/app-arch/zpaq/zpaq-1.02.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +inherit toolchain-funcs + +MY_P="${PN}${PV/./}" +DESCRIPTION="Unified compressor for PAQ algorithms" +HOMEPAGE="http://cs.fit.edu/~mmahoney/compression/#zpaq" +SRC_URI="http://cs.fit.edu/~mmahoney/compression/${MY_P}.zip" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="doc" + +src_compile() { + # Upstream doesn't provide any Makefile + + "$(tc-getCXX)" ${CXXFLAGS} ${MY_P}.cpp -o zpaq || die 'compiling zpaq failed' + "$(tc-getCXX)" ${CXXFLAGS} un${MY_P}.cpp -o unzpaq || die 'compiling unzpaq failed' +} + +src_install() { + dobin zpaq unzpaq || die 'dobin failed' + + dodoc readme.txt || die 'dodoc failed' + if use doc; then + dodoc zpaq100.pdf || die 'dodoc failed' + fi + + # These are more like compression profiles, so install them in /usr/share + insinto /usr/share/zpaq + doins *.cfg || die 'doins failed' +} + +pkg_postinst() { + elog "Unlike conventional archivers, zpaq doesn't have any algorithm chain" + elog "compiled in by default. Instead, it provides many PAQ components to allow" + elog "user to create his own chain and supply it as configuration file." + elog + elog "We install few default configs in /usr/share/zpaq to start with. They can" + elog "be used like that:" + elog " zpaq c/usr/share/zpaq/max.cfg out.zpaq files" + elog + elog "We're working on a more user-friendly solution." +} |