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: Sun, 04 Nov 2018 01:21:03
Message-Id: 1541294447.0a706d8755608ce4a4eda12a625b76c5402792da.whissi@gentoo
1 commit: 0a706d8755608ce4a4eda12a625b76c5402792da
2 Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
3 AuthorDate: Sun Nov 4 01:16:57 2018 +0000
4 Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
5 CommitDate: Sun Nov 4 01:20:47 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0a706d87
7
8 dev-libs/libmspack: add live ebuild
9
10 Package-Manager: Portage-2.3.51, Repoman-2.3.11
11 Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>
12
13 dev-libs/libmspack/libmspack-9999.ebuild | 73 ++++++++++++++++++++++++++++++++
14 1 file changed, 73 insertions(+)
15
16 diff --git a/dev-libs/libmspack/libmspack-9999.ebuild b/dev-libs/libmspack/libmspack-9999.ebuild
17 new file mode 100644
18 index 00000000000..4c72d6fbe69
19 --- /dev/null
20 +++ b/dev-libs/libmspack/libmspack-9999.ebuild
21 @@ -0,0 +1,73 @@
22 +# Copyright 1999-2018 Gentoo Authors
23 +# Distributed under the terms of the GNU General Public License v2
24 +
25 +EAPI="7"
26 +
27 +inherit autotools multilib-minimal
28 +
29 +if [[ ${PV} == "9999" ]] ; then
30 + EGIT_REPO_URI="https://github.com/kyz/libmspack.git"
31 + inherit git-r3
32 + MY_P="${PN}-9999"
33 +else
34 + KEYWORDS="~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
35 + MY_PV="${PV/_alpha/alpha}"
36 + MY_P="${PN}-${MY_PV}"
37 + SRC_URI="https://www.cabextract.org.uk/libmspack/libmspack-${MY_PV}.tar.gz"
38 +fi
39 +
40 +DESCRIPTION="A library for Microsoft compression formats"
41 +HOMEPAGE="https://www.cabextract.org.uk/libmspack/"
42 +
43 +LICENSE="LGPL-2.1"
44 +SLOT="0"
45 +IUSE="debug doc static-libs"
46 +
47 +DEPEND=""
48 +RDEPEND=""
49 +
50 +S="${WORKDIR}/${MY_P}"
51 +
52 +src_prepare() {
53 + if [[ ${PV} == "9999" ]] ; then
54 + # Re-create file layout from release tarball
55 + pushd "${WORKDIR}" &>/dev/null || die
56 + cp -aL "${S}"/${PN} "${WORKDIR}"/${PN}-source || die
57 + rm -r "${S}" || die
58 + mv "${WORKDIR}"/${PN}-source "${S}" || die
59 + popd &>/dev/null || die
60 + fi
61 +
62 + default
63 +
64 + eautoreconf
65 +
66 + multilib_copy_sources
67 +}
68 +
69 +multilib_src_configure() {
70 + ECONF_SOURCE="${S}" econf \
71 + $(use_enable debug) \
72 + $(use_enable static-libs static)
73 +}
74 +
75 +multilib_src_test() {
76 + if multilib_is_native_abi; then
77 + default
78 + cd "${S}"/test && "${BUILD_DIR}"/test/cabd_test || die
79 + fi
80 +}
81 +
82 +multilib_src_install_all() {
83 + DOCS=(AUTHORS ChangeLog NEWS README TODO)
84 + use doc && HTML_DOCS=(doc/*)
85 + default_src_install
86 + if use doc; then
87 + rm "${ED%/}"/usr/share/doc/"${PF}"/html/{Makefile*,Doxyfile*} || die
88 + fi
89 +
90 + find "${ED}" -name '*.la' -delete || die
91 + if ! use static-libs ; then
92 + find "${ED}" -name "*.a" -delete || die
93 + fi
94 +}