summaryrefslogtreecommitdiff
path: root/app-arch/mscompress/mscompress-0.3-r2.ebuild
blob: d25dbccb536a10ac713e1c7955527d6094e6803b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit flag-o-matic toolchain-funcs autotools

DESCRIPTION="Microsoft compress.exe/expand.exe compatible (de)compressor"
HOMEPAGE="https://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 ~amd64-linux ~x86-linux ~ppc-macos"

PATCHES=(
	"${FILESDIR}"/${P}-makefile.patch
	"${FILESDIR}"/${P}-amd64.patch
)

src_prepare() {
	default
	eautoreconf
}

src_configure() {
	tc-export CC
	# bug #148320
	append-flags -fsigned-char
	econf
}

src_install() {
	dobin mscompress msexpand
	doman mscompress.1 msexpand.1
	einstalldocs
}