1 |
commit: 7b99fb52d2c9f8e3a3ffc9659bfe17c8906af09d |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Jul 3 13:27:05 2016 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jul 3 13:29:24 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7b99fb52 |
7 |
|
8 |
app-arch/zpaq: Merge libzpaq into the package |
9 |
|
10 |
app-arch/zpaq/zpaq-7.13-r1.ebuild | 54 +++++++++++++++++++++++++++++++++++++++ |
11 |
1 file changed, 54 insertions(+) |
12 |
|
13 |
diff --git a/app-arch/zpaq/zpaq-7.13-r1.ebuild b/app-arch/zpaq/zpaq-7.13-r1.ebuild |
14 |
new file mode 100644 |
15 |
index 0000000..a05100b |
16 |
--- /dev/null |
17 |
+++ b/app-arch/zpaq/zpaq-7.13-r1.ebuild |
18 |
@@ -0,0 +1,54 @@ |
19 |
+# Copyright 1999-2015 Gentoo Foundation |
20 |
+# Distributed under the terms of the GNU General Public License v2 |
21 |
+# $Id$ |
22 |
+ |
23 |
+EAPI=6 |
24 |
+ |
25 |
+inherit flag-o-matic toolchain-funcs |
26 |
+ |
27 |
+MY_P=${PN}${PV/./} |
28 |
+DESCRIPTION="Journaling incremental deduplicating archiving compressor" |
29 |
+HOMEPAGE="http://mattmahoney.net/dc/zpaq.html" |
30 |
+SRC_URI="http://mattmahoney.net/dc/${MY_P}.zip" |
31 |
+ |
32 |
+LICENSE="Unlicense" |
33 |
+SLOT="0" |
34 |
+KEYWORDS="~amd64 ~x86" |
35 |
+IUSE="debug +jit" |
36 |
+ |
37 |
+# now 2in1! |
38 |
+RDEPEND="!app-arch/libzpaq" |
39 |
+# perl for pod2man |
40 |
+DEPEND=" |
41 |
+ app-arch/unzip |
42 |
+ dev-lang/perl" |
43 |
+ |
44 |
+S=${WORKDIR} |
45 |
+ |
46 |
+src_prepare() { |
47 |
+ default |
48 |
+ sed -i -e '/^zpaq:/,+1s/libzpaq\.o/$(SONAME)/' Makefile || die |
49 |
+} |
50 |
+ |
51 |
+src_compile() { |
52 |
+ use debug || append-cppflags -DNDEBUG |
53 |
+ use jit || append-cppflags -DNOJIT |
54 |
+ emake CXX="$(tc-getCXX)" CXXFLAGS="${CXXFLAGS}" |
55 |
+} |
56 |
+ |
57 |
+src_test() { |
58 |
+ local -x LD_LIBRARY_PATH=".${LD_LIBRARY_PATH+:${LD_LIBRARY_PATH}}" |
59 |
+ default |
60 |
+} |
61 |
+ |
62 |
+src_install() { |
63 |
+ emake install PREFIX="${ED%/}"/usr LIBDIR="\$(PREFIX)/$(get_libdir)" |
64 |
+ einstalldocs |
65 |
+} |
66 |
+ |
67 |
+pkg_postinst() { |
68 |
+ if ! has_version app-arch/zpaq-extras; then |
69 |
+ elog "You may also want to install app-arch/zpaq-extras package which provides" |
70 |
+ elog "few additional configs and preprocessors for use with zpaq." |
71 |
+ fi |
72 |
+} |