diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /app-office/ledger |
reinit the tree, so we can have metadata
Diffstat (limited to 'app-office/ledger')
-rw-r--r-- | app-office/ledger/Manifest | 6 | ||||
-rw-r--r-- | app-office/ledger/files/50ledger-gentoo-3.1.1.el | 5 | ||||
-rw-r--r-- | app-office/ledger/ledger-3.1.1.ebuild | 132 | ||||
-rw-r--r-- | app-office/ledger/metadata.xml | 10 |
4 files changed, 153 insertions, 0 deletions
diff --git a/app-office/ledger/Manifest b/app-office/ledger/Manifest new file mode 100644 index 000000000000..590328e5e18a --- /dev/null +++ b/app-office/ledger/Manifest @@ -0,0 +1,6 @@ +AUX 50ledger-gentoo-3.1.1.el 166 SHA256 e16c4eaa7a034e44c7cc53d5288d6506ad791765510d534adf964a38c96dff0e SHA512 d5e2450d19d5d24e2db22429fa2ee8d46ae7284c91b1f2ed6eb32a0e6b70e1996f4b2f41812084b0330011d33fbcb2da11bf2d5b9f28a157f4c05d1106c418d5 WHIRLPOOL 3eb8764fd439bdba197c879d7e6e127485249afeb83f5c65855f56a51202842b12d0f051020447ccf7862eb47ea1d6df769c2fe7ad8bf8616f391fbf978ddde4 +DIST ledger-3.1.1.tar.gz 842364 SHA256 90f06561ab692b192d46d67bc106158da9c6c6813cc3848b503243a9dfd8548a SHA512 3f81b98a414cdfc0e272de4e958770149fb1acc8bda880d270e1459ce35294a220c52820bb9af49a751ac3a80b878f81fc7799ba41e0a1be43eba72081351bf5 WHIRLPOOL 89a83818adbe206167dbfc999dd589f1943d199cf84979fa82754f597a863c115fec85bbdabc4413714b4253502833170e6327bfc0d2321c392b9a3d73400061 +EBUILD ledger-3.1.1.ebuild 3145 SHA256 8dbfa834dedaf4dd47ee30aa2558e6c7f53530d835e20d4835ab09ae1cca589f SHA512 ac3f3f0ac50fd428dc00adc379a03a0454d9db9290d86af6c27695b585b12fbfe59f7a755bf485c4f14185275ca37012e7658b3e26f1126c210c9d02d94fa441 WHIRLPOOL 0036e33dfcbda823948c10e8bc52ef8a73333536a7845c9775f6565266bbcfca16b8da6a43701446b977f6cc15ec318240c9d86d96097d457e0987039c121c5d +MISC ChangeLog 3839 SHA256 bc9a08e3e77d41a35d6ef3105976de882b36d931433af67f63f39119e1492e53 SHA512 e3803d9055adf59ad8014014209416d79437aa705057eb7b8fdade921dbe47d62153a744c6e7f9c1d7f26228ed29f798a45fb19cabe469f98660dea5c9c50991 WHIRLPOOL 94dbb592ca0d98bc172229bafdad430c2e6d5869908919e7acc8830f93019f0c51cb9e4da73a2ee8eb8d3940b54325b01bf1f7a31134dbeb8dd84f010ab8b603 +MISC ChangeLog-2015 5605 SHA256 f7f8807d67c60170c3c6dab4b9b2731fbe325c1f1fa6fb2152598852f303c3a9 SHA512 2f174a32b13ee74e74c92add0fb5575af76513aad6d76d5c1f2ef3ca242fa21f91caf068876e7df33ea730386966d0e6faab907d00eae5e716e2d4352eb61747 WHIRLPOOL 1861fe794e918e7c536ca2d50262acbddeb2c613d155cd706dbbbd4b9d5e46b03ba49dc871c98f62930fb6992ff49cb89ba7e3bed060fbb5126f7ffda4ded661 +MISC metadata.xml 306 SHA256 ca968234f5aa5aa39ded94b12d271aa7190b5445ad2a2b28c030a63f2d6b3adb SHA512 c83b1be9474bbfa3296040c56bf14e22afd214835a44907bcb4db2a8047f05e1fe49b1d1ebe5bcd72fe5ed2f27c832d20169aa813f0d9bd619fc1f7a1c5e15cb WHIRLPOOL 9247dec90625b7ba70fdc239496ff4ed2fab88dc4d31fadcf280824c28ee0557076e70141dde4f1f552d35ab285890e2a9096d5b48f38ee82c4086c15c07b5b9 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 000000000000..1c2c5bde2f8b --- /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 000000000000..f32cda9c830f --- /dev/null +++ b/app-office/ledger/ledger-3.1.1.ebuild @@ -0,0 +1,132 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +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" +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" + +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 + ) +" + +# 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" +} + +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 \ + || die "Failed to disable installation of ledger.so" + + 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 +# - EAPI=6 diff --git a/app-office/ledger/metadata.xml b/app-office/ledger/metadata.xml new file mode 100644 index 000000000000..e43b674f1de7 --- /dev/null +++ b/app-office/ledger/metadata.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>stasibear@gentoo.org</email> + </maintainer> + <upstream> + <remote-id type="github">ledger/ledger</remote-id> + </upstream> +</pkgmetadata> |