commit:     6c011ca637972cf0c8b825fe31ce44ccfe297933
Author:     Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
AuthorDate: Mon Mar  4 10:05:06 2019 +0000
Commit:     Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
CommitDate: Mon Mar  4 10:05:06 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6c011ca6

app-arch/cabextract: Bump to version 1.9.1

Package-Manager: Portage-2.3.62, Repoman-2.3.12
Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>

 app-arch/cabextract/Manifest                |  1 +
 app-arch/cabextract/cabextract-1.9.1.ebuild | 67 +++++++++++++++++++++++++++++
 2 files changed, 68 insertions(+)

diff --git a/app-arch/cabextract/Manifest b/app-arch/cabextract/Manifest
index 1595cdec74e..b075fd0a74d 100644
--- a/app-arch/cabextract/Manifest
+++ b/app-arch/cabextract/Manifest
@@ -1,4 +1,5 @@
 DIST cabextract-1.6.tar.gz 241731 BLAKE2B 
49a94b1b0d8a6c9f61cd51280a035e3fedb8d7a2d097b132bc56114c6003a558647a7f8c47b8d08fcac1999e68bea5303adb2b03c8e6dd010995e8b0c6dcd442
 SHA512 
d1c71c0292e3d73d8edbff5f5230b3127c63028f5aba1d0cad968bc945202fb9c0773327affce3d28466068377f029c80735adbabe0929d29b2204dea73738f8
 DIST cabextract-1.7.tar.gz 293760 BLAKE2B 
d5ab4783c944d5d8b1d9ed8a2fbbfd60aeeab9f12b836032f982efc5721055b2caa521147246b3b5274d9456b1dbd2d513455cfd57750cf6d7fdc18f109f96c9
 SHA512 
63789e485d57299f2a0a60dc6d9a94e83639eb59b73789eff52977d3d3bd37a1c00713c86a4c6289e35541d0b7240ea0545ba84013713c070b4324ae1f2865ce
 DIST cabextract-1.8.tar.gz 289256 BLAKE2B 
ba9fea0cd12859b0de97b13362eaf276066650eb7151e0115af7ed2586cfa7497f72be2f9287d3ccb5ce5256ec26ca69e729df5bb0a327bb9f32ded25391460c
 SHA512 
f8d676d6b738b0b13ac1cac7716c2fb46db423ef30b05ee64f00fcb19596131fbd34341c8b417af3de04896e9b6a8abf0d5976ee4bf87d016806a71317246d7a
+DIST cabextract-1.9.1.tar.gz 469369 BLAKE2B 
5bfc697b40cbf47b42ab7857804b703c9622d8dae1648aae1bb5c0ec7c7978bff01b7ca2526f1b6090f193d88c00e3f49ae111f348d03fec9f575bddbb4b4096
 SHA512 
c354a4b20a222b40813f01baf8311c9a76611da427f9f44e977a3fd09508e24a18b486e3eef889a9debdca459f1b0c28d5d25429ccd555d3a2e4ff92d91cec14
 DIST cabextract-1.9.tar.gz 466334 BLAKE2B 
1a82bddca826ee35ed13e1c0b50deca3ae1b7e31d7f427f54b5d6cf9651a727b7cbf8049c1a4326237725e007baecb4356721489611bb5e015bd7460e2530758
 SHA512 
d144c1df9ed8e8c339bcadb3d1be2eb2576bb066e3f75a3480df0d5e81407a633554e4674b3bb43716c0cf33a0f2327e6f798cd6d7825bceefa0ad839fcc3f64

diff --git a/app-arch/cabextract/cabextract-1.9.1.ebuild 
b/app-arch/cabextract/cabextract-1.9.1.ebuild
new file mode 100644
index 00000000000..fb656c5eab7
--- /dev/null
+++ b/app-arch/cabextract/cabextract-1.9.1.ebuild
@@ -0,0 +1,67 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="7"
+
+inherit autotools toolchain-funcs
+
+if [[ ${PV} == "9999" ]] ; then
+       EGIT_REPO_URI="https://github.com/kyz/libmspack.git";
+       inherit git-r3
+       MY_P="${PN}-9999"
+
+       LIBMSPACK_DEPEND="~dev-libs/libmspack-9999:="
+else
+       KEYWORDS="~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh 
~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos 
~sparc-solaris ~x64-solaris ~x86-solaris"
+       MY_PV="${PV/_alpha/alpha}"
+       MY_P="${PN}-${MY_PV}"
+       SRC_URI="https://www.cabextract.org.uk/${P}.tar.gz";
+
+       LIBMSPACK_DEPEND=">=dev-libs/libmspack-0.8_alpha:="
+fi
+
+DESCRIPTION="Extracts files from Microsoft cabinet archive files"
+HOMEPAGE="https://www.cabextract.org.uk/";
+
+LICENSE="GPL-3"
+SLOT="0"
+IUSE="extras"
+
+DEPEND="${LIBMSPACK_DEPEND}
+       virtual/pkgconfig"
+RDEPEND="${LIBMSPACK_DEPEND}
+       extras? ( dev-lang/perl )"
+
+src_prepare() {
+       if [[ ${PV} == "9999" ]] ; then
+               # Re-create file layout from release tarball
+               pushd "${WORKDIR}" &>/dev/null || die
+               cp -aL "${S}"/${PN} "${WORKDIR}"/${PN}-source || die
+               rm -r "${S}" || die
+               mv "${WORKDIR}"/${PN}-source "${S}" || die
+               popd &>/dev/null || die
+       fi
+
+       default
+
+       eautoreconf
+}
+
+src_configure() {
+       econf \
+               --with-external-libmspack=yes
+}
+
+src_compile() {
+       emake AR="$(tc-getAR)"
+}
+
+src_install() {
+       local DOCS=( AUTHORS ChangeLog NEWS README TODO doc/magic )
+       default
+       docinto html
+       dodoc doc/wince_cab_format.html
+       if use extras; then
+               dobin src/{wince_info,wince_rename,cabinfo,cabsplit}
+       fi
+}

Reply via email to