Package Details: ledger-git latest-3

Git Clone URL: https://aur.archlinux.org/ledger-git.git (read-only, click to copy)
Package Base: ledger-git
Description: A double-entry accounting system with a command-line reporting interface (development version)
Upstream URL: http://ledger-cli.org
Licenses: BSD
Conflicts: ledger
Provides: ledger
Submitter: joni
Maintainer: the0
Last Packager: the0
Votes: 23
Popularity: 0.000000
First Submitted: 2009-05-28 01:14
Last Updated: 2019-10-12 19:54

Dependencies (10)

Required by (3)

Sources (1)

Latest Comments

1 2 3 4 5 6 ... Next › Last »

TheGoliath commented on 2020-06-11 13:09

# Maintainer: Ivan Zenin <i.zenin@gmx.com>
# Maintainer: Johann Klahn <kljohann@gmail.com>
# Contributor: Felix Golatofski <contact@xdfr.de>
# Contributor: Nathan Jones <nathanj@insightbb.com>

_pkgname=ledger
pkgname=$_pkgname-git
pkgver=3.2.1.r5.gbbd10b24
pkgrel=1
pkgdesc='Double-entry accounting system with a command-line reporting interface (Git)'
arch=(i686 x86_64)
url="https://ledger-cli.org"
license=(BSD)
depends=(boost-libs libedit mpfr)
makedepends=(boost cmake git python)
optdepends=(
        'emacs: emacs interface'
        'python: python library'
)
provides=('ledger')
conflicts=('ledger')
source=("git+https://github.com/ledger/ledger.git")
sha256sums=('SKIP')

pkgver() {
        cd "${srcdir}/$_pkgname"
        # cutting off 'v' prefix that presents in the git tag
        git describe --long | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
        cd "${srcdir}/$_pkgname"

        cmake . \
                -DCMAKE_INSTALL_PREFIX:PATH=/usr \
                -DCMAKE_INSTALL_LIBDIR:PATH=lib \
                -DUSE_PYTHON:BOOL=TRUE
        make
}

check() {
        make -C "ledger" check
}

package () {
  cd "${srcdir}/$_pkgname"

  make DESTDIR="${pkgdir}" install
  install -Dm644 LICENSE.md "${pkgdir}/usr/share/licenses/$_pkgname/LICENSE"
}

May that one be used as it is "cleaner" and closer to the upstream and favors python3 instead of python2? :)

the0 commented on 2019-10-12 19:59

Should be fixed now.

dasc commented on 2019-10-09 21:12

Fresh build fails:

[ 89%] Linking CXX executable ../ledger
/usr/bin/ld: /usr/lib64/libboost_python37.so.1.71.0: undefined reference to PyUnicode_AsUTF8String' /usr/bin/ld: /usr/lib64/libboost_python37.so.1.71.0: undefined reference toPyUnicode_FromFormat' /usr/bin/ld: /usr/lib64/libboost_python37.so.1.71.0: undefined reference to PyModule_Create2' /usr/bin/ld: /usr/lib64/libboost_python37.so.1.71.0: undefined reference toPyUnicode_FromString' /usr/bin/ld: /usr/lib64/libboost_python37.so.1.71.0: undefined reference to _Py_fopen' /usr/bin/ld: /usr/lib64/libboost_python37.so.1.71.0: undefined reference toPyUnicode_FromStringAndSize' /usr/bin/ld: /usr/lib64/libboost_python37.so.1.71.0: undefined reference to PyBytes_AsString' /usr/bin/ld: /usr/lib64/libboost_python37.so.1.71.0: undefined reference toPyBytes_Size' /usr/bin/ld: /usr/lib64/libboost_python37.so.1.71.0: undefined reference to PyUnicode_AsWideChar' /usr/bin/ld: ../libledger.so.3: undefined reference toboost::python::detail::init_module(char const, void ()())' /usr/bin/ld: /usr/lib64/libboost_python37.so.1.71.0: undefined reference to PyUnicode_FromEncodedObject' /usr/bin/ld: /usr/lib64/libboost_python37.so.1.71.0: undefined reference toPyUnicode_AsUTF8' /usr/bin/ld: /usr/lib64/libboost_python37.so.1.71.0: undefined reference to `PyUnicode_InternFromString' collect2: error: ld returned 1 exit status

It works if I remove -DUSE_PYTHON=ON.

the0 commented on 2018-06-12 19:02

dwrz, I suppose either ledger-git (this package) or boost-libs package is outdated in your system.

dwrz commented on 2018-06-09 16:23

Getting this error when I run ledger:

ledger: error while loading shared libraries: libboost_filesystem.so.1.66.0: cannot open shared object file: No such file or directory

the0 commented on 2018-04-18 21:27

arcnmx, done.

arcnmx commented on 2018-04-18 19:23

Could "-DUSE_PYTHON=ON" be added to the cmake line to enable the python interface?

csllbr commented on 2017-01-31 07:46

I've been getting this message to stderr lately. Is this a boost or a ledger problem?

sys:1: RuntimeWarning: to-Python converter for boost::shared_ptr<ledger::commodity_pool_t> already registered; second conversion method ignored.
sys:1: RuntimeWarning: to-Python converter for boost::shared_ptr<ledger::(anonymous namespace)::collector_wrapper> already registered; second conversion method ignored.

ikke commented on 2016-09-21 21:41

Applying this patch fixed it:

https://patch-diff.githubusercontent.com/raw/ledger/ledger/pull/465.diff

FlorianJacob commented on 2016-09-12 10:23

I can't compile the package anymore, probably related to the boost upgrade to 1.61 that also broke https://aur.archlinux.org/packages/ledger:

/tmp/yaourt-tmp-florian/aur-ledger-git/src/ledger/src/item.h:127:22: required from here
/usr/include/boost/core/enable_if.hpp:41:10: Fehler: unvollständiger Typ »boost::optional_detail::is_optional_val_init_candidate<std::map<std::__cxx11::basic_string<char>, std::pair<boost::optional<ledger::value_t>, bool>, boost::function<bool(std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char>)> >, const boost::optional<std::map<std::__cxx11::basic_string<char>, std::pair<boost::optional<ledger::value_t>, bool>, boost::function<bool(std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char>)> > >&>« in geschachtelter Namensangabe verwendet
struct enable_if : public enable_if_c<Cond::value, T> {};