diff options
Diffstat (limited to 'app-arch/mscompress')
-rw-r--r-- | app-arch/mscompress/Manifest | 7 | ||||
-rw-r--r-- | app-arch/mscompress/files/mscompress-0.3-amd64.patch | 24 | ||||
-rw-r--r-- | app-arch/mscompress/files/mscompress-0.3-makefile.patch | 12 | ||||
-rw-r--r-- | app-arch/mscompress/metadata.xml | 11 | ||||
-rw-r--r-- | app-arch/mscompress/mscompress-0.3-r1.ebuild | 33 |
5 files changed, 87 insertions, 0 deletions
diff --git a/app-arch/mscompress/Manifest b/app-arch/mscompress/Manifest new file mode 100644 index 000000000000..c5a170e3d59c --- /dev/null +++ b/app-arch/mscompress/Manifest @@ -0,0 +1,7 @@ +AUX mscompress-0.3-amd64.patch 613 SHA256 28e63bb7c1e0a23b88add0dd3d400b797ab9df6c2f1d7bc5a7f58423c360db92 SHA512 94d17fa87a0ba7029569da65e8f22af834b557db1c0a4715afe3afcfc6cee63e7bb604bc37f700729c2efe08b38b46a940b4ee8fd426e293747fb4003d7f53db WHIRLPOOL e481081f093d8445d81dff48ee77b8bb1417af03e11b70d0c7ac505e2556fc373b887d6de238de2238eb8ce89db7976e0d8a427691e644dfa746f4d304aa5bc8 +AUX mscompress-0.3-makefile.patch 467 SHA256 d9baf9ae4cf0f50de2b23f40b4f9ce870d9b67e9f64d6d383caf0a2c4c346dff SHA512 d633867a102ba099576c6671967c802bca293a81896ba6ecd5486ad025dfa66220dec9ecc4615c97db22deea914183d8dbedf5ab75221abeb5a65e0c7e949669 WHIRLPOOL 3b9131f9353b5a3f8eeaab81fb6c11d15880c8614a3d77fab8bfd1f5735ff90baa533993808378fb7239f498d9e576561d26fd562d2b0c6bc015f9e0b2a0c590 +DIST mscompress-0.3.tar.bz2 40989 SHA256 cdc3bf66865da9700d5f52a06602dfe3f9a6510bc53b97342957b1d71f026b77 SHA512 e69a95e9c12979e852227553028b578f324ec38472ead11f9c0cce85b77bc817ea39d5ecf74599c7935c692eaac537456ebefe110400514a3c834b12597dde14 WHIRLPOOL 9481d1ac9b3a211f578e41f6e195604bb691488aa9567f33c8556cf7b3d1ed620d189040c6b4990b2960b2a3899076ff375b6584ce358bd60aa66ca711f64500 +EBUILD mscompress-0.3-r1.ebuild 799 SHA256 7a5a00998cadc13cedd1a540e4be09e81f312cc1b460b83b78b7500ac37f2101 SHA512 4d095c633591ea3182f4910674e72cdf8532a4f894cbdae7ede263719c371936a080f18a8669396ccd542fd8595e331da484dae13cfcb097d1ee44b8ed8b2bca WHIRLPOOL 8ba8c44a17fa2061d6da82c31228ca95425c2340ab4735dc76a3a5dce036d92aded30f5a689b854f1c3fa618a22317aa2c1983370ee1b3d990ed9b5ca8cfe7f7 +MISC ChangeLog 3154 SHA256 c0bce381bdd0d5c287d8962fe2aa9747aa34d8cc9ea93af2733b22c74aa7b80f SHA512 410f319e94f4653050f04fc98cf995991c448591f56cae6bd8400578f1e2f88b33dd78b0dd438f3617164a2821b576950b7266b3ebaa3a81e95ec263076e1a06 WHIRLPOOL 09649b49febf836fea034b06f78ad1a3e85a6de4184cf48c3ab4f1af10364f4d43381d6fae67181cfac062252fc7e977c2eea32e7c4bcf3ccf2d74f521f01e2a +MISC ChangeLog-2015 3099 SHA256 745134037d8d4c4ec20e17b8027b1eea77cb9e7a8e6b0460a189f57fcb7c9a75 SHA512 0e70af240a8c7a9d3d7fd37ae542415b77d81a5231fabcf78177552fc9528b95c68574d3f55bc2ff8d18c2599763e8fd56e01f2e6be69087bfa759c446623aa1 WHIRLPOOL 0638959969b7503b0bf039aa01012cc6865b74d12a66a504a0d550228bc18ecd96ce699974821fa4d63b9f963d63f595e0532fdd7c796a0fecce25f48b1f4160 +MISC metadata.xml 368 SHA256 34ca76084f431de46b790a726785b4a11d18db54750805917853b3020f3ef036 SHA512 4e24e69033ec97407b9b9f7a496762b76a54ed9e9135f71c34d5575c8b604c20054fe34d189a54172af48c5f2ab26f167ac1b7b3852a481e70aafbe2d2298f20 WHIRLPOOL 4a8afcb12f8a15219591cba6b24e3f3d33e935de76a03a9f6543aba285d7acd78aa74fa809b5a91ea850272646cb889526877e79f0d1e73e81ba54f1fa913720 diff --git a/app-arch/mscompress/files/mscompress-0.3-amd64.patch b/app-arch/mscompress/files/mscompress-0.3-amd64.patch new file mode 100644 index 000000000000..95e4e617aefc --- /dev/null +++ b/app-arch/mscompress/files/mscompress-0.3-amd64.patch @@ -0,0 +1,24 @@ +--- mscompress.c.old 2006-11-27 23:58:51.000000000 +0100 ++++ mscompress.c 2006-11-27 23:59:50.000000000 +0100 +@@ -25,6 +25,7 @@ + #include <unistd.h> + #include <fcntl.h> + #include <string.h> ++#include <stdint.h> + #ifdef HAVE_GETOPT_H + #include <getopt.h> + #else +@@ -156,10 +157,10 @@ + int ch, i, run, len, match, size, mask; + char buf[17]; + struct stat st; +- unsigned long magic1; +- unsigned long magic2; ++ uint32_t magic1; ++ uint32_t magic2; + unsigned short magic3; +- unsigned long filesize; ++ uint32_t filesize; + + /* 28.5 kB */ + buffer = malloc (N + F + (N + 1 + N + N + 256) * sizeof (int)); diff --git a/app-arch/mscompress/files/mscompress-0.3-makefile.patch b/app-arch/mscompress/files/mscompress-0.3-makefile.patch new file mode 100644 index 000000000000..21c38155082e --- /dev/null +++ b/app-arch/mscompress/files/mscompress-0.3-makefile.patch @@ -0,0 +1,12 @@ +--- a/Makefile.in 2004-04-14 07:48:23.088418656 +0000 ++++ b/Makefile.in 2004-04-14 07:48:38.233116312 +0000 +@@ -37,7 +37,7 @@ + bzip2 -9f $(OUTDIR)/mscompress-$(VERS)-$(OSTYPE).tar + + mscompress: mscompress.o version.o +- $(CC) -o mscompress mscompress.o version.o ++ $(CC) $(CFLAGS) $(LDFLAGS) -o mscompress mscompress.o version.o + + msexpand: msexpand.o version.o +- $(CC) -o msexpand msexpand.o version.o ++ $(CC) $(CFLAGS) $(LDFLAGS) -o msexpand msexpand.o version.o diff --git a/app-arch/mscompress/metadata.xml b/app-arch/mscompress/metadata.xml new file mode 100644 index 000000000000..3425a95bc07a --- /dev/null +++ b/app-arch/mscompress/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-needed --> + <longdescription lang="en"> + A (de)compressor for microsoft's compress.exe and expand.exe functions. + </longdescription> + <upstream> + <remote-id type="sourceforge">gnuwin32</remote-id> + </upstream> +</pkgmetadata> diff --git a/app-arch/mscompress/mscompress-0.3-r1.ebuild b/app-arch/mscompress/mscompress-0.3-r1.ebuild new file mode 100644 index 000000000000..e7a2b9214c20 --- /dev/null +++ b/app-arch/mscompress/mscompress-0.3-r1.ebuild @@ -0,0 +1,33 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +inherit eutils flag-o-matic toolchain-funcs + +DESCRIPTION="Microsoft compress.exe/expand.exe compatible (de)compressor" +HOMEPAGE="http://gnuwin32.sourceforge.net/packages/mscompress.htm" +SRC_URI="ftp://ftp.penguin.cz/pub/users/mhi/mscompress/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ~arm hppa ~ppc ~ppc64 x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos" +IUSE="" + +src_prepare() { + epatch \ + "${FILESDIR}"/${P}-makefile.patch \ + "${FILESDIR}"/${P}-amd64.patch +} + +src_configure() { + tc-export CC + [[ $(tc-arch) == ppc* ]] && append-flags -fsigned-char + econf +} + +src_install() { + dobin mscompress msexpand || die + doman mscompress.1 msexpand.1 + dodoc README ChangeLog +} |