diff options
Diffstat (limited to 'dev-libs/libmspack')
-rw-r--r-- | dev-libs/libmspack/Manifest | 4 | ||||
-rw-r--r-- | dev-libs/libmspack/files/libmspack-0.6_alpha-fix-tests.patch | 14 | ||||
-rw-r--r-- | dev-libs/libmspack/libmspack-0.6_alpha.ebuild | 55 | ||||
-rw-r--r-- | dev-libs/libmspack/metadata.xml | 11 |
4 files changed, 84 insertions, 0 deletions
diff --git a/dev-libs/libmspack/Manifest b/dev-libs/libmspack/Manifest new file mode 100644 index 000000000000..475474d94a1b --- /dev/null +++ b/dev-libs/libmspack/Manifest @@ -0,0 +1,4 @@ +AUX libmspack-0.6_alpha-fix-tests.patch 575 BLAKE2B 35a8342f103926bfff555237cbd432fd679ab61620aeaf654041cfb6c39a18f3be475bf7e0a93c004d7c953d6f2ed66e4528d3b546e9d22b28e1e666c6d9caeb SHA512 8c715e174d3eca76fb33c2a5eccccd4f7c4c7702320d0db9db5dec6038129f508afade126ae791191ffaaf60740a722db7a87fc76f8c00c86912a1e2e2323eda +DIST libmspack-0.6alpha.tar.gz 476992 BLAKE2B 3ff510e108e12741b661a4960f204ce268572f79917d4ec18e105d09cee3f515d76e02a2432717ad6c2118c7eb191b51902ce86e3c5b441ee269740816b2a392 SHA512 7ba4a584d335c2d703628a3c179bc0d323574632357cdfe04622f960dcc4ef970b5739799397b6802d44a312f7ed9d589b4be223facf044bbfdbfd76d9c7405d +EBUILD libmspack-0.6_alpha.ebuild 1171 BLAKE2B 41bbf26a893cdc85f016d288d7374745c077e5bd72bed9ea870a9c2786c39ef4c66f5d5477411d67a03a142e14983356256ee09f7da2c71ad2b0872df5a47613 SHA512 e384b00cbc8dc3b150a72c44b8c1acfae1539e1a7a15751b9995780ed258b0cee9ddb55b56bddac3de3abe2f7dfe2abe0dd227afcd6a94ab9205af1edf2fee56 +MISC metadata.xml 355 BLAKE2B 27dbf410ad5287ffc5ec6336a0c4cfc8eb02b52d72c9cceaaf39518dd435fc647e5c667f003c2b00141bd076fb574e6914f8cd3ad37de693bccfef9942e46689 SHA512 08390d344d23931d0c418eb18e0db2dbaba1f9942fac4984786fab7fa15045a9ccded1acc98d8ff4fdb4a2d5d83cb68383818745cb06b1b743489a2efaeb69d1 diff --git a/dev-libs/libmspack/files/libmspack-0.6_alpha-fix-tests.patch b/dev-libs/libmspack/files/libmspack-0.6_alpha-fix-tests.patch new file mode 100644 index 000000000000..22b0461ae7e4 --- /dev/null +++ b/dev-libs/libmspack/files/libmspack-0.6_alpha-fix-tests.patch @@ -0,0 +1,14 @@ +diff --git a/libmspack/test/cabd_test.c b/libmspack/test/cabd_test.c +index 5e8851c..abed65c 100644 +--- a/test/cabd_test.c ++++ b/test/cabd_test.c +@@ -186,7 +186,8 @@ void cabd_open_test_05() { + for (i = 0; i < (sizeof(str_files)/sizeof(char *)); i++) { + cab = cabd->open(cabd, str_files[i]); + TEST(cab == NULL); +- TEST(cabd->last_error(cabd) == MSPACK_ERR_DATAFORMAT); ++ TEST(cabd->last_error(cabd) == MSPACK_ERR_DATAFORMAT || ++ cabd->last_error(cabd) == MSPACK_ERR_READ); + } + + /* lack of data blocks should NOT be a problem for merely reading */ diff --git a/dev-libs/libmspack/libmspack-0.6_alpha.ebuild b/dev-libs/libmspack/libmspack-0.6_alpha.ebuild new file mode 100644 index 000000000000..2d660ecef548 --- /dev/null +++ b/dev-libs/libmspack/libmspack-0.6_alpha.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit eutils multilib-minimal + +MY_PV="${PV/_alpha/alpha}" +MY_P="${PN}-${MY_PV}" + +DESCRIPTION="A library for Microsoft compression formats" +HOMEPAGE="https://www.cabextract.org.uk/libmspack/" +SRC_URI="https://www.cabextract.org.uk/libmspack/libmspack-${MY_PV}.tar.gz" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="amd64 ~arm ~ia64 ~ppc64 ~sparc x86" +IUSE="debug doc static-libs utils" + +DEPEND="" +RDEPEND=" + utils? ( !app-arch/mscompress ) +" + +PATCHES=( + "${FILESDIR}/${P}-fix-tests.patch" +) + +S="${WORKDIR}/${MY_P}" + +multilib_src_configure() { + ECONF_SOURCE="${S}" econf \ + $(use_enable debug) \ + $(use_enable static-libs static) +} + +multilib_src_test() { + if multilib_is_native_abi; then + default + cd "${S}"/test && "${BUILD_DIR}"/test/cabd_test || die + fi +} + +multilib_src_install_all() { + DOCS=(AUTHORS ChangeLog NEWS README TODO) + prune_libtool_files --all + use doc && HTML_DOCS=(doc/*) + default_src_install + if use doc; then + rm "${ED}"/usr/share/doc/"${PF}"/html/{Makefile*,Doxyfile*} || die + fi + if ! use utils; then + rm "${ED}"/usr/bin/* || die + fi +} diff --git a/dev-libs/libmspack/metadata.xml b/dev-libs/libmspack/metadata.xml new file mode 100644 index 000000000000..1e5806295c83 --- /dev/null +++ b/dev-libs/libmspack/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>reavertm@gentoo.org</email> + <name>Maciej Mrozowski</name> + </maintainer> + <use> + <flag name="utils">Enables building cabrip, chmextract, msexpand and oabextract</flag> + </use> +</pkgmetadata> |