2017-02-01 17:24:37 +01:00
|
|
|
# Copyright 1999-2017 Gentoo Foundation
|
2012-08-08 09:25:07 +02:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
2015-08-21 14:38:36 +02:00
|
|
|
# $Id$
|
2012-08-08 09:25:07 +02:00
|
|
|
|
2016-02-10 15:55:18 +01:00
|
|
|
EAPI="6"
|
2012-08-08 09:25:07 +02:00
|
|
|
|
2016-02-23 16:20:27 +01:00
|
|
|
inherit cmake-multilib
|
2012-08-08 09:25:07 +02:00
|
|
|
|
|
|
|
DESCRIPTION="library to read and write MPQ archives"
|
|
|
|
HOMEPAGE="http://www.zezula.net/en/mpq/main.html"
|
2014-05-30 13:08:54 +02:00
|
|
|
SRC_URI="https://github.com/ladislav-zezula/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
2012-08-08 09:25:07 +02:00
|
|
|
|
|
|
|
RESTRICT="mirror"
|
|
|
|
|
2016-09-29 11:28:47 +02:00
|
|
|
LICENSE="MIT"
|
2015-01-25 21:10:38 +01:00
|
|
|
SLOT="0/9"
|
2012-08-08 09:25:07 +02:00
|
|
|
KEYWORDS="~amd64 ~x86"
|
2013-11-13 23:13:22 +01:00
|
|
|
IUSE="static-libs"
|
2012-08-08 09:25:07 +02:00
|
|
|
|
2014-05-30 13:08:54 +02:00
|
|
|
DEPEND="dev-libs/libtomcrypt[static-libs?,${MULTILIB_USEDEP}]
|
2013-11-13 17:06:15 +01:00
|
|
|
sys-libs/zlib[static-libs?,${MULTILIB_USEDEP}]
|
|
|
|
app-arch/bzip2[static-libs?,${MULTILIB_USEDEP}]"
|
2012-08-08 09:25:07 +02:00
|
|
|
RDEPEND="${DEPEND}"
|
|
|
|
|
2016-02-23 16:20:27 +01:00
|
|
|
PATCHES=(
|
2017-02-01 17:24:37 +01:00
|
|
|
"${FILESDIR}"/${PN}-fix-build-system.patch
|
2016-02-23 16:20:27 +01:00
|
|
|
)
|
2012-08-08 09:25:07 +02:00
|
|
|
|
2016-02-10 18:21:19 +01:00
|
|
|
multilib_src_configure() {
|
|
|
|
local mycmakeargs=(
|
2017-02-01 17:24:37 +01:00
|
|
|
-DBUILD_SHARED_LIBS="$(usex static-libs no yes)"
|
2016-02-10 18:21:19 +01:00
|
|
|
-DWITH_LIBTOMCRYPT=ON)
|
2012-08-08 09:25:07 +02:00
|
|
|
|
2016-02-10 18:21:19 +01:00
|
|
|
cmake-utils_src_configure
|
2012-08-08 09:25:07 +02:00
|
|
|
}
|