Gentoo Archives: gentoo-commits

From: Thomas Deutschmann <whissi@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/libmspack/
Date: Sat, 06 Oct 2018 17:38:16
Message-Id: 1538847479.767f0f96cbd2c8e22587dbc9321a6c183a2f1965.whissi@gentoo
1 commit: 767f0f96cbd2c8e22587dbc9321a6c183a2f1965
2 Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
3 AuthorDate: Sat Oct 6 17:37:33 2018 +0000
4 Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
5 CommitDate: Sat Oct 6 17:37:59 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=767f0f96
7
8 dev-libs/libmspack: bump to v0.7.1 alpha
9
10 Bug: https://bugs.gentoo.org/662874
11 Package-Manager: Portage-2.3.50, Repoman-2.3.11
12 Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>
13
14 dev-libs/libmspack/Manifest | 1 +
15 dev-libs/libmspack/libmspack-0.7.1_alpha.ebuild | 64 +++++++++++++++++++++++++
16 2 files changed, 65 insertions(+)
17
18 diff --git a/dev-libs/libmspack/Manifest b/dev-libs/libmspack/Manifest
19 index d75260e1541..2be5af98ea8 100644
20 --- a/dev-libs/libmspack/Manifest
21 +++ b/dev-libs/libmspack/Manifest
22 @@ -1 +1,2 @@
23 DIST libmspack-0.6alpha.tar.gz 476992 BLAKE2B 3ff510e108e12741b661a4960f204ce268572f79917d4ec18e105d09cee3f515d76e02a2432717ad6c2118c7eb191b51902ce86e3c5b441ee269740816b2a392 SHA512 7ba4a584d335c2d703628a3c179bc0d323574632357cdfe04622f960dcc4ef970b5739799397b6802d44a312f7ed9d589b4be223facf044bbfdbfd76d9c7405d
24 +DIST libmspack-0.7.1alpha.tar.gz 486840 BLAKE2B f97abba7b261cced6e5c500c50243920c44ae8bc245e54386c4568e17989f2bad2c3316d83ebbd75220b50b09ed4ded156965e9aa430bd207aaa6b7c6218d800 SHA512 e903629a34c29099a261a108e4eb9cda485ab999bbc3383e3cd6a39715077d00b26a1c641b0f3df0eef60d2e15a7ef623379df0cfe25b99d4eda080529ffec7b
25
26 diff --git a/dev-libs/libmspack/libmspack-0.7.1_alpha.ebuild b/dev-libs/libmspack/libmspack-0.7.1_alpha.ebuild
27 new file mode 100644
28 index 00000000000..49030b559e6
29 --- /dev/null
30 +++ b/dev-libs/libmspack/libmspack-0.7.1_alpha.ebuild
31 @@ -0,0 +1,64 @@
32 +# Copyright 1999-2018 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI="7"
36 +
37 +inherit eutils multilib-minimal
38 +
39 +MY_PV="${PV/_alpha/alpha}"
40 +MY_P="${PN}-${MY_PV}"
41 +
42 +DESCRIPTION="A library for Microsoft compression formats"
43 +HOMEPAGE="https://www.cabextract.org.uk/libmspack/"
44 +SRC_URI="https://www.cabextract.org.uk/libmspack/libmspack-${MY_PV}.tar.gz"
45 +
46 +LICENSE="LGPL-2.1"
47 +SLOT="0"
48 +KEYWORDS="~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
49 +IUSE="debug doc static-libs utils"
50 +
51 +DEPEND=""
52 +RDEPEND="
53 + utils? ( !app-arch/mscompress )
54 +"
55 +
56 +S="${WORKDIR}/${MY_P}"
57 +
58 +src_prepare() {
59 + default
60 +
61 + multilib_copy_sources
62 +}
63 +
64 +multilib_src_configure() {
65 + # https://github.com/kyz/libmspack/issues/19
66 + export MAKEOPTS=-j1
67 +
68 + ECONF_SOURCE="${S}" econf \
69 + $(use_enable debug) \
70 + $(use_enable static-libs static)
71 +}
72 +
73 +multilib_src_test() {
74 + if multilib_is_native_abi; then
75 + default
76 + cd "${S}"/test && "${BUILD_DIR}"/test/cabd_test || die
77 + fi
78 +}
79 +
80 +multilib_src_install_all() {
81 + DOCS=(AUTHORS ChangeLog NEWS README TODO)
82 + use doc && HTML_DOCS=(doc/*)
83 + default_src_install
84 + if use doc; then
85 + rm "${ED%/}"/usr/share/doc/"${PF}"/html/{Makefile*,Doxyfile*} || die
86 + fi
87 + if ! use utils; then
88 + rm "${ED%/}"/usr/bin/* || die
89 + fi
90 +
91 + find "${ED}" -name '*.la' -delete || die
92 + if ! use static-libs ; then
93 + find "${ED}" -name "*.a" -delete || die
94 + fi
95 +}