Gentoo Archives: gentoo-commits

From: "José María Alonso" <nimiux@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/lisp:master commit in: dev-lisp/local-time/, dev-lisp/local-time/files/
Date: Thu, 01 Dec 2016 16:10:52
Message-Id: 1480608640.9485b0a0d91076fd0d2e2b7bd362955b5a2f2b31.nimiux@gentoo
1 commit: 9485b0a0d91076fd0d2e2b7bd362955b5a2f2b31
2 Author: Chema Alonso Josa <nimiux <AT> gentoo <DOT> org>
3 AuthorDate: Thu Dec 1 16:10:40 2016 +0000
4 Commit: José María Alonso <nimiux <AT> gentoo <DOT> org>
5 CommitDate: Thu Dec 1 16:10:40 2016 +0000
6 URL: https://gitweb.gentoo.org/proj/lisp.git/commit/?id=9485b0a0
7
8 dev-lisp/local-time: Bumps version to 1.0.6
9
10 .../local-time-1.0.6-use-system-zonedata.patch | 27 ++++++++++++
11 dev-lisp/local-time/local-time-1.0.6.ebuild | 49 ++++++++++++++++++++++
12 2 files changed, 76 insertions(+)
13
14 diff --git a/dev-lisp/local-time/files/local-time-1.0.6-use-system-zonedata.patch b/dev-lisp/local-time/files/local-time-1.0.6-use-system-zonedata.patch
15 new file mode 100644
16 index 0000000..19c5e13
17 --- /dev/null
18 +++ b/dev-lisp/local-time/files/local-time-1.0.6-use-system-zonedata.patch
19 @@ -0,0 +1,27 @@
20 +diff -Nuar a/src/local-time.lisp b/src/local-time.lisp
21 +--- a/src/local-time.lisp 2015-05-27 13:13:43.000000000 +0200
22 ++++ b/src/local-time.lisp 2016-12-01 17:00:46.440002481 +0100
23 +@@ -91,22 +91,7 @@
24 + (defvar *default-timezone*)
25 +
26 + (defparameter *default-timezone-repository-path*
27 +- (flet ((try (project-home-directory)
28 +- (when project-home-directory
29 +- (ignore-errors
30 +- (truename
31 +- (merge-pathnames "zoneinfo/"
32 +- (make-pathname :directory (pathname-directory project-home-directory))))))))
33 +- (or (when (find-package "ASDF")
34 +- (let ((path (eval (read-from-string
35 +- "(let ((system (asdf:find-system :local-time nil)))
36 +- (when system
37 +- (asdf:component-pathname system)))"))))
38 +- (try path)))
39 +- (let ((path (or #.*compile-file-truename*
40 +- *load-truename*)))
41 +- (when path
42 +- (try (merge-pathnames "../" path)))))))
43 ++ #p"/usr/share/zoneinfo/")
44 +
45 + ;;; Month information
46 + (defparameter +month-names+
47
48 diff --git a/dev-lisp/local-time/local-time-1.0.6.ebuild b/dev-lisp/local-time/local-time-1.0.6.ebuild
49 new file mode 100644
50 index 0000000..b816e2c
51 --- /dev/null
52 +++ b/dev-lisp/local-time/local-time-1.0.6.ebuild
53 @@ -0,0 +1,49 @@
54 +# Copyright 1999-2016 Gentoo Foundation
55 +# Distributed under the terms of the GNU General Public License v2
56 +# $Id$
57 +
58 +EAPI=6
59 +
60 +inherit common-lisp-3
61 +
62 +DESCRIPTION="LOCAL-TIME is a development library for manipulating date and time information."
63 +HOMEPAGE="http://common-lisp.net/project/local-time/"
64 +SRC_URI="https://github.com/dlowe-net/${PN}/archive/v${PV}.tar.gz"
65 +
66 +LICENSE="MIT"
67 +SLOT="0"
68 +KEYWORDS="~amd64 ~ppc ~sparc ~x86"
69 +IUSE="doc postgres"
70 +
71 +DEPEND="sys-apps/texinfo
72 + doc? ( virtual/texi2dvi )"
73 +RDEPEND="sys-libs/timezone-data
74 + dev-lisp/cl-fad"
75 +PDEPEND="postgres? ( dev-lisp/postmodern )"
76 +
77 +install_postgresql_files() {
78 + common-lisp-install-sources src/integration/cl-postgres.lisp
79 + common-lisp-install-asdf cl-postgres+local-time.asd
80 +}
81 +
82 +src_prepare() {
83 + epatch "${FILESDIR}"/${P}-use-system-zonedata.patch
84 + default
85 +}
86 +
87 +src_compile() {
88 + if use doc ; then
89 + cd doc || die
90 + VARTEXFONTS="${T}"/fonts \
91 + texi2pdf ${PN}.texinfo -o ${PN}.pdf || die
92 + fi
93 +}
94 +
95 +src_install() {
96 + common-lisp-install-sources src/*.lisp test
97 + common-lisp-install-asdf local-time.asd local-time.test.asd
98 +
99 + use postgres && install_postgresql_files
100 + dodoc CREDITS README TODO
101 + use doc && dodoc doc/${PN}.pdf
102 +}