forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
lzop-1.03.ebuild
36 lines (28 loc) · 986 Bytes
/
lzop-1.03.ebuild
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
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI="6"
DESCRIPTION="Utility for fast (even real-time) compression/decompression"
HOMEPAGE="http://www.lzop.org/"
SRC_URI="http://www.lzop.org/download/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 arm arm64 hppa ia64 ~mips ppc ppc64 sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc-solaris ~x86-solaris"
IUSE=""
RDEPEND=">=dev-libs/lzo-2"
DEPEND="${RDEPEND}"
PATCHES=(
"${FILESDIR}"/${P}-x32.patch #575450
"${FILESDIR}"/${P}-gcc6.patch #594472
)
HTML_DOCS=( doc/lzop.html )
src_test() {
einfo "compressing config.status to test"
src/lzop config.status || die 'compression failed'
ls -la config.status{,.lzo}
src/lzop -t config.status.lzo || die 'lzo test failed'
src/lzop -dc config.status.lzo | diff config.status - || die 'decompression generated differences from original'
}
src_install() {
default
dodoc doc/lzop.{txt,ps}
}