[dev-games/StormLib] version bump, static-libs USE does now build static *only*

This commit is contained in:
2017-02-01 17:24:37 +01:00
parent 172d4effc3
commit 377ffe1780
3 changed files with 25 additions and 21 deletions

View File

@@ -0,0 +1,35 @@
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI="6"
inherit cmake-multilib
DESCRIPTION="library to read and write MPQ archives"
HOMEPAGE="http://www.zezula.net/en/mpq/main.html"
SRC_URI="https://github.com/ladislav-zezula/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
RESTRICT="mirror"
LICENSE="MIT"
SLOT="0/9"
KEYWORDS="~amd64 ~x86"
IUSE="static-libs"
DEPEND="dev-libs/libtomcrypt[static-libs?,${MULTILIB_USEDEP}]
sys-libs/zlib[static-libs?,${MULTILIB_USEDEP}]
app-arch/bzip2[static-libs?,${MULTILIB_USEDEP}]"
RDEPEND="${DEPEND}"
PATCHES=(
"${FILESDIR}"/${PN}-fix-build-system.patch
)
multilib_src_configure() {
local mycmakeargs=(
-DBUILD_SHARED_LIBS="$(usex static-libs no yes)"
-DWITH_LIBTOMCRYPT=ON)
cmake-utils_src_configure
}