summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Breathitt Gray <vilhelm.gray@gmail.com>2019-07-05 23:02:53 +0900
committerJames Le Cuirot <chewi@gentoo.org>2019-09-05 21:08:47 +0100
commit8912d4ab88d3aa1482bd2c55b765fa8065fa4e7e (patch)
tree3061d98c34b650c827dd56c7560de2d8ee57d645 /games-fps/freedoom-data
parenttoolchain.eclass: drop PATH and ROOTPATH from /etc/env.d/gcc/ (diff)
downloadgentoo-8912d4ab88d3aa1482bd2c55b765fa8065fa4e7e.tar.gz
gentoo-8912d4ab88d3aa1482bd2c55b765fa8065fa4e7e.tar.bz2
gentoo-8912d4ab88d3aa1482bd2c55b765fa8065fa4e7e.zip
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>
Diffstat (limited to 'games-fps/freedoom-data')
-rw-r--r--games-fps/freedoom-data/Manifest1
-rw-r--r--games-fps/freedoom-data/files/ImageMagick/policy.xml4
-rw-r--r--games-fps/freedoom-data/freedoom-data-0.11.3-r1.ebuild57
3 files changed, 62 insertions, 0 deletions
diff --git a/games-fps/freedoom-data/Manifest b/games-fps/freedoom-data/Manifest
index d3ca3066e926..e879cf018837 100644
--- a/games-fps/freedoom-data/Manifest
+++ b/games-fps/freedoom-data/Manifest
@@ -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
diff --git a/games-fps/freedoom-data/files/ImageMagick/policy.xml b/games-fps/freedoom-data/files/ImageMagick/policy.xml
new file mode 100644
index 000000000000..ffacb9209fb3
--- /dev/null
+++ b/games-fps/freedoom-data/files/ImageMagick/policy.xml
@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<policymap>
+ <policy domain="coder" rights="read | write" pattern="PS" />
+</policymap>
diff --git a/games-fps/freedoom-data/freedoom-data-0.11.3-r1.ebuild b/games-fps/freedoom-data/freedoom-data-0.11.3-r1.ebuild
new file mode 100644
index 000000000000..ed2ae707e1a1
--- /dev/null
+++ b/games-fps/freedoom-data/freedoom-data-0.11.3-r1.ebuild
@@ -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."
+}