diff options
author | Thiago Kenji Okada <thiagokokada@gmail.com> | 2022-04-09 13:36:42 +0100 |
---|---|---|
committer | Thiago Kenji Okada <thiagokokada@gmail.com> | 2022-04-09 13:36:42 +0100 |
commit | 7f4f71d3e7f915a694ef1089243c4ce098219fac (patch) | |
tree | a4c10a004f2b948a867b1c7b733c663ada553752 /pkgs/applications/emulators/mame | |
parent | d186f76cefb58b61e5c8a72a7188b269032116f7 (diff) |
mame: add patch to disable PDF documentation
Diffstat (limited to 'pkgs/applications/emulators/mame')
-rw-r--r-- | pkgs/applications/emulators/mame/0001-Revert-Added-PDF-documentation-to-dist.mak.patch | 37 | ||||
-rw-r--r-- | pkgs/applications/emulators/mame/default.nix | 11 |
2 files changed, 45 insertions, 3 deletions
diff --git a/pkgs/applications/emulators/mame/0001-Revert-Added-PDF-documentation-to-dist.mak.patch b/pkgs/applications/emulators/mame/0001-Revert-Added-PDF-documentation-to-dist.mak.patch new file mode 100644 index 000000000000..cee425eaa93d --- /dev/null +++ b/pkgs/applications/emulators/mame/0001-Revert-Added-PDF-documentation-to-dist.mak.patch @@ -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 + diff --git a/pkgs/applications/emulators/mame/default.nix b/pkgs/applications/emulators/mame/default.nix index f72ca128f1a2..40ac402627e0 100644 --- a/pkgs/applications/emulators/mame/default.nix +++ b/pkgs/applications/emulators/mame/default.nix @@ -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 ]; |