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: Tue, 28 Apr 2015 21:42:17
Message-Id: 1430257304.39c3841e4c13bcaa204db0a7c04dbf5e9e397118.nimiux@gentoo
1 commit: 39c3841e4c13bcaa204db0a7c04dbf5e9e397118
2 Author: Chema Alonso <nimiux <AT> gentoo <DOT> org>
3 AuthorDate: Tue Apr 28 21:41:44 2015 +0000
4 Commit: José María Alonso <nimiux <AT> gentoo <DOT> org>
5 CommitDate: Tue Apr 28 21:41:44 2015 +0000
6 URL: https://gitweb.gentoo.org/proj/lisp.git/commit/?id=39c3841e
7
8 dev-lisp/local-time: bump to version 1.0.5
9
10 .../files/1.0.5-gentoo-use-system-zonedata.patch | 27 ++++++++++++
11 dev-lisp/local-time/local-time-1.0.5.ebuild | 49 ++++++++++++++++++++++
12 2 files changed, 76 insertions(+)
13
14 diff --git a/dev-lisp/local-time/files/1.0.5-gentoo-use-system-zonedata.patch b/dev-lisp/local-time/files/1.0.5-gentoo-use-system-zonedata.patch
15 new file mode 100644
16 index 0000000..e8a5b62
17 --- /dev/null
18 +++ b/dev-lisp/local-time/files/1.0.5-gentoo-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 2014-12-05 03:01:37.000000000 +0100
22 ++++ b/src/local-time.lisp 2015-04-27 11:12:05.317886065 +0200
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 + ;;; Per Naggum we use the terms Political Time and Scientific Time to
46 + ;;; distinguish between two ways to think about adjusting times around
47
48 diff --git a/dev-lisp/local-time/local-time-1.0.5.ebuild b/dev-lisp/local-time/local-time-1.0.5.ebuild
49 new file mode 100644
50 index 0000000..2f8720d
51 --- /dev/null
52 +++ b/dev-lisp/local-time/local-time-1.0.5.ebuild
53 @@ -0,0 +1,49 @@
54 +# Copyright 1999-2015 Gentoo Foundation
55 +# Distributed under the terms of the GNU General Public License v2
56 +# $Header: $
57 +
58 +EAPI=5
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://common-lisp.net/project/${PN}/${P}.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}"/${PV}-gentoo-use-system-zonedata.patch
84 +}
85 +
86 +src_compile() {
87 + cd doc
88 + if use doc ; then
89 + VARTEXFONTS="${T}"/fonts \
90 + texi2pdf ${PN}.texinfo -o ${PN}.pdf || die "Cannot build PDF docs"
91 + fi
92 +}
93 +
94 +src_install() {
95 + common-lisp-install-sources src/*.lisp test
96 + common-lisp-install-asdf local-time.asd local-time.test.asd
97 +
98 + use postgres && install_postgresql_files
99 + dodoc CREDITS README TODO
100 + doinfo doc/${PN}.info
101 + use doc && dodoc doc/${PN}.pdf
102 +}