* [gentoo-commits] repo/gentoo:master commit in: app-office/ledger/, app-office/ledger/files/
@ 2015-11-10 23:57 Erik Mackdanz
0 siblings, 0 replies; 7+ messages in thread
From: Erik Mackdanz @ 2015-11-10 23:57 UTC (permalink / raw
To: gentoo-commits
commit: 38e23b12679693b3ac1f44aa40dde39b5c9f2499
Author: Erik Mackdanz <stasibear <AT> gentoo <DOT> org>
AuthorDate: Tue Nov 10 23:57:40 2015 +0000
Commit: Erik Mackdanz <stasibear <AT> gentoo <DOT> org>
CommitDate: Tue Nov 10 23:57:40 2015 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=38e23b12
app-office/ledger: revbump to 3.1-r1
Adds IUSE="doc emacs". Closing bug 564226
Package-Manager: portage-2.2.24
app-office/ledger/files/50ledger-gentoo-3.1.el | 5 ++
app-office/ledger/ledger-3.1-r1.ebuild | 71 ++++++++++++++++++++++++++
2 files changed, 76 insertions(+)
diff --git a/app-office/ledger/files/50ledger-gentoo-3.1.el b/app-office/ledger/files/50ledger-gentoo-3.1.el
new file mode 100644
index 0000000..1c2c5bd
--- /dev/null
+++ b/app-office/ledger/files/50ledger-gentoo-3.1.el
@@ -0,0 +1,5 @@
+
+;;; app-office/ledger site-lisp configuration
+
+(add-to-list 'load-path "@SITELISP@")
+(autoload 'ledger-mode "ledger-mode" "A mode for editing ledger data files." t)
diff --git a/app-office/ledger/ledger-3.1-r1.ebuild b/app-office/ledger/ledger-3.1-r1.ebuild
new file mode 100644
index 0000000..c1714fd
--- /dev/null
+++ b/app-office/ledger/ledger-3.1-r1.ebuild
@@ -0,0 +1,71 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit cmake-utils elisp-common
+
+DESCRIPTION="A double-entry accounting system with a command-line reporting interface"
+HOMEPAGE="http://ledger-cli.org/"
+SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="BSD"
+KEYWORDS="~amd64 ~x86"
+SLOT="0"
+IUSE="doc emacs"
+
+SITEFILE=50${PN}-gentoo-${PV}.el
+
+RDEPEND="
+ dev-libs/boost:=
+ dev-libs/gmp:0
+ dev-libs/mpfr:0
+ emacs? ( virtual/emacs )
+"
+DEPEND="${RDEPEND}
+ dev-libs/utfcpp
+ doc? ( sys-apps/texinfo )
+"
+
+DOCS=(README-1ST README.md)
+
+src_configure() {
+ local mycmakeargs=(
+ $(cmake-utils_use_build emacs EMACSLISP)
+ $(cmake-utils_use_build doc DOCS)
+ $(cmake-utils_use_build doc WEB_DOCS)
+ -DCMAKE_INSTALL_DOCDIR=/usr/share/doc/${PF}
+ )
+
+ cmake-utils_src_configure
+}
+
+src_compile() {
+ cmake-utils_src_compile
+
+ use doc && cmake-utils_src_make doc
+}
+
+src_install() {
+ enable_cmake-utils_src_install
+
+ use emacs && elisp-site-file-install "${FILESDIR}/${SITEFILE}"
+}
+
+pkg_postinst() {
+ use emacs && elisp-site-regen
+
+ einfo
+ einfo "Since version 3, vim support is released separately."
+ einfo "See https://github.com/ledger/vim-ledger"
+ einfo
+}
+
+pkg_postrm() {
+ use emacs && elisp-site-regen
+}
+
+# rainy day TODO:
+# - IUSE python
+# - IUSE test
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: app-office/ledger/, app-office/ledger/files/
@ 2016-02-21 18:42 Erik Mackdanz
0 siblings, 0 replies; 7+ messages in thread
From: Erik Mackdanz @ 2016-02-21 18:42 UTC (permalink / raw
To: gentoo-commits
commit: 6cb4b18e41ddb0d6af693290beb35b693eea8505
Author: Erik Mackdanz <stasibear <AT> gentoo <DOT> org>
AuthorDate: Sun Feb 21 18:42:26 2016 +0000
Commit: Erik Mackdanz <stasibear <AT> gentoo <DOT> org>
CommitDate: Sun Feb 21 18:42:26 2016 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6cb4b18e
app-office/ledger: bump to 3.1.1
Adds IUSE=python
Package-Manager: portage-2.2.27
app-office/ledger/Manifest | 1 +
app-office/ledger/files/50ledger-gentoo-3.1.1.el | 5 +
app-office/ledger/ledger-3.1.1.ebuild | 125 +++++++++++++++++++++++
app-office/ledger/metadata.xml | 3 +
4 files changed, 134 insertions(+)
diff --git a/app-office/ledger/Manifest b/app-office/ledger/Manifest
index 40a419e..778c657 100644
--- a/app-office/ledger/Manifest
+++ b/app-office/ledger/Manifest
@@ -1,2 +1,3 @@
DIST ledger-2.6.3.tar.gz 551325 SHA256 e2c99d930fcf64b7fa901215c7fa25e3327f6365e8ee049620ef3632d53bf363 SHA512 825e670d25d2f8d1791480fb5da4190f7b342ecc9b47bca60fd6f0e606e5af5f3f767ec7043339660396ef4c90451f4a4122d812b8761acf4ea964b67dbd43b5 WHIRLPOOL e6d351ce8899079daa9cb0d1f9493b2b551a6d44e8ad7949c28ac8e544f80c87d54f06b350adfc21c4c8582e9042547313a506fa74096671bae30b462ae3e2df
+DIST ledger-3.1.1.tar.gz 842364 SHA256 90f06561ab692b192d46d67bc106158da9c6c6813cc3848b503243a9dfd8548a SHA512 3f81b98a414cdfc0e272de4e958770149fb1acc8bda880d270e1459ce35294a220c52820bb9af49a751ac3a80b878f81fc7799ba41e0a1be43eba72081351bf5 WHIRLPOOL 89a83818adbe206167dbfc999dd589f1943d199cf84979fa82754f597a863c115fec85bbdabc4413714b4253502833170e6327bfc0d2321c392b9a3d73400061
DIST ledger-3.1.tar.gz 817624 SHA256 eeb5d260729834923fc94822bcc54ca3080c434f81466a3f5dc4274b357ce694 SHA512 caa84330eee05d3e88820e8afd4a906d22f6aaa9de4abc2f6813636754e052e6ec4d1b3d2fce68215aededc72651405c62aaf16a2c1b69d34e1b10ffece48519 WHIRLPOOL fc3ce5e8eb59e1d4f83101063ebefd1379172c1be0e4f504079519924859b8127d616e7e3714837be49c7b38674b1684e321347d1f8561aeeba586b538341142
diff --git a/app-office/ledger/files/50ledger-gentoo-3.1.1.el b/app-office/ledger/files/50ledger-gentoo-3.1.1.el
new file mode 100644
index 0000000..1c2c5bd
--- /dev/null
+++ b/app-office/ledger/files/50ledger-gentoo-3.1.1.el
@@ -0,0 +1,5 @@
+
+;;; app-office/ledger site-lisp configuration
+
+(add-to-list 'load-path "@SITELISP@")
+(autoload 'ledger-mode "ledger-mode" "A mode for editing ledger data files." t)
diff --git a/app-office/ledger/ledger-3.1.1.ebuild b/app-office/ledger/ledger-3.1.1.ebuild
new file mode 100644
index 0000000..13b8cfb
--- /dev/null
+++ b/app-office/ledger/ledger-3.1.1.ebuild
@@ -0,0 +1,125 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+PYTHON_COMPAT=( python2_7 )
+
+inherit check-reqs cmake-utils elisp-common python-single-r1
+
+DESCRIPTION="A double-entry accounting system with a command-line reporting interface"
+HOMEPAGE="http://ledger-cli.org/"
+SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="BSD"
+KEYWORDS="~amd64 ~x86"
+SLOT="0"
+IUSE="doc emacs python"
+
+SITEFILE=50${PN}-gentoo-${PV}.el
+
+CHECKREQS_MEMORY=8G
+
+COMMON_DEPEND="
+ dev-libs/gmp:0
+ dev-libs/mpfr:0
+ emacs? ( virtual/emacs )
+ python? ( dev-libs/boost:=[python] )
+ !python? ( dev-libs/boost:= )
+"
+RDEPEND="
+ ${COMMON_DEPEND}
+ python? ( dev-python/cheetah )
+"
+DEPEND="
+ ${COMMON_DEPEND}
+ dev-libs/utfcpp
+ doc? ( sys-apps/texinfo )
+"
+
+DOCS=(README.md)
+
+# Building with python integration seems to fail without 8G available
+# RAM(!) Since the memory check in check-reqs doesn't count swap, it
+# may be unfair to fail the build entirely on the memory test alone.
+# Therefore check-reqs_pkg_pretend is deliberately omitted so that we
+# ewarn but not not eerror.
+pkg_pretend() {
+ :
+}
+pkg_setup() {
+ if use python; then
+ check-reqs_pkg_setup
+ python-single-r1_pkg_setup
+ fi
+}
+
+src_prepare() {
+ # Want to type "info ledger" not "info ledger3"
+ sed -i -e 's/ledger3/ledger/g' \
+ doc/ledger3.texi \
+ doc/CMakeLists.txt \
+ test/CheckTexinfo.py \
+ tools/cleanup.sh \
+ tools/gendocs.sh \
+ tools/prepare-commit-msg \
+ tools/spellcheck.sh \
+ || die "Failed to update info file name in file contents"
+
+ mv doc/ledger{3,}.texi || die "Failed to rename info file name"
+}
+
+src_configure() {
+ local mycmakeargs=(
+ $(cmake-utils_use_build emacs EMACSLISP)
+ $(cmake-utils_use_build doc DOCS)
+ $(cmake-utils_use_build doc WEB_DOCS)
+ $(cmake-utils_use_use python PYTHON)
+ -DCMAKE_INSTALL_DOCDIR=/usr/share/doc/${PF}
+ )
+
+ cmake-utils_src_configure
+}
+
+src_compile() {
+ cmake-utils_src_compile
+
+ use doc && cmake-utils_src_make doc
+}
+
+src_install() {
+ # Prevent installing ledger.so into python site-packages. It's an
+ # unnecessary copy of libledger.so and generates security warnings.
+ sed -i -e '/python/d' ../${P}_build/src/cmake_install.cmake
+
+ enable_cmake-utils_src_install
+
+ # This source dir appears to include some helper code for serving
+ # reports to a browser ("ledger server"). I can't quite get it to
+ # work and the docs say it's a work-in-progress. It's a little
+ # interesting, though, so I'll leave these installed as a preview of
+ # features to come.
+ if use python; then
+ mv python ${PN} || die "Couldn't rename python module static files dir"
+ python_domodule ${PN}
+ fi
+
+ use emacs && elisp-site-file-install "${FILESDIR}/${SITEFILE}"
+}
+
+pkg_postinst() {
+ use emacs && elisp-site-regen
+
+ einfo
+ einfo "Since version 3, vim support is released separately."
+ einfo "See https://github.com/ledger/vim-ledger"
+ einfo
+}
+
+pkg_postrm() {
+ use emacs && elisp-site-regen
+}
+
+# rainy day TODO:
+# - IUSE test
diff --git a/app-office/ledger/metadata.xml b/app-office/ledger/metadata.xml
index 9d91b41..56dda14 100644
--- a/app-office/ledger/metadata.xml
+++ b/app-office/ledger/metadata.xml
@@ -2,6 +2,9 @@
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
+ <email>stasibear@gentoo.org</email>
+ </maintainer>
+ <maintainer type="person">
<email>yac@gentoo.org</email>
</maintainer>
<upstream>
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: app-office/ledger/, app-office/ledger/files/
@ 2017-04-03 18:13 David Seifert
0 siblings, 0 replies; 7+ messages in thread
From: David Seifert @ 2017-04-03 18:13 UTC (permalink / raw
To: gentoo-commits
commit: c7ba297cbfbc9ddef908162932e90a11c218eba4
Author: David Seifert <soap <AT> gentoo <DOT> org>
AuthorDate: Mon Apr 3 18:11:54 2017 +0000
Commit: David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Mon Apr 3 18:11:54 2017 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c7ba297c
app-office/ledger: Remove old
Package-Manager: Portage-2.3.5, Repoman-2.3.2
app-office/ledger/Manifest | 2 -
app-office/ledger/files/50ledger-gentoo-3.1.el | 5 --
app-office/ledger/files/50ledger-gentoo.el | 5 --
app-office/ledger/ledger-2.6.3-r1.ebuild | 80 --------------------------
app-office/ledger/ledger-3.1-r1.ebuild | 70 ----------------------
5 files changed, 162 deletions(-)
diff --git a/app-office/ledger/Manifest b/app-office/ledger/Manifest
index 778c657a4f8..6cd37cd8db1 100644
--- a/app-office/ledger/Manifest
+++ b/app-office/ledger/Manifest
@@ -1,3 +1 @@
-DIST ledger-2.6.3.tar.gz 551325 SHA256 e2c99d930fcf64b7fa901215c7fa25e3327f6365e8ee049620ef3632d53bf363 SHA512 825e670d25d2f8d1791480fb5da4190f7b342ecc9b47bca60fd6f0e606e5af5f3f767ec7043339660396ef4c90451f4a4122d812b8761acf4ea964b67dbd43b5 WHIRLPOOL e6d351ce8899079daa9cb0d1f9493b2b551a6d44e8ad7949c28ac8e544f80c87d54f06b350adfc21c4c8582e9042547313a506fa74096671bae30b462ae3e2df
DIST ledger-3.1.1.tar.gz 842364 SHA256 90f06561ab692b192d46d67bc106158da9c6c6813cc3848b503243a9dfd8548a SHA512 3f81b98a414cdfc0e272de4e958770149fb1acc8bda880d270e1459ce35294a220c52820bb9af49a751ac3a80b878f81fc7799ba41e0a1be43eba72081351bf5 WHIRLPOOL 89a83818adbe206167dbfc999dd589f1943d199cf84979fa82754f597a863c115fec85bbdabc4413714b4253502833170e6327bfc0d2321c392b9a3d73400061
-DIST ledger-3.1.tar.gz 817624 SHA256 eeb5d260729834923fc94822bcc54ca3080c434f81466a3f5dc4274b357ce694 SHA512 caa84330eee05d3e88820e8afd4a906d22f6aaa9de4abc2f6813636754e052e6ec4d1b3d2fce68215aededc72651405c62aaf16a2c1b69d34e1b10ffece48519 WHIRLPOOL fc3ce5e8eb59e1d4f83101063ebefd1379172c1be0e4f504079519924859b8127d616e7e3714837be49c7b38674b1684e321347d1f8561aeeba586b538341142
diff --git a/app-office/ledger/files/50ledger-gentoo-3.1.el b/app-office/ledger/files/50ledger-gentoo-3.1.el
deleted file mode 100644
index 1c2c5bde2f8..00000000000
--- a/app-office/ledger/files/50ledger-gentoo-3.1.el
+++ /dev/null
@@ -1,5 +0,0 @@
-
-;;; app-office/ledger site-lisp configuration
-
-(add-to-list 'load-path "@SITELISP@")
-(autoload 'ledger-mode "ledger-mode" "A mode for editing ledger data files." t)
diff --git a/app-office/ledger/files/50ledger-gentoo.el b/app-office/ledger/files/50ledger-gentoo.el
deleted file mode 100644
index 27836612139..00000000000
--- a/app-office/ledger/files/50ledger-gentoo.el
+++ /dev/null
@@ -1,5 +0,0 @@
-
-;;; app-office/ledger site-lisp configuration
-
-(add-to-list 'load-path "@SITELISP@")
-(autoload 'ledger-mode "ledger" "A mode for editing ledger data files." t)
diff --git a/app-office/ledger/ledger-2.6.3-r1.ebuild b/app-office/ledger/ledger-2.6.3-r1.ebuild
deleted file mode 100644
index 78b0e1fad19..00000000000
--- a/app-office/ledger/ledger-2.6.3-r1.ebuild
+++ /dev/null
@@ -1,80 +0,0 @@
-# Copyright 1999-2015 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=4
-
-inherit eutils elisp-common autotools
-
-DESCRIPTION="A double-entry accounting system with a command-line reporting interface"
-HOMEPAGE="http://ledger-cli.org/"
-SRC_URI="mirror://github/jwiegley/${PN}/${P}.tar.gz"
-
-LICENSE="BSD"
-KEYWORDS="amd64 x86 ~amd64-linux ~x86-linux ~x64-macos"
-SLOT="0"
-IUSE="emacs debug gnuplot ofx static-libs xml vim-syntax"
-
-DEPEND="
- dev-libs/gmp:0
- dev-libs/libpcre
- ofx? ( >=dev-libs/libofx-0.9 )
- xml? ( dev-libs/expat )
- emacs? ( virtual/emacs )
- gnuplot? ( sci-visualization/gnuplot )"
-RDEPEND="${DEPEND}
- vim-syntax? ( || ( app-editors/vim app-editors/gvim ) )"
-
-DOCS=(sample.dat README NEWS)
-
-SITEFILE=50${PN}-gentoo.el
-
-src_prepare() {
- sed -i -e "/ledger_LDFLAGS/d" Makefile.am
- eautoreconf
-}
-
-src_configure() {
- # Autodetection of dependencies may fail in the case of:
- # USE=emacs disabled, app-editors/emacs not installed, app-editors/xemacs installed
- use emacs || export EMACS=no
- econf \
- $(use_enable debug) \
- $(use_with emacs lispdir "${EPREFIX}/${SITELISP}/${PN}") \
- $(use_enable ofx) \
- $(use_enable static-libs static) \
- $(use_enable xml)
-}
-
-src_install() {
- default
-
- # One script uses vi, the outher the Finance perl module
- # Did not add more use flags though
- exeinto /usr/share/${PN}/scripts
- doexe scripts/{entry,getquote,bal,bal-huquq}
-
- # Remove timeclock since it is part of Emacs
- rm -f "${ED}${SITELISP}/${PN}"/timeclock.*
-
- use emacs && elisp-site-file-install "${FILESDIR}/${SITEFILE}"
-
- if use gnuplot; then
- mv scripts/report ledger-report
- dobin ledger-report
- fi
-
- if use vim-syntax; then
- insinto /usr/share/vim/vimfiles/syntax
- doins ledger.vim
- fi
-
- use static-libs || find "${ED}" -name '*.la' -exec rm -f '{}' +
-}
-
-pkg_postinst() {
- use emacs && elisp-site-regen
-}
-
-pkg_postrm() {
- use emacs && elisp-site-regen
-}
diff --git a/app-office/ledger/ledger-3.1-r1.ebuild b/app-office/ledger/ledger-3.1-r1.ebuild
deleted file mode 100644
index 7304ca8cfa5..00000000000
--- a/app-office/ledger/ledger-3.1-r1.ebuild
+++ /dev/null
@@ -1,70 +0,0 @@
-# Copyright 1999-2016 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=5
-
-inherit cmake-utils elisp-common
-
-DESCRIPTION="A double-entry accounting system with a command-line reporting interface"
-HOMEPAGE="http://ledger-cli.org/"
-SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
-
-LICENSE="BSD"
-KEYWORDS="~amd64 ~x86"
-SLOT="0"
-IUSE="doc emacs"
-
-SITEFILE=50${PN}-gentoo-${PV}.el
-
-RDEPEND="
- <dev-libs/boost-1.58:=
- dev-libs/gmp:0
- dev-libs/mpfr:0
- emacs? ( virtual/emacs )
-"
-DEPEND="${RDEPEND}
- dev-libs/utfcpp
- doc? ( sys-apps/texinfo )
-"
-
-DOCS=(README-1ST README.md)
-
-src_configure() {
- local mycmakeargs=(
- $(cmake-utils_use_build emacs EMACSLISP)
- $(cmake-utils_use_build doc DOCS)
- $(cmake-utils_use_build doc WEB_DOCS)
- -DCMAKE_INSTALL_DOCDIR=/usr/share/doc/${PF}
- )
-
- cmake-utils_src_configure
-}
-
-src_compile() {
- cmake-utils_src_compile
-
- use doc && cmake-utils_src_make doc
-}
-
-src_install() {
- enable_cmake-utils_src_install
-
- use emacs && elisp-site-file-install "${FILESDIR}/${SITEFILE}"
-}
-
-pkg_postinst() {
- use emacs && elisp-site-regen
-
- einfo
- einfo "Since version 3, vim support is released separately."
- einfo "See https://github.com/ledger/vim-ledger"
- einfo
-}
-
-pkg_postrm() {
- use emacs && elisp-site-regen
-}
-
-# rainy day TODO:
-# - IUSE python
-# - IUSE test
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: app-office/ledger/, app-office/ledger/files/
@ 2018-07-20 4:03 Erik Mackdanz
0 siblings, 0 replies; 7+ messages in thread
From: Erik Mackdanz @ 2018-07-20 4:03 UTC (permalink / raw
To: gentoo-commits
commit: 2642ca2a2e080d478b417a37edd1500cf1c283fd
Author: Erik Mackdanz <stasibear <AT> gentoo <DOT> org>
AuthorDate: Fri Jul 20 04:01:29 2018 +0000
Commit: Erik Mackdanz <stasibear <AT> gentoo <DOT> org>
CommitDate: Fri Jul 20 04:02:31 2018 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2642ca2a
app-office/ledger: Bug fixes, EAPI=6
Closes: https://bugs.gentoo.org/635730
Closes: https://bugs.gentoo.org/635924
Closes: https://bugs.gentoo.org/642804
Closes: https://bugs.gentoo.org/654326
Package-Manager: Portage-2.3.40, Repoman-2.3.9
.../files/ledger-3.1.1-r1-boost-python.patch | 13 +++
app-office/ledger/ledger-3.1.1-r1.ebuild | 125 +++++++++++++++++++++
2 files changed, 138 insertions(+)
diff --git a/app-office/ledger/files/ledger-3.1.1-r1-boost-python.patch b/app-office/ledger/files/ledger-3.1.1-r1-boost-python.patch
new file mode 100644
index 00000000000..6839b3f6067
--- /dev/null
+++ b/app-office/ledger/files/ledger-3.1.1-r1-boost-python.patch
@@ -0,0 +1,13 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index f8dbd892..6aacd5b3 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -67,7 +67,7 @@ if (USE_PYTHON)
+
+ find_package(PythonLibs)
+ if (PYTHONLIBS_FOUND)
+- set(BOOST_PYTHON python)
++ set(BOOST_PYTHON python-2.7)
+ set(HAVE_BOOST_PYTHON 1)
+ include_directories(SYSTEM ${PYTHON_INCLUDE_DIRS})
+ else()
diff --git a/app-office/ledger/ledger-3.1.1-r1.ebuild b/app-office/ledger/ledger-3.1.1-r1.ebuild
new file mode 100644
index 00000000000..3618c77570f
--- /dev/null
+++ b/app-office/ledger/ledger-3.1.1-r1.ebuild
@@ -0,0 +1,125 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python2_7 )
+
+inherit check-reqs cmake-utils elisp-common python-single-r1
+
+DESCRIPTION="A double-entry accounting system with a command-line reporting interface"
+HOMEPAGE="https://www.ledger-cli.org/"
+SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="BSD"
+KEYWORDS="~amd64 ~x86"
+SLOT="0"
+IUSE="doc emacs python"
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
+RESTRICT="test"
+
+SITEFILE=50${PN}-gentoo-${PV}.el
+
+CHECKREQS_MEMORY=8G
+
+RDEPEND="
+ dev-libs/boost:=[python?]
+ dev-libs/gmp:0=
+ dev-libs/mpfr:0=
+ emacs? ( virtual/emacs )
+ python? (
+ dev-libs/boost:=[${PYTHON_USEDEP}]
+ dev-python/cheetah
+ ${PYTHON_DEPS}
+ )
+"
+DEPEND="
+ ${RDEPEND}
+ dev-libs/utfcpp
+ doc? (
+ sys-apps/texinfo
+ virtual/texi2dvi
+ dev-texlive/texlive-fontsrecommended
+ )
+"
+
+PATCHES=(
+ "${FILESDIR}/${PN}-${PV}-boost.patch" # bug 609108
+ "${FILESDIR}/${PF}-boost-python.patch" # bug 654326
+ )
+
+# Building with python integration seems to fail without 8G available
+# RAM(!) Since the memory check in check-reqs doesn't count swap, it
+# may be unfair to fail the build entirely on the memory test alone.
+# Therefore check-reqs_pkg_pretend is deliberately omitted so that we
+# ewarn but not eerror.
+pkg_pretend() {
+ :
+}
+
+pkg_setup() {
+ if use python; then
+ check-reqs_pkg_setup
+ python-single-r1_pkg_setup
+ fi
+}
+
+src_prepare() {
+ cmake-utils_src_prepare
+
+ # Want to type "info ledger" not "info ledger3"
+ sed -i -e 's/ledger3/ledger/g' \
+ doc/ledger3.texi \
+ doc/CMakeLists.txt \
+ test/CheckTexinfo.py \
+ tools/cleanup.sh \
+ tools/gendocs.sh \
+ tools/prepare-commit-msg \
+ tools/spellcheck.sh \
+ || die "Failed to update info file name in file contents"
+
+ mv doc/ledger{3,}.texi || die "Failed to rename info file name"
+
+ eapply_user
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DBUILD_EMACSLISP="$(usex emacs)"
+ -DBUILD_DOCS="$(usex doc)"
+ -DBUILD_WEB_DOCS="$(usex doc)"
+ -DUSE_PYTHON="$(usex python)"
+ -DCMAKE_INSTALL_DOCDIR="/usr/share/doc/${PF}"
+ -DCMAKE_BUILD_WITH_INSTALL_RPATH:BOOL=ON
+ )
+
+ cmake-utils_src_configure
+}
+
+src_compile() {
+ cmake-utils_src_compile
+
+ use doc && cmake-utils_src_make doc
+}
+
+src_install() {
+ cmake-utils_src_install
+
+ use emacs && elisp-site-file-install "${FILESDIR}/${SITEFILE}"
+}
+
+pkg_postinst() {
+ use emacs && elisp-site-regen
+
+ einfo
+ einfo "Since version 3, vim support is released separately."
+ einfo "See https://github.com/ledger/vim-ledger"
+ einfo
+}
+
+pkg_postrm() {
+ use emacs && elisp-site-regen
+}
+
+# rainy day TODO:
+# - IUSE test
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: app-office/ledger/, app-office/ledger/files/
@ 2019-07-27 8:17 Andreas Sturmlechner
0 siblings, 0 replies; 7+ messages in thread
From: Andreas Sturmlechner @ 2019-07-27 8:17 UTC (permalink / raw
To: gentoo-commits
commit: b03c8a83cc1c6ace638ab8b6a96b0d58d54857c3
Author: Francesco Turco <fturco <AT> fastmail <DOT> fm>
AuthorDate: Sun Jun 30 20:18:38 2019 +0000
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Sat Jul 27 08:14:33 2019 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b03c8a83
app-office/ledger: rename configuration file for Emacs
Non-maintainer commit after timeout.
Closes: https://bugs.gentoo.org/678090
Signed-off-by: Francesco Turco <fturco <AT> fastmail.fm>
Closes: https://github.com/gentoo/gentoo/pull/12363
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
.../ledger/files/{50ledger-gentoo-3.1.1.el => 50ledger-gentoo.el} | 0
app-office/ledger/ledger-3.1.1-r2.ebuild | 4 ++--
app-office/ledger/ledger-3.1.2.ebuild | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/app-office/ledger/files/50ledger-gentoo-3.1.1.el b/app-office/ledger/files/50ledger-gentoo.el
similarity index 100%
rename from app-office/ledger/files/50ledger-gentoo-3.1.1.el
rename to app-office/ledger/files/50ledger-gentoo.el
diff --git a/app-office/ledger/ledger-3.1.1-r2.ebuild b/app-office/ledger/ledger-3.1.1-r2.ebuild
index 48b69eb0fcd..9bacf38fd69 100644
--- a/app-office/ledger/ledger-3.1.1-r2.ebuild
+++ b/app-office/ledger/ledger-3.1.1-r2.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=6
@@ -18,7 +18,7 @@ IUSE="debug doc emacs python"
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
RESTRICT="test"
-SITEFILE=50${PN}-gentoo-${PV}.el
+SITEFILE=50${PN}-gentoo.el
CHECKREQS_MEMORY=8G
diff --git a/app-office/ledger/ledger-3.1.2.ebuild b/app-office/ledger/ledger-3.1.2.ebuild
index d027cb0f735..be240f9dcfc 100644
--- a/app-office/ledger/ledger-3.1.2.ebuild
+++ b/app-office/ledger/ledger-3.1.2.ebuild
@@ -17,7 +17,7 @@ IUSE="debug doc emacs python"
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
RESTRICT="test"
-SITEFILE=50${PN}-gentoo-${PV}.el
+SITEFILE=50${PN}-gentoo.el
CHECKREQS_MEMORY=8G
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: app-office/ledger/, app-office/ledger/files/
@ 2024-05-22 4:16 Erik Mackdanz
0 siblings, 0 replies; 7+ messages in thread
From: Erik Mackdanz @ 2024-05-22 4:16 UTC (permalink / raw
To: gentoo-commits
commit: aa3771f490b4ce89726b779774a7c6641b8940ce
Author: Erik Mackdanz <stasibear <AT> gentoo <DOT> org>
AuthorDate: Wed May 22 04:15:19 2024 +0000
Commit: Erik Mackdanz <stasibear <AT> gentoo <DOT> org>
CommitDate: Wed May 22 04:15:19 2024 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=aa3771f4
app-office/ledger: fix boost error
Closes: https://bugs.gentoo.org/932238
Signed-off-by: Erik Mackdanz <stasibear <AT> gentoo.org>
app-office/ledger/files/convenience.patch | 10 ++++++++++
app-office/ledger/ledger-3.3.2-r1.ebuild | 3 +++
2 files changed, 13 insertions(+)
diff --git a/app-office/ledger/files/convenience.patch b/app-office/ledger/files/convenience.patch
new file mode 100644
index 000000000000..998d248c0932
--- /dev/null
+++ b/app-office/ledger/files/convenience.patch
@@ -0,0 +1,10 @@
+--- a/src/system.hh.in 2024-05-21 22:50:15.026661018 -0500
++++ b/src/system.hh.in 2024-05-21 22:50:43.466824215 -0500
+@@ -144,7 +144,6 @@
+ #include <boost/date_time/posix_time/posix_time_io.hpp>
+ #include <boost/date_time/gregorian/gregorian_io.hpp>
+
+-#include <boost/filesystem/convenience.hpp>
+ #include <boost/filesystem/exception.hpp>
+ #include <boost/filesystem/fstream.hpp>
+ #include <boost/filesystem/operations.hpp>
diff --git a/app-office/ledger/ledger-3.3.2-r1.ebuild b/app-office/ledger/ledger-3.3.2-r1.ebuild
index 3f77c0eb287b..709f0d908539 100644
--- a/app-office/ledger/ledger-3.3.2-r1.ebuild
+++ b/app-office/ledger/ledger-3.3.2-r1.ebuild
@@ -67,6 +67,9 @@ src_prepare() {
mv doc/ledger{3,}.texi || die "Failed to rename info file name"
rm -r lib/utfcpp || die
+
+ eapply "${FILESDIR}/convenience.patch"
+ eapply_user
}
src_configure() {
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: app-office/ledger/, app-office/ledger/files/
@ 2024-11-03 20:12 Erik Mackdanz
0 siblings, 0 replies; 7+ messages in thread
From: Erik Mackdanz @ 2024-11-03 20:12 UTC (permalink / raw
To: gentoo-commits
commit: ac67334aa9cbd0e41b9e11921cd38a92f7a135c6
Author: Erik Mackdanz <stasibear <AT> gentoo <DOT> org>
AuthorDate: Sun Nov 3 19:27:46 2024 +0000
Commit: Erik Mackdanz <stasibear <AT> gentoo <DOT> org>
CommitDate: Sun Nov 3 20:11:30 2024 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ac67334a
app-office/ledger: bump to -r2
Fix compilation against boost 1.86 by applying patch from
https://github.com/ledger/ledger/pull/2381/files
Closes: https://bugs.gentoo.org/942763
Signed-off-by: Erik Mackdanz <stasibear <AT> gentoo.org>
app-office/ledger/files/sha1sum.patch | 110 +++++++++++++++++++++++++++++
app-office/ledger/ledger-3.3.2-r2.ebuild | 117 +++++++++++++++++++++++++++++++
2 files changed, 227 insertions(+)
diff --git a/app-office/ledger/files/sha1sum.patch b/app-office/ledger/files/sha1sum.patch
new file mode 100644
index 000000000000..2de66a672e68
--- /dev/null
+++ b/app-office/ledger/files/sha1sum.patch
@@ -0,0 +1,110 @@
+diff --git a/src/filters.cc b/src/filters.cc
+index f725c247..030a5fb4 100644
+--- a/src/filters.cc
++++ b/src/filters.cc
+@@ -237,8 +237,6 @@ void anonymize_posts::render_commodity(amount_t& amt)
+
+ void anonymize_posts::operator()(post_t& post)
+ {
+- boost::uuids::detail::sha1 sha;
+- unsigned int message_digest[5];
+ bool copy_xact_details = false;
+
+ if (last_xact != post.xact) {
+@@ -255,12 +253,7 @@ void anonymize_posts::operator()(post_t& post)
+ std::ostringstream buf;
+ buf << reinterpret_cast<boost::uintmax_t>(post.xact->payee.c_str())
+ << integer_gen() << post.xact->payee.c_str();
+-
+- sha.reset();
+- sha.process_bytes(buf.str().c_str(), buf.str().length());
+- sha.get_digest(message_digest);
+-
+- xact.payee = to_hex(message_digest);
++ xact.payee = sha1sum(buf.str(), 8);
+ xact.note = none;
+ } else {
+ xact.journal = post.xact->journal;
+@@ -273,12 +266,7 @@ void anonymize_posts::operator()(post_t& post)
+ acct = acct->parent) {
+ std::ostringstream buf;
+ buf << integer_gen() << acct << acct->fullname();
+-
+- sha.reset();
+- sha.process_bytes(buf.str().c_str(), buf.str().length());
+- sha.get_digest(message_digest);
+-
+- account_names.push_front(to_hex(message_digest));
++ account_names.push_front(sha1sum(buf.str(), 8));
+ }
+
+ account_t * new_account =
+@@ -1268,7 +1256,7 @@ void budget_posts::report_budget_items(const date_t& date)
+ foreach (pending_posts_list::iterator& i, posts_to_erase)
+ pending_posts.erase(i);
+ }
+-
++
+ if (pending_posts.size() == 0)
+ return;
+
+diff --git a/src/utils.h b/src/utils.h
+index b09377b8..510686fd 100644
+--- a/src/utils.h
++++ b/src/utils.h
+@@ -607,29 +607,39 @@ inline int peek_next_nonws(std::istream& in) {
+ *_p = '\0'; \
+ }
+
+-inline string to_hex(unsigned int * message_digest, const int len = 1)
+-{
++inline string digest_to_hex(
++ const boost::uuids::detail::sha1::digest_type& message_digest,
++ size_t len = sizeof(boost::uuids::detail::sha1::digest_type) * 2
++) {
+ std::ostringstream buf;
+-
+- for(int i = 0; i < 5 ; i++) {
+- buf.width(8);
+- buf.fill('0');
+- buf << std::hex << message_digest[i];
+- if (i + 1 >= len)
+- break; // only output the first LEN dwords
++ buf.setf(std::ios_base::hex, std::ios_base::basefield);
++ buf.fill('0');
++
++ // sha1::digest_type is an array type and may change between Boost versions
++ const size_t count = std::min(
++ sizeof(message_digest) / sizeof(message_digest[0]),
++ (len - 1) / (sizeof(message_digest[0]) * 2) + 1
++ );
++ for(size_t i = 0; i < count; i++) {
++ buf.width(sizeof(message_digest[i]) * 2);
++ buf << (unsigned int)message_digest[i];
+ }
+- return buf.str();
++ string hex = buf.str();
++ hex.resize(len, '0'); // in case a partial element is requested
++ return hex;
+ }
+
+-inline string sha1sum(const string& str)
+-{
+- boost::uuids::detail::sha1 sha;
++inline string sha1sum(
++ const string& str,
++ size_t len = sizeof(boost::uuids::detail::sha1::digest_type) * 2
++) {
++ static boost::uuids::detail::sha1 sha;
++ boost::uuids::detail::sha1::digest_type message_digest;
+
++ sha.reset();
+ sha.process_bytes(str.c_str(), str.length());
+-
+- unsigned int message_digest[5];
+ sha.get_digest(message_digest);
+- return to_hex(message_digest, 5);
++ return digest_to_hex(message_digest, len);
+ }
+
+ extern const string version;
diff --git a/app-office/ledger/ledger-3.3.2-r2.ebuild b/app-office/ledger/ledger-3.3.2-r2.ebuild
new file mode 100644
index 000000000000..c69d99cb1265
--- /dev/null
+++ b/app-office/ledger/ledger-3.3.2-r2.ebuild
@@ -0,0 +1,117 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{10,11,12,13} )
+CMAKE_REMOVE_MODULES_LIST=( FindPython Support )
+inherit bash-completion-r1 check-reqs cmake python-single-r1
+
+DESCRIPTION="Double-entry accounting system with a command-line reporting interface"
+HOMEPAGE="https://www.ledger-cli.org/"
+SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86"
+IUSE="debug doc python"
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
+
+RESTRICT="test"
+
+CHECKREQS_MEMORY=8G
+
+RDEPEND="
+ dev-libs/boost:=[python?]
+ dev-libs/gmp:0=
+ dev-libs/mpfr:0=
+ python? (
+ $(python_gen_cond_dep '
+ dev-libs/boost:=[${PYTHON_USEDEP}]
+ dev-python/cheetah3:=[${PYTHON_USEDEP}]
+ ')
+ ${PYTHON_DEPS}
+ )
+"
+DEPEND="${RDEPEND}
+ dev-libs/utfcpp
+ doc? (
+ app-text/texlive[extra]
+ sys-apps/texinfo
+ virtual/texi2dvi
+ )
+"
+
+pkg_pretend() {
+ if use python; then
+ check-reqs_pkg_pretend
+ fi
+}
+
+pkg_setup() {
+ if use python; then
+ check-reqs_pkg_setup
+ python-single-r1_pkg_setup
+ fi
+}
+
+src_prepare() {
+ cmake_src_prepare
+
+ # Want to type "info ledger" not "info ledger3"
+ sed -i -e 's/ledger3/ledger/g' \
+ doc/{CMakeLists.txt,ledger3.texi} test/CheckTexinfo.py \
+ tools/{cleanup.sh,gendocs.sh,prepare-commit-msg,spellcheck.sh} \
+ || die "Failed to update info file name in file contents"
+
+ mv doc/ledger{3,}.texi || die "Failed to rename info file name"
+
+ rm -r lib/utfcpp || die
+
+ eapply "${FILESDIR}/convenience.patch"
+ eapply "${FILESDIR}/sha1sum.patch"
+ eapply_user
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DBUILD_DOCS="$(usex doc)"
+ -DBUILD_WEB_DOCS="$(usex doc)"
+ -DUSE_PYTHON="$(usex python)"
+ -DCMAKE_INSTALL_DOCDIR="/usr/share/doc/${PF}"
+ -DCMAKE_BUILD_WITH_INSTALL_RPATH:BOOL=ON
+ -DBUILD_DEBUG="$(usex debug)"
+ -DUTFCPP_PATH="${ESYSROOT}/usr/include/utf8cpp"
+ )
+ if use python; then
+ mycmakeargs+=(
+ -DPython_EXECUTABLE="${PYTHON}"
+ -DPython_INCLUDE_DIR="$(python_get_includedir)"
+ )
+ fi
+
+ cmake_src_configure
+}
+
+src_compile() {
+ cmake_src_compile
+
+ use doc && cmake_src_compile doc
+}
+
+src_install() {
+ cmake_src_install
+
+ newbashcomp contrib/${PN}-completion.bash ${PN}
+}
+
+pkg_postinst() {
+ elog
+ elog "Since version 3, vim support is released separately."
+ elog "See https://github.com/ledger/vim-ledger"
+ elog
+ elog "For Emacs mode, emerge app-emacs/ledger-mode"
+}
+
+# rainy day TODO:
+# - IUSE test
^ permalink raw reply related [flat|nested] 7+ messages in thread
end of thread, other threads:[~2024-11-03 20:12 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-04-03 18:13 [gentoo-commits] repo/gentoo:master commit in: app-office/ledger/, app-office/ledger/files/ David Seifert
-- strict thread matches above, loose matches on Subject: below --
2024-11-03 20:12 Erik Mackdanz
2024-05-22 4:16 Erik Mackdanz
2019-07-27 8:17 Andreas Sturmlechner
2018-07-20 4:03 Erik Mackdanz
2016-02-21 18:42 Erik Mackdanz
2015-11-10 23:57 Erik Mackdanz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox