diff options
author | Michał Górny <mgorny@gentoo.org> | 2011-01-06 16:10:22 +0000 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2011-01-06 16:10:22 +0000 |
commit | d98a6215a3f9111b0c6155988bfcaf93b20304a8 (patch) | |
tree | 3fbac6748570f6b4a90814bb7d48b9d29a6bd39d /app-arch/zpaq-extras/zpaq-extras-0_p20110106.ebuild | |
parent | Version bump for dev channel release. Fails tests. (diff) | |
download | gentoo-2-d98a6215a3f9111b0c6155988bfcaf93b20304a8.tar.gz gentoo-2-d98a6215a3f9111b0c6155988bfcaf93b20304a8.tar.bz2 gentoo-2-d98a6215a3f9111b0c6155988bfcaf93b20304a8.zip |
Bump to install standard ZPAQ configurations as well as they are not installed stand-alone anymore in >=app-arch/zpaq-2.03 (and the built-in variants don't accept arguments).
(Portage version: 2.2.0_alpha12_p8/cvs/Linux x86_64)
Diffstat (limited to 'app-arch/zpaq-extras/zpaq-extras-0_p20110106.ebuild')
-rw-r--r-- | app-arch/zpaq-extras/zpaq-extras-0_p20110106.ebuild | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/app-arch/zpaq-extras/zpaq-extras-0_p20110106.ebuild b/app-arch/zpaq-extras/zpaq-extras-0_p20110106.ebuild new file mode 100644 index 000000000000..c6684749dcc3 --- /dev/null +++ b/app-arch/zpaq-extras/zpaq-extras-0_p20110106.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-arch/zpaq-extras/zpaq-extras-0_p20110106.ebuild,v 1.1 2011/01/06 16:10:21 mgorny Exp $ + +EAPI=3 +inherit base toolchain-funcs + +DESCRIPTION="A set of additional compression profiles for app-arch/zpaq" +HOMEPAGE="http://mattmahoney.net/dc/zpaq.html" +SRC_URI="http://mattmahoney.net/dc/bwt_j3.zip + http://mattmahoney.net/dc/bwt_slowmode1.zip + http://mattmahoney.net/dc/bmp_j4.zip + http://mattmahoney.net/dc/exe_j1.zip + http://mattmahoney.net/dc/jpg_test2.zip + http://mattmahoney.net/dc/min.zip + http://mattmahoney.net/dc/fast.cfg -> zpaq-fast.cfg + http://mattmahoney.net/dc/mid.cfg -> zpaq-mid.cfg + http://mattmahoney.net/dc/max.cfg -> zpaq-max.cfg" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64" +IUSE="" + +DEPEND="app-arch/unzip" +RDEPEND="!<app-arch/zpaq-2.03" + +S=${WORKDIR} + +src_unpack() { + local x + for x in ${A}; do + if [[ ${x} == *.cfg ]]; then + cp "${DISTDIR}"/${x} ${x#zpaq-} || die + fi + done + + default +} + +src_configure() { + sed \ + -e "s:^pcomp zpaq r:pcomp ${EPREFIX}/usr/bin/zpaq r${EPREFIX}/usr/share/zpaq/:" \ + -e "s:^pcomp \([^/]\):pcomp ${EPREFIX}/usr/libexec/zpaq/\1:" \ + -i *.cfg || die + + local sources=( *.cpp ) + # (the following assignment flattens the array) + progs=${sources[@]%.cpp} +} + +src_compile() { + tc-export CXX + emake ${progs} || die +} + +src_install() { + exeinto /usr/libexec/zpaq + doexe ${progs} || die + + insinto /usr/share/zpaq + doins *.cfg || die +} |