summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2009-11-01 13:51:50 +0000
committerMichał Górny <mgorny@gentoo.org>2009-11-01 13:51:50 +0000
commit937561305bfc6a96874395e0c54ba2e8306ef16d (patch)
treed8ff2101cfc8cc56fa60f18458d54f2536d9618d /app-arch/zpaq-extras/zpaq-extras-0_p20091101.ebuild
parentmedia-video/huludesktop: Version bump. Upstream changed their package. (diff)
downloadsunrise-937561305bfc6a96874395e0c54ba2e8306ef16d.tar.gz
sunrise-937561305bfc6a96874395e0c54ba2e8306ef16d.tar.bz2
sunrise-937561305bfc6a96874395e0c54ba2e8306ef16d.zip
app-arch/zpaq-extras: Additional ebuild to bug #278021.
svn path=/sunrise/; revision=9445
Diffstat (limited to 'app-arch/zpaq-extras/zpaq-extras-0_p20091101.ebuild')
-rw-r--r--app-arch/zpaq-extras/zpaq-extras-0_p20091101.ebuild44
1 files changed, 44 insertions, 0 deletions
diff --git a/app-arch/zpaq-extras/zpaq-extras-0_p20091101.ebuild b/app-arch/zpaq-extras/zpaq-extras-0_p20091101.ebuild
new file mode 100644
index 000000000..ad06c5bdf
--- /dev/null
+++ b/app-arch/zpaq-extras/zpaq-extras-0_p20091101.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit toolchain-funcs
+
+DESCRIPTION="Extra configurations for zpaq"
+HOMEPAGE="http://mattmahoney.net/dc/#zpaq"
+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"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE=""
+
+DEPEND="app-arch/unzip"
+RDEPEND=""
+
+src_compile() {
+ local _prog
+
+ mkdir bin
+ for _prog in bwtpre bwt_ jpeg_jo exe_jo; do
+ "$(tc-getCXX)" ${CXXFLAGS} ${_prog}.cpp -o bin/${_prog} \
+ || die "compiling ${_prog} failed"
+ done
+
+ sed \
+ -e 's:^pcomp zpaq r:pcomp /usr/bin/zpaq r/usr/share/zpaq/:' \
+ -e 's:^pcomp \([^/]\):pcomp /usr/libexec/zpaq/\1:' \
+ -i *.cfg || die 'sed failed'
+}
+
+src_install() {
+ exeinto /usr/libexec/zpaq
+ doexe bin/* || die 'dobin failed'
+
+ insinto /usr/share/zpaq
+ doins *.cfg || die 'doins failed'
+}