summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2011-01-05 23:30:36 +0000
committerMichał Górny <mgorny@gentoo.org>2011-01-05 23:30:36 +0000
commit8465b6fb12040dcb27ae0733c87a3dfdfaca2bf3 (patch)
tree69b3e5b4bd0c66c29de551f61cd63d02bc21b189 /app-arch/zpaq-extras
parentpunt unused variable (diff)
downloadgentoo-2-8465b6fb12040dcb27ae0733c87a3dfdfaca2bf3.tar.gz
gentoo-2-8465b6fb12040dcb27ae0733c87a3dfdfaca2bf3.tar.bz2
gentoo-2-8465b6fb12040dcb27ae0733c87a3dfdfaca2bf3.zip
EAPI bump (w/ Prefix-related fixes), general ebuild cleanup with flexibility in mind (now user should be even able to add additional configs through user patches).
(Portage version: 2.2.0_alpha12_p8/cvs/Linux x86_64)
Diffstat (limited to 'app-arch/zpaq-extras')
-rw-r--r--app-arch/zpaq-extras/ChangeLog8
-rw-r--r--app-arch/zpaq-extras/zpaq-extras-0_p20100426.ebuild31
2 files changed, 29 insertions, 10 deletions
diff --git a/app-arch/zpaq-extras/ChangeLog b/app-arch/zpaq-extras/ChangeLog
index b75bf7b3fe1f..fdbb9e8ad688 100644
--- a/app-arch/zpaq-extras/ChangeLog
+++ b/app-arch/zpaq-extras/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for app-arch/zpaq-extras
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-arch/zpaq-extras/ChangeLog,v 1.1 2011/01/04 23:20:57 mgorny Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-arch/zpaq-extras/ChangeLog,v 1.2 2011/01/05 23:30:36 mgorny Exp $
+
+ 05 Jan 2011; Michał Górny <mgorny@gentoo.org>
+ zpaq-extras-0_p20100426.ebuild:
+ EAPI bump (w/ Prefix-related fixes), general ebuild cleanup with flexibility
+ in mind (now user should be even able to add additional configs through user
+ patches).
*zpaq-extras-0_p20100426 (04 Jan 2011)
diff --git a/app-arch/zpaq-extras/zpaq-extras-0_p20100426.ebuild b/app-arch/zpaq-extras/zpaq-extras-0_p20100426.ebuild
index 1ec944496bb5..f7dd464ee756 100644
--- a/app-arch/zpaq-extras/zpaq-extras-0_p20100426.ebuild
+++ b/app-arch/zpaq-extras/zpaq-extras-0_p20100426.ebuild
@@ -1,8 +1,9 @@
# 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_p20100426.ebuild,v 1.1 2011/01/04 23:20:57 mgorny Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-arch/zpaq-extras/zpaq-extras-0_p20100426.ebuild,v 1.2 2011/01/05 23:30:36 mgorny Exp $
-inherit toolchain-funcs
+EAPI=3
+inherit base toolchain-funcs
DESCRIPTION="A set of additional compression profiles for app-arch/zpaq"
HOMEPAGE="http://mattmahoney.net/dc/zpaq.html"
@@ -21,15 +22,27 @@ IUSE=""
DEPEND="app-arch/unzip"
RDEPEND=""
-src_compile() {
- tc-export CXX
- progs='bwtpre bwt_ jpeg_jo exe_jo'
- emake ${progs} || die
+S=${WORKDIR}
+src_unpack() {
+ default
+ cp "${DISTDIR}"/fast.cfg . || die
+}
+
+src_configure() {
sed \
- -e 's:^pcomp zpaq r:pcomp /usr/bin/zpaq r/usr/share/zpaq/:' \
- -e 's:^pcomp \([^/]\):pcomp /usr/libexec/zpaq/\1:' \
+ -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() {
@@ -37,5 +50,5 @@ src_install() {
doexe ${progs} || die
insinto /usr/share/zpaq
- doins *.cfg "${DISTDIR}"/fast.cfg || die
+ doins *.cfg || die
}