summaryrefslogtreecommitdiff
path: root/finance/ledger
diff options
context:
space:
mode:
authorDaniel Harris <dannyboy@FreeBSD.org>2005-07-03 16:37:59 +0000
committerDaniel Harris <dannyboy@FreeBSD.org>2005-07-03 16:37:59 +0000
commita683b2c98d5081a050ccccf0d43641899e88d611 (patch)
tree35a94ddb04a6e42abb86d6e16deccc8ad379f207 /finance/ledger
parentAdd cyrus2maildir. (diff)
'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 <woodycarey@hotmail.com>
Notes
Notes: svn path=/head/; revision=138420
Diffstat (limited to 'finance/ledger')
-rw-r--r--finance/ledger/Makefile50
-rw-r--r--finance/ledger/distinfo2
-rw-r--r--finance/ledger/pkg-descr8
-rw-r--r--finance/ledger/pkg-message4
-rw-r--r--finance/ledger/pkg-plist54
5 files changed, 118 insertions, 0 deletions
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 <bsd.port.mk>
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