2016-02-10 15:55:18 +01:00
|
|
|
# Copyright 1999-2016 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-10 18:21:19 +01:00
|
|
|
inherit cmake-utils multilib-minimal
|
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"
|
|
|
|
|
|
|
|
LICENSE="as-is"
|
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}"
|
|
|
|
|
|
|
|
src_prepare() {
|
2016-02-10 18:21:19 +01:00
|
|
|
eapply "${FILESDIR}/${PN}-multilib.patch"
|
|
|
|
default
|
2012-08-08 09:25:07 +02:00
|
|
|
}
|
|
|
|
|
2016-02-10 18:21:19 +01:00
|
|
|
multilib_src_configure() {
|
|
|
|
local mycmakeargs=(
|
|
|
|
-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
|
|
|
}
|