commit:     b49e8a26165cc7738f9ceb2d10299db27f89cf45
Author:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Thu Apr 13 07:54:06 2023 +0000
Commit:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Thu Apr 13 07:54:06 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b49e8a26

app-emacs/nxml-libvirt-schemas: Inline files/Makefile-trang in ebuild

Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>

 app-emacs/nxml-libvirt-schemas/files/Makefile-trang              | 6 ------
 app-emacs/nxml-libvirt-schemas/nxml-libvirt-schemas-8.8.0.ebuild | 8 ++++++--
 app-emacs/nxml-libvirt-schemas/nxml-libvirt-schemas-8.9.0.ebuild | 8 ++++++--
 3 files changed, 12 insertions(+), 10 deletions(-)

diff --git a/app-emacs/nxml-libvirt-schemas/files/Makefile-trang 
b/app-emacs/nxml-libvirt-schemas/files/Makefile-trang
deleted file mode 100644
index 699cf676ff45..000000000000
--- a/app-emacs/nxml-libvirt-schemas/files/Makefile-trang
+++ /dev/null
@@ -1,6 +0,0 @@
-# -*- makefile -*-
-
-all: $(patsubst %.rng,%.rnc,$(wildcard *.rng))
-
-%.rnc: %.rng
-       trang -I rng -O rnc $< $@

diff --git a/app-emacs/nxml-libvirt-schemas/nxml-libvirt-schemas-8.8.0.ebuild 
b/app-emacs/nxml-libvirt-schemas/nxml-libvirt-schemas-8.8.0.ebuild
index 1c0188f9655a..cdedf3214219 100644
--- a/app-emacs/nxml-libvirt-schemas/nxml-libvirt-schemas-8.8.0.ebuild
+++ b/app-emacs/nxml-libvirt-schemas/nxml-libvirt-schemas-8.8.0.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2022 Gentoo Authors
+# Copyright 1999-2023 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -31,7 +31,11 @@ BDEPEND="app-text/trang"
 SITEFILE="60${PN}-gentoo.el"
 
 src_compile() {
-       emake -f "${FILESDIR}"/Makefile-trang
+       emake -f - <<'EOF'
+all: $(patsubst %.rng,%.rnc,$(wildcard *.rng))
+%.rnc: %.rng
+       trang -I rng -O rnc $< $@
+EOF
 }
 
 src_install() {

diff --git a/app-emacs/nxml-libvirt-schemas/nxml-libvirt-schemas-8.9.0.ebuild 
b/app-emacs/nxml-libvirt-schemas/nxml-libvirt-schemas-8.9.0.ebuild
index 1c0188f9655a..cdedf3214219 100644
--- a/app-emacs/nxml-libvirt-schemas/nxml-libvirt-schemas-8.9.0.ebuild
+++ b/app-emacs/nxml-libvirt-schemas/nxml-libvirt-schemas-8.9.0.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2022 Gentoo Authors
+# Copyright 1999-2023 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -31,7 +31,11 @@ BDEPEND="app-text/trang"
 SITEFILE="60${PN}-gentoo.el"
 
 src_compile() {
-       emake -f "${FILESDIR}"/Makefile-trang
+       emake -f - <<'EOF'
+all: $(patsubst %.rng,%.rnc,$(wildcard *.rng))
+%.rnc: %.rng
+       trang -I rng -O rnc $< $@
+EOF
 }
 
 src_install() {

Reply via email to