From 9b4705a35aa18e69f9800559b27321de3c5c50f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joachim=20Mairb=C3=B6ck?= Date: Sat, 31 Aug 2024 21:13:35 +0200 Subject: [PATCH] pmx: unbundle from texlive_core The category is again an estimation because there is no separate package in Gentoo. --- .../texlive_core/texlive_core-2024.2.recipe | 5 +- dev-tex/pmx/pmx-3.0.0.recipe | 73 +++++++++++++++++++ 2 files changed, 74 insertions(+), 4 deletions(-) create mode 100644 dev-tex/pmx/pmx-3.0.0.recipe diff --git a/app-text/texlive_core/texlive_core-2024.2.recipe b/app-text/texlive_core/texlive_core-2024.2.recipe index 564ab393a..554fa53b7 100644 --- a/app-text/texlive_core/texlive_core-2024.2.recipe +++ b/app-text/texlive_core/texlive_core-2024.2.recipe @@ -315,7 +315,6 @@ PROVIDES=" cmd:platex_dev cmd:pltotf cmd:pmpost - cmd:pmxab cmd:pmxchords cmd:pn2pdf cmd:pooltype @@ -343,7 +342,6 @@ PROVIDES=" cmd:rumakeindex cmd:rungs cmd:runtexshebang - cmd:scor2prt cmd:simpdftex cmd:spix cmd:splitindex @@ -599,14 +597,12 @@ defineDebugInfoPackage texlive_core$secondaryArchSuffix \ $prefix/bin/pktype \ $prefix/bin/pltotf \ $prefix/bin/pmpost \ - $prefix/bin/pmxab \ $prefix/bin/pooltype \ $prefix/bin/ppltotf \ $prefix/bin/ps2pk \ $prefix/bin/ptekf \ $prefix/bin/ptex \ $prefix/bin/ptftopl \ - $prefix/bin/scor2prt \ $prefix/bin/synctex \ $prefix/bin/t4ht \ $prefix/bin/tangle \ @@ -815,6 +811,7 @@ BUILD() --disable-lcdf-typetools \ --disable-musixtnt \ --disable-m-tx \ + --disable-pmx \ --disable-psutils \ --disable-upmendex \ --disable-autosp \ diff --git a/dev-tex/pmx/pmx-3.0.0.recipe b/dev-tex/pmx/pmx-3.0.0.recipe new file mode 100644 index 000000000..c4d6e7519 --- /dev/null +++ b/dev-tex/pmx/pmx-3.0.0.recipe @@ -0,0 +1,73 @@ +SUMMARY="Preprocessor for MusiXTEX" +DESCRIPTION="PMX provides a preprocessor for MusiXTeX. + +pmxab builds a TeX input file based on a .pmx input file in a much simpler language, making most \ +of the layout decisions by itself. It has most of MusiXTeX's functionality, but it also permits \ +in-line TeX to give access to virtually all of MusiXTeX. For proof-listening, pmxab will make a \ +MIDI file of your score. + +scor2prt is an auxiliary program that makes parts from a score." +HOMEPAGE="http://icking-music-archive.org/software/htdocs/index.html" +COPYRIGHT="Don Simons" +LICENSE="GNU GPL v3" +REVISION="1" +SOURCE_URI="https://mirrors.ctan.org/support/pmx/source/pmx-$portVersion.tar.gz" +CHECKSUM_SHA256="7695db503ea4eef96c313c737bf5dc471526429cbeef091f1ac542a88408eb82" + +ARCHITECTURES="all !x86_gcc2" +SECONDARY_ARCHITECTURES="x86" + +PROVIDES=" + pmx$secondaryArchSuffix = $portVersion + cmd:pmxab = $portVersion + cmd:scor2prt + " +REQUIRES=" + haiku$secondaryArchSuffix + lib:libgfortran$secondaryArchSuffix + lib:libquadmath$secondaryArchSuffix + " + +BUILD_REQUIRES=" + haiku${secondaryArchSuffix}_devel + " +BUILD_PREREQUIRES=" + #cmd:awk + cmd:gcc$secondaryArchSuffix # missing requirement of gfortran? + cmd:gfortran$secondaryArchSuffix + #cmd:make + " + +TEST_REQUIRES=" + cmd:diff + " + +defineDebugInfoPackage pmx$secondaryArchSuffix \ + $prefix/bin/pmxab \ + $prefix/bin/scor2prt + +BUILD() +{ + # there is no build-system for the direct fortran build + gfortran -g -O2 -o pmxab pmx${portVersion//./}.for + gfortran -g -O2 -o scor2prt scor2prt.for + + #runConfigure --omit-dirs "binDir" ./configure \ + # --bindir=$prefix/bin + #make $jobArgs +} + +INSTALL() +{ + mkdir -p $prefix/bin + cp pmxab scor2prt $prefix/bin + + #make install +} + +TEST() +{ + srcdir=. test_src=tests ./pmx.test + + #make check +}