3
0
Fork 0
forked from mirrors/nixpkgs

mame: add patch to disable PDF documentation

This commit is contained in:
Thiago Kenji Okada 2022-04-09 13:36:42 +01:00
parent d186f76cef
commit 7f4f71d3e7
2 changed files with 45 additions and 3 deletions

View file

@ -0,0 +1,37 @@
From 54aebffc4584ee68149d4b5b64ceaa79a82b8427 Mon Sep 17 00:00:00 2001
From: Thiago Kenji Okada <thiagokokada@gmail.com>
Date: Sat, 9 Apr 2022 13:16:08 +0100
Subject: [PATCH] Revert "Added PDF documentation to dist.mak"
This reverts commit c0e93076232e794c919231e4386445d78b2d80b1.
---
dist.mak | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
diff --git a/dist.mak b/dist.mak
index edbb4cd67cb..c378dfdf708 100644
--- a/dist.mak
+++ b/dist.mak
@@ -109,7 +109,7 @@ GEN_FOLDERS := $(addprefix $(STAGEDIR)/,$(CREATED_DIRS))
COPY_BINARIES := $(addprefix $(STAGEDIR)/,$(addsuffix $(EXE),$(BINARIES)))
COPY_FILES := $(addprefix $(STAGEDIR)/,$(COPIED_FILES))
-all: $(COPY_BINARIES) $(COPY_FILES) $(STAGEDIR)/docs/MAME.pdf
+all: $(COPY_BINARIES) $(COPY_FILES)
clean:
$(SILENT) rm -rf $(STAGEDIR)
@@ -124,10 +124,4 @@ $(STAGEDIR)/%: $(BINDIR)/% | $(GEN_FOLDERS)
$(STAGEDIR)/%: % | $(GEN_FOLDERS)
$(call COPY,$<,$@)
-$(STAGEDIR)/docs/MAME.pdf: docs/build/latex/MAME.pdf | $(GEN_FOLDERS)
- $(call COPY,$<,$@)
-
-docs/build/latex/MAME.pdf:
- $(MAKE) -C docs latexpdf
-
.PHONY: all clean
--
2.33.1

View file

@ -99,10 +99,15 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ python3 pkg-config which makeWrapper installShellFiles ];
# by default MAME assumes that paths with stock resources
# are relative and that you run MAME changing to
# install directory, so we add absolute paths here
patches = [
# MAME is now generating the PDF documentation on its release script since commit:
# https://github.com/mamedev/mame/commit/c0e93076232e794c919231e4386445d78b2d80b1
# however this needs sphinx+latex to build, and it is available in the website
# anyway for those who need it
./0001-Revert-Added-PDF-documentation-to-dist.mak.patch
# by default MAME assumes that paths with stock resources
# are relative and that you run MAME changing to
# install directory, so we add absolute paths here
./emuopts.patch
];