Install this version:
emerge -a =games-util/libmpq-9999
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =games-util/libmpq-9999
Or alternatively:
emerge --autounmask-write -a =games-util/libmpq-9999
| Version | EAPI | Keywords | Slot |
|---|---|---|---|
| 9999 | 8 | 0 |
# Copyright 2026 mva
# Distributed under the terms of the Public Domain or CC0 License
EAPI=8
inherit git-r3 autotools multilib-minimal
DESCRIPTION="a library for manipulating MPQ archives, used in Blizzard games"
HOMEPAGE="https://libmpq.org/"
EGIT_REPO_URI="https://github.com/msva/${PN}"
LICENSE="MIT"
SLOT="0"
DEPEND="
app-arch/bzip2
virtual/zlib
"
RDEPEND="${DEPEND}"
src_prepare() {
sed -r \
-e '/raise.*,.*"/s@^(.*raise [[:alpha:]]*Error), ("[^"]*")$@\1(\2)@' \
-e 's@print (.*)@print(\1)@' \
-i bindings/python/mpq.py
default
eautoreconf
multilib_copy_sources
}