Package: ledger Version: 3.3.1 Revision: 1 Source: https://github.com/ledger/ledger/archive/v%v.tar.gz SourceRename: %n-%v.tar.gz Maintainer: Jesse Alama Homepage: http://ledger-cli.org/ License: BSD Description: Maintain double-entry ledgers Source-Checksum: SHA256(c18341020552fa221203afdf0c0eade1bfa9aa4b7e1ab82a0e456c06b56d1ce4) PatchFile: %n.patch PatchFile-MD5: da02b127cbc1fc12818a895565ac5b9f PatchScript: << #!/bin/sh -ev sed 's|@PREFIX@|%p|g' < %{PatchFile} | patch -p1 # # acprep is a python script; try to divine what system-python # # to use rather than having a BDep on specific fink python # # (though that would at least be a stable pyXX version!) # # # # inspect.getargspec() is available in python2-python3.5; the # # replacement inspect.getfullargspec() is only available in # # python3. # if [ -x /usr/bin/python ]; then # # assume 'python' is python2 # perl -pi -e 's|/usr/bin/env python|/usr/bin/python|' acprep # perl -pi -e 's/getfullargspec/getargspec/' acprep # else # # assume 'python3' exists if 'python' (that is python2) does not # perl -pi -e 's|/usr/bin/env python|/usr/bin/python3|' acprep # fi #^-- acprep is a python script around ninja and cmake that autodetects # MacPorts and Homebrew and doesn't seem flexible enough to build # everything we want directly. And it still requires that we set # manual paths and flags in various ways. Let's just call cmake # directly. --dmacks as of 3.3.1-1 << # detects python3, but doesn't use it BuildDepends: << fink-buildenv-modules, boost1.78-nopython, cmake, gmp5, gmp5-shlibs, libicu72-dev, libmpfr4, texinfo << Conflicts: ledger26 Replaces: ledger26 GCC: 4.0 Depends: << %n-shlibs, boost1.78-nopython-shlibs, libicu72-shlibs, libmpfr4-shlibs << Suggests: gnuplot InfoDocs: ledger3.info CompileScript: << #!/bin/sh -ev . %p/sbin/fink-buildenv-cmake.sh mkdir finkbuild pushd finkbuild cmake \ $FINK_CMAKE_ARGS \ -DCMAKE_CXX_FLAGS:STRING=-MD \ -DBoost_DIR=%p/opt/boost-1_78 \ -DBoost_INCLUDE_DIR=%p/opt/boost-1_78/include \ -DBUILD_DOCS=true \ .. make -w make -w doc popd fink-package-precedence --depfile-ext='\.d' . << InstallScript: << make -C finkbuild install DESTDIR=%d << DocFiles: CONTRIBUTING.md LICENSE.md NEWS.md README.md DescDetail: << Ledger is a command-line accounting tool for maintaing doubly-entry ledgers. The syntax for ledger files is simple (see the file `sample.dat' in the `examples' subdirectory of the Ledger documentation directory) and can be maintained using only a text editor. << # ledger-el offloaded to own .info when upstream offloaded it to a # separate distro as of 3.1.2 -- dmacks SplitOff2: << Package: %N-dev Depends: %N-shlibs (= %v-%r) Description: Header files for Ledger Conflicts: ledger26-dev Replaces: ledger26-dev BuildDependsOnly: true Files: include lib/libledger.dylib DocFiles: CONTRIBUTING.md LICENSE.md NEWS.md README.md << SplitOff3: << Package: %N-shlibs Files: lib/libledger.3.dylib Shlibs: %p/lib/libledger.3.dylib 3.0.0 %n (>= 3.1-6) DocFiles: CONTRIBUTING.md LICENSE.md NEWS.md README.md <<