1 |
commit: 1e410659486a0d0d62f94a70c36ffd2935060196 |
2 |
Author: Slawomir Lis <slis <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Jan 16 06:54:03 2018 +0000 |
4 |
Commit: Slawek Lis <slis <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jan 16 06:54:58 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1e410659 |
7 |
|
8 |
app-arch/wimlib: added new package |
9 |
|
10 |
Imported from overlay: 4nykey |
11 |
|
12 |
Package-Manager: Portage-2.3.19, Repoman-2.3.6 |
13 |
|
14 |
app-arch/wimlib/Manifest | 1 + |
15 |
app-arch/wimlib/metadata.xml | 21 ++++++++++++ |
16 |
app-arch/wimlib/wimlib-1.12.0.ebuild | 62 ++++++++++++++++++++++++++++++++++++ |
17 |
3 files changed, 84 insertions(+) |
18 |
|
19 |
diff --git a/app-arch/wimlib/Manifest b/app-arch/wimlib/Manifest |
20 |
new file mode 100644 |
21 |
index 00000000000..758e0402156 |
22 |
--- /dev/null |
23 |
+++ b/app-arch/wimlib/Manifest |
24 |
@@ -0,0 +1 @@ |
25 |
+DIST wimlib-1.12.0.tar.gz 1014508 BLAKE2B d12f4e0b458fe756b74c67f2f643256c44021e0f0c3e2a3a70eb87647c3c6cabd93413917bf8a8c6ab6820860c407f4454454719227f5cbf1a9a81a7bedc1a6e SHA512 0343b37550366f07fd6a6689f4445f390187beddde677f4d6d831c07936d03b613ae95f612ec7a75e978a5e678f33ab766d0f3b3d942886df56e4ef77d4b07b9 |
26 |
|
27 |
diff --git a/app-arch/wimlib/metadata.xml b/app-arch/wimlib/metadata.xml |
28 |
new file mode 100644 |
29 |
index 00000000000..6f9a4af2ec3 |
30 |
--- /dev/null |
31 |
+++ b/app-arch/wimlib/metadata.xml |
32 |
@@ -0,0 +1,21 @@ |
33 |
+<?xml version="1.0" encoding="UTF-8"?> |
34 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
35 |
+<pkgmetadata> |
36 |
+ <maintainer type="person"> |
37 |
+ <email>slis@g.o</email> |
38 |
+ </maintainer> |
39 |
+ <use> |
40 |
+ <flag name="fuse"> |
41 |
+ Use fuse libraries |
42 |
+ </flag> |
43 |
+ <flag name="ntfs"> |
44 |
+ Use libntfs-3g library from sys-fs/ntfs3g |
45 |
+ </flag> |
46 |
+ <flag name="openssl"> |
47 |
+ Use the SHA-1 message digest from libcrypto instead of compilling another implementation |
48 |
+ </flag> |
49 |
+ <flag name="yasm"> |
50 |
+ Use yasm assembler instead of nasm |
51 |
+ </flag> |
52 |
+ </use> |
53 |
+</pkgmetadata> |
54 |
|
55 |
diff --git a/app-arch/wimlib/wimlib-1.12.0.ebuild b/app-arch/wimlib/wimlib-1.12.0.ebuild |
56 |
new file mode 100644 |
57 |
index 00000000000..591962cc886 |
58 |
--- /dev/null |
59 |
+++ b/app-arch/wimlib/wimlib-1.12.0.ebuild |
60 |
@@ -0,0 +1,62 @@ |
61 |
+# Copyright 1999-2018 Gentoo Foundation |
62 |
+# Distributed under the terms of the GNU General Public License v2 |
63 |
+ |
64 |
+EAPI=6 |
65 |
+ |
66 |
+inherit autotools pax-utils |
67 |
+if [[ -z ${PV%%*9999} ]]; then |
68 |
+ inherit git-r3 |
69 |
+ EGIT_REPO_URI="git://wimlib.net/${PN}" |
70 |
+else |
71 |
+ inherit vcs-snapshot |
72 |
+ MY_PV="${PV/_/-}" |
73 |
+ MY_PV="${MY_PV^^}" |
74 |
+ SRC_URI="https://wimlib.net/downloads/${PN}-${MY_PV}.tar.gz -> ${P}.tar.gz" |
75 |
+ RESTRICT="primaryuri" |
76 |
+ KEYWORDS="~amd64 ~x86" |
77 |
+fi |
78 |
+ |
79 |
+DESCRIPTION="The open source Windows Imaging (WIM) library" |
80 |
+HOMEPAGE="https://wimlib.net/" |
81 |
+ |
82 |
+LICENSE="|| ( GPL-3+ LGPL-3+ ) CC0-1.0" |
83 |
+SLOT="0" |
84 |
+IUSE="cpu_flags_x86_ssse3 fuse ntfs openssl threads yasm" |
85 |
+REQUIRED_USE="cpu_flags_x86_ssse3? ( !openssl )" |
86 |
+ |
87 |
+RDEPEND=" |
88 |
+ dev-libs/libxml2:2 |
89 |
+ ntfs? ( sys-fs/ntfs3g ) |
90 |
+ fuse? ( sys-fs/fuse:0 ) |
91 |
+ openssl? ( dev-libs/openssl:0 ) |
92 |
+" |
93 |
+DEPEND=" |
94 |
+ ${RDEPEND} |
95 |
+ cpu_flags_x86_ssse3? ( |
96 |
+ yasm? ( dev-lang/yasm ) |
97 |
+ !yasm? ( dev-lang/nasm ) |
98 |
+ ) |
99 |
+" |
100 |
+ |
101 |
+src_prepare() { |
102 |
+ default |
103 |
+ eautoreconf |
104 |
+} |
105 |
+ |
106 |
+src_configure() { |
107 |
+ local myeconfargs=( |
108 |
+ $(use_with ntfs ntfs-3g) |
109 |
+ $(use_with fuse) |
110 |
+ $(use_enable cpu_flags_x86_ssse3 ssse3-sha1) |
111 |
+ $(use_with openssl libcrypto) |
112 |
+ $(use_enable threads multithreaded-compression) |
113 |
+ ) |
114 |
+ has test ${FEATURES} && myeconfargs+=( --enable-test-support ) |
115 |
+ ac_cv_prog_NASM="$(usex yasm yasm nasm)" \ |
116 |
+ econf "${myeconfargs[@]}" |
117 |
+} |
118 |
+ |
119 |
+src_compile() { |
120 |
+ emake |
121 |
+ pax-mark m "${S}"/.libs/wimlib-imagex |
122 |
+} |