1 |
mgorny 11/01/05 23:30:36 |
2 |
|
3 |
Modified: zpaq-extras-0_p20100426.ebuild ChangeLog |
4 |
Log: |
5 |
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). |
6 |
|
7 |
(Portage version: 2.2.0_alpha12_p8/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.2 app-arch/zpaq-extras/zpaq-extras-0_p20100426.ebuild |
11 |
|
12 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-arch/zpaq-extras/zpaq-extras-0_p20100426.ebuild?rev=1.2&view=markup |
13 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-arch/zpaq-extras/zpaq-extras-0_p20100426.ebuild?rev=1.2&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-arch/zpaq-extras/zpaq-extras-0_p20100426.ebuild?r1=1.1&r2=1.2 |
15 |
|
16 |
Index: zpaq-extras-0_p20100426.ebuild |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/app-arch/zpaq-extras/zpaq-extras-0_p20100426.ebuild,v |
19 |
retrieving revision 1.1 |
20 |
retrieving revision 1.2 |
21 |
diff -u -r1.1 -r1.2 |
22 |
--- zpaq-extras-0_p20100426.ebuild 4 Jan 2011 23:20:57 -0000 1.1 |
23 |
+++ zpaq-extras-0_p20100426.ebuild 5 Jan 2011 23:30:36 -0000 1.2 |
24 |
@@ -1,8 +1,9 @@ |
25 |
# Copyright 1999-2011 Gentoo Foundation |
26 |
# Distributed under the terms of the GNU General Public License v2 |
27 |
-# $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 $ |
28 |
+# $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 $ |
29 |
|
30 |
-inherit toolchain-funcs |
31 |
+EAPI=3 |
32 |
+inherit base toolchain-funcs |
33 |
|
34 |
DESCRIPTION="A set of additional compression profiles for app-arch/zpaq" |
35 |
HOMEPAGE="http://mattmahoney.net/dc/zpaq.html" |
36 |
@@ -21,15 +22,27 @@ |
37 |
DEPEND="app-arch/unzip" |
38 |
RDEPEND="" |
39 |
|
40 |
-src_compile() { |
41 |
- tc-export CXX |
42 |
- progs='bwtpre bwt_ jpeg_jo exe_jo' |
43 |
- emake ${progs} || die |
44 |
+S=${WORKDIR} |
45 |
|
46 |
+src_unpack() { |
47 |
+ default |
48 |
+ cp "${DISTDIR}"/fast.cfg . || die |
49 |
+} |
50 |
+ |
51 |
+src_configure() { |
52 |
sed \ |
53 |
- -e 's:^pcomp zpaq r:pcomp /usr/bin/zpaq r/usr/share/zpaq/:' \ |
54 |
- -e 's:^pcomp \([^/]\):pcomp /usr/libexec/zpaq/\1:' \ |
55 |
+ -e "s:^pcomp zpaq r:pcomp ${EPREFIX}/usr/bin/zpaq r${EPREFIX}/usr/share/zpaq/:" \ |
56 |
+ -e "s:^pcomp \([^/]\):pcomp ${EPREFIX}/usr/libexec/zpaq/\1:" \ |
57 |
-i *.cfg || die |
58 |
+ |
59 |
+ local sources=( *.cpp ) |
60 |
+ # (the following assignment flattens the array) |
61 |
+ progs=${sources[@]%.cpp} |
62 |
+} |
63 |
+ |
64 |
+src_compile() { |
65 |
+ tc-export CXX |
66 |
+ emake ${progs} || die |
67 |
} |
68 |
|
69 |
src_install() { |
70 |
@@ -37,5 +50,5 @@ |
71 |
doexe ${progs} || die |
72 |
|
73 |
insinto /usr/share/zpaq |
74 |
- doins *.cfg "${DISTDIR}"/fast.cfg || die |
75 |
+ doins *.cfg || die |
76 |
} |
77 |
|
78 |
|
79 |
|
80 |
1.2 app-arch/zpaq-extras/ChangeLog |
81 |
|
82 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-arch/zpaq-extras/ChangeLog?rev=1.2&view=markup |
83 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-arch/zpaq-extras/ChangeLog?rev=1.2&content-type=text/plain |
84 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-arch/zpaq-extras/ChangeLog?r1=1.1&r2=1.2 |
85 |
|
86 |
Index: ChangeLog |
87 |
=================================================================== |
88 |
RCS file: /var/cvsroot/gentoo-x86/app-arch/zpaq-extras/ChangeLog,v |
89 |
retrieving revision 1.1 |
90 |
retrieving revision 1.2 |
91 |
diff -u -r1.1 -r1.2 |
92 |
--- ChangeLog 4 Jan 2011 23:20:57 -0000 1.1 |
93 |
+++ ChangeLog 5 Jan 2011 23:30:36 -0000 1.2 |
94 |
@@ -1,6 +1,12 @@ |
95 |
# ChangeLog for app-arch/zpaq-extras |
96 |
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
97 |
-# $Header: /var/cvsroot/gentoo-x86/app-arch/zpaq-extras/ChangeLog,v 1.1 2011/01/04 23:20:57 mgorny Exp $ |
98 |
+# $Header: /var/cvsroot/gentoo-x86/app-arch/zpaq-extras/ChangeLog,v 1.2 2011/01/05 23:30:36 mgorny Exp $ |
99 |
+ |
100 |
+ 05 Jan 2011; Michał Górny <mgorny@g.o> |
101 |
+ zpaq-extras-0_p20100426.ebuild: |
102 |
+ EAPI bump (w/ Prefix-related fixes), general ebuild cleanup with flexibility |
103 |
+ in mind (now user should be even able to add additional configs through user |
104 |
+ patches). |
105 |
|
106 |
*zpaq-extras-0_p20100426 (04 Jan 2011) |