From 2dcd1a074a6ec237d961517481db4457006f0069 Mon Sep 17 00:00:00 2001 From: dannyboy Date: Sun, 3 Jul 2005 16:37:59 +0000 Subject: 'Ledger' is a command-line accounting program, which uses a simple text file as a ledger, yet provides powerful facilities for working with commodities, accounts, transactions, etc. It will read Gnucash data files directly. PR: 82685 Submitted by: Woody Carey --- finance/Makefile | 1 + finance/ledger/Makefile | 50 ++++++++++++++++++++++++++++++++++++++++++ finance/ledger/distinfo | 2 ++ finance/ledger/pkg-descr | 8 +++++++ finance/ledger/pkg-message | 4 ++++ finance/ledger/pkg-plist | 54 ++++++++++++++++++++++++++++++++++++++++++++++ 6 files changed, 119 insertions(+) create mode 100644 finance/ledger/Makefile create mode 100644 finance/ledger/distinfo create mode 100644 finance/ledger/pkg-descr create mode 100644 finance/ledger/pkg-message create mode 100644 finance/ledger/pkg-plist diff --git a/finance/Makefile b/finance/Makefile index bac6ee0d94d1..998b3fb95d0e 100644 --- a/finance/Makefile +++ b/finance/Makefile @@ -16,6 +16,7 @@ SUBDIR += khacc SUBDIR += kmymoney2 SUBDIR += ktoblzcheck + SUBDIR += ledger SUBDIR += libofx SUBDIR += libstocks SUBDIR += mybudget diff --git a/finance/ledger/Makefile b/finance/ledger/Makefile new file mode 100644 index 000000000000..2e38620bdbb6 --- /dev/null +++ b/finance/ledger/Makefile @@ -0,0 +1,50 @@ +# New ports collection makefile for: ledger +# Date created: June 25th, 2005 +# Whom: wcarey +# +# $FreeBSD$ +# + +PORTNAME= ledger +PORTVERSION= 2.3 +CATEGORIES= finance +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE_EXTENDED} \ + http://www.badplandude.com/~wcarey/ledger/ +MASTER_SITE_SUBDIR=ledger + +MAINTAINER= woodycarey@hotmail.com +COMMENT= John Wiegley's command line accounting program + +LIB_DEPENDS= gmp:${PORTSDIR}/math/libgmp4 \ + pcre:${PORTSDIR}/devel/pcre \ + xmltok:${PORTSDIR}/www/libwww \ + xmlparse:${PORTSDIR}/www/libwww + +HAS_CONFIGURE= yes +CONFIGURE_ARGS= CPPFLAGS="-I${PREFIX}/include" LDFLAGS="-L${PREFIX}/lib" + +NO_INSTALL_MANPAGES= yes +INFO= ledger + +# we need to write our own do-install, as the configure script produces +# a Makefile which respects $prefix, not ${PREFIX} during the install +do-install: + ${INSTALL_DATA} ${WRKSRC}/ledger.info ${PREFIX}/info/ + ${INSTALL_PROGRAM} ${WRKSRC}/ledger ${PREFIX}/bin/ + ${INSTALL_DATA} ${WRKSRC}/libledger.a ${PREFIX}/lib/ + ${MKDIR} ${PREFIX}/include/ledger + ${INSTALL_DATA} ${WRKSRC}/*.h ${PREFIX}/include/ledger/ + ${MKDIR} ${EXAMPLESDIR} + ${MKDIR} ${EXAMPLESDIR}/scripts + ${INSTALL_SCRIPT} ${WRKSRC}/scripts/* ${EXAMPLESDIR}/scripts/ + ${INSTALL_DATA} ${WRKSRC}/sample.dat ${EXAMPLESDIR} + ${INSTALL_SCRIPT} ${WRKSRC}/setup.py ${EXAMPLESDIR} + ${INSTALL_DATA} ${WRKSRC}/ledger.el ${EXAMPLESDIR} + ${INSTALL_DATA} ${WRKSRC}/ledger.vim ${EXAMPLESDIR} + ${INSTALL_DATA} ${WRKSRC}/ledger.texi ${EXAMPLESDIR} + ${INSTALL_SCRIPT} ${WRKSRC}/main.py ${EXAMPLESDIR} + +post-install: + ${CAT} pkg-message + +.include diff --git a/finance/ledger/distinfo b/finance/ledger/distinfo new file mode 100644 index 000000000000..713da6bf77ce --- /dev/null +++ b/finance/ledger/distinfo @@ -0,0 +1,2 @@ +MD5 (ledger-2.3.tar.gz) = 9adca9883f62db33f57961d0ac6f13cf +SIZE (ledger-2.3.tar.gz) = 611562 diff --git a/finance/ledger/pkg-descr b/finance/ledger/pkg-descr new file mode 100644 index 000000000000..94064a0d772c --- /dev/null +++ b/finance/ledger/pkg-descr @@ -0,0 +1,8 @@ +'Ledger' is a command-line accounting program, which uses a simple text file +as a ledger, yet provides powerful facilities for working with commodities, +accounts, transactions, etc. It will read Gnucash data files directly. + +WWW: http://www.newartisans.com/ledger.html + + - Woody Carey +woodycarey@hotmail.com diff --git a/finance/ledger/pkg-message b/finance/ledger/pkg-message new file mode 100644 index 000000000000..34010c98bd29 --- /dev/null +++ b/finance/ledger/pkg-message @@ -0,0 +1,4 @@ + +This port has installed sample data files, python samples and script samples +for ledger in ${PREFIX}/share/examples/ledger/ +Have fun! diff --git a/finance/ledger/pkg-plist b/finance/ledger/pkg-plist new file mode 100644 index 000000000000..6aa8b06575e1 --- /dev/null +++ b/finance/ledger/pkg-plist @@ -0,0 +1,54 @@ +bin/ledger +include/ledger/acconf.h +include/ledger/amount.h +include/ledger/balance.h +include/ledger/binary.h +include/ledger/config.h +include/ledger/datetime.h +include/ledger/debug.h +include/ledger/derive.h +include/ledger/emacs.h +include/ledger/error.h +include/ledger/format.h +include/ledger/gnucash.h +include/ledger/journal.h +include/ledger/ledger.h +include/ledger/mask.h +include/ledger/ofx.h +include/ledger/option.h +include/ledger/parser.h +include/ledger/py_eval.h +include/ledger/pyfstream.h +include/ledger/pyledger.h +include/ledger/qif.h +include/ledger/quotes.h +include/ledger/reconcile.h +include/ledger/textual.h +include/ledger/timing.h +include/ledger/util.h +include/ledger/valexpr.h +include/ledger/value.h +include/ledger/walk.h +include/ledger/xml.h +lib/libledger.a +%%EXAMPLESDIR%%/ledger.el +%%EXAMPLESDIR%%/ledger.texi +%%EXAMPLESDIR%%/ledger.vim +%%EXAMPLESDIR%%/main.py +%%EXAMPLESDIR%%/sample.dat +%%EXAMPLESDIR%%/scripts/README +%%EXAMPLESDIR%%/scripts/bal +%%EXAMPLESDIR%%/scripts/bal-huquq +%%EXAMPLESDIR%%/scripts/entry +%%EXAMPLESDIR%%/scripts/getquote +%%EXAMPLESDIR%%/scripts/report +%%EXAMPLESDIR%%/scripts/tc +%%EXAMPLESDIR%%/scripts/ti +%%EXAMPLESDIR%%/scripts/to +%%EXAMPLESDIR%%/scripts/trend +%%EXAMPLESDIR%%/setup.py +@dirrm share/nls/en_US.US-ASCII +@dirrm share/nls/POSIX +@dirrm %%EXAMPLESDIR%%/scripts +@dirrm %%EXAMPLESDIR%% +@dirrm include/ledger -- cgit