From ebf4265dbf4cceb27d90a583af3b5f67f7d7ae07 Mon Sep 17 00:00:00 2001 From: Alisdair MacLeod <131350026+admacleod@users.noreply.github.com> Date: Mon, 31 Mar 2025 17:06:20 +0100 Subject: [PATCH] pta: new port, version 0.1 (#28044) --- finance/pta/Portfile | 27 +++++++++++++++++++++++++++ finance/pta/files/patch-Makefile.diff | 26 ++++++++++++++++++++++++++ 2 files changed, 53 insertions(+) create mode 100644 finance/pta/Portfile create mode 100644 finance/pta/files/patch-Makefile.diff diff --git a/finance/pta/Portfile b/finance/pta/Portfile new file mode 100644 index 00000000000..19e0ab86d8f --- /dev/null +++ b/finance/pta/Portfile @@ -0,0 +1,27 @@ +# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 + +PortSystem 1.0 +PortGroup perl5 1.0 + +perl5.require_variant yes + +name pta +version 0.1 +categories finance +platforms {darwin any} +supported_archs noarch +maintainers {@admacleod} \ + openmaintainer +description the plain text accounting program +long_description pta reads bookkeeping journals and writes account lists, \ + balances, and cost center assessments to standard output. +license ISC +homepage https://mandoc.bsd.lv/pta/ +master_sites ${homepage}release/ +checksums rmd160 58e26090bd873a9f4b8481c05701919d72fdc058 \ + sha256 d2669b08eabac17cb4b737fe6b5c3d52533b825379db5655434487348c50c7cb \ + size 19943 +use_configure no +build {} +destroot.destdir DESTDIR=${destroot}${prefix} +patchfiles-append patch-Makefile.diff diff --git a/finance/pta/files/patch-Makefile.diff b/finance/pta/files/patch-Makefile.diff new file mode 100644 index 00000000000..197a8e82890 --- /dev/null +++ b/finance/pta/files/patch-Makefile.diff @@ -0,0 +1,26 @@ +--- Makefile 2025-03-31 10:32:38 ++++ Makefile 2025-03-31 10:33:22 +@@ -6,19 +6,12 @@ + + install: + @if test -z "$(DESTDIR)"; then echo "DESTDIR is not set"; exit 1; fi +- install -o root -g wheel -m 0755 -d $(DESTDIR)/bin +- install -o root -g wheel -m 0755 -d $(DESTDIR)/man +- install -o root -g wheel -m 0755 -d $(DESTDIR)/man/man1 +- install -o root -g wheel -m 0755 -d $(DESTDIR)/man/man5 +- install -o root -g wheel -m 0755 -d $(DESTDIR)/man/man7 +- install -o root -g wheel -m 0755 -d $(DESTDIR)/share +- install -o root -g wheel -m 0755 -d $(DESTDIR)/share/examples + install -o root -g wheel -m 0755 -d $(DESTDIR)/share/examples/pta + install -o root -g bin -m 0555 pta.pl $(DESTDIR)/bin/pta +- install -o root -g bin -m 0444 pta.1 $(DESTDIR)/man/man1/ +- install -o root -g bin -m 0444 pta-accounts.5 $(DESTDIR)/man/man5/ +- install -o root -g bin -m 0444 pta-journal.5 $(DESTDIR)/man/man5/ +- install -o root -g bin -m 0444 pta-glossary.7 $(DESTDIR)/man/man7/ ++ install -o root -g bin -m 0444 pta.1 $(DESTDIR)/share/man/man1/ ++ install -o root -g bin -m 0444 pta-accounts.5 $(DESTDIR)/share/man/man5/ ++ install -o root -g bin -m 0444 pta-journal.5 $(DESTDIR)/share/man/man5/ ++ install -o root -g bin -m 0444 pta-glossary.7 $(DESTDIR)/share/man/man7/ + install -o root -g wheel -m 0444 accounts.example.de \ + accounts.example.en journal.example.en \ + $(DESTDIR)/share/examples/pta/