games-fps/freedoom-data: Build from source

Closes: https://bugs.gentoo.org/687676
Package-Manager: Portage-2.3.68, Repoman-2.3.15
Signed-off-by: William Breathitt Gray <vilhelm.gray@gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/12839
Signed-off-by: James Le Cuirot <chewi@gentoo.org>
This commit is contained in:
William Breathitt Gray
2019-09-05 21:08:47 +01:00
committed by James Le Cuirot
parent 534e0f7d5e
commit 8912d4ab88
3 changed files with 62 additions and 0 deletions
+1
View File
@@ -1 +1,2 @@
DIST freedoom-0.11.3.zip 18889307 BLAKE2B 052d7f58d1beb7947f4fff3021ec0229c9746bfb7970a52d23fa44fc881d8cf3c314b8ecf0dc400c2da4e28c623695874ae75dcd1e45933fdb1826ea04f0e24b SHA512 c67fc69bca87cba2ba40b91f578724feaabbd6cd64c6845fa567d6901b7a9e3145185011731c677a71f7b5a6f8707855fb573c0c09b6d47fef83b1577b211816
DIST freedoom-0.11.3.tar.gz 17010131 BLAKE2B a0b601575da8516cf9f83466fe2146b708aa3cb21a3df2f7cbcd018a560f65b9b89c85907115050c4985b64eff29a3a9d2cfb7d31e93043e9d3c35fe7749d749 SHA512 51e0d5f7ca7c846c556fcba36b0f9c815090bfc76a80200aebd1526291da16b71145fbe254100cc5ad37ffc044d4380ef07b8bd4bdb811f00b9150e7b34dd636
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<policymap>
<policy domain="coder" rights="read | write" pattern="PS" />
</policymap>
@@ -0,0 +1,57 @@
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python2_7 python3_{5,6,7} )
inherit python-any-r1 xdg
DESCRIPTION="Game resources for Freedoom: Phase 1+2"
HOMEPAGE="https://freedoom.github.io"
SRC_URI="https://github.com/freedoom/freedoom/archive/v${PV}.tar.gz -> freedoom-${PV}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~x86"
BDEPEND="
$(python_gen_any_dep 'dev-python/pillow[${PYTHON_USEDEP}]')
app-text/asciidoc
games-util/deutex
virtual/imagemagick-tools[png]"
S="${WORKDIR}/freedoom-${PV}"
DOOMWADPATH=share/doom
python_check_deps() {
has_version -b "dev-python/pillow[${PYTHON_USEDEP}]"
}
src_prepare() {
# This is to enable usage of the 'PS' coder, which is
# disabled by default (https://bugs.gentoo.org/664236)
install -D -t ~/.config/ImageMagick "${FILESDIR}"/ImageMagick/policy.xml || die
xdg_src_prepare
eapply_user
}
src_compile() {
emake wads/freedoom{1,2}.wad
}
src_install() {
emake install-freedoom{1,2} \
prefix="${ED}/usr/" \
bindir="bin/" \
mandir="share/man/" \
waddir="${DOOMWADPATH}/"
}
pkg_postinst() {
xdg_pkg_postinst
elog "Freedoom WAD files installed into ${EPREFIX}/usr/${DOOMWADPATH} directory."
}