diff options
author | Martin Väth <martin@mvath.de> | 2017-09-24 15:42:03 +0200 |
---|---|---|
committer | Martin Väth <martin@mvath.de> | 2017-09-24 15:42:03 +0200 |
commit | f57f03d18f9035a701f7897f3bac298206c06f34 (patch) | |
tree | 7bc277ba55968bafab169b129e5b400a7da04a74 /app-arch/brotli/brotli-1.0.1.ebuild | |
parent | media-gfx/pqiv: Version bump (diff) | |
download | mv-f57f03d18f9035a701f7897f3bac298206c06f34.tar.gz mv-f57f03d18f9035a701f7897f3bac298206c06f34.tar.bz2 mv-f57f03d18f9035a701f7897f3bac298206c06f34.zip |
app-arch/archwrap: Support >=brotli-1.0.0. Add app-arch/brotli
Diffstat (limited to 'app-arch/brotli/brotli-1.0.1.ebuild')
-rw-r--r-- | app-arch/brotli/brotli-1.0.1.ebuild | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/app-arch/brotli/brotli-1.0.1.ebuild b/app-arch/brotli/brotli-1.0.1.ebuild new file mode 100644 index 00000000..e94d15c0 --- /dev/null +++ b/app-arch/brotli/brotli-1.0.1.ebuild @@ -0,0 +1,65 @@ +# Copyright 2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +RESTRICT="mirror" + +PYTHON_COMPAT=( python2_7 python3_{4,5,6} pypy ) +DISTUTILS_OPTIONAL="1" + +inherit cmake-utils distutils-r1 + +DESCRIPTION="Generic-purpose lossless compression algorithm" +HOMEPAGE="https://github.com/google/brotli" +SRC_URI="https://github.com/google/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +SLOT="0/${PV}" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" + +RDEPEND="python? ( ${PYTHON_DEPS} )" +DEPEND="${RDEPEND}" + +IUSE="doc python static-libs test" +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" + +LICENSE="MIT python? ( Apache-2.0 )" + +DOCS=( README.md CONTRIBUTING.md ) + +PATCHES=( "${FILESDIR}"/${PN}-1.0.1-no-rpath.patch ) + +src_prepare() { + use static-libs || eapply "${FILESDIR}"/${PN}-1.0.1-no-static.patch + cmake-utils_src_prepare + use python && distutils-r1_src_prepare +} + +src_configure() { + local mycmakeargs=( + -DBUILD_SHARED_LIBS=ON + -DBUILD_TESTING="$(usex test)" + ) + cmake-utils_src_configure + use python && distutils-r1_src_configure +} + +src_compile() { + cmake-utils_src_compile + use python && distutils-r1_src_compile +} + +python_test(){ + esetup.py test || die +} + +src_test() { + cmake-utils_src_test + use python && distutils-r1_src_test +} + +src_install() { + cmake-utils_src_install + use python && distutils-r1_src_install + use doc && dodoc docs/*.pdf + doman docs/*.[0-9n] +} |